Passing a parameter between flash movies

I have a flash movie for drop down menus that is called by all flash/movie banner sections of my site. The banner movies use FlashVars to set the heading and an image. The trouble is that the flash menus also were set to use a flashvar to dictate the context of the menus and leave one top level menu highlighted to show the content to the user.
I have not been able to get both of them to use the Flashvars functionality. The html page calls the banner movie directly and it can therefore access the Flashvars. The menu swf however - which is not called from the html page but instead is called from within the banner movie - cannot access the flashvars variables. That leaves me with two choices:
1. Either use a different method for passing the context variable to the menu movie.
2. HTML code calls the banner movie. I can continue using flashvars and get the context variable by reading it from within the banner movie - and then somehow pass the value down to the menu movie if that is possible.
Far greater AS coders than me frequent this site and I'm hoping one of you can suggest how to get this done...
Thanks yet again,
Sam

right, in the banner swf you've got something like:
// use this to set a default value just in case
var contextValue= 0;
// now set it to the flashVar
contextValue= root.loaderInfo.parameters.contextFlashvar;
then pass the var you create into the menuswf -- see the red bit below:
// create loader and ask it to load something
var myLoader:Loader = new Loader();
myLoader.load(new URLRequest("swfFolder/mySwf.swf"));
//add listeners to the loader
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleComplete);
myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, handleProgress);
myLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleError);
function handleComplete(event:Event){
     // give the loaded swf a reference -- name of the loaded file means nothing to flash file
     var westview_menus = myLoader.content as MovieClip;
   // now use that reference to set vars
     westview_menus.context = contextValue;
     addChild(westview_menus);
function handleProgress(event:ProgressEvent):void{
    //progress handler stuff
function handleError(event:IOErrorEvent):void{
    // error handler

Similar Messages

  • Passing data parameter between SWF files

    Hello Xcelsius Gurus,
    Is it possible to pass data parameter between SWF files?
    If possible, how to achieve it?
    Thank you.
    Justine

    Hi,
    Thank you for the reference.  Little bit confused, please let me clarify. 
    I do not understand how the receiver SWF receieved the data parameter and process.
    For example, I have a parent dashboard and a child dashboard.  In the parent dashboard, I have set up combo box to filter the data.  And I want the data that I have selected in combo box to the child dashboard.
    To do this, first I need to setup the flash variable at the parent dashboard to fetch the data I selected.
    After this, how to link this data to the child dashboard?
    Furthermore, after the child dashboard received the data parameter, I need this data to insert into the spreadsheet so I can filter the data.  Is this possible?
    Thanks.
    Edited by: Justine Liu on Jan 19, 2010 3:11 PM

  • [Web Dynpro ABAP] - Passing a parameter between 2 windows

    Hi!
    I'm trying to do a web dynpro application that displays in a popup the result of a research.
    Thus, I have:
              - main_view embedded to main_window
              - popup_view embedded to popup_window
    In main_view, I have an input field where the user can enter a string. After clicking on the "search" button, the popup has to appear showing all matches corresponding to the user research.
    In need to pass the parameter of the input field from main_view to popup_view but don't know how to do it.
    Thanks for any help you can provide.
    C.
    Edited by: Cristina CHEN MA on May 18, 2009 1:24 PM

    Thank you both for your time.
    TO:  Radhika Vadher   
    I tried your solution but I get an error message when using
    lo_el_tresult->get_static_attributes_table
    => method unknown, protected or private
    I used the wizard to get the node's attributes:
    DATA : lo_nd_tresult TYPE REF TO if_wd_context_node,
               lo_el_tresult TYPE REF TO if_wd_context_element,
               ls_tresult    TYPE wd_this->element_tresult.
    * navigate from <CONTEXT> to <TRESULT> via lead selection
      lo_nd_tresult = wd_context->get_child_node( name =
    wd_this->wdctx_tresult ).
    * get element via lead selection
      lo_el_tresult = lo_nd_tresult->get_element(  ).
    * get all declared attributes
      lo_el_tresult->get_static_attributes(
        IMPORTING
          static_attributes = ls_tresult ).
    But I still have an error message:
    ls_tresult is not an internal table "OCCURS n" specification is missing
    Thanks again for any help you can provide =)
    C.

  • Pass parameter between programs

    Hi,
    I need to pass one parameter between 3 programs :
    That is the actual flow of my parameter.
    SAPF110V -> RFFOBE_I -> which include ZRFFORI99B)
    get param   <- RFFOBE_I <- set param
    with statments
    SET PARAMETER ID 'ZDBL' FIELD p_doublon.
    GET parameter ID 'ZDBL' FIELD p_doublons.
    But unfortunatly it doesn't work :/  (value of my param = 0)
    I can run the include program in debug because it is run in background...
    I can't use a Ztable
    Any idea to pass value between this flow ?
    Thanks,

    Hello,
    The value which you want to pass between the programs can be stored in the SAP memory space by using the IMPORT and EXPORT to MEMORY ID statement.
    EXPORT <internal table/variable> to MEMORY-ID 'MY MEMORY'.
    Above statement will keep the value in SAP memory by creating a memory named as 'MY MEMORY'.
    IMPORT <internal table/variable> from MEMORY-ID 'MY MEMORY'.
    Above statement will get the value from SAP memory space.
    But while using the above statement please consider that all the three programs should be run in the same session because the Memory that you are using will automatically be cleaned up by the Garbage collector as the session ends.
    Hope it helps.
    Thanks,
    Jayant.
    <<text removed - don't ask for points>>
    Edited by: Matt on Nov 19, 2008 7:48 PM

  • Passing a parameter to the swf file

    Is it possible to pass a parameter to flash like:
    myflash.swf?action=show
    Or do I have to use javascript?

    FlashVars:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16417

  • Passing multiple session values from cold fusion into a flash movie

    Hello all,
    I know that to pass multiple variables into a flash movie
    you could use the embed tag like this(with the & between each
    variable):
    <embed
    flashvars="variable1=value1&variable2=value2"
    ></embed>
    Now to pass a single session variable from coldfusion in i
    did the following; which worked:
    <embed
    src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>
    Note that i had to use the cfoutput tags to get the value
    stored in the variables. Now; i tried to do the same thing for two
    session variables and the second one does not get read in. Here was
    my code:
    <embed src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID=<cfoutput>#session .testTypeID#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>
    Can someone please tell me what I am doing wrong? Thank you
    very much in advance.

    Hold on there was a little error: My final code that did not
    work was the following:
    <embed src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID
    =<cfoutput>#session.testTypeID#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>

  • Passing parameter between JSF pages

    I need to pass a parameter value between 2 different JSF pages.
    The reason I need to do this is to be able to know which JavaBean (A or B) called the other JavaBean (C).
    Can I somehow set a parameter within the JSF page and retrieve it in the second JSF page for my backing bean to read?
    Thanks in advance.

    A co-worker of mine helped me fix my code to make it work!
    Here is the final solution in case someone else needs to do the same thing in the future:
    In the main JSF page that calls the second JSF page, the following code was added at the beginning of the page in the JavaScript section:
    <% session.setAttribute"className", "CcmReassignEmployeeBean");
    And in the Backing Bean of the second JSF page, the following code was used in the action listener used to transfer the data:
    HttpSession session = (HttpSession) context.getExternalContext().getSession(true);
    String className=(String) session.getAttribute("className");
    It works great! Thanks!

  • Passing Parameter between Methods

    I have some problems because i don't really know how to pass parameter between methods in a java class.
    How can i do that? below is the code that i did.
    I want to pass in the parameter from a method called dbTest where this method will run StringTokenizer to capture the input from a text file then it will run storeData method whereby later it will then store into the database.
    How can i pass data between this two methods whereby i want to read from text file then take the value to be passed into the database to be stored?
    Thanks alot
    package com;
    import java.io.*;
    import java.util.*;
    import com.db4o.ObjectContainer;
    import com.db4o.Db4o;
    import com.db4o.ObjectSet;
      class TokenTest {
           private final static String filename = "C:\\TokenTest.yap";
           public String fname;
         public static void main (String[] args) {
              new File(filename).delete();
              ObjectContainer db=Db4o.openFile(filename);
         try {
            String fname;
            String lname;
            String city;
            String state;
             dbStore();
            storeData();
         finally {
              db.close();
         public String dbTest() {
            DataInputStream dis = null;
            String dbRecord = null;
            try {
               File f = new File("c:\\abc.txt");
               FileReader fis = new FileReader(f);
               BufferedReader bis = new BufferedReader(fis);
               // read the first record of the database
             while ( (dbRecord = bis.readLine()) != null) {
                  StringTokenizer st = new StringTokenizer(dbRecord, "|");
                  String fname = st.nextToken();
                  String lname = st.nextToken();
                  String city  = st.nextToken();
                  String state = st.nextToken();
                  System.out.println("First Name:  " + fname);
                  System.out.println("Last Name:   " + lname);
                  System.out.println("City:        " + city);
                  System.out.println("State:       " + state + "\n");
            } catch (IOException e) {
               // catch io errors from FileInputStream or readLine()
               System.out.println("Uh oh, got an IOException error: " + e.getMessage());
            } finally {
               // if the file opened okay, make sure we close it
               if (dis != null) {
                  try {
                     dis.close();
                  } catch (IOException ioe) {
                     System.out.println("IOException error trying to close the file: " +
                                        ioe.getMessage());
               } // end if
            } // end finally
            return fname;
         } // end dbTest
         public void storeData ()
              new File(filename).delete();
              ObjectContainer db = Db4o.openFile(filename);
              //Add data to the database
              TokenTest tk = new TokenTest();
              String fNme = tk.dbTest();
              db.set(tk);
        //     try {
                  //open database file - database represented by ObjectContainer
        //          File filename = new File("c:\\abc.yap");
        //          ObjectContainer object = new ObjectContainer();
        //          while ((dbRecord = bis.readLine() !=null))
        //          db.set(fname);
        //          db.set(lname);
        //          db.set(city);
            //          db.set(state);
    } // end class
         Message was edited by:
    erickh

    In a nutshell, you don't "pass" parameters. You simply call methods with whatever parameters they take. So, methods can call methods, which can call other methods, using the parameters in question. Hope that makes sense.

  • Passing parameter between two applets

    hi all,
    i want to pass parameter between two applets. in other words, when user clicks the button; close the running applet, pass parameter to another applet and run another applet.
    now i think that could be, ( creating a parameter table in database, when user click on button write parameters to table and stop active applet and run other applet. when other applet runs in init methot it takes parameter from table). but it will be very indirect way.
    if you have an idea or information, plesae tell me.
    thanks for your interest

    Hi ,
    Plz pay a visit to this wonderful website,
    http://www.rgagnon.com/javadetails/java-0022.html / http://www.rgagnon.com/howto.html
    Best Wishes,
    Gaurav
    PS : Thanks to Real Gagnon. This is all I can do at this stage, but wanted to say you are doing a wonderful job.

  • Pass parameter between uix page

    Hi, I am new to JDeveloper UIX technologies. I have created two uix page: page1 is built on a view. Page2 is on a table. How do I pass a parameter (customer_id) from page1 to page2?
    Any help is appreciated. Thanks ahead!

    You can get the sample code for your answer here:
    http://otn.oracle.com/sample_code/products/jdev/index.html
    Download sample code with title:
    Passing values between pages
    Or alternatively your can keep the customer_id in the session during ActionForward then passing back the value into a textbox in page 2.
    Code in ActionForward:
    request.getSession().setAttribute("customer_id", value);
    Code in UIX Page 2:
    <textInput text="${sessionScope.customer_id}" name="code2"/>
    Thanks.
    Alex Cheong

  • Using Go URL to Pass parameter between dashboard

    Hi All,
    I am trying to pass parameter using GO URL functionality from one dashboard analysis field to another dashboard.
    The navigation is working properly but the parameter is not getting passed, I am not sure why.
    The Called dashboard has a analysis which has IS PROMPTED filter attached to it for the passing filter. I tried various ways to make this work
    Option 1
    In the calling analysis, I am using a Narrative View and inside I have used the below code.
    <a href="saw.dll?Go&Path=/shared/MI/_portal/Client-MI&Page=Supplier%20Detail%20Tab&Action=Navigate&P0=1&P1=eq&P2=Dim%20Supplier.Supplier%20Name%20Current&P3=1+%22STR%20LTD%22"> @2[br/]
    This one navigate but filtering is not happening
    Option 2 (My first preference will be this option)
    Also I tried to provide custom Data Format under the column Properties
    [html]"<font class="nav" onclick=\"JavaScript:GoNav(event, '/shared/MI/_portal/Client-MI/Supplier Detail Tab','Dim Supplier','Supplier Name Current','"@"');\">"@"</font>
    This ends up giving error
    Type mismatch of catalog object /shared/MI/_portal/Client-MI/Supplier Detail Tab -- expected , got .
      Error Details
    Error Codes: UVWDR6UA 
    Also, both the tabs (Called and Calling are under the same Dashboard)
    Can anyone please let me know, were I am making mistake. I tried refereeing Oracle documentation but still no result.
    Thanks

    Looks like you've got it almost right - just an extra unneeded "
    <a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
    which should render on the page as something like
    My Ant Task
    When you click the link, it should pass that parameter, and you can get it via request.getParameter().

  • Jsf passing parameter between jsp's

    Hi
    I have my main.jsp and another screen which i call object.jsp
    the object.jsp can present an object in multiple ways : add, edit, view
    i have 3 buttons in my main.jsp add, edit, view. I want to pass a parameter from main.jsp to object.jsp such that object.jsp will know in what state its being loaded... how do i do this?
    Thanks..

    session?
    as the article says :
    To avoid these problems, developers might use session-scoped variables instead. This fixes both of those problems, but adds new ones:
    A single user cannot have two windows open simultaneously; session-scoped variables are global to the user. So, for instance, a user could not work with two different search results simultaneously.
    Back button support is highly limited, since navigating back can't magically restore the session to its old state.

  • Passing parameter between bounded TaskFlows

    Hi guys,
    I'm using JDEV 11.1.1.1.0
    I have two regions inside the same page jspx.
    I need to pass the parameter "lequelEstActif" from one region to another.
    I use the tag <af:setPropertyListener> and an inputParameter pageFlowScope.lequelEstActif inside the taskflow of one region as below :
    When you click on navigation command located inside a taskflow (jsff page), i want the parameter lequelEstActif of the other taskflow be refreshed.
    <af:commandNavigationItem text="#{viewcontrollerBundle.HOME}" actionListener="#{Rapports.onClickAccueil}"
    selected="#{pageFlowScope.lequelEstActif == '0'}" id="cni1"
    icon="/gfx/icon_house.PNG">
    *<af:setPropertyListener from="0" to="#{pageFlowScope.lequelEstActif}" type="action"/>* <af:clientListener method="cacherQuicklinks" type="action"/>
    </af:commandNavigationItem>
    But it doesn't work. It seems it can't reach the parameter located in another taskflow, i don't understand why.
    Any ideas why???

    In order for the taskflow to be re-executed based on the new parameter set, you would need to set refresh="ifNeeded" for the region in the pageDef.
    Can you check this?
    For more details, check section 17.1.7 in ADF Developer's guide:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/taskflows_regions.htm#CHDHICHE
    How task flow refresh works:
    If you drop a task flow that takes some parameters as a region in a jsff page, the task flow binding will be added in the pagedef file. If you set refresh='ifNeeded' for the task flow binding, the task flow will be re-executed each time when the value for one of the passed parameters got changed. To be clear, here re-execution means the task-flow will re-execute from it's default activity in the task flow diagram.
    Thanks,
    Navaneeth

  • Passing parameter between different iViews

    Hi experts,
                   How can i pass a parameter from an iView created from .par to a webdynpro iView ?
    Regards,
    Shabeer.

    OK, so it should be like that:
    Web Dynpro:
         WDPortalNavigation.navigateAbsolute(
                    "ROLES://portal_content/com.test.Development/com.OmriDevelopment/ReadCookies?name=Omri",
                    WDPortalNavigationMode.SHOW_INPLACE,
                    null,
                    "MyWindowName",
                    WDPortalNavigationHistoryMode.NO_HISTORY,
                    "MyTargetTitle",
                    "MyContextURL",
                    null);
    PAR:
                IPortalComponentRequest req = (IPortalComponentRequest) this.getRequest();
         IPortalComponentResponse res = (IPortalComponentResponse) this.getResponse();
         String name = req.getParameter("name");
         res.write(name + "<BR>");
    Result is "Omri"
    Regards,
    Omri

  • Passing parameter between JSP

    Hi All,
    I want to pass a parameter (let us say data from a text box) from one JSP to another on an event (when 'Submit' button is clicked.). Can you please let me know how to go about this? Any sample codes or any other kind of help will be greatly appriciated.
    Thanks in advance.

    hi,
    It's quite easy, just go thru the following code.
    one.jsp
    <form action="two.jsp" method="post">
      <input type="text" name="name"/>
      <input type="submit" value="Press"/>
    </form>now receive the value in two.jsp and print the same.
    two.jsp
    <%
        String name=request.getParameter("name");
        out.print("Your Name -->"+name);
    %>Bala

Maybe you are looking for