Get URL - Target Specific Frame Label Or Scene?
I have two Flash movies, both embedded in HTML pages. I'd like to be able to click on a button in one movie, and go straight to a specific frame label or scene in the second - can this be done, or should I be using Load Movie?
I'd be happy if I can avoid using the latter as I'll get bogged down in levels, and I've got a rather complicated structure.
Many thanks as always...
FlashKit > Flash Help > Flash General Help
Posted on: 09-23-2003, 06:10 AM
View Complete Forum Thread with Replies
Sponsored Links:
Targeting Frame Label In Scene From Movie Clip In Same Scene
Hey Pals,
I'm trying to target a frame label on the timeline of a scene from a movie clip within the same scene, using Flash MX 2004 Pro. The scene is ultimately used as a .swf to load as a page of a website. The frame label is called "miscOn", the scene is called "misc". The below code is attached to a button within the movie clip.
on (release) {
loadMovieNum("tajwebsite_main.swf",1);
gotoAndPlay(miscOn);
}
Thanks!
Stu
View Replies !
View Related
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
View Replies !
View Related
Navigating To A Specific Frame Label
What is the actioscript that enables a button, when clicked, to navigate to a specific frame label in another Flash movie? geturl and loadmovie will launch the correct .swf but is it possible to go to a specified location (frame label) wihtin that movie other than the first frame?
View Replies !
View Related
Going Backwards In An MC To A Specific Frame Label?
Hi all, i have an MC that acts as an animated 'history bar' that maps the progress of a user as he/she moves through the main timeline. The history bar 'grows' a node each time the user makes a new selection. I want the history bar to function in such a way that, when one of the 'nodes' is clicked, the history bar will shrink back to the state it was at when that particular node developed. (the above info was just to acquaint you with the premise of my dilemma, and doesn't necessarily affect my problem).
My problem is this: is there any way to retrieve the frame label of a particular frame? I know that the _currentframe attribute returns the *number* of the current frame, but i want to know if there is any way to return the *name* i have designated as a label to the current frame. to give you an example, the script that appears over the button on node 3 is the following:
---
on (release) {
eraseBar("three");
}
--- function eraseBar() looks like the following: ---
function eraseBar(frameName) {
// push back history bar to appropriate node
while (bar._currentframe != frameNumber) {bar.prevFrame();}
}
---
my problem lies in the above line colored in dark blue. is there any way to return the frame label, and not the frame name? otherwise, is there a better way to be doing this? thanks in advance.
cheers
j
View Replies !
View Related
Can I Load A Movie And Got To A Specific Frame Or Label?
I have a movie with 3 links. I need them to "on Release" load an external movie and then go to a label on that movie.
This is how I am doing it:
on (release) {
loadMovieNum ("", 5);
_level5.gotoAndPlay ("run");
}
This loads the movie just find but it will not go to the label.
Can this be done? What am I doing wrong?
I will appreciate your help
bully
View Replies !
View Related
Loading A SWF File To A Specific Frame Label
Hiya...
I have a cd project, with a main SWF movie, that loads multiple SWF files from a navigation bar, as the user interacts with it. I'm using Flash MX...
I need to load a SWF file, and have the movie go to a specific Frame Label in the file - ie, I want to load first.swf at the "FSF_Overview" frame label...
I know there is a way to do this using loadMovie and targets, but I dont know how to do it. Can anyone advise? Please help!
View Replies !
View Related
Loadmovie Targeting Specific Label/frame
Hi,
I am trying to do the following:
I have a main.swf which I am loading a clip into "content.swf" - i want to load it and send it to a specific label on the "content.swf" timeline... Sending the unloaded clip a command (I am fine with preloaders and loadmovie commands)
eg Load movie "content.swf" into "main.swf" telling it to open at say a label "section_3"
Help much appreciated if this is possible
View Replies !
View Related
AS3: Load Movie At A Specific Frame Label?
Hi All,
Is there a way to load a movie, but have the loaded movie start at a specific frame label, instead of just at frame 1?
I basically have 4 buttons, each of which I need to load the SAME movie, but at different frames. Much like this:
Button1 --> Load "movie1.swf" at frame label "frameLabel1"
Button2 --> Load "movie1.swf" at frame label "frameLabel2"
Button3 --> Load "movie1.swf" at frame label "frameLabel3"
Thanks for any help!
View Replies !
View Related
Directing To Specific Frame / Label From An Outside Link?
I have a slide show style SWF setup with various graphics for a photographer client of mine. He has requested that people be able to send a link to a friend to go straight to a specific image (in this case frame/label). Any suggestions on how I could do this without having to make an enourmous amount of extra pages for people to direct link to? If this doesn't make sense to you, please let me know and I will try to clarify it. Thanks for your help in advance!
View Replies !
View Related
Embedded Swf Within A Swf- How To Call A Specific Frame Label?
I've adopted a web site that's built in flash in a manner I'm not too familiar with. I'm hoping someone can shed some light for me.
The site comprises a main .swf shell, and the various navigational links point to embedded .swf files that sit on top of the general frame or shell. I have revamped a page that has its own subnavigation that points to frame labels in that embedded swf, and if you load the embedded swf by itself, it functions appropriately. However, when you call for it from within the shell .swf, the links are dead. Can someone help me fix this? You can see the site here:
http://www.depazrhum.com/apr_test/
and the standalone embedded swf is located here:
http://www.depazrhum.com/apr_test/recipes.swf (so you can see how the nav is supposed to function).
I currently have this actionscript calling the frame labels from the buttons:
on (release) {
_root.gotoAndPlay("ac");
}
Any help is tremendously appreciated!
Edited: 04/05/2007 at 03:04:49 PM by core4
View Replies !
View Related
[FMX2K4Pro] LoadMovie To Specific Frame Label
Okay, I know. This topic has been addressed several times in various posts. And I've read and tried all of them, however nothing seems to work. I'm not sure if due to the circumstances...I'll explain.
I have made 2 files: main.swf and products.swf. A button in main.swf has the following code:
on (release){
_root.loadMovie("products.swf");
}
This works great, but what I really want to do is go to frame label "Range" in products.swf. A note of explanation: I'm not trying to load products.swf into a container movieclip, I want to replace main.swf with products.swf and go to Range label.
Phew. I guess those are my circumstances and I'm sorry if this is repetitive. Anyway, any help on this would be greatly appreciated. Thanks
View Replies !
View Related
How Do I Unload An External Swf And Then Go To A Specific Frame Label?
Hi,
On the homepage of my website I'm desigining I have five different navigation buttons. When the user clicks a button an external .swf file is loaded into an empty movie clip using the script:
"loadMovie("mymoviename.swf", "container");
stop();"
From this .swf file, the only choice is for the user to go back to the home page. So once they click the close button, an outro animation is played, and on the final frame I have the script "this.unloadMovie();"
The above scripts are attached to a specific frame in flash, not buttons.
This works sweet so far, except when the user exits the external .swf file the screen is completely blank, because of the stop() script.
Is there a way I can tell flash to unload the swf and then go and play a specific frame label from the main homepage timeline? I've looked through many postings and can't find a specific answer to this problem. Any help will be appreciated....
Thanks...
Shell
View Replies !
View Related
HTML Link To Specific Frame Label?
I know this sounds confusing but it's really a simple question. You can follow my site to better understand. www.u-stu.com
If you click on "Films" a submenu appears. I want all of these submenu buttons to link to (u-stu.com/films.html) but each go to a specific frame label in the .swf located within u-stu.com/films.html.
For example:
www.u-stu.com/films("equipment" frame label within .swf)
or
www.u-stu.com/films("tips and tricks" frame label within .swf)
View Replies !
View Related
[FMX2K4Pro] LoadMovie To Specific Frame Label
Okay, I know. This topic has been addressed several times in various posts. And I've read and tried all of them, however nothing seems to work. I'm not sure if due to the circumstances...I'll explain.
I have made 2 files: main.swf and products.swf. A button in main.swf has the following code:
on (release){
_root.loadMovie("products.swf");
}
This works great, but what I really want to do is go to frame label "Range" in products.swf. A note of explanation: I'm not trying to load products.swf into a container movieclip, I want to replace main.swf with products.swf and go to Range label.
Phew. I guess those are my circumstances and I'm sorry if this is repetitive. Anyway, any help on this would be greatly appreciated. Thanks
View Replies !
View Related
How Do I Target A Frame Label
ok, after my preloaded the movie my main movie goes to frame 40 and stops. On that frame I have a movie clip that plays. we will call this movie CLIP1
When clip one reaches its last frame I want the root timeline to jump to frame 60 and stop.
I tried labeling frame 60 or the root timeline jump1
Now I set up an action on the last frame of CLIP1 as follows
with (root.jump1) {
gotoAndStop("Scene 1", "jump1");
}
IT gives me an error object not found.
How do I target a frame label rather than a movie clip instance?
View Replies !
View Related
LoadMovie Target Frame Label?AGH
I'm losing my mind! I've tried so many different things I can't remember my own name anymore.
I have a swf with content that can be updated by my client, using forms and PHP with a TXT file that stores the contents that has been updated. The swf file has 4 labels - add, sending, loading, and view.
The "view" label is the frame I want to target with loadMovie button, but it's not working! It loads the movie at frame 1 (which is supposed to have a password and enter button for the client).
I've been spinning my wheels for 6 or 7 hours now and can't figure this thing out.
I'm loading the external swf into an empty mc in the main movie (from an externally loaded navigation). Not using levels with this.
Using FlashMX so want to stay away from tellTarget. Any idea what I'm missing with this one?
Any help would be excellent!
View Replies !
View Related
LoadMovie Target Frame Label?
I originally had this post in the "Flash MX" area, but haven't gotten much help there.
I'm losing my mind! I've tried so many different things I can't remember my own name anymore.
I have a swf with content that can be updated by my client, using forms and PHP with a TXT file that stores the contents that has been updated. The swf file has 4 labels - add, sending, loading, and view.
The "view" label is the frame I want to target with loadMovie button, but it's not working! It loads the movie at frame 1 (which is supposed to have a password and enter button for the client).
I've been spinning my wheels for 6 or 7 hours now and can't figure this thing out.
I'm loading the external swf into an empty mc in the main movie (from an externally loaded navigation). Not using levels with this.
Using FlashMX so want to stay away from tellTarget. Any idea what I'm missing with this one?
Any help would be excellent!
View Replies !
View Related
Target A Label Or Frame In URLReequest.
Please can someone help me target a Label or frame in my URLRequest.
ActionScript Code:
selling_btn.addEventListener(MouseEvent.CLICK , clickselling)
function clickselling ( evt ){
myLoader.unload()
myLoader.load( new URLRequest("tabs_movie.swf") )
myLoader.gotoAndPlay(30);
}
I want to goto a frame Label mainly from a button.
Thanks
View Replies !
View Related
LoadMovie Target Frame Label?
I'm losing my mind! I've tried so many different things I can't remember my own name anymore.
I have a swf with content that can be updated by my client, using forms and PHP with a TXT file that stores the contents that has been updated. The swf file has 4 labels - add, sending, loading, and view.
The "view" label is the frame I want to target with loadMovie button, but it's not working! It loads the movie at frame 1 (which is supposed to have a password and enter button for the client).
I've been spinning my wheels for 6 or 7 hours now and can't figure this thing out.
I'm loading the external swf into an empty mc in the main movie (from an externally loaded navigation). Not using levels with this.
Using FlashMX so want to stay away from tellTarget. Any idea what I'm missing with this one?
Any help would be excellent!
View Replies !
View Related
How To Target A Frame Label In A Movieclip?
I would really appreciate, if someone could solve my problem.
I have two scenes with MC in "scene1" and a button in "scene2".
Now, I want that the button "sends" me to a certian frame(labeled) in MC in "scene2". I've tried several options (like: on(release){
_level0.MC.gotoAndStop("my_target");}), but none of them works.
What should I do?
View Replies !
View Related
Linking To Specific Frame Number Or Label From An Html Page
Is it possible to link to a specific part of my flash movie from an html page. Is there any way to link to a frame number or label? The site is html based, but the intro/home page is flash. I don't want users to have to see the intro every time they go back to the home page from somewhere else within the site. Is there something that I can append to my link on my html page to make it go to a specific frame in the swf?
thanks!
View Replies !
View Related
Can Flash MX Detects A Cached .swf File And Go To Specific Frame Label?
I have a website. The first page is called index.html and made entirely in html with a drop down menu in dhtml. Below the main buttons there is a landscape format embedded movie.swf. This .swf file has a preloader and an entire movie with 5 different frame labels. Each frame label marks the beginning of a different animation. So we have frame1, frame2, frame3, frame4 and frame5.
This website has 5 main pages. So when you first visit the website, you get to see the preloader and than it goes to play frame1 till frame 5. What I want to achieve is that, when a visitor go to a secondary webpage, then he/she goes back to home page, movie.swf doesn't play all the way from the start. Instead it somehow detects that the movie itself has been completely loaded and played once before, so it goes straight to the frame5 and stops.
Is it possible to do this with Flash MX? I understand that the script must somehow be inside the Flash. Or is there a special java script that can communicate the control a .swf file? Sort of the Flash MX equivalent of a Session I.D. in asp scripting.
I'm sure this is a valid question and I'd appreciate it if someone can help me with this.
Cheers,
P-2779
View Replies !
View Related
Target Frame Label/number Of External Swf
Fellas, I need a generous help from you.. I've made a movie, which imports other swfs into the main movie. Problem is, I can't seem to control the timeline of the external swf from the main movie.
The main.swf has 3 buttons. When one of them clicked, it will load other.swf into _root.targetMC.
E.g: buttonA = loads the other.swf into _root.targetMC and plays frame label "A"
How does the script go? I've tried all kinds of trick, but none of them worked.
Any help would be appreciated...TIA.
[Edited by asuka_langley75 on 11-06-2001 at 06:52 AM]
View Replies !
View Related
Target Frame Label Inside MC From Another MC Using Button
I have a MC called "TextFormatting" on the main timeline.
I have a MC called "Structure" also on the main timeline.
I want a button inside of "Structure" to target the "TextFormatting" MC, then the frame labeled "endof" or frame number "60" inside of "TextFormatting".
I'm building in MX exporting as 5.
The first line of code seems works but second line will not go to a specific frame number or label, it will only go to the first frame of the MC.
on (press) {
_parent.gotoAndPlay("TextFormatting");
_parent.TextFormatting.gotoAndStop(60);
}
thanks in advance
View Replies !
View Related
Target Frame Label From Swf On External Site
I have a flash site that has to link to HTML pages in the navigation.
I want the HTML pages, when the "Home" button is hit, to go back to my Home flash site but skip the intro they have already seen.
I am doing my navigation for my HTML sites in flash as well so the code would be in ActionScript.
Considering this is a swf on one page accessing another swf on a separate page, is there a way to target a frame label this way?
Thank you
View Replies !
View Related
Target A _root Frame Label From Inside MC
Just wondering how this is done within an "if then" statement. I need a code like
if (_root.frame = "home") then {
this.quickHome.onPress = function () {
_root.gotoAndPlay ("homeToContact");
}
}
I know the first line isn't going to work, but just wondering if someone knew of a code that would?
thanks in advance...
(btw _root always targets the main time line correct? not just the timeline of a mc which the instance is placed in right?)
View Replies !
View Related
LoadMovie - Target Frame Label From Button?
I'm losing my mind! I've tried so many different things I can't remember my own name anymore.
I have a swf with content that can be updated by my client, using forms and PHP with a TXT file that stores the contents that has been updated. The swf file has 4 labels - add, sending, loading, and view.
The "view" label is the frame I want to target with loadMovie button, but it's not working! It loads the movie at frame 1 (which is supposed to have a password and enter button for the client).
I've been spinning my wheels for 6 or 7 hours now and can't figure this thing out.
I'm loading the external swf into an empty mc in the main movie (from an externally loaded navigation). Not using levels with this.
Using FlashMX so want to stay away from tellTarget. Any idea what I'm missing with this one?
Any help would be excellent!
View Replies !
View Related
Target A Frame Label In A Level Loaded Swf
HELP!!! 2 days now and going nuts.
I have a main timeline with a menu that loads sections into a level. Once a section (swf) is loaded it will have a button that loads another section (swf) into the same level replacing it. Which is working, but I want to load it and go directly to a label.
Here's the code on the button:
Code:
on(release) {
loadMovieNum("media/section01.swf", 10);
//this is the line I know is incorrect, but I have tried more
section01.swf.gotoAndPlay("label17");
}
View Replies !
View Related
Loaded Movie Into Mc Won't Target To Frame Label -errrrr
I have a base movie that loads other movies into it via a movie clip.
I am having trouble with the following:
If I am in a movie that loaded into the base and I want to load another movie into the base AND go to a specific frame label in the new loaded movie what do I do?
I know to target a movie in this example would be:
level0.gotoAndPlay("label");
...but how do I tell "label" to also go to frame label "3"
View Replies !
View Related
[F8] Nested Button In Movieclip To Target Frame Label
Hi, im having a problem targeting a frame label with a nested button iside a movieclip. not sure if anyone has come across this before but i cant seem to find a similar problem anywhere.
I have main movieclip, called “mainMovie_mc” placed on the first frame of my main timeline. Within this "mainMovieclip I have a movie clip containing my buttons called "buttonAnimations_mc" . In this i have a button called "two_btn". When you click on this button I want it to travel up one level to a frame label called "buttonTwo" inside the “MainMovie_mc”
the code i am using at present is as follows but does not seem to be working
two_btn.onRelease = function() {
_root.mainMovie_mc.gotoAndPlay("buttonTwo");
trace("show trace if button is working");
}
When I place a button on the main timeline outside “mainMovie_mc” the code I was using works fine and go’s into the “mainMovie_mc” and finds the frame label, but when I place the button two movieclips in, so thats inside mianMovie_mc, and inside ButtonAnimations_mc the code is not working. Even when I put a tracer on the code it wnt trace it, so it is almost like it cant find the button in the first place but the little hand symbol is still showing up.
Hope this makes sence
any help is much appreciated.
View Replies !
View Related
Nested Button In Movieclip To Target Frame Label
Hi, im having a problem targeting a frame label with a nested button iside a movieclip. not sure if anyone has come across this before but i cant seem to find a similar problem anywhere.
I have main movieclip, called “mainMovie_mc” placed on the first frame of my main timeline. Within this "mainMovieclip I have a movie clip containing my buttons called "buttonAnimations_mc" . In this i have a button called "seven_btn". When you click on this button I want it to travel up one level to a frame label called "buttonTwo" inside the “MainMovie_mc”
the code i am using at present is as follows but does not seem to be working
seven_btn.onRelease = function() {
_root.mainMovie_mc.gotoAndPlay("buttonTwo");
trace("show trace if button is working");
}
When I place a button on the main timeline outside “mainMovie_mc” the code I was using works fine and go’s into the “mainMovie_mc” and finds the frame label, but when I place the button two movieclips in, so thats inside mianMovie_mc, and inside ButtonAnimations_mc the code is not working. Even when I put a tracer on the code it wnt trace it, so it is almost like it cant find the button in the first place but the little hand symbol is still showing up.
Hope this makes sence
i have attached the fla if anyone cud have a look at it because it really is driving me crazy!
any help is much appreciated. thanks
View Replies !
View Related
Goto Random Scene Or Frame Label?
I have been unable to figure out how to goto a random or variable scene or frame label.
Here is the simple problem...you can't do this in Flash:
anyscene = "Scene 1";
anyscenelabel = "whatever";
gotoAndPlay(anyscenename, anyscenelabel);
But you can do this:
gotoAndPlay("Scene 1", "whatever");
So, how can I get the following idea to work?
scenenum = Math.ceil(Math.random()*6);
gotoAndPlay(scenenum,1);
-aaron
View Replies !
View Related
Trouble Using Variables From Text Files To Target A Frame Label
I have a movie clip with 12 Frame Labels, 'm1' through to 'm12'.
I use the following code to move the MC to the correct Frame Label.
ActionScript Code:
menuTarget = 'm' + buttons;
menuMC.gotoAndStop(menuTarget);
'buttons' is a variable between 1 and 12, so for example menuTarget may equal 'm9'.
This works fine if I define 'buttons' from within Flash. However if I download 'buttons' from a txt file, even though Trace shows menuTarget as 'm9' it doesn't move the MC to the correct Frame Label.
Any help would be appreciated.
Egg
View Replies !
View Related
Text Links To Target A Specific Frame
Hi
I was wondering if this was possible and how to do it if it is.
What i have is a swf movie embedded into the left frame of a html page. Within the flash movie r some hypertext links and i was wondering if it was possible to target those links to the centre frame of the frame set?
I know how to do this with normal html links but i cant figure out if its possible with links inside a flash movie.
Any help would be appreciated.
Regards
Fefris
View Replies !
View Related
|