ActionScript 2.0 :: Main Animations Slow Down A Huge Bit When Using Internal Movie (several Frames)

Jan 16, 2006

To try to avoid lag in the main animations (few ones, 5 I think), instead of having all the contents load as external movie clips in a movie clip called contentsMC (for instance), I used that contentsMC clip to contain them all, in several frames. There's no great problem in having all in one, since the contents are mainly text. The contentsMC shows up in a masked area inside the main movie clip.

I also have a transition effect, under that masked area.

When I press a button, it uses the command loadContent = #; And sets the transition effect movieclip play ( transitionMC.gotoAndPlay(1); ).

At the mid point of that transition effect (when it covers the actual content), it has the if conditions required to display what was asked.

if (loadContent == 1) {
_parent.contentsMC.gotoAndStop(1);
if (loadContent == 2) {
_parent.conteudos.gotoAndStop(2);

and so on.

However, when the transition effect is ocurring, all the animations in the main page become really slow, until it ends. Also, if I use anything inside the contentsMC, such as a scroll bar, the same lag occurs. That lag happens both with the always running animations (they are 5, I think) and with any other animation triggered during that, for instance by the onRollover effect of a movieclip.

To try to reduce that, I had set the framerate to higher values. First I set it to 50, then 60, and now it's currently at 90 (I only set it to 90 as it displays quite slower on the browser)

View 2 Replies


Similar Posts:


ActionScript 3.0 :: CPU Intensive Animation - Get These Huge Animations To Run In The Background Smoothly?

Jan 24, 2009

So I'm building a music site for a client, he's got a record theme so I thought it would be cool to build the site to look like a big turn table with all the content on the record.the record is designed to spin (not as disorienting as you'd think, just the grooves spin)...but the record image, which I did in Photoshop, is huge.

It was just slowing things down to a near crawl in browser. So I split the record image into four pieces and then mirrored them to get the full piece of the pie. It worked, but it's still running slightly slow. I do have a couple of blending options set to act as lights over the record...I tried deleting them to see if it would run faster, it's still jumpy. When the record is not moving(there's a button to turn it off) everything runs smoothly. The entire move is about 300k in file size and the record is being animated via actionscript.How do some of these bigger sites get these HUGE animations to run in the background so smoothly?

View 7 Replies

Slow Down Single Cell Animations?

Oct 13, 2009

I'm new to flash and I'm working on an animation project for my class.I decided to do half of it as single cell animation and half of it using tweens and whatnot.The parts that are single celled are moving WAY to fast and are throwing off the flow with my tweens. It's a requirement of the project to have atleast 20 fps, and I don't have enough time to dedicate to drawing tons of more cells.For example, I have one animation made up of 40 frames and it needs to be stretched to about 100 frames.I've tried copying all of the cells into a movie clip and attaching a stop(); method at the final frame in the movie clip, then importing that into my movie and stretching it to the length i need, but it just runs at the normal animation rate and then stops until the timeline gets to where it's time for the next event or scene to take place. It sort of looks like i need to find a way to control the fps of my movie clip independently of the entire movie, but how would i go about that?how i could go about extending this?

View 1 Replies

AS3 :: Professional - Performance In IOS - Animations Run Really Slow (CS5.5)

Feb 18, 2012

I have created an app in CS5.5 for Android and iOS. I have tested on two Android devices and everyingthing works fine. However, on an iPad and iPhone the animations are really slow. Here are some more facts:

1) My project has many scenes and in the problems scene there are upwards of 1,200 frames. But even simple animations run slowly.

2) The frame rate is set for 24 fps.

3) I have created a universal app (iphone and ipad), publish resolution is standard at full screen.

4) Ironically, I have already tried caching as bitmap. That actually slowed my animations even more. I am truely at the end of the line here and don't have any possible solutions.

View 3 Replies

Slow Flash Animations After Few Hours Playing

Nov 24, 2009

I have recently developed a standalone Flash entertainment system, containing Flash games and screensavers etc., i have also included a third party mp3 player.
 
The problem i have is the PC is left switched on daily and the system is used quite heavily, i.e mp3's playing in background while screen savers are displayed and games are played.
 
Everything starts fine but after a few hours the flash animations slow down to about 2 or 3 frames per second, then the PC will finally crash.

View 1 Replies

ActionScript 2.0 :: Preloading FLV With Cuepoints - Animations Slow To Start

Jan 7, 2009

This is the first time I have used a FLV with cuepoints. I have a flv which loads into my swf which I have added cuepoints to on import. I have a series of buttons over the flv and when you rollover these you skip to various points in the flv. This works in principal but in reality it is a little slow, especially when it first loads. I am assuming this is because the FLV is still loading (although I am testing this locally and it will never be used on the web). If this is the case I think I need to make sure the entire flv is loaded before i show it. Secondly, is this the reason the rollover animations are slow to start or is this an inherent problem when using FLV? Is there anything else I can do to make it more responsive?

View 3 Replies

Movie Clip Within Main Timeline Runs Slow/choppy First Time Around, But Not Second Time?

Dec 11, 2009

I have a fairly complex animation movie clip within my main timeline in a Flash file.  When you click a button, it plays the movie clip, then goes back out to the main timeline.  The first time the movie clip runs, it plays choppy and slow, but if I play it two or more times, it plays correctly (smoothly).  Is there some actionscript I need to preload the movie clip, or some other solution to the first-run slowness? 

View 2 Replies

Cannot Remove Internal Frames Of File

Jan 5, 2011

I am a high school student who has an assignment to develop a Flash Video.  My goal is to make a really cool Flash Video by downloading a Youtube video of paintballers and then converting their images to a line drawing and then animating the line drawing.  Well the problem is that after I've imported the FLV into Flash CS5 I find it impossible to edit out an internal chunk of the video.  Every time I try to remove a chunk of the video, it ONLY DELETES A SECTION FROM THE END OF THE VIDEO!

Now, it should be a simple process, select the chunk, Edit->Timeline->Remove Frames

It seems so obvious that I don't mean to delete the END of the video, I mean to delete the highlighted section.  What's the point of highlighting a section if you're just going to delete "X" amount of frames on the end?  Shouldn't this feature be called, "Delete frames from end of video"?

View 1 Replies

ActionScript 2.0 :: Movie Clip To Blur When The Main Scene Hits Certain Frames

Jan 22, 2009

Is there any code that basically says, if root frame = 2 then do this.. I basically need my movie clip to blur when the main scene hits certain frames. The movie clip pans around though with script thats why i cant just add a blurred image to a layer in the main scene.

View 6 Replies

ActionScript 3.0 :: Three FLV Movie Files That Are Places On Diffrent Frames On The Main Time Line?

Oct 5, 2009

I have three FLV movie files that are places on diffrent frames on the main time line. When the viewer clicks on diffrent buttons I send them to that specific frame by go to and stop action and the flv start playing, but if they click out of that frame by pressing another button the video still plays on the background and they can hear the audio.this doesn't hap stop the video from playing by pressing thepen if they stop button on the flv player.

View 2 Replies

ActionScript 3.0 :: Variables In Main And Internal Timeline?

Aug 26, 2010

I have movieclip that act as a container for a short animation. This animation has a script that repeat the movements until it's greater than a variable. But I wonder if it's possible to use this movieclip on several places on the timeline and have a several variables with different max number of movements that control the script inside the movieclip container? I have tested, but it seems like the value from the variable at the main timeline don't reach the script in the container!?

View 2 Replies

ActionScript 3.0 :: Way To Skip Frames Instead Of Slow Down?

Jul 2, 2011

Game I'm making slows to half the speed when there's a ot going on. I'm sure I'll be able to get rid of a lot of that whe I optimize it, but is there some way of telling flash to skip frames when things get slow?

If not, was thinking I might be able to change the speed of the character so when the frame rate drops to half they get twice as fast.

View 5 Replies

ActionScript 3.0 :: Buttons On The Main Page Doesn't Goto And Stop At Other Frames In The Main Scene

Jun 14, 2010

I added a website preloader in a separate scene to the main frame of my website and scripted it to go to and Play the main scene or frame of the website when finished loading. I then put a command in the first frame of the main scene for the movie to stop (); at that point. The problem is that now the buttons on the main page don't respond to any behaviour commands to go to and stop at other frames in the main scene. I'm not sure if this is a conflict between the stop(); command in the main scene and the button behaviour command to go to and stop at another frame or an error with the way I'm identifying the scene and frame.

View 5 Replies

External And Internal Links - Move To A Frame Outside The Main Timeline

Jan 3, 2010

Not sure if I'm in the right place, I apologize in advance if so. I'm somewhat proficient with html, but fairly new to flash, using cs4pro, as3. Here's my dilemma. Converting an existing html/css site to flash. Flash is main site now but a few html pages are still linked, a buy page and a form page, a few others. I can get the all the external html pages to link to a frame in the flash movie, and I can get the flash to link with all external urls.

My problem comes when I move to a frame outside the main timeline. The movie is lets say 393 frames. All symbols/content are on seperate layers, and so is the action. Once the full movie ends, I have several frames past that where I have basically created frames for additional "pages" and created anchors for those frames, new layes for content, new layers for anchor (labeled) and new layers for a stop(); on each frame, I extended the pertinant graphic frames out to 410 from the original movie.

Now when the movies runs the buttons appear at about frame 115, so in the action layer I coded a keyframe and then added frames of it out to frame 410 or so: I have attached the .fla Now I'm lost here. When you navigate the site, from home lets say to an external link (button) like members, the html member page opens, and if you click home button, back to flash frame, and all works, all buttons, on the home frame 393. But if you go to any of the external htmls, and then go back to any other frame like frame 401 the about page, and all the rest 402 403, etc, the page appears properly, but then none of the links function. the site URL is [URL]there is a flash intro too, swf in question is actually at[URL]

View 2 Replies

ActionScript 2.0 :: Collapsing Navigation - Make The Main Button Not Sense The Rollovers Of The Internal Buttons

Feb 3, 2005

My problem that I'm having is I am trying to build a menu consisting 3 buttons, side by side that open and reveal subnavigation buttons on rollover. Then on rollout of the main container button, they close back to where they were. I have built the buttons and everything works great, the only problem is that on rollover of the internal buttons, the main button senses this as a roll out and plays the rollout animation event (closes the button). How can I make the main button not sense the rollovers of the internal buttons and only play the rollout event on rollout of the main button?

View 2 Replies

Actionscript 3 :: Huge Framerate Difference Between Test And Publish Movie In Flash?

Dec 24, 2010

Simply put, I am making a flash midi player. I am using ENTER_FRAME for my timings. I set the framerate to 100 to ensure that the timing of each note in milliseconds is accurate. When I test the movie with CTRL + ENTER it works fine. When I publish it and open it in a browser (tested both IE and Chrome), it suddenly plays back a lot slower. I don't think it's a performance issue, since the code is very simple. If this slowdown is consistent then I can perhaps work with it so that the playback speed will be correct. Do browsers make the framerate slower or do they implement a framerate cap of some sort? What is going on?

View 2 Replies

ActionScript 3.0 :: Make A Presentation Which Is Build Out Of Several Animations Located On The Main Timeline?

Jan 29, 2012

i've been trying to make a presentation which is build out of several animations located on the main timeline.I wanted to use frame labels to navigate back and forth in the timeline, so I created back/next buttons and used switch/case code on them based on the frame labels.each animation has a label and a stop(); command at the end of it, right before the next animation.the code for the next button looks like this:
 
next_btn.addEventListener(MouseEvent.CLICK, click_handler);
function click_handler(event_object:MouseEvent)
{

[code]....
 
problem is at some point it stops working. i've added the "default: play();" code to try and fix it but it only goes so far.

View 3 Replies

ActionScript 2.0 :: .load Six Separate External .swf's Into The Main Movie While The Main Movie Loads Too

Dec 23, 2004

I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.

View 2 Replies

ActionScript 2.0 :: Move Frames Within A Movie Clip With Buttons On Other Frames?

Nov 24, 2011

basically im making a quiz on my main timeline ive got my questions and answers and on the last frame i want it to say how many answers the user got right. ive made a movie clip on this last frame. in the movie clip ive got 11 frames with the posible totals so frame one would be 0/10 frame 2 would be 1/10 etc what i want to do is when the user clicks the correct answer on the other frames i want flash to make the frames within the movie clip to go 1 step forward.

View 2 Replies

Professional :: External SWF Or Internal Symbol For Movie Clips?

Oct 7, 2010

I'm creating a Flash interactive thing which is basically a couple minute animated intro and then a menu of products to choose from. You click on one of 12 products and get a little animation about how it works. So my question is where to put these 12 product animations? I was originally thinking to just put them in the main timeline and just jump to them with labels but I'm thinking that the timeline is going to get too hairy, it's already got a lot. Now I'm wondering what the best approach should be. Should I produce 12 external SWF movies to be loaded when clicked on, or should I just make each product animation an internal movie symbol and just add an instance from the library to my main timeline? Or is there any other approach that might be better for some reason?

View 5 Replies

IDE :: Loading And Playing Internal Movie Clips Randomly?

Sep 18, 2003

how to get movie clips to play randomly? Here's what I want to do:

I have four movie clips already created and I want to make it so that when someone visits the page and accesses it for the first time, one of the four is randomly selected and plays (I also want to be able to tell it what frame of the movie clip to go to)!

View 1 Replies

Professional :: Load An External .swf File On Internal Movie Clip?

Dec 6, 2010

I have a movie clip called - contenct_mc       ----------------inside this movie clip I have another movie clip called - Introduction_mc    ------inside this mvovie clip There is another movie clip called - Footer_mc       -------inside this movie clip on actions layer I have copied the below code to show clock.swf file....but the following code doesn't work
 
CODE:I am using Flash CS4 AS3
 
var R:Loader=new Loader();addChild(R);
R.load(new URLRequest("clock.swf"));R.x = 540;R.y = 205;
R.contentLoaderInfo.addEventListener(Event.INIT, RgrowLoader);
function RgrowLoader(evt:Event):void {
R.width = 200;     R.height = 200;}

View 2 Replies

ActionScript 2.0 :: Put Action In The Main Frames?

Feb 24, 2008

How'd you make it so that you can give action script to everything, which has "enemy" in the instance name, (Such as enemy1, enemy2, enemy3 ect.)So you would put action in the main frames, that would give the actions to enemy1, enemy2, enemy3, and so on.

(Btw, Say that the action was:

[code]...

View 1 Replies

ActionScript 2.0 :: Get A Random Internal Movie Clips NOT Calling External Mcs With Loadmovie?

Jun 6, 2006

how to do a random internal movie clips NOT calling external mcs with loadmovie?Let's say I have two internal mc's with instance name : my_mc1, my_mc2 and I want them to load randomly in starting in frame 2 here what I did so far:

var tab_mc = [this.my_mc1, this.my_mc2];
function randomMC(tab_mc) {
var i=tab_mc.length;
var r = (Math.floor(Math.random()*i);

[code]....

View 4 Replies

ActionScript 2.0 :: Load Url Into Main Swf -- Like Html Frames

Feb 19, 2003

I know this can be done in html but flash I don't know. I want to stay on the same url page and load another url in my flash movie. You can do this with SWF's, you have a main movie and then you can load a second swf into the main movie. Can this be done with a main swf and load in a url page into the swf?

View 8 Replies

ActionScript 3.0 :: Frames On The Main Timeline Each With A Different Movieclip?

Nov 8, 2010

I have 6 frames on the main timeline each with a different movieclip. Is it possible that when one movie clips finishes running it will go to he next frame on the maintime line and run the next movieclip on the next frame with AS3?

View 1 Replies

ActionScript 3.0 :: Several Movie Clip Animations

Sep 29, 2009

I want to animate a Movie Clip dynamically, My desired animation is a dynamic route on a grid, from a starting point to an end point, for example: start: (0,0) -> (3,0) -> (3,4) -> (5,4) -> (5,5) end, the route can change if some points on the grid are defined as obstacles, but the principle is the same (movement on the X axis then on the Y axis then X etc... )I have a function that finds the route on the grid but how can I build a long and complete animation from the starting point to the ending point? one solution is the Tween class which only gives an animation on one grid but how can I concatenate number of tweens?

View 2 Replies

ActionScript 2.0 :: Converting Animations Into A Movie?

Dec 8, 2007

I have a fairly simple particle script that exists in frame 1 of an empty timeline. As the script runs its course, new particles are created dynamically, and move around on the Stage. I'm wondering if it's at all possible to export this animation into some sort of movie format.The advantage of doing this would be to save processing power, I'd guess. I could have multiple movie instances of the movie animation playing in the background, instead of just running multiple instances of the script on the stage.?

View 4 Replies

Text Tweens Take Place On Frames In The Main Timeline?

Jun 30, 2009

I am fairly new to flash and I have been trying to make a product demo. Basically I want some text to fade in and then some pictures to show up one by one and then disappear and then some new text fades in etc. This is to talk about a product and show various parts of it as the text on the screen is discussing those parts of the product. My question is what the preferred way of doing this is. Here are the options I can think of.
 
Approach 1) Put all animation in the main timeline. All text tweens take place on frames in the main timeline. Approach 2) Put the text fade-in tweens in a movie clip and put that on the main timeline.
 
I have tried both these approaches but neither one has been working for me for the following reason.
 
Approach 1) Makes timeline very long and unwieldy. If one thing changes, it shifts everything over and messes up my whole timeline. Hard to manage. Approach 2) If I have a stop(); on the main timeline, my animation stops in mid fade. In cases where I don't have a stop, I can't figure out how to do a series of objects fading in one after another. Is there a way to check if a movieclip has finished and only go to the next frame if it has finished? How do I get a series of clips to play one after another when I am running them as seperate movieclips off the main timeline.

View 5 Replies

ActionScript 3.0 :: One Main Class - Error With Frames / Scenes

Feb 12, 2011

I am getting errors with flash cs5 classes I am using one main class and I've got to make a menu and normal game so two scenes (1 menu 2 main game). I keep getting this error when i play the movie. I am using CS5 IOS Packager

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ButtonClass()[C:UsersMY NAME COMPDesktopIOS ContentButtonClass.as:68]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent() ......

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved