Skip to main content
May 28, 2010
Answered

Flash Webpages

  • May 28, 2010
  • 1 reply
  • 1142 views

Hi.  If I have a pure flash webpage, and on it I have a form where users can input details, can this information be sent to another flash page to be displayed in a swf file which is on this webpage?

Previously, I done it with php to flash using flash vars, but never flash to flash.  Is it done differently?

cheers

This topic has been closed for replies.
Correct answer kglad

Ok, I will explain what I want to happen so that you lot can hopefully advise me the best action to take.

On a webpage created in flash is a form, where the user enters their name and a receivers name.  When they click submit, a new page will load in place of this page, which will display a swf with their details included within the movie.

So, I understand I have several options.  I can do php, but I am thinking is it worth it for this?  Reason I say this is because I would be sending from swf - php - swf.

A better option in my opinion would be to send from swf - swf.  Once again though, these are both on a server, and in their own right webpages.  So can I simply just give it the path to the previous swf to get the details I need?

Javascript, I would prefere to not use alltogether.

So, knowing this, what would be the best option for me to take?

cheers


it depends what you mean by, "..a new page will load in place of this page."

if you're using the loader class to load a swf, there's nothing to do but use the correct path from the main swf to the loaded swf.

if you're using the navigateToURL() function, you can either use server-side coding or the flash sharedobject.

1 reply

kglad
Community Expert
Community Expert
May 28, 2010

if the two swfs are open at the same time on a user's computer, you can use localconnection to communicate between the two.

May 28, 2010

Well, the two wouldnt be open at the same time, because its a webpage.  So when the user goes to my webpage, they will have a form to fill out data (All done using flash and as3).  When they click send, a new webpage should open up and the video should display the details the user entered from the previous page.  So this will all be on a server.  So somehow, I need to send the data from the first webpage to the second webpage.

kglad
Community Expert
Community Expert
May 28, 2010

if the 2nd webpage is a swf, why are you exiting the first page?  normally you would load the 2nd page into the first.

but, if you must exit, you could use the flash sharedobject to store user data on the user's computer or you could use server-side script (like php) to store data on the server.