ActionScript 2.0 :: Main MovieClip With Multiple Frames On Timeline

Mar 14, 2003

I'm designing a website which has one main MC in the timeline. This main MC totals about 650 frames with text and pictures for each page (65 pages). This when published into a .swf, was 172KB. However, the download time was huge, almost 45 seconds. The intro page works fine, which I then use a loadMovie to bring in the main .swf with navigation bar, etc. So, I took this large .swf and split it into 3 smaller .swf's, 50, 111 and 85KB, for each. Now when live online, this too, seems too large and almost 30 seconds to download. Can I optimize in any way or should I just again split the 3 movies into maybe, 5 movies? What is the 'best' size for each .swf that will be published online? You can see the link yourself at [URL].

View 3 Replies


Similar Posts:


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 2.0 :: CS3 Making A MovieClip Play It's Frames, Then Stop On A Main Timeline Frame?

May 12, 2010

I am currently in the middle of making a "sniping" flash game. In the first level there are a series of moving targets which are also movie clips. Inside the movie clip there is a 7 frame animation of the target exploding. Inside that is a tween of the target moving up and down. And inside that there is a plain old button.

What I want to happen is when you click on the moving target it explodes and brings you to a new frame of the main timeline. (ex. Main Timeline frame #27) But I'm pretty sure it thinks I was to play the seven frame animation of it exploding and then go to frame 27 inside the movie clip, rather then frame 27 on the main timeline.

Here's what my AS looks like on the target (ActionScript 2.0 is what I'm using.)

on (press) {
play();
}
on (release){
gotoAndStop(27)}

So how do I make it explode and then take me to frame 27 on the main timeline?

View 3 Replies

Flash :: Using An External Class With Multiple Frames On The Timeline And Multiple Stage Placed Buttons

Sep 21, 2010

I have a problem when making flash applications with more than one frame that has symbols placed on it in that I can't declare all of the event listeners for the objects at the same time and I have found that even if I put them all on the first frame, add the event listeners, then click through to the next frame then the buttons won't work on that frame.

Does anyone have any idea how I could solve this? I did consider myself a fairly competent AS3 programmer until I realised I had no idea how to handle this sort of thing. Solved: I initialised the clips from my external class and then addChild'd and removeChild'd them as I needed to and placed their x and y on addChilding.

View 2 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 2.0 :: Three Frames On Main Timeline - Fade Effect Not Work?

Feb 14, 2010

I've created three keyframes on the main timeline, the first is empty, and so is the third. In the second I have a movieclip that contains a classic tween. The movieclip has an alpha of 0 at frame 1, and 100 at frame 15, then at 45 it does the same in reverse until frame 60. On the last frame (60) of my movie clip I have the code:

ActionScript Code:
_root.gotoAndStop(3);
For some reason when I test the movie, the fade effect will not work, and the screen will just be blank. I have the
ActionScript Code:
stop();
Code on frame 2 but none on the other frames.

View 7 Replies

ActionScript 2.0 :: [Flash8] Assign A Variable To The Current Frame Of The Main Timeline (not Movieclip Timeline)?

Mar 16, 2007

I simply want to assign a variable to the current frame of the main timeline (not movieclip timeline) I already know about _currentframe and it doesn't help in this case.

View 4 Replies

Professional :: Moving To A Frame In Movieclip Timeline From The Main Timeline

Apr 26, 2011

I am in the learning process. Working with FlashCS5 and AS3. if the issue appears to be too simple for you. Placed a movieclip(mcassessJohn) on the main timeline and moved to the frame labelled "johnFeedback" in the movieclip timeline using the following actionscript code.

[Code]...

View 1 Replies

ActionScript 3.0 :: Add Multiple Instances To The Main Timeline?

May 25, 2010

Trying to understand how to add multiple instances (which are simple scrolling text box movieclips) to the main timeline when using this external Document Class (this is a smooth scrollbar class)

I've spent a week on it & still can't figure it out

Here is the class:

package
{
import flash.display.MovieClip;
import com.myflashlab.classes.tools.scrollbar.MyFlashLabS crollbar;

[Code].....

View 2 Replies

ActionScript 3.0 :: Using A Mc To Control The Main Timeline With Multiple Scenes?

Jul 19, 2010

I have a main timeline that has 27 different scenes. I have a movie clip that is an "on call" navigation menu for the main timeline. I can call the menu once, and it will go to the first place I want it to go. However, I cannot seem to figure out how to get it to go away to be able to call it again. I get the "must be child of caller" error. how to get rid of it each time I use it?

View 2 Replies

Professional :: Playing Multiple Movie Clips One After Other On Main Timeline?

Apr 23, 2010

Excuse the probably simple question but I'm just starting off with Flash.I have imported a few video trailers directly into flash and saved them as movie clips. I want to be able to insert these movie clips onto the main timeline and play them one after the other, repeating once they have all played. On the main timeline I have set a layer for each clip and a keyframe where the clip is inserted for each layer. When I go to play the flash file, it is showing the first frame from each movie file and then moving to the first frame of the next movie file. What do I need to do to make flash play the entire movie file in that specific frame before moving to the next frame where the next movie file is and playing all that movie?

View 7 Replies

ActionScript 3.0 :: Control Multiple External Swfs From Main Timeline?

Jun 26, 2011

I've been trying to combine the features of two tutorials I found, one that deals with controlling external swf's from the main timeline and the other that explains how to load and unload multiple external swf's. I'd like to be able to load and unload multiple external swf's, and control these swf's buttons from the main timeline

I asked this same question on the forum of the site where I found these tutorials, and receive only one reply saying that "it shouldn't be hard to do." but they did not elaborate any further. This left me think that I was missing something very obvious and I've spent too much time now trying to work what it is now. I understand pretty much how both pieces of code work, but just can't work out how to combine them.[code]...

View 16 Replies

ActionScript 2.0 :: [CS3] : Getting GotoAndStop From Main Timeline To Movieclip Within Movieclip?

Nov 20, 2008

I have a main timeline with a button. I need the action for this button to gotoAndStop to a frame within a movieclip, within another movieclip. I have tried on the main timeline setting the actions of the button to:

on (release){
clip1.clip2.gotoAndStop("frame1");
}

and tried:

on (release){
_root.clip1.clip2.gotoAndStop("frame1");
}

lastly:

on (release){
_parent.clip1.clip2.gotoAndStop("frame1");
}

If I double-click on the movie clip (clip1) and then double-click on the movie clip (clip2), I have several frames labeled "frame1", "frame2", etc.The button doesn't work.

View 7 Replies

Actionscript 3 :: Access A Movieclip On The Main Timeline From Within A Movieclip?

Mar 6, 2012

Working on an RPG type flash, and I have to be able to control a text-box from quite a few locations. The one that is causing me trouble is the inventory. I need to be able to access the textbox with an instance of "statusWindow" from within the inventory clip (instance name "inventory"), so when I mouse over an item within the movieclip it will change the status window on the stage.In this instance I want to mouse over inventory.invHealth from the main timeline to get the display.itemName and itemProps are strings containing information about the item.I tried the following but it gave me a "possibly undefined" error.

invHealth.addEventListener(MouseEvent.MOUSE_OVER, itemStats);
function itemStats(e:Event):void
{
root.statusWindow.text = itemName+"
"+itemProps;
}

View 1 Replies

ActionScript 3.0 :: MovieClip Frames Skip Involuntarily On Main Stage

Apr 14, 2010

I have a movieclip in the main stage that has several frames. Then, I created a separate layer for the code that goes like this:
Code:
addEventListener(MouseEvent.CLICK, nextPage);
function nextPage(e:MouseEvent):void {
this.gotoAndStop(this.currentFrame+1);
}

Except for the last frame, which does not contain this code, seems to perform as expected. However, when I called up the same movieclip again by having it go back to a certain frame:
Code:
tutorial_MC.gotoAndPlay("2");
And the whole stuff seems to work fine, when I click and expecting the frame to go to the next, it seems to skip one frame and land on the other instead. For example, if I'm on frame 16 it'll jump to 18, then 20, and so forth. I tried other alternatives but they all seem to yield the same result.

View 4 Replies

ActionScript 2.0 :: Controlling Multiple Movie Clips With 1 Set Of Code On The Main Timeline?

Jul 19, 2011

So I have been trying to figure out a way to control multiple clips using the same "on press" & "on release" statements located on 1st frame of main timeline. A variable is being set to a value that correlates to the name of each movie clip as an interaction occurs.Ex: user clicks from a selection of buttons & depending on the button clicked it sets clipNum = "1" through "21".What I want is to have something like the following code that will give the user the ability to click and drag the clip with code on the main timeline similar to the following:

_root["drag_" + clipNum].onPress = function () {
startDrag (_root["drag_" + clipNum]);
};

[code].....

View 2 Replies

ActionScript 3.0 :: Working With Frames - "If The Main Timeline Is Finished - Change To The Play Button"?

Jun 10, 2010

I am on the main stage. In a layer I create a button. I double click on this button to enter its layer. I then do some AS3 to say if the play button is pressed, to change to a pause button. How would I say "If the main timeline is finished, change to the play button"? I am trying

[Code]...

View 1 Replies

IDE :: Possible To Make MovieClip Of Main Timeline?

Jan 28, 2009

I want to embed all the content of my flash project in a movieClip.

View 3 Replies

ActionScript 3.0 :: SimpleButton Containing MovieClip With Multiple Frames

Feb 13, 2010

I have a SimpleButton that contains a different MovieClip for the Up, Over, and Down states. These MovieClips all have 10 frames and corresponding frame labels. I can use gotoAndStop on the MovieClip in the Up state, but that only works until I hover over the button. Adding stop() commands in the timeline seems to give unpredictable results. Is there a way to get a SimpleButton working with the Up and Over states with a multi-frame MovieClip?

View 1 Replies

Professional :: Play Movieclip On Main Timeline ?

Jan 7, 2010

I've created a movie clip with an animation on it's own timeline 30 frames long. When I press 'Enter' while inside the movieclip the animation plays ok.On the main timeline, I have one layer 30 frames long with the movieclip symbol placed on frame one. If I press 'Enter' the main timeline play head moves to frame 30 but the movieclip animation does not play on the stage. If I press 'Ctrl + Enter' or publish to swf then the animation plays ok but I can't setup the stage how I want it without the animation playing on the stage. Do I need to just change a viewing setting (tick box in preferences) or is this related to AS3 or new CS4 inner workings?

View 4 Replies

ActionScript 1/2 :: Variables Between Main Timeline And MovieClip

Oct 14, 2010

I've got a problem using variables in my Flash project. I've got a variable called "count" decelerate in a layer of my main timeline.
Like this: _global.count=0;
In my movieclip I want to set that variable from 0 to 1.
For do that I wrote in a code layer of my mc: _global.count=1;
Now... When I perform a new action the variables count return to 0.
It's seem that Flash reset all variables.

View 1 Replies

MovieClip Called Target_mc On The Main Timeline?

Sep 18, 2007

I have a movieClip called target_mc on the main timeline... Inside that movieClip, I have four frame animation where there are aim1_mc and aim2_mc on each frame...I also have a for loop that hides aim1_mc on all the frames... It works fine on the first loop, but I see the aim1_mc of the frame 1 from the second loop...

ActionScript Code:
this.target_mc.onEnterFrame = function ()
{

[code]......

View 7 Replies

ActionScript 2.0 :: Linking From One MovieClip To Another On Main Timeline

Dec 21, 2009

I have been trying to figure this out for 3 days now. Here is the structure on the timeline:
movie clip (portbtn)
inside port btn (button)
I need (button) inside (portbtn) to link to a keyframe inside of another movie clip on the main timeline called portPage.

Here is the code I have been trying to get to work and it seems like it would:
Select allusa.onPress = function() {
_root.portPage.gotoAndStop(1);
gotoAndStop ("closed")
};

Now this is what everyone else tries and it doesn't seem to work. Also I want to note that I have tried to trace the movie clip "portPage" and it says undefined which from what I have read means that the button is working but it is just not getting the right directory. I have no clue what other directory to put in there since this one seems to be the right one.

View 7 Replies

ActionScript 2.0 :: Goto Main Timeline From A Movieclip

Dec 22, 2004

I have seemed to have forgotten how to go from a movieclip to a frame in the main timeline. I have done it a few months back but I dont have the fla right now to reffer.

View 4 Replies

ActionScript 2.0 :: Refer To The Main Timeline Within A Movieclip?

Dec 4, 2006

Is there a way to refer to an object on the main timeline from inside another movie clipThe "_root." function does not work and I am still unfamiliar with the "_parent." functions purpose.

View 2 Replies

ActionScript 2.0 :: Controlling Movieclip From The Main Timeline?

Jun 26, 2008

this ex. .fla controls the mc from itself but i would like to control it from the main timeline, ive tried a number of things but cant seam to get it to workthe .fla is here.and the code is here if you dont dl the .fla:

Code:
onClipEvent (load)
{

[code]........

View 5 Replies

ActionScript 3.0 :: Control The Main Timeline From Within A Movieclip?

May 20, 2009

How can I access the main timeline from inside a MovieClip. In short words I would like to be able to move the main timeline from a MovieClip, for instance if I have a MovieClip called myMc and I want the main timeline to gotoAndStop in frame (3) when myMc is done paying.

View 2 Replies

ActionScript 2.0 :: Goto Main Timeline From A Movieclip?

Dec 22, 2004

I have seemed to have forgotten how to go from a movieclip to a frame in the main timeline. I have done it a few months back but I dont have the fla right now to reffer.

View 4 Replies

ActionScript 3.0 :: Middle Frame Of A Movieclip In Main Timeline?

Mar 5, 2010

chimera-studio.com/misery.fla Any ideas as to why this won't work?? It's such a simple concept...

I have this code on the middle frame of a movieclip in my main timeline. When the nav buttons are pressed they play an animation and report their names to a variable called "navigation" that's declared in the first frame of the main timeline.

[Code]...

View 1 Replies

ActionScript 3.0 :: Splicing An Array On The Main Timeline From Within A Movieclip

Feb 16, 2011

i am trying to splice data to an array which is on the main timeline by using code placed in a timeline within a movieclip and no matter what i try i dont seem to be able to do it i am an absolute beginner Code on timeline

[Code]...

View 1 Replies







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