<?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: ToolTip In AS3</title>
	<atom:link href="http://abrahamyan.com/2009/02/05/tooltip-in-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/</link>
	<description>Flash, Flex Developer  &#124;  personal playground</description>
	<pubDate>Wed, 10 Mar 2010 00:24:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Armen Abrahamyan</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-401</link>
		<dc:creator>Armen Abrahamyan</dc:creator>
		<pubDate>Sun, 07 Mar 2010 03:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-401</guid>
		<description>@Anneka  pls read the comments.
my suggestion: init/add tooltip inside main container swf.
as its singleton u can get him from everywhere.(ToolTip.getInstance())

thx</description>
		<content:encoded><![CDATA[<p>@Anneka  pls read the comments.<br />
my suggestion: init/add tooltip inside main container swf.<br />
as its singleton u can get him from everywhere.(ToolTip.getInstance())</p>
<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anneka</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-398</link>
		<dc:creator>Anneka</dc:creator>
		<pubDate>Sat, 06 Mar 2010 19:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-398</guid>
		<description>Thanks for the tutorial, very useful!!

I'm just having a little trouble with something, I've added the tooltips to a website I'm designing and it's all working fine.The page loads with a page transition and then the content loads..but when the content loads (which has a map with the tooltips) my swf moves from the centre stage to top left. I tried changing the 

addChild(tooltip)
stage.scaleMode= StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT
;

and also had a look in the as files, but no luck. Would you be able to point me in the right direction.

Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial, very useful!!</p>
<p>I&#8217;m just having a little trouble with something, I&#8217;ve added the tooltips to a website I&#8217;m designing and it&#8217;s all working fine.The page loads with a page transition and then the content loads..but when the content loads (which has a map with the tooltips) my swf moves from the centre stage to top left. I tried changing the </p>
<p>addChild(tooltip)<br />
stage.scaleMode= StageScaleMode.NO_SCALE;<br />
stage.align = StageAlign.TOP_LEFT<br />
;</p>
<p>and also had a look in the as files, but no luck. Would you be able to point me in the right direction.</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nico B.</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-357</link>
		<dc:creator>Nico B.</dc:creator>
		<pubDate>Mon, 22 Feb 2010 10:12:07 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-357</guid>
		<description>hi, I just wanted to add a contribution that may help whenever you want the tooltip to be added as a child only when a ui component is instantiated and the stage is not the "root stage" but the ui component stage...

&lt;code&gt;
private function updatePosition():void
		{
			var xpos:Number = _followMouse?(stage.mouseX + _xposition):_xposition;
			var ypos:Number = _followMouse?(stage.mouseY + _yposition):_yposition;
var point:Point;
if(this.parent)
{
 point = this.parent.globalToLocal(new Point(xpos, ypos));
}
else
{
point = (new Point(xpos, ypos);
}
			_horDirection = (point.x + bg_mc.rect_mc.width - arrowMargin &gt; _stageWidth)?DIRECTION_LEFT:DIRECTION_RIGHT
			_verticalDirection = (point.y -bg_mc.rect_mc.height - bg_mc.arrow_mc.height &lt; 0)?DIRECTION_BOTTOM:DIRECTION_TOP;
			reSize();
			this.x = Math.round((_horDirection == DIRECTION_LEFT)?(point.x-bg_mc.rect_mc.width+arrowMargin):(point.x-bg_mc.arrow_mc.x));
			this.y = Math.round((_verticalDirection == DIRECTION_TOP)?(point.y - bg_mc.rect_mc.height - bg_mc.arrow_mc.height):(point.y + bg_mc.arrow_mc.height));
		}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>hi, I just wanted to add a contribution that may help whenever you want the tooltip to be added as a child only when a ui component is instantiated and the stage is not the &#8220;root stage&#8221; but the ui component stage&#8230;</p>
<p><code><br />
private function updatePosition():void<br />
		{<br />
			var xpos:Number = _followMouse?(stage.mouseX + _xposition):_xposition;<br />
			var ypos:Number = _followMouse?(stage.mouseY + _yposition):_yposition;<br />
var point:Point;<br />
if(this.parent)<br />
{<br />
 point = this.parent.globalToLocal(new Point(xpos, ypos));<br />
}<br />
else<br />
{<br />
point = (new Point(xpos, ypos);<br />
}<br />
			_horDirection = (point.x + bg_mc.rect_mc.width - arrowMargin &gt; _stageWidth)?DIRECTION_LEFT:DIRECTION_RIGHT<br />
			_verticalDirection = (point.y -bg_mc.rect_mc.height - bg_mc.arrow_mc.height &lt; 0)?DIRECTION_BOTTOM:DIRECTION_TOP;<br />
			reSize();<br />
			this.x = Math.round((_horDirection == DIRECTION_LEFT)?(point.x-bg_mc.rect_mc.width+arrowMargin):(point.x-bg_mc.arrow_mc.x));<br />
			this.y = Math.round((_verticalDirection == DIRECTION_TOP)?(point.y - bg_mc.rect_mc.height - bg_mc.arrow_mc.height):(point.y + bg_mc.arrow_mc.height));<br />
		}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armen Abrahamyan</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-313</link>
		<dc:creator>Armen Abrahamyan</dc:creator>
		<pubDate>Mon, 08 Feb 2010 16:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-313</guid>
		<description>@thien right now its working with one design/skin.
you can edit symbols in library, give them different look, but still will be one type.
well, in general in most cases from my experience in one project tooltips are same style.
From the other hand adding skin change functionality is not hard, all you have to do is write a public method to change rect and arrow(remove the existing and add new).
Tooltip design I use is simple-&gt;  rounded rectangle, arrow, textfield. Once the new design keeps that structure will be no problem to update it/change it runtime.
that should cover with the new method-&gt; changeSkin(rect, arrow)
I will try to find a time to add that functionality in a week.
thx</description>
		<content:encoded><![CDATA[<p>@thien right now its working with one design/skin.<br />
you can edit symbols in library, give them different look, but still will be one type.<br />
well, in general in most cases from my experience in one project tooltips are same style.<br />
From the other hand adding skin change functionality is not hard, all you have to do is write a public method to change rect and arrow(remove the existing and add new).<br />
Tooltip design I use is simple->  rounded rectangle, arrow, textfield. Once the new design keeps that structure will be no problem to update it/change it runtime.<br />
that should cover with the new method-> changeSkin(rect, arrow)<br />
I will try to find a time to add that functionality in a week.<br />
thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thien</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-312</link>
		<dc:creator>thien</dc:creator>
		<pubDate>Mon, 08 Feb 2010 15:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-312</guid>
		<description>Armen, what if I wanted to use several differently designed tool tips in my poject? For example, in addition to the tooltip you created in the example, I also wanted to use a tooltip I designed. Right now it seems I can only use one tooltip design. Is this correct?</description>
		<content:encoded><![CDATA[<p>Armen, what if I wanted to use several differently designed tool tips in my poject? For example, in addition to the tooltip you created in the example, I also wanted to use a tooltip I designed. Right now it seems I can only use one tooltip design. Is this correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armen Abrahamyan</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-276</link>
		<dc:creator>Armen Abrahamyan</dc:creator>
		<pubDate>Fri, 15 Jan 2010 20:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-276</guid>
		<description>@thien  it should work automatically based on stageWidth and stageHeight.
U might need to set:
stage.scaleMode= StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

take a look at example fla file, try to change the stage size and run it again.</description>
		<content:encoded><![CDATA[<p>@thien  it should work automatically based on stageWidth and stageHeight.<br />
U might need to set:<br />
stage.scaleMode= StageScaleMode.NO_SCALE;<br />
stage.align = StageAlign.TOP_LEFT;</p>
<p>take a look at example fla file, try to change the stage size and run it again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thien</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-275</link>
		<dc:creator>thien</dc:creator>
		<pubDate>Fri, 15 Jan 2010 20:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-275</guid>
		<description>ahhh ok, i see it only changes direction near the stage borders. I thought it changed based on where the mouse was on the button.</description>
		<content:encoded><![CDATA[<p>ahhh ok, i see it only changes direction near the stage borders. I thought it changed based on where the mouse was on the button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thien</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-274</link>
		<dc:creator>thien</dc:creator>
		<pubDate>Fri, 15 Jan 2010 20:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-274</guid>
		<description>Hello, how do you get the auto direction to work? I can't figure it out?</description>
		<content:encoded><![CDATA[<p>Hello, how do you get the auto direction to work? I can&#8217;t figure it out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armen Abrahamyan</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-272</link>
		<dc:creator>Armen Abrahamyan</dc:creator>
		<pubDate>Wed, 13 Jan 2010 18:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-272</guid>
		<description>@Amir  problem is in ur movieclip/button, doesn't have any relationship with tooltip</description>
		<content:encoded><![CDATA[<p>@Amir  problem is in ur movieclip/button, doesn&#8217;t have any relationship with tooltip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amir</title>
		<link>http://abrahamyan.com/2009/02/05/tooltip-in-as3/comment-page-2/#comment-271</link>
		<dc:creator>Amir</dc:creator>
		<pubDate>Wed, 13 Jan 2010 18:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://abrahamyan.com/?p=91#comment-271</guid>
		<description>Actually, correction. It works perfectly fine with movieclip buttons generally. However, I have a movieclip button with a 45% transparent layer inside of it, and that seems to make it not work for some reason.</description>
		<content:encoded><![CDATA[<p>Actually, correction. It works perfectly fine with movieclip buttons generally. However, I have a movieclip button with a 45% transparent layer inside of it, and that seems to make it not work for some reason.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
