Solved

Can Flash Call a Function in Flex or can flex listen for an event?

Posted on 2009-05-12
1
315 Views
Last Modified: 2012-05-06
I have a swf file thats inside the swfLoader of my Flex app.
one of the objects in my Flash file has a method that does a tween on some objects that are added.
I call that method from Flex - no problems.
But that method now has a TweenEvent listener for when the tween is done. I need to notify the Flex app that the tween is done.

Can I do this.
Can someone show me a code snippet or point me to the light.

ta
blu.
//flash bit

		public function doScroll():void{

			var stopPos:Number = (this.height*(-1)) + 53;

			myTween = new Tween(this, "y", Regular.easeIn, this.y, stopPos, 20, true);

			myTween.addEventListener(TweenEvent.MOTION_FINISH, finish);

			

			

		}

		

		

		public function finish(event:TweenEvent):void{

		     isFinished = true;

	         }
 
 

//flex app

	myFlashChild.page.doScroll();

Open in new window

0
Comment
Question by:blue-genie
1 Comment
 
LVL 39

Accepted Solution

by:
blue-genie earned 0 total points
ID: 24364304
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Dashboard Examples 1 579
Button sound on mouseover 4 465
Shape with multiple lineStyle assigned 6 248
Adobe X Reader 6 335
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…
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

13 Experts available now in Live!

Get 1:1 Help Now