Event Parameters in WDA from Flash

Hi experts
I've alredy created a WDA with Flash inside in wich i send data from WDA and Flash make graphics.
Now i need to interact from Flash to WDA sending an event with values.
I found how to send event from Flash (fireEvent) and how to detect that event in WDA (adding and event) and get the values in WDA ; but that values are transfered just like the other context nodes, just with 'readOnly' property empty and in Flash these values are just public variables  (not  parameters in fireEvent).
I see we can add parameters in WDA Event ,  does somebody knows where can i search about how to manage parameters in WDA Event received from Flash  (and how to send these parameters from Flash in the 'fireEvent') ? 
Any help will be usefull.
Best Regards
Frank

>does somebody knows where can i search about how to manage parameters in WDA Event received from Flash (and how to send these parameters from Flash in the 'fireEvent') ?
You can add the parameters into the fireEvent method.  In this sample I have the Event name newDirections. I am adding the event parameter named dirString and the value is the variable dirS.  You pass event parameters in this name/value pair format.
FlashIsland.fireEvent(this,"newDirections",{dirString:dirS});
From the ABAP side I can retrieve the event parameter from within the Event Handler method of the controller as follows:
data dir_results type string.
  dir_results =  wdevent->get_string( 'dirString' ).
  check dir_results is not initial.

Similar Messages

  • [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

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

    Revision: 16809
    Revision: 16809
    Author:   [email protected]
    Date:     2010-07-03 03:05:21 -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/.actionScriptProperties

    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

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

    Revision: 16808
    Revision: 16808
    Author:   [email protected]
    Date:     2010-07-03 03:04:40 -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/Popup/src/com/adobe/cairngorm/popup/PopUpBase.as
        cairngorm3/trunk/libraries/PopupTest/.actionScriptProperties
        cairngorm3/trunk/libraries/PopupTest/.flexProperties
        cairngorm3/trunk/libraries/PopupTest/src/PopUpMXMLExample.mxml
        cairngorm3/trunk/libraries/PopupTest/src/samples/MyPopup.mxml
        cairngorm3/trunk/libraries/PopupTest/src/samples/ZoomAndFadePopUpBehavior.mxml
        cairngorm3/trunk/libraries/PopupTest/src/samples/parsley/ParsleyPopup.mxml
    Added 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

  • Firing an external app from flash and pass parameters

    Hi all,
    I need to fire an exe from flash projector and pass it a lot
    of parameters(need to regenerate an image). Could someone tell me
    what would be the best solution for this... can I make a php
    executable which could use all the gd functions? If yes, can you
    please write a brief tut or provide some guidelines.
    Thanks

    then use:
    fscommand("exec", "correctanswer.exe");

  • Function to retrieve event parameters from job

    Hello,
      Is there a function to retrieve the event parameters for a job.
      This job is triggered by an event.
    Regards, Michel

    Check in TBTCP and TBTCO Table there in some field it i s mentioned..
    TBTCP and TBTCO is the table which stores job details ..

  • Opening a new browser window from flash

    Does anyone know of a method fo opening a link in a new
    window in firefox from within flash that isn't blocked by the popup
    blocker. It seems like the security in FF 2.0.0.6 (I'm on 2.0.0.11)
    has been tightened to prevent any _blank or window.open calls from
    flash getting through. I've tried the standard getURL, fscommand
    and ExternalInterface call to a javascript window.open method.
    Nothing now works.
    I understand the need for the popup blockers, but this is a
    legitimate popup only invoked on user interaction (click) - the
    same window.open call in an onClick event outside of flash works
    fine and I guess it is blocked from within flash because there is
    no way of knowing if the call is invoked from user interaction or
    automatically - but seems a shame.
    So any other way of getting a new browser window to open from
    within flash in firefox?

    Use target="_blank" in your form declaration.<FORM METHOD=POST ACTION="someAction" TARGET="_blank">The _blank keyword tells the browser to load the results in a new window.
    If you need more control over your window (size, address bar, etc.) you'll need to use javascript.<SCRIPT>
    function submitForm(windowName){
       newWin = window.open("",windowName, "menubar=no,resizable=no,...");
       document.myForm.target = windowName;
       document.myForm.submit();
    </SCRIPT>
    <FORM NAME="myForm" METHOD=POST ACTION="some.jsp" TARGET="">
    <INPUT TYPE=BUTTON VALUE="Submit" onclick="submitForm();">
    </FORM>

  • How to get "Subject" & "Message" text from Flash form to default e-mail MS Outlook?

    Hi,
    I have the following code which is working fine except I can't get the user typed data from flash form to my default e-mail (MS Outlook) application. How to edit the following code?
    In the code:
    1) To  ---->  this field is okay since this email ID doesn't change
    2) Cc  ---->  this filed is also okay since no changes will be in email ID
    3) Subject  ----> this may not be always as "Feedback", user may like to change the subject
    Whant I would like to add more here is:
    1) From  ----> this text to be retrieved from "fromText.txt" input text box
    2) Message  ----> this text to be retrieved from "MessageText.txt" input text box
    //1.Button event listener
    SendMail.addEventListener(MouseEvent.CLICK, SendEMail);
    //2.The SendMail function open up email application to send email.
    function SendEMail(event:MouseEvent):void {
    var email:URLRequest = new URLRequest("mailto:[email protected]?CC=[email protected]&Subject=Feedback");
    navigateToURL(email, "_blank");
    Thanks in advance for any support.
    Regards.

    Thanks for the reply. I tried the code and result is like the following:
    To: [email protected]
    Cc: [email protected]
    Subject: [object TextField]?body=From: [object TextField]
    Body: Blank
    The problem exist in SUBJECT & BODY.
    Further help, please.
    Thanks.
    PS: I removed the ? before body and put & ------> the result is as follows:
    To: [email protected]
    Cc: [email protected]
    Subject: [object TextField]
    Body: From: [object TextField]
               [object TextField]
    One more thing that it opens an empty web page with the following text in adress bar:
    mailto:[email protected]?CC=poweruser@helpdesk&Subject=Feedback

  • Audio from Flash CS3 Video overlapping

    audio from Flash CS3 Video overlapping
    help stopping the FLVPlayback instance (which has an instance
    name of theVideo) when another button is clicked!
    How do I stop flv playback when user clicks a navigation
    button ...
    Excuse me in advance for asking about a topic that may be
    very popular!
    I'm using the attached code to go from the main stage to one
    subset of .swf files (loaded movies) and I apparently have no
    problems with overlapping. Hell, the files even seem to unload
    themselves correctly. Then, when I go to my second subset of .swf
    files (with the exact same AS3 structure), which has a Flash Video
    file (made by the FLV Playback component), I get into an
    overlapping problem associated with the audio.
    How can I stop, cancel, or unload the audio when the file is
    clicked away from (the user selects another button on the main
    stage)?
    Code attached. Please let me know if anything else is needed.
    Yours Sincerely,
    Jntspecialty

    I have tried to clean up code and do this right.
    I need help referencing (storing the value in the variable
    "stopsoundoverlapReq") the "flvplayback instance AFTER theVideo is
    instantiated (ie, the frame that contains theVideo has rendered)"
    correctly.
    Also, now I need help with the name of my nav bar button's
    method followed by parentheses, which should include the
    appropriate method parameter.
    On my main timeline, I tried to clean up the code and use:
    var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");
    Then for my nav bar button on this same timeline use:
    any_btn.addEventListener(MouseEvent.CLICK, stopsoundoverlap);
    function stopsoundoverlap(event:MouseEvent):void
    stopsoundoverlap.stop(stopsoundoverlapReq);
    The 3 errors I get now are :
    1046: Type was not found or was not a compile-time constant:
    FLVPlayback. var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");
    1061: Call to a possibly undefined method stop through a
    reference with static type Function.
    stopsoundoverlap.stop(stopsoundoverlapReq);
    1137: Incorrect number of arguments. Expected no more than 0.
    var stopsoundoverlapReq:FLVPlayback =
    stop("videopage.swf/MovieClip(ldr.content).theVideo");

  • Spry Tabs from Flash?

    I have Spry tabs on my page. I am trying to control which tab
    is active from a Flash movie on the page.
    In the HTML, I have a function:
    function switchTab(which) {
    TabbedPanels1.showPanel(which);
    In Flash, I have this actionscript (within an event):
    var which:uint = myList.getSelectedItem().tab;
    ExternalInterface.call("switchTab", "which");
    I have checked this by switching temporarily to a test
    function:
    function testing(which) {
    alert(which);
    And the alert box works and shows the number (from an xml
    parameter "tab"). But the switchTab function above fails. All the
    tabs just collapse when called.
    Note: if I hard code the function, as in:
    function switchTab() {
    TabbedPanels1.showPanel(1);
    and call just "switchtab" from flash, it does switch to tab
    index 1.

    I think I may have gotten it:
    var which:uint = myList.getSelectedItem().tab;
    ExternalInterface.call("switchTab", which);
    No quotes on the which.

  • How to pass background event parameters to ABAP program in SM36

    Hi team,
         I want to pass background event parameters to ABAP program on job scheduling in SM36. For example, Background jobs will trigger, once background event triggered from Non-SAP system using SAPEVT command with parameters.
         I want to pass the event parameter values to the ABAP program . Can you please help me on this.
    Regards,
    Anand Krishnan

    Hi,
    Which ABAP program - the one that will be executed as a job step? If yes, I don't believe you can "pass" something to it because it will be started by "job starter" of SAP background processing run-time system. The ABAP program executed in background can, however, get the job run-time information using FM GET_JOB_RUNTIME_INFO, which also returns EVENTID and EVENTPARM. Is that the event parameters you were looking for?
    cheers
    Jānis

  • How to pass a value to javascript from flash using externalinterface

    hi,
    i'm currently trying to call a javascript function and pass values to it. but i'm not really familiar in using the addcallback since i only tested on calling a function from flash without passing anything to the function.
    Basically, i'm going to retrieve the values of a node from xml.
    and then i will assign those values to a variable in flash.
    now what i'm going to do next is pass this value to a javascript parameter..is it done using externalinterface?
    Could anyone give me an example.
    I just need to throw the value to the javascript function parameter and no return values to the actionscript.
    The event is that whenever an image is click, the corresponding value for each image is passed to the javascript function.
    here is my unfinished script.
    function imageClicked(e:Event):void {
        for each (var imageURL:XML in xml.images.link_to)
            ExternalInterface.call("TestButton",imageURL);
    thanks so much in advance.

    first, it seems that the 'TestButton' funciton in JS will be called several times when an image is clicked - for each loop in the 'for each' loop you wrote.
    second, in order to test the communication between AS and JS, try starting with something simple, like -
    ExternalInterface.call('alert', 'OK');
    if this doesn't work try tracing the ExteranlInterface.available property/
    if it does work, place an alert within the 'TestButton' in the JS code, to see its actually being called.
    and so forth...
    good luck,
    eRez

  • Calling WDA from BSP

    Hi all,
    Is it possible to call WDA from a BSP via a hyperlink and pass parameters that the WDA would need? How could I go about doing this?

    Hi Alexander,
       You can't pass the information(Context Data) from WDA to BSP directly so you just store the information in some variables or internal tables use the normal user paramenters like EXPORT & IMPORT or SET and GET parameters. Thgoruhg this way only you can communicate the data between these 2 technologies otherwise you need to save the data in some ztable and use the same table in both technoloes.
    you can also use Server Side Cookies.
    Perhaps take a look into this blog from Koen Labie:
    /people/koen.labie2/blog/2006/11/29/eating-cookies-with-webdynpro-and-bsp
    The blog shows how to pass the data from BSP to WD.
    Transfering data between WD and BSP via Server side Cookies can also be used for your requirement.
    For that you have to set the Data Cookie in the WD and then get the Cookie in the BSP.
    Please keep in mind that if you mix two different technologies you will have to deal with integration. WD and BSP will run in two different sessions at the server. Handling data exchange, login, logoff, data transfer at the server and client, etc can be challenging. You might end up with recreating enterprise portal-like software. So depending on the scope of the project, it might be more advisable to stay within the BSP environment or to reuse the SAP enterprise portal to integrate these two technologies at the client.
    Hope this will help you.
    Cheers,
    Darshna.

  • Publish html5 file from Flash Pro CC

    I subscribed Flash Pro CC and open a fla file produced by using Flash Pro CS5, It works to be tested with Control > Test Movie > Flash Professional and also successfully published to a swf and a html files. But it didn’t work to publish with CreateJS  toolkit to be html5 file. A warning says
    “Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (10)
    Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system”.
    What should I do to solve this problem?

    Thank you very much, Kglad. It seems to me that I should insert JS statemnts in the actionScript to complete the job. I don't have any experience in JS. My Fla has only "Click to certain frame of theTmeline" with the Actionscript such as
    OBJ_btn.addEventListener(MouseEvent.CLICK, clickto1);
      function clickto1(event:MouseEvent):void
              gotoAndStop("OBJ");
    Should I insert a JS in addition to this script? The JS should be inside of  " /* JS..........*/" ? Do I have to learn the whole JS before I can know how to publish HTML5 from Flash Pro CC? Please help me.

  • Runtime Loading of SWCs from Flash?

    Hi,
    In Flex, there is a RSL that can be used at runtime and there can be several flex applications using (loading) the same single RSL.
    I want to know if is there any way to do the samething with SWCs in Flash? I actually have different kind of designs (flash) and all those use exactly same code. I want to make a SWC of that code and then want to load this single SWF at runtime from different flash files.
    Please guide me in this regard? Is there any possibility of this approach? If not, then what would be the best way to do that?
    Thanks

    a quick chunk of the Flash CS5 code that launches the 3 tests:
    http://pastie.org/1843765
    you can see the 3 tests but only 1 live at any given attempt of course.
    the 1st test is the one i care about as it is a data driven wcf test against an amazon ec2 cloud instance with sql server. the wcf server and sql are on that box whereas the html that gets your there is elsewhere from a different host but the crossdomains are set up fine. click on wide receivers and Memory or DB. brings back data from sql server.
    The *native* Flex 4 version of it is sitting here that is not called up from a Flash swf loader and it works fine:
    http://www.teamvisionboston.com/site2/wcf_client_test.html
    when test 1 is loaded from a Flash website it generates this error:
    you can see myList at the far right that shows it receives the swf load attempt and the 2 events at systemManagerHandler. This pretty much blows up anything that follows.
    Test 2 is a new simple FB4 build with a label and button. that is it. it generates a different error but at least trying to see if there is some issue with just wcf or rpc from test 1 that would not occur here. It too shows the same 3 events in the debug listbox. Debug meaning a release versions using Listbox.addItem(). It runs fine at http://www.teamvisionboston.com/site2/asdf.html
    unless of course like i said you load it from Flash.
    Test 3 is the current live version up there at
    http://www.teamvisionboston.com/site2
    that loads a generic swf. It of course gets the first load debug message but because it is not from Flex not the last 2. And that works.
    so I am at a loss.

Maybe you are looking for

  • How can I search for partial matching words in various columns without needing to provide search text?

    I have a list of names in three columns - B2:B425, D2:406, & E2:30 where they were input by different people, so the names are worded differently. For example, I can have the name "Handler, Jones, & Wright" and someone else has the name listed as "Ha

  • How to load original fonts in a packaged ID file I was sent

    How to a load fonts into a packaged document another designer sent me; I don't want to use them in my document, but I'd like them in hers. This InDesign CC14. In other words, I have her fonts in her package, but don't know how to get them showing in

  • Ods value update

    Hi all, I have 2 ods'es ods1 and ods2. based on some value for a particular field in ods1 i need to update in ods2. basically i need to lookup in ods1 and update in ods2. any sample routine of how to solve this. thanks.

  • What exactly does itunes mean when it says "apply sort field"

    In iTunes when I select a track [or several tracks] and then Right click i see an option at the bottom of the resulting menu that offers to "apply sort field", when I select this option a sub menu comes up offering several fields for me to choose fro

  • Illustrator won't export to Photoshop

    When attempting to export an AI (CS4) file to Photoshop, I get "not enough memory" error. The AI file is only 1.3mb. I have over 100gb of freespace on my mac. I have no other programs open. I have continually restarted Illustrator to clear cache memo