A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: get the name of the current scene

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    15

    get the name of the current scene

    Yes. I know there are work-arounds and hacks.

    I have searched for quite a while now and can't find an answer that actually works.

    Using flash 8 pro, AS2.0

    I've tried all kinds of apparently relative solutions, including the classes:

    import flash.display.MovieClip;

    ...currentScene, name(), etc. as found in the newsgroups with not even a little success.

    I'm going to dynamically name and control movies based on the current scene, yet not duplicate a lot of scenes. To do this I need to know which scene I'm in. Even using an array index to determine this is fine, as there is supposed to be an array of scenes maintained for use.

    Ideas?

    TIA!

  2. #2
    Senior Member hum's Avatar
    Join Date
    Sep 2003
    Location
    CloudCuckooland
    Posts
    1,714
    Hi
    Not quite sure i understand you!....but maybe,
    Have a _global variable which gets set by code in each scenes timeline ,
    then refer to the _global var to find out which scene you are in.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center