Help with shadow animation

I'm having a bit of a difficulty animating a shadow. I have several pieces of art on the stage with a shadow on them. I have them on a tween, that will enlarge them (one at a Time) from there current state (100%) to (300%). What I'm trying to do is as the art increases in scale the shadow decreases to nothing, and on the return tween will increase the shadow back to the original setting.
I'm able to get the shadow the fade out, but its not smooth, or precise enough (may have something to do with the timimg of the tween itself), then there is the problem of animating the shadow back on the scale down.
here is the code I have that I have been trying to get that effect
//Function called by an enterframe listener so the shadow will change every frame
function drawshadow (e:Event):void
makeShadow = new DropShadowFilter();
makeShadow.distance = 5;
makeShadow.angle = 80;
makeShadow.color = 0x333333;
//figured the alpha was the easiest filter to change for the animation I want
makeShadow.alpha = changeshadow
makeShadow.blurX = 2;
makeShadow.blurY = 2;
makeShadow.strength = 1
makeShadow.quality = 15;
makeShadow.inner = false;
makeShadow.knockout = false;
makeShadow.hideObject = false;
//if the stamp is  scaling up in the range the alpha decreases (note:the tween to enlarge is .5)
if (stamp[i].scaleX > 1 && stamp[i].scaleX<3)
changeshadow = changeshadow-.03
stamp[i].filters = new Array(makeShadow)

I am using all as3 for the animantion. I have  two functions containingg tweens that scales up and down based on a timer to trigger
One tween to another (and repeat)
this is what I'm using for the scale up tween if it helps
stampScaleX=new Tween(stamp[i], "scaleX", Strong.easeIn, 1, howLarge, .5, true)
stampScaleY=new Tween(stamp[i], "scaleY", Strong.easeIn, 1, howLarge, .5, true)
HowLarge is = 3 (300%)

Similar Messages

  • Help with flash animation!

    Hi there! My name is Dean and I've bought Adobe Flash CS4 4 months ago. I'm very new to flash and I've already made my first animation -
    http://www.swfcabin.com/open/1267200676
    but I'm here to ask a question.
    Well, I've been riding this cartoon -
    http://www.youtube.com/watch?v=bbUqEPUZ-ds
    and I was wondering, how did they do the hands and legs animation? It looks like the bone tool, but whenever I use the bone tool, I can't get it right! I always get wrong edges! Here are some pictures of my failures -
    http://img202.imageshack.us/gal.php?g=fail5.jpg
    anyway, I just couldn't get it right and I think it's because I draw it wrong.
    Please, any help will be awesome!
    mail: [email protected]
    msn: [email protected]
    Oh and by the way, about the lipsync, I think its a little jumpy, How can i make it better? (Like the Cartoon on top^)
    Thanks!

    Best to do it all in Flash or not Flash at all.
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "edmann1414" <[email protected]> wrote in
    message
    news:eqg06u$73n$[email protected]..
    >I am building my website in Dreamweaver MX 2004 and have
    been using the MX
    >2004
    > version of Flash for some of my slide shows. Those have
    been going well,
    > primarily because I have been following a tutorial, but
    for what I am
    > looking
    > for now, I cannot seem to find the right tutorial. I
    would like for the
    > buttons on my main page to "shoot" onto the page from
    the left just as a
    > user
    > opens the page and then for that animation to stop.
    Currently the buttons
    > are
    > rollover images with links to other areas of my website
    in dreamweaver,
    > and
    > with this animation I would only assume that Flash would
    be necesary. Do
    > I
    > have to remove the buttons in Dreamweaver and just
    create a movie in Flash
    > and
    > then position that movie where the buttons would be? Or
    can I have an
    > introduction movie for the buttons and then have my real
    buttons appear?
    >

  • Help with Reverse Animation On Button

    The buttons are animated with a movie clip inside each button
    and the movie clip plays on rollover, however I need this same
    movie clip inside the buttons to play reversed, when the cursor is
    moved away from the button.
    I know how to do this with an instance but I already made
    each button and fooled around a thousand times with the animation
    and I do not wish to start over again!
    I have only experimented with this type of action script
    before and I must say I am a little lost =(
    Can anyone help me as to how I would go about doing this ?
    Any coding would help.
    I know there is a simple way of doing it with action script,
    but I have no more time to fool around and I need your assistance
    =P
    If you could supply the code it would help me out.
    (I can modify it to work with my page and my buttons)
    Just need something to work off of.
    Maybe a code I can put on the button, or whatever you can
    come up with.
    For future reference,
    thanks

    Without knowing the details of what you have created, or the
    code you have attempted to use, the best I can offer at the moment
    is to say you need to have the reverse playing code of the
    movieclip get triggered by the mouse out event and not stop
    stepping back down the timeline until the _currentframe value
    reaches 1. If another mouse over should occur, then it's your
    decision as to whether it picks up from where it has stepped back
    to or starts from frame 1.
    Starting over again is often the better approach, since what
    you may have created may not be able to facilitate directing things
    to play in reverse.

  • Need a little help with an animated JButton.

    I have a nice little button that on mouse entry runs a morf animation from one picture to another then stops.
    On leaving the button it runs the animation in reverse. The animation is done with two GIF images loaded as
    Icons using ImageIcon. Now this looks really nice, BUT it only dose it the first time the button is entered
    and the first time the button is exited. After this is abruptly switches from the "un-entered" button icon to the
    "entered" button icon (the end frame of the respective GIF animation's). I originally tried using the
    setRolloverIcon etc. When that did not work I thought that I would be able to get the images to be loaded
    each time by adding a MouseListener and using the mousePressed, mouseReleased, mouseEntered,
    mouseExited etc. methods. This gives me the situation described above. In the MouseListener methods a
    line like the following is used:
    ((JButton) e.getSource()).setIcon (new ImageIcon (MainWindow.
    class.getResource ("images/selected.gif")));
    How can I get the Button to run the animation every time it is entered | exited? The GIF from which the
    icons are made are set to run the animation through once, not an end less loop which would not be the
    desired effect.
    Any suggestions would be great
    Thank you
    M Pratten.

    Well I guess I should of just kept trying "lunch helps".
    Any way to get the image to reanimate each time the mouse pointer enters leaves the button I changed the
    code in the mouseListener to something like:
    ImageIcon i = new ImageIcon (MainWindow.class.getResource ("images/selected.gif"));
    i.getImage().flush ();
    ((JButton) e.getSource()).setIcon (i);
    I am assuming the flush puts the GIF animation back at its first frame so it has to redo the animation, which is
    exactly what I want.
    Now if any of the local experts know of a better way of doing this I would be happy to hear about it. But at
    the moment it seems to work just fine.
    Thanks to those that read my post.
    M Pratten.

  • Need help with flash animation and jump to slide

    I have been researching for days on how to build a menu in
    flash 8 that has links to jump to a slide later in the captivate
    lesson.
    The goal:
    I want to have a tab - when clicked on - opens up and shows a
    table of contents. Click on an item and it will jump to that slide.
    Method:
    I used flash 8 to build a tab and pop up menu. Works great.
    But how do I make the buttons or links to jump to slide?
    Is it possible to:
    * - use a roll over image in captivate - pause image and
    click on a button to pop over to the slide - no flash menus...just
    action script to pause and allow clicking.
    * - use a FS Command script from inside the captivate movie
    - java call in button proprieties.
    * - write the menu in flash - use action script to say "on
    release - jump to slide" or "on release - jump to frame" - I have a
    frame counter that I can find the frame number of the slide - but
    how would you get the script to work.
    Please Help -
    Flash not a good friend of mine - so any time I can avoid --
    is great...but it is what it is - i do anything to get it to work.
    Thank you in advance for your help and I really look forward
    to your thoughts.
    Regards -
    Vince

    Hi
    I didn't understand a few things here.
    1. Are you trying these things using Adobe Presenter or this is just plain Powerpoint you are talking about?
    2. Are you trying to view the output on the Slide show or presenter output
    If you are doing it for PowerPoint slide show, try setting the animations using with previous and after previous
    1. first insert the video. Set it to play automatically
    2. Insert the first text box. Apply animation on it saying "with Previous". This will make the animation play as soon as the video starts. If you want some delay apply some delay for the animation in the animation pane, such that the animation appears when the video has content sound
    3. For the remaining text boxes apply animations as "after Previous". This will make the animations play after the previous animation has completed.
    4. Now all you have to do is applay delay to the animations to adjust them as and how you want
    Hope this is what you wanted to achieve
    Thanks
    Mahesh

  • Need help with jerky animation in Flash CC

    Hello,
    I'm creating an animation of a planet orbiting the sun and it is stuttering a little bit no matter what I try.  I'm working in Flash CC, the animation is done with a custom ease and only 2 keyframes (one at the slowest point and one at the fastest).  The end result has to be .mp4 so I am exporting as video.  But even the swf is a little jerky.  My frame rate is 29.97.  The animation path is oval in shape (using an oval guide path which the planet follows), the planet is small, maybe 6 mm across,  and the planet's speed varies as it orbits the sun (thus the custom ease).  The number of frames in the animation is 202, that's how long it takes for the planet to complete one rotation.  That anim is then looped in the movie as a graphic.
    thanks in advance for any help you can give.  

    Here would be a similar example, linear versus an ease tossed in. I made an oval similar to yours (633px by 446px) and just used it as a guide:
    Here's some videos showing the movement I get per frame. You can even see Flash Pro (CS6 in this case) exporting some odd frame choices. For example right before the 5 second mark the circle jumps 2 movements and stays in place for an extra frame (easy to see stepping through it using arrows and Quicktime player). It does this consistently even when using "None" for Quicktime compression, or using a codec.
    Here's some video examples (30FPS over 202 frames, 6.7 seconds):
    Linear Movement
    -60 to 60 ease at the opposite side
    (Source MOV (Animation codec @ 85 quality) to verify MP4 is the same)
    I imagine your results are the same. It's just too much movement for to little time to really get it to play back smooth. Double the time and you'll cut that in half and I think you'll be happier. Increasing FPS beyond 30 might not be a good idea as playback will start to become machine dependant at that resolution and it could bog even worse.

  • Asking for help with my animation

    First, I want to thanks to those that take time to answer and help. I solved the problem of my shivering images, setting the fps to 30. Now, if someone  can help me with this: I need to make a sequence of images (6) flow along the screen continuously. I don't know how to join the last image with the first as a non stop smoothy loop. I know there is a way using the action-scrip window, but I don't remember much because I have not been using this app much lately. Thank you.

    Place the images in separate layers
    Then you take the half part of the last image animation to the starting of frame
    Or placing the half part of the first animation to the last frames

  • Help with and animation

    hi i m trying to make an animation similar to
    http://sstl.cee.uiuc.edu/java/twostory/index.html
    i have made a block moving can anybody help me or advice me how to do make some thing similar..
    thanks....
    package DEMO2;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class DEMO2 {
         public static void main(String[] args) {
         JFrame frame = new demoframe();
         frame.show();
         class demoframe extends JFrame {
         public demoframe() {
         setSize(300, 500);
         setTitle("Earthquake");
         addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {
         System.exit(0);
         Container contentPane = getContentPane();
         canvas = new JPanel();
         contentPane.add(canvas, "Center");
         JPanel p = new JPanel();
         addButton(p, "Start", new ActionListener() {
         public void actionPerformed(ActionEvent evt) {
         rigid b = new rigid(canvas);
         b.start();
         addButton(p, "Close", new ActionListener() {
         public void actionPerformed(ActionEvent evt) {
         canvas.setVisible(false);
         System.exit(0);
         contentPane.add(p, "South");
         public void addButton(Container c, String title, ActionListener a) {
         JButton b = new JButton(title);
         c.add(b);
         b.addActionListener(a);
         private JPanel canvas;
         class rigid extends Thread {
         public rigid(JPanel b) {
         box = b;
         public void draw() {
         Graphics g = box.getGraphics();
         g.fillRect(x, y, XSIZE, YSIZE);
         g.dispose();
         public void move() {
              if (!box.isVisible())
         return;
         Graphics g = box.getGraphics();
         g.setXORMode(box.getBackground());
         g.fillRect(x, y, XSIZE, YSIZE);
         /* int xx; int yy;
         for (int j=1; j<10; j++){
              xx=j*(x-10); yy=j*(y+5);
              g.fillRect(xx,yy,XSIZE, YSIZE);
         x += dx;
         Dimension d = box.getSize();
         if (x < 100) {
         x = 100;
         dx = -dx;
         if (x + XSIZE + 100 >= d.width) {
              x = d.width - XSIZE- 100;
         dx = -dx;
         g.fillRect(x, y, XSIZE, YSIZE);
         g.dispose();
         public void run() {
         try {
         draw();
         for (int i = 1; i <= 1000; i++) {
         move();
         sleep(200);
         } catch (InterruptedException e) {
         private JPanel box;
         private static final int XSIZE = 75;
         private static final int YSIZE = 5;
         private int x = 50;
         private int y = 400;
         private int dx = 2;
         private int dy = 2;
         }

    thanks
    .. there is a new problem when i run this program.. its meshed animation..
    can u plzze advice
    package DEMO2;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class DEMO2 {
         public static void main(String[] args) {
         JFrame frame = new demoframe();
         frame.show();
         class demoframe extends JFrame {
         public demoframe() {
         setSize(300, 500);
         setTitle("Earthquake");
         addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {
         System.exit(0);
         Container contentPane = getContentPane();
         canvas = new JPanel();
         contentPane.add(canvas, "Center");
         JPanel p = new JPanel();
         addButton(p, "Start", new ActionListener() {
         public void actionPerformed(ActionEvent evt) {
         rigid b = new rigid(canvas);
         b.start();
         addButton(p, "Close", new ActionListener() {
         public void actionPerformed(ActionEvent evt) {
         canvas.setVisible(false);
         System.exit(0);
         contentPane.add(p, "South");
         public void addButton(Container c, String title, ActionListener a) {
         JButton b = new JButton(title);
         c.add(b);
         b.addActionListener(a);
         private JPanel canvas;
         class rigid extends Thread {
         public rigid(JPanel b) {
         building = b;
         public void draw() {
              int x1, x2, y1, y2;
              x1=x+20; x2=x+XSIZE-20; y1=y-(YSIZE); y2=y;     
              Graphics g = building.getGraphics();
              g.fillRect(x, y, XSIZE, YSIZE);
              for(int i=1; i<10; i++ ){
                        x1=x+70; x2=x1+XSIZE-30; y1=y-(i*YSIZE); y2=y;
                             g.drawLine(x1, y1, x1, y2);
                             g.drawLine(x2, y1, x2, y2);
                             g.drawLine(x1, y1, x2, y1);
         public void move(){
              if (!building.isVisible())
                   return;
              Graphics g = building.getGraphics();
              g.setXORMode(building.getBackground());
                   g.fillRect(x, y, XSIZE, YSIZE);
                   g.drawLine(x1, y1, x1, y2);
                   g.drawLine(x2, y1, x2, y2);
                   g.drawLine(x1, y1, x2, y1);
              x1=x+20; x2=x+XSIZE-20; y1=y-(YSIZE); y2=y;
              x += dx;
              Dimension d = building.getSize();
              if (x < 100) {
                   x = 100;
                   dx = -dx;
              if (x + XSIZE + 100 >= d.width) {
                   x = d.width - XSIZE- 100;
                   dx = -dx;
                   g.fillRect(x, y, XSIZE, YSIZE);
                   for(int i=1; i<10; i++ ){
                        x1=x+20; x2=x+XSIZE-20; y1=y-(i*YSIZE); y2=y;
                             g.drawLine(x1, y1, x1, y2);
                             g.drawLine(x2, y1, x2, y2);
                             g.drawLine(x1, y1, x2, y1);
         public void run() {
              try {
                   draw();
                   for (int i = 1; i <= 100; i++) {
                        move();
                        sleep(200);
                   } catch (InterruptedException e) {
         private JPanel building;
         private static final int XSIZE = 75;
         private static final int YSIZE = 5;
         private int x = 50;
         private int y = 400;
         private int dx = 2;
         private int x1, x2, y1, y2;
         }

  • Help with simple animation please

    Hello all. I am writing a class and part of it is to make a stick figure walk across the screen. I have searched for tutorials and all I could seem to find is what I have already done. I have one leg moving on my guy now I am trying to get the whole body to move to the right and start again after it reaches the end of screen. I'll post what I have so far. I have started some new coordinates for the body part (the one long line). It didn't go so well in my applet. Before I go through all this trouble figuring out all these different coordinates trying to move each body part one at a time and keeping them aligned, can somebody tell me if I am on the right track or am I making it harder on myself? I can figure out the movement of a leg because I am only moving one end of it but when it comes to the entire (body) line and the circle, that's where I get a little confused. Is there an easier way of doing this? Am I declaring the variables correctly? Without my crazy body variables, the leg moves just fine, just wanted to show what I am trying to do. Thanks for any help on this.
    import java.applet.*;
    import java.awt.*;
    public class Exercise1 extends Applet
    private int index = 0;
    int[] horiz = {130,120,110,100,90,80,70,60,50};
    int[] vert = {310,310,310,310,310,310,310,310,310};
    int[] bu = {85,110,140,110,170,110}; //move upper body to right?
    int[] bl = {85,310,110,310,140,310};//move lower body to right?
    private int sleep = 200;
    public void start()
    index = 0;
    public void paint(Graphics gr)
    gr.drawOval(30,30,80,80);
    gr.drawLine(85,110,bu[index],bl[index]);
    gr.drawLine(0,310,260,310);
    ++index;
    if(index == horiz.length)
    index = 0;
    gr.setColor(Color.BLACK);
    gr.drawLine(85,210,horiz[index],vert[index]);
    try
    Thread.sleep(sleep);
    catch(InterruptedException e)
    repaint();
    }

    FWIW this is how I would approach this problem: I wouldn''t use hardcoded arrays, I would compute positions.
    1. Add an instance field increment of type int to represent the increment (by how many pixels movement is to be effected in the x-direction i.e. horizontally).
    2. Draw a vertical line to represent the body and move it by "increment" pixels at a time, multiplying increment by -1 each time "body" reached the boundaries of its container. Test that to oblivion.
    3. Add a line for a leg, the top end of which would be the lower end of "body" and the bottom end at the center of the baseline. Test that (the leg would stretch terribly, but there you have it, for the time being)
    4. Start to increment the x position of the bottom of the leg by 2 * increment as soon as the horizontal displacement of the bottom of the leg from the body exceeds a certain limit, and stop as soon as it again exceeds the sme linit in the opposite direction. Test that to oblivion.
    5. Add the other leg, making sure the two legs start ahead and behind the body, so that the partial stick figure appears to walk, not hop.
    6. Modify the condition to reverse the movement when any part of the figure, and not just the body, goes outside the boundaries of the container.
    Then, after getting that working, I would start to think about the head and then the arms. Later I would look into mdifying the routine to give the stick man knees and elbows, then maybe ankles and feet... raise a foot off the ground when taking a step... swing his arms as he walks...
    In a nutshell, do this one part at a time, visualizing where the rest will go, and test test test at each stage so you don't have to backtrack too much.
    A word of advice: don't hardcode movement increments into the body of your code, use variables declared and initialized at the top of the program, where it will be easy to find them and change the values.
    db

  • Please Help with moving animation

    Hey, im having trouble figuring out this technique.. where say for instance someone is running past a pole and once they cross the other side a word appears as they run by.
    And when you use a tree and move it across the screen as a transition.
    What should i search to learn these?

    You will also find links to many
    free tutorials in the PremiereProPedia that will quickly show you how things are done in Premiere Pro.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Help with coding - MouseEnter/Leave and Click commands for animated tabbed panel

    Hello!
    I've asked a question similar to this but unfortunately couldn't figure it out!  I'm hoping someone may be able to help now as I'm much clearer about what I need...!
    Here's my Edge Animate project - http://we.tl/JEOuvnK4SX  It's going to be embedded on a Muse website.
    At the moment, it works well, with the animations happening as the mouse is rolled over each icon at the top.  What I'd love to achieve is something very similar but with click actions - When the icon at the top is rolled over it plays and reverseplays but the panel below is only played when the icon is actually clicked - and it holds until another is clicked (so the mouse can wonder around the screen without the information dissappearing), it should then playreverse before the new one appears.
    I'd also like it to begin with 'Concept' pre-selected so users can see the first panel.  At the moment there's a big empty space which makes it look like there's actually something missing.
    So I'd like something like this (hopefully this makes sense!):
    TO BEGIN - ICON (Concept) and PANEL (Concept_1) already activated (CLICK) (see image).  It would also be quite nice if this began as the user scrolled down the page as I already have a few scroll effects on the Muse project.
    MOUSE ENTER:
    sym.getSymbol("ICON").play('Over');
    MOUSE LEAVE:
    sym.getSymbol("ICON").playReverse();
    CLICK:
    < find currently activated "ICON" .playReverse(); >
    < find currently activated "PANEL" .playReverse(); >
    sym.getSymbol("PANEL").play('Over');
    I've been racking my brain over this but I think I just don't know enough code!  Any help would be MASSIVELY appreciated!!  Thanks

    Ok, i will look at mouse events.
    Code to display default panel and icon requires a new line.
    compositionReady:
    // Default Panel: first panel
    sym.getSymbol("Concept").play('Over'); // <== new line
    sym.getSymbol("Concept_1").getSymbolElement().show();
    sym.getSymbol("Concept_1").play("Over");
    sym.setVariable("displayedPanel","Concept_1");

  • Help with 2 buttons, 2 animations, and 2 audio clips

    Hey everyone,
    I'm coming to Edge Animate from After Effects so bear with me here... I'm helping out on a DPS project for a friend and this has me stumped.
    I have an Animate project with 2 animations, 2 audio clips and 2 buttons. Let's call them Animation1, Audio1, and Button1. Animation2, Audio2, and Button2. I want to have the composition load and wait for the user to click a button, the easy part. Now I want to have Animation1 play with Audio1 when the user clicks on Button1 but I don't want any of the other elements (Animation2 etc) to play or be visible. Then vice-versa when the user clicks Button2. I've been able to get the Button1 elements to work but then I can still see Button2's elements. The animations are sync'd to the audio files so they need to play in time with each other. I've searched tutorials on the web but I'm probably not looking for the right thing.
    Any help is much appreciated.
    ra

    resdesign,
    The examples you sent got me up and going.
    I added an action on each button so when the user clicks one the other gets hidden. But after the audio clip linked to the button pressed plays the hidden button remains hidden. Say I click on button1 and audio1 plays, at the end of the clip button2 is still hidden. I've tried a couple different ways to show both buttons again but with no luck. Any thoughts? I really appreciate your help BTW.

  • I need help with a button animation!

    Hi,
    I hope someone can help with a simple-looking problem which
    nonetheless has me stumped!
    I have a feeling that I've missed something obvious.
    I've created a movie clip to act as a button (I've called it
    "abs_button") and placed it on the stage.
    My main movie has one frame.
    Within the "abs_button" movie clip there are 5 layers.
    Labels, actions, default button state, rollover state and rollout
    state.
    Technically, default button state, rollover state and rollout
    state could be on the same layer as they don't overlap, but I've
    given each animation its own layer for clarity.
    FRAME 01.
    Default button state is one frame with a graphic of the
    button. Just a label at the start ("abs_up") and a "stop();" action
    at the end.
    FRAME 02 to 31.
    Rollover state is a 30 frame animation. Label at start
    ("abs_over"), "stop()"; action at the end.
    FRAME 32 to 62.
    Rollout state is a 30 frame animation. Label at start
    ("abs_out"), "stop()"; action at the end.
    All animations were achieved with tweens.
    My initial "abs_button" code:
    on (release) {
    getURL("targetPage.htm", "_self");
    on (rollOver) {
    gotoAndPlay("abs_button", "abs_over");
    on (rollOut) {
    gotoAndPlay("abs_button", "abs_out");
    As it stands, the animation jumps to frame 1 of "abs_out" on
    rollout.
    I need the "abs_over" animation to always play through to the
    end, as the "abs_out" is "abs_over" in reverse (i.e. image grows
    large on rollover and shrinks again on rollout.
    I've tried for 2 days to solve this, but I clearly need help.
    My experiments with variables simply didn't work.
    I would be grateful if someone could tell me where I'm going
    wrong!
    Thanks,
    Andy

    use this:
    on (rollOver) {
    gotoAndPlay("abs_over");
    Since the code is attached directly to the movieclip, you
    don't have to
    identify the clip. A gotoAndPlay() function takes a frame
    number or a
    frame label name as its argument, never the name of the clip
    that
    contains the frame number or name.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412.243.9119

  • Help with a simple animation

    Hello everybody!
    I need a little help about an animation using Lingo!
    I need to make 8 sprites and make them look as a volume controler and then make two bottons ( " - " and " + ") and make it looks like that those two bottons controle the volume by pressing " + " , sprite(1) should appear and then when I press it again sprite(2) should appear and so on till sprite(8); and the same thing for the " - " botton, when pressed, sprite(8) should disappear and when pressed again sprite(7) should disappear and so on...
    Any help will be appreciated!
    Thank you in advance!

    There is certainly nothing at all wrong with the suggestion supplied by pallottadesign, but I thought I might provide an alternative solution. I think I understand how you want this volume control to look, but I may be wrong. One of my favorite techniques is to use imaging lingo to create a "one-sprite widget".
    With this behavior you need only one bitmap member as a sprite on the stage. However you do need an additional 3 bitmap cast members in the cast (but not on the score). You need an + button, - button and a "volume indicator" (like a rectangle) that will be repeated depending on the current volume. These 3 cast members should all be the same height.
    Attach this behavior to a bitmap sprite. It doesnt matter what the bitmap looks like because the script alters the image. There are parameters that will need to be modified, so open the behaviors parameter dialog to do that. I have a simple demo movie I can send you, so send me a private message with your email address if you want it.
    -- VOLUME CONTROL ONE SPRITE WIDGET --
    property spriteNum, pMe, pNumLevels, pDownButton, pUpButton, pVolumeIndicator, pSpacing, pBitDepth, pCurrentVolume, pStartingVolume
    on beginSprite me
      pMe = sprite(spriteNum)
      pCurrentVolume = pStartingVolume
      updateImage(me)
    end
    on mouseUp me
      if the clickLoc[1] - pMe.loc[1] < pDownButton.width then
        if pCurrentVolume > 0 then
          pCurrentVolume = pCurrentVolume - 1
          -- Your code here
          updateImage(me)
        end if
      else if the clickLoc[1] - pMe.loc[1] > pMe.width - pUpButton.width then
        if pCurrentVolume < pNumLevels then
          pCurrentVolume = pCurrentVolume + 1
          -- Your code here
          updateImage(me)
        end if
      end if
    end
    on getPropertyDescriptionList
      description = [:]
      addProp description,#pNumLevels, [#default:1, #format:#integer, #comment:"Number of volume levels"]
      addProp description,#pDownButton, [#default:member(0), #format:#member, #comment:"Volume down button cast member"]
      addProp description,#pUpButton, [#default:member(0), #format:#member, #comment:"Volume up button cast member"]
      addProp description,#pVolumeIndicator, [#default:member(0), #format:#member, #comment:"Volume indicator cast member"]
      addProp description,#pBitDepth, [#default:24, #format:#integer, #comment:"Bit Depth"]
      addProp description,#pSpacing, [#default:1, #format:#integer, #comment:"Spacing"]
      addProp description,#pStartingVolume, [#default:0, #format:#integer, #comment:"Starting volume"]
      return description
    end
    on updateImage me
      imageWidth = pDownButton.width + pUpButton.width + (pNumLevels * pVolumeIndicator.width) + ((pNumLevels + 1) * pSpacing)
      imageHeight = pVolumeIndicator.height
      newImage = image(imageWidth, imageHeight, pBitDepth)
      newImage.copyPixels(pDownButton.member.image, pDownButton.rect, pDownButton.rect)
      repeat with counter = 1 to pNumLevels
        if counter <= pCurrentVolume then
          x1 = pDownButton.width + (counter * pSpacing) + ((counter - 1) * pVolumeIndicator.width)
          y1 = 0
          x2 = x1 + pVolumeIndicator.width
          y2 = pVolumeIndicator.height
          newImage.copyPixels(pVolumeIndicator.member.image, rect(x1,y1,x2,y2) , pVolumeIndicator.rect)
        end if
      end repeat
      newImage.copyPixels(pUpButton.member.image, rect(newImage.width - pUpButton.width, 0, newImage.width, newImage.height), pUpButton.rect)
      pMe.member.image = newImage
      pMe.width = pMe.member.width
      pMe.height = pMe.member.height
      pMe.member.regPoint = point(0,0)
    end

  • I need help with animation with progress bar.

    Hi,
    I need some help with creating something similar to this site (window opening animation with scrub bar):
    http://www.drutex.pl/pl/oferta/okna/okna-pvc/okna-pvc-iglo-5.html
    I'm kinda new to flash and all so some tutorials for such thing would be helpful.
    Thanks in advance
    Oscar

    What this will involve is a movieclip/timeline containing images showing the sequence of the motion (like the frames of a movie film) and a Slider component that changes the frame of that movieclip/timeline based on its position.
    Here is a link to an Actionscript 3 sample file that demonstrates a Slider providing the control of the timeline...
    http://www.nedwebs.com/Flash/AS3_Slider.fla
    You could edit the looks of the Slider component if you like by doubleclicking it and the inner parts you want to modify, or you could create one of your own if you have enough know-how to code it to work.

Maybe you are looking for