Target a specific frame in an MC for display
If my mc has a number of frames, each with a different graphic or movieclip.
the first question -is do I want each object in the frame to be a movieclip -think so
The second question would be initially getting the mian MC to stop
(should i just instert stop actions in each frame)
This would be the psuedo code I think:
Quote:
var myClip:MovieClip = new MyClip ();
addChild (myClip);
--which spawns the main mc frame 1
but to access frame 2 with it's respective frame labeled "second"
would I call it like this?
Quote:
var myClip.second:MovieClip = new MyClip.second ();
addChild (myClip.second);
I am not sure if this is doable-this way
Quote:
I can use myclip.gotoAndstop(2) or ("second");
in a function -I know that which is 1/2 of it
Mendyman showed me an example of using it in AS2 with an array.
I would like to know how to call up parts of a movieclip as instances.
Error messages in the source you showed me
1172: Definition caurina.transitions could not be found. lines 1,3
1120: Access of undefined property Tweener. lines 72,77
--SCRATCH THAT I impoted the class from the Corina folder the comment pointed the link. OK brain fart
One question about the code
each time mc icons
as in
Quote:
icons.addEventListener(MouseEvent.CLICK, showImage);
var photo:MovieClip = new MovieClip();
addChild(photo);
function showImage(e:MouseEvent):void {
photo.alpha = 0;
var loader:Loader = new Loader();
loader.load(new URLRequest(icons.getChildAt(0).name + ".jpg"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fadeImage);
photo.addChild(loader);
photo.addEventListener(MouseEvent.CLICK, hideImage);
}
I understand where it works but I am curiose as to how.
It makes to refference to each photo, yet each picture corresponds perfectly with each icon.I see that with icons.getChildAt(0).name+"jpg")); it calls up a picture in order but how does it know which one is first second etc.?
the photos are all named Monroe, Elvis etc.