Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Need Something Clarified



Hello,Im new to AS3 and ive have had noob experiences so i was wondering if you could clarify some things with me:1) Each object has a display list? yes or noI understand that DisplayObjects are objectsand DisplayObjectContainer can have more than one objectDoes each DisplayObject as well as DisplayObjectContainer have a display list?Once i know which DisplayList i want to reference to, how do i do that?2) In order to use removeChild or getChildByName, a child has to exist? yes or no.3) I have a loader objects loading images while iterating through an xml file. it looks like this//trace("This is the count of the xml list:"+xmlList.length());for(var i:int = 0; i < xmlList.length(); i++){imageLoader = new Loader();imageLoader.load(new URLRequest(xmlList[i].attribute("thumb")));imageLoader.contentLoaderInfo.addEventListener(Event.INIT, initApp);imageLoader.name = 'myImage'+i;//trace(imageLoader.name);}now I dont want to add the objects until later on.so many lines down i start adding them.now when i reference imageLoader it refers to myImage11so I would like to know how do i reference them.now since im out of the loop i create another loopto get access to each object at different iterations and I put this inside the loop:trace("myImage"+j));doesnt work.Anyone knows?



Actionscript 3.0
Posted on: Sat Jul 12, 2008 2:24 am


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

OnCuePoint Clarified
i was recently trying to use the .onCuePoint event handler for a project of mine, having caught a glimpse of it in the index. seemed like the right tool for the job... upon checking the good ol' F1-Help on the subject, i immediately had my eyes ravaged with some wonderful uber-engineer-class code that was less than clear in it's use.

bottom line: confusion.

so after snorking some serious Jolt and hunting the web for tidbits, i didn't really find anything much useful. but after snorking more serious Jolt and experimenting like a mad scientist, i finally bashed together this surprisingly useful arrangement. now, why couldn't the docs be this clear and useful on the subject? i blame lawyers...

i hope this helps anyone else trying to use this really sweet event handler.

NB.







Attach Code

function superTurboFunction(mediaCue)
{
switch (mediaCue)
{
case "kaboom" :
doSomeExplodingStuff;
break;
default :
pickNoseAndFart;
break;
}
}

myNetConn_nc = new NetConnection();
myNetConn_nc.connect(null);
myNetStream_ns = new NetStream(myNetConn_nc);

myVideo_vid.attachVideo(myNetStream_ns);

myNetStream_ns.onCuePoint = function(cueEventObject:Object)
{
trace ("Elapsed Time: " + myNetStream_ns.time);
trace ("Cue Point Name: " + cueEventObject.name);
trace ("Cue Point Type: " + cueEventObject.type);

superTurboFunction(cueEventObject.name);
}

myNetStream_ns.play("ScreamingNinjaDeath.flv");

Transition Effect ? Clarified
not b annoyin'—the last thread went dark

anyone splain how to do the pattern-over-image transition effect seen here?:

http://www.templatemonster.com/webs...lates/6383.html

Transition Effect ? Clarified
not b annoyin'—the last thread went dark

anyone splain how to do the pattern-over-image transition effect seen here?:

http://www.templatemonster.com/webs...lates/6383.html

Copyright © 2005-08 www.BigResource.com, All rights reserved