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




Events At A MC's Specific Frame



I there a code in which an event can occur when any movie clip is at a specific frame?

ex:


ActionScript Code:
if (instance.isAtFrame("frame7"){instance2._x = 250;instace2._y = 375;}



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 10-22-2008, 02:06 PM


View Complete Forum Thread with Replies

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

Events At A MC's Specific Frame
I there a code in which an event can occur when any movie clip is at a specific frame?

ex:


ActionScript Code:
if (instance.isAtFrame("frame7"){
instance2._x = 250;
instace2._y = 375;
}

If Timeline Came From (specific Frame Of Any Scene), Go To (specific Frame)
Hi, I have thirteen scenes, each one has 2 frames, one with audio (loadSound) one without. What's the best way to tell flash when a user clicks on a nav button (which calls a scene) to go to the 1st or 2nd frame of the scene depending on if the previous scene was playing the 1st or 2nd frame?

Thanks in advance.

Specific Html Page Triggers Specific Frame Of The Flash Movie
I have been playing with flash and html and wonder if any of you have a bright idea on how to do this.


I have a flash movie, which I call from html but depending on which part of the html page I call it from I want to start it at a particular frame and not always from the beginning.

I have created a variable within the movie in action script and given it a different value for each of the frames I want to start the movie at, and want now to designate the value I give to that within html so that the movie “jumps” to the correct frame. Is this possible or am I totally crazy??

How To Load Specific Frame Of Specific Movie On Another Layer
Here's my setup:

Layer 0 = main movie

Layer 1 = navigation movie

Layer 2 = products.swf


Using a button located on Layer 1 (that contains navigation.swf), I need to load on Layer 2 the products.swf, and it needs to land on frame 54 of that movie.

I'm fairly illiterate r.e. ActionScript, so go gentle on me, please, LOL

Thanks!!!!!

Events For Specific Keys
how do you make an event listener that only listends to a specific key pressed? i want only the space key to have effect and the left mouse button for a different event. there seems to be only one event for all key presses.

Make Events Happen During Specific Actualtime.
Hi kings of flash,

I have an idea which i so badly wuld love to make a reality.

how can i make an event happen within an actual time... for exampe if i log into the website at 00:00 midnight the background wuld not be the same as when i visit the webte in the morning or the night.....

I knw that this will be linked to the local time in the machine which is visiting the websie..... the question is how can this be achived.... as a very basic actionscripter.... I wuld love tohave your opinions, suggestions and if possible links to how i can get this going..

Cheers,

SUbandrio

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.

Help: How To Go To Specific Frame Automatically When Hit A Certain Frame?
Im trying to make a project where i have a set of picture "destination" and when you click on a button on that picture, it takes you through a series of pictures that plays automatically, but when it finishes, I want it to go back to a different picture destination automatically that wouldn't be the frame right after the one that just played.

All I know is how to go to different frames with buttons with the onrealease gotoandstop/play stuff but don't know how to make them go to a frame when playing without the use of a button. please help!

Applying On-click Events From Within A Frame
I have a problem that keeps popping up in projects I'm working on, and it feels like there's a fundamental piece of actionscript understanding that I'm missing.

There are certain types of effects (the color property, or .scroll) that I can change using a button, but can't change from within the frame itself. For example, let's say I want to load some text and display it, starting on the third line. I'd type:

columna = content;
columna.scroll = 3;


The first line works, but the second doesn't. Why is this?

#

Where To Learn The Basics Of Frame Events?
I don't understand what comes first
frame actions or movie actions?
Also, if I say stop() on a frame,
will the code below of it be executed?

What if I want to stay on a same frame
repeating a block of instructions
until some condition produces a "jump"
to another frame?

MX Frame Events / Vars Question
i've got this code inside the MC that i'm attaching to the stage:


PHP Code:



this.onLoad=function(){
    //myName=this._name;
    //trace(myName);
    myColor = new Color(this);
    myColor.setRGB(0xff0000);
    
}
this.onLoad();

this.onEnterFrame=function(){
    myColor.setRGB(0x0000aa);





why doesnt' this work? is it not seeing the vars named in onLoad because they're name inside a function? i'm still fuzzy on this part of MX...
thanks in advance,
-mojo

From .swf 1 To A Specific Frame In .swf 2
Hi
just wondering what the script would be to make a button go to a specific frame in another .swf
So far i have use something like


on (release) {
stopAllSounds ();
loadMovieNum ("images.swf", 1);
}

but how would i script it to go to a specific frame in the images.swf?
Thanking you
Miffy

To Go From One Swf To A Specific Frame Within Another Swf...
How do I do this?

My movie loads a swf and then within that loaded swf, I want to be able to click a button to go back to the original movie (home) and to a specific frame. I'm using Flash 5.

Thanks!
Furpants

To Go From One Swf To A Specific Frame Within Another Swf...
How do I do this?

My movie loads a swf and then within that loaded swf, I want to be able to click a button to go back to the original movie (home) and to a specific frame. I'm using Flash 5.

Thanks!
Furpants

Going To A Specific Frame From One Swf To Another
Hi,

I'm pretty new to flash and I'm making a cartoon. However, I have each cartoon split into a few swfs. I have a forward and back button for each "cartoon scene" and once I leave one swf (I'm using "loadMovieNum") I don't know how to get back to the last "cartoon scene" of previous swf.

Any help is greatly appreciated!

Go To A Specific Frame With A MC
hi all i have the following code on a button...


Code:
on (release) {
_root.gotoAndPlay("corporate");
}


this sends the playhead to a frame label corporate which plays a movie clip... what do i need to change to make it play the movie clip at frame 20?

Going To A Specific Frame
I used this actionscript to load a movie on to level 1 and it works perfectly

on (release) {
loadMovieNum ("loadedmovie.swf", 1);
}

What do I need to add to make it open in a specific frame in the loaded movie?

Specific Frame Using URL
Hi everyone...
Does any of you know how I can go to a specific frame using a URL...? I'm not sure if this is possible but I was thinking of someting looking like this: www.webadress.com/flash.swf!frame=3 ...But it's only a sugestion to the URL, of course
The reason I need this is because I have a hi-score on my frame 2, and when I post my updated hi-score to my XML I use php in _self, so I would like it to return to the hi-score, when it's done.....if possible!

Hope you understand my problem, otherwise please write me!

/Asle

Movieclip Frame Labels For Button Events
Hi, Can someone tell me what frame labels you give to a movieclip to give it button event effects. So when you rollover, rollout and release etc the movieclip goes to that frame without needeing to code it. I think its something like _out, _over, _press but can't find any documentation to confirm this.

Can anyone refresh my memory

Thanks

LoadMovie And Specific Frame
hello
i know very basic actionscripting, and i have 0 programming skills (i use flash more for the animation aspect as i am a designer). it's been a long ride with this question, and i've searched everywhere for the answer including macromedia's support section, actionscript dictionary, and macromedia's own flash forum.

here is my quandry:
i have a slide show of 24 images which was started by my predecessor. the images (PNGs) were poorly optimized (if at all) and the final swf file is over 400K. i added a loader in the meantime since it is up on the company's website but it is still obviously a long wait on a 28 or 56K modem.

it was then suggested that i cut the file up into maybe 3-4 segments, and use the loadMovie command to load each successive movie into the swf. i experimented with just flat out loading the movie (all into level0) and it worked fine *except* (and herein lies the MAJOR problem) when the user clicks backwards through the loaded movies, file3 links to file2 but it goes to frame 1 of file2. it would be really nice if, when going backwards, file3(frame 1) went back to file2(frame 8).

i've gotten everything from"you need variables or maybe cookies" (which was described as "very complex") to several scripts typed out for me that just didn't seem to work. it was also mentioned that i would need to preload the segments because you can't jump to a frame which hasn't loaded yet (which makes a lot of sense) - but from an aesthetic point of view i'd like to keep the slideshow seamless, and not have a loading clip in between images. is there any advice/links/scripts/etc that you knowledgeable people could point me to? i would be forever in your debt.

thanking you very much in advance,
idarii

Jumping To An Another MC's Specific Frame?
I am just having this problem :
when I give a link to a button in a movie clip I know that I can load another movie to _level0 and so on but I want to make a link to the new movie clip's specific frame (for ex. 255)when I write load movie command I cant make the movie clip read the second command "gotoandplay 255".
to cut it short "can I give link to a frame on MOVIE-2 from MOVIE-1 timeline"

thanks

serdar
baykush@turk.net

Help Please - Jump From One MC To Specific Frame Of Another.
Hi!
I need to be able to direct a viewer from a button in one Movie Clip to a specific frame of another MC loaded at a seperate URL (within the same domain)....

Nothing I can find seems to allow this - although there is the suggestion of passing variables from one to the other to determine which frame to play from???

Can anyone please offer the code or suggest where to look for the solution..

Oh yes, and it has to be done in Flash 4....

Many thank in advance
Frank H

LoadMovie Into Specific Frame
anyone have any ideas on how to do a loadMovie (into an empty MC) and have it go immediately to a specific frame in that movie's timeline?

thanks, pdh

Starting On A Specific Frame...
hey guy's, maybe someone here can help.

i have a MovieClip with 40 frames.

i was wondering when i load that movie clip can i make it start on a specific frame eg. let's say frame 30..instead on frame 1........

can this be done??

Any help would be greatly appreciated, kind of urgent.

thanx heaps
mdesign

Load Swf, Going To Specific Frame?
Hey ALL

Just wondering how to load a .swf then telling it to goto a specific frame.

example:

on (rollOver) {
loadMovie ("movie.swf", 1);
}

Somehow this load movie fucntion loads the .swf but stops on frame 1, WHEN i want it togo to a specific frame eg, frame 5 and stop.

Any help would be greatly appreciated..

cheers

Preload Specific Frame?
Hi,

Hopefully some kind soul out there can help me.

I've got a big flash movie with lots of photography in it. I need the movie to keep downloading continuously, but I'd like to sort it so that when a user clicks on a link to go to a frame near the end of the movie, preloading that frame takes priority over the others. (am I explaining this OK?)

Say they click to go to frame 150, and there is loads of stuff on frames 100-149, it seems that flash needs to load all these frames before it can display frame 150. Is there a way around this? Without sacrificing continuous preloading. (Originally I was loading every frame in as a seperate '.swf', but obviously, you can't preload a lot of stuff that way)

Any help would be greatfully appreciated

Jamie

Navigating To A Specific Frame In Another MC?
I have three movies which load one after the other.

"Movie 1" has 10 frames manually navigated between frames with the last frame opening MC "Movie 2"

"Movie 2 has 10 frames also manually navigated with its frame 10 opening up MC "Movie 3"

What I am having problems doing is providing the ability to navigate back from "Movie 2" frame 1 to "Movie 1" frame 10. The best I can do is go back to "Movie 1" frame 1.

[in case you are wondering, I split it up because it was getting big, and I wanted it to load faster]

If anyone has any suggestions I'd appreciate it.

Thanks

Stanton

Goto Specific Frame Of Ex Swf...?
hey,
fairly eaasy question im sure, but i cant seem to work out how to tell my level_0 movie to goto a certain frame when a button is clicked in my level_1 movie...


thanks


cu$E

Load A Specific Frame
hi

is it possible to load a specific frame in a loaded movie?
i have a gallery section in my website. i need to insert large pictures without loading them with the preloader.
i already put a loadmovie command for the small pictures mc, but right now i don't know what to do with the big ones. if i create a new movie with all the big ones in seperated frames - how can i load it into the big movie without loading all the pictures in it at once?
thanks ,
yoni

Starting .swf In Specific Frame?
I want to do the following:

If I open a specific html-page on my site, there is a flash-menu on it. I want to start that flash-menu in a specific frame, which I enter on the html page. I know it can be done, but I don't know how. I use this to enter the frame-value in the html:


Code:
<EMBED SRC="flash/movie.swf?frame=11"

So I want the menu to start at frame 11 when the page is opened instead of frame 0.

Now I need to read this variable "frame" in the first frame of the flash-menu. But I don't know how to do this. Can anyone help me please?

Print A Specific Frame
I would like to be able to add a print button to my movie (that runs in the Flash Player) and have it print just the frame I am currently on. (although I want each frame to give the user the option to print) Is that possible? Every time I try, it goes to print the whole movie.

GetURL To Specific Frame?
I'm in movieA. I set up the links for a button to go to movieB by commanding getURL (which I do all the time in Flash 5). However, it will only take me to frame 1 of movieB. Is there anyway I can get the movieA button to link directly to, say, frame 6 of movieB?

If Flash MX (and not Flash 5) has a function that will do it, what is the command?

How Can I Print A Specific Frame Only.
I have an animation with multiple frames. I would like them all to be printable, but only ONE frame at a time. (not designate a frame to be printable, that is easily done with #p)

I have created a button that when clicked should only print that specific frame. Then the user can advance to the next page (using a navigation button that advances the user to the next frame), now if the user decides he wants to print that frame also he just needs to click on the print button and only that specific frame he is viewing will print.

I have figured out how to make a frame printable by using #p in the label field, BUT this will print all the frames I have labeld #p when I invoke the print button in the animation. I only want the active frame to be printed. Is this possible?

I also used the tutorial on customizing a print button using the "onrelaese-geturl-print:" but this also will print all the frames. I can only select which page to print from the printer dialog box, and this requires the user to select this, which is redundant becAUSE he pressed "print THIS page" button.

Any help is appreciated, Thanks alot!
-Dan

[Edited by djaber on 09-25-2002 at 05:44 PM]

Specific Frame Link?
Is there any way to load a specific frame in a .swf file using a standard html text link?

How To Navigate To Specific Frame
I need to navigate to a specific frame in another movie clip.

I have a flash movie with background music and a equalizer pretending to display the music. When I hit the stop button the music stops. Simotaneously I want the equalizer movie clip to move to the last frame. I have tried various versions of gotoAndStop(MovieClip,FrameNumber), but have not succeeded so far.

Could anyone please give me a clue about how to achieve this. If you'd like to take a look at the source or the sfw, both can be found at http://home.c2i.net/flangva/flash/.

By the way - I use Flash MX.

Thanks in advance!

Frank

Stopping On A Specific Frame
im using flash 5 and am trying to make my pages scroll, so when you click a button the current page scrolls to which ever page you have clicked to go to. the pages are all next to each other in a line so its just a case of motion tweening the movie clip until it gets to the next page, i know how to make the page scroll but i dont know how to get the movie to stop where the button specifies. your help would be much appreciated.

Calling A Swf To A Specific Frame?
Please please please help us.

Is it possible in ver5.0 to call up a .swf in an html page, and make it go to a specific frame?

Basically, the swf controls a java slideshow, then it triggers a change in page where the swf is no longer present, then another change in html page calls the .swf back, but at the frame where it left off, not at the default beginning.

Hope that makes sense?


Cheers Tom

Preload Up To A Specific Frame
I have a movie I'd like to make a preloader for. I DON'T WANT TO USE 'IF FRAME LOADED'. I'd like to preload frame 150 (theres more frames but this is the frame I'd like to preload and have the movie start playing from there). Please advise as to how I can do this with FLASH MX.

Thanks!

Go To A Specific Frame For Code?
hello fellow flashkit members, i am making a gallery for my online portfolio and seem to be stuck. i would like some code that is held in a button to tranfer some values to code "on a specific frame".

if you have any tips it will be appreciated thanks.

Jumping To A Specific Frame
i have a base movie then load and unload several swf's on top using different levels. i made a sound swf (with a slider control) and have it load on the first frame of the base movie on level 51 (the highest).

I want the sound to start up immediately, then I want a button (which is a mc on level 30 "menu.swf") to pop open the sound controls on that level (51), if someone wants to turn it off.

I have the sound coming in well, but don't know how to write the code that is associated with the little speaker icon to jump in the "sound.swf" mc to the last frame, which reveals the controls.

can someone help me with that?

here is the movie
www.priceideas.com/fovea/smith/

LoadMovie To Specific Frame
how do I load an swf file into _level100 so that it starts at frame 10 rather than at its beginning?

Start An MC At A Specific Frame
I have a MC (Movie Clip) labled << MC - Promo Screen >>.

I have a button, that onRelease, I would like it to gotoAndPlay Frame # 2 of << MC - Promo Screen >>.

I need some help with the Action Script.

Help Please.

GetURL With Specific Frame (possible?)
Can I use the GetURL to go to a specific frame on another swf? Since I have my Nav page on the last frame of the Intro swf and I don't want to play the Intro everytime someone tries to get back to the Nav page. If it's possible, please show me how or post me a link to it. Or if there are other ways to do this, please let me know. Thanks.

Print A Specific Frame
Okay, let me see if I can explain this clearly. I have an embeded movieclip that has an external swf loaded into it depending on which button you click. I need a way to have a button outside of that movieclip print the exact frame that is currently displayed in the movieclip. Every time I try, flash tries to print 672 pages (one for every frame). Unfortunately I cant give a URL because this is going to be a local flash program. Thanx,

Brandon

How Do I Know If I Have Entered A Specific Frame
I can't seem to figure out how I know if I have entered a specific frame for the first time. Actually, I'm not even sure how to figure out how I know if I have entered a frame at all. The onEnterFrame() function is called every tick of the framerate of the movie. Any other suggestions? thanks.

GetURL To Specific Frame In Different SWF
Hello,

I basically trying to open up a SWF, click on a button within it that brings up a second SWF, and I'd like for the second SWF to go to a specific frame. The solutions I've tried aren't working.

My problem is this isn't working. Here's my code:

Flash file #1, button #1:
code:
on (release) {
getURL("javascriptpenNewWindow('test.html','thew in','height=575,width=700,toolbar=no,scrollbars=no ') ");
gotoAndStop("warmup");
}


In the HTML for Flash file #1, I placed this, just about the </HEAD> tag:
code:
<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</SCRIPT>


And I should mention, that I've added frame labels to all of the scenes, so technically, I'm trying to go to the labels (which are in frame 1 of each scene, and are named differently).

The popup window comes up just fine, but only to the first frame.

If someone could post the correct code, I'd appreciate it.

Thanks.

Stephen

LoadMovie To A Specific Frame
I am sure that this has been asked a bunch of times before.

But how do you load a movie and have it go to a specific frame number or label in the timeline.

Open To A Specific Frame?
With the site I'm working on I want to launch an html file holding a flash file in a javascript window using this line:

getURL("javascript:window.open('albums.html','Albu m','height=435,width=750');void(0);")

is there a way to have the flash file start at a specific frame? If there's any way at all I'd like to know - regardless of whether or not I can do it with what I have made so far.

Thanks

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