How To Go To Specific Scene From HTML
Probably a dumb question, but does anyone know how to program a normal URL to go to a specific scene in a flash movie? Thanksm
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 08-09-2006, 11:25 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Specific Scene From HTML
Hey
Is it at all possible to call a specific scene in a .SWF file using HTML code? I think it should be possible with a variable passed on the URL to the .SWF file and having some actionscript responding according to the value of the variable. But I am not sure of how to go about it.
Is there anybody out there who could help me thorugh this problem please?
Len
HTML Load To Specific Scene
When somebody comes to my website, it loads an html file with a full-frame Flash video. They watch scene1, scene2 and then load into scene3.
In scene3 there are links that load different HTML files into the same window.
Is there a way to create an HTML file that they could click on that would re-load the original video to scene3?
An example of what I'm looking for would be something like this in the HTML file:
<PARAM NAME=movie VALUE="content.swf (scene3)">
I realize that code would not work, but I hope it helps you to understand what I'm looking for. I don't know if it exists or is an option.
The alternate approach would be to put scene3 in a seperate html file altogether. Any feedback would be appreciated.
Linking To A Specific Scene/frame In Flash From HTML
Hi,
I hope someone can help me as I've been googling all morning and have not been able to find out how to do this.
Basically I am editing a Flash template. Half of the site is in Flash and half just basic html. The flash part is made up of only one .swf file.
I am trying to create a basis <a href> link in HTML that will go to a specific scene and frame within that Flash file. So I can't just link to the .swf file because it will load at the beginning which I don't want.
It's probably quite easy and I apologize if that's the case. I'm learning Flash.
Thanks very much!
Amy
Button In Scene 1 Loads A Specific Mc In Scene 2?
Unfortunately my brain isn't really designed for understanding or figuring our ActionScript very well... Here's what I'm trying to do and the problem:
The user arrives at a 'splash screen' in Scene 1 which gives them the option to choose to view the demo in 'interactive' or 'autorun' mode (the two modes are slightly different in terms of their content so I'll have two separate scenes, Scene 2 will contain all the 'interactive' movie clips and Scene 3 will contain all the 'autorun' movie clips). The user can then choose whether they'd like to view the demo with the sound on or off. Once they've made this selection they'll be taken to the opening animation of the mode (i.e. interactive or autorun) they selected, with the sound on or off as they specified.
What ActionScript needs to be applied to the sound on or off buttons in Scene 1 to ensure that the correct sound movie clip loads at the beginning of Scene 2 or Scene 3.
If the user initially decided to view the demo in autorun mode they will be able to change to interactive mode at any time... how can I ensure the sound setting they have selected remains unchanged across Scenes (and they can choose to turn the sound on or off at any time)?
I need to create this as a single SWF - I can have as many Scenes and movie clips as is necessary but cannot use loadMovie and multiple SWF's
If anyone has any ideas I'd love to hear them! I just can't figure it out and I'm getting REALLY desperate!
Thanks!
Go To A Specific Scene After A Specific Time
What is missing in below actionscript:
strTime=0;
_root.onMouseMove = function(){
strTime = getTimer();
}
_root.onEnterFrame = function() {
if (getTimer()-strTime>100000) {
trace("100 sec. inactivity registraitet")
getURL ("http://www2.devi.com/webhome-demo/valgsprog.asp", "_self");
strTime = getTimer();
}
}
A malfunction on My movie (23 scenes) occurs using this script. Every time I go to a new scene the time of mouse-inactivity most start all over from zero before going til to the getURL. But it seems that the time of inactivity of mousemove in some way "accumulate" from all the scenes dispite you haven't been on the scenes.
What may I add to the script make i work proberly???
Go To A Specific Scene After A Specific Time
What is "missing" in below actionscript:
strTime=0;
_root.onMouseMove = function(){
strTime = getTimer();
}
_root.onEnterFrame = function() {
if (getTimer()-strTime>100000) {
trace("100 sec. inactivity registraitet")
getURL ("http://www2.devi.com/webhome-demo/valgsprog.asp", "_self");
strTime = getTimer();
}
}
A malfunction on My movie (23 scenes) occurs using this script. Every time I go to a new scene the time of mouse-inactivity most start all over from zero before going til to the getURL. But it seems that the time of inactivity of mousemove in some way "accumulate" from all the scenes dispite you haven't been on the scenes.
What may I add to the script make i work proberly???
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??
Please Help, Need To Go To A Specific Scene
Hello,
I am a flash newbie and I got a simple actionscript syntax question. I can't seem to understand the syntax: "gotoAndPlay([scene,] frame)"
Can someone give me a simple syntax on how the [scene] parameter works?
Example: How do I place the [scene] syntax on the following actionscript code?
on(release) {
gotoAndPlay(16);
}
Thanks for your help.
Go To Specific Scene?
Hi
How do I go from 1 scene in a file, to a specific scene in another file? Must I use those Named Anchors, and whats the scripting then??
This is what I've got at the moment:
Code:
on (release, keyPress "<Left>") {
loadMovieNum("presentation.swf", 0);
}
but it just starts the whole file from the start.. I want it to go to example: scene 5 in presentation.swf....??
Thanks for the help!!!
Go To Specific Scene?
Hi
How do I go from 1 scene in a file, to a specific scene in another file? Must I use those Named Anchors, and whats the scripting then??
This is what I've got at the moment:
Code:
on (release, keyPress "<Left>") {
loadMovieNum("presentation.swf", 0);
}
but it just starts the whole file from the start.. I want it to go to example: scene 5 in presentation.swf....??
Thanks for the help!!!
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.
Tell The Movie To Go To A Specific Scene
I have a movie with many scenes
i can make a button that will tell the movie to go to a scene:
on (release) {
gotoAndPlay ("Scene 2", 1);
}
When I put that button inside an instance (and it is named), it will no longer work!
Not:
on (release) {
_root.gotoAndPlay("Scene 2", 1);
}
Or:
on (release) {
tellTarget ("_root") {
gotoAndPlay ("Scene 2", 1);
}
}
Or:
on (release) {
tellTarget ("_root") {
gotoAndPlay ("_root.Scene 2", 1);
}
}
Or:
on (release) {
gotoAndPlay ("_root.Scene 2", 1);
}
This seems like a very simple and wanted ability, why is it so hard to make happen? Thanks in advance for the help!
LoadMovie, Then Go To Specific Scene
Hello...
I'm trying to target a scene in a movie that loads on layer 2. The movie has four scenes, one is called "snapshots".
Here's my code:
on (release) {
loadMovieNum("media.swf", 2);
_level2.gotoAndPlay("snapshots", 1);
}
I don't get an error message, and when the button is released, it does load the movie, only it doesn't go to the scene I want it to go to.
Can someone help me tweak my code to get it to work the way I want it to?
Thanks,
Ansia
Addressing To A Specific Scene
Hi,
I'm in a movieclip wich contains different buttons.
this movieclip is on the root but I can't tell those buttons to go to and stop "scenexyz" of the root
I tried with:
on (release) {
_root.gotoAndStop("scenexyz", 1);
}
but it didn't work....
what's the right syntax?
Addressing To A Specific Scene
Hi,
I'm in a movieclip wich contains different buttons.
this movieclip is on the root but I can't tell those buttons to go to and stop "scenexyz" of the root
I tried with:
on (release) {
_root.gotoAndStop("scenexyz", 1);
}
but it didn't work....
what's the right syntax?
Going To Specific Scene Based On URL. Possible?_
Hi,
I would like to know if, based on the loaded URL, a flash movie can go to specific scene. Should be simple, right?
The reason I want to do this is because I have a menu of a site built in flash and I want to use the same flash movie across the site. I do not want to load a different flash menu for each page or section.
thanks!
Link To A Specific Scene = Possible?
Hello.
I'm just beginning to learn how to work with flash. Now I have created a Menu in flash. It consists of a main menu, and 5 sub-menus. The flash movie has 6 scenes: Scene1 = the main menu, and scene 2 - 6 are the submenus.
Is it possible to make an HTML link to for example Scene 3 in this Flash movie? If so, tell me how!
Thnx.
Button Going To Html File, Want Html To Be Specific Size In Window
When I click on a button in my flash project, it takes the user to a html file. In that file the user can click on different .pdf files. I would like to make the html file a certain sized window example 300x400. I do not know what code (or where to put it in the html file) to use to make the window constrain to 300x400. Also, I would like the users computer to open acrobat reader in a seperate window, when they click on a .pdf link. Right now, it just opens in the original html file so the user has to hit the back button to get back to the original html file. If anyone can help I'd appreciate it muchly!
Stittch
Jumping To Specific Places In A Second Scene
Hi all,
see if you can get your head around this one...
- I have a multiscene movie
- in scene 1 I have 8 menu items
- scene two begins with an intro
- each menu item should first run the intro...
- and then go to the corresponding item
- the item (a text box in a movie clip) then opens up on the main stage for all to view
so to recap:
if I click on the menu item 'contact' in scene 1..it runs the intro in scene 2 and then jumps to the movie clip with the text box in it....or so it should.....but I've been at it all day....and still have no clue how.....surely there should be some script for doing this?
hopefully yours
Leo
Printing Specific Frame On Scene 2
To all who can give a hand.
I am a newbie that embarked on to ambitious a project for his ignorance.
I hope that I will be clear in my confusion. I want to make a calendar that when the mouse rolls over a date brings up a larger text with written details for that day. I also want this day info to be printable.
I put up a movie with a graphic symbol for the month, days, and numbers. For the first day I put a button with this action:
on (rollOver) {
gotoAndStop ("Scene 2", 1);
}
Second day:
on (rollOver) {
gotoAndStop ("Scene 2", 2);
}
And so on for the other dates of the month.
On scene two, for every day I have a button with this action:
on (rollOut) {
gotoAndStop ("Scene 1", 1);
}
on (press) {
getURL ("print:", "/");
}
On the over state of this button I put a movie that is specific to that day.
I also put a #p label on the frame that I want to print.
This plan works but for the following points:
When I ask to print I get the graph of month thing and I don’t get the day detail wich is the only thing that I want to print and lastly the whole thing is much to heavy for an online publication.
What am I doing wrong? Code and or conception wise.
Thanks to all who will try to decipher this sort of mess.
Craggo (new member)
How To Get BytesLoaded And BytesTotal For Specific Scene?
can anyone please tell me how i can get the bytes loaded and total bytes for a specific scene within a movie? also if i can designate a frame within that scene?
in a related question, the ifFramesLoaded (scene, frame) action -- does the frame parameter tell it to load JUST THAT frame or all frames UP TO THAT frame?
thanks a lot ch'all.
yjk
Loading A Specific Scene In An External Swf
I looked throughout this forum and couldn't find the answer. here is my problem...
i have 2 swf files (movie1 and movie2) and i would like to jump from one movie to the next using loadmovie, but i want to jump to various scenes inside the second movie (movie2) using different buttons in the first movie (movie1). How do you write the actionscript so that you jump to a specific scene title inside an external swf? Here's what i have so far..
on (release) {
loadMovieNum("main.swf", 0);
}
I want to jump to a scene called 'profile' in the "main.swf" movie. i know this is probably easy.
thanks,
jeff
Jump To Specific Scene From Linking URL
I seached the forums and found no answer so here is my question...
I have a website built in Flash and I want to link to a specific scene in the Flash and not have to have everyone start at the begining.
I tried setting a variable in the linking URL and having actionscript check for the variable and forward to the scene but that did not work. I might not have had it formated properly.
Anyone know how to jump to a specific scene when coming to a Flash site from an external HTML page?
Thanks.
R. Coy
How Do I Link One SWF File To Another SWF To A Specific Scene
I am a newbie and I am working on a project where I have several flash files that I've published as html files. I need to connect one html file to another but I want to connect to a specific scene.I can't figure it out.
I want to connect jimandkathyjones.html to step4.html, scene 5.
A Percentage Preloader For A Specific Scene.
can anyone tell me how to do a percentage preloader for a specific scene. i can't seem to find any good tuts on them.
it goes someting like this....
user sees the first frame of the preloader, it will show how many percent is loaded for the next scene which is called 'index'.
so it's like user sees my preloader with numbers representing the precentage in the centre. the percentage represents a huge scene(index) which will load immediately after it's 100% loaded.
just a simple one.
thanks for the replies.
Load Specific Scene In Movie
Hey,
I was wondering if you can use the loadMovie action to load a specific scene in the movie you are loading?
Thanks
Jay
Load New Swf And Goto Specific Scene
Hi Folks,
Reckon this is a newbie question. Is it possibe to load a new swf and then jump to a specific scene?
I've looked throught the Actionscript Dictionary and it mentions Moviclips, levels and variables, but nothing about a specific scene.
Any help would be appreciated.
dpower
Help With - Script To Goto A Specific Scene
Hi, Im new to flash, and I'm trying to make an all Flash site.
The current problem, whats the steps i need to do to make a button (onrelease) goto another scene
I tried script:
"scene 2".onRelease = function () {
gotoAndPlay(1);
};
and get this error:
'Statement must appear within on/onClipEvent handler'
Notes:
- i typed the above script in the button frame
- the button instance name is 'butt_peter'
- the button is in 'scene 1'
- i want it to goto 'scene 2' when clicked
Thanks in advance
Load A Specific Scene In A Site
I have a website and would like to be able to load a specific scene in th eSWF. So when the SWF is loaded it goes to that specific scene.
Can this be done
Skip (down)loading Specific Scene
Hi guys!
Is it possible, if you have a single swf file, to control whitch scenes to load. For example: if i have a preloader, than two scenes. Intro and MainPage. Is it possible to skip downloading Intro scene(when still in preloader), and go directly to MainPage? I would like to do this, because intro is quite large and i would like to give an option to page viewers to skip intro so they can save some time with downloading and playing intro scene.
Regards, Miha.
Select And Play Specific Scene.
In actionscript 2, I could type gotoAndPlay("Scene Name", Frame); but now it does not work. Is there a new function in AS3? prevScene, nextScene aren't good for what I need.
How To Load Movie To Specific Scene?
I'm using Flash 5.
I would like to load a swf from another swf, but have it go directly to a specifc scene and frame.
Does anyone know how I can do this?
Thanks.
Goto A Specific Frame On A Scene
Hello everybody
I was wondering: I know that we can access a frame by its name. For example: gotoAndPlay("Transition"). Can I have, in two different scenes, two Transition frames and access them by something like <gotoAndPlay("Scene1.Transition")> or an another similar command or do they need to have a unique name?
Thanks
Rick
Goto A Specific Frame On A Scene
Hello everybody
I was wondering: I know that we can access a frame by its name. For example: gotoAndPlay("Transition"). Can I have, in two different scenes, two Transition frames and access them by something like <gotoAndPlay("Scene1.Transition")> or an another similar command or do they need to have a unique name?
Thanks
Rick
LoadMovie(swf) And Goto Specific Scene
Hi guys!
Have bit of a prob with flash I know someone out there be able help(. . .Please!)
Creating a projector within flash where I load in separate swfs, using this code:
on (release) {
loadMovieNum("1_droe_MAIN.swf", 0);
}
Prob is 1_droe_MAIN.swf has 2 scenes;
Scene 1: intro
Scene 2: main
when I load in this swf I want it to go to scene 2: main and not play the intro again.
Can anyone tell me what code I need to add to get this to work? (really appreciate it!)
Thanks
HELP: LoadMovie To A Specific Scene And Frame
i'm trying to use the loadMovie script to load another swf but to a specific scene and frame.
without the loadMovie script, it would be: gotoAndPlay ("scene", frame)
but logically, with the loadMovie script, it would be:
loadMovie ("file.swf", _root.gotoAndPlay("scene", frame))
but, that is not working. i was thinking it was because of the double parenthesis but i didn't know how to fix it since "[ ]" are used for something else.
anyone know how to fix or do this? thx for your help ppl
Make A Loaded Movie Go Towards An Specific Scene
I´ve got a loaded Movie in level 2 and I´d like to make this movie jump to the 75th frame in it´s 4th scene. I´ve tried with:
tellTarget ("_level2") {
gotoAndPlay ("Escena 4", 75);
}
but this doesn´t seem to work.
Any ideas?. Thanks a lot
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...
Syntax For Goto A Specific Scene And Frame
I've reviewed (and tried) several postings to no avail.
tellTarget ("_root.backwarn"){
gotoAndStop (15);
I want the action of a movieclip’s button to navigate to Scene 2, Frame 15.
Please tell me the precise syntax to accomplish this.
Thank you.
Mike
Going To A Specific Scene From A Button Within A Movie Clip
I'm stuck on what seems like it should be a simple action... I have a button within a movie clip, and when it's pressed, I want it to jump to a specific scene within the fla file. I can only get the button to work on the movie clip timeline??? When I use the go to "scene 1", 1, it still stays within the timeline of the movieclip.
Can anyone help me? How do I get a button to point to a specific scene from within a movie clip? This is driving me nuts!!
How To Point To A Specific Scene When Mouse Is Inactive?
Hi all.
I'm working on a presentation to be presented on a Trade Show. It have an inicial movie, running in loop, but with a Menu bar, so people could stop the movie and go to a product catalogue.
I want that when people stop looking the catalogue and go away, the presentation go (after a few minutes) to the initial movie loop again.
How can I do this?
Thank's for your attention.
[F8] Load Next Scene Of Imported Swf At Specific Time
Hi I'm using actually using flash CS3 and I have a movie file that loads into my main movie that displays a weekly event that I have to manually change every week. The imported movie contains a graphic that I change every week.
I use this to bring the movie in...
Code:
loadMovieNum("this_week.swf", 13);
What I would ideally like to do is have several weeks worth of graphics on sequential scenes and have the main movie automatically load the next scene of the imported swf at 5am on Sunday morning for a period of 1 week. Then change again the follwing week etc.
You can see the imported swf on the site here, its the date and name that flies in on the bottom right.
Hope that makes sense!
Thanks
Using Input Text To Load A Specific Scene
What I am wanting to do is have an input text field where a user can enter a zip code and once they submit that zip code I want to load a particular scene.
I just started to really get into the action script, and am working with Flash CS3 and AS 3.0. I've been using visual quickpro guide for CS3 Prof Advanced as a reference, and in it talks about using the SharedObject class to store and retrieve information. Using their code as an example, here is what I have thus far:
var mySharedObject:SharedObject=SharedOBject.getLocal( "myCookie");
zip_submit.addEventListener(MouseEvent.CLICK, savedata);
function savedata(myevent:MouseEvent):void {mySharedObject.data.zip = newwavezip.text;
mySharedObject.flush();
}
My undertanding is that this should save the data from the input text field that I have labeled zip when they click on the submit button labeled zip_submit.
What I can't figure out from here is how I would then retrieve this data and then compare it to a list of zip codes, and if it finds a match, take the user to a particular scene. If it does not find a match, it should also take the user to a particular scene. Ideally since this ShareObject can save information locally on a users computer, I figure if the user returns, it would automatically load this information and take the user to a scene.
Jumping To Specific Frames Within 1 Scene And Playing (help Please)
I have one scene with many frames, and i want to jump to a series of different frames within the time line (in this case, frames: 2,86,171,256,341,426,511)
and then play from there. So at start of movie it will start in a different random position and play through, in order - then looping.
I have this but I know it is totally wrong, it wasn't designed to do what I want:
Quote:
// define a array with all your previously defined labels
labelarray=[2,86,171,256,341,426,511];
// calculate a random index for this array
randomidx = random(labelarray.length);
// jump to the label at the random index
gotoAndPlay(labelarray[randomidx]);
Any help greatly appreciated
I'm sure it can't be that hard... but I've had no luck and been trying for a while now
EDIT (this is something else I came with, hat doesnt work either...)
Quote:
num = Math.floor(Math.random() * (6 - 1)) + 1;
//Depending on which random number
//was chosen, go to a flash scene
if (num = 0)
{
gotoAndPlay(2)
}
if (num = 1)
{
gotoAndPlay(86)
}
if (num = 2)
{
gotoAndPlay(171)
}
if (num = 3)
{
gotoAndPlay(256)
}
if (num = 4)
{
gotoAndPlay(341)
}
if (num = 5)
{
gotoAndPlay(426)
}
if (num = 6)
{
gotoAndPlay(511)
}
Load Movie And Go To Specific Frame Or Scene
Greetings everyone.
I'm primarily a Director user, but have just begun Flashing. I have encountered a problem that should be very simple to solve, but has turned into a really big deal.
All I want to do is load a movie/swf file (from a running movie/swf file), and go to a specific frame or scene in the loaded movie. What is happening is, I can call the movie, but not specify the frame or scene.
In a nutshell: From the "Main level"/"Level-0" movie, at an arbitrary point in the timeline, while the movie is playing, I click on a button and stop the timeline from playing.
I then click on a newly visible picture/button, which links me to the sub-level swf/movie.
The sub-level movie has only a stop command and a "back button" (at this point).
I want to be able to click on the "back-button" and return to the exact point in the time line in the Main-level movie that I left from.
This is a cinch if we are dealing with different scenes in the same movie, but we're not.
Go to: http://www.showorksevents.com/Us/ProfAff/New/new.htm
Scroll the picture timeline. Click on a picture. It takes you to a "sub-level" movie. Click the back button. You return to frame 1, Scene 1, of the "main-level"/"Level 0" movie. I want to return to frame 18 of Scene 1 of the main level movie.
I have tried and tried, read everything I can find, seached the net, and am now asking the real guys. Any ideas how a not very good with ActionScripts kinda guy can make this happen?
Any help would be greatly appreciated.
Thanks
GB
|