I need to access/pass variables'(s) of a .swf file into another .swf file.

Hi all,
I have basic knowledge of Flash and AS3.0.
Suppose i have a flash swf file(main.swf). In this main.swf
file, i loaded another swf file(sub.swf) by writing the following
code snippet in main.swf file as shown in Attach Code:
Now, how to acess the data present in main.swf into sub.swf.
Note: Here data represents values/data stored in
variables/objects of main.swf file.

Does this actually work -- assigning variables directly on the loader?  I'm interested in setting flash variables on the loaded SWF, but I get a compilation error when trying something similar:
Error: Access of possibly undefined property x through a reference with static type flash.display:Loader.
     [exec]
     [exec]             textLdr.x = 50;
I also tried casting the loader to Object, which compiles but then fails at runtime.
-Dave

Similar Messages

  • I need help with migration....i need to take movies off 1 hard drive and put into another then into my iPad

    I need help taking movies off of 1 hard drive and putting into another....then putting into my ipad

    Drag them from one hard drive then drop them onto the other. Then you must import them into iTunes in order to sync them to your iPad.

  • Newbie needs help with passing variables or creating flash object based on parameters

    Hello Community,
    I'm an amateur developer of Ms Access databases. In one of my applications I want to visualize the options available when reaching a certain score.
    What I'd like to get from this trial period, is a flash animation of a dartboard. Depending on an array of variables that provides the fill color (or reference thereof) the layers of the flash object will be dynamicly created, altered, or switched. The dartboard itself remains "static". I'm hoping to use 9 colors.
    I can manipulate the array any way needed. I can provide XML coding to pass the array variables. I'm just too new and untrained to incorporate this in a Edge animation or Dreamweaver.
    There is no need for interaction, once the object is created (ie no user feedback).
    Can someone point me in the right direction?
    thanks in advance,
    Jay from Stockholm

    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"]);
    }

  • I have iMovie '11, and I am unable to access mpeg HD video files that I want to edit.  The files are fine (I can open and watch them using VLC), but I cannot seem to import the files into iMovie. File Import does not work.  Any suggestions??

    More detail: I have a bunch of mpeg HD video files that were shot on a SONY HDR-HC3 Handycam camcorder.  I would like to edit these into a single video production.  I can access and view the mpeg files using VLC (Quicktime does not work with them).  However, I seem to be unable to get the mpeg files to interface with iMovie '11 -- I cannot use the File --> Import command, nor can I drag-and-drop them into iMovie.
    Is there something anyone might suggest to get this to work?  Or are these files incompatible with iMovie?  If so, I assume I must purchase a different video editing software program (e.g. Adobe Premeir Pro).  Suggestions???
    Many thanks in advance for your time and consideration

      Yes, I tried that.   The files were ordered by their original numbers as imported from the camera, but I batched them through Phocoshop to downsize all of them into a more manageable file size.   I opened that destination folder from quick time  from where it said select image sequence.   I clicked on the first one and opened it.   The result was a large image with an arrow indicating a movie was ready to go.   When I pressed the arrow, though, I realized it had only imported that one frame so there was no movie.   The files are Jpgs and are about 450 KB each. 
        To your knowledge are there any links to iMovie tutorials or quick time tutorials that may address this situation?  Maybe there will be one I haven't looked at yet. 
        Thanks

  • Help needed to load a flash file from another flash file

    This is a two part question - but I am sure that answering
    one will solve the other.
    I have a menu.swf file, and if I click on the top button it
    should load module1.swf. (Which it does) - however I can see the
    menu.swf file underneath the module1.swf file.
    The second part of the problem is that when I click on the
    top button of menu.swf, I want it to goto a specific location
    within module1.swf ( say the 8th page )
    If I use loadmovienum ("module1.swf",0) it opens a new window
    - instead of replacing menu.swf
    any ideas

    Use loadMovie() or loadClip (with the MovieClipLoader class)
    depending on how much you want to know about/control the load. With
    these you can specify a target movieClip for the load.
    Not sure what you mean by 'location'. If you're talking
    frames, you can use the load's target movieclip as a reference to
    the swf and use gotoAndPlay - but you have to make sure the swf is
    loaded first.

  • I am trying to make a home movie and add itunes but it doesn't want to accept the m4 file type. I downloaded something I thought would help but no luck. I am using windows movie maker and need music. How do I convert my purchased music into a usable file?

    My movie program wont recognize the itunes format .m4a. Any suggestions? I downloaded a program to help convert it but didn't work.

    In iTunes 11 uncheck the preferences setting in in the iTunes Preferences panel "Advanced > Copy Files to iTunes Media folder when adding to Library"

  • I NEED HELP ON COMBINING FILES INTO ONE PDF FILE

    HOW CAN I TAKE 6 FILES AND MAKE THEM INTO ONE PDF FILE?

    Hi GOLDENSOROR
    How to merge files into one PDF:
    Within Acrobat XI, select File > Create > Combine Files into a Single PDF.
    Click Add Files and select the files you want to add.
    Click, drag, and drop to reorder the files and pages. Double-click on a file to expand and rearrange individual pages. Press the Delete key to remove unwanted content.
    When finished arranging the files, click Combine Files.
    Select File > Save As > PDF.
    Name your PDF file and click Save.
    Please refer : http://www.adobe.com/products/acrobat/merge-pdf-files.html

  • Custom taglib access the variable of jsp in the tag class

    Hi guys:
    I have a question about taglib.the scenario below
    there are a set of tag,they all need to access a variable that declare in the jsp.yes ,I can use the approach like this,
    first I declare a variable
    <%!String variable="test";%>
    then pass the value
    <myTag:hello att="<%=variable%>"/>,but I think that's stupid,because all tags access the same variable.why not get the variable in tag class?
    for example
    public int doStartTag() {
    String variable=;//get the variable at here
    I mean,I want to get the variable's value in my tag class directly without passing parameter in the jsp via attribute of tag ?
    can I do like this?if yes,how can I?
    thanks advance!

    Hi,
    Review pageContext, TagSupport from the JSP and Tag Extensions API. You can put the variable into any of the four scopes and retrieve it using the pageContext object.

  • Accessing the variable in field symbol of nested internal table

    Hi,
    I am unable to access the variable in field symbol.
    The data in field symbol has nested structure. We need to access a variable in nested structure.
    Please find the code below:
          LOOP AT <i_fincorp> into <fs_fincorp>.
            l_madefor = <FS_FINCORP>-data_UI-ZZ0010.
          ENDLOOP.
    datatype of <i_fincorp> is type any table and <fs_fincorp> is type any.
    there is a structure 'data_ui' in <i_fincorp> and we need value of field 'ZZ0010' in data_ui structure.
    But, we are getting syntax error for statement in loop stating "There is no component like 'data_ui' in <fs_fincorp>".
    Can anyone please help me solving this issue.
    Regards,
    Santosh

    So simply access it dynamically
    data: nested_field type c length 50.
    field-symbols <nested_field> type any.
    "build the nested field name dynamically
    concatenate
           'DATA_UI'    "first give structure name
           'ZZ0010'  "then give field name (all in uppercase!)
    into nested_field
    separated by '-'.  "now you have DATA_UI-ZZ0010
    "so assing this nested field
    LOOP AT <i_fincorp> into <fs_fincorp>.
       assign component (nested_field) of structure <fs_fincorp> into <nested_field>. 
    ENDLOOP.
    Regards
    Marcin

  • Using query strings to pass variables...

    I'm trying to use the query string method to pass some
    variables into a SWF, but I can't seem to get it to work. All of
    the documentation I've seen references the object/embed method for
    displaying the SWF, but I'm using Dreamweaver's
    AC_RunActiveContent.js method to display the SWF. Would this cause
    a problem for the query string?
    Here's what I'm trying in the HTML that houses it:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    <link href="../bk.css" rel="stylesheet" type="text/css"
    />
    <script src="../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','301','height','240','src','videoplayer','quality','high','pluginspage','http://www.ma cromedia.com/go/getflashplayer','movie','videoplayer'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="301" height="240">
    <param
    name="movie" value="videoplayer.swf?vid=dbc2006" />
    <param name="quality" value="high" />
    <embed
    src="videoplayer.swf?vid=dbc2006" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="301"
    height="240"></embed>
    </object></noscript>
    </body>
    </html>

    I've been doing a little research... not being a programmer,
    I'm a little out to lunch on this stuff. I now realize that what I
    put in the HTML page is meaningless, unless the viewer's browser
    won't use JavaScript.
    I now know that I need to define my variables in the HTML
    page, and have the .js file recongnize and use them.
    That's where my lack of knowledge really gets in the way. :)
    Does anyone have any thoughts on how to modify the .js file to put
    my "?vid=dbc2006" into the string?
    Thanks!

  • Passing Variables across stage in OSB

    Hello All,
    I am using OSB 11g and I am new to this, for my project I have created a proxy service where in the message flow I have created a conditional branch, within that I have given pipeline->stage->assign. In Assign, I am assinging an expression value to a new variable created for that Assign. I need to use this variable outside the stage and branch for another branch activity. Is it possible to make this variable accessible to activities outside the stage and branch??
    Is there any other better method to create variables which can be used across the message flow...like how we use in BPEL.
    Please guide me to proceed with this...

    Can you let us know your use case? If your message flow starts with a pipeline pair and in that pipeline you declare a var, say myVar and after that pipeline you have a conditional branch then in the each and every branch you may access that variable (myVar). If any of the pipeline in any conditional branch defines it's own myVar then the local myVar will override the global one.
    Can I use the variable outside the pipeline or will the variables be accessible only within stages of pipeline??When you say outside, then what do you mean by that?
    Regards,
    Anuj

  • Passing Variables from One Class to Another

    Hello, I am new to Java Programming and I'm currently starting off by trying to build a simple application.
    I need help to pass variables created in one class to another.
    In my source package, I created 2 java classes.
    1. Main.java
    2. InputFileDeclared.java
    InputFileDeclared reads numerical data from an external text file and store them as string variables within the main method while Main converts a text string into a number.
    Hence, I would like to pass these strings variables from the InputFileDeclared class to the Main class so that they can be converted into numbers.
    I hope somebody out there may enlighten me on this.
    Thank you very much in advance!

    Values are passed from method to method, rather than from class to class. In a case such as you describe the code of a method in Main will probably call a method in InputFileDeclared which will return the String you want. The method in Main stores that in a local variable and processes it. It really doesn't matter here which class the method is in.
    You InputFileDeclared object probably contains "state" information in its fields such as the details of the file it's reading and how far it's got, but generally the calling method in Main won't need to know about this state, just the last data read.
    So the sequence in the method in Main will be:
    1) Create an new instance of InputFileDeclared, probably passing it the file path etc..
    2) Repeatedly call a method on that instance to return data values, until the method signals that it's reached the end of file, e.g. by returning a null String.
    3) Probably call a "close()" method on the instance, which you should have written to close the file.

  • Passing variable from one template to another

    We have problems in the BI7 environment with passing variables across from one web template to another.
    In BW3.x there was a Java Script Command SAP_BW_URL_Get used to construct URLs.
    (Please also see the SAP documentation: http://help.sap.com/saphelp_nw04/helpdata/en/b4/0fa239cec06b40e10000000a11402f/content.htm)
    In BI7 this command seems to be not existent.
    But as it is such a basic functionality I can’t believe that is not available anymore.
    I guess it is replaced by another command.
    Could you help us to find a functionality that replaces the SAP_BW_URL_Get command?

    Hi Andrew,
    Did you manage to find any solution for this one?
    Currently we are also facing the same problem.
    Thank you in advance.
    Best regards,
    Fen

  • Using variables to go to a section of a swf

    Hi,
    I have been working on a project that I finally realized
    could have been, and will be, easier if I used variables within my
    AS. So I came home this evening and started working on my idea and
    after several hours of it not working, working part way, and
    googling like mad I decided to try you all. I hope you can help.
    The site I'm working on I've actually split up into multiple
    swfs for easier maintenance and I'm using one container swf to load
    everything in. The problem I have is that there is a "past" section
    where the user can select a year and view everything about the
    company that happened in that year (containing text, links to
    photos, sometimes video, etc.).
    So the past section is loaded into level 1 and when the user
    clicks on a year I'm creating a variable called year given the
    value of that year (2007, 1984, etc). The year button also unloads
    the past section swf and loads another swf in level 1. I have some
    actionscript at the beginning of that swf that says
    if (year=2007) {
    gotoAndPlay("2007");
    } else if (year=2006) {
    gotoAndPlay("2006");
    For each year I'll have some links, more buttons, and/or
    video come in and there's also a button to go back to the past
    section. One of my problems is that it always goes to the frame
    labelled "2007". I did get it to go to 2006 once, but I was using
    two if statements instead of the if and else if. The second problem
    is that when the user clicks back to the past section I need to
    empty out the variable so that they can choose another year and
    pass that variable.
    Can anyone offer any advice, suggestions or examples?
    Thanks!
    phej

    I have been having a similar problem, and being quite new to
    Flash, I'm at a loss on how to fix it. My issue is with a template
    I purchased. This template has the main content pages nested a
    couple layers deep. I need to be able to send people to a specific
    URL that I'm hoping to get to load the movie and bring up the one
    specific clip and not the main start.
    I had tried using a dynamic text field to check if the
    variables I was passing in through the URL were making it in (with
    the correct code placed in the embed and object tags). I gave the
    var box of the dynamic text the name of the variable I was passing
    in: showPage.
    This is what was displayed in the text box instead:
    _level0.pages001.pages.instance115.showPage
    Can I glean any information as to how to get this one clip to
    be bookmarked? I have tried by passing in variables and also by
    setting a Named Anchor in the key frame that loads this clip. That
    code worked only as far as putting the NA in the url like it was
    supposed to, but the actual link when pasted back in the browser
    brought you back to the main start.

  • Pass multiple values as single input parameter into pipelined function

    Hi all,
    My need is to pass multiple values as single input parameter into pipelined function.
    For example - "2" and "3" are values of input parameter "t":
    with data as (
    select 1 as t from dual union all
    select 2 as t from dual union all
    select 3 as t from dual union all
    select 4 as t from dual union all
    select 5 as t from dual
    select * from data where t in (2,3)Is it possible at all?

    Not exactly sure, but usually 'multiple values'+'pipelined function' = some IN-LIST related approach?
    See:
    SQL> create table data as
      2  select 1 as t from dual union all
      3  select 2 as t from dual union all
      4  select 3 as t from dual union all
      5  select 4 as t from dual union all
      6  select 5 as t from dual;
    Table created.
    SQL> --
    SQL> CREATE OR REPLACE FUNCTION in_list (p_in_list  IN  VARCHAR2)
      2  RETURN sys.odcivarchar2list PIPELINED
      3  AS
      4    l_text  VARCHAR2(32767) := p_in_list || ',';
      5    l_idx   NUMBER;
      6  BEGIN
      7    LOOP
      8      l_idx := INSTR(l_text, ',');
      9      EXIT WHEN NVL(l_idx, 0) = 0;
    10      PIPE ROW (TRIM(SUBSTR(l_text, 1, l_idx - 1)));
    11      l_text := SUBSTR(l_text, l_idx + 1);
    12    END LOOP;
    13 
    14    RETURN;
    15  END;
    16  /
    Function created.
    SQL> --
    SQL> select *
      2  from   data
      3  where  t in ( select *
      4                from   table(in_list('1,2'))
      5              );
             T
             1
             2
    2 rows selected.http://www.oracle-base.com/articles/misc/dynamic-in-lists.php
    or
    http://tkyte.blogspot.nl/2006/06/varying-in-lists.html

Maybe you are looking for

  • Class is no longer valid

    Hi,I have been working mostly in Flash and only two days in Dreamweaver CS4. I recently  started a project that was based on a Tutorial for CS3 that is called a panning widget. It look like something I can use, however, when I save all I get an error

  • Exchange Server 2010 Outlook Client Stops Responding

    Greetings- This issue is with Exchange Server 2010 sp2 using Outlook 2013 clients in AD environment. Single server, single database (80GB) , 60+ users, Windows 8/8.1 workstations. All of a sudden our users started experiencing issues yesterday. One o

  • Staging Area - Sans Transformations?

    I am struggling to come up with a proper term for a database that will contain untransformed application data.  This would be an EL process what will pull application data from the source, and insert it into the "staging" area.  A subsequent job will

  • I run logic pro 9.1.5 in 64 bit mode on lion osx and my waves plug ins won't show up. Any suggestions?

    recenlty i purchased  the Kramer mpx master Tape plug in from waves and i try to make it work in logic but no luck.. I switch it as well in 32bit mode some plug ins from wave are showed up  but they are not operational. There are a few of them that i

  • MS Project client vs. PWA: Who needs what in my organisation?

    Dear Forum, I am currently rolling out Project Server 2010 and due to a limited number of MS Project Client licences available I need to manage the allocation of user licences carefully. In this course some questions came to my mind: Who in my organi