<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Grabbing FlashVars from the embedding HTML template</title>
	<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Tue, 06 Jan 2009 15:29:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Guy</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-17557</link>
		<author>Guy</author>
		<pubDate>Sun, 04 Jan 2009 06:07:17 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-17557</guid>
		<description>What if the swf that's embedded on the page is a simple viewer.swf, and it seems it's getting the text from elsewhere using flashvars. How would one extract this text?</description>
		<content:encoded><![CDATA[<p>What if the swf that&#8217;s embedded on the page is a simple viewer.swf, and it seems it&#8217;s getting the text from elsewhere using flashvars. How would one extract this text?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-17229</link>
		<author>Karthik</author>
		<pubDate>Sat, 06 Dec 2008 22:49:40 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-17229</guid>
		<description>Hi,

I have been wasting a lot of time figuring out this and your post has put an end to it! Thanks a lot!!

Karthik</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have been wasting a lot of time figuring out this and your post has put an end to it! Thanks a lot!!</p>
<p>Karthik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-16035</link>
		<author>peterd</author>
		<pubDate>Sun, 05 Oct 2008 19:06:59 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-16035</guid>
		<description>Emily,

The easiest way to embed the SWF file in your HTML page is probably using the following HTML code:
&lt;pre class="code"&gt;
&#60;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        id="test" width="100%" height="100%"
        codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"&#62;
        &#60;param name="movie" value="test.swf" /&#62;
        &#60;param name="quality" value="high" /&#62;
        &#60;param name="bgcolor" value="#ffffff" /&#62;
        &#60;param name="allowScriptAccess" value="sameDomain" /&#62;
        &#60;param name="flashVars" value="urlVar=emily" /&#62;
        &#60;embed src="test.swf" quality="high" bgcolor="#ffffff"
            width="100%" height="100%" name="test" align="middle"
            play="true"
            loop="false"
            quality="high"
            allowScriptAccess="sameDomain"
            flashVars="urlVar=emily"
            type="application/x-shockwave-flash"
            pluginspage="http://www.adobe.com/go/getflashplayer"&#62;
        &#60;/embed&#62;
&#60;/object&#62;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Emily,</p>
<p>The easiest way to embed the SWF file in your HTML page is probably using the following HTML code:</p>
<pre class="code">
&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        id="test" width="100%" height="100%"
        codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"&gt;
        &lt;param name="movie" value="test.swf" /&gt;
        &lt;param name="quality" value="high" /&gt;
        &lt;param name="bgcolor" value="#ffffff" /&gt;
        &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
        &lt;param name="flashVars" value="urlVar=emily" /&gt;
        &lt;embed src="test.swf" quality="high" bgcolor="#ffffff"
            width="100%" height="100%" name="test" align="middle"
            play="true"
            loop="false"
            quality="high"
            allowScriptAccess="sameDomain"
            flashVars="urlVar=emily"
            type="application/x-shockwave-flash"
            pluginspage="http://www.adobe.com/go/getflashplayer"&gt;
        &lt;/embed&gt;
&lt;/object&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emily</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-16032</link>
		<author>Emily</author>
		<pubDate>Sun, 05 Oct 2008 14:23:46 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-16032</guid>
		<description>Hello,
Your writing do help me lot.
But, recently I face a guestion.
I want to embed the swf file in my blog.
And I don't know which codes should I take.
 
The file only run in html.
If I open my swf ,it just can't work.
My embed code is just like below.
&lt;pre class="code"&gt;
&#60;embed src="test.swf" flafVars="urlVar=emily" quality="high" bgcolor="#ffffff" width="150" height="350" name="logtest" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" &#62;
&lt;/pre&gt;

Best wishes,
   Emily</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Your writing do help me lot.<br />
But, recently I face a guestion.<br />
I want to embed the swf file in my blog.<br />
And I don&#8217;t know which codes should I take.</p>
<p>The file only run in html.<br />
If I open my swf ,it just can&#8217;t work.<br />
My embed code is just like below.</p>
<pre class="code">
&lt;embed src="test.swf" flafVars="urlVar=emily" quality="high" bgcolor="#ffffff" width="150" height="350" name="logtest" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" &gt;
</pre>
<p>Best wishes,<br />
   Emily</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-14317</link>
		<author>Joshua</author>
		<pubDate>Thu, 24 Jul 2008 01:38:13 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-14317</guid>
		<description>Incredibly helpful!

.:Joshua</description>
		<content:encoded><![CDATA[<p>Incredibly helpful!</p>
<p>.:Joshua</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pierre</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-14124</link>
		<author>pierre</author>
		<pubDate>Sat, 12 Jul 2008 18:23:10 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-14124</guid>
		<description>hello,

Can you help me, please
&lt;pre class="code"&gt;
&#60;mx:Script&#62;
 // i have two variables
 var ref="AQ51";
 var article="motor";

 // is it possible to do something like that :
 [AQ51] = article
&#60;/mx:Script&#62;
&lt;/pre&gt;

in order to call the article by the ref and to have this result
&lt;pre class="code"&gt;
&#60;mx:Text 	text="{AQ51}"/&#62;         // motor
&lt;/pre&gt;

Regeards</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>Can you help me, please</p>
<pre class="code">
&lt;mx:Script&gt;
 // i have two variables
 var ref="AQ51";
 var article="motor";

 // is it possible to do something like that :
 [AQ51] = article
&lt;/mx:Script&gt;
</pre>
<p>in order to call the article by the ref and to have this result</p>
<pre class="code">
&lt;mx:Text 	text="{AQ51}"/&gt;         // motor
</pre>
<p>Regeards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12552</link>
		<author>peterd</author>
		<pubDate>Thu, 08 May 2008 00:34:58 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12552</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12534" rel="nofollow"&gt;marco&lt;/a&gt;,

You could probably do something like &lt;code&gt;arrColl.source[key][site]&lt;/code&gt; to get what you wanted. The &lt;code&gt;source&lt;/code&gt; property should contain the underlying Array object.

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12534" rel="nofollow">marco</a>,</p>
<p>You could probably do something like <code>arrColl.source[key][site]</code> to get what you wanted. The <code>source</code> property should contain the underlying Array object.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marco</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12534</link>
		<author>marco</author>
		<pubDate>Wed, 07 May 2008 01:56:11 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12534</guid>
		<description>Peter thank you for your reply. i still have one more quiestion 

i read that "arrColl = new ArrayCollection();" is array collection 
can i get the value directly like 'arrColl[key][site]'?? is it work like array ?? 

thx</description>
		<content:encoded><![CDATA[<p>Peter thank you for your reply. i still have one more quiestion </p>
<p>i read that &#8220;arrColl = new ArrayCollection();&#8221; is array collection<br />
can i get the value directly like &#8216;arrColl[key][site]&#8217;?? is it work like array ?? </p>
<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12517</link>
		<author>peterd</author>
		<pubDate>Tue, 06 May 2008 07:30:35 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12517</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12516" rel="nofollow"&gt;Marco Lam&lt;/a&gt;,

Try using the static &lt;code&gt;ObjectUtil.toString()&lt;/code&gt; method to display the Object:
&lt;pre class="code"&gt;
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        applicationComplete="init();"&#62;

    &#60;mx:Script&#62;
        &#60;![CDATA[
            import mx.utils.ObjectUtil;

            private function init():void {
                var params:Object = Application.application.parameters;
                txt.text = ObjectUtil.toString(params);
            }
        ]]&#62;
    &#60;/mx:Script&#62;
    
    &#60;mx:Form&#62;
        &#60;mx:FormItem label="name:"&#62;
            &#60;mx:Label id="nameLbl"
                    text="{Application.application.parameters.name}" /&#62;
        &#60;/mx:FormItem&#62;
        &#60;mx:FormItem label="site:"&#62;
            &#60;mx:Label id="siteLbl"
                    text="{Application.application.parameters.site}" /&#62;
        &#60;/mx:FormItem&#62;
    &#60;/mx:Form&#62;

    &#60;mx:Text id="txt" /&#62;

&#60;/mx:Application&#62;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12516" rel="nofollow">Marco Lam</a>,</p>
<p>Try using the static <code>ObjectUtil.toString()</code> method to display the Object:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        applicationComplete="init();"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.utils.ObjectUtil;

            private function init():void {
                var params:Object = Application.application.parameters;
                txt.text = ObjectUtil.toString(params);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:Form&gt;
        &lt;mx:FormItem label="name:"&gt;
            &lt;mx:Label id="nameLbl"
                    text="{Application.application.parameters.name}" /&gt;
        &lt;/mx:FormItem&gt;
        &lt;mx:FormItem label="site:"&gt;
            &lt;mx:Label id="siteLbl"
                    text="{Application.application.parameters.site}" /&gt;
        &lt;/mx:FormItem&gt;
    &lt;/mx:Form&gt;

    &lt;mx:Text id="txt" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Lam</title>
		<link>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12516</link>
		<author>Marco Lam</author>
		<pubDate>Tue, 06 May 2008 03:03:42 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/07/grabbing-flashvars-from-the-embedding-html-template/#comment-12516</guid>
		<description>&lt;code&gt;Application.application.parameters.name&lt;/code&gt; can show the actuall value of the parameters 

but how to show the valuse from array collection ? i put &lt;code&gt;Alert.show(&#34;arr &#34;+ arrColl)&lt;/code&gt; , it can jsut show [object object]... so i would like to know that how to get the actuall value(peter) in the  array collection? and also i can see the value "peter" amd "site" on the debug mode but i don't know how to take it out</description>
		<content:encoded><![CDATA[<p><code>Application.application.parameters.name</code> can show the actuall value of the parameters </p>
<p>but how to show the valuse from array collection ? i put <code>Alert.show(&quot;arr &quot;+ arrColl)</code> , it can jsut show [object object]&#8230; so i would like to know that how to get the actuall value(peter) in the  array collection? and also i can see the value &#8220;peter&#8221; amd &#8220;site&#8221; on the debug mode but i don&#8217;t know how to take it out</p>
]]></content:encoded>
	</item>
</channel>
</rss>
