Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1077219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:32:34+00:00 2026-05-16T21:32:34+00:00

I’ve got a situation where I have a visitor arriving at a php page

  • 0

I’ve got a situation where I have a visitor arriving at a php page with a ID key. They then navigate to page 2 where they key id is carried along in a querystring variable.

i.e. http://www.mysite.com?x=abcde12345

Page 2 has a flash video on it – that is playing a movie. Once the movie stops playing I want flash to redirect to page 3 – bringing the querystring along with it, as page 3 needs to use the querystring to look up a database value.

I used to have this working great in older flash with GetURL – but need it in AS3 now. I’ve searched for quite awhile on it – and I can see how to redirect with a querystring – but can’t see how to redirect with a dynamic querystring – and i’m pretty lost when it comes to flash.

Any ideas?

Thank you.

Update: I’m not sure where I am going wrong here.

Here is my HTML code

<script>
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'); document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
document.write('WIDTH="550" HEIGHT="400" id="movie" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="Movie-test.swf">');
document.write(' <PARAM NAME=FlashVars VALUE="x='+toPage+'">');
document.write(' <PARAM NAME=quality VALUE=high>');
document.write(' <PARAM NAME=bgcolor VALUE=#FFFFFF>');

document.write('<EMBED src="Movie-test.swf"');
document.write('    FlashVars="x='+toPage+'"');
document.write('    bgcolor=#99CC33 WIDTH=550 HEIGHT=400 ');
document.write('    TYPE="application/x-shockwave-flash">');
document.write('  </EMBED>');
document.write(' </OBJECT>');
</script>

And my AS3 code

var params:Object = this.loaderInfo.parameters;
var id:String = params.x;

//then after the movie completes

function onComplete(event:Event):void
{
   var page3URL:String = "page2.php?" + "x=" +id;
   navigateToURL( new URLRequest( page3URL ) );
}

The video just loops and replays on itself.

What I’ve got is layer 1 has the movie, up to frame 2993. I created Layer2, and on Layer 2 – frame 2993 I inserted a keyframe – and put the above as3 script.

Can you see where I’m going wrong?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:32:34+00:00Added an answer on May 16, 2026 at 9:32 pm
    var params:Object = this.loaderInfo.parameters;
    var id:String = params.x;
    
    //then after the movie completes
    
    function onComplete(event:VideoEvent):void
    {
       var page3URL:String = "http://example.com?" + "x=" +id;
       navigateToURL( new URLRequest( page3URL ) );
    }
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JSP page retrieving data and when single or double quotes are
this is what i have right now Drawing an RSS feed into the php,
i got an object with contents of html markup in it, for example: string
I've got a string that has curly quotes in it. I'd like to replace
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.