|
-
Re-directing FLA submit button
Hi everyone,
Here's a good one. A little out of my league!!!
What i am trying to do is this: If i have various different HTML pages, each with a button calling the same FLA, I need the FLA submit button to call a different screen/page depending upon how or which page the user entered the FLA from.
Home---------- ----- entry page 1
Services------ FLA ------- entry page 2
button
contact------- ------ entry page 3
Does that make sense? If so does anyone know how this can be done?
Help is appreciated
Many Thanks
Richie
-
Senior Member
swf files are used online. fla files can only be edited not played.
Seems like you need to send a variable that tells the new swf where its being called from. Then you have to use some javascript in the html embed code so the swf can recieve the variable ( sent by the url string ). On the submit button you can have
getURL("myFlash.swf?sentFrom=services");
In the recieving swf in the first frame....
gotoAndStop(sentFrom);
...leading to a framelable in the movie called services.
If you want I can post the javascript that makes it possible to recieve variables from the urlstring. I have it somwhere on my computer.
-
Thankyou
Thankyou very much Pellepiano
Thats great, I think I understand. I did mean the SWF (opps!!!).
It would be great if you could send me the javascript to achieve this as I have virtually no experience using javascript.
Thanks so much again
Richie
-
Senior Member
You embed the swf with this special embed code. It will make the swf on the page receive variables from the url string that calls the page.
<script language="JavaScript">
document.write ('<OBJECT classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" '
+'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" '
+'WIDTH=750 HEIGHT=500> <PARAM NAME=movie VALUE="knock.swf'+document.location.search+'">'
+'<PARAM NAME=quality VALUE=high>'
+'<EMBED src="knock.swf' +document.location.search+'" '
+'quality=high WIDTH=750 HEIGHT=500 '
+'TYPE="application/x-shockwave-flash"></EMBED></OBJECT>')
</script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|