Passing values to an embedde SWF in flex 2

Hello,
I am embedded an swf (which takes flash variables) in flex
2,how can i pass values to the
embedded swf through flash variables.
regards
kaushik

Hi Rajendra,
           what u can pass to a function module is the parameter which are in import and tables  of RFC .so u have to declare a variable as a type of your internal table which may be type of   structure or table. then in your RFC u have to copy that into a variable of function module  and go for ur  logic ...

Similar Messages

  • Embedd SWF into Flex

    Hi,
    I am trying to load a coolaris Gallery into a Flex Application (it's a SWF).
    Now I have to fit its dimensions into my container.
    My first approach was to simply set the SWFLoaders dimensions, but that only scales the content (it is being zoomed)
    I want that the spaces are getting smaller and the appereance is not zoomed (is kept), like its done if you embedd it into html.
    The properties maintainAspectRation or scaleContent did not work either how expected.
    Any idea for that ?
    Second Question is how could I make the fullscreen modus work from the embeded swf ?
    When I now enter Full-screen Modus, my main application is going top full screen and not the embedded swf.
    Idea ?
    Cheers
    Marc

    I would not expect that to work.  The Flash 8 app would set the API level
    for the flex 4 SWF and flex 4 needs Flash 10.

  • Passing values to swc in flex

    Hi,
    I got flash .swc file with a symbol converted to flex component. I imported this .swc in flex library path, and I put it on stage like a class:
    var mySwc:swcFile = new swcFile;
    Inside this .swc I got some Actionscript code. I would like to pass a value to the Actionscript inside the swc to change one of its variables dynamically.
    mySwc.myVariable = x;
    But problem is that AS in .swf is processed when constructor is called and before I set myVariable=x. So myVariable is used within this .swf AS with a default value istead of 'x' value.
    Is there any way to pass this argument to the .swc AS before executing it?

    Hi Divya,
    Based on the current description, I understand that there is no issue if you pass two values from main report to subreport, while the issue occurs when passing one value to subreport.
    To narrow down the issue, I want to confirm whether the subreport can run if there is only [0] or [1] in the subreport. If so, it indicates the query statements exist error in the subreport. If it’s not the case, this shows the issue occurs during passing
    values from main report to subreport. To make further analysis, please post the details of query statements of the subreport to the forum.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Cannot pass Value Using getURL() in Flex 2.0

    I have pasted a piece of code to pass value using query
    string,I am sure there wouldn't be any problem with code.But I get
    error calling getURL() method.
    The error I am getting on compilation is,
    Call to a possibly undefined method getURL.
    4: {
    5: getURL("QueryStringSample.mxml");
    6: }
    I also tried giving entire url as "
    http://localhost:8080/Test/QueryStringSample.mxml",
    since I am running the application using local Tomcat server.both
    the mxml apps,That is, calling.mxml(PassParam.mxml) and
    called.mxml(QueryStringSample.mxml) are in same package/Folder
    (Test).
    what is the cause for this probblem .
    my code..
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:Script>
    function passVal():void
    getURL("QueryStringSample.mxml");
    </mx:Script>
    <mx:VBox>
    <mx:HBox>
    <mx:Label text="Name: " />
    <mx:TextInput id="nameInput" />
    </mx:HBox>
    <mx:HBox>
    <mx:Label text="Hometown: " />
    <mx:TextInput id="homeTownInput" />
    </mx:HBox>
    <mx:Button label="pass param" click="passVal();" />
    </mx:VBox>
    </mx:Application>
    Thanks in Advance.

    Now that the Flex 2.0 forums are all set up, it is time to
    start using them for 2.0 questions. So in the future, don't post
    2.0 questions here.
    In the meantime, getURL has been changed to navigateToURL().
    See the docs for details.
    Also, I think you are mixing Flex 1.5 and 2.0. 2.0 does not
    use a server, and you do not call mxml file directly. Instead you
    compile the swf with FlexBuilder or the command line compiler, and
    call the html wrapper.
    Tracy

  • Is there any way to pass value from one SWF to another ?

    I am doing project using flash, now I cant pass a value from one SWF to another, is there any way to pass value from one SWF to another.
    thanks

    Hi,
    Just to confirm here do you simply want to communicate between two SWFs without involving Flash Media Server. If this is the case one good way of doing it is to use a local connection. It can be used for direct communication between two separate instances of the flash player. However if you want to involve multiple clients sharing a common variable then you may have to use Shared Object for this. Please let me know what is the actual use case, is it multiple clients sharing a common variable or different player instances communicating between themselves.
    Thanks,
    Abhishek

  • Passing parameters to an embedded swf

    Hi all,
    I'm trying to embed a SWF animation that contains parameters (flashvars). I successfully used this animation in HTML and passed values to these parameters and now I want to embed it in a Flex project.
    I managed to load and show the animation in several ways but I can't find how to pass it values for the parameters.
    Anyone knows how to do this?
    Thanks!

    I don’t know of any way to do that without modifying the SWF to accept some handshake from the loading application.  An embedded SWF is being loaded via loadBytes and there is no parameter/flashvar passing mechanism.

  • Passing Values Child to Child...Need Help

    I am a bit of a noob, and I'm having a problem.  I had posted about this before but I think I was explaining what I need to do in way to much of a complicated manner so I'm going to try and simplify this a bit.
    I have 5 swf's.
    - main.swf (parent)
    - child01.swf
    - child02.swf
    - child03.swf
    - child04.swf
    When main.swf runs, it loads child03.swf on the bottom (eventhough levels are not relevent in AS3) child01.swf and child02.swf load on top of child03.swf.
    main.swf has an arrow button, to proceed to the next screen.  When the arrow button is pressed it unloads child01.swf, child02.swf and child03.swf, it then loads child04.swf.
    Here is my problem... child03.swf has dynamic text boxes, named tf0 - tf14, which get passed values by functions in each of those files.  I need to pass these same values to dynamic text boxes on child04.swf.
    The thing that concerns me is that child01.swf and child02.swf get unloaded when the arrow button is pressed.  I would assume that the values stored in these text boxes get unloaded as well.  If this is the case I need to store these values before the unload happens, which I am not sure how to do.
    Then once I store these values they need to pass to the dynamic text boxes, named tf15 - tf 29, in child04.swf.  I have been researching, and researching and cant find a solution.  Some talk about using LocalConnection.  kglad tried pointing me in the right direction using MovieClip, but I can't seem to get it working.
    I am including the script for the relevent files.
    main.swf
    stop();
    var Allergy_Tag:URLRequest = new URLRequest("child01.swf");
    var Info_Tag:URLRequest = new URLRequest("child02.swf");
    var Sec_A_B:URLRequest = new URLRequest("child03.swf");
    var Sec_C_D:URLRequest = new URLRequest("child04.swf");
    var AT_Loader:Loader = new Loader();
    var IT_Loader:Loader = new Loader();
    var AB_Loader:Loader = new Loader();
    var CD_Loader:Loader = new Loader();
    AT_Loader.x = 0;
    AT_Loader.y = 85;
    IT_Loader.x = 483;
    IT_Loader.y = 85;
    AB_Loader.x = 0;
    AB_Loader.y = 0;
    CD_Loader.x = 0;
    CD_Loader.y = 0;
    AT_Loader.load(Allergy_Tag);
    IT_Loader.load(Info_Tag);
    AB_Loader.load(Sec_A_B);
    CD_Loader.load(Sec_C_D);
    addChild(AT_Loader);
    addChild(IT_Loader);
    addChild(AB_Loader);
    //arrow btn actions
    arrowBtnMain.buttonMode = true;
    arrowBtnMain.addEventListener(MouseEvent.ROLL_OVER , arrowBtnMainRollOver);
    arrowBtnMain.addEventListener(MouseEvent.CLICK, arrowBtnMainClick);
    function arrowBtnMainRollOver(event:MouseEvent):void{
    arrowBtnMain.gotoAndPlay(2);
    function arrowBtnMainClick(event:MouseEvent):void{
    gotoAndStop(2);
        AT_Loader.unload();
        IT_Loader.unload();
        AB_Loader.unload();
        addChild(CD_Loader);
    child03.swf
    stop();
    //changes text size on checkboxes
    import fl.managers.StyleManager;
    var textf:TextFormat = new TextFormat();
    textf.size = 9;
    StyleManager.setComponentStyle(CheckBox, "textFormat", textf);
    StyleManager.setComponentStyle(CheckBox, "textPadding", 2);
    //handles tag labels
    var currentTF:uint = 0;
    function clickCB(evt:MouseEvent): void {
        this["tf"+currentTF].text = CheckBox(evt.target).label;
      currentTF += 1;
    for(var i:uint=0; i<30; i++){
    this["cBox"+i].addEventListener(MouseEvent.CLICK, clickCB);
    //handles text boxes
    f_name.addEventListener(Event.CHANGE,copyText);
    l_name.addEventListener(Event.CHANGE,copyText);
    emer_01.addEventListener(Event.CHANGE,copyText);
    emer_02.addEventListener(Event.CHANGE,copyText);
    emer_03.addEventListener(Event.CHANGE,copyText);
    function copyText(e:Event):void
        tf10.text = f_name.text;
        tf11.text = l_name.text;
        tf12.text = emer_01.text;
        tf13.text = emer_02.text;
        tf14.text = emer_03.text;
    child04.swf
    stop();
    import fl.managers.StyleManager;
    var textf:TextFormat = new TextFormat();
    textf.size = 12;
    StyleManager.setComponentStyle(CheckBox, "textFormat", textf);
    StyleManager.setComponentStyle(CheckBox, "textPadding", 2);
    //handles allergy beads
    var currentTF:uint = 30;
    function clickCB(evt:MouseEvent): void {
         this["tf"+currentTF].text = CheckBox(evt.target).label;
      currentTF += 1;
    for(var i:uint=30; i<60; i++){
    this["cBox"+i].addEventListener(MouseEvent.CLICK, clickCB);
    Here is an example of some of the script I have tried to impliment on child04.swf to call the values of the dynamic text boxes on child03.swf
    tf15.addEventListener(Event.CHANGE,importText);
    function importText(e:Event):void
        tf15.text = MovieClip(AT_Loader.content).tf0;

    Thx kglad,
    I'm still working with it.  However I am getting a strange output message.  I was working with the script to get those to pass, and started getting it.  I then removed the added script and I'm still getting it.
    TypeError: Error #1034: Type Coercion failed: cannot convert "
    " to flash.display.MovieClip.
    at child03_fla::MainTimeline/frame1()
    Here is the script I currently have on the main.swf and still recieving this message... Weird because at this point I'm not trying to convert anything to a MovieClip
    stop();
    var Allergy_Tag:URLRequest = new URLRequest("allergy_tags.swf");
    var Info_Tag:URLRequest = new URLRequest("info_tag.swf");
    var Sec_A_B:URLRequest = new URLRequest("checks_and_texts.swf");
    var Sec_C_D:URLRequest = new URLRequest("sec_c_d.swf");
    var AT_Loader:Loader = new Loader();
    var IT_Loader:Loader = new Loader();
    var AB_Loader:Loader = new Loader();
    var CD_Loader:Loader = new Loader();
    AT_Loader.x = 0;
    AT_Loader.y = 85;
    IT_Loader.x = 483;
    IT_Loader.y = 85;
    AB_Loader.x = 0;
    AB_Loader.y = 0;
    CD_Loader.x = 0;
    CD_Loader.y = 0;
    AT_Loader.load(Allergy_Tag);
    IT_Loader.load(Info_Tag);
    AB_Loader.load(Sec_A_B);
    CD_Loader.load(Sec_C_D);
    addChild(AT_Loader);
    addChild(IT_Loader);
    addChild(AB_Loader);
    //arrow btn actions
    arrowBtnMain.buttonMode = true;
    arrowBtnMain.addEventListener(MouseEvent.ROLL_OVER , arrowBtnMainRollOver);
    arrowBtnMain.addEventListener(MouseEvent.CLICK, arrowBtnMainClick);
    function arrowBtnMainRollOver(event:MouseEvent):void{
    arrowBtnMain.gotoAndPlay(2);
    function arrowBtnMainClick(event:MouseEvent):void{
    AT_Loader.unload();
    IT_Loader.unload();
    AB_Loader.unload(); 
    addChild(CD_Loader);
    removeChild(arrowBtnMain);

  • Error in compiling swf for Flex 2 application

    Hello experts!
    After applying SPS 7 for EHP1 7.0 I am receiving the following error when deploying my model.
    Error in compiling swf for Flex 2 application. The log is appended below.
    I realized the error only occurs when I use value help.
    Can anybody advise please.
    Thanks,
    Ibrahim
    Error in compiling Flex application: /usr/sap/QJB/JC01/j2ee/cluster/server0/GUIMachine_Business_Packages/[xxx]MyModels.QM.Tab_test/FLEX_COMPILATION_FOLDER/AAD3KX_P.mxml(17): col: 145 Error: Element type "vc:LabeledDropDown" must be followed by either attribute specifications, ">" or "/>".
                      <vc:LabeledDropDown comboHeight="16" width="200" labelField="text" selectedIndex="{VC.getEnumIndex(AXCWV1, AAA3L21.Current.SELOP_TYPE || "BT", 'value')}" valueProperty="SELOP_TYPE" valueObject="{(AAA3L21.Current)}" id="ACA3L21_DropDown1" dataProvider="" comboComponent_y="40" prompt="" label="{(Languser1.BhlfcdeBHckjkGcInkHE)}" comboY="40" visible="{DE.NOT(false)}" creationComplete="AXCWV1.addEventListener(InfosetEvent.DATA_REFILLED, selectDefaultACA3L21_DropDown1)" component_x="88" x="8"/>
    Edited by: Ibrahim Ibrahim on Apr 15, 2011 1:19 PM

    We have solved this by applying note: 1510453 - Certain default values in list-based controls causes error

  • Background Job pass value

    Hi, I am calling a Background job in my program. I am using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE FM to start a job. My need is to pass a value to the job program(job program doesnt have any selection screen values). Is their any way without creating variants each time to pass value to it.
    Please advice.....

    Hello,
    You can first use  JOB_OPEN which returns job number. Then build ranges or parameters to use SUBMIT to call the program.
    Eg: SUBMIT RM06BB20 AND RETURN
          WITH S_EKGRP IN R_EKGRP
          WITH S_EKORG IN R_EKORG
          WITH S_FLIEF IN R_FLIEF
          WITH S_KONNR IN R_KONNR
          USER sy-uname VIA JOB w_jobname
          NUMBER w_job_number.
    Now use JOB_CLOSE.
    Thanks,
    Venu

  • Passing values between adf application and web services

    hi i have a situation where i have jsff page which got username,surname,lastname,email i what to pass this value to my webservices how can i do that. this is how i create my webservicesright click viewControler->web services->web services Data Control
    i what to pass the value to webservices workflow i already have a screen in my workflow now i what to pass the adf application values to that webservices am in jdeveloper 11.1.1.6.0
    i try this
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.start_user_details}"
                                        type="action"/>
              </af:inputText>

    i make my webservices to pass values
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.approveUser_username}"
                                        type="action"/>
              </af:inputText>
    but am geting error reference approveUser_username not found

  • Passing values from a FORM to another FORM

    Hi,
    I have to pass values from FORM "A" to FORM "B". What is the best way to do this?\
    Can I use a GLOBAL variable?
    Thanks,
    Marc.

    I think he meant the global namespace.
    You set a :global_your_name_here to a value and that value is available in your entire application. See the help file section on the global namespace for more information.
    Forms parameters are parameters that you form picks up from the outside when it starts. The calling entity must supply them in the URL or they will be set to null. You set them up in the object navigator in the Parameters node.

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • Passing values from javascript in pop up window to parent jsp

    Hi
    I am trying to pass values from a pop up window to the main window that popped this child window , with the idea to have the parent window refresh itself with value from pop up window.But the values are not going through.I do a request on the hidden variable but when the parent
    jsp refreshes , the variable is still null...
    The following is the code i have .
    Parent jsp:a.jsp
    <form name='summary'>
    <input type=hidden name=customerid value="">
    <input type="button" class="textButton" name="action" value="customerlist" onClick="javascript:openWin('b.jsp','800','350')">
    <script>
    function openWin(loc, w, h) {
    var newWin = window.openloc,"HTML",'dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h);
    newWin.window.focus();
    </SCRIPT>
    <%
    String optionVal = request.getParameter("customerid");%>
    var user = "<%= optionVal%>";
    </form>
    child jsp- b.jsp (pop up window)
    <script>
    function closer(){
    var val = document.formname.id.selected.value;
    window.opener.document.summary.customerid.value = val;
    window.opener.location.reload();
    </script>
    <form name = formname>
    <input type="text" name="id" value = ''>
    <input type="button" class="textButton" value="select"
    onClick="closer();window.close();">
    </form>
    Any ideas on what i am missing
    Thanks
    Arn

    use window.opener.document.forms[0].filedname.value = 'value u need to set'

  • Passing Value from Crystal Report (special function) to Business View parameter

    Friends,
                 Í have a scenario where i need to pass value from Crystal Report to a Business view's parameter.
    Eg : CurrentCEUsername (func in crystal report)-- gives login user  which i should pass to parameter in a Business view (used in the same report).
    Will be able to explain more if required.
    Thanks in Advance,
    Bharath

    I guess you got the picture wrong.  User_id is not a report_level parameter .
    In Data Foundation, below query is used..
    select Acc_Number, Account_Group,User_id  from Accounts where user_id={?User_id}
    where in {?User_id}  is the BV parameter...
    The Filter was a solution. But it takes long time to Query all the data from DB and then filter at BV level.
    How do i pass the CurrentCEUsername to {?User_id}
    Value should ve CurrentCEusername always. so that query will be
    select Acc_Number, Account_Group,User_id  from Accounts where user_id=CurrentCEusername
    It will restrict the data pulled from DB to BV .. right?

  • How to avoid popup & pass value dynamically in 'F4IF_FIELD_VALUE_REQUEST' ?

    Hello Experts,
    I am trying to test usage of f4 help function module.
    We want to dynamically pass values from remote machines into the given input parameters of a Given Search help and receive the output into a table (no dialogs required .. so no pop ups )
    I wrote a test program to just test if we can really do that at runtime ?
    This program pops up the window of search help First I want to surpress that window and Second I have no clue
    ( How to pass the input parameters as value eg. 20 to a given field as we pass manually )
    Can some one suggest something here ?
    REPORT  ZTEST_F4_TEST.
    data lt_return TYPE TABLE OF DDSHRETVAL.
    data ls_return TYPE DDSHRETVAL.
    data lt_return_ddic TYPE TABLE OF zDDSHRETVAL.
    data ls_return_ddic TYPE zDDSHRETVAL.
    PARAMETERS ptable type tabname.
    PARAMETERS pfield type fieldname.
    PARAMETERS pshelp type SHLPNAMe.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname                   = ptable
        fieldname                 = pfield
        SEARCHHELP                = pshelp
    *   SHLPPARAM                 = ' '
    *   DYNPPROG                  = ' '
    *   DYNPNR                    = ' '
    *   DYNPROFIELD               = ' '
    *   STEPL                     = 0
    *    VALUE                     = ' '
        MULTIPLE_CHOICE           = 'X'
        DISPLAY                   = 'F'
        SUPPRESS_RECORDLIST       = 'X'
    *   CALLBACK_PROGRAM          = ' '
    *   CALLBACK_FORM             = ' '
    *   SELECTION_SCREEN          = ' '
    * IMPORTING
    *   USER_RESET                =
    TABLES
       RETURN_TAB                = lt_return
    * EXCEPTIONS
    *   FIELD_NOT_FOUND           = 1
    *   NO_HELP_FOR_FIELD         = 2
    *   INCONSISTENT_HELP         = 3
    *   NO_VALUES_FOUND           = 4
    *   OTHERS                    = 5
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data lv_count type i.
    delete lt_return where fieldname <> pfield.
    sort lt_return by fieldval.
    delete ADJACENT DUPLICATES FROM lt_return COMPARING fieldval.

    Hello Sim,
    We will be exposing the Input parameters and Output lists of the SAP Search helps (simple search helps only) as input output of a Webservice.
    So I need to understand how can we exploit the SAP Search Helps ?
    What function modules can take these inputs as structures  and can provide the output in form of a table ?
    Regards,
    Ravi

Maybe you are looking for