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

+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
  1. #1

    Default If frame in movieclip = 375, then in the main scene to frame 37

    Hey guys
    I really looked for this everywhere, I tried in every way by myself, but of course didn't work.
    Using AS2
    So basically, I would like to have something like this:

    if
    frame INSIDE movieclip_mc = 375
    then
    gotoAndPlay in the MainScene frame 37


    I also thought about putting a code on this 375 frame of movieclip, which would like smth like this:

    _root.gotoandplay("MainScene",37);

    but it also didnt work.

    If you can help, pleae do, as it is my coursework =)

    Many thanks.
    Last edited by sfinksred; 12-11-2011 at 05:52 PM.

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

    Default

    Ok. So. Sorry if this is really too late for you.

    You would put this code outside of the movieclip. But of course, you need to type the code correctly, then it will work fine. Just remember, do not put this kind of code inside the movieclip. Put it in the MainScene frame. As a plus, you won't have to worry about typing _root ever again!

  4. #3

    Default

    yep, but the thing is, i dont know how to write this kind of code, and I'm asking for that)

  5. #4
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    581

    Default

    Then my question is... why are you programming?

  6. #5

    Default

    then my question is... have you read my first post? :P
    I need that for my coursework, which is my first time doing smth with flash and AS2. I've done quite a lot, but I have problem only with this thing. If you can help me, please do

  7. #6
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    581

    Default

    I didn't mean why are you doing your homework. I want to know why you are programming at all. If it is part of your coursework, then you should have already had instruction on how to do what you are trying to do. But you posting here shows otherwise. So your course must not be a programming course. In which case, why are you programming?

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

    Default

    Also, when you say that you've done quite a lot, what do you mean by that? Have you done a lot of flash, or actionscript? If you have done a lot of actionscript, then read my first post and do that, and you should be good to go. However, if you've only done a lot of flash, then what class are you taking that requires you to program but doesn't give you the basics to programming?

  9. #8
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    581

    Default

    In any case, those posts have little to do with solving your problem. So, if you are in dire need of some code, then I'll post some later when I am at home and have time.

  10. #9

    Default

    now I'm at home, and i dont have my teacher to help me. It's ICT, not computing, so that's why.
    If you can help, please doo, beacuse I rly need that one. and I am sure that for you, it's really simple.

  11. #10
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    581

    Default

    Put this code in the main timeline. I believe this is the correct code for ActionScript 2.0. So try it out and tell me what it does.

    Code:
    if (movieclip_mc._currentframe == 375)
    {
         gotoAndPlay(37);
    }
    Should be good to go.

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