A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: _root problem.

  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    48

    _root problem.

    I have 5 movie clips. I have 1 button inside in each movie with this information

    on {release}
    {_root.option = 1 (1 - 5 depending de button)
    gotoandplay (36);
    }


    and in frame 40 on the main scene is this actionscript

    if {_root.opcion == 1}
    gotoandplay (60);

    if {_root.opcion == 2}
    gotoandplay (250);

    if {_root.opcion == 3}
    gotoandplay (500);

    if {_root.opcion == 4}
    gotoandplay (326);

    if {_root.opcion == 5}
    gotoandplay (79);

    // THIS USED TO WORK WHEN THE BUTTON WAS IN THE MAIN MOVIE SCENE NOT INTO A MOVIE CLIP. I think the problem is with the button.

    Im trying to make some transitions in my site but im really stuggling with this thing and the deadline in getting shorter LOL

    Thank you for all the help you can give me!
    pd. Apologies for my bad English.

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    is gotoandplay (36); refering to the main timeline? If so, try

    _root.gotoandplay (36);
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


  3. #3
    Member
    Join Date
    Mar 2006
    Posts
    48
    Thank you I will try it at home...

    Thank you !! I was struggling for 2 days in a row.

  4. #4
    Junior Member
    Join Date
    Apr 2005
    Location
    Chicago
    Posts
    13
    If I do it like you said... when i click on the button it send me to the frame 2 in the main timeline

  5. #5
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    Not sure why it would go to frame two but I did notice in the code you posted option is misspelled in the if statement as _root.opcion
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


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