dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Re-directing FLA submit button

  1. #1
    Member
    Join Date
    Mar 2001
    Location
    South West of England
    Posts
    96

    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

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    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.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Member
    Join Date
    Mar 2001
    Location
    South West of England
    Posts
    96

    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

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    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="clsid27CDB6E-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>

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center