|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have a page with a flash movie inside, then I need that when de flash movie ends, another page loads automatically, Thanks in advance, Mauricio |
|
#2
|
|||
|
|||
|
Hi Mauricio
Try this: 1) Select the last frame in the longest running layer of the Flash movie. 2) Right click the frame and select Actions. 3) Type the following code in the Actions panel: gotoAndPlay("newMovie"); 4) Create a new layer. 5) In the new layer select the first frame after the last frame in the longest layer. 6) Go to the Windows menu, select Panels and then select Frame. 7) In the Frame panel, type newMovie in the label text box. (Make sure the capitalization in the label is identical to the newMovie parameter in the gotoAndPlay function of the last frame in the longest layer). 8) build your new page in this layer with the newMovie frame selected. This should start the new page/sequence from that frame. If you need to add other elements to the page using other symbols, create new layers for each symbol (remember you can't have more than one symbol in a layer). Just make sure that each symbols starting frame is at the same point as the newMovie frame. What should happen is that the Flash movie will run everything before the new page. Because of the ActionScript in the last frame of the longest layer, it will then start the new page automatically. You could put a Stop action in the last frame of the new layer to prevent looping. I hope this helps. Let me know how you get on. meandmymachine |
|
#3
|
|||
|
|||
|
Ah Thank you BUT...
Thank you, but my new page is not a new movie if not a simple html page... could you help me in this case....
Thanks in advance, Mauricio |
|
#4
|
|||
|
|||
|
Hi Mauricio
Am I correct in my understanding that you wish to load a html page from a Flash movie? If so, then try this: 1) Select the last frame of the longest layer in your Flash movie. 2) Right click and select Actions. 3) Type the following code in the Actions panel: (You can substitute your web page name for the one I've typed) getURL ("yournewpage.html"); 4) Close the panel. 5) Select the next frame on this layer. 6) Right click and select Actions. 7) Type the following code in the Actions panel: stop(); 8) Close the panel. You can test the movie straight away but I think you'll see the best results if you first publish your movie as a web page. (Go to to File and select Publish). What should happen is that after the sequence in your Flash movie ends, the browser should automatically go to the new web page you've designated as a parameter in the getURL function of the Action in the second to last frame of the longest layer. I hope this helps. meandmymachine |
|
#5
|
|||
|
|||
|
Hi guys, I've been watching your problems and I have the same but a bit more complicated:
what if the html page I wanna load is in another window (not in the one the swf is located)? In other words, I have a simple html page that automatically launches a pop-up window that runs a swf., at the end of that movie I want to launch an html page in the window back and to close the pop-up window as well??????? Can u help me??? |
|
#6
|
||||
|
||||
|
read this and see if it helps:
http://www.macromedia.com/support/f...nts/get_url.htm |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > flash redirect |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|