Advertisement

05.31.2008 at 03:27AM PDT, ID: 23446675
[x]
Attachment Details

Passing URL variables to Flash doesn't work in Firefox and Safari

Asked by jerute in Safari Web Browser, Macromedia Flash, Firefox Web Browser

Tags: ActionScript 2.0, HTML, Firefox and Safari

I'm trying to pass a variable from my ASP page to Flash via a URL so that the flash movie knows which page is being displayed.

This works fine in IE but doesn't in FF or Safari.

I'm still learning Actionscript so any help would be appreciated. Tx in advance.

Here's the code sections I'm using:Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
The HTML:
 
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="165" height="500" id="urlvariables" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="components/navbar.swf?page=<%=pagenum%>">
<embed src="components/navbar.swf" width="165" height="500">
</embed>
</object> 
 
 
The Actionscript 2.0:
 
pagetitle = _level0.page;
[+][-]05.31.2008 at 05:44AM PDT, ID: 21683563

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Safari Web Browser, Macromedia Flash, Firefox Web Browser
Tags: ActionScript 2.0, HTML, Firefox and Safari
Sign Up Now!
Solution Provided By: aneeshchopra
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628