Main Movie MC Dictate Frame Location In Popup
on the _root of my original movie I have a mc labeled "kids" that when clicked. opens a popup consisting of 10 pictures in the main time line (each pic in it's own frame). how do i pass a variable from the original movie to the popup directing the playhead to a set frame # or instance name displaying a specified pic? any help would be great. thanks
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 03-15-2007, 06:24 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Can An Html Page Dictate What Frame A SWF Plays Or Goes To?
Hello,
I have wondered this for a long time, hopefully some of you clever lads & lasses will be able to help me.
I have a flash header for a web site, that appears on every page. What I would like, is that when it's on the home page, the header.swf shows the home page view, and when on the contact page it shows the contact page view etc.. different artwork different text but same header file.
IE the html page sends information to the swf file telling it which frame to go to and stop (or play as the case maybe)
Is this possible?
Or do I need to create a new header for everypage, which seems a bit of a wasteof resources.
Any help greatly appreciated
Thank you
Tilly
Loading A Movie From A Remote Location And Reloading The Main Movie
HELP!!! I have a flash movie that loads a movie (at level0) from a remote location.. There are two movies there, one that stops the movie and another that reloads the main flash movie (I just rename the swf's to toggle which one I want loaded). The problem is, when the second remote swf reloads the main flash swf, it just loops back to playing the remote swf again. I've tried using telltarget to make the main movie play a frame after the actionscript that loads the remote swf, but that doesn't work either. Are there any alternatives to doing this? thanks...
Loading A Movie From A Movie On Main Timeline, To A Specific Frame On Main Time Line
I need help loading a movie from a button in a movie on the main timeline. To a specific frame on the main timeline.
i.e. I have a navigation movie, in it is a load of buttons. I want to load separate movies to a blank movie on a specific frame on the main timeline.
I guess I am having target problems, I can load the movie in the main timeline, but not the frame i want it or the the blank movie in that frame.
Close Popup From Main Movie
Hello Fellas,
Situation:
I have a button on my movie that opens a popup window.
I need to create a NEW BUTTON ON THE MAIN MOVIE that will CLOSE THAT POPUP window
(P.S. not a buttom IN the popup window)
So I need the javascript that goes on this button's action
Anyone able to help?
thanks a bunch
[F8] Loading Popup Movie From Main Swf Problem
Hi everybody.
I'm new to flash, and right now stuck in making some simple thing to work. I have one small swf (400x400 px), in which are 3 buttons - they should onRelease load and popup bigger swfs (700x700px - in new window). If you click on button1 - he loads movie1.swf which pops up over in new window, button2 loads movie2.swf in another window etc.
I tried with loadMovie, but I really can't figure out how to load external swf to popup in new window.
Thanks in advance for any help.
Flash Movie In Popup Reloading Main Window
Hi,
Just a quick question, I am trying to make a flash movie button in a pop up load a new url in the main window which opened the popup and then close the pop up, does anyone have any suggestions?
Thanks
Ian
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");
};
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.
Popup Movie Clip In Main Movie
When a contest button is pressed, I need a movie clip to come up as a pop up within my movie (this movie clip is a form that will need to feed into a database after the Submit button is pressed within this popup form) I've tried both parts of the tutorial found here:
[L= [L=http://scriptplayground.com/tutorials/as/Building-a-Flash-Popup-Part-1/]]http://scriptplayground.com/tutorials/as/Building-a-Flash-Popup-Part-1/][/L] [L=http://scriptplayground.com/tutorials/as/Building-a-Flash-Popup-Part-1/[/L]]http://scriptplayground.com/tutorials/as/Building-a-Flash-Popup-Part-1/[/L][/L]
and I keep getting an error that it cannot find the action script file that is made in tutorial 1, even though I have it in the same folder as the movie. If anyone has suggestions, please feel free to comment.
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?
Problems With Fluid Movement: Controlling The Frame Location Of One Movie With Other
Dear guru's, friends and famed flash soluition people!
I've been working on an issue in flash for some time now, and I can't seem to solve it.
I have a few layers in my flash applicaiton. _level0 has a slider and controls the frame position of another layer's movie on _level1.
When the user doesn't drag the slider, the movie plays after a short pause.
I create the illusion of motion by increasing the slider's x position by 1 every frame and then the _level1 movie is moved to the frame corespondiing to the x position of the slider.
It all works great, except that durring playback the _level1 movie sometimes stutters - it somehow never gets to the next frame it needed to get to, and so it misses a "step" or two in its motion.
I've tried profiling my applicaiton, and streamlined it as best as I could, and I even removed loads of layers of code to just test the playback. I also changed my system to work on an interval bassis instead of using onEnterFrame. With both methods I still get stutters...
I've also tweaked the ratio of the slider's range of motion to the film, or increased the films length, or slowed down or sped up the sliders motion per interval/frame - finally I have also tried different frame rates [currently at 20fps]
Is there anything else you can think of that i can try? It feels like the second layer just isn't high priority in flash's mind and therefore it reacts slower...?
Is there a better method for controlling the playhead [frame position] of one movie from another?
Your assistance is greatly appreciated; i've exausted all the options I can think of...
With kindness,
Sebastian.
How To Load Movies In One Main Flash Popup Movie As Per Button Click From Navigation
hi,
i am strucked in a practical problem.
I have a navation menu in flash in my homepage.
I have 3 menus>> portfolio1 |porfolio2| portfolio3
so when i click the portfolio1..the popup page opens and one flash movie is opening.
in that popup flash(500px width,300px height)..i have a center portion(500w,15oh) where the portfolio related one small flash will be loading..
Right now when i click one each menu..evrytime by portfilio1 realted small flash file opening..but i want it should load as per button click on main page.
so if i click portfolio2 button..popup should load also portfolio2 related small flash in the main popup flash.
what is the solution for that. I need help..plz
thanks,
Link From Frame In MC To Frame In Main Movie?
I am making a website. The entire thing is flash, meaning inside the flash website a link to the next page will go to a new frame with different content instead of opening a new .html page. One big movie. I have a movie clip as a rollout menu on the header of the flash movie website. I need to know if it is possible to make one of the rollout menu items link to a frame of the website and not a frame in the rollout movie clip itself. If so...how please. if I just put a frame number in the actionscript it stays in the rollout menu movie clip. I have tried giving the desired frame a label but that didn't do anything.
any help is greatly appreciated.
Script For A Placed MC To Go To A Frame In The Main Movie?
Hello,
I have a main flash file that has a MC placed in it. This placed MC is part of the navigation so I need for the MC to send the user to a specific frame within the main movie.
Is this possible or can the scripting on the placed MC only control actions on itself ?
Hope this makes some sense. fresh newbie and all.
thanks in advance.
Preloader On Frame 1 Of Main Movie
Below you'll see the code for the preloader I've been using for the past few weeks. It works fine if I want to have two separate SWFs (the main SWF, and the preloader SWF.)
Unfortunately, for the current project I am working on, it is necessary for the preloader to be part of the main file. I would like to modify the code below a bit, so that I can place it on frame 1, which would then advance to frame 2 when the SWF is fully loaded.
Any help would be greatly appreciated.
Code:
var req:URLRequest = new URLRequest("tour.swf");
var loader:Loader = new Loader();
loader.load(req);
addChild(loader);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, checkProgress);
function checkProgress(p:ProgressEvent):void {
var percent:int = (p.currentTarget.bytesLoaded / p.currentTarget.bytesTotal) * 100;
mLoadBar.scaleX = percent;
}
Go To A Frame Label In Main Movie From An Extern Swf?
Hey everyone...
I'm making a site wich loads a extern swf. When I unload it I want to go to a other frame label in the main movie (in the same scene where the swf loads/unloads)... I'd tried much but nothing seems to work
Is somebody smart enough to solve this for me?
grtz Sapperderflap
p.s. i'm Dutch, please keep it simple!
Targeting Movie Frame From Main Timeline
Hello,
How do I call up a specific frame in a movie clip from my main timeline? My movie clip instance is called 'menu' and the frame I want is 2.
I don't really understand _level,_target,_root, or _parent commands and have not loaded the movie in any special way other than dragging it onto the main timeline.
Any help would be greatly appreciated.
Thanks
HitTest From Frame 1 Of Main Movie[mx04]
My fla is too big to upoad here, but can someone take a look
http://www.scaeriefaerietails.com/fla/L_Web.zip
What I was trying to do is to get the animation on 'bt', or 'b1'( they are stacked on top of each other) to gotoAndPlay "_over" when it hits the lower red dot(instance 'oneHT') and then gotoAndPlay "_out" when it hits the second higher red dot(instance 'twoHT'), and then do the same for each windmill blade as it passes the red dots during it's rotation.
When I attach script to the movieclip it works, but I'd like to just keep all the actionscript on the main timeline so I dont' forget where I put things. I think the problem is that I'm targeting them wrong, but I'm not sure.
Pleeeeaase help
Calling Frame Label In Main Movie
hello...
forgot how to do this......i have a main movie that loads other movies into _level1. i have a button in one loaded movie that when pressed will
unLoad my movie in level1 and go to frame labeled home.
i can't seem to get it to work right. it unLoads the movie in level1 but does not go to frame labeled home.
could someone take a look at my code and tell me what i've forgot...
i've also tried _parent in place of _root
on (release) {
unloadMovieNum (1);
_root.gotoAndStop(home);
}
Thanks.....tg
Controle A Movie From A Other Movie From The Main Frame
Hallo there,
i have a movieclip with a holder...and i want that holder to goto frame nr1....i want this action to come from a html page wich has frames...and the action comes from the main page....i want this action to come from the timeline.
kind regards
rogier
Consecutive Movie Clips On The Same Frame (main Timeline)
-flash movie has 1 frame with about 10 layers.
-on each layer there is a 10-frame movie clip
-after one movie clip, I want another movie clip on another layer to play.
-the other mc "instance" is named "mc02"
-on that 2nd mc, it starts with a stop() frame so it doesn't play right away.
-the 2nd frame is called "start01"
-here's the action script on the last frame of the 1st MC :
stop();
_root.mc02.gotoAndPlay(start01);
I thought this would work, but it doesn't...any help greatly appreciated!
Thanks in advance....
md
Drop Down Menu Won't Goto Frame In Main Movie
I have a sliding dropdown menue with 4 menu items. on each item i would simply like to
on (press) {
gotoAndStop(4);
}
and go to frame 4. why will it not go it just stays on frame 1 of the main time line. If i make just a simple button and run the same script it works fine. the menu is simply a bunch of buttons that are tweened to drop.
can anyone advise.
Can A Loaded Swf Affect The Frame Position Of Main Movie ?
edit.....SORTED...AT LAST...here's the problem fixer...if anyone else has this problem of testing between a movie on their pc and an external swf on another domain...
System.security.allowInsecureDomain( "www.mysite.com" );
drop this in frame one...hey presto...
thanks all for your help....
the bungra
Hello everyone.....first time at this.
Here's the thing.
I have a main movie...(it's a music player...works from loading ext swfs..)
What I need to do is make the loaded swf affect the frame position of my main movie..the reason ?
When you click on a button it fires up an ext swf (song sample) and moves the frame position on the main movie to show the name of the track.....
The ext swfs will (if you leave them to play) load up the next swf....but this is not changing the name of the track...because I can't work it out.....
Thanks for your time all....
p.s. I have tried using the connection class...but to no avail as yet....
ta.
GotoAndStop From The Main Timeline To A Frame In A Movie Clip
Im relatively new to Flash and very new to this forum. I'll try to conform to the rules/suggestions about posting that I read.
My problem is that I have an instance of a movie clip on my main timeline. I have actionscript on the first frame of the main timeline and I want to be able to, based on user input, direct people to the appropriate frame in my movie clip. I have tried a few things and none seem to work. This includes labeling the movie clip which seemed to work for someone else in another post i read that was similar. Right now i have this -- _root.gotoAndStop("pius5", dest); -- where "pius5" is the name and label of the movie clip and dest is the frame. Any help would be greatly appreciated.
One other thing. If I copy the frames from pius5 to the main timeline I can easily use the gotoAndStop command but the movie clip become much larger in size when pasted. I thought this was strange. Anyone know why?
Thanks in advance,
Matt
Menus - How Do I Go To A Frame In The Main Scene From A Loaded Movie?
hi...
need help... i actually have done this beofre but dont know what ia doing worng now..
i created an intro. this into is a seperte movie loaded into my main movie.
in the intro there is a skip button so that the user can skip intor and go to a a frame on the main scene i loaded the movie into...
i tried _root.gotoAndPlay(10) it doenst work...
i trird )level0gotoANdPlay(10) it doent work...
please help !
thanks
Goto Frame Label In Main Timeline From Movie Clip
Hi..
Could somebody point me in the right direction.
I have a buuton in a movie clip that I need to point at a frame label
on the main timeline.
I am using :-
on (release) {
removeMovieClip(dultanMC);
_root.play("Scene 1", "myframelabel");
}
It does not go to "myframelabel" but to the first frame of the
main timeline.
I've tried gotoAndPlay ("Scene 1", "myframelabel");
that just removes movie and does not redirect.
Please could somebody advise.
How Do I Make A Button In A MC Go To And Play A Frame Label In The Main Movie?
Basically I'm making a MC symbol that contains a bunch of moving buttons. On the buttons I put the action:
on (release) {
gotoAndPlay("Scene 1", "pow");
}
where "pow" is the frame label I want the movie to go to. On this frame is a stop action.
If I just drag out an instance of the button it seems to work fine, but the buttons that are "inside" the MC don't work.
What am I overlooking?
Thanks,
Jonny
Jumping To An Specific Frame In A Movie Loaded Into The Main Timeline
Hello,
Is there any way to jump to an specific frame in a movie that was loaded into the main timeline?
Thatīs what I did (but it didnīt work, it always jump to the first frame of the external movie):
1. I created a mov_volta.swf movie with different labeled frames as pres01_entra, pres02_entra, pres03_entra...
2. I created an empty movieclip, put it into an empty layer in the main timeline and named its instance "presidentes_volta"
3. Below this layer I put another movieclip which instance was called "presidentes_vai"
4. In this movieclip I have buttons with codes like this one:
code:
on(release) {
loadMovie("mov_volta.swf", _root.presidentes_volta);
_root.presidentes_volta.gotoAndPlay("pres01_entra" );
}
5. So, what I want is: load the movie "mov_volta.swf" into the empty movieclip "presidentes_volta" which is in the main timeline (thatīs OK), and then jump to the frames "pres01_entra", "pres02_entra", "pres03_entra"... in the movie "mov_volta.swf". This second part is not working. Instead of jump to the desired frame, it always jump to the first frame of the movie.
Is there any way to control this? Thank you for your help
(I hope that you can understand my English. I read much better than write. In Brazil our regular English classes are poor...)
External Preloader That Opens Main-movie In Html-frame
Howdy scripters!
My site starts loading showing the PRELOADER. It should be shown in a 1-frame browser-window (standard window that is...). Once the MAIN-movie has loaded it should be shown in the middle frame of a 3-frame-browser-window.
Follow me?
=My guess is that it could be done something like this=
Use two .swf:s. The first one is the PRELOADER and the second is the MAIN-movie. Once the PRELOADER has loaded MAIN, MAIN should be shown in another browser-window containing frames. At the same time, the window containing the PRELOADER should be closed. This would give the impression of that the preloader switched from 1-frame-window to a 3-frame-window.
QUESTION: can an external preloader open the loaded file in a new html-document? some nice javascript?
QUESTION 2: do you have any alternative strategies for solving my problems?
All help is MUCH appreciated!!!
THANKS!!
Problem Getting A Button From A Movie Clip To Play A Frame In Main Scene
I am at a stumbling block and need help!!
I have created a animation that is a scrollbar full of buttons as a separate clip, the prob is that when I set the action from the button of that clip to the main scene, the action doesn't happen.
Please help! you can reach me by aim or e-mail and I will send you the fla to help me debug, thanks!!
Targeting A Frame In The Main Timeline Of The Root From An Externally Loaded Movie
Hi! I'm trying to target a frame called "home_portfolio" on the main timeline from a loaded swf. Here's the code on the portfolio button:
on (release) {
tellTarget ("_root") {
gotoAndPlay("home_portfolio");
}
}
On the "home_portfolio" frame is an action to load the portfolio movie. However, it ignores this.
After reviewing some of the other posts I've changed the code on the portfolio button to be"
_root.gotoAndPlay"home_portfolio"
yet when I publish the swf the output says
Symbol=_bottom nav, Layer=text, Frame=1: Line 1: ';' expected
_root.gotoAndPlay"home_portfolio"
I don't understand why either one of these codes won't work. Can you help? Thanks so much
Playing A Frame(s) Inside A Movie Clip From Actionscript On The Main Timeline
hello i was wondering if someone could tell me the correct syntax for playing a frame(s) inside a movie clip from actionscript on the main timeline.
I have tried: this.movie_clip.gotoAndStop("frame_name");
i don't want it to play, just stop on the frame (which does not contain any script).
also: gotoAndStop("this.movie_clip", "frame_name");
and: gotoAndStop(this.movie_clip, "frame_name");
please help!
thanks in advance
Al
Flash Movie Menu Bar To Link To Anchor Text In Main Frame?
I want to use my flash menu bar in the top frame to link to text in the mainbody frame.
I'm able to link to the mainbody frame from flash using:
Link = bodyindex.htm
Target = mainFrame
I tried using:
Link = bodyindex.htm#About
but it just loads the page and doesn't go to the anchor position in that page.
Any help?
Thanks
Send An Object To A Specific Location On Main Stage?
im still pretty new to the terminology for this program, so my attempts to search for this topic have been unsuccessful.
I have a movie clip within another movie clip and I want one of the objects in the embedded movie clip to end at a particular spot on the main stage. Is this possible?
thank you so much in advance.
Window Size To Dictate Swf State - Possible Or Not?
Hello!
It's me again - the man with the seemingly impossible questions!
After hours building a very beautiful little expanding/collapsing panel of 4 windows with motion tweens & mind-boggling XY coords, the client has come back with an 'idea'.
I don't even know if it can be done:
Is it possible to dictate a movie state depending on the user's screen size?
eg - someone is on 1024x768 so the box state sets to 'minimise' to fit into the screen.
If someone else is using 1280x1024 then the box sets to 'maximise'.
I've read something about listeners & clientHight clientWidth... is this the right direction?
I'm not asking for anyone to DO this for me - just some indication if it can be done or not? I work from home alone & can't ask my cats for help!!
hiap
After External Movie Finish Playing Jump To A Frame In The Main Time Line
Hi
I'm trying to get a imported .wmv movie (Progressive download from a web server) that once it finish playing to jump to a particular "labeled" frame on the main flash time line.
I'm trying by using a cue point called "End" at the end of the movie, with a function that say something like:
if(cuePointName == "End"){
gotoAndPlay("name");
}
but I can't get it to work
Has any one done this before? any other idea of how to get flash to listen to a imported movie so when it get's to the end, a function will start playing a particular "labeled frame" in the main flash movie time line?
Thanks
Alex
How To "goto" Specific Frame Of Main Movie (from Another Movie)
I have an "enter" button I wish to place inside a specific movie which, when released, will send us to a specific frame of another movie.
My main timeline contains "Movie 1". I want the "enter" button to be placed within "Movie 1" to send us to another specific frame in the main timeline (i.e., to "Movie 2"). I don't want to place the button on the main timeline itself because it involves an alpha fade up that occurs in frame 80 or so (and I want my main time to contain only a few frames that point to different movies).
Hope this makes sense----any ideas?
Thanks!!!!
Close Popup From Main Window
Hello fellas:
I need help to setup some action script code for my movie.
situation:
-on the main movie i have 3 buttons. Each button opens a popup window loading a different .swf
button 1: popup1 -> 1.swf
button 2: popup2 -> 2.swf
button 3: popup3 -> 3.swf
example:
If popup1 is open and i click on button 2, instead of opening a new popup with 2.swf, it keeps loading 1.swf on the same window....
I need code for each button that:
opens that particular popup loading the right .swf
AND
if any other popup is open, closes that popup before opening the right window...
ANYONE TO HELP????
thanks a bunch!!!!!
Close Popup From Main Window
Hello fellas:
I need help to setup some action script code for my movie.
situation:
-on the main movie i have 3 buttons. Each button opens a popup window loading a different .swf
button 1: popup1 -> 1.swf
button 2: popup2 -> 2.swf
button 3: popup3 -> 3.swf
example:
If popup1 is open and i click on button 2, instead of opening a new popup with 2.swf, it keeps loading 1.swf on the same window....
I need code for each button that:
opens that particular popup loading the right .swf
AND
if any other popup is open, closes that popup before opening the right window...
ANYONE TO HELP????
thanks a bunch!!!!!
Popup Main Page Moves...
I've created a popup on a button with this code on (release) {
getURL("javascript:window.open('ketv.html','','wid th=320,height=240,')");
}
The popup works, but the main page naviges to javascript:window.open('ketv.html','','width=320,h eight=240,') , and by that I mean that the line "javascript:window.open('ketv.html','','width=320, height=240,')" appears in the main navigation window.
What have I done wrong. I also searched for an answer before posting, sorry if I did miss it.
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
Loading Movie Into Main Timeline From Movie Clip Within Main Movie
Hi there,
I'm having major difficulties loading external SWF's into my main movie. The button actions are in a movie clip within the main movie. I've used the following AS to load in my external SWF files on higher levels:-
mybutton_bn.onRelease {
loadMovieNum("two.swf",1);
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
}
Similarly, my external text files are not loading!
myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
my_txt.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("textfile.txt");
All works fine until I upload to the server. It's really driving my around the bend. Any suggestions will be gratefully received.
Many thanks
Q.
|