Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

+ Reply to Thread
Results 1 to 7 of 7
  1. #1

    Default Linking actions Scipt to Button Located Outiside Movie Clip

    Hi Guys
    I Am currently making a flash website, and i have a problem with the actionscript. what i want to do is, when the opening animation is playing i want the button's visiblity to be false and after the animation has finished i want the the visibilty to be true. how can i do this. The animation is inside my moveclip and my button is outside the movieclip. I have already tried to put actions script before the animation which is
    Start_Btn.visible = false;

    then after it is finished
    stop();
    Start_Btn.visible = true;

    when i do that an error comes up saying
    1120: Access of undefined property Start_Btn.
    The actionscript cannont find the button as the button is outside the movieclip.
    How can i please fix this.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    485

    Default

    First of all. ActionScript version? Flash version? Fla file, so that we can see what you are actually doing.
    There is nothing syntactically wrong with your code. What you want to know is the logical errors of your code.
    However, the only way for someone to figure out the logical errors is by looking at the actual code in the file.
    Just a few pointer for future posts.

  4. #3
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    485

    Default

    Also, you already solved the problem: "The actionscript cannont find the button as the button is outside the movieclip."
    Obviously, you need to put the ActionScript outside of the movieclip as well, lol. But, seriously, that's the solution.

  5. #4

    Default lols

    lol i tried to put the action script outside the movieclip but i dont know what the action script is that will let me hide it when the animation is playing but after the animation is finished the button will appear

    its actionscript 3.0 in flash CS4, if u want i can send u the file

  6. #5
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    485

    Default

    Ooooooo. Ok. Yeah. That would be a little problem.
    Let me get back to you tonight. lol.

  7. #6

    Default

    find anything good yet? lol

  8. #7
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    485

    Default

    Sorry man. I have a super busy schedule. Um.. Yeah. Send me the file I guess. I'll give you my email in a private message.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial