LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-12-2005, 07:51 PM
dazza dazza is offline
Registered User
 
Join Date: Nov 2005
Posts: 5
Rep Power: 0
dazza is on a distinguished road
lovely Help! passing flash var to html popup using javascript in flash?

I have a flash movie with a button with the following code on the button:

Actionscript:
on (release) {
theUrl = "updateproperty.asp?id="+id;
    //Goto Webpage Behavior
    trace(theUrl);
    getURL("javascript:popup_window2( theUrl, 'movein', 300, 300)");
    //End Behavior

}

trying to open my popup ' updateproperty.asp' with the flash variable 'id' attached ie 'updateproperty.asp?id=4'

trace works when i test it in flash
popup window doesn't work

browser error:
Line 1
Char 25
Error : theUrl Undefined

the code on the Html page holding the flash movie includes the following to make the popup window work:

PHP Code:

<script language='javascript'>

function 
popup_window2urlidwidthheight )
{
popup window.open(urlid'toolbar=no, scrollbars=no, location=no, statusbar=no, menubar=no, resizable=no, width=' width ', height=' height '' );
popup.focus();
}
</script> 
-----------
i assumed if i changed
Actionscript:
getURL("javascript:popup_window2( 'updateproperty.asp', 'movein', 300, 300)");
to
Actionscript:
getURL("javascript:popup_window2( theUrl, 'movein', 300, 300)");
and defined theUrl as a flash variable it would work.....
...it didn't!

question: how do i get the html popup window to use the variable?
  • putting 'theUrl' results in the movie trying to launch a file called theUrl
  • putting 'updateproperty.asp' works fine but i can't append my id from the flash variable
  • putting theUrl results in no window popup and a browser error saying thUrl is undefined
help!!!!!

please!!!

Last edited by Scottae : 12-12-2005 at 10:38 PM Reason: Format with AS tags
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
add enemies to "Jungle Adventure" Annieberry Game Programming 7 02-03-2007 03:30 PM
have mouse events pass straight through a flash movie? johnyboy General Flash 12 09-08-2006 11:32 PM
Passing Variables to Flash from HTML via Query String cybercampbell Newbies 3 06-30-2006 08:12 AM
I need some help zig_man Newbies 0 04-11-2005 02:17 AM
Opening a popup without html and Javascript?!? Billye72 General Flash 1 01-24-2003 12:45 PM




All times are GMT. The time now is 09:29 AM.