Skip to main content
February 8, 2008
Question

Put and get id

  • February 8, 2008
  • 2 replies
  • 227 views
ndex.php gives a variable. By example index.php?id=5
Then flash has to use this variable and has to use it agina.

I put the following in index.php
quote:

<embed src="flash.swf?id=<? echo $_GET['id']; ?>"


By this id will be available in flash, right?

Following should flash call flash.php and use the id, I tried this on
this way:
quote:

loadVariablesNum("flash.php?id=".id, 0, "GET");


Then I get the following error:
There is no property with the name id.

When I put the following there is no problem:
quote:

loadVariablesNum("flash.php?id=9", 0, "GET");


How can i get it working? That id=9 should be variable.
This topic has been closed for replies.

2 replies

Inspiring
February 19, 2008
Dont use loadVariableNum.. (Anything that ends in Num is possibly AS2 syntax.)
You can get hold of all the parameters by loaderInfo.parameters
You need to grab that information from the first swf you load from the php.
They are type Object, so it can hold all your parameters directly.
February 19, 2008
no-one?