Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-05-12
1
Medium Priority
?
339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 39

Accepted Solution

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

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

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…
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

722 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