Buttons, movie clips and actionScripts

I've created myself conundrum. In my test movie I have
created two named frames on the screens timeline (home, box); each
content frame consists of a movie clip with a button in it
(home_btn, box_btn). What I'm attempting to do is have the home_btn
button call the movie in "box" and have the box_btn button call the
movie in "home".
If I don't use movie clips the is a simple task,
home_btn.onRelease = function() {
gotoAndPlay("box"); }
but as soon as I place the buttons inside a movie clip the
navigation ceases to work. I'm assuming I'm getting beaten as
something very basic, but unfortunately I can't find it.
Anything thoughts would be greatly appreciated. Thanks
locoLindy

Perfect! That fixed the problem. Many thanks for your help,
I'd have toiled with that for days!
Again, that's for your help!
locoLindy

Similar Messages

  • Nested movie clips and actionscript

    I have this code set up:
    /* This is to get the rollover menu movie clip */
    this.profile_button.onRollOver = function(){
    profile_button.gotoAndStop("on");
    /* This is to get rid of the rollover menu */
    this.profile_button.onRollOut = function(){
    profile_button.gotoAndStop("off");
    /* This tells where to go when someone clicks on menu 1 */
    this.profile_button.profile_menu_1.onRelease = function() {
    gotoAndStop("5");
    /* This tells where to go when someone clicks on menu 2 */
    this.profile_button.profile_menu_2.onRelease = function() {
    gotoAndStop("10");
    This is on the main timeline and menu_1 and _2 are in the
    Profile_button movie clip. When I export I get the drop down menu
    but when I click on the menu items it won't do anything. Any help
    would be much appreciated. Thanks.

    i'm not sure what direction you were going with loading a
    Movie Clip, but there are many ways you could go here, depending on
    what sort of effect you would like as well. One simple way is that
    you could have an invisible button underneath profile_button that
    covers the screen which acts to remove the menu buttons(and itself)
    on rollover. So in other words, rather than
    profile_button.onRollOut, you're doing more like anything other
    than profile_button.onRollOver... make sense? if that doesn't work
    for you, you could check mouse coordinates every x milliseconds by
    setting an interval...

  • Advanced Button with Movie Clip and Fading

    Problem: I'm trying to create a bottun that when you roll
    over it it plays a movie clip and also fades in and out on roll
    out. It is similiar to the three main navigating buttons on the
    following site.
    http://www.fjcruiser.ca/
    the buttons with the compasses that appear are the ones I am
    talking about.
    I already know how to make buttons, I just can't figure out
    the actionscripting to load the movie and also fade in and fade out
    according to roll over and roll out.
    Please help. Thank everyone.

    Amazingly, I actually know exactly how to do this. And it
    only requires about 4 lines of code in the _root layer and on the
    button.
    Instead of having the rollover load an external movie, you
    want the have the rollover execute an on(enterFrame) function that
    tells each newly entered frame of your movie to check to make sure
    the mouse is still on the button, and if not, send the movie
    playhead backwards.
    So, put that sampleMovie right on the stage with the button.
    Then write the code in the _root so that says: as long as the mouse
    is over the button, the movie will advance to nextFrame(). When it
    gets to the next frame, again the code checks to see if the mouse
    is on the button, if so, the movie is instruct to go one more next
    frame (which is tweening the fade, right?) again, over and over
    until the stop() at the last frame. But, if while while entering a
    frame, the code finds that the mouse is no longer over the button,
    it does the same thing but this time instructs prevFrame(), and so
    on, going prevFrame (backwards, in other words) as long as the
    mouse is not on the button.
    The result of the above is a gradual fade in and out,
    depending on whether the mouse is hovering. This, as opposed to an
    abrupt disappearing graphic on(rollOut).
    Click the below link for the .fla that demonstrates this
    technique (which, by the way, I learned from Joshua Davis'
    excellent book, "flash to the core". Check it out at Amazon, or
    wherever. Lots of cool tricks).
    click here for
    fade_Movie example

  • Moving movie clips with ActionScript

    I am trying to move four movie clips with actionscript in a
    circler motion with two buttons, one to rotate the mc’s to
    the left and one button to rotate the mc’s to the right. Here
    is a link to what I am trying to do;
    http://www.us.playstation.com/Lair/
    and it is undrer game features.

    Yes, that's what the code I gave you is intended to do....
    you replace that code with whatever action you need to take to turn
    your movie around.
    I have no idea what your movieclip is doing, but I'm guessing
    by your response that if it was an arrow pointing left to right
    (just an example), you want it to be pointing right to left when
    the left arrow is pressed. If you want an immediate turn around,
    then the simplest way to do that is to have another frame
    containing the movieclip that it moves to where it faces the other
    direction--and to have it appear turned around, from the toolbar
    you select Modify -> Transform -> Flip Horizontal.
    So the movieclip would live inside another movieclip that has
    two frames with stop()'s for each frame. In the first frame you
    would have the subclip facing left to right, and in the second you
    would have it facing right to left. If we call that 2-framed
    movieclip "walker", the code I provided before would
    become...

  • Unable to edit Flash file - Can't enter inside buttons/movie clips.

    Hi
    I am in the middle of creating a website using Flash CS5. I opened up my .Fla file one day to continue my work but I am no unable to access buttons and movie clips. When creating movie clips or buttons I am unable to get inside them, when I hover my mouse over them there is a white hand icon which never used to be there it was always just a normal mouse icon. I double click to enter inside the buttons/movie clips but nothing happens. This happens to existing movie clips and buttons on the page and even when I create new ones. Can anyone please help.. I really don't wanna have to start this website again!!
    thanks!

    Hi,
    This would normally happen when you have a Button symbol on stage and the 'Enable Simple Buttons' setting is enabled.
    Can you check in your Control menu, if the option 'Enable Simple Buttons' is enabled? If it is, click on the option to disable it and then try double clicking on your symbols.
    In case you still face the issue, can you send across your test file for investigation.
    Thanks!
    -Nipun

  • A really annoying problem with a button/movie clip

    I am having a problem with a button! its driving me insane
    because i managed to do it last week, but that was by chance and
    now i can't remember how i did it!
    I can get the button (i'm using gelright from the common
    libraries panel) and convert it to a movie clip(by pressing F8) and
    even attach a behaviour but when i play the movie it doen't work!
    when i move the curser over the button it changes into a hand, but
    will not act like a button, even though i have set the behaviour to
    'on release, go to and play keyframe 2'.
    Please help me, for the sake of my laptop goin through the
    wall!

    virgosam20 wrote:
    > first, i found the button i wanted in the common
    libraries (gelright) and
    > added it to the stage. I resized it and converted it
    into a symbol as a movie
    > clip. Then it got added to my library.
    > Then i deleted it from the stage and replaced it with
    the movie cip version i
    > had just converted it to. so now i have the same object
    on the stage, but now
    > its a movie clip and not a button.
    ok - you are running yourself around in circles - why did you
    delete it to the stage only to add it
    again? once you converted it to a movie clip, you had what
    you wanted on the stage - but then you
    deleted it and dragged another instance of the same symbol
    back onto the stage - there's no reason
    to do that.
    > Then i double clicked on it to bring up the movie clip
    timeline, but instead
    > of saying 'top, down, over, hit' (or whatever it says),
    it jsut said 'layer 1'
    > (but this was not my original stage as i have a number
    of layers on that one).
    Right - this is expected because yoyu are now inside the
    movie clip timeline - not the button timeline.
    > When i double clicked on it again, it brought up the
    right headings (top, down,
    > over, etc),
    Right - because by double clicking the button symbol you were
    then brought to "edit mode" for the
    button symbol.
    but there were about 5 layers that showed the different
    layers for
    > the original button.
    Huh? What "5 layers"? What do you mean "original" button -
    per your description there has only ever
    been 1 button you have been working with.
    > I think i have to add the button to each of the
    headings, bt there is no room,
    Lost you completely now - what do you mean add the button to
    each heading? I have no clue what you mean.
    > as when i did it before, there was only one layer for it
    and i had to insert
    > the key frames myself.
    Still losing you here.
    > I then added a behaviour to it using the Behaviours
    pannel, (selected
    > movieclip, then 'go to and play....') and it appears in
    the behaviours pannel.
    > But when i got to Play Movie, although the curser
    changes into a hand, the
    > button does not work.
    That's because you are applying a behavior for a button to a
    movie clip instead.
    I think you went wrong when you converted the button to a
    movie clip - i have no idea why you did
    that or why to think your button needs to be in a movie clip.
    >
    > Hope that can help you with what i've done and you can
    tell me where i've gone
    > wrong.
    >
    I just think you don't understand how timelines, symbols or
    buttons work yet in flash.
    1. drag a button to the stage.
    2. select it and open the Behaviors panel (dont double click
    it to edit it).
    3. add your actions.
    4. test movie.
    (no need for a movie clip here.
    -chris

  • Button movie clip

    hello,
    i am building a full flash site, and i have created animated
    buttons seperatley,outwith the main fla, and i have imported them
    into the main timeline. The button file is a movie clip,and works
    beautifully when testing from its own fla,but it does not work (no
    animation on roll over) when i embed it into my main site. Below i
    have trhe action script
    On top level main timeline,where movie clips reside,in one
    keyframe -
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    this.onRollOver = function(){
    rewind = false;
    play();
    this.onRollOut = function(){
    rewind = true;
    this.onRelease = function(){
    getURL("
    http://www.kirupa.com","_blank");
    within each button movie clip
    stop();
    this.onEnterFrame = function(){
    if(rewind == true){
    prevFrame();
    this.onRollOver = function(){
    rewind = false;
    play();
    this.onRollOut = function(){
    rewind = true;
    this.onRelease = function(){
    getURL("
    http://www.siteName.co.uk","_blank");
    any ideas ?
    hope you can help !

    This is what I came up with and it seems to work... can this
    be refined and improved on?
    For example, what if I want it to return to its original
    value when clicked a second time?

  • Button Movie Clips Loops Ad Nauseum

    Greetings
    I have a button that is a movie clip that is set up with animations triggered with MOUSE_OVER and MOUSE_OUT event listeners.  The glitch is that once the mouse is over the button ... each ensuing pixel that the mouse is moved, loops the animation again.  That probably didn't make a whole lot of sense, so I posted the file on my test site (http://www.savagepixels.com/test/test.html).  You have to drag your mouse slowly across the button to see this. The bottom part of the button works as I'd expect.  When you roll over the text at the bottom of the button, everything functions as it should.  The looping problem starts when you roll over the image portion of the button.  For some reason it considers each consecutive pixel rolled over to be a new event and consequently triggers the "over" animation again.
    The code I have is below.  I've commented out the MOUSE_OUT function for now.  There is also a screenshot at the above link of my Layers palette for the button clip in question.  I put a "stop" label at each frame that has an action so you see the actions used.
    Thanks for helping!
    oneBedButton_mc.buttonMode = true;
    oneBedButton_mc.addEventListener(MouseEvent.MOUSE_OVER, overEffect);
    //oneBedButton_mc.addEventListener(MouseEvent.MOUSE_OUT, outEffect);
    function overEffect (e:MouseEvent)
        oneBedButton_mc.gotoAndPlay("over");
    function outEffect (e:MouseEvent)
        oneBedButton_mc.gotoAndPlay("out");

    That was helpful. I had one of images in the button movie clip that wasn't a movie-clip type symbol ... it was just a static .png image.  Once I converted that into a movie clip, the repetitious looing went away.
    There is still some weirdness if you refresh that same link ... (http://www.savagepixels.com/test/test.html) if you roll over the lower part of the button where the text "One Bedroom + Study" is, and then move your mouse up over the image portion, the whole MOUSE_OVER event gets triggered again.  This is weird because there are no actions whatsover in the button movie clip except a few stop(); keyframes.  It treats the image as a separate button.  Any ideas on what is causing that event to be triggered in this way?

  • Casting a 3d movie clip in actionscript

    Hello All,
    I'm new to flash and actionscripting (i come from the land of ansi c but have traveled extensively). I've created a great animated animated 3d movie clip and want to have them generated on the stage in relation to an xml file. I've gotten this to work with a 2d movie clip but am running into problems casting a 3d object.
    my object (a movie clip - boxContainer with an instance name of boxContainer_mc) is built out of all movie clips in the following way (shown in tree form):
    boxContainer
    -bottomBox
    ---boxFront
    ---boxLeft
    ---boxRight
    ---boxTop
    ---shadowFront
    ---shadowLeft
    ---shadowRight
    ---gradientLeft
    ---gradientRight
    ---gradientFront
    -topBox (this movie clip contains an animation that is controlled through a MouseEvent:Click)
    ---left
    ---right
    ---top
    ---back
    This animates smoothly through flash, but doesn't work when I try to cast the movie clip in actionscript 3 using the following code:
    var boxContainer_mc:boxContainer = new boxContainer();
    addChild(boxContainer_mc);
    When I try to test the swf file I recieve the following errors:
    1046: Type was not found or was not a compile-time constant:boxContainer
    1180: Call to a possibly undefined method boxContainer
    any ideas?

    If this is a library item that you named boxContainer in the library, you need to designate that name as the linkage ID for the movie.  Right click on it in the library, select Linkage from the menu that appears, and in the interface that appears select the Export for Actionscript option (another will be slected automatically).  Be sure your Class name appears as you have it coded and click ok.

  • Subject : Slideshow looks bad  Hello guys  I have a project in my Final Cut just about done.  I want to add my slideshow as part of the project and burn it to DVD.  In my slideshow, there are some stills from the movie clips and some downloaded from the i

    Subject : Slideshow looks bad
    Hello guys
    I have a project in my Final Cut just about done.  I want to add my slideshow as part ofthe project and burn it to DVD.  Inmy slideshow, there are some stills from the movie clips and some downloadedfrom the internet but they all look blur when playback and even worse if Iapply Ken Burn to it.   Pleasesome one can tell my how to do it right or it can’t be done because thedownload quality and stills from the clip are not suitable or slideshow.  Thank you
    PSC

    Thank you Ross.
    The entire DVD containing Quick Time movies (Final CutExpress project) and slideshow was done in iPhoto.  The Final Cut project was rendered prior to export to QT,  the slideshow was sent to iDVD withoutrendering. The slideshow with most of the pictures from my still camera incombination with stills from movie clips and some downloaded from the Internet.After burning, the movie playback is perfect but the slideshow is not.  The slideshow containing 3 differentkinds of pictures; those from my still camera looks OK; the stills from themovie clips and from the Internet are not.  I don’t have much knowledge in this game, but I think NTSCwith frame size 720x480, and the downloaded picture Item Property shows most ofthem are between 400 to 500 x 300 to 600, may be both of them are not suitablefor TV screen while the stills from my still camera looks OK because they are2048x1536.  Please enlightenme.  Once again, thank you so much,I really appreciate the time you offered.
    psc

  • Difficulties with movie clips and frames

    This is really irking me.
    I am extremely new to Flash so please bear with me. I am assuming that this is a simple, easy to fix problem that I am having. I have Adobe Flash Professional CS5.5.
    What I am trying to do is display a sequence of images after other movie clips stop playing.
    The image sequence itself does what it is supposed to and works properly, and the other movie clips also are successful. However, whenever I try to put the movie clips for the images in frames or keyframes, the beginning movie clips only play part of the way before the images show up. This happens even though the images' movie clips are on frames/keyframes (I've tried both) after the other movie clips.
    The movie clips that are supposed to play first are each on a separate layer and there are two of them.
    The first layer is called "tree" and the second is called "text"
    The tree layer has a 45-frame gif animation that I have turned into a movie clip. I have created a motion tween and changed its alpha so that the gif has a fading in and out effect. I also have it so that it stops replaying once it reaches the last frame. I am using stop(); for this.
    The text layer has a 40-frame gif animation that I have also turned into a gif. This gif is also a movie clip and also has motion tween. Its alpha has also been changed.
    Both tree and text play together successfully and how I want them to.
    The sequence of images is three separate images, each a different layer, that fade into eachother. These images are pngs, therefore they aren't gifs nor do they have their own frames.
    The bottom layer is called floor1 and has frames 1 through 50 of motion tween and alpha adjustments fading the png image. The image is a movie clip.
    The layer on top is called floor2 and has frames 51-100 of a different png image fading.
    The very top layer is called floor3 and has frames 101-150 of yet another png fading.
    The images are successful in doing what they are supposed to.
    Layers tree and text are one fla file, and layers floor1, floor2, and floor3 are a separate fla file.
    When I copy the frames from layers floor1, floor2, and floor3 into a keyframe after layers text and tree, they transfer properly, but when I test the animation, the image sequence shows up a lot sooner than it is supposed to, interrupting the movie clips on the layers text and tree. I have tried moving the floor# layers' keyframes farther down the timeline, but then the other movie clips just stop.
    In the fla file with layers text and tree, I've imported the gifs into the library and then put them onto the stage.
    In the fla file with the floor# layers, I've imported the pngs into the stage.
    Here's what the text and tree layers look like:
    Here's what the floor# layers look like:
    The rest of the frames for the floor#s...
    So, I thought that the problem was that I needed to delay the image squence. I looked around and found no code or anything for that..
    Afterwards, I thought that it was because I had imported the tree and text gifs to the library before putting them on the stage.
    I opened a new fla and imported the "tree" gif straight to the stage.
    I figured that this should work because then it would show each of the individual frames in the movie clips, which it doesn't do in the above pictures. By importing the gif like this, it does show the individual frames. I've tested this with the image sequence and it works fine. But I have a problem with this method too..
    I select all of the frames for the gif to convert into a symbol, so I can add a motion tween and mess with the alpha. However, only the last frame is converted into a movie clip. Well actually no... Only the circled frames below are turned into the movie clip. Even when all of the frames are selected.  This isn't very helpful because then I can't change the alpha for the entire gif nor can I create a motion tween without getting a message saying that the motion tween could not be applied to all of the frames.
    Here's what this version of "tree" looks like.
    And the frames continue like so until 135.
    The frames that are turned into the movie clip are circled below.
    If I can solve the issue that I'm having with the tree shown in the two pictures above this sentence, then I can display the movie clips and image sequence without a problem. It wouldn't be quite how I had intended it to be, but it would be successful and would still work.
    If I can fix the problem with the image sequence showing up to early, and of the tree and text movie clips being cut off, then this project would also be successful and it would be how I had wanted it to be.
    If you need clarification, let me know and I'll explain something better.
    I am not willing to provide a download link in this forum for my fla files, but I can email them to you if you would like a look. I just don't want someone to be able to find them and take them by doing a google search.
    I have uploaded two swfs though.
    The first is of the tree and text layers/movie clips working as they are supposed to. The second is of the image sequence (floor1, floor2, floor3) doing what it is supposed to.
    Text and tree: http://glassoliverdesigns.weebly.com/uploads/1/0/6/5/10653451/tfg1.swf
    Floor1, floor2, floor3: http://glassoliverdesigns.weebly.com/uploads/1/0/6/5/10653451/tfg2.swf
    Notice how at the end of the text and tree swf, when the text stops the thing in the background keeps flashing. If that can keep flashing WHILE the images appear, then that would be great.
    TL;DR: I want the floor# flash to show up after the text and tree flash but I keep having problems and nothing I try is working properly.

    Very concise question, appreciate the screenshots. One thing that motion tweens don't always show very well is keyframes. Let me clear a few things up and see if it helps.
    Go back to what you wanted to do originally, which is copying the frames from one document to another. This is perfectly fine and to clear it up, it will also copy any library elements (images, clips, etc) that are required to copy those frames for you, so you do not need to import them yourself.
    To successfully copy frames (not symbols), select the first frame of the frames you want to copy, hold shift and select the last frame (alternatively double clicking anywhere in the blue motion tween should select it all as well). Now right-click and "Copy Frames". Now go into your new document, select a frame, right-click and select Paste Frames. You will see the same frames copied over, the blue representing the tween and keyframes came with it and you finally will notice all your images/etc were copied into your library.
    Now is a good time to manage the library clutter that was just copied in, if you're a clean freak like me.
    This process is the same, as you tried, for the other documents you want to copy in. If any resources match in name then Flash will ask you if you want to "overwrite" that library item. If you do that,  you will break one of your previous animations. Make sure that's not the case.
    The common gotcha here is not knowing how to slide frames over properly. If overwriting isn't the issue, this is what I suspect your problem is and as you expand/contract the timeline the keyframes aren't going with you.
    For example if I import 2 clips with fade in/out and move keyframes as you did I'll get something like this:
    Now moving them over I would be very careful to select all of the frames I want to move via the methods above. Click the first frame, hold shift and select the last frame, or double-click anywhere in the middle of the blue. The selection of frames:
    Now I simply drag my selected frames to the right, notice the keyframes stay as they should (the black dots):
    The animation plays as expected.
    Lastly I'm not sure if you've ever used the panel but you should really get used to the Motion Editor. This gives you control over easing as well as shows you an in-depth view of the keyframes that exist in a selected motion tween.
    At first this panel may look complex but it simply represents the basic properties you can animate. Any more properties you animate can be added in here. I moved the X, Y and Alpha properties of my object. So you can see over the frames 30-60 what I did. You can also adjust basic easing here.
    If your animations don't look correct you can select a motion tween, open the motion editor and verify the keyframes look correct. Scrub the timeline and look at the values you're interested in. Alpha for example, for you.
    If you don't see any keyframes when you scrub the timeline, you moved your frames over incorrectly and the keyframes probably exist in a different place and therefore it appears incorrect.

  • How to add button inside move clip and call it from main timeline?

    Hi,
    On the main timeline I  have a movie clip called clock_mc and playBtn
    playBtn is  placed in the center of clock_mc
    When you press playBtn clock_mc starts playing
    playBtn.addEventListener(MouseEvent.CLICK, playClock);
    function playClock(event:MouseEvent):void
        if (event.target == playBtn)
            clock_mc.play();
            playBtn.visible = false;
            trace ("play button was clicked");
    This is working fine for me.
    But I want to add replayBtn to the last frame of clock_mc and set up the function on main Timeline.
    Another words when the clock_mc rich last frame you see replayBtn.
    code example:
    replayBtn.addEventListener(MouseEvent.CLICK, playClock);
        if (event.target == replayBtn)
            clock_mc.play();
            replayBtn.visible = false;
            trace ("replay button was clicked");
    I've tryed to placed the replayBtn on the stage on the main timeline and I've set it up to replayBtn.visible = false;
    And then I add replayBtn.visible = true; to last AS frame of clock_mc but it wont work
    Even when I put the button physically to the last frame of clock_mc it will not work either.
    Please help

    I've solved the problem:-)
    I've set replayBtn.visible = false; on first frame of clock_mc
    and  replayBtn.visible = true; at the last frame
    and than as you sugested I'v add:
    clock_mc.replayBtn.addEventListener(MouseEvent.CLICK, replayClock);
    function replayClock(event:MouseEvent):void
            clock_mc.play();
            trace ("replay button was clicked");
    I couldn't see replayBtn at the firs stage because I have clockTween assosiated with clock:
    clockTween = new Tween(clock_mc, "x", Regular.easeOut, -469,438, .5, true);
    and I had replyBtn in the wrong place so when clock_mc was coming up on the stage replayBtn was on the left side of the stage :/
    Now I have to solve only one thing.
    Maybe you would have any suggestions please.
    I've set up stop(); in a first frame of clock_mc
    that when you see clock_mc sliding in it has to wait for playBtn to be clicked
    because I have two tween:
            clockTween = new Tween(clock_mc, "x", Regular.easeOut, -469,438, .5, true);
            playTween = new Tween(playBtn, "x", Regular.easeOut, -720,514, .5, true);
            playBtn.visible = true;
    so when you click on playBtn:
    function playClock(event:MouseEvent):void
        if (event.target == playBtn)
            clock_mc.play();
            playBtn.visible = false;
            trace ("play button was clicked");
    everythink is working fine except when I clik on replayBtn it play for I sec because there is stop(); on the first frame of clock_mc

  • How do I move a movie clip in actionscript 3.0?

    Let me start off by thanking Everyone who have help me on Adobe Forums! it helps a ton i am new to actionscript and am trying my hardest to learn it so thank you i cant tell you how it means!
    I have  a movie clip of an acorn named "games" and inside this i have another movie clip named "em_games" when it is click i want to to play out an animation just changing the y coordinates from where the acorn sits in the tree and fall to the ground also when it hit the ground i want it to fire off an animation it has nested inside of it where it cracks open and a piece of paper fly upward where it rests at the top of the screen.i have not moved many objects through actionscript 3.0.
    thanks again to everyone who has helped me out!

    One way to move an object using AS3 is to use the built-in Tween class.  You should look it up in the help documentation for details, or search Google for a tutorial. 
    There are also third party tweening clsses such as TweenLite and Tweener that you could use, though if you are just beginning that might be a lesson better left to more experience since it involves downloading/installing the classes.
    You could also just use an ENTER_FRAME approach to have the y property of the movieclip continually change until it reaches its final value.

  • A question about movie clips and the eraser

    So I'm kinda new to flash and whatnot, probably not nearly as
    good as half you people with the scripting and I donno what half of
    things you say are.. and yeah.. but I'll learn one day. :]
    Anyways.. so I want to use the eraser tool to erase a
    graphic, but it doesn't seem to be able to do that. Basically I
    have this picture of an eraser and when I l click the link I want
    the eraser to erase the page, but the thing that actually could
    erase doesn't seem to erase things unless they're made in flash.
    Suggestions???
    Also, how do you make a movie clip stop moving when you hover
    over it?

    Ok - let's go step by step:
    Re-re wrote:
    > In flash CS3 there's an eraser tool that lets you erase
    things, but doesn't let
    > you erase graphics from what I can see.
    "Graphics" is a pretty general term - it can mean anything
    from vectors to bitmaps to symbol
    instances. I have to assume that you are referring to
    imported graphics. Please clarify.
    If you are finding the eraser tool does not erase "graphics"
    then you are either trying to erase a
    bitmap or an instance.
    If bitmap: you must break it apart or Trace Bitmap (convert
    to vectors) before using the eraser
    tool. More importantly, if you are trying to erase part of a
    bitmap, it is probably more
    advantageous to go back to the original source file and edit
    it in your graphics editor and
    re-import into flash.
    If it is an instance of a Graphic symbol, double click the
    symbol to enter Edit Mode - then use the
    eraser tool (assuming the artwork inside this symbol is
    vector art. If a bitmap refer to the
    previous steps.
    >
    > But I have this button that looks like an eraser, and
    when it's clicked I want
    > the eraser to swipe across the page and erase it,
    leaving it white from behind,
    > but sence the ereaser tool in flash doesn't seem to let
    me erase graphics, I
    > was trying to figure out how to exicute my idea.
    Here's where my confusion increases - this is a different
    issue from the first one right? The eraser
    tool and this eraser button are 2 different things? Let's
    assume this eraser button is something you
    made ok? But your last scentence still confuses me - what
    does the Flash eraser tool have to do with
    your eraser button?
    What I think you want might be found by going to
    www.flashkit.com and searching for "scratch lottery
    ticket" or similar.
    >
    > Also, I have a movie clip with a botton on it, and the
    movie clip rotates
    > consantly. I want it to stop rotating when I hover over
    the botton. How do I do
    > that?
    Give the MC an instance name and target it on rollOver of the
    button:
    on (rollOver) {
    myMC.stop();
    Chris Georgenes
    Adobe Community Expert
    www.mudbubble.com
    www.keyframer.com
    www.howtocheatinflash.com

  • Creating instances of a movie clip using Actionscript

    I have a script that pulls a specified amount of Movie clips
    from the library to the stage, and that part of my script works. I
    want to add a button that will stop the movie clips but the Movie
    clips do not have instance names since they were pulled onto the
    stage from my script. I was wondering if anyone had an idea on how
    I can do this.

    stop();
    var _sixSidedDie:Dice;
    chooseDice_btn.addEventListener(MouseEvent.CLICK, onClick1);
    random_mc.addEventListener(MouseEvent.CLICK, onClick2);
    random_mc.buttonMode = true;
    function onClick1(event:MouseEvent):void
    var diceTotal:Number = parseInt(totalDice_cb.text);
    gotoAndStop(2);
    for(var i:Number = 0; i < diceTotal; i++)
    _sixSidedDie = new Dice();
    _sixSidedDie.label = "SixDie" + i;
    _sixSidedDie.name = "sixDie" + i;
    addChild(_sixSidedDie);
    if(i == 0)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = 96;
    _sixSidedDie.y = 115.7;
    else if(0 < i && i < 5)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = i * 168 + 96;
    _sixSidedDie.y = 115.7;
    else if(4 < i && i < 10)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = (i - 5) * 168 + 96;
    _sixSidedDie.y = 276;
    else if(9 < i && i < 15)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = (i - 10) * 168 + 96;
    _sixSidedDie.y = 438;
    else if(14 < i && i < 20)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = (i - 15) * 168 + 96;
    _sixSidedDie.y = 598;
    function onClick2(event:MouseEvent):void
    event.target.sixDie0.gotoAndStop(Math.ceil(Math.random() *
    6));

Maybe you are looking for

  • Read Only condition on RadioGroup item

    I have a RadioGroup item on my page that is conditionally set to read only (using a function in the read-only condition type). I have a process that is updating the table with the value of the radio item ie. update table set column_name = :P1_RADIO I

  • Query on synchronization

    Hi, I have a query on synchronization. When an object is accessed by two or more threads simultaneously, we use the synchronize keyword to prevent two threads simultaneos access. So on which this lock is obtained either it is on the object or the syn

  • [solved] Cheat sheet application

    Hi, I am looking for a cheat sheet application. Ideally it should work like the one in Gmail. In Gmail when you click ? you get a nice semi-transparent cheat sheet shown. Is there an application that allows me to display my own cheat sheet system-wid

  • Intrastat wrong file format

    Hi Gurus, I am customizing the INTRASTAT for Spain and everything works fine until the moment we create the file. This file should have different lines for every different information in the document, but what the system is doing is creating the file

  • Problems w/ headphones

    I have always had problems with my MacBook Pro with regards to headphone usage, but now things have just become intolerable. Ever since I got it, plugging headphones in didn't switch it over to 'headphones' mode immediatly - it didn't even give me th