Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Last Frame



Does anyone know how to return the number of the last frame that the playhead was on?

All I can find is _currentframe and I need to get the last frame.



FlashKit > Flash Help > Flash MX
Posted on: 09-16-2002, 11:54 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Previous Frame Overlay..... Frame By Frame By Frame By Frame By Frame By.....
Hello there.

I am trying to create a small animation just as a little bit of fun. I would like to do it frame by frame.

I have a simple question to ask about frame by frame animation.

When drawing frame by frame, you would usually have a transparent overlay that you can compare with the next frame. Is there a way to do this in flash without having to copy the previous keyframe into a new keyframe on a new layer?

Thanks Emdiesse

Trying To Make Movie Play Frame X To Frame Y Then Switch To Frame Z..
Hello,

I was hoping someone could help me out with an issue I'm having. I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.

I'm halfway to accomplishing this.

Here is what i used


Code:
_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
gotoAndPlay("Home2",1);
}

}
The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.

Upon clicking the navigation button it plays the above scenes.

However it doesn't change scenes to scene "Home2".

Thank you in advance for all your replies.

GotoAndPlay(frame) Messing Up If Frame Is The Current Frame
I have a bug with my buttons and I am trying to figure out how to fix them. I have about 5 different buttons that will take me to different places on my website (http://www.usu.edu/drc)(don't judge me on design, I am not the greatest web designer)

Anyway, if I click on the students button it will load the students swf and take me to that frame in my mc. If I am already in the students frame, it loads the next frame in my mc instead doing nothing, which is what I want it to do. Anybody know why this is?

Now to fix the problem. I am fairly new to AS and was hardcoding my frames, but as I add frames and move things around, I have to go in and change the frame numbers, hello frame labels. Well, I now have the different frames labeled but I need to check if _currentFrame is equal to my frame label. I don't know how to do this.

What I was thinking is something like this:

if(_currentFrame.name == "students"){ don't do anything }

I don't know if this would work or if this is even the right syntax. Anybody have an idea on this one? Thanks for the help.

Jason

Going To A Frame An Then Going To A Frame Within A Movie Clip In That Frame
I am having trouble with a nav bar I made in flash.I have a variable that determines where we want to go in the movie I am trying to going to a frame an then going to a frame within a movie clip in that frame.

in other words I would like things to happen

1. go to frame #
2. show the frame # state on the movie in clip that frame

is this possible?

Movie Go To Random Frame Flash MX (Strange Problem With A Frame Showing As Blank)
I'm building a site for my fathers company and as part of the header I'm trying to get a movie to decide a random frame to go to so it plays a random animation at the top of each page.

I am using this script (which im not sure is right to make it do this)

play();
what_number = Number(random(3)+1);
gotoAndStop(_root.what_number);

It seems to work but the problem is there are 3 frames, 2 show up fine in random mode but it seems when the other is going to be shown i just get a blank frame instead with just the bg colour showing, ive spent hours trying to work out whats going on but I have no idea.

The site can be viewed at http://www.andrew-winchester.com/pip After you navigate from the index page the smaller random header appears and should show either of the 3 animations from the main header on the index.

Here is a link to the .fla for the smaller header file if that helps http://www.andrew-winchester.com/pip/header.fla


This is really driving me crazy, there must be some simple solution that I am overlooking or some silly mistake ive made ?

Thanks for anyone that can solve it !

Make Flash Detect Current Frame Then Move To Another Frame Base On A Numeric Value
I need to get the current frame that being displayed and then move to another frame and stop based on a random number.

For example: A person rolls a 4 with a dice. Flash will move 4 frames from it's current frame.

Can anyone help out with this question?

Movie Plays Till Frame 10 Then Pauses For 2 Seconds And Continues To Frame 11
Can i make my movie pause for 2 seconds at frame 10 and then continue to the following frame? is it a Timer script type thing or something? - I HAVE NO IDEA! help!

How Do I Connect Flash Menu (top Frame) To HTML Pages (bottom Frame)?
Hi,

I am new to flash/swish...

How do I connect the Flash menu system that I set up in Swish that will be embedded in the TOP frame to the standard HTML pages to be selected in the BOTTOM frame?

FYI: I am using Frontpage 2000 to create the frames and standard HTML pages

I can create the HTML page containing the Swish/Flash menu- no problem there. I just don't see the connection between the two. WHat's glueing them together. Is this accomplished with hyperlinks within FrontPage OR is this done from the Swish side and then seen by FrontPage after it is embedded?

Thanks to all who reply.

All the best.

Object Created In A Frame's Actions Telling Parent Frame To Delete It?
I've got an object (an instantiation of my own class that extends Sprite) being created in the actions for a frame, like this:


Code:
import Scripts.CFoobar;

var foobar:CFoobar = new CFoobar();
addChild(foobar);

stop();
CFoobar then creates and manages some buttons, etc. At a certain point, CFoobar knows it's time has come, and it wants to be deleted, and have the frame go to another frame.

What's the best way to have it do this?

How To Address A Button On The 5th Frame Of A Movie Clip With Action Script Located On The First Frame Of The Main Time
I'm trying to make a button appear on frame 10 of a movie clip and write actionscript on the main time line that addresses that frame 10 button. I'm not sure of the method I need to do to get that frame 10 button to get a url. I tested the same button when put on frame 1 and it worked, but I'm not sure how to address buttons and other symbols that appear as a result of the playhead moving to different places on movie clip time lines.

Can anyone help, or give me a link?

Thanks
Dennis







Attach Code

//works
_root.buttons_mc.go_btn.onRelease = function(){
_root.mall_mc.gotoAndPlay(1);
//a stop action is placed on frame 10 of the mall_mc movie clip
};
//this button is inside the mall_mc movie clip on frame 10
//doesn't work
_root.mall_mc.url_btn.onRelease = function(){
getURL("http://yahoo.com");
};
//An instance of the same url_btn is dragged on to frame 1 of the mall_mc
//movie clip and given an instance name url_frame1_btn
//works
_root.mall_mc.url_frame1_btn.onRelease = function(){
getURL("http://yahoo.com");
};

Should Be Easy. How Do I Get A Frame In A Movie To Go&play A Frame In Main Timeline?
Hi,

I trying to get a frame in a movie clip (that's 1 level down the hierachy) to gotoAndPlay a frame that's on the main timeline that's labeled "Fade1".

How do I do it?

Any help is greatly appreciated.

I'm using Flash 5.

Dan

Script On Button To Play Scene/clip From Frame To Frame
I there an action script that will allow the user to click a button and it will only play a section of the movie? Such as so many frames of a scene (like frames 20-176) or of a movie clip?

Thanks
ryan

Unchecking Export In First Frame For Components Does Not Reduce Frame 1 Size
Hey all...

I have a movie all finished up, but for some reason, frame1 is still 56K...I have deselected all "export on first frame" checkboxes, but it seems the component export classes are still loading in frame one...even the Flash help says to simply uncheck export in frame 1 in the linkage settings, but it still is not working...any ideas?

I googled it and it seems a lot of components tend to mysteriously use frame one even with the export option unchecked...if anyone has any info on how to remedy this, please let me know. Thanks.

EDIT: Nevermind...I found out after some more diggin that components will ALWAYS export in the first frame, REGARDLESS of if you have unchecked the option to do so or not. I had to go into the Publish Settings and click the "Settings" button found next to the "ActionScript Version" drop-down box on the Flash tab, then simply manually change the class export frame from frame 1 to frame number 2...

I explained this in case someone else runs into this same problem down the line.

Cant Get Frame In Main Timeline To Play Frame In Movie Clip
Hi all,

Ok, I want a section of a movieclip to play up until a certain frame on the main, or _root timeline. Then I want a different section of the same movie clip to play. Now I have the movie clip all set up all fine and dandy, yet I cant get it to the frames or 'section' it is playing when it reaches the apropriate frame. I have the following code on the _root timeline frame.


Code:
gotoAndPlay("stop");
(I have a frame label "stop" where it should be) Is this the right code I should be using? It has worked in the past, but it has been in between an on (something) event/action (not quite sure of the correct termanology there)

Please help.

Actionscrip Playing In Frame One. - But I Eventually Want To Move To Frame 2[MX04]
ok - heres a simple one I'm sure

I have 4 movie clip symbols. - each on a different layer - marching in a row

below is the script I have in a layer name "actions" on the main timeline

one_mc.onEnterFrame = function(){
this._x += 1;
}
two_mc.onEnterFrame = function(){
this._x += 1;
}
three_mc.onEnterFrame = function(){
this._x += 1;
}
four_mc.onEnterFrame = function(){
this._x += 1;
}
this works fine. but when my four_mc gets to 600 px accross the page, I want to move to frame 2 of the main timeline...and continue on with my movie.

Looking about I'm guessing I should maybe use the gotoAndPlay rule...but not really sure how.

I was starting with

four_mc.onEnterFrame = function(){
if (this._x <600){
this._x += 1;
}
}

- trying to say if four_mc is greater than 600px along X...I want to gotoAnd play from frame 2

...am I completely confussed?
PLEASE HELP...I'm very stuck!

thanks
tigercat

Flash Button To Take Movie Clip To The Next Frame Label Instead Of The Next Frame
I am trying to figure out how to create a button to take a movie clip to the next Frame Label instead of just to the next Frame. I have a slide show that I am working on with a fade effect from picture to picture. When I just use the nextFrame script it will literally take you from frame to frame on the fade in. Is there a script that will allow you to go to the next (or previous) Frame Label from where the movie was stopped?

Any help is greatly appreciated!

Can't Target A Frame Label Or Frame Number Within Movie Clip
Hi guys,

Can't for the life of me figure out why this is not working:

if (_currentframe==82) {
homefade_mc.gotoAndPlay("fadeup");
design_mc.gotoAndPlay("design_fade"); - this one is fine
}

- the first gotoAndPlay should be going to the homefade mc and then going to the "fadeup" frame label and play from that, but instead it does nothing. Any clues?

Chris

Clicks On Horizontal Frame Display Menus On Vertical Frame
Hello everybody,

I'm redesigning my web site using Flash CS3 & AS3, and I'd like to simulate the behavior of my old HTML web site:
I had a top horizontal frame containing 4 main menus: works, resources, about, etc...
After clicking on, for example "works", a set of sub-menus would appear in the left vertical frame, showing "3d graphics", "web design", etc.

I already built the horizontal menu in Flash.
For now, my idea is to convert the 4 groups of vertical sub-menus into 4 movie clips symbols, and set their opacity (alpha) to 0.
Then, some scripts on the horizontal frame's main menus would set the opacity of the relevant sub-menu to 100%.

But before I go on, I am wondering if this is the best way to do it? Do Flash designer have a more commonly used way of doing this?

Thanks
Gz

Image Quality Takes A Dive When I Move Everything From Frame 1 To Frame 3.
I'm not sure what's going on here. I decided I need to add a preloader to my site so I moved everything in frame 1 of the main stage to frame 3 so I could add in the preloader. Without the preloader, I tested it to make sure everything was moved over to frame 3 and that everything was working and now when I preview the movie in Internet Explorer all of the images (png format) are really jagged around the edges as if AA is not on anymore. Everything looks fine if its in frame 1, yet in frame 3 it looks bad. Any idea what's up and how to correct this?

Looping Scenes To Go From First Frame To Last Frame And Rollover Button Play
I'm trying to figure out:

a) how to loop a scene to go from the first frame to the last to the second last etc

WHILE

b) having the scene play either forwards or backwards (as above) while the user has their mouse over a button but making the scene pause when the users mouse isn't over the button.

can anyone help me????

How To Using Frame Label From A Movie Clip To GotoAndStop To Stage Frame?
I have a 100-frame movie clip, a_mc, on the stage.
I want it automatically gotoAndStop at a certain frame, labeled as "about", on the stage (root level).
How should I do?
(AS3 version please...)

I know how to do this from a root to control a movie clip only.

Image Quality Takes A Dive When I Move Everything From Frame 1 To Frame 3.
I'm not sure what's going on here. I decided I need to add a preloader to my site so I moved everything in frame 1 of the main stage to frame 3 so I could add in the preloader. Without the preloader, I tested it to make sure everything was moved over to frame 3 and that everything was working and now when I preview the movie in Internet Explorer all of the images (png format) are really jagged around the edges as if AA is not on anymore. Everything looks fine if its in frame 1, yet in frame 3 it looks bad. Any idea what's up and how to correct this?

Flash Menu In Top Frame Link To Anchor In Main Frame?
I have created a flash movie to use as a manu system at the top of my page. I have 2 layers, top layer is for the flash menu, and the body layer for the text and tables.

I have anchor positions in my bodylayer. I can't seem to be able to make it go to the anchor position, it goes to the page but not the position.

Heres what I inputed:

Anchor Image = About

Flash Link = #About
Flash Target = _self

p.s. I have tried using just an image with the link to the anchor and it works fine.

Any suggestions, I'm at a lose here.

Thanks

2 Frame In Time Line 1 Movie Clip In Frame 1
There are 2 frames in the time line, the first frame has a movie clip with 200 frames or there abouts.
Once the MC is finished playing I want the play head to go to the next frame of the main time line.
How?

How To Start Playing A Swf In Another Html Frame From A Particular Frame Number
I wonder how to get a swf located in anothetr html frame so that it starts playing from a particular frame number...
thanks to everyone who can help me... as I have to obtain this effect as soon as possible..

quinnity

Flash Button In One Frame Goes To Movie Scene In Other Frame
Hey whats fellow flashers. Im sure this is a no brainer for you smarties, but its driving me crazy...I'm working on a site that has a flash movie menu in the one frame and the main movie in another frame. I need to be able to click on the buttons in the menu (top) frame and have them go to a certain location in the flash movie which is in the bottom frame. If I use the Get URL action, it lets me specify the frame, but not the label (location). If any of you guys have ideas or need me to explain further, please reply. Thanks.

IfFrameloaded() Depreciated How To Get Frame Number From Frame Label
ifFrameLoaded() has been depreciated in Flash 5, leaving me with using _framesLoaded which gives me no way to verify a frame label is loaded as far as I can tell.

I thought there was a way to get a frame number from a frame label but I can't find it. How would you determine if a frame label is loaded (not the whole movie, but the just up to the frame label).

The reason I have to do this is that I have large animations that are changing a lot during production and thus the frame numbers are changing. I need to determine if a frame label is loaded (not the entire movie).

Thanks for the help!

'call'ed Frame Playing Before Jumping To Labelled Frame
hi,

I currently have 1 button with the following code


Code:
on (release) {
call("start");
play();
}
"start" being a labbelled frame plays a small movie clip sequence. What I want to happen is when the button is pushed, "start" is called and plays and then to jump to my frame labelled "david".

I have tried:


Code:
on (release) {
call("start");
play();
gotoAndStop("david");
}
...but all this does is jump almost straight away to the frame labelled "david"

I want the movie to wait until the frames labelled "start" have finished before it jumps.

Any ideas??

? About Jumping From A Frame In A Clip To A Frame In The Main Scene
Hello. I have a question. I have a question about jumping from a frame in a movie clip to a frame in the main scene. In my main scene, I have a "stop" action in frame one. In this frame, I have a movie clip that is 100 frames long. On the 100th frame of that movie clip, I want to jump to the 5th frame of the main scene. This is the actionscript that I tried, but it didn't work:

this.gotoAndPlay(5)
//This is the code that I placed in the 100th frame of my movie clip, but it doesn't seem to work.

What am I doing incorrectly? Thanks in advance for any advice! (I am using Flash 5)

Previous Frame/next Frame Issues Giving Me Big Problems
This question is regarding the previous frame / next frame command and how to control the range of frames in can effect.

I have a situation in Flash where I am controlling another, externally loaded SWF file via the previous and next frame command. The externally loaded SWF is a sequence of bitmap graphics with a stop command on each frame and a two frame preloader sequence in a separate scene (scene 1). Let’s call this externally loaded file images.swf for the sake of clarity.

In my main Flash sequence, I have two arrow buttons with a message telling the user to press either arrow button to begin. The first button press of either arrow button does two things: first, it loads images.swf into a empty movie clip (“emptyMC”) and second, it brings users to the next frame in my main Flash sequence, which is exactly the same as the one before it with the one exception that there is now a different action applied to both arrow buttons.

So Flash is now on the next frame of the main Flash sequence - to the user the only visual difference is now they are now viewing the preload graphic in the display area where “emptyMC” is. When the preloader is all done, users see the first frame of images.swf loaded into the “emptyMC” box.

Now when users press the right arrow button they move the frame head on images.swf ahead by one to the next bitmap because the right arrow button in the main Flash sequence now has the following action attached to it:
on (release) {
tellTarget ("emptyMC") {
nextFrame();
}
}
(the action for the left arrow button is the same except it’s a previousFrame command.)

This lets users scroll through the bitmaps in the externally loaded image.swf using the right and left arrow button in the main flash document.

Here’s the problem:

After users have loaded images.swf and are scrolling back and forth using the left and right arrow buttons, if they are at the first bitmap in images.swf (frame 3, since there is a 2 frame preloader) and press the left arrow button (with the previousFrame action attached to it) they are now brought back to the preloader. This is no good – I don’t want users to be able to scroll back to the preloader over and over again. Is there any way to tell Flash via action script, “this button when pressed brings you to the previous frame of X unless X is at frame 3, in which case do nothing when the button is pressed.”?

I hope I’m being clear here. I’m new to Flash, especially actionscripting, so I might be over-complicating things here.

One other question : When the user reaches the last frame of images.swf and presses the right arrow button (nextFrame) in the main Flash sequence, I was hoping to have a graphic that displayed that says something to the extent of “Last frame, please press the back arrow”, and then automatically brings you back one frame after a few seconds. Is there a way in actionscript to say in essence, “previousFrame after 5 seconds”?

If anyone wants to check out the file in question, head to www.nilsd.com/index2.htm When the Flash doc loads, select “Multimedia” then select “Design” (it’s the only path close to completed at this point) This will hopefully give you a better sense of what I am trying to do.

Thanks in advance for any and all help.

Nils
images.swf

Actionscript To Make A Button Move From Frame To Frame
I'm trying to take a Powerpoint Presentation and put it into Flash. The problem is that I im not sure how I can get a mouse click to advance to the next frame. I want a user to click on the Flash item and go from frame 1 to frame 2 and so on and so on. What would be the best way to do this so it looks and acts like a Powerpoint presentation.

Thanks

Any Way To Compensate For Scroll Bar In Top Frame, Not In Bottom Frame? Visit Here:
http://www.noquo.com/chromalogic

to see what I'm saying.

If the scroll bar appears in the top frame, it makes the tables jump left about 15 pixles to the left, making the bottom frame not line up anymore!

Is there a workaround for this!??

Cheers
// Schimke

How Do U Start & Stop MC On Frame 3 On The Timeline & Proceed Onto Frame 4 W/ New MC
1.What I'm doing is setting up a "Cell Phone Slide Show" to load images and .AVI’s (Movie Clips) into the phone screen strictly when the user presses the cell phone button. So, when the user presses the cell phone buttons (“OK”, #1, #2, #3, “CLR”, etc.., an image or MC loads into the cell phone screen.

2.My Time Line consists of 5 Layers: actions, cell phone buttons, cell phone screens items, cell phone, cell phone description

3.“action” Layer uses: stop(); from Frame 1 to Frame 5 – to stop at the last frame 5.

“cell phone buttons” Layer uses: on (release) {nextFrame(); } from Frame 1 to Frame 5 – to proceed to the next frame.

”cell phone description” – from Frame 1 to 5 - loads a new cell phone text description on each frame.

”cell phone” - from Frame 1 to 5 – just a background image of the cell phone.

“cell phone screen items”: I am loading images and Movie Clips on this Layer. For example, Frame 1: Image, Frame 2: Movie Clip (the movie needs to start and stop to go into frame 3). Frame 3: Another Movie Clip (the movie needs to start and stop to go into frame 4).
Frame 4: an image with movie clip label. Frame 6: Another Movie Clip (the movie needs to start and stop to go into frame 7).
Frame 8: an image with movie clip label. Etc…… This will proceed to 30 frames.

I am trying to start and stop these movies on specific frames by adding action within that frame on it’s own separate Time Line:
This Movie Clip time line consists of 70 frames. The Movie Clip is called: “tud_vid1”. I put a Label on frame 1 called: “Start” and put a label on frame 70 called: “stop”

My code for this Movie Clip Time Line is:

_root.tud_vid1.gotoAndPlay(start);
_root.tud_vid1.gotoAndStop(stop);

4.The problem I’m having is instead of the Movie Clip on Frame 3, for example, Starting and Stopping when the user clicks on the cell phone button, and going onto Frame 4 to play the next Movie Clip (with Start and Stop Action) ; the Movie Clip on Frame 3, “Keeps on Looping” and doesn’t move onto Frame 4.

5.How would I set up this “Cell Phone SlideShow” to Start and Stop my .AVI’s on each frame and move onto the next frame and play the next movie from beginning to end or play the next image.

6.I attached a screen shot of my main time line: CellPhone_Timeline1.jpg

7.I attached a screen shot of the separate Movie Clip time line on frame 3: CellPhone_MC_Timeline1

Tell Frame To Change If A Specific Frame Combination Is Loaded
To get a better idea of what Im talking about please check my flash page. http://www.munktiki.com/Munk-e.htm

You can see that when a different munk-e color is selected and you have his ear extentions on(bottom left in the piercings menu)that the colors dont match.


So.... when the color movie/orange frame is selected and the earring movie/ear extensions frame is selected then the orange frame will tell the earrings movie to go to the correct corrisponding color earring.
Man I hope this makes sense, it barely does to me.

Hope someone can help

Help Load A Movie (and Frame) On A Specific Frame In My Timeline
I need to Load a movie and go to a specific frame within that loaded movie.


I know how to do this "on press & release" commands but how do I get it to load when a certain frame is reached in my timeline.


Example. When finished preloading it plays frame 25. When it gets to frame 25 I wan't a movie to load and start on a certain frame.

If you need more info or I am not making myself clear, please let me know.

Thanks in advance.

Make Button Go To Certain Frame Depending On What Frame Movie Is On?
I want to be able to tell a button to go to a certain frame depending on what frame the movie is on. In this flash file, I have a piece of paper moving to the top of the screen, two pieces of tape coming to tape it up, and then writing on the paper. I want to make it that if someone has already clicked on a link, and the paper and everything is on the top of the page, that the next link they click on, just goes to the frame where the writing for the page begins, and not have the paper and tape again and vice versa...

I hope this makes sense...

How Do I Make A Frame-by-frame Character To Put Into My Main Movie?
Hi I am trying to create an animation to put into my main animation. Eg) a moving character who moves across the main movies page. I've drawn all the keyframes for it by hand, in a new movie window, but what do i do next to get it into my other movie as a moving character?

Image PNG Quality Degrades If Moved From Frame 1 To Frame 3.
I'm not sure what's going on here. I decided I need to add a preloader to my site so I moved everything in frame 1 of the main stage to frame 3 so I could add in the preloader. Without the preloader, I tested it to make sure everything was moved over to frame 3 and that everything was working and now when I preview the movie in Internet Explorer all of the images (png format) are really jagged around the edges as if AA is not on anymore or something like that. Everything looks fine if I leave it in frame 1, yet in frame 3 it looks bad. Any idea what's up and how to correct this?

Quick Button Question Next Frame And Previous Frame
hey there, just a quick problem im hoping someone can help me with please?

ive got this code on a button:


Code:
on (press) {
newDepth++;
var h = box.createEmptyMovieClip("holder"+newDepth, newDepth);
h.loadMovie("vanda.swf", "_root.holder"+newDepth);
preLoader(h);
}
have then got this code on another button in the same timeline as above with this code:




Code:
on (press) {
_root.bar.buttons.box.holder+newDepth.gotoAndStop(nextFrame);
}
i would like these buttons to tell whatever swf has been loaded into the empty movie clip to go forward one frame and stop and backward one and stop? am i close?

How Can I Make Frame 2 Wait Of Frame 1 To Load Data?
In frame 1, I'm loading data (pulling it from a URL in XML, parsing it, etc). It takes a few seconds and I want frame 2 to wait before doing it's thing because it needs the data first (otherwise it shows blanks).

How can I make frame 2 wait of frame 1 to load data?

Thanks in advance,
Ron

Start Flash At Specfic Frame (Goto Frame)
I have a header flash movie that is the same on all my webpages - everytime i open a new webpage the movie starts all over again from the beginning - to reduce redundancy - i would like to movie to start at a different position on different pages. I created different swf files with different Goto Frame#'s actionscripts in frame 1 - this works - but now i have to wait and load each swf for every page visited -- is there a way to use one swf and just instruct the browser to start the movie at a specific frame?

I am a newbie - but i tried the flashvar technique..

in my html - i used this:
<script type="text/javascript">
var so = new SWFObject("../swf/bannervar.swf?FRAME=1671", "bannermovie", "512", "92", "6", "#990000");
so.addParam("quality", "high");
so.addParam("menu", "false");
so.write("flashcontent");
</script>

(i'm calling the swf via the SWFObject method for IE compliance)
i appended a variable "FRAME" after the swf. ie.. bannervar.swf?FRAME=1671


First frame of my swf file i have as an actionscript:

gotoAndPlay(FRAME);



Am i close? far? or completely useless? any help or guidance is greatly appreciated.. thanks..

[CS3] Control A Looping Frame By Frame Backwards And Forwards
Hello Everyone,

This problem has been driving me nuts for days. Basically I want to do this:
http://www.chevrolet.com/corvette/colors/

control an animation backwards and forwards. I have this action script controling the buttons however It only loops when I go backwards, it gets stuck on the final frame going forwards, does anyone know how I can make it loop both ways:

Thank you so much!

back_btn.onPress = function () {
onEnterFrame = function () {
prevFrame();
}
}

back_btn.onRelease = function () {
delete onEnterFrame;
stop ();
}

if (frame = 1) gotoAndPlay(6);



forward_btn.onPress = function () {
onEnterFrame = function () {
nextFrame()
}
}

forward_btn.onRelease = function () {
delete onEnterFrame;
stop ();
}

[CS3] GotoAndPlay Exeption (example: If MC1 Frame 30 Is Loaded, Play MC2 Frame 5)
Hi, for a long time i've been struggling to achieve this effect, that is an action script that would allow me to make an exeption. i playes with variables and stuff but i never got it right:/

i have a button, and i have an action assigned to it:

menubutton2.onRelease = function():Void {

content2.gotoAndPlay(2);

IF content3 is on frame 10, i want it to play content3 frame 15,
IF content3 is on frame 1, i dont want it to do anything with content3

};

If only AS could be that easy....

if anyone could help me with this one i would feel relieved... thanks in advance

[F8]Playing A Movie Clip From A Certain Frame To A Certain Frame With A Button
Hey guys,

im slamming my head in trying to figure this out.

I have an invisible button and only one mc, the mc loops 3x then stops, this is defined with as in mc.

Now i want to play the movie from the invisible button but only loop it once.
Which means i would like to play it from frame 1 to frame 215.

And also when u rollout i would like the movie to stop and go to frame 1.

this is my button code so far


Code:
on (rollOver) {
tellTarget ("loader")
{
gotoAndPlay (1);}}


on(rollOut){
tellTarget ("loader") {
gotoAndStop(1);}}

on (release)
{
getURL(clickTAG, "_blank");
}
Help please

Controlling Multiple Fill Colors Frame By Frame...
I have multiple instances of Movie Clips, which contain frame by frame animations of a person, the animations consisting of outlines, and color fills for the shirt, pants, and skin. I want to have the color fills for the shirt, pants, and skin be different colors, generated randomly for each instance of the movie clip.

So far, I've been been separating the shirt fill, pant fill, and skin fill in their own separate MC's, layered beneath the frame by frame outline. This process is really tedious, as the color fills themselves change form frame by frame with the outline, and it's a hassle to properly align all the color fill MCs with the outline. I'm wondering if there is an easier way to control the separate colors with actionscript.

I'm fairly adept with actionscript, but for some reason, the solution isn't quite emerging to me...

Does this make sense? Something like this:
http://www.radiolights.com/chase/pants.htm

Retaining Drag And Drop Movement From Frame To Frame
Hello.

I'm having a problem with retaining Drag and Drop movement from frame to frame. The issue is that if some movie clips in frame one are moved around with drag and drop, then the user proceeds to frame two, upon going back to frame one, the movie clips that were moved around are now back to their starting positions. How can I have these movie clips stay where the user put them? I've attached a simple fla file for reference.

Thanks in advance for any help and suggestions!

Load A New Movie At A Certain Frame Based On Current Frame?
hello, i have a 36 frame movie clip

i have a button that is available throughout the 36 frames

if i am on frame 15 of the main movie, can i load in a new movie that opens on it's own frame 15?

whichever frame i am on in the main movie, i want the second movie to open to the matching frame number as the main movie

if this is possible, how would i do it? thanks

Problem Coding Button Over Frame By Frame Animation
Compiler Error: Scene=Scene 1, layer=actoins, fr;'{' expected







Attach Code

function buttonClickHandler(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.deseloper.com/gnome"));
trace("You clicked me.");
}
inv_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);

























Edited: 03/13/2008 at 05:17:45 PM by trowzers

Showing Previous Frame Transparent On Current Frame?
I am drawing all my flash out by hand, and wondered if there was an option that showed the previous frame transparently on the current frame to guide me. This would make things sooo much easier. Does Flash offer any option like this?

Copyright © 2005-08 www.BigResource.com, All rights reserved