A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Keeping a movie on it's frame.

  1. #1
    Member
    Join Date
    Jan 2003
    Posts
    60

    Keeping a movie on it's frame.

    Hey again all,

    I have been struggling with this for a bit, and I'm sorry for posting this if it has been addressed before, but I didn't even know what to search for.

    I have a movie clip (Data), that is on the scene of the main movie. This movie can be scrolled left and right via buttons located on the main screen.

    Now, the "Data" movie contains buttons that move the main movie to the frame of choice. The "Data" movie however still remains visible at the top of the screen.

    The problem is that when I scroll, then click the button, it takes me to the frame I want, but the "data" movie skips back to frame 1. Is there any way to force it to stay on the frame chosen, until the user uses the scroll buttons to move it?

    ......Still with me?

    Ok, now part II. Is there a way to make the buttons on the main screen work like... "If movie clip "data" is on frame 1, then goto _root frame 1, but if on frame 200, go to _root frame 3"

    I just can't figure out the code for that badboy.

    Thanks all!

    Jeff

  2. #2
    Member
    Join Date
    Jan 2003
    Posts
    60
    I thought it might help to post my current code.

    on (release) {
    gotoAndStop(2);

    _root.CRBMain.nextFrame();
    }

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Can you attach your .fla or a mockup .fla replicating it, zipped up and in a MX only format, not MX2004?

    You'd have a better chance of getting an answer if your .fla was in a MX only format, and zipped up.

    You would have to save a copy of your MX2004 .fla, (using Save as...) and changing the Document type to MX only in the Save as... window.

  4. #4
    Member
    Join Date
    Jan 2003
    Posts
    60
    Unfortunately I can't, it would get me in a LOT of trouble with work!

    I can see if I can make a mock up...

  5. #5
    Member
    Join Date
    Jan 2003
    Posts
    60
    Hmmm...

    I made a mockup and it worked how I want.

    Hmm, might I have some code that is resetting it?

    I can't even find code that might be resetting it...is there a way to force it to stay on the current frame?

    myDate=new Date();
    day=myDate.getDate();
    month=myDate.getMonth()+1;
    if(month < 10){
    month="0"+month;
    }
    year="0"+(myDate.getYear()-100)
    time2=[];
    time2=(day+"/"+month+"/"+year)
    Would this be resetting it by chance?

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