PDA

View Full Version : whats the syntax / code to get a "scene name" of a mc


pkny
03-02-2006, 03:32 AM
so how does one write the code to retrieve the "scene name" of a mc - that is if it is defined.

oldnewbie
03-02-2006, 03:37 AM
The scene name of an mc? Did you mean the instance name?

icemart525
03-02-2006, 04:02 AM
like gotoAndPlay("SceneName",FrameNo.); ?

oldnewbie
03-02-2006, 04:04 AM
No... I guess something more like, on the first frame of that mc...

trace(this._name);

pkny
03-02-2006, 08:13 AM
like gotoAndPlay("SceneName",FrameNo.); ?

thats what i mean - how do i tell if a mc is at a specific scenename..

cuz right now i'm using flags that store the current scene name and a function is retrieving that flag.. i prefer to use a non-flag orientation where i can just specify instance "x" movieclip - what "framename / scenename" are you at < under the condition that "x" movieclip has a "frame/scene name" defined..

i thought this._name just returns the instance name of hte object.