Flash 5 speed in movieclip duplication

this is my situation:
I have a "cube" matrix containing boolean values: its
dimension is 10 x 10 x 10.
I have an isometric cube movieclip: it rapresents a matrix
cell.
In the render function of the matrix i clicle on the 3
dimensions X, Y, Z; if the boolen value is true then I duplicate
the movieclip and I put it in the right place (right coordinates).
If I have few "true" value there's no problem....
I tried to fill my matrix only with true values... the render
funcion was very slow (about 2 seconds) for my purpose (it
duplicates and creates 1000 (10 x 10 x 10) movieclips).
is it a Flash limit (or Flash 5 limit!!!!!)?
are new Flash releases optimized in movieclip duplication?
thanks a lot

create a new directory and save your fla (with a new name) in that directory.  restart your computer and then open that new fla in flash cs 5.5 and see if it performs better.

Similar Messages

  • Flash Slide  presentation and movieclip looping

    Hi,
    Im having a problem with the flash slide presentation. I have
    on the main timeline of one of my slides a movieclip. When i play
    the movie, the clip will loop endlessley. I would like the movie
    clip to play just once. In a regular flash movie this would not be
    a problem - i could put a stop action on the last frame of the
    movieclip. but, doing that in the context of a flash slide freezes
    the movieclip at the begining so it does not play at all..
    help!

    Ok, Ive managed to solve item 2. - if you set in the slide
    component inspector - "playHidden=false" then the slide animation
    will restart any time you reenter the slide. Im still lacking an
    understanding of how to stop a motion tween from repeating itself
    when it's contained within a movie clip as a motion tween timeline
    cannot recieve fram actions apparently...

  • Changing the speed of MovieClip

    Hi, I am new to Flash and Actionscript and am currently working on some code pulled from another post to try and learn from what others are doing or have done. I have created a star movieclip and am attempting to move it randomly accross the stage in a relatively slow speed. When I run it, it moves randomly but way too fast. I have spent the last 6 hours playing with the code, researching help files and also looking up other discussions but nothing seems to be helping. Here is what I have so far. My apologies if the code looks like a hack. This is being done in CS4 if that matters at all. If anyone could shed some more light on how to handle controlling the speed or rate of random movement with some insight, I would be greatful.
    Thanks,
    Ather
    //-- import the flash classes first for tweening
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    //-- the ENTER FRAME event is needed to animate and move objects via script and moves it through frames
    addEventListener(Event.ENTER_FRAME, starMove);
    //-- this function keeps moving the star across the screen
    function starMove(e:Event):void {
        var Speed:Number = 5;
        var Sx:Number;  // x speed
        var Sy:Number;  // y speed
        var dx:int = Math.random();
        var dy:int = Math.random();
        star_mc.x = (Math.random() * stage.stageWidth);
        star_mc.y = (Math.random() * stage.stageHeight);
        Sx = Math.random() * Speed;
        Sy = Math.random() * Speed;
        star_mc.x += Sx * dx;
        star_mc.y += Sy * dy;

    The problem is that you recalculate all the parameters inside enterFrame event listener and I don't see any algorithm that makes sense in terms of these calculation. Here is an example how it can be done in principal (replace star Sprite with you object):
    // replace it with your star
    var star:Sprite;
    // speed along x
    var sx:Number;
    // speed along y
    var sy:Number;
    // direction along x
    var dx:Number;
    // direction along y
    var dy:Number;
    // maximum speed
    var maxSpeed:Number = 5;
    init();
    function init():void
         star = new Sprite();
         var g:Graphics = star.graphics;
         g.beginFill(0xff0000);
         g.drawRect(0, 0, 20, 20);
         g.endFill();
         addChild(star);
         // position it so it is always visible at start
         star.x = stage.stageWidth * .25 + Math.random() * stage.stageWidth * .5;
         star.y = stage.stageHeight * .25 + Math.random() * stage.stageHeight * .5;
         // initital parameters are random
         sx = Math.random() * maxSpeed;
         sy = Math.random() * maxSpeed;
         dx = Math.random() > .5 ? 1 : -1;
         dy = Math.random() > .5 ? 1 : -1;
         // start animation
         addEventListener(Event.ENTER_FRAME, moveStar);
    function moveStar(e:Event):void
         star.x += sx * dx;
         star.y += sy * dx;

  • DIscrepancy between Flash Playback Speed and SWF

    I'm experiencing a fairly signifigant DIscrepancy between rate of apparant motion in the flash files Im working on, and "speed" of the "finished" SWFs.
    Put another way, what appears to be a reasonable speed for a tween in Flash, is a tad too fast when I view the work as a swf preview.
    I would rather find a solid method of working with the images Im creating to determine the proper lengths ..and speed of these tweens prior to publishing a preview and then needing to go back and hand alter the length of the tweens I've created.
    A "real time" environment would greatly increase the immediacy of creating such " files"
    What can you suggest to synchronize these "playback speeds"?
    Thank you.

    How are you creating these tweens?  If you are using coded tweens, what are you using for code?

  • Flash error in computing movieClip width

    Can somebody verify that this can be reproduced?
    1. Create a new flash document.
    2. Draw a horizontal line on stage of width 230, and with a
    stroke thickness of 6
    3. Convert it to a movieClip, and give it an instance name of
    mcLine.
    4. In an actions layer, trace mcLine._width
    Is anyone else getting a width of 236 instead of 230? Now,
    try again with different stroke thicknesses. Flash seems to compute
    the width of the movieClip by taking its width and adding the width
    of the stroke. What possible reason is there for doing this?

    Sorry about this issue - it is recorded and we're looking
    into why the text is dimming at that particular size setting. You
    can re-enable the text by using the Transform panel scale (and then
    set it to 2x2 instead). This is just a quick initial finding to fix
    your instance, there could be a more efficient way.

  • [Flash CS5.5] bug movieclips dont show/Really Slow on High Quality Textures

    I have been using flash cs5.5 for a while now , and I start this project 3-4 days ago. Ever since I started to add in high texture in it, The program Freezes alot.
    I export my project as a swf and theres no lag at all in it.(thanks to Render:Cache as Bitmap)
    A bug happen when ALL the MovieClips/images/bitmaps No longer can be seen but u can click on it.
    As u can see.
    The visible is check in too.
    All I was doing is moving the movieclips/images/bitmaps(high detail 2000x1000 big) around and this happen.
    Also the program gets crazy laggy when high details are added. Then again , I export my project as a swf and theres no lag on the swf, full fps.
    if this helps
    intel(R) Pentium(R) 4 CPU 3.20 GBHz
    3.19 GHz , 2.00 GB of RAM
    After Reloading the hole file, everything is back to normal , but it still does this bug and its really slow. I cant Continue my project because of this bug.
    Flash barely use my ram or cpu.
    Help?

    Not for nothing but P4 single core CPUs are outdated by about 6 years. From your graphic I can see you're not using a version of flash in your era.
    That doesn't excuse freezing but your CPU in this day and age is basically a solar powered calculator. Most people have an ancient dual core 2+GHz system with 2-8GB ram. You're excessively behind the CPU curve. With that CPU you're running DDR400 on top of it.
    We're at DDR3 now (PC12xxx depending on your wallet).
    Please don't take this wrong but "high res" and "Pentium 4" should not be in the same sentence. I'm fairly sure you cannot even play 720p HD video let alone 1080p HD video on that processor with windows (maybe linux). How do you expect flash to react being much more complex?
    Your best option is to lighten the load on that old rig. Disable any antivirus software or anything else running to give your updated flash the best possible chance to run well given your computers limitations. Efficiency being king, sometimes people thing 3ghz = 3ghz. It doesn't. A 3ghz modern CPU will blow away your old 3ghz computer. This is not apples to apples. 

  • Flash buttons nested in movieclips wont work

    I made some movie clips in flash and inside those movie clips are buttons but I can't get the buttons to work in flex. I can only get the buttons to work in flex if they are on the main timeline in my swc file. Is there a way to get the buttons and other movieclips to respond if they are nested in another movieclip?

    It depends on how you are accessing the MoveClips.  If you embed, scripting will get stripped out.  If you load a SWF with those movieclips, it should still work.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Flash CC - Rotation on movieclip containing bitmap causes dramatical framerate drop

    I have a 850x850 bitmap inside a movieclip which must constantly rotate like a big wheel. When compiling for iOS the framerate drops from 24 to 8.
    Is there a way to increase performance without using cacheAsBitmapMatrix and without rotating the bitmap inside the movieclip but the whole movieclip itself?

    @Amy: Clever trick to solve the file size vs. performance problem. But I doubt it will get you far on a mobile platform with a 850x850 texture.
    Anyway at this point its not much not use to advise further without the big picture.
    If you`re serious about making a commercial game with Flash/AIR for iOSyou won`t be able to avoid stage3D
    http://wiki.starling-framework.org/manual/performance_optimization

  • Flash drive speed?

    I used to back up about 3 GBs of data to a flash drive at the end of each day and it would take about 20 minutes with Mountain Lion.  Now the same amount of data on the same flash drive takes over an hour... Anyone know why that might be?  Anyone know how I might speed up this process?

    If your Mac has USB3 support, then I would suggest getting a USB3 rated FlashDrive, which should be much faster transferring data.

  • Dynamic movieclip duplication

    Hi Everyone,
    I am working on dynamic duplication of movieclip when the button is pressed one by one.
    In that movieclip there are two buttons ok and cancel.
    Here is the piece of code:
    var new_panel:please_wait = new please_wait;
    click_btn.addEventListener(MouseEvent.MOUSE_DOWN, generate);
    function generate(e:MouseEvent):void{
        new_panel = new please_wait;
        addChild(new_panel);
        new_panel.addEventListener(MouseEvent.MOUSE_OVER , over_evt);
        new_panel.addEventListener(MouseEvent.MOUSE_DOWN , start_evt);
        new_panel.addEventListener(MouseEvent.MOUSE_UP , stop_evt);
        new_panel.ok_btn.addEventListener(MouseEvent.MOUSE_DOWN , ok_evt);
        new_panel.cancel_btn.addEventListener(MouseEvent.MOUSE_DOWN , cancel_evt);
    function start_evt(e:MouseEvent){
        new_panel.startDrag();
    function stop_evt(e:MouseEvent){
        new_panel.stopDrag();
    function ok_evt(e:MouseEvent){
    function cancel_evt(e:MouseEvent){
        removeChild(new_panel);
    if i create two movieclip, then how i remove a particular movieclip.
    i also attached the screen shot for reference..
    Anyone Knows reply..
    Thanks in advance..
    Regards
    Saransoft

    I guess the problem with your code is your message box is getting duplicated twice.
    You want to remove the previous instance if it is already on the stage.
    If I am correct you can use the following code:
    var new_panel:please_wait = null;
    click_btn.addEventListener(MouseEvent.MOUSE_DOWN, generate);
    function generate(e:MouseEvent):void{
        if(new_panel.parent)
              removeChild(new_panel);
        new_panel = new please_wait;
        addChild(new_panel);
        new_panel.addEventListener(MouseEvent.MOUSE_OVER , over_evt);
        new_panel.addEventListener(MouseEvent.MOUSE_DOWN , start_evt);
        new_panel.addEventListener(MouseEvent.MOUSE_UP , stop_evt);
        new_panel.ok_btn.addEventListener(MouseEvent.MOUSE_DOWN , ok_evt);
        new_panel.cancel_btn.addEventListener(MouseEvent.MOUSE_DOWN , cancel_evt);
    function start_evt(e:MouseEvent){
        new_panel.startDrag();
    function stop_evt(e:MouseEvent){
        new_panel.stopDrag();
    function ok_evt(e:MouseEvent){
    function cancel_evt(e:MouseEvent){
        removeChild(new_panel);

  • Non-Flash Player Speed Test

    I have two questions and would certainly appreciate any feedback from the community. 
    I live in one of the new Google Fiber rollout cities, and we just got the new service installed yesterday.  I would like to run a speed test to see what we are actually getting out of the service and experiment connecting to the service through hard wire ethernet connection, throught the wireness network provided through the Google Fiber Network Box, and also through our wireless home network utilizing our 802.11ac Apple Time Capsule (which I believe is a faster wireless connection than the Google Fiber Network Box which I've heard uses 802.11n).
    However I had previously decided not to install Adobe Flash Player on our iMac and all of the speed test sites I've come across require flash player.
    Is anyone aware of a speed test site that does not require flash player?
    We do not run any anti-virus or anti-malware software on our system.  Is anyone aware of risks to using any speed test sites?  The sites test a file upload and download and I'm not sure what they put onto your machine (or your network) and where they put it.  I don't know if there is any risk of malicious activity from using a speed test site if you are not running anti-malware software.
    Thanks.

    It's pretty simple to make sure you have only a legitimate Flash. Just get it from either of these two sites, nowhere else.
    http://get.adobe.com/flashplayer/
    http://www.adobe.com/products/flashplayer/distribution3.html
    And probably the most important thing is to be sure to have the latest, patched Flash installed. Even the legitimate versions are constantly being exploited for delivery of malware.
    And, since you are concerned about browser security, I would highly recommend Firefox with the NoScript Add-on. It takes a bit of a learning curve and may sometimes be very frustrating, but it affords many kinds of  protection against Javascript browser exploits  (not the same as Java, which should be disabled completely.)
    http://noscript.net/features
    http://forums.informaction.com/viewtopic.php?f=7&t=268

  • Flash Drive Speed Test?

    Any one that has a new MBA, could any one try the AJA disk speed test application on it to see what the drive read and write speeds are?
    Cheers

    Running QuickBench's small random test, I average the 4K, 8K, 16K, 32K, 64K, 128K, 256K, 512K, and 1024K random reads and writes.
    RESULTS for the 128G Flash Storage on the 11" MacBook Air:
    Random Read Avg = 96 MB/Sec
    Random Write Avg = 94 MB/Sec
    RESULTS for the 256G Flash Storage on the 13" MacBook Air:
    Random Read Avg = 96 MB/Sec
    Random Write Avg = 93 MB/Sec
    RESULTS for other drives in a MacBook Pro:
    The Seagate Momentus 7200.4 notebook HDD = 17MB/s READ, 22MB/s WRITE
    The OWC Mercury Extreme SSD = 149MB/s READ, 139MB/s WRITE
    The Apple SSD = 100MB/s READ, 88MB/s WRITE.
    Message was edited by: rob_ART

  • Flash drive + speed issue

    My macbook is running slow as ever. it freezes every now and then.
    The biggest problem is that it takes more than 5 minutes to detect a flash drive.
    i am using 10.5.8 and i have 1gig RAM. i repaired all the disk permission but that did not slove the issue. i am fed up force shutting down my macbook. please help.
    thankyou.

    Try reinstalling OS X:
    How to Perform an Archive and Install
    An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.
    1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then quit DU and return to the installer.
    2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.
    3. Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.
    4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.
    5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.
    6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.
    Also, add more RAM to your computer. 1 GB is not enough. You should use 2 GBs or more (if your model supports it.) Also be sure you maintain ample free space on your hard drive - 10 GBs or 15% of the hard drive's capacity whichever is greater.

  • Flash IDE not compiling movieclips with "export for actionscript"

    I'm having a really odd problem with Flash CS5 where I'm getting random compiling errors for movie clips that are exported for actionscript. These are simple graphics that will be created at runtime. Nothing special.
    When I first open the project it gives errors for all the symbols in the project, but if I open and save the settings dialog the errors go away. Sometimes I have to go into individual symbols and check/uncheck the "export for actionscript" box. This is a AS2/Flashlite project.
    Anyone else having these errors? I tried to "save as" the project and clean the ASO cache. No luck.
    Here's an example of the error:
    Symbol=movieBkgrdSmall, layer=Layer 1, frame=1, Line 1    The class or interface 'movieBkgrdSmall' could not be loaded.

    cs5 will scan the current directory and all subdirectories for class files.  sometimes you can have a name conflict and not realize it and that can cause substantial problems.
    when desperate, create a new directory with no subs, save your current project there (with a new name).

  • Strange MC duplication in FLash CS3

    I created a movieclip in flash cs3 and then i duplicated same
    movieclip in library using the duplicate command and exported for
    actionscript and then applied few transformations like made larger
    than original. Now if i test my flash file the original movieclip's
    instances are also larged like the duplicated movieclip.
    Is it a bug? if not then what is the logic.
    Note: the original movieclip is not exported for
    actionscript.

    Hi Jostrom,
    Thanks for reporting this. We were able to narrow down this issue and has already been logged internally under bug #3585950.
    We shall update once this is investigated and gets fixed.
    Regards,
    Nipun

Maybe you are looking for

  • Mail Will Not Receive After 10.6.2 Update

    I just updated to 10.6.2 and now my mail program will not receive any incoming emails. I seem to be able to send however. I'm sorry for another one of these "me too" postings about the mail program not working post update but I'm hoping Apple will se

  • Updating firmware etc. for E1200 router

    When I bought my E1200 router my primary (in fact only) computer was a Windows laptop.  Since that time I bought a MacBook Pro and have been using that as my primary computer.  The Mac is running on the latest OS (Mountain Lion). I would like to inst

  • How to use a constant rather than a "getter"?

    I'd like to refer to a constant rather than a property using a "getter" (accessor), but I'm not sure how. For example: <f:selectItem itemLabel="Option1" itemValue="#{Constants.MINIMUM}"/> But of course this results in trying to call getMINIMUM(), whi

  • Configuration of gcc in sun solaris developer express edition

    hai, from where, i can download the suitable gcc and how to configure it?

  • How to reduce videos in iPhoto from iPhone for mailing or uploading

    How do you reduce videos from an iPhone 4s for e-mailing or uploading to sites like Flickr? iPhoto gives you a choice of photo sizes to e-mail but doesn't allow you to e-mail videos. The videos are on my iPhone and my iMac.