Solved

How do they do bubble tool tip in Flex 3

Posted on 2008-11-02
3
2,554 Views
Last Modified: 2012-05-05
How do they do bubble tool tips in Flex 3.  Take a look at this site below


http://www.afcomponents.com/components/tooltip_flex/

Now Hover on anyone of those boxes and you will see the tool tip.
0
Comment
Question by:stargateatlantis
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
Gary Benade earned 500 total points
ID: 22883851

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()">

	<mx:Script>

		<![CDATA[

			private function init():void

			{

				container.addEventListener( MouseEvent.MOUSE_OVER, doover);

			}

		

			private function doover( e:MouseEvent):void

			{

				container.removeEventListener( MouseEvent.MOUSE_OVER, doover);

				container.addEventListener( MouseEvent.MOUSE_MOVE, domove);

				container.addEventListener( MouseEvent.MOUSE_OUT, doout);

				bubble.visible = true;

			}

			private function doout( e:MouseEvent):void

			{

				bubble.visible = false;

				container.addEventListener( MouseEvent.MOUSE_OVER, doover);

				container.removeEventListener( MouseEvent.MOUSE_MOVE, domove);

				container.removeEventListener( MouseEvent.MOUSE_OUT, doout);				

			}

			private function domove( e:MouseEvent):void

			{

				bubble.x = e.stageX;

				bubble.y = e.stageY;

			}

		]]>

	</mx:Script>

	<mx:Canvas id="container" x="198" y="135" width="348" height="200" backgroundColor="#FFFFFF">

	</mx:Canvas>

	<mx:Canvas id="bubble" visible="false" mouseEnabled="false" x="713" y="191" width="217" height="61" cornerRadius="10" borderStyle="solid" backgroundColor="#FEEF00" backgroundAlpha="0.5">

		<mx:Text x="29" y="20" text="dont pop my bubble"/>

	</mx:Canvas>

	

</mx:Application>

Open in new window

0
 

Author Comment

by:stargateatlantis
ID: 22886955
Would this be used like a pop up bubble.  So that if i click on a button the bubble would pop up
0
 
LVL 19

Expert Comment

by:Gary Benade
ID: 22888869
it is activated when the mouse hovers over the relevant container like the example you provided, try my source code
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
adobe air: a simple question 3 350
FLEX 3 LineChart doubt 4 272
Adobe license 6 266
how can flash builder 4.X version make use of java 8 5 273
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now