Flex Flash event call

Ok, this is probably going to be a little confusing, but Im
still relatively new with Flash/Flex2 so Ill do my best. I have an
Flash asset which is a map of the United States. The asset has its
own actionscript file that handles the mouseover, mouseout, etc
events. No, I am trying to use this asset in a flex application as
a means for users to click on a state and see a list of postings
from that state. So far, all this works great.
Now, what I want is to have the flex query a web service and
compile a list of all the states that currently have postings and
then have the map show a different color for those states.
I'm not really sure if I need to create a property in the
flash actionscript file and call that from the flex, or what. I
want my application to be loosely coupled and I was thinking I
could have flex dispatch an event but I dont know if the Flash
Asset is able to capture the event and then use it to turn the
appropriate states on.
Is there a better way to handle this? I like having the
assets handle their own behavior and contain the methods to perform
the switch, but I dont what is a good way to implement this.
Thank you all SO MUCH!!!

I couldn't use 'complete' becouse then the function doesn't execute. For example:
<mx:SWFLoader id='flashMCinstance' source='{myMC}' complete="loaderCompleteHandler"/>
private function loaderCompleteHandler (event:Event) :void
     flashMCinstance.content.addEventListener('myEvent', myFunction);
or
<mx:SWFLoader id='flashMCinstance' source='{myMC}' complete="loaderCompleteHandler () "/>
private function loaderCompleteHandler () :void
     flashMCinstance.content.addEventListener('myEvent', myFunction);
doesn't execute this function, but the creationComplete="loaderCompleteHandler()" with loaderCompleteHandler():void work. I don't know why, becouse I can see the MC on stage loaded, so it should be completed by then.
In debugger I see that content variable of this SWFLoader is "nameOfMyApp_myMC" - the 'myMC' is class name for source of this SWFLoader. So it appears that everything is ok, but it still doesn't work.

Similar Messages

  • Missing base class Events (flash.events) | Flex 4.1 SDK | Flex Builder 3

    Hello,
    I am experience the following problem, I am not able locate or find base class Events when I do "import flash.events;" - autocomplete does not work as well. in import flash. only available - flash.errors and flash.text
    However if I switch from Flex 4.1 SDK to Flex 3.2 SDK then no problem and I can add flash.events
    Flex 4.1 SDK version is 4.1.0.65265, I also tried Flex 4.0 SDK, the same problem not able to find events.
    Require flash player version I tried both: 10.0.0 and 10.1.0 nothing helped.
    Could you please suggest what might be wrong. Unfortunately not able to find this info in the forum or google
    Thank you
    Regards,
    Marakame

    Did you try
        import flash.events.*;
    Or
        import flash.events.Event;

  • Data connection between Java Webdynpro - Flex Flash Island

    Hi,
    I'm developing a Java Webdynpro with connection to a Flex Flash Island. I'm using Flex 3.2.
    I've already set up the connection from WDJ to Flex, by using Events and the FlashIsland.fireEvent method, this all works fine. Now I'm trying to update a value in WDJ, to be updated in Flex. This gives the following error:
    Error: Error #1023: Stack overflow occurred.
         at Function/http://adobe.com/AS3/2006/builtin::apply()
         at mx.binding::Watcher/wrapUpdate()
         at mx.binding::PropertyWatcher/eventHandler()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()
         at UWLApplication/set opentask_updated()
         at MethodInfo-4234()
         at Function/http://adobe.com/AS3/2006/builtin::call()
         at sap.core.wd.context::WDContextListener/execute()
         at sap.core.wd.context::WDContext/notifyListeners()
         at sap.core.wd.context::WDContext/_set()
         at sap.core.wd.context::WDContext/set()
         at sap.wd.island::WDIsland/storeProperty()
         at sap.wd.island::WDIsland/onUpdateProperty()
         at mx.binding.utils::ChangeWatcher/wrapHandler()
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()
         at UWLApplication/set opentask_updated()
         at MethodInfo-4234()
    This is especially strange, cause before I had a refresh button in which I updated my entire item collection. Now, I have added this field and suddenly I get this error !
    Does anybody has any idea what this could mean? Any help would be much appreciated ...
    My field in Flex:
    \[Bindable\]
    public var opentask_updated:Number;
    <mx:Text id="opentask_updated_text" text="{opentask_updated.toString()}" />
    My adaptions in WDJ:
    public void getInbox( )  {
           wdContext.currentInboxElement().setOpentask_updated(0);
    public void wdDoInit()  {
           getInbox();

    Solved!
    It appeared to be a "long" parameter and I was trying to put it in a "Number" parameter in Flex (because there is no long in Flex)
    When I changed both to String, it worked!

  • [svn:bz-trunk] 19423: Fixes blz-604 BlazeDS samples error with "Error #1014 : Class flash.events::SoftKeyboardEvent could not be found."

    Revision: 19423
    Revision: 19423
    Author:   [email protected]
    Date:     2010-12-16 07:00:31 -0800 (Thu, 16 Dec 2010)
    Log Message:
    Fixes blz-604 BlazeDS samples error with "Error #1014: Class flash.events::SoftKeyboardEvent could not be found."
    Ticket Links:
        http://bugs.adobe.com/jira/browse/blz-604
    Modified Paths:
        blazeds/trunk/qa/resources/webtier/flex_sdk_4/flex-config.xml

  • My air app gives VerifyError: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.

    Hi,
    I'm devlopping an air application, MacOSX 10.6.8, flex4.5.1 and air 2.6, suddenly the application will not start anymore, giving the following error:
    VerifyError: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.
              at spark.automation.delegates.components.supportClasses::SparkSkinnableTextBaseAutomationImp l$/init()[E:\dev\4.5.1\frameworks\projects\automation_spark\src\spark\automation\delegates \components\supportClasses\SparkSkinnableTextBaseAutomationImpl.as:73]
              at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2821]
              at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2729]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at mx.preloaders::Preloader/timerHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx \preloaders\Preloader.as:542]
              at flash.utils::Timer/_timerDispatch()
              at flash.utils::Timer/tick()
    A colleague with the same setup has no problems. Also when i create a new air project in flashbuilder it will not start either, but not throwing the error.
    Anyone with the same problems? Or anyone who knows what might be the cause?
    kind regards,
    Arjen Veneman

    Found the solution.  We had to add swf-version=11 in our flex config.  Odd that we should have to start doing that now all of a sudden (we weren't setting that explicitly before).  Seems like a bug in the SDK.

  • Class flash.events::SoftKeyboardEvent could not be found

    Hi
    Hope everyone is enjoying life.
    I’m creating my own plugin for InDesign. I’m using spark components in Adobe CS extension builder 2, flex sdk 4.5. It throws following error when my developed plugin runs in CS5.5 or lower:
    VerifyError: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.
    This event seems to only been needed on components that use on-screen keyboards. In my case it throws this error on spark components "TextInput, List, ComboBox etc."  It runs fine with CS6.
    Does anybody have an idea to resolve this error?
    Thanks and best regards
    Sal

    What does new features mean here? The API provided in csaw_indesign.swc?
    Flex SDK 3.4 is just a compiler. All features of CS Extension Builder 2.0 are available. What are not available is the API provided in ${CSLIBS}\2.0\4.5\release\csaw_indesign.swc where is not provided in ${CSLIBS}\1.5\3.4\release\csaw_indesign.swc.
    To be compatible with lower version, you need to use the low version's *.swc libraries.

  • [svn:fx-trunk] 5827: Added import flash.events.Event to LayoutBase.

    Revision: 5827
    Author: [email protected]
    Date: 2009-03-31 15:24:20 -0700 (Tue, 31 Mar 2009)
    Log Message:
    Added import flash.events.Event to LayoutBase.
    QE Notes: Fixing broken build.
    Doc Notes:
    Bugs:
    Reviewer:
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/spark/layout/supportClasses/LayoutBase.as

    Personne n'a une quelconque piste ??
    Please help !

  • [svn:fx-trunk] 8864: Fix for ASDoc @event tag assumes the class is in flash .events package

    Revision: 8864
    Author:   [email protected]
    Date:     2009-07-28 11:31:14 -0700 (Tue, 28 Jul 2009)
    Log Message:
    Fix for ASDoc @event tag assumes the class is in flash.events package
    Bugs: SDK-22275
    QE Notes: None.
    Doc Notes: None.
    tests: checkintests, asdoc
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22275
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    error dateField not selecion date 27/11/2002 ?
    This is bug flex 3 ?
    thanks

  • Flex - Flash Integration

    Hi,
    I am working on a Flex project that loads dynamicaly a swf
    file (flash 8 / actionscript 2). I need Flex listening events
    dispatrched from flash.
    Is that posible?
    I read about the LocalConnection class but this looks like is
    used to communicate diferent swf files in the same html documments.
    Any ideas will be very apreciated.
    tks,

    LocalConnection is the way to go. It is for SWF-to-SWF
    communication, but ActionScript 2 SWFs loaded into Flash Player 9
    occupy a different virtual space than ActionScript 3 SWFs. So you
    need LocalConnectiton to get them talking.
    If possible, upgrade to Flash CS3 and you'll have
    ActionScript 3 SWFs which can be loaded into the same virtual
    space.
    See my blog for details (search LocalConnection):
    weblogs.macromedia.com/pent

  • HT4927 When i upgraded from 9.2.3 to 9.3.1 I had migration issues, where most my photos ended up in a restored event called restored photos. But then they don't come up in faces anymore. So can i upgrade to 9.3.2 and then just rebuild my photo library ?

    When i upgraded from 9.2.3 to 9.3.1 I had migration issues, where most my photos ended up in a restored event called restored photos. But then they don't come up in faces anymore. So can i upgrade to 9.3.2 and then just rebuild my photo library ? I want to upgrade to mountain lion. But concered about my photo library. So I restored my whole computer back to an earlier date, becuase I couldn't figure out how to restore just my photo library. Advice?

    Best way is to restore your backup from before the problem, rebuild it and update it again
    LN

  • Event call event

    hello,
    I would like to know how to call event from another,
    I have for the moment 5 individuals actions (manage with event structure) A B C D and E  and
    i  need  in somecase that A want to call E, B to call E or  B to call E then quit on quit button.
    is there a way to call ( simulate) an event call at end of first really called (by user) ?
    can i use flag, event register ? i don't kow what is best solution
    Best regards 
    Tinnitus
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte
    Attachments:
    eventcall.vi ‏14 KB

    Yes but it send me an error
    see attachement
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte
    Attachments:
    eventcall2.vi ‏19 KB

  • Flash Islands Tutorial I - Confusion with Flex/Flash Builder Versions

    Hi Guys,
    i am new to the Adobe Flex/Flash Islands technology and tried to implement Tutorial I by Thomas Jung. Unfortunately i am confused by the various different versions for flex and the corresponding IDE's.
    As far as i understood SAP at the moment only supports Flex versions up to version 3.3 for NetWeaver 7 EHP1. Furtheron the Adobe Charting Components (used in the Tutorial) seem to be part of the Flex Builder Professional Version only.
    So i went to the Adobe Website and looked into the products and download areas. All i found was Flash Builder 4.5 Premium and the various Adobe and Open Source Flex SDK versions. I am using Flash Builder 4.5 as a trial right now. Unfortunately the Charting Components are not included.
    So the question i have is whether the Charting Components (e.g. <mx:BarChart /> )are included in the non Trial version of Flash Builder 4.5 Premium or whether there is any possibility to get them as an Add-On. Or do i have to use Flex Builder 3 Professional (i found no information about this on the Adobe Website)?
    Additional Hint:
    I found out that when i compile the poject with Flex SDK vesion 3.6 or higher, the compiler knows the <mx:BarChart /> tag. Also in that case the view designer is working. However FlashIslands is only supported up to Flex SDK 3.3. But when i choose 3.3 the <mx:BarChart /> tag and some other related tags are unknown.
    This is a really anoying issue.
    Best Regards,
    Dirk
    Edited by: Dirk Jäckel on Jul 19, 2011 12:14 PM

    HI Dirk,
    wtith Web Dynpro, you can only use Flex SDK version 3.3 and downwards. You can download the SDK here [http://opensource.adobe.com/wiki/display/flexsdk/DownloadFlex3]
    Flash Builder ships with Flex SDK 4.5 which is not compatible with WDA flash islands.
    As for the charts library, which Adobe referes to as the Data Visualization Component, it is also available as a separate download which can be unzipped into the same directory as the Flex SDK -- the library is available here [http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk]
    I must say I am also confused, because as far I can tell data visualization component is not included in 3.3, but SAP makes no mention of this. Hopefully someone else can enlighten us on this issue?

  • Adobe Flex & Flash

    Hi,
    I have a question about Adobe Flex. I have a project about preparing a digital content (i am planning preaper it at flash and compatible with SCORM 2004). I need to know that can i connect a content prepared with Adobe Flash CS4 to Flex?
    And if yes, how can i do it. I dont know Flex much
    Thank you.
    Nilay P.

    > I am Working as Consultant-SAP.I am creating static Forms using Adobelive
    > Cycle Designer and SAP.
    >
    > How Adobe Flex is useful to create Forms?
    Yes very.
    > Is it usefull for me if i learn Adobeflex?
    Several of us are turning to Flex for eLearning and we are finding it to be
    a great tool.
    > How will be the future with ADOBE FLEX?
    I think Adobe are commiting heavily to Flex - Flex plays on any machine with
    the latest Flash player , so that includes PC, Mac and Linux. AIR plays on
    PC and Mac today, with a Linux version under development right now. In the
    future (Open Screen Project) versions of Flex and AIR should play on mobile
    devices too.
    >
    > I have seen the article SAP WebDynpro + Adobe Flex/Flash = Enterprise UI
    > 2.0.
    > Working as ABAPer shall i shift to Adobe Flex?
    I don't really know what would be good or bad for your needs. Take a look at
    some of the sample Flex and AIR apps on Adobe.com and see if you think the
    features demonstrated are applicable to your needs.
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Load Flex/Flash Builder project in Flash Professional CS5

    Is there a way that I can load (or export) Flex/Flash builder project in Flash Professional CS5?
    As it turns out we got Flash Prof for our team, but it may look like we actually need Flash builder to build lots of UI related stuff..

    Specifically, I want to use flex chart in CS5. Is there a way to do this?
    Message was edited by: bart2335658
    And flex ui

  • [svn:cairngorm3:] 16810: Changed close event from flash.events.Event. CLOSE to mx.events.CloseEvent.CLOSE.

    Revision: 16810
    Revision: 16810
    Author:   [email protected]
    Date:     2010-07-03 03:32:49 -0700 (Sat, 03 Jul 2010)
    Log Message:
    Changed close event from flash.events.Event.CLOSE to mx.events.CloseEvent.CLOSE. See MXML examples in PopupTest.
    Modified Paths:
        cairngorm3/trunk/libraries/PopupTest/src/samples/ModulePopups.mxml

    Hmmm Strange!!!
    Seems like a bug which requires target for parallel effect while hide only but does not set it.
    For the time being you can remove the sequence effect as there is no othe effect other than parallel and use effect like
             <mx:Parallel id="fadeOutTw">
                <mx:Fade alphaFrom="1.0" alphaTo="0.0" duration="1000"/>
                <mx:WipeUp duration="1000" />       
            </mx:Parallel>
    or you can also set target explicitly like :
    <mx:Sequence id="fadeOutTW" >
            <mx:Parallel target="{largeImgTW}">
                <mx:Fade alphaFrom="1.0" alphaTo="0.0" duration="1000"/>
                <mx:WipeUp duration="1000" />       
            </mx:Parallel>   
        </mx:Sequence>
    I have tested on this code, and works fine. Hope this helps you
    -Vikash

Maybe you are looking for