<!--  In the HTML source add this to the javascript func...  -->
 AC_FL_RunContent(
   "flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id + '',
   "flashvars","myFlashVarValue=Hello from the html page",
   ...

<!-- In the object embed html source add... -->
   <param name="flashvars" value="myFlashVarValue=Hello from the html
page"/>
   <embed flashvars="myFlashVarValue=Hello from the html page"
   ...

<!-- In the .mxml app add this inside a script block... -->
public var myFlashVarValue:String;
private function initApp():void
{
   // Catch FlashVars Here
   myFlashVarValue = Application.application.parameters.myFlashVarValue;
   // other init code here
}

Then make sure you call the initApp() with
creationComplete="initApp()" in the Application block.

NOTE: If you alter your html application page, it will be over written
each time you save your app. So save it under another name and test. 

Jeff




--- In [email protected], Meaglith Ma <[EMAIL PROTECTED]> wrote:
>
>    1.       <object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
>    2.             id="fileupload" width="200" height="150"  
>    3.            
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab";>
 
>    4.             <param name="movie" value="fileupload.swf" />  
>    5.             <param name="quality" value="high" />  
>    6.             <param name="bgcolor" value="#869ca7" />  
>    7.             <param name="allowScriptAccess" value="sameDomain"
/>  
>    8.             <embed src="fileupload.swf" quality="high"
bgcolor="#869ca7"  
>    9.                 width="200" height="150" name="fileupload"
align="middle"  
>   10.                 play="true"  
>   11.                 loop="false"  
>   12.                 quality="high"  
>   13.                 allowScriptAccess="sameDomain"  
>   14.                 type="application/x-shockwave-flash"  
>   15.                
pluginspage="http://www.adobe.com/go/getflashplayer";>  
>   16.             </embed>  
>   17.     </object>
> 
> 
> 
> rumpleminzeflickr wrote:
> >
> > Hi there,
> >
> > i'm adding a flex app into an existing web page.
> >
> > I'm using macromedia dream weaver to link to the .swf, which is all
> > good and the app displays.
> >
> > However the actualy flashvars don't get passed in.
> >
> > Any ideas?
> >
> > Many thanks,
> >
> > Brett
> >
> > <script type="text/javascript">
> > AC_FL_RunContent
> > (
'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/ 
> > <http://download.macromedia.com/pub/shockwave/cabs/flash/>
> > swflash.cab#version=7,0,19,0','width','500','height','375','src','Flex
> >
FileUpload','quality','high','pluginspage','http://www.macromedia.com/ 
> > <http://www.macromedia.com/>
> > go/getflashplayer','movie','FlexFileUpload' ); //end AC code
> > </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-
> > 444553540000"
> >
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swfl 
> > <http://download.macromedia.com/pub/shockwave/cabs/flash/swfl>
> > ash.cab#version=7,0,19,0" width="500" height="375">
> >
> > <param name="movie" value="FlexFileUpload.swf">
> > <param name="quality" value="high">
> > <param name="FlashVars" value="test=true">
> > <embed src="FlexFileUpload.swf" FlashVars="test=true" quality="high"
> > pluginspage="http://www.macromedia.com/go/getflashplayer 
> > <http://www.macromedia.com/go/getflashplayer>"
> > type="application/x-shockwave-flash" width="500" height="375"></embed>
> >
> > </object></noscript>
> >
> >
>


Reply via email to