Passing parameters to Flash from HTML or JavaScript

Hi. How do I pass paramaters to a Flash movie without using
the "../name.swf?param=value" syntax. I have a Flash menu that
jumps to a certain keyframe depending on the value specified inline
with the .swf address, which corresponds to the page being viewed.
The only problem is that, when another page is loaded, the menu
flickers and reloads because it's not cached: the browser thinks
it's another file when in fact it's just a different address
telling it where to go in the movie to update the menu for the
current page.
Any ideas how to do this with either HTML or JavaScript? Help
and suggestions are truly appreciated!

The other method for doing this is using the Flashvars param.
You can read about it in the LiveDocs here:
http://livedocs.macromedia.com/flash/8/main/00001206.html
Don't know if it will solve your problem, but it is the other
of the two main ways of passing in variables.
Good luck!

Similar Messages

  • How to passing value into Captivate from html?

    How to passing value into Captivate from html?
    Or
    How to communicate between objects in one slides?

    Hi czhao0378 and welcome to the forums!
    Captivate does not natively allow you to communicate your own
    data, either internally or externally. The only way to make this
    happen is to create your own functionality, either via custom-built
    Flash objects or JavaScript code executed in the browser or a
    combination of both.
    The only example I've seen of any "data passing" inside
    Captivate is a custom text input/output solution that was posted on
    the Captivate Developer Exchange:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
    This solution consists of an input box that takes information
    from the user on one slide and a second box that displays that
    information on another slide. The functionality was built in Flash
    and is embedded in Captivate as a Flash "animation". Unfortunately,
    since this is a custom functionality, the information is not
    included in the user completion results Captivate can pass to a
    Learning Management System.
    Since the solution mentioned above relies on a Flash
    Actionscript variable to hold the information that is displayed,
    you can also pass the information from HTML to Captivate using the
    "SetVariable" command in JavaScript. This would at least allow you
    to display your own HTML-based data inside Captivate.
    Beyond that, I'm not aware of any other way to gather and
    pass data in Captivate.

  • Pass image name and path to flash from html

    Hello Flash Forum,
    I would like to use Flash to display a larger image in an
    HTML page that opens on top of a window with
    thumbnail images. The thumbnail page will be a php page. If
    the user clicks the thumbnail, I would like to open a swf that
    diplays the larger image. I would like to pass the path and name of
    the image to display to my swf. It would open a browser page (or
    just a swf file) over the thumbnail page. The use could then close
    the larger image display, and click another thumbnail, etc.
    How could I do this? I have a swf file that will display the
    image, but I would like to pass the image name from outside the swf
    file.
    Thanks for any tips,
    eholz1

    Hello jpsoul,
    Thanks for the suggestion. I did see some info on the query
    string aspect. I will take a look at the JavaScript
    external.ExternalInterface class as well.
    Thanks again,
    eholz1

  • JSON from HTML embed Javascript to AS

    Hi,
    I know how to get JSON working if loading from external file
    by using LoadVars.
    But i don't know how to get JSON from the HTML embed
    Javascript and get to work in flash?
    I have tried different ways and search at google about
    related cases but nothing found yet.
    Can somebody help me?
    that's the code that i have used:

    Thanks for the suggestion.
    Well, as near as I can tell the "do javascript" will in no way, shape or form pass info back out to Applescript from Bridge, and I need to grab the long user name from system info there.
    To be honest, I was just trying to do a nice elegant dialog box with Bridge because Illustrator CS2 didn't know Script UI and I thought since everyone has CS3 Bridge on their machines already... But I've settled for 3 Applescript dialogs instead, so the fight is over.
    1.5 days tinkering with JS. 1.5 hours recoding in AS. Whee...

  • Pass data to JSP from HTML?

    I can pass the data in a HTML form without problem if the form is in the same jsp file. I have no problem to pass data from one jsp file to another one. But when the jsp file has to take the data passed from calling HTML file and has to receive the data from the same jsp file, then the data from other HTML file will be null the first time runing the code, then second time will be passed right. If I shut down computer run the code again, same problem until the second time. Please tell me why if any of you know!

    yes. The first part is HTML file which use the form to pass v_progname, the second part is a jsp file, it suppose to get the data in v_prgname, but the first time to run this code always get null, then the second time get the right data?
    <html> <head> <title>CTI</title>
    <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> </head>
    <body bgcolor="#FFFFFF"> <form name="theForm" enctype="text/html" method="post"
    action="http://titan.ssd.loral.com:7778/ifs/jsp-bin/ifs-cts/jsps/uploadfilehome.jsp">
    <table border="1" cellspacing="0" cellpadding="4">
    <tr> <td bgcolor="#FFFFEE"><font face="Arial, Helvetica,sans-serif" size="2"> Communication racking Item </font></td> <td colspan="5"><font face="Arial, Helvetica, sans-serif"size="2">SATMEX-6-2 </td>
    <input type="hidden" name="v_sidname"value="/expctl/dev//comm_tracking.edit_document">
    <input type="hidden" name="v_schema"value="migra2">
    <input type="hidden" name="v_cti_number"value="SATMEX-6-2">
    <input type="hidden" name="v_progname"value="satmex-8">
    <input type="hidden" name="v_doc_id"value="5131"> </tr> </table><br>
    <input type="submit" value="Upload Document">     
    <input type="reset" value="Reset"></form></body></html>
    uploadfilehome.jsp as following:
    <html><head>
    <%
    String v_program=request.getParameter("v_progname");//this is the parameter passed from html file, //with a problem?
    WebUILogin login = WebUILogin.getWebUILogin( request );
    String step = WebUIUtils.getUTF8Parameter(request,"step");
    //String path=WebUIUtils.getUTF8Parameter(request,"path");
    String path="/home/scott/satmex-6";
    String windowID=WebUIUtils.getNewWindowID();
    %>
    <SCRIPT LANGUAGE="JavaScript1.2">
    var path="<%=path%>";
    var jsWindowID="<%=windowID%>";
    </script>
    <%
    if ( null == step )
    step = "get";
    %>
    <SCRIPT LANGUAGE="JavaScript">
    function AutoLogin() {
    document.loginform.userName.value == "scott";
    document.loginform.passWord.value == "tiger";
    document.loginform.submit();
    function PkeyPress(event)
    if (document.layers)
    if (event.which==13)
    document.loginform.submit();
    else {
    if (window.event.keyCode==13)
    document.loginform.submit();
    </SCRIPT>
    <%
    if ( step.equals("try") )
    login.processRequest(request);
    %>
    <SCRIPT LANGUAGE="JavaScript1.2">
    window.location='../jsps/uploadhome.jsp?path='+path+'&windowID='+jsWindowID;
    </script>
    <%
    // check to see if we have already logged in before...
    if ( null != login.getSession() )
    %>
    <SCRIPT LANGUAGE="JavaScript1.2">
    window.location='../jsps/uploadhome.jsp?path='+path+'&windowID='+jsWindowID;
    </script>
    <%
    else
    %>
    <title><%=login.getJspResourceString(JspResourcesID.LOGIN_TITLE)%></title>
    </head>
    <body bgcolor="#FFFFFF" onLoad="AutoLogin();" onResize="return false;">
    <form METHOD=POST NAME="loginform" ACTION="uploadfilehome.jsp">
    <INPUT TYPE="hidden" NAME="userName" VALUE="scott">
    <INPUT TYPE="hidden" NAME="passWord" VALUE="tiger" onKeyPress="PkeyPress(event);">
    <INPUT TYPE="hidden" NAME="step" VALUE="try">
    <INPUT TYPE="hidden" NAME="action" VALUE="Login">
    </form>
    </body>
    </html>
    <%
    %>

  • Passing Parameters to Flash

    Hi,
    I need to Pass Parameter to Flash Movie.
    I read this:
    Step 1
    Open the fla and replace the text box with a dynamic text,
    set the variable name to "mytext" in the property panel (note: you
    should set the variable name not the instance name). Then export
    your movie.
    Step 2
    Edit the page that contain the flash movie. Select the flash
    movie and append "?mytext=something" to the swf file name in
    Dreamweaver's property panel. (if you want to edit the html code
    manually, you need to look for the swf file name in both the
    <OBJECT> and <EMBED> tag.)
    Step 3
    Test your HTML page! You should see the movie is now showing
    whatever you put as "something". Test more by changing the
    "mytext=" parameter in the HTML page.
    now,
    in my flash file I got 10 variables named: line1 .. line10
    now I tried to edit the movie.html and set those things that
    written in step2 to this:
    <param name="movie" value="movie.swf?mytext=HELP" />
    embed src="movie.swf?mytext=HELP" quality="h....
    and than I saved the file, and run the movie.html file.
    but it didnt work, it didnt change the variable line1 HELP
    How to fix it?
    what's the problem here?
    Thanks, Gil

    No sooner do I ask then I find the answer myself. Was simpler
    than I thought:
    In the object and embed tags, I just add a query string to my
    swf's path, as in the code below. Doing so creates two variables,
    "myHeight" AND "MyWidth", which are available to my flash file in
    the _root. All I have to do is write my actionscript to look for
    the value of these vars rather than hard-coded numbers. Obviously,
    "timelapse.flv" doesn't need to be hard-coded; it too can receive a
    variable from the query string, just like videoGizmo.height and
    videoGizmo.width.

  • Need help for passing parameters to Flash

    Hi,
    I am fairly new to Flash, and has been trying to solve this over past few hours.
    What I want to do is to pass parameters from the browser to flash.  I searched and seems like the best way is FlashVars.
    However, I have tried different codes and can't get Flash to detect the parameters.
    I decided to follow the example here and just copy and paste the whole thing (just changing the "main.swf" to my swf name):
    http://www.kirupa.com/forum/showthread.php?t=334923
    The flash loads, but it only shows "param:" without anything else.
    I gathered that it probably is a more foundamental problem.  (e.g. the way I am debugging, or some settings, etc.)  Any clues?
    (I am using CS4 trial version AS3.)
    Thanks!

    oh, which 3 locations are there?
    I only know 2, one in <param name="FlashVars" value="one=1&two=2" /> and the other in embed.  Where is the 3rd one?
    Thanks!
    edit:
    oh...ha...haha...found the answer...it's in AC_FL_RunContent...
    http://twelvestone.com/forum_thread/view/37553 <--apparently I'm not the only one with this problem...^^"""
    Anyway, thanks a lot for the direction! 

  • OAF: passing parameters to report from OAF page and running concurrent prog

    Hi Everyone,
    i have an OAF page with 10 fields after filling those fields i need to press "Submit" button.
    On pressing Submit button 5 parameters i have to pass to the xml publisher report to run the concurrent program and display the output in pdf format.(Out of 10 fields on the page the first 5 fields will be passed as parameters)
    How can i pass parameters from OAF page to the report(concurrent program)?
    and how can i call concurrent program?
    and how can display the output of the report in pdf format after calling the concurrent program?
    Any answers will be really useful...
    Thanks in advance.
    Thanks.

    Hi kumar ,
    XML report will generate output in PDF format , first you need to try generating report separately , manually submit
    the concurrent program and make sure every thing goes well .
    Once the above step is done you can try to submit the concurrent from controller class . The submitRequest method
    will return the request ID of the concurrent program .
    Now with the help of this request ID you can redirect the page to Oracle standards Request Page( you can monitor
    the status of concurrent program and view output ) this can be done with the following piece of code
    String url = "OA.jsp";
    parameters.put("akRegionApplicationId", "0");
    parameters.put("akRegionCode","FNDCPREQUESTVIEWPAGE");
    String id = "" + return_reqId + "";
    parameters.put("requestMode","DEFERRED");
    parameters.put("requestId", id);
    pageContext.setForwardURL(url,null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,parameters,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO ,OAWebBeanConstants.IGNORE_MESSAGES);
    Keerthi

  • Passing parameters to Transactions from Web dynpro Application through ITS

    Hi,
    i need to call a transaction from Web dynpro through ITS. On action from web dynpro application, i am concatenating the respective parameters mentioned below along with URL. The problem is one parameter(VARIANT) is being passed to the t-code CAT3 correctly. The next mandatory parameter(PERNR) is not passed to the respective field.Here is the URL Code:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'CAT3'
    '%20TCATST-VARIANT=' lv_name2 '&CATSFIELDS-PERNR=' lv_name1 INTO url.
    Called T-Code CAT3
    Passing Parameters are:
    Data Profile TCATST-VARIANT
    Pernr: CATSFIELDS-PERNR

    Pradeep,
    iam trying to pass values from webdynpro application to SAP GUI Transaction
    here is the sample code which iam using
    CONCATENATE  'http://s0164dep01.adta.uae:50000/irj/portal/interop?NavigationTarget=pcd:portal_content/Testing/trn_iw33?'
    '%20CAUFVD-AUFNR='
                 'ApplicationParameter=CAUFVD-AUFNR='
                  lv_workorder';'
              'DYNP_OKCODE=SHOW'
             INTO lv_url.
    i could'nt able to succed as its displaying page not found exception.
    Help me on this to proceed further
    Regards
    Jaipal.E

  • Why I can't pass parameters into CR from VB6

    I want to Pass parameters into crystal report from VB6.
    But whatever I try, it don't work Fine,
    always Show the message "This field name is not known".
    Crystal Report::
    Parameter: a.@cmpy;
                       b.@p1
    formula:
    a. If {?@cmpy} ="USA" or {?@cmpy} ="usa" then
          "This is test 1 sentences"
       else if {?@cmpy}="TWD" or {?@cmpy} = "twd"  then
          "This is test 2 sentences"
    b. if trim({?@p1})="1" then "This is test 3 sentences"  
    VB::
    Public oApp As New CRAXDDRT.Application
    Public oRpt As CRAXDDRT.Report
    oRpt.ParameterFields(1).ClearCurrentValueAndRange
    oRpt.ParameterFields(2).ClearCurrentValueAndRange
    oRpt.ParameterFields(1).AddCurrentValue ("TWD")
    oRpt.ParameterFields(2).AddCurrentValue ("1")  
    I had trid to use "IsCurrentValueSet" function to check whether parameter was set or not, and It responsed "Ture",so I so confused about it.
    Anyone know about this??
    ps. I had trid other way that change the formula indirectly, although it can work fine, but it isn't a right way to solve my problem.
    Edited by: DeanLai on Jun 22, 2010 8:54 AM

    I Find something.
    First I tried to add parameter and wanted to see these value on Report.
    So I inserted {?@cmpy} and {?@p1} into report, and used VB code
    "oRpt.ParameterFields(1).AddCurrentValue ("TWD")" and "oRpt.ParameterFields(2).AddCurrentValue ("1")",
    then ran the process, but it didn't display any value on report,
    so why it couldn't pass value into parameter??
    then I tried other way which was to add new parameter, and used the same way to pass
    value into parameter, then it can display value on report.
    So the different between these is {?@cmpy} and {?@p1} which come from
    Stores Procedure.
    While I set Database in crystal report, set all value into Store Procedure's
    parameter(the window about "Enter Parameter Values"), then it automatic come out the DB columns and parameter(SP parameter)
    , course include {?@cmpy} and {?@p1}.
    Do this problem cause my question?
    Can we pass value into parameter which come from SP parameter??
    Can we use these parameter into forumla??
    Edited by: DeanLai on Jun 30, 2010 11:56 AM

  • Control Flash from HTML (k)

    I have a button in HTML that I want to use to control the
    flash on the
    page it sits on.
    When the button is rolled over, I want to pass a variable to
    the Flash
    movie so that something happens.
    How can I do this in Dreamweaver?
    -Kirk

    It's a stupid way of doing it, but I got it to work using the
    FSCommand.
    I send the user to a frame in the Flash movie. That frame has
    the
    variable set to the "On" state. I then have them go to
    another frame for
    the "Off" state.
    -Kirk
    W. Kirk Lutz wrote:
    > I know that it would be easier. But I have a very tall
    flash file of a
    > floorplan. I have a legend for the floorplan that I want
    to float in a
    > layer so that when someone scrolls down the page, the
    legend follows. I
    > Can make a scroller in flash, but would prefer to try
    and control Flash
    > via HTML.
    >
    > I know you can pass a variable in HTML to flash, but if
    it has to reload
    > the page each time the user will be throwing their
    machine out the window.
    >
    > Any way to control Flash?
    >
    > I've tried to send the user to a frame in Flash via the
    FSCommand, but
    > it doesn't seem to work. I have two scenes in my flash
    file. A loading
    > scene and the main scene. The FSCommand jumps me to the
    frame in the
    > loading Scene.
    >
    > -Kirk
    >
    >
    > -->dan mode wrote:
    >> It would be much easier to do the rollover button in
    Flash.
    >> Otherwise, you need a server side language that
    would populate a
    >> variable in the embedded swf code.
    >>
    >>

  • Affecting Flash from HTML

    Hello, I'm trying to affect my flash movie from HTML. For
    example, if I have a google adsense module, and I want to trigger
    something in flash each time that link is hit, how would I go about
    doing that?
    Any help would be much appreciated!

    You would have to use a frame.

  • Passing Parameters to ActionForward from Action

    Hi,
    Can anyone please describe me how to pass parameters from an Action to corresponding ActionForward.
    Basically, I am having only the jsp name in forward in struts-config.xml. But, when action is processed, I want to send some parameters to the corresponding actionforward.
    Can some be help me in explaining how it can be achieved.
    Thanks,
    Siva

    No Parameters will be dynamic.

  • Help with passing parameters to Aspell from C [SOLVED ENOUGH]

    I found this really cool utility called aspellstdout that will allow for rudimentary spell check in Scite:
    http://www.distasis.com/cpp/scitetip.htm#spell
    What I can't figure out (and the author didn't either) is how to pass parameters beyond language to Aspell. What I want to be able to do is pass mode switches. For instance, if I have a LaTeX document I want to be able to pass the -t switch (--mode=tex). I looked through aspell.h and couldn't see what I'm looking for.
    --EDIT--
    The output to xterm option is far easier and it makes quite a bit more sense now that I'm use to it. From my .SciTEUser.properties:
    # Rudimentary LaTeX Spell Checker
    command.name.2.$(file.patterns.tex)=Spell Check
    command.2.$(file.patterns.tex)=xterm -e aspell -t -c $(FileNameExt)
    command.subsystem.2.$(file.patterns.tex)=0
    Last edited by skottish (2008-09-08 01:58:57)

    Hi,
    I see you're using System.Data.OracleClient (which has been deprecated by MS) rather than Oracle.DataAccess.Client, but this works for me with Oracle's ODP, maybe it will help.
    Cheers,
    Greg
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class dataadapterfill
        public static void Main()
            using(OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl"))
                con.Open();
                using(OracleCommand cmd = new OracleCommand("select ename from emp where ename = :1", con))
                    cmd.Parameters.Add(new OracleParameter("myename", OracleDbType.Varchar2, 50)).Value = "KING";
                    OracleDataAdapter da = new OracleDataAdapter(cmd);
                    DataSet ds = new DataSet();
                    da.Fill(ds);
                    foreach (DataRow row in ds.Tables[0].Rows)
                        Console.WriteLine("ename: {0}", row["ename"]);
    }

  • Passing parameters to report from a form

    I have a form with a button that when pressed will call a report (using the run_product).
    How do I pass a parameter from the form to the report?
    Cathy

    Cathy,
    Run_product is obsolete and should be changed to run_report_object. See the forms online help for information about how to use this built-in including information about passing parameters.
    You can also look at the Headstart form qms0012f (and it's associated qms0012l.pll) to see how we use run_report_object.
    Regards,
    Lauri

Maybe you are looking for

  • Address Book multiple addresses, some blank?

    Since switching to iCloud, I discovered I had triplicate email addresses for every single contact. A number of contacts retained a name, but all other contact was missing? Aside from deleting two of every three contacts, is there anything I can do to

  • ITunes 64 bit  crashes during iphone sync  on windows 7

    This was working fine a couple days ago - my guess is that one of the zillion MS patches killed it.  Now what?  I have uninstalled, re-installed, done all the Compatability checks, etc.  Tried installing the 32 bit version but the installer won't let

  • Why configuring clock using clock set command is not accepted in nexus 7k?

    Hello, I have a message like this: Admin-CORE1_VDC# clock set 15:26:00 7 december 2014 Setting clock from CLI is not allowed in this VDC. Use the following config command to use the "clock set" command. clock protocol none vdc <vdc_id> If I issue tha

  • Duplicating a price list

    Greetings all, I have the following question. I have a price list that I will adjust all prices by 10%, before I do I would like to copy or duplicate this existing price list, and use it for my international business partners. Is it possible to copy

  • Can I view thumbs.db files in OS X?

    Is there a way in OS X to view the thumbnails in a thumbs.db file? Some usenet binary posts include thumbs.db files and I would like to be able to use them to preview the contents before wasting my valuable time, bandwidth and disk space on downloads