Passing variables using the URL

in the past I have alsways used internal navigation methods
within Flex - i.e. viewStacks, and linkBars etc... but I need to
use an (existing) external menu and link (communicate) it to my
Flex Application.....
is it possible to pass variable to (into) a flex 2
application using a URL
e.g.
http://...............
?page=homepage
picking this variable ("page") up and getting its value (in
this case "homepage")
and then use the variable in the Flex application to display
the relevent component...... ???
basically, I am trying to navigate through a Flex application
using an external menu system etc...... and displaying the
particular components within the Flex application relevent to the
select links (within the external menu system) communicating the
two using a URL etc......
thanks,
Jon.

Passing data into a Flex app using the url on startup
requires working with the html handler, causing it to build
flashvars in the Embed or Object tag. Inside Flex, these are
accessed using the Application.parameters array.
But it sounds like you want ongoing communication between the
Flex app and the browser. For this you should use
ExternalInterface. I have not used it at all, so I can't be any
specific help.
Tracy

Similar Messages

  • Can I pass variables in the URL string?

    I am trying to get some variables into a loaded swf at
    runtime. The variables will carry information so the swf can load
    the correct xml file. I thought we could pass them through the URL
    string like so:
    new URLRequest("testing.swf?myVar=varOne
    but it just throws an URL cannot be found error. How can I
    get variables into my swf at runtime?

    What you are doing is fine. But you will always get that
    error when testing
    the movie (Ctrl+Enter). Try it in a browser and it should
    work.
    BTW, another way of doing the same is to use a URLVariables
    object, like so:
    var req:URLRequest = new URLRequest("testing.swf");
    var vars:URLVariables = new
    URLVariables("myVar=varOne&myVar2=varTwo");
    req.data = vars;

  • Passing variable threw the url to flash

    Is it possible to pass variables to a flash obect threw the
    url and how would the url look?
    something like this?
    http://critcore.wisc-online.org/cri...ml?Objectid=183
    then I would request the objectid in flash using send and
    load? Or how would I retrieve that?
    Thanks for your help I appreciate it

    it would look like:
    http://www.yoursite.com?theVariable1=var1&theVariable2=var2
    in flash you just access it with _level0 ie:
    trace(_level0.theVariable1);
    trace(_level0.theVariable2);

  • Passing variables on the URL

    Is it possibe to pass variables into edge from the URL? I can see a scenario where you could send people a link like site.com/myedgeanimation/?=bob or site.com/myedgeanimation/?=alice and BOB and ALICE could each get a personalized animation.

    Hi,
    If you want to implement the equivalent of Flashvars, you will find an example here.

  • Passing variables through the URL String

    I have a template and outside the basic html - all the content is grabbed from a db. I want to use 1 template to generate all of the other pages for the site. So basically, the only way to identify the page would be through the URL string.
    So, something like -
    www.mysite.com/template.jsp?page_section=aboutus&pageID=1
    That string would query the database and output the content for page 1 of the about section.
    Does this make sense and where would I start to learn how this is done?.
    Again, I appreciate your help.
    Mark

    since database connections are costly affair i better use
    jsp include tag ratter then getting dadta from database
    assumming that u can devide your comman pages in 4 parts
    just assume
    top - logo
    bottom - common links
    center - data
    left - menu
    my jsp page would look like this (aboutus.jsp)
    <%@ include file="top.html" %>
    <%@ include file="left.html" %>
    <%@ include file="aboustus.html" %>
    <%@ include file="bottom.html" %>
    2) disclaimer.jsp
    <%@ include file="top.html" %>
    <%@ include file="left.html" %>
    <%@ include file="disclaimer.html" %>
    <%@ include file="bottom.html" %>
    this would reduce ur maintainnce as if u want to change top logo only top.html needs to be changed and it would affect in all pages
    regards
    [email protected]

  • Pass a record ID without using the URL

    I need to pass a record ID when a user clicks a link, but I don't want to pass it via the URL. I can't figure out how to do so.
    I have built a forum, and the forum users want to be able to quote a post and the respective replies. So, just like this forum, you have an original post, and then you have a repeating region of numerous replies below. So, what I need to do is enable the page to identify the unipue ID of the clicked record to quote from others that might also be available on the page, but without passing a URL variable, I can't figure out how to do it.
    I would like to be able to set a session variable, but I don't know how to acheive this via a link so I am passing the correct record ID.
    Does naybody know how I can do it?
    If possible, I don't want to use a URL variable for security reasons.
    Thanks.

    Never mind. The answer was to use
    <input type="hidden" name="needId" value="<?php echo $_GET['needId']; ?>" />
    Thanks to iPHP for answering this in another thread.

  • How can I include a captivate variable in the URL of the website widget?

    I am using the website widget to bring up some customized content during the course.
    The URL contains a variable which will be different for every user.
    I can't find the option of including a variable in the URL with the widget.
    Has any figured out how to accomplish this?

    I am using Cp8.
    I publish in both swf and html5 formats so that the course functions on all device platforms.
    A swf only solution would preclude IOS since it doesn't support flash.

  • Web Object Widget and replacing Variables in the URL

    I am using the new Web Object Widget in Captivate 7 and need some help with setting up the URL for the widget correctly.  If I hard-code a static web page address, the widget works fine.  The problems comes up when I need to slightly change the tail-end of the web address depending on who is taking the course.
    I need to dynamically append some variable information onto the web address that we will be calling such as:
    http://www.someplace.com/customizeforstudent.htm?Student_Name=$$studentName$$&Student_ID=$$studentId$$
    Is there any way to dynamically load the variable information into this widget when the student takes the course?
    I know that I was able to use the samples on captivatedev.com to do this web page variable replacement when I used JavaScript on a button so I know it can be done that way. 
    (see: http://captivatedev.com/2013/08/08/javascript-solution-launch-a-url-with-captivate-variabl es-as-parameters/ )
    The down-side of the captivatedev.com example is that it forces the web page to show up "outside" the course (either in a new window or it takes over the browser window the course is playing in.  I want to use the web object widget so I can stay "within" the normal flow of the course we are developing.
    I have been able to get the student name and student id from our LMS using JavaScript (thanks again to http://captivatedev.com).
    Whatever process we come up with needs to work not only with Flash, but also HTML5.
    Thank you for your time.
    Randy

    Hi BubbaRB and welcome to the forums.  I love it when people have great questions regarding integration.. and this is an area that Adobe Captivate needs to be better at!  It would be nice if the stock web page widget in Cp 7 had the ability to substitute Cp user variables in the URL to make for dynamic rendering of the web page, but unfortunately that's a limitation of the stock widget.
    The web page widget on CaptivateDev.com is capable of variable substitution in the URL.  You just need to enclose the variable with double dollar signs $$cpQuizInfoStudentID$$.
    http://captivatedev.com/2012/08/07/adobe-captivate-6-x-widget-web-page-widget/
    This widget works for SWF and HTML5 output for Cp 6 and 7 and there's a free trial available.

  • Using the URL type field in a Dictionary

    Using the URL type field in a Dictionary
    How and when would I use the URL Field in a Dictionary?  What is the advantage of using this field?
    For example, you may have tasks within a service delivery in which performers must access a spreadsheet and enter their estimated efforts and costs in that spreadsheet. You might use this URL type field to direct the task performers to the site where the spreadsheet is residing.
    To set up the URL field:
    In the Dictionary, for the desired Field, select the "URL" type.
    When the service performer enters information into the field (during the Service Dellivery moment), it will beautomatically concatenated with the RequestCenter system URL, and presented as a hyperlink immediately below the entry field in the service form.
    The performer is directed to the URL, i.e.:
    /RequestCenter/servicemanager/MemorySize
    Advantages to this design approach:
    1.      Allows users who do not have access to RequestCenter to view the estimated efforts and costs.
    2.      Compensates for the fact that the service form itself cannot display the fields in a table format.

    Hey,
    As per my understanding, you want to display link with text instead of whole url string. For that you can provide link text as a description in URL type field so the same will be displayed as a link title in list view while rendering.
    Thanks.

  • Using the URL to filter a list

    All,
    I am using the URL to filter a list, for example, FilterField1=Writer&FilterValue1=Chris%20Tobey.
    In this method, we need to provide the FilterField which is the column name. Can we do the filter for all column? For example, I would like to search all items in the list which
    contains "hello" in any column by using the URL?
    Thanks

    Hi,
    The query string in URL won’t be able to meet your requirement.
    The OOTB
    Search box for a list can be found above the list view, it can search items contains the keyword in the current list:
    http://community.office365.com/en-us/f/154/t/171565.aspx
    Or if you want to do more customization, work with
    Search API programmatically would be required:
    http://msdn.microsoft.com/en-us/library/microsoft.office.server.search.query.keywordquery.aspx
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2013/01/03/how-to-use-the-sharepoint-2013-search-keywordquery-class.aspx
    Here is a code demo in this thread can
    search items in a particular document library with specific keyword
    for your reference:
    http://social.technet.microsoft.com/Forums/office/en-US/41699f4b-f1a5-4449-b121-01fbb862436f/how-to-fetch-item-from-document-library-using-query-search-in-sharepoint-2010-?forum=sharepointdevelopmentprevious
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • To coerce passed values, use the In Range and Coerce function.

    -" Device Number for Card 1 uses data range coercion, which now only applies to data entry; values will not be coerced when passed to subVIs. To coerce passed values, use the In Range and Coerce function."
    Hi,
    I had program runnning fine in labview version 5.0, Recently i updated to labview version 6.0, but when i opened file i will see many warnings like above.
    I saved the file as 6.0, all the warnings are gone and program compiles as well but i am not sure saving as 6.0 eliminate those problems like..."value will not be coereced when passed to subvis"

    It means that some of your controls use coercion to alter data if it is not within a range. In LV 5.0 this worked for either typing the data into the control or passing it through the connector as a sub-vi. In 6.0 the data won't be coerced if it has been passed through the connector as a sub-vi, only if it is entered on the front panel. If your sub-vis relied on this coercion to operate properly then you will need to add the "In Range and Coerce" function to your block diagram to manipulate these values. If the coercion wasn't important then disregard the warning.
    Hope this helps
    Brian

  • Need to use a program using the URL chrome://espdesktop/content/desktop.xul. To do this I had to install a file into the chrome subfolder.How can I do this?

    I am trying to use the ESP program, an older research program that uses the URL,
    chrome://espdesktop/content/desktop.xul.
    To get this to run, you are supposed to create a "chrome" folder that includes the text file "installed-chrome.txt" that includes the following directions: content,install,url,file:///c:/Program%20Files/esp4/
    However, this does not seem to work with the newer version of Firefox. Is there anyway to work around this?
    I tried just creating a folder called "chrome" with these instructions in C:\Program Files (x86)\Mozilla Firefox\chrome but it did not work. Do you have any suggestions?

    With what Firefox version did this still work?
    I'm seeing some references to the installed-chrome.txt files in the Firefox 10esr code, but not in later versions.
    *http://mxr.mozilla.org/mozilla-esr10/source/config/add-chrome.pl
    In later versions, including the current release it only shows in the removed files list.
    *http://mxr.mozilla.org/mozilla-release/source/browser/installer/removed-files.in

  • I'm trying to read some XML data from temperature logger over my network. I'm using LabView version 2009 sp1. I'm using the URL Get Document Vi. It works fine when using Internet sites like google or foxnews etc...

    I'm trying to read some XML data from temperature logger over my network.  I'm using LabView version 2009 sp1.  I'm using the URL Get Document Vi.  It works fine when using Internet sites like google or foxnews etc...
    When I use it with my temperature logger most of the time I get an Error 66...but some times it does work and actually retrieves the document. 
    I can use the same address "http://172.22.21.68/XMLfeed.rb" (Internet Explorer or Google Chrome) in my browser and get a response every time.  When accessing from my browser the server in the temperature logger does take around 6 seconds to respond, but it does respond every time. 
    Is the URL Get Document Vi exceeding a timeout?  If so, where can I set it to wait longer?
    Attachments:
    Error 66.jpg ‏183 KB

    It looks like the TCP Buffered Read has a 2.5 sec timeout, I believe that is where I had trouble as well.  Try creating your own URL Get HTTP Doc vi in which you call URL Get Document in normal mode, with an appropriate number of characters to fetch (enough characters so that you capture all the important data in the XML file).
    Attachments:
    ex1.PNG ‏33 KB

  • How to pass in variables using the command line when starting ActionScript native app

    How do I pass in variables or startup arguments using the command line when starting an ActionScript native app? For example, I have my app call MySweetWidget and it has been compiled with Adobe AIR captive runtime so now I have MySweetWidget.exe.
    In the command line, I am calling MySweetWidget.exe and would like to pass in variables or properties to the application. I would assume that those variables are then read from the loaderInfo.parameters object.
    Please let me know if the Adobe AIR runtime supports passing in parameters to the native runtime. If so, I would like help determining the correct format of how to pass in the variables. Then would you read those from the loaderinfo.parameters object?
    Thanks,
    Jeff

    I found the answer to my own question:
    Yes it is a supported feature. It is documented on the following page:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApp lication.html#event:invoke
    When you subscribe to the invoke event of the NativeApplication it will subsequently dispatch the event and you read the e.arguments Array object to get the startup arguments passed into the native application.

  • How to pass session variables via the URL in CF10?

    Hi
    I have a client with some old Flash functionality (AS2). The SWF allows the user to upload an image. However a new session is being started when the upload script is called. I have added the CFID, CFTOKEN and JSESSIONID to the URL as I did in the past to maintain the session but I believe you cannot do this anymore with CF10, if this is correct can anyone point me in the right direction of how I would accomplish maintaining the session for the upload?
    This has a note about CF 10 - http://forums.adobe.com/thread/1178420
    Kind regards
    Shaun

    Hi Shaun
    Are you facing the same issue with all the browsers?
    Thanks
    VJ

Maybe you are looking for

  • Unable to view picture in full screen

    When I double click a picture in iPhoto, it brings up a black screen.  Same thing when I try and do a slideshow -- the pictures do not show up.  Any ideas on what I am doing wrong?

  • How to change the display of Hierarchy in EVDRE

    I want to change the display of the hierarchy  as first child and then parent. instead of first parent then child. I mean when i see the report, I have to see the values for the members and then node total . How can i achieve this ?? Thanks in advanc

  • Windows can compile phonegap iOS apps in dw cs6

    ONCE I DOWNLOAD IN MY ANDROID PHONE AN APP FROM DW CS6-PHONEGAP VIA QR SCANNER, where saved the App downloaded? 2.3.6 Android... windows can compile phonegap iOS apps in dw cs6 on WINDOWS? to make win phone 7 or 8 Apps can I from dw cs6 or needed pho

  • G/l account not assigned to chart of account

    Hi all, While GR I am getting an error message. G/l Account for the particular material type (e.g. Trading goods Val Class=3100 & G/l Acct 301000) not assigned to the chart of accts. Actually this error is only with this material type and not with ot

  • Invoice Verification tolerance price varience

    Hi All, I have set Invoice verification tolerance key PP upper limit 5 % and value 5 in customizing. I have also set message M8082 and M8083 as error message in customizing. My requirement is to limit user from posting invoice above 5 % of GRN Amount