<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Actionscript 3 and LightBox js</title>
	<atom:link href="http://www.anthonytanaka.com/?feed=rss2&#038;p=180" rel="self" type="application/rss+xml" />
	<link>http://www.anthonytanaka.com/?p=180</link>
	<description>Write Code And Carry A Big Stick</description>
	<lastBuildDate>Tue, 10 Aug 2010 11:30:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Alex</title>
		<link>http://www.anthonytanaka.com/?p=180&#038;cpage=1#comment-32695</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 10 Aug 2010 11:30:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.anthonytanaka.com/?p=180#comment-32695</guid>
		<description>Not sure if I will get a reply from a post this old but.. Anyway to specify width and height at the button code? My button is linked to a swf file, not jpg, so lightbox needs to know width and height or it messes all up.

Thanks!</description>
		<content:encoded><![CDATA[<p>Not sure if I will get a reply from a post this old but.. Anyway to specify width and height at the button code? My button is linked to a swf file, not jpg, so lightbox needs to know width and height or it messes all up.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Capstick</title>
		<link>http://www.anthonytanaka.com/?p=180&#038;cpage=1#comment-32694</link>
		<dc:creator>Capstick</dc:creator>
		<pubDate>Wed, 04 Aug 2010 17:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.anthonytanaka.com/?p=180#comment-32694</guid>
		<description>Hi There,
Finally I found a way that works for me...one question, is it possible to add a title to the a tag that is created. I tried to add it a couple of times in the js function, but cant get it to work...
Main problem for me is how to send the title variable from as3 to js...or do you know a better way?
Thnx a million...
Greetz, Kasper</description>
		<content:encoded><![CDATA[<p>Hi There,<br />
Finally I found a way that works for me&#8230;one question, is it possible to add a title to the a tag that is created. I tried to add it a couple of times in the js function, but cant get it to work&#8230;<br />
Main problem for me is how to send the title variable from as3 to js&#8230;or do you know a better way?<br />
Thnx a million&#8230;<br />
Greetz, Kasper</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.anthonytanaka.com/?p=180&#038;cpage=1#comment-32687</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 25 May 2010 20:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.anthonytanaka.com/?p=180#comment-32687</guid>
		<description>Hey Bill, not sure what you mean exactly, but if you are trying to apply lightbox to that image your code would looks something like this: 

var lightBoxCommand:String = &quot;lightBoxInit(&#039;../images/homeowner.jpg&#039;);&quot;;
var reqprint1:URLRequest = new URLRequest(&quot;javascript:&quot; + lightBoxCommand);

btn2sub1.addEventListener(MouseEvent.CLICK,b21Click);

function b21Click(event:MouseEvent):void{
navigateToURL(reqprint1, &quot;_self&quot;);

make sure you have the Javascript in place too.</description>
		<content:encoded><![CDATA[<p>Hey Bill, not sure what you mean exactly, but if you are trying to apply lightbox to that image your code would looks something like this: </p>
<p>var lightBoxCommand:String = &#8220;lightBoxInit(&#8216;../images/homeowner.jpg&#8217;);&#8221;;<br />
var reqprint1:URLRequest = new URLRequest(&#8220;javascript:&#8221; + lightBoxCommand);</p>
<p>btn2sub1.addEventListener(MouseEvent.CLICK,b21Click);</p>
<p>function b21Click(event:MouseEvent):void{<br />
navigateToURL(reqprint1, &#8220;_self&#8221;);</p>
<p>make sure you have the Javascript in place too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill Triplett</title>
		<link>http://www.anthonytanaka.com/?p=180&#038;cpage=1#comment-32686</link>
		<dc:creator>Bill Triplett</dc:creator>
		<pubDate>Tue, 25 May 2010 20:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.anthonytanaka.com/?p=180#comment-32686</guid>
		<description>I&#039;m also having trouble working with lightbox and flash as 3.

This works to direct to an image file but can&#039;t seem to figure out how to include the lightbox and have it work. I&#039;ve looked at so many web forums I&#039;m more confused than when I started.

import flash.events.MouseEvent;

var reqprint1:URLRequest = new URLRequest(&quot;../images/homeowner.jpg&quot;);

btn2sub1.addEventListener(MouseEvent.CLICK,b21Click);

function b21Click(event:MouseEvent):void{
	navigateToURL(reqprint1);
}</description>
		<content:encoded><![CDATA[<p>I&#8217;m also having trouble working with lightbox and flash as 3.</p>
<p>This works to direct to an image file but can&#8217;t seem to figure out how to include the lightbox and have it work. I&#8217;ve looked at so many web forums I&#8217;m more confused than when I started.</p>
<p>import flash.events.MouseEvent;</p>
<p>var reqprint1:URLRequest = new URLRequest(&#8220;../images/homeowner.jpg&#8221;);</p>
<p>btn2sub1.addEventListener(MouseEvent.CLICK,b21Click);</p>
<p>function b21Click(event:MouseEvent):void{<br />
	navigateToURL(reqprint1);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Campbell</title>
		<link>http://www.anthonytanaka.com/?p=180&#038;cpage=1#comment-24603</link>
		<dc:creator>Campbell</dc:creator>
		<pubDate>Wed, 17 Sep 2008 05:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.anthonytanaka.com/?p=180#comment-24603</guid>
		<description>sorry * &quot;...used in the Html version of lightbox and also....&quot;</description>
		<content:encoded><![CDATA[<p>sorry * &#8220;&#8230;used in the Html version of lightbox and also&#8230;.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Campbell</title>
		<link>http://www.anthonytanaka.com/?p=180&#038;cpage=1#comment-24602</link>
		<dc:creator>Campbell</dc:creator>
		<pubDate>Wed, 17 Sep 2008 05:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.anthonytanaka.com/?p=180#comment-24602</guid>
		<description>Hey i&#039;m building a self promotion website and it&#039;s flash. I want to use the lightbox with in my flash web page but its proving to be quite difficult. 

Is there a way to call upon all the appropriate javascript files used in an html version and some how link the images so I can take out the middle-man of html? What i&#039;m trying to achieve is a lightbox with no Html...

Can you please help me?</description>
		<content:encoded><![CDATA[<p>Hey i&#8217;m building a self promotion website and it&#8217;s flash. I want to use the lightbox with in my flash web page but its proving to be quite difficult. </p>
<p>Is there a way to call upon all the appropriate javascript files used in an html version and some how link the images so I can take out the middle-man of html? What i&#8217;m trying to achieve is a lightbox with no Html&#8230;</p>
<p>Can you please help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://www.anthonytanaka.com/?p=180&#038;cpage=1#comment-16719</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Mon, 23 Jun 2008 16:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.anthonytanaka.com/?p=180#comment-16719</guid>
		<description>Check out this link on your error, I can&#039;t really give you an answer without seeing code, but should be fairly simple, all AS3 is the same, but remember as I am using Flex.

http://curtismorley.com/2007/11/19/flex-2-flash-cs3-actionscript-error-1013/</description>
		<content:encoded><![CDATA[<p>Check out this link on your error, I can&#8217;t really give you an answer without seeing code, but should be fairly simple, all AS3 is the same, but remember as I am using Flex.</p>
<p><a href="http://curtismorley.com/2007/11/19/flex-2-flash-cs3-actionscript-error-1013/" rel="nofollow">http://curtismorley.com/2007/11/19/flex-2-flash-cs3-actionscript-error-1013/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zara</title>
		<link>http://www.anthonytanaka.com/?p=180&#038;cpage=1#comment-16687</link>
		<dc:creator>Zara</dc:creator>
		<pubDate>Mon, 23 Jun 2008 10:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.anthonytanaka.com/?p=180#comment-16687</guid>
		<description>hey ...ive been lookin for a post wlike yours for a bit but could you expand on your example a bit? im getting a compiling error in flash 
(1013: The private attribute may be used only on class property definitions.) if you could please give a bit of help id be greatful...i just have a few buttons on the screen that on click will call other content and load it in the light box.....</description>
		<content:encoded><![CDATA[<p>hey &#8230;ive been lookin for a post wlike yours for a bit but could you expand on your example a bit? im getting a compiling error in flash<br />
(1013: The private attribute may be used only on class property definitions.) if you could please give a bit of help id be greatful&#8230;i just have a few buttons on the screen that on click will call other content and load it in the light box&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michako</title>
		<link>http://www.anthonytanaka.com/?p=180&#038;cpage=1#comment-16104</link>
		<dc:creator>michako</dc:creator>
		<pubDate>Wed, 18 Jun 2008 12:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.anthonytanaka.com/?p=180#comment-16104</guid>
		<description>Hey!
Nice one.Haven&#039;t tested yet though!!
I &#039;ll use ExternalInterface instead.

private function runLightbox(eventObject:MouseEvent):void
{
ExternalInterface.call(&quot;lightBoxInit&quot;,&quot;http://www.yoursite.com/image.jpg&quot;);
}</description>
		<content:encoded><![CDATA[<p>Hey!<br />
Nice one.Haven&#8217;t tested yet though!!<br />
I &#8216;ll use ExternalInterface instead.</p>
<p>private function runLightbox(eventObject:MouseEvent):void<br />
{<br />
ExternalInterface.call(&#8220;lightBoxInit&#8221;,&#8221;http://www.yoursite.com/image.jpg&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
