PDA

View Full Version : A question about Class + Frames



ConceitoDigital
March 27th, 2008, 02:06 PM
Hello!

I'm new to AS3.

I made a Class, in a external file. Called "ClassImade" that extends MovieClip.

---------------
| 1st Frame |
---------------
Canvas:
- MovieClip (called "abc")

Code:


var anything = new ClassImade(abc);
stop();


---------------
| 2nd Frame |
---------------
Canvas:
- Totally empty



My class "ClassImade" just get the first parameter, "MovieClip" (in this example the movieclip "abc") and make it goes to second frame all the time.

In the second frame of the Movie "abc" I have a sound. The third is empty with a Stop().

-----------
| Results |
-----------

When I am in the First Flash Frame. The sound plays in Loop, all the time. Its ok!

When I am in the Second Flash Frame. The sound still plays in loop. Thats my question, why? if I dont have the movieclip "abc" in the second Frame.. Why it still plays normal invisible , like it was there ?