Variables - Passing from frame to frame

Hello,
I am wondering if anyone can help me, and what I need to do
is even possible :S
I have a simple flash document where all the code is running
in frames on the timeline, not the most efficient way I know, but
it is sufficient for what I need to do in this case :D
I have an input field on the first frame and the user puts
their name in, this then gets passed to a variable named
"forename". The thing I need to do is pass that variable onto the
next frame to input into a dynamic text field.
I have put the code off the first frame below to try and
explain better.
var forename:String = "";
forename = forename_txt.text;
So I need to take the forename and put it into a text field
on the next frame. However at present flash throws an error up, in
the past I would have solved this using a _global variable, but
this no longer exists in action script 3.0 does it??
Many thanks for any help, it is greatfully recieved.
Kind regards
Jude

If you declare a variable on the first frame of the timeline,
you should be able to access it no matter what frame you are on.
//FRAME 1
var forename:String = "";
btn.addEventListener(MouseEvent.CLICK, nextFunc);
function nextFunc (ev:MouseEvent):void {
btn.removeEventListener(MouseEvent.CLICK, nextFunc);
forename = forename_txt.text;
gotoAndStop(2);
//FRAME 2
trace(forename); //outputs the text that was in
forename_txt

Similar Messages

  • Variable passing from sqlplus to linux.

    I have a procedure like (datapump_hr_api), after its completion, I have to grant some grants to user and then create a view which will depend on the datapump_hr_api parameter (TARGET_FIN_HR ). it will generally pass the two username, admin,hr_fin, now I have to connect to Admin and give the grant and then connec to hr and create the views.
    *****datapump_hr_api*****
    create or replace procedure datapump_hr_api(TARGET_FIN_HR_NAME varchar2) is
    h5 NUMBER; -- Data Pump job handle
    job_state VARCHAR2(30); -- To keep track of job state
    sts ku$_Status; -- The status object returned by get_status
    target_admin varchar2
    TARGET_FIN_HR varchar2(32) := TARGET_FIN_HR_NAME;
    SOURCE_FIN_HR varchar2(32);
    dumpfile varchar2(32);
    logfile varchar2(32);
    job_name varchar2(32);
    BEGIN
         select dumpfile,SOURCE_FIN_HR into dumpfile,SOURCE_FIN_HR from source_impdp;
         logfile := TARGET_FIN_HR || '.log' ;
         job_name := TARGET_FIN_HR || '2_job' ;
         h5 := DBMS_DATAPUMP.OPEN('IMPORT','FULL',NULL,job_name);
         DBMS_DATAPUMP.ADD_FILE(h5,dumpfile,'DATA_DIR');
         DBMS_DATAPUMP.ADD_FILE(handle=>h5,filename=>logfile,directory=>'DATA_DIR',
         filetype=>DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
         DBMS_DATAPUMP.METADATA_REMAP(h5,'REMAP_SCHEMA',SOURCE_FIN_HR,TARGET_FIN_HR);
         DBMS_DATAPUMP.METADATA_FILTER(h5,'EXCLUDE_PATH_EXPR','like''%/TABLE/INDEX/STATISTICS/INDEX_STATISTICS''');
         DBMS_DATAPUMP.METADATA_FILTER(h5,'EXCLUDE_PATH_EXPR','like''%/TABLE/STATISTICS/TABLE_STATISTICS''');
         DBMS_DATAPUMP.START_JOB(h5);
    job_state := 'UNDEFINED';
    while (job_state != 'COMPLETED') and (job_state != 'STOPPED') loop
    dbms_datapump.get_status(h5,
    dbms_datapump.ku$_status_job_error +
    dbms_datapump.ku$_status_job_status +
    dbms_datapump.ku$_status_wip,-1,job_state,sts);
    end loop;
    dbms_output.put_line('Job has completed');
    dbms_output.put_line('Final job state = ' || job_state);
    dbms_datapump.detach(h5);
    ----->has to be invoked create_view(TARGET_FIN_HR,Target_admin ),
    END;
    create_view statement:
    create_view: contain
    conn Target_admin/admin
    grant insert to TARGET_FIN_HR.table;
    conn TARGET_FIN_HR/fin_hr
    create view view_name as select * from Target_admin.table;
    ----

    Yes Sir,
    You are right... Your service is not just $200 hundred, it is priceless. I have never been in programming. So I am learning. And as per as "exec immediate" is concerned I have used it(Problem with SQL query sequence and you can c in the previous posting(problem with it is if you have 5 grants and 5 view, what you do). One more thing, I was just thinking if we can developed some thing like sed command does(on linus). It has to just change some table_name and username in a file but the problem was it has to pass the variable to linux and then we have to connect to ssqlplus and then we ahve to again run. I was just thinking to have expert view.
    Is not this forum made for that?
    Message was edited by:
    sanora600

  • Sort Main Report on variable passed from Subreport

    Post Author: realw
    CA Forum: Formula
    I'm working on a CR XI report. I want to be able to sort the main report on a value in the subreport. I am trying to create a shared variable to pass that value from the subreport to the main report. So far, however, the formula containing the variable in the main report is not appearing as an option in the Sort dialogue box.
    My first question is, can this be done?
    If the answer is yes, then which sections in the subreport and main report should the formula appear in?
    What I have at this point is:
    In the last Details section of Subreport, formula @ssSubCreator
    WhilePrintingRecords;Shared StringVar Cre;Cre:= {CreCreat_csv.SummaryData};
    In the Report Header of the Main report, formula @ssCre
    Shared StringVar Cre:="";
    In the Details section of the Main report, following the section containing the Subreport, formula @ssCreator
    Shared StringVar Cre;Cre
    I can see that the data is passing correctly to the Main report. I've tried moving the formulas around to different sections in the sub and main reports but haven't gotten the formula to be sortable.
    Thanks in advance for any assistance,
    Will

    Post Author: bettername
    CA Forum: Formula
    How about just grouping the data in the main report on the formula? (Supress group header and footer, obviously)
    I don't have crystal to hand right now to check if that'll work though - you may run into problems with the 'cannot evaluate at this time' issue... but I use this technique for sorting data based on a chosen parameter (say: surname, forenames, age) in this way...

  • Global Variables passing from standard form for use on custom form

    Hi,
    I'm trying to grab a value from a standard form, and pass it to a new custom form, which I am opening automatically from the standard form via personalizations. Is anyone aware of a way to send a value from one form to another? I was going to try using a global variable, which it looks like you can set through personalization. I tried doing it by passing the value as a form parameter, which works if I hard code a value, but it doesn't work if I refer to a value from the standard form.

    in your E-Business-environment may exist some special codings, which you have to think of, when passing parameters through the application.
    Copy the question to your EBS-Forum. They know ways using personalization and passing parameters

  • Creating a array from variables passed from php

    I have passed variables from PHP to flash successfully but
    now need to firstly make them into an array. A next button and
    previous button has to trigger the step through the array.
    Any ideas?

    I have a PHP script and I get flash to load the variables
    from it. The code is as follows. Taken out the connection to DB for
    security.
    <?php
    $hostname_conn = "";
    $database_conn = "";
    $username_conn = "";
    $password_conn = "";
    // establish a SQL connection to the host - host, user, pass
    $conn = mysql_pconnect($hostname_conn, $username_conn,
    $password_conn) or trigger_error("The site database appears unable
    to provide a connection. Please contact support.
    ".mysql_error(),E_USER_ERROR); // or die("The site database appears
    unable to provide a SQL connection. Please contact support.");
    // connect to the right DB (there may be multiple db's on the
    server) dbName
    mysql_select_db($database_conn, $conn) or die("The site
    database appears to be unavailable. Please contact support.");
    $qCheck = "SELECT * FROM pics";
    $rsCheck = mysql_query($qCheck) or die("Check Failed :
    ".mysql_error());
    $cCheck = mysql_num_rows($rsCheck);?>
    &img=<?php
    while($row= mysql_fetch_assoc($rsCheck))
    print($row["img"]);
    ?>

  • Variable passing from unix to sqlscript and using in insert

    please let me know how can I read a value from unix to my insert statement
    SYSTEM>!cat test.sh
    sqlplus system/oracle @/export/home/oracle/test.sql $1,$2,$3
    test.sql
    begin
    insert into source_impdp($1,$2,$3);
    commit;
    end;

    Obviously this will work only when you have shell variables 1, 2 and 3. However I don't think variable names can start with a digit.
    So you would end up with either 1 of the two below solutions
    export var1=....
    export var2=...
    export var3=...
    # Please note in the following line the comma should be a space
    sqlplus system/oracle @/export/home/oracle/test.sql $var1 $var2 $var3
    define meaningful1='&1'
    define meaningful2='&2'
    define meaningful3='&3'
    declare
    begin
    insert into source_impdp('&meaningful1','&meaningful2','&meaningful3');
    commit;
    end;
    OR
    export var1=....
    export var2=...
    export var3=...
    sqlplus system/oracle @/export/home/oracle/test.sql <<EOD
    define meaningful1='$var1'
    define meaningful2='$var2'
    define meaningful3='$var3'
    declare
    begin
    insert into source_impdp('&meaningful1','&meaningful2','&meaningful3');
    commit;
    end;
    EOD
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • Pass parent frame to Dialog, from panel within CardLayout

    Hi!
    I have a main class that uses card layout (EntryPoint.java), and where I instantiate all my panels from. All my panels(cards) are seperate classes.
    I have a login class(card) that I call from my main class (LoginClass.java). When it displays and the user wants to change his/her password - I created a custom dialog to pop up and handle the request. This custom dialog is another class on it's own.
    My problem is I cant seem to pass the frame to my dialog. I created a frame only in my main class, seeing the login panel is only a card displayed in my Main class.
    I have followed the example at http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html
    Can anyone please assist me? I would greatly appreciate it. ;o)
    Here is some code if it helps:
    EntryPoint.java -----------------------------
    public class EntryPoint extends JFrame {
        //instantiate the main frame
        public JFrame frame = new JFrame();
        //create a panel to add all of the components to
        private JPanel cards = new JPanel();   
        LoginClass lc = new LoginClass();
        public EntryPoint() {
            cards.add("login", lc);
            //add the panel to the frame
            frame.getContentPane().add(cards, BorderLayout.CENTER);
            frame.getContentPane().add(buttons, BorderLayout.PAGE_END);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
    }LoginClass.java ----------------------------------
    public class LoginClass extends JPanel  {
        private JButton loginB = new JButton("login"');
        CustomDialog customDialog;
        public boolean loginProceed = false;
        public LoginClass() {
            //this is where it shows in the example i have to pass parameters
    //        customDialog = new CustomDialog(frame, "geisel", this);
    //        customDialog.pack();
            this.setLayout(new GridLayout());
            this.add(loginBut);
            //set action listener to button ..................
        public boolean loginBut_actionPerformed(ActionEvent e) {
           //if password needs to be changed, invoke the dialog with this text
    //                        customDialog.setLocationRelativeTo(frame);
    //                        customDialog.setVisible(true);
    //                        String s = customDialog.getValidatedText();
    //                        if (s != null) {
    //                            //The text is valid.
    //                            setLabel("Congratulations!  "
    //                                     + "You entered \""
    //                                     + s
    //                                     + "\".");
    }My actual dialog is pretty much the same as
    http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/CustomDialog.java
    Thanx for your help and time ;o)

    Change the constructor for LoginClass and give it an argument:
    public LoginClass(JFrame frame) {
        customDialog = new CustomDialog(frame, "geisel", this); // this line looks weird but without the code I cannot say for sure that it is wrong.
        customDialog.pack();
        this.setLayout(new GridLayout());
        this.add(loginBut);
    }By the way.. if you are instantiating a JFrame in the main class, why does the main class also extend JFrame? Pick one pattern or the other and stick with it... I recommend that you NOT extend. So your JFrame oriented class should have a member JFrame and the JPanel oriented class should have a JPanel. This is not the way most people do it, but it is better design, even if only marginally so.
    Drake

  • Disappearing graphics in CMYK PDF output from Frame 12.0.3

    (I thought we already had a thread about this, but I can't find it!) - but I've just run into the same problem with Frame 12 that I've read about other people having.
    I have Frame 12, fully patched. With a book file selected (and all my chapter files open), I do File > Save as PDF,
    choose the settings I want on "PDF Setup for Selected Files" dialog, and off I go.....
    Those settings include the CMYK radio button.
    I don't get any error messages, but loads of items are missing (blank) in the resulting PDF - mostly graphics, but also some coloured table border, text, all sorts of stuff really.
    If I select the RGB radio button instead, everything is present (although I want a CMYK PDF!!)
    What is going on? Is CMYK PDF generation just broken in Frame 12?
    I seem to recall someone saying an imported .AI graphic was the culprit in their case, but my graphics are mostly all just PNG or PDF.

    > ... corporate branding asks for some text and table borders to be in a Pantone colour, and whilst Frame can pass Pantone colours unchanged into a PDF if you hide them inside an EPS graphic, it can't do it for text or coloured lines.
    It's close to a lost cause no matter how you do it, due to FM having deminimus color management.
    Pantone colors from Frame end up downstream as just uncalibrated CMYK values, unless the object's color definition is tagged with and accompanied by the "PANTONE 123x" whatever string into the .ps of .pdf workflow (and the target app or system officially supports Pantone, and many RIPs do).
    Even so, for end user convenience printing on Windows, the PDF content is still going to pass through the Windows GDI, which, despite furious CMYK handwaving by Mr.Bill's Minions, is still an RGB engine. You say, but the color printers are using CMYK inks! Yep, you get yet another color space conversion if the print path isn't Ps or native PDF.
    What we've done is to figure out what the our entity colors are in sRGB space, and do all colors in RGB. BabelColor is a useful app for this task, as are one or more freebie web pages that provide sRGB equivalents for Pantone colors (but usually omit the word "pantone" entirely on their site, lest a rainbow of lawyers descend).
    We then tell the distill process to tag images for color management, using IEC 61966-2-1:1999. This actually results in RGB values in EPS files with embedded profiles matching RGB colors generated by Frame (for graphics objects).
    Getting Frame TEXT color to match as well aggravates the problem. You can get Distiller (and perhaps PDF rendering settings generally) to "tag everything for color management", but this turns black text into composite black, exploding the file size and slowing printing (and in the specific case of sRGB, is black still really black?). If print is your only target, and you can manage the black issue, this might be a solution (or just use some other color space, like Adobe RGB). Another possibility, where color text is limited, is to import it as EPS text from Illustrator.
    There might be aftermarket tools for what's really needed, which is "tag all color objects for color management".
    This is an area where some tool other than FM is usually indicated. InDesign has color management. I've never been able to figure out if Frame's ostensible DTP competitor has CM. Frame will never get CM, we are told consistently.

  • How can i get a component from frame?

    how can i get a JTextField component from the frame?
    in my program i use button and text fields, when button is pressed the action listener performs the needed actions: it must take the values in the text fields and do something with them,
    for example i have a button - view:
    look at the comments
    public class _ActionListener_search implements ActionListener {
         private JFrame frame;
         private database dtbs;
         public _ActionListener_search(JFrame frame, database dtbs) {
              this.frame = frame;
              this.dtbs = dtbs;
         @Override
         public void actionPerformed(ActionEvent arg0) {
              if (arg0.getActionCommand().equals("view_person"))
                                            //HERE i want to get values from text fields!
                                            //i need to get JTextField component from frame and use it
    view.addActionListener(new _ActionListener_search(frame, dtbs));how can i do it?
    is this a correct way?

    Encephalopathic wrote:
    If you know that you're going to need the data held in them why not give the class that holds them a public method that returns the Strings that they hold.
    public String getTextFieldXyzText()
    return textFieldXyz.getText();
    }Then if your actionlistener has a reference to this class's object, it can simply call the above method.That's what I was thinking. The view has a method getXyzText() and the listener (or some larger, enclosing controller) knows the view.
    What I would get away from is a single, switch-board listener hooked to a 100 unrelated buttons.

  • Video acquisition from frame grabber

    I wanted to acquire image from a video camera which only has analog output. To do that, I used a framegrabber, called :"Hauppaugel analog video giditizer".
    However, as I can see from the list, the framegrabber provides image with YUY 2 format and in the list of my Labview vision module, I could not find such type.
    I have written a code for acquiring image which works fine with normal web cameras. however, when I want to use it for acquiring the image from frame grabber, it gives following errors:
    1. Error code: 1074396120 Not an image
    2. Error code: 1074396015 Cannot connect to camera, it may be in use.
    I guess it has something to do with the formats of the picture, but I really don't have experience with that. Could you help me out? The code is attached.
    I lookforward to your advice and thank you in advance for the help.
    Attachments:
    usb-acquire-avi22.vi ‏69 KB

    Hello,
    First, you have to know that your camera must be Direct Show, otherwise, you won't be able to use it in LabVIEW.
    If it is compatible, then you will be able to grab image using IMAQ USB, but keep in mind that this set of VI is no longer supported as IMAQdx is fully compatible with DirectShow cameras, and much better than IMAQ USB.
    Regards

  • Premiere CS4. Video-individual images freeze. abrupt change from frame to frame.

    Hi
    I'm working with Adobe Premiere CS4... windows XP prof SP3 4GB RAM. ATI Radeon 38XX Graphic
    my problem is as following: working window: the projection of individual frames in a movie doesn't run smoothly, the change from frame  to frame is abrupt, almost robotic...it also freezes occasionally .. sound is fine though.
    I've reinstalled all recent graphic and sound drivers and also latest updates but the problem is still there...
    Please advice A:S:A:P
    Thanks,
    Elena

    Work through all of the steps (ideas) listed at http://ppro.wikia.com/wiki/Troubleshooting
    If your problem isn't fixed after you follow all of the steps, report back with ALL OF THE DETAILS asked for in the FINALLY section, the questions at the end of the troubleshooting link... most especially the codec used... see Question 1
    Read Harm on drive setup http://forums.adobe.com/thread/662972?tstart=0
    - click the embedded picture in Harm's message to enlarge to reading size

  • Cant' move images from frame to frame inside a Grid in InDesign. Please Help

    When creating a grid in indesign there is an option to move images from frame to frame, and having them rotate around the frames to see where each image is best to be placed. Example I created a grid with 6 images (2 rows and 3 columns) and now i want image 1 to be where image 6 is. I know there's a way by hitting the arrows and some other keys and have all the images start rotating. I did it once I just can't remember. Please help. How do you move the an image from one frame to another frame without having to go to edit place?
    Thanks,
    Paola

    Swapping images

  • Upgrading from Frame Maker 6.0 to Frame Maker 10

    Hi :
    We are trying to upgarde from Frame Maker 6.0 to 10. Have any of you tried this? For years we have been using Frame Maker 6.0 and we some how need to get all our legacy source files working in Frame Maker 10 as well. Do you think this is a good idea? Please advice.
    Thanks
    Clarity

    If you have content in Non-Western-Languages ...
    I would expect that to be about the same challenge for FM7.2 to FM8 as for FM6 to FM10.
    Going to FM8 or above you cross the relatively unmarked border at the Unicode frontier. You need to check your luggage for hidden text damage in transit.
    Safe MIF return to FM7.2 or earlier LegacyLand, with text intact, may be difficult.

  • Moving Away from Frames

    Hi, I'm attempting to move away from frames, but would like to have a webpage that keeps the links always available for the user to easily view off to the side wherever they might be on the site.  What would you suggest??  I've been reading and researching about templates, which is the direction that I'm heading towards to replace frames, but would like a list of available links always visible for the user to easily access. Is this possible? 
    Thank you in advance.
    Anthony

    Templates would allow you to build your navigation in the template page and propagate that navigation to every child page. To change a link you would edit the template page, save it, and your link edits would then be automatically propagated to all child pages of that template. You would then have to upload all the changed child pages to the remote server for those changes to be visible on the web. It is one of the several likely methods to give you this kind of maintenance leverage.
    Another way would be to investigate the use of DW's Library items for your navigation element. Like templates, one change to the Library item would then propagate automatically to all pages containing that Library item. Once again, these changed pages would have to be uploaded.
    Finally, server-side includes are the optimal way to handle this (in my opinion). The navigation code fragment is contained in a separate file which is uploaded to the server. The individual pages contain directives that instruct the server to include the file's code in each such page. In this case, you would edit the include file and upload that single file to the server. That one file upload would then express your edits in each page containing it.

  • Passing variable values from WAD to BEx

    Hi Experts,
    I am working with a query which is included in a web template. At the top of this template, I have several variables included in drop down boxes for the user to navigate through the data.
    With clicking at "open in Excel" a BEx-Query is started.
    My question: How can I pass the variable values from those drop down boxes to my Query in BEx?
    The current HTML code for starting the Excel BEx-Query looks like this:
    http://sapserver:port/x/x/x/rsr_bex_launch/bexanalyzerportalwrapper.htm?QUERY=Queryname
    Thanks in advance
    Marco

    If you export your report after selecting required drop down values, your report will be saved to Excel as it was filtered. You do not need any HTML code for this.
    My question: How can I pass the variable values from those drop down boxes to my Query in BEx?
    Why do you want to re-execute your query when you have already ouptut in the first screen shot?

Maybe you are looking for

  • Removing drag functionality of column in OBIEE 11g

    Hi all, Can any one say me how to remove the draging functionality for the columns in OBIEE 11g ? It is creating an issue for me when i hide the columns in pivot and has only rows over there. It is creating one more layer on the top of the measures.

  • Hard disk failure HP G7000 laptop

    Hi, I'm getting hard disk failure on a HP G7000 laptop. The machine boots fine from DVD drive using a Linux boot disk. Vista installed on machine. No recovery disk was created when machine was first bought and any disks provided with the machine whe

  • After upgrading to ios5 i lost a months worth of info

    I upgraded to ios5 transferring all my purchases to itune before i did so but once it upgraded and i went to use the phone i noticed there was no music or videos on my phone and all the photos i had taken apps downloaded or contacts i had added to my

  • How do I transfer music fro a BSP to my macpro?

    I have down loaded my music from my care on a BSP device and would like to down load it on my macpro.

  • Foreground Color of a Disabled AWT Component

    How do you change the foreground color of a disabled AWT component?