A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Loaded Movie Problems

  1. #1
    Design Guru
    Join Date
    Mar 2007
    Location
    Calgary, Alberta, Canada
    Posts
    11

    Loaded Movie Problems



    Hi,

    I have a big problem, I have a movie which image "2" is on. When I click a button I load movie "1" onto the stage. My problem is that the "2" image is a button (which loads another movie) and once I load the "1" image the actions on the "2" image are active. How can I turn off the actions of this button once movies are loaded on top of it?

    Thanks in Advance!

    Ryan
    Last edited by xbaggypants; 03-02-2007 at 12:58 PM.

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi xbaggypants,

    Welcome to FlasKit.

    If you want to disable the button after clicking it, you can use the enabled property.
    code:

    my_btn.onRelease = function()
    {
    this.enabled = false;
    // load the external file
    // do what you want...
    };


  3. #3
    Design Guru
    Join Date
    Mar 2007
    Location
    Calgary, Alberta, Canada
    Posts
    11
    I just tried it, does this work if the movies are on different levels?

  4. #4
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    Disabling a button using the enabled property works as long as the button exists at the time you trigger the code and you specify the correct target path.

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