PDA

View Full Version : loading dynamic swf files in new window



sir_seagill
March 5th, 2007, 10:01 PM
not sure if it belongs here. What I want in the end, is being able to click on links/buttons and then have the corresponding swf file loaded in a new window. I want that 1 new window to load whatever swf file into it depending on the button clicked.

right now, the new window has a dummy swf file that loads a movie depending on a variable in an external xml file. If it's possible to change the value of a variable of an external xml with an on click event then that should work - but I have a feeling this is a very weird way of doing it.

I've been messing around on this for days. Still haven't taken into account the changing window size depending on the size of the swf... any help is appreciated.

brndn
March 5th, 2007, 10:44 PM
maybe look at using PHP?
sounds like you need a sendVar onPress. passed to a php page and then "echo" it. Apparently loadvar will allow you to pull the variable into flash.

in regards to the window size. just set the window paramaters in the swf file. calling a javascript function.
GetURL("javascript:popMe(200,350);", SEND);
Kinda like that. Happy hunting:cowboy:

sir_seagill
March 7th, 2007, 01:43 AM
ok, I managed to create a variable in a cookie using php that is read on the new page. the only problem left is that the code just executes automatically. I only want it to happen when the link is clicked. It seems only javascript can do this. Is this true? Expiry dates doesn't seem to matter here.