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

Closed Thread
Results 1 to 5 of 5
  1. #1

    Default Stop scaling at specific frame number - Is this ridiculous?

    I'm trying to stop my scaling action script at a certain frame number (or label) in a movie clip and then start it again at another frame number (or label).

    So say a movie clip is 30 frames long. It scales from frame 1 - 10, remains at the size it was scaled to at frame 10 from frame 11 - 20, and then begins scaling again from 21-30.

    I guess I could do it all in the main timline, but I want it to be neater than that.

  2. # ADS
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Put a stop action on the frame you want it to stop on,..... then to restart it.....

    _root.mcName.gotoAndPlay('frameLabel')

  4. #3

    Default interesting

    sounds like the start of a plan. but will the scaling action stop if the movie clip stops? my scaling action is in my main timeline. i want the scaling action to stop (at a certain frame in the attached movie clip) and my movie clip to keep playing. perhaps i wasn't clear??? dig the flash drums btw.

    ./h

  5. #4
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    It sounded as though you were using a motion tween in a movieclip to achieve the scale. If your using actionscript , you would need to establish the bounds for the scale effect. If your scaleing your MC from the main timeline, it wont effect the playing of the MC. You can control that in setting the bounds.........
    Code:
    if (_root.mcName._xscale >=150) {
    _root._xscale = 150;
    _root.mcName.gotoAndStop('someFrameLabel');
    }else if (_root._yscale>=150) {
    _root._yscale = 150;
    _root.mcname.gotoAndStop('someFrameLabel');
    }else{
    _root.mcName.play();
    }

    If your using width and height properties to scale the clip, setting the bounds is the same, just change methods.

  6. #5

    Default ah ha!

    i like it. i'll give it a whirl.

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Creating a link to a specific frame.
    By wesswei in forum General Flash
    Replies: 14
    Last Post: 09-04-2008, 11:02 PM
  2. getURL - Target specific frame on website
    By Blohm in forum Newbies
    Replies: 2
    Last Post: 12-12-2007, 06:28 PM
  3. Replies: 5
    Last Post: 10-24-2005, 11:24 AM
  4. HELP WITH SCALING FLASH WITHIN BROWSERS!!
    By 57strat in forum General Flash
    Replies: 2
    Last Post: 06-14-2005, 01:59 AM
  5. Play specific frame of movieclip from other movieclip
    By udit19 in forum Flash Scripting
    Replies: 1
    Last Post: 03-26-2005, 07:40 PM

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