Send a variable from two .swf

How do I send a variable from a.swl to b.swf
Tkank
Bruno

I do not quite understand what you doing but if you return the default value for address and etc... that is type of varchar2, i guess all you have to do is to htp.p on your form? And if it needs to be in a textbox just render the appropriate html for that <input type = "text" value ="yourValue">

Similar Messages

  • Variables between two swfs

    I have a main.swf (level0)and a news.swf (level1). News.swf
    is loaded because main.swf tells it so :-). If I have a variable in
    news.swf, does it become part of the main.swf? I want to send a
    variable from news.swf to main.swf, so the main.swf knows which swf
    must load after event in news.swf. Which is the best way to do
    that? Is it a LocalConncetion?
    THX for advice

    rohai wrote:
    > I have a main.swf (level0)and a news.swf (level1).
    News.swf is loaded because
    > main.swf tells it so :-). If I have a variable in
    news.swf, does it become part
    > of the main.swf?
    Not it does not becomes part of the main.swf but there is no
    problem to access
    the variables across multiple levels tho. _level1.vars=value;
    or _level0.vars=value;
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Passing variables from one swf to another

    I am facing problem to pass variable from one swf to another.
    I am using loadMovie to load another swf. how can I pass a variable
    value to another swf. Can anyone help me plz? It is somewhat
    urgent.
    thanx in advance.

    first of all:
    this is the Flash Media Server and your problem is not
    related to FMS....
    second thing related to the "somewhat urgent" :
    we, users on this forum, are not there to do your job... so
    calm down otherwise no people will answer your question. This forum
    is a free support forum that community of Flash developer use to
    learn tricks and to solve problems.
    Possibles solutions:
    If the two swf are seperate you can use LocalConnection to
    establish a connection between different swf.
    If you load a second swf into the first one you can interact
    like a standard movieClip(only if there from the same domain or if
    you a policy file on the other server)
    You can use SetVariable(via Javascript) to modify a root
    variable on the other swf and check with an _root.onEnterFrame to
    see if the variable had changed in the second swf.
    * MovieClipLoader will do a better job, in your specify case,
    than the loadMovie. Use the onLoadInit event to see when the swf is
    really totaly loaded into the first one otherwise you will have
    timing issues.
    My final answer(lol) is the solution 2 with the
    notice(*)

  • Accessing Captivate 5.5 variables from embedded SWFs

    Hi,
    as we all know the interface for accessing Captivate variables from embedded SWFs tends to change between Captivate versions. Shortly after it's release we upgraded to version 5.5, and I'm not succeeding in accessing the Captivate variables in my Flash/AS3 code the same way it was done in version 5.
    How should I access the Captivate 5.5 variables (rdinfoCurrentSlide et al) from my SWFs?

    Hi,
    You can use system variable : cpInfoCurrentSlide to show the slide number.
    So you can use text captions to display the value of the variable, the format for displaying the value stored in the variable is $$<system variable>$$. So for slide number use : $$cpInfoCurrentSlide$$, type this in the text caption and then check it in the preview.
    Thanks

  • How to send a variable from one class to another?

    hello,
    i have "One.as", which is the document class for one.swf.
    i also have "two.swf", with "Two.swf" entered as its document
    class...
    One loads two into it. two is basically a 10 frame movieClip
    with a variable at the beginning called "var endFrame:Boolean =
    false", then on the last frame it says endFrame = true.
    my question: how in the world do I communicate this back to
    One.as??? i've tried ENTER_FRAME listeners, declaring the variable
    here and there... and many other embarrassingly usuccessful
    strategies.
    i would just like to load in "three.swf" after two.swf
    finishes... but One needs to know that it has indeed finished.
    your help would be greatly appreciated. thanks

    yarkehsiow,
    > David,
    > thank you for responding.
    Sure thing! :)
    > so does what you are saying mean that endFrame is a
    property of
    > two (the movieClip), or Two (the Class)?
    If you've written a property named endFrame for your Two
    class, then
    yes, Two.endFrame is a property of that class.
    Looking back at your original post, I see that you wrote
    this:
    > One loads two into it. two is basically a 10 frame
    movieClip
    > with a variable at the beginning called "var
    endFrame:Boolean = false",
    > then on the last frame it says endFrame = true.
    So it sounds like your Two class extends MovieClip. (I'm not
    sure
    that's true, but that's what it sounds like.) That means your
    Two class
    supports all the features of the MovieClip class, including a
    play() method,
    a currentFrame property, and so on. In addition, you've added
    new
    functionality that amounts to -- by the sound of it -- a
    property named
    endFrame. If you made your property public (i.e., public var
    endFrame),
    then it should be accessible by way of an object reference to
    your Two
    instance.
    myTwoInstance.endFrame;
    > so can i invoke that method in One.as? do I call it
    Two.endFrame (if
    > (Two.endFrame == true) {?
    Methods are things an object can *do,* such as
    gotoAndPlay(). What
    you're describing is a property (a characteristic ... in this
    case, a
    Boolean characteristic). You wouldn't use the expression
    Two.endFrame
    unless that property was static. Static classes are those
    that cannot have
    an instance made of them. Think of the Math class. It
    contains numerous
    static properties in the form of constants, such as Math.PI,
    Math.E,
    Math.SQRT2, and so on. You can't create an instance of the
    Math class -- it
    wouldn't make sense to -- so Math is a static class.
    On the other hand, you definitely create instances of the
    MovieClip
    class. Every movie clip symbol is an instance of MovieClip
    class, which
    means that each instance carries its own unique values for
    MovieClip class
    members. The MovieClip class defines x and y properties, but
    each movie
    clip symbol (that is, each instance of the MovieClip class)
    configures its
    own values of those properties, depending on where each
    instance is located
    on the Stage.
    Assuming your Two class is not static, then somewhere along
    the line,
    your One class will have to make an instance of it. Somethine
    like ...
    // inside your One class ...
    var myTwo:Two = new Two();
    ... at which point that myTwo variable because a reference to
    that
    particular instance of Two. You can invoke Two methods on
    that instance.
    You can invoke Two properties and events on that instance.
    You can invoke
    whatever functionality is defined by the Two class on that
    myTwo instance.
    If Two extends MovieClip, that means you can also invoke any
    MovieClip class
    member on that myTwo instance.
    At some point in your One class, you can refer to that myTwo
    instance
    later and check if the value of myTwo.endFrame is true or
    false.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Sending a variable from one class to another?

    Dear Java Users - please can you help me out here... I know that what I am asking should be straight forward BUT I just don't understand any of the responses people have put on the web....
    Here is what I am trying to do:
    This piece of code - creates a window with a simple textbox on it to enter a word...
    The button then calls another class file to open a new window...
    All I want to do is to take the word from the text box and print it in the new window....
    The first .java file I have is this:
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class FrontPageGUI extends JFrame implements ActionListener
         //declare all instance variables for THIS per class
              JLabel lblInfoOne;
              JLabel lblButtonPopUp;
              JTextField txtName;
              JButton close;
              JButton popUp;
         public FrontPageGUI()
              //set characteristics of the JFrame object
              super("Title Bar");
              setSize(600,600);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              setVisible(true);
              //we need to define a Container to place objects onto the frame - this is inside the JFrame Object Above
              Container ca = getContentPane( );
              ca.setSize(600,600);
              ca.setBackground(Color.white);
              ca.setLayout(null);                
              //define all other objects and set thier characteristics
              lblInfoOne     = new JLabel("Enter a word in the box above to send:");
              lblButtonPopUp = new JLabel("Click Here:");
              txtName          = new JTextField("");
              //create Button components
              close = new JButton("Close");
              popUp = new JButton("Click Me");
              //now add all objects to the container
              //Labels
              addXY(ca,lblInfoOne, 30, 160, 550,45);
              addXY(ca,lblButtonPopUp, 30, 210, 550,45);
              //TextField
              addXY(ca,txtName, 120, 100, 200,30);
              //Buttons
              addButtonXY(ca, popUp, 30, 260, 200, 45);
              addButtonXY(ca, close, 30, 310, 80, 30);
              // add the Container to the Frame     
              setContentPane(ca);          
         void addButtonXY(Container c, JButton cp, int x, int y, int w, int h)
               cp.setBounds(x,y,w,h);
               cp.addActionListener(this);
               c.add(cp);     
         void addXY(Container c, Component cp, int x, int y, int w, int h)
               cp.setBounds(x,y,w,h);
               c.add(cp);
         public void actionPerformed(ActionEvent event)
              if (event.getSource()== popUp)
                   //This is WHERE THE PROBLEM IS...
                   //Here I want to send to contents of the textfield - txtName
                   String temp = txtName.getText();
                   new PopUpGUI(temp);
              if (event.getSource()==close)
                   closeUp();
         void closeUp()
              System.exit(0);
              //dispose();
    //we need a driver program - this is the only time MAIN is used.
    public class FrontPage
         //create an instance of the GUI and showit
         public static void main(String args [])
              new FrontPageGUI();
                   The second .java file I have is this:
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class PopUpGUI extends JFrame implements ActionListener
         //declare all instance variables ie per class
              JLabel headerLabel;
              JLabel sentLabel;          
              JButton close;
         public PopUpGUI(String Sent)
              //set characteristics of the JFrame object
              super("Pop Up Window");
              setSize(320,450);
              setVisible(true);
              //need to define a Container to place objects onto the frame
              Container ca = getContentPane( );
              ca.setSize(320,450);
              ca.setLayout(null);                
              //define all other objects and set characteristics
              headerLabel = new JLabel("New Window!"); //heading label
              sentLabel = new JLabel(Sent);
              close = new JButton("Close");
              //now add all objects to the container
              addXY(ca,headerLabel,10,10,380,80);
              addXY(ca,sentLabel,10,100,380,80);
              addButtonXY(ca, close, 50, 200, 100, 30); //Bottom Left
              // add the Container to the Frame     
              setContentPane(ca);
         //We need these 2 methods - EVERY TIME
         void addButtonXY(Container c, JButton cp, int x, int y, int w, int h)
               cp.setBounds(x,y,w,h);
               cp.addActionListener(this);
               c.add(cp);     
         void addXY(Container c, Component cp, int x, int y, int w, int h)
               cp.setBounds(x,y,w,h);
               c.add(cp);
         //What to do when the click happens
         public void actionPerformed(ActionEvent event)
              if (event.getSource()==close)
                   dispose();
                   //closeUp(); - Doesn't run CLOSEUP this time (i.e. exit program) - instead just DISPOSEs of the window
    //Driver class is in FrontPage.javaThis seems to work... but is it the best way to do it????
    Tony.

    Well,
    Using the constructor is the way to go. Otherwise create a method that takes the string as parameter.

  • Need help sending variables from HTML to SWF...

    I have a header with tab buttons--- When you are on a certain
    page the coorisponding tab is a different color(as a locator).
    Right now I have like, 7 or 8 different headers that are the
    same thing minus the colored tab of the current page.
    Is there a way to code the flash so that I only need one
    header, but still keep the off-colored buttons when on the
    coorisponding page?
    Apparently, from what I have gathered I need to Send a
    variable to the SWF from the embedding HTML using FlashVars or
    SWFObjects' 'addVariable' method etc so the SWF knows which
    tab/color to use.
    But, I have no ideal where to start...uugggggg.
    Any Suggestions????
    I really, really need to figure this out.
    Thanks in advance,
    hutch

    the easiest way to pass vars to the flash is by appending
    them to the url of the flash:
    e.g your swiff is called "mymovie.swf" and you want a
    parameter "color" to be available on the _root level of your movie,
    so all you have to do is embed the flash with the following url
    into your html page:
    "mymovie.swf?color=black"
    now back in flash you can get the value of "color" like this:
    in _root timeline:
    color
    in any other timeline:
    _root.color
    the value will be filled once the movie is called from within
    the HTML as explained above

  • How to send Variable from a web dynpro abap application to anthor

    HI all:
        I have two web dynpro abap applications .
        I want to send a Variable from a web dynpro abap application to another  web dynpro abap application  using post method.
        Because, now I have used append_field_url  to send Variable,but this method will display the Variable in the URL.
        I do not need this result.
        I need the Variable from a web dynpro abap application to another  web dynpro abap application  and the Variable will not display in the URL.
        Can you give me an example?
        Thanks.

    HI Nawal Kishor Mittal :
    I have tried your method,but I can not get the value of variable.
    My code is as follows:
    The first web dynpro abap application:
    DATA:BEGIN OF l_send,
         l_value TYPE string,
         END OF l_send.
    l_send-l_value = '400001'.
    EXPORT l_send-l_value FROM l_send TO SHARED MEMORY indx(aa) ID 'YTEST_MATNR'.
    The second web dynpro abap application:
    DATA:BEGIN OF m_send,
         s_value TYPE string,
         END OF m_send.
    IMPORT m_send-s_value TO m_send FROM SHARED BUFFER indx(aa) ID 'YTEST_MATNR'.
    DELETE FROM MEMORY  ID 'YTEST_MATNR'.
    Thanks.

  • AS3 send/import variables to/from php file

    Hi
    im new I would like to send some variables from ac3 to a
    php-file. the
    php-file have to copperate with this variable (send
    querystring to
    mysql-server).
    ac3 have to read then new variables and traced it on the
    screen.
    i found some examples on the net but i have not undersood
    any.
    can you please explane that to me????
    Sebastian

    Hi
    im new I would like to send some variables from ac3 to a
    php-file. the
    php-file have to copperate with this variable (send
    querystring to
    mysql-server).
    ac3 have to read then new variables and traced it on the
    screen.
    i found some examples on the net but i have not undersood
    any.
    can you please explane that to me????
    Sebastian

  • Please help!! Can I pass a variable between 2 swf's that are on different html pages?

    Hey,
    Does anyone know how to pass a variable (string) from one swf
    to another if there in separate html pages?
    I assume I’d have to send the variable from the first
    page and load it into the second but I don’t know what
    functions or code I should be using. Any suggestions would be a
    HUGE help.
    Thanks
    If it helps: I’m creating a log in and sign up sheet
    that can be accessed from several sites. I’d like to record
    which site the user has come from when they signup.
    Thanks

    if they are open at the same time (for the same user), you
    can use the localconnection class to communicate between the
    two.

  • Send/receive variables online

    I want to make a connection between two SWF through internet.
    I want to some how connect these SWFs so I can send\receive
    variables.
    for example i want to build a messenger and i want to
    send\receive strings from one SWF to each other
    PLEASE help me

    I know how to send variables for the serverside but I don't
    know how to send variables from server side for the SWF!
    currently I'm sending variables form one SWF for a .php file
    on the server and the php saves that variable in a .txt file and
    the other SWF every 5 seconds requests for the variables and the
    php cheks the .txt file if there were any thing it would send them
    for it (I'm using LoadVariables() command)
    but I dont want to chek that every 5 seconds, I and I don't
    want to use that .txt file
    its so much better to send the variables directly between
    SWFs

  • Passing a variable from an html button into flash....

    I want to click an html button and send a variable to a swf
    file that opens next. I want this variable to go into flash
    depending on what the user clicked. I want flash to go to the
    english part or to the spanish part of my swf depending on what
    this variable is.
    How can I do this? Can anyone help me?
    Thanks!!!!
    Brenda Sanchez.

    http://www.noscope.com/journal/2003/12/query_string

  • Sending a variable to a cfm file

    I would like to send a variable from a Flash(Textfield) to a cfm (textfield). I use this in actionscript2 :
    variables_mc.Nom = "Francois";
    variables_mc.getURL ( "http://www.persomode.com/boutique/formulaire_perso.cfm?code_lg=lg_fr&num_formula ire=3", "_blank", "POST");
    In the cfm i have this :
    <input type="TEXT" name="Nom" id="Nom" value="" size="35"/>
    I just want change the value= "Francois".
    Example "Livedocs" in french: http://livedocs.adobe.com/flash/9.0_fr/main/wwhelp/wwhimpl/common/html/wwhelp.ht m?context=LiveDocs_Parts_bak&file=00001009.html
    When I want to send the code, nothing happens.
    What can I do?
    Thanks

    Okay no problem, I got it sorted! Not sure how exactly, I just seemed to start over again (with regards to the posting to a web page bit) and it fixed it.
    Have a play with it and give some feedback: http://www.rightjustified.co.uk/flash/squares/

  • Aggregator: Setting up navigation from one SWF to the end of a previous SWF.

    If anyone has a strategy that has worked for them, please let me know. In the mean-time, I'll try an idea I have that employs a main swf to hold variables and set those variables with navigation buttons. For example, if the back button is clicked, I can set a variable indicating the target location for the previous file is the last page. I can use a conditional statement on the first slide.
    I'll let you know.
    Thomas

    I'm beginning to wonder if I am misunderstanding the purpose of aggregator. I always try to keep .swf files small. I planned to use aggregator to host variables from subordinate swf files. The Adobe help file at http://help.adobe.com/en_US/captivate/cp/using/W8c1b83f70210cd101-1ff8d6a911d0a0500a3-8000 .html seems to suggest a different vision. If the aggregator's only function is to combine multiple swfs into one giant swf, then clearly the author of Flash's scenes has escaped the asylum.

  • I sent some emails from one of my email accounts and now it shows that these emails have been simultaneously sent from two of my email accounts

    I sent a few emails from one of my accounts that are set up in my Thunderbird. Now I see that they have been sent from two of my accounts, simultaneously. It shows them in both Sent folders and with the respective email address as sender.
    Those email accounts have been set up in my Thunderbird for a long time now and have been working correctly until now.
    How can I prevent this from happening again? I don't want to send people messages from two different emails at the same time.
    I'd appreciate any help on this.
    Thanks,
    Borislav

    In my case, TB is sending a copy of all my sent mail to the account that is associated with the smtp server. I have four accounts that I check via TB and the sent mail is being kept in the original folder and also in the sent folder of the account to which the smtp server is connected. If I change the smtp server from one gmail account to another, the sent mail follows. I then have two copies of the sent email, one in the original folder and one in the smtp server account's sent folder. I only want the one in the original folder. How do I stop the sent email from also being saved in the smtp account sent folder?

Maybe you are looking for