Flash CS4 (AC3) movement

suppose one has two buttons "left" and a "right ".
the 'left' moves to the left
and the "right" to the right
and the goal is to move the object "ball"
based on this potential requires that script to do this?

yes, at a minimum, you'll need a keyboardevent listener and listener function.  check the keyboardevent class for sample code.

Similar Messages

  • Flash CS4 "Test Movie" vs Debug/Standalone

    After some rigorous testing on a file that has given me
    multiple issues, I noticed a discrepancy. When I tested in Flash
    CS4 using CTRL-ENTER
    (Win XP SP3 - just FYI, not really issue-relevant I don't
    think), the file previewed just like I expected it to, but
    since it was still in development and not finalized, my code could
    have (read: most likely was) been flawed. However, just to be safe
    I ran it in the Debug Flash Player, and the code did not work. I
    even tried using File>Publish from Flash and played that swf.
    The Standalone Player's results were the same as the Debug
    Player's. The code did not work.
    Is there something I am missing or is this a bug? Why
    wouldn't the Flash CS4 Test Movie Player produce the same results
    as the Standalone Player? Thanks to all who reply.

    I'm in CS4 (see title
    ). I always have strict mode on and I am not loading
    any external data. It's all self-contained. I'm beginning to think
    that it's a memory issue with Event.ENTER_FRAME, but it would make
    more sense to not run properly in the Flash IDE rather than than
    the Standalone Player.

  • Crossdomain.xml allow Flash CS4 Test Movie sandbox?

    If I set the crossdomain to allow all with a wildcard, running test movie on the FLA within Flash CS4 works.  But is there a way to allow my specific computer instead?  I've tried adding my IP address, but that doesn't seem to be working.

    The SWF is attempting to load external assets using an absolute path 'http://mydomain.com/stuff'.

  • Flash CS4: why movie clips are static when exporting to video formats ?

    Does anyone know why the movie clips are non animated when I export my flash animation into a video format ?
    Please see the next flash example I made: (4 KB)
    http://dl.dropbox.com/u/22717206/Flash/flash_movieclip.swf
    And now see how it looks like once exported into video format: (160 KB)
    http://dl.dropbox.com/u/22717206/Flash/Video_movieclip.avi

    You must need a suitable codec for that like DivX codec, it will also import the nested movieclip animations. otherwise  whatever you have on the main timeline is exported for avi. you will get the codec on the export settings for avi.
    Also check this link:
    http://www.adobe.com/devnet/flash/articles/flash_to_video.html

  • Flash CS4 Link to a Movie Clip from inside another Movie Clip

    I am working on a Flash CS4 project which has 5 buttons with 5 corresponding movie clips all on the main timeline. Everything in functional so far.
    My problem is this: I want to be able to mouse click on a particular word in the text inside movie clip 4 ("mc4") and have it link to movie clip 3 ("mc3") (on the main timeline).
    I've tried many things, and I can't get it working.
    I have tried to highlight the word then link it to "mc3" in the properties panel where it says link (I successfully linked to an email address and to an outside website in other parts of the project)....
    I tried to link it in the properties panel to "mc3", I tried & "parent.mc3", "root.mc3";
    Linking it this ways seems to be the simplest, logical thing to do, but I don't know what kind of prefix it needs.
    Then, I tried making the word (inside mc4) an invisible button (button6) then linking it to the mc3, with it's actionscript in the main timeline with the other button functions.
    I tried duplicating mc3 and duplicating invisible button 3 and moving it's hotspot to over the word.
    I tried putting a copy of mc3 and the button inside mc4, with the actionscript also inside mc4.
    I tried duplicating mc3 and calling it mc6, and putting that inside mc4, with the actions back on the main timeline, and tried again with the actions inside mc4.
    I tried with mc6 and invisible button 6 on the main timeline, but that doesn't seem possible.
    I tried using this code from Adobe Actionscript 3.0:
    button6.addEventListener(MouseEvent.CLICK, startMovie);
    function startMovie(e:MouseEvent):void
            this.play("mc6"); [and I also tried with "mc3"]
    Nothing works!! Please, I would appreciate any suggestions!!
    Thanks,
    Suzanne

    If I limit my attention to the second sentence of your posting, then I suggest the following (borrowing from the rest of your posting)...
    If that invisible button6 is inside MC3 (on MC3's main timeline), atop the word you are trying to link to the movieclip, and you just want to make mc4 play by clicking that invisible button6, then assign the following code to the button6 inside MC3...
    button6.addEventListener(MouseEvent.CLICK, startMovie);
    function startMovie(e:MouseEvent):void
            MovieClip(this.parent).MC4.play();
    If I missed, then I missed following your explanation.

  • Flash CS4 won't export to .mov PLEASE HELP ME!!

    Like the title says, i've been trying to export my .fla as a .mov from the Export>Export Movie option in the File menu. It will start exporting but once the progress meter gets to the end it just stops and never finishes.
    I don't think it has anything to do with:
    A: multiple scenes
    B: actionscript directing to each scene
    C: movieclips
    since I was doing the exact same thing in CS3 without a problem.
    What i'm doing now in CS4 that I wasn't in the CS3 version:
    A: Motion tweens
    B: importing .ai files to my library
    C: using symbols created for flash in illustrator from imported .ai files.

    Thank you Zombie. Specifying the length helped me export as a quicktime movie.
    I wouldn't be surprised if there's a rubbish piece of coding in Flash CS4 that doesn't let you export a movie over 1 minute long without specifying the length of movie.
    Ridiculous really. I expect this could be fixed in seconds by Adobe, but instead I'm left trawling the internet for hours wasting budget.

  • Help!! Flash CS3 and CS4 "Test Movie" very slow on OS X

    This is a problem that, having read many forums, affects a
    very large amount of people, though Adobe doesn't care at all. It
    only affects OS X users. I know that it has been addressed many
    times in different forums, but I never actually stumbled across
    anyone having found a solution.
    When I use Flash CS3, and I make any animation, even the
    simplest tween, and I preview it with Test Movie, the result I get
    is an extremely slow playback. Something like half the FPS it
    should be.
    However, when I export the SWF and preview it in the external
    Flash Player or in a browser, it's just fine and fast.
    Another interesting thing is that in CS3, when I open the
    Help panel, the problem with Test Movie only happens like 20% of
    the time. In that case, it only gets solved if I restart or Log Out
    at least. I have no idea why the Help panel being open solves the
    problem, this only shows that this is probably a little graphic
    user interface bug, or something similar, that could be solved very
    very easily.
    In Flash CS4, there is no Help panel, so there is no solution
    to the problem.
    It would be nice to be able to press Cmd + Enter to see the
    movie, and not have to do File > Export > bla bla bla, open
    Finder, Find the SWF, double click it, wait for the browser to
    open... etc...
    I have a brand new 2.5 GHz MacBook Pro, and Test Movie runs
    faster on my 900MHz Pentium III PC!! Funny...
    Here are some links I found about this problem:
    http://bugs.adobe.com/jira/browse/FP-878
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb407896
    http://www.kirupa.com/forum/archive/index.php/t-258991.html
    This is quite ridiculous, and on Adobe's Support page, the
    solution is "Do not use Test Movie."
    And the funny thing is that they didn't even bother to fix
    this in CS4...
    So basically if something doesn't work, Adobe's solution is
    "Don't use it."
    I guess they're right!
    Please, tell me if anyone has or does not have this problem
    or knows anything about it!
    Thanks,
    Mate

    This is a problem that, having read many forums, affects a
    very large amount of people, though Adobe doesn't care at all. It
    only affects OS X users. I know that it has been addressed many
    times in different forums, but I never actually stumbled across
    anyone having found a solution.
    When I use Flash CS3, and I make any animation, even the
    simplest tween, and I preview it with Test Movie, the result I get
    is an extremely slow playback. Something like half the FPS it
    should be.
    However, when I export the SWF and preview it in the external
    Flash Player or in a browser, it's just fine and fast.
    Another interesting thing is that in CS3, when I open the
    Help panel, the problem with Test Movie only happens like 20% of
    the time. In that case, it only gets solved if I restart or Log Out
    at least. I have no idea why the Help panel being open solves the
    problem, this only shows that this is probably a little graphic
    user interface bug, or something similar, that could be solved very
    very easily.
    In Flash CS4, there is no Help panel, so there is no solution
    to the problem.
    It would be nice to be able to press Cmd + Enter to see the
    movie, and not have to do File > Export > bla bla bla, open
    Finder, Find the SWF, double click it, wait for the browser to
    open... etc...
    I have a brand new 2.5 GHz MacBook Pro, and Test Movie runs
    faster on my 900MHz Pentium III PC!! Funny...
    Here are some links I found about this problem:
    http://bugs.adobe.com/jira/browse/FP-878
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb407896
    http://www.kirupa.com/forum/archive/index.php/t-258991.html
    This is quite ridiculous, and on Adobe's Support page, the
    solution is "Do not use Test Movie."
    And the funny thing is that they didn't even bother to fix
    this in CS4...
    So basically if something doesn't work, Adobe's solution is
    "Don't use it."
    I guess they're right!
    Please, tell me if anyone has or does not have this problem
    or knows anything about it!
    Thanks,
    Mate

  • Unable to export swf movie in adobe flash cs4

    First I edited my flash project in flash 8
    after that  I insatlled trial version of adobe flash cs4
    now in my project there are 650 layers
    till then it was ok
    but now now it is giving me trouble with this error
    "The Export Frame for Classes specified in the Publish or Export settings, frame 1, does not exist. No bytecode for ActionScript 2.0 classes or interfaces was exported."
    I am about to complete my project atlast I ended with an error
    Any one plzzz help me...................................
    I am unable to test the movie also

    Hi Mia - yes, definitely start using your external HD! To use it you must connect it to your computer of course. It should have come with the appropriate cable, probably a USB connection. The main issue will be how it is formatted. Many hard drives when they are bought, are formatted for Windows PC machines rather than for Apple MacIntosh computers. If so this would need to be changed, and in the process that would erase anything already stored on it.
    So, firstly connect your external drive to the computer, and turn it on. You should then see a small icon representing that drive appear on your computer's desktop. Control/Click on that and choose the 'Get Info' option from the list of options that appears. The resulting small window will tell you what the format of the drive is. If it is not 'Mac OS Extended', then it probably has to be re-formatted.
    We won't go into how this is done until you tell us it is going to be necessary.
    Assuming all is well with the formatting, you can just drag the photo folders over the icon of the external drive. This will copy them over to that drive. Double-click the icon to open a window showing that this has happened. You can then trash the originals on your computer, freeing up more space.
    Get back to us if you need more help.

  • Problems exporting a movie in Flash CS4

    I'm trying to export a fla file to a mov file in Flash CS4.
    My fla file is 152 mb. It is a 5 minute presentation I created with a 39 second f4v file (video clip) in the file.
    I go to Export / Export Movie. I select Quicktime (mov). I keep the default settings and it starts to cycle through. It gets about half way and I get a message "The export operation failed because it ran out of memory"
    I'm running this on a Mac Pro, System 10.5.8. I have 4 GB of memory. My HD is 232 GB with 155 GB available.
    What is the problem and how can I get this to work?

    Well, for some reason, I've managed to be okay with the idea that all software relying on links is prone to crushing at any given moment during execution of a project, Yes this includes After effects, Illustrator, Indesign_name it. However, one thing I cannot understand or even come to terms with the idea that Flash CS4 cannot export a project of 162mb. My library is organised, My scenes are in perfect order,  I do not even use 3rd party componets in my projects..... but for some reason, I cannot export let alone publish an application file from FLASH CS4.
    My first thought was maybe some thing was wrong with the "flash.ocx" extension, so I took a walk and visited the Adobe site to get an update, but still after re-installing it nothing seems to put a smile on my face_( I've spent sleepless nights on this animation and all I need is to just export/ publish it, however flash exports it halfway and out of a blue the export dialog and the incomplete file vanish) Some times I  even wonder wether there is a vortex on my desktop.
    Another problem in this category am finding is with flash player in my browsers, if it runs in exlporer, then it won't run in firefox, and when I check in the control panel after installing on both browsers, I am so suprised to find 4plugins of flash player, which is not the case with my friends laptops which use 1plugin and an activeX control for the web browsers.
    Any help is very welcome, Am using Dell studio-xps Laptop running a 64bit  Windows Vista OS, 4bg Ram, 1 Terabyte HDD and yes Intel Graphics media card with dedicated memory of 1gb. (Of what use are they if I cannot export a small file of 162mb, am even ashamed to mention it, heeeeeelp  )

  • Flash cs4 not importing ".mov" files

    Hi guys.
    I have just upgraded to Flash CS4
    When I go to import a 2.6 GB .mov file to the stage I get the spinning beach ball of death for 5 minutes then a flash alert box saying that this file type is not supported. See screenshot attached.
    Can anyone help?

    You may be able to create the FLV by using the Adobe Media Encoder directly, instead of through Flash. You might have to use a third party app, maybe the one that created the MOV in the first place. Sorenson Squeeze should be able to handle files of that size.

  • Flash CS4 - Background Colour Change Not Changing in Test Movie

    Hello,
    Whenever I change the document's background colour in Flash CS4 and then "test movie", the background colour remains white. However if I publish it the colour will be the selected colour.
    It's not a huge deal since it publishes right, but I'd really like to be able to test my movie with the correct background colour.
    I'm on Mac OS X 10.6.8, and I am updated to the latest version of CS4.
    Any help would be greatly appreciated,
    Thanks

    Hey there,
    Could you describe the setup or link a file with the problem?  I can't reproduce the problem with basic fades (obviously they should continue to work when you switch the player).  Is it just in the document you're working on, or all documents you create?
    Thanks,
    Jen.

  • Flash CS4 on MacOS 10.6.7 crashing when 'test movie' used

    Hi all,
    I have a MacBook Pro running Mac OS 10.6.7.  I am using Flash CS4 10.0.2.
    I recently upgraded computers from another MacBook Pro, and installed the same version of CS4 on this new one.
    However, given this new computer has lots more RAM and more grunt and is by far less 'clogged up' than my old one (which was about three years old) it crashes all the time when I press CMD-ENTER to test my movies in Flash.
    These are FLA's I've worked on for months on my other computer.  When I open the SWFs in Flash Player (i.e. outside the authoring environment) I do not get any crashes.
    I have noticed the CPU rockets upwards to 100% just before the crash (and hovers around 80% even when nothing is moving on the screen etc).  It doesn't do this in the Flash Player.
    I have scoured the web and can't seem to find what the problem might be.  They're known good FLAs (i.e. they worked on my other computer in the same version of Flash) and this computer should definitely be able to cope with them, given the old one did.  What might be the cause?
    Here's an example of the error report that Mac OS throws up after the crash:
    Process:         Adobe Flash CS4 [43416]
    Path:            /Applications/Adobe Flash CS4/Adobe Flash CS4.app/Contents/MacOS/Adobe Flash CS4
    Identifier:      com.adobe.flash-10.0
    Version:         10.0.2.566 (10.0.2)
    Code Type:       X86 (Native)
    Parent Process:  launchd [146]
    Date/Time:       2011-06-15 15:14:43.937 +1200
    OS Version:      Mac OS X 10.6.7 (10J4138)
    Report Version:  6
    Sleep/Wake UUID: 85F82BE0-C1EA-43C7-9A7C-77DA38363765
    Interval Since Last Report:          177155 sec
    Crashes Since Last Report:           10
    Per-App Interval Since Last Report:  89418 sec
    Per-App Crashes Since Last Report:   10
    Anonymous UUID:                      C8B710B0-DB36-428D-834D-975007911DCD
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00000000ff1c9680
    Crashed Thread:  41
    There's more info in the report but I imagine this is the significant bit.
    If anyone at all can suggest an answer to this problem that fixes it or contributes directly to a fix, I'll send you a thank-you gift of some description regardless of wherever in the world you might be.  I'm losing hours and hours of productivity on this.
    Many thanks!
    G

    As you've discovered some applications don't launch correctly using Migration Assistant. In particular Adobe applications like Acrobat or the Creative Suite should generally be newly installed from their install disks.
    It's probably because Adobe applications spread their resources between many different files in many different places. They also are serialized (so they won't be stolen) requiring secret serialization files to be installed. Some of that probably isn't being copied in a way that will make it work after migration assistant.

  • Flash CS4 Crashing when testing movie

    I am running into Flash CS 4 Professional crashing when I
    test (ctrl + enter) or publish my movie. The final swf file turns
    out corrupted as well. How do I fix this problem?? I am using Flash
    Player 10.

    Thanks for your reply. I have the 10.0.2 Flash update on my pc, I'm not sure about the machines at school but I'm guessing they do as well. I also have 6gb of ram, and am running 64bit windows7. The pc's at school are new Dell's running widows7 and I would think they have at least 4gb of ram. I've attached a file that crashed when I scrubbed the playhead on the pc's at school. I don't have that problem at home. Thanks again for your help.
    Dan
    jdehaan <[email protected]> wrote:
    I would check a couple things - whether the Flash CS4 installations (the ones that crash) have been updated to 10.0.2, and secondly what the machine specs are (how much RAM). There were a number of issues (including crashing while scrubbing) that were worked on at great length for the updater.  If the updater has been installed and the machines have more than 2 gigs of ram, it would be great if you could link to a file that crashes while scrubbing so I can take a look.
    Thanks.
    >

  • Maximum movie stage dimensions in Flash CS4?

    Anyone know what is the maximum movie stage dimensions in Flash CS4? Thanks for any info.

    I don't remember for MX but I know in CS3 and CS4 your movie clips can be much larger than the max stage size (if you need them to be). I guess I misunderstood your original question as the stage size not the movie clip dimensions.

  • Flash CS4- Movie clips suddenly invisible on stage? (Same file OK on other comps/CS5)

    Flash CS4 had been working regularly on my Macbook Pro (Intel - Tiger) for a while, and then suddenly, I opened a file and all the movie clips went from being visible "stills" to invisible and represented only by an "o". I have tried settings, preferences, even uninstall/reinstall, but somehow my settings or something got messed up and I can't view movie clips on the stage.
    I have tried a variety of different .fla files and none allow movie clips to be visible on the stage.The files were created in CS4.
    This is true for movie clips that have 1 frame to many frames.
    When I Publish or Test Movie, the clip is visible and normal, but it is impossible to edit the file without being able to see the movie clips.
    I know that the issue is with my installation of Flash/settings being messed up, not with the file(s) because when opened on other computers (CS4 and CS5), movie clips are visible on the stage, as they should be.
    Example below: In Flash CS4, the stage just has "o"s where I used to be able to see my movie clip, but in the Test Movie, everything is there. To be clear, I could see the movie clips in this exact file, and then the next time I opened it I could no longer see them.
    I am hoping there is an obvious solution that I have overlooked. Help is appreciated in designer-friendly (non-developer) terms.
    Thank you!

    Hi,
    Can you please try a few things for me? This will help us narrow down the issue.
    Test 1: Switch from ActionScript 3.0 to ActionScript 2.0.
    1. Open up the file where you see the "o" instead of your movieclips.
    2. Go to File > Publish Settings.
    3. Switch player target to ActionScript 2.0.
    ** Did your movieclips reappear or is it still showing "o"?
    Test 2: Delete user configuration folder and recreate preferences files.
    1. Quit Flash if it is running.
    2. Delete the following 6 files:
    Volume/Users/<username>/Library/Application Support/Adobe/FlashCS4
    /Users/<username>/Library/Preferences/Flash CS4 Preferences           
    /Users/<username>/Library/Preferences/Flash 10 MRU           
    /Users/<username>/Library/Preferences/com.adobe.flsh-10.0.plist           
    /User/<username>/Library/Application Support/Adobe/Flash CS4/           
    /Library/Application Support/Macromedia/FlashAuthor.cfg
    3. Relaunch Flash and these files will be recreated.
    ** Did this solve your issue?
    Please let me know. Thanks!
    Quynh
    Flash Authoring, QA

Maybe you are looking for