A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Loading and Unloading SWF's

  1. #1
    Member
    Join Date
    Apr 2011
    Posts
    42

    Loading and Unloading SWF's

    Hey All,

    I've got a games menu and have the code to load games when a button is clicked.

    So far say you want to play GameA...

    The player clicks the button to Play GameA and that game is loaded. Once the player finishes the game they are shown a button to continue which unloads the game and loads the menu.

    The problem is that I want a movieclip to be visible on the menu but only when GameA is completed. There is no way to back out of GameA and getting back to the menu without completing GameA. I don't know how in GameA to put that if the continue button is pressed make 'GameATick' visible. I've tried inside the code of GameA putting code like root.GameATick.visible and code like this but it doesn't recognise the MC.

    Any ideas?

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Your description is vague. Post code, and post error messages if you are getting them.

    It sounds like you may have forgotten to cast root to MovieClip before trying to access dynamic properties on it.

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