Using a swf generated by Flex from a Flash component

I know you can include and control a swf generated by Flash
within a Flex component. But can you do the inverse? Can you use a
swf generated by Flex within a Flash project/component?
We plan to develop a "core" module that would be used in a
lot of other Flash and Flex components we'll develop in the future.
This core would be a package of classes that could be easily
re-used by the components. There would be nothing visual in it,
only standard classes.
Even if this core would not contain any visual components, we
would like to develop it using Flex since we prefere Flex Builder
to the Flash editor to code and debug.
But I'm not sure if:
1) A core module like this, developped in Flex, could be used
by our Flash components or only by other Flex components?
2) If we use Flex to generated this core, will the resulting
.swf be bigger than if we would have used Flash to develop it?
Since there will be no Flex visual components in it, maybe it will
be as small? Is there a compiler parameter to tell Flex to only
include the minimum things possible in the generated .swf?
Any help or link about this would be really appreciated!
Thanks you in advance!
P.S. I apologize to those aware that this message was also
posted on another Flex related forum, but I received no reply on
it!

try this. for me it has worked.
import flash.net.URLRequest;
import flash.utils.Timer;
var loader:Loader = new Loader();
var timer:Timer;
var myclip:MovieClip;
//load the Flex Component
loader.load(new URLRequest("IS.swf"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
loaderDone);
addChild(loader);
function loaderDone(e:Event) {
timer = new Timer(100);
timer.addEventListener(TimerEvent.TIMER, handleTimer)
timer.start();
function handleTimer(event:TimerEvent):void {
//cast the loader.content into MovieClip to access
currentFrame.
myclip = loader.content as MovieClip;
if (myclip.currentFrame == 2)
however, i need to access properties of IS.mxml..
any data member would work..
or if i could dispatch an event in IS.mxml and catch it in
flash through IS.swf, it would work.
Pls somebody suggest.

Similar Messages

  • How can i detect if the picture or swf file is produced from legal flash?

    I have recently bought images and swf files from a student for my website.
    I've just realized that the images and swf might be from pirated flash product because i found out that
    the original flash is really and i mean really pricey! I don't believe he bought an original product.
    How do i detect if it is from a legal product? I'm worried as i'm going to put it in my website.
    I can't get the guy who did this for me as he is in another country already.
    If it is possible to detect this and it is indeed from pirated product, how can i make it legal again?
    Please help.

    Hey Rob,
    Its the same question, just that i want to know if it is possible to trace the source if the file is an image.
    If it is not possible to trace the source be it a swf or an image file, then i will just upload it to my website.
    I wouldn't bother to check if it came from a pirated flash product.
    The image is created from flash 8 just for me. It is not downloaded from another source.
    Thanks.

  • Retrieve changing values from TextInput Flash Component

    Hi,
    I've been banging my head against the wall with this one....
    I've placed aTextInput Flash Component on the stage which
    reads/displays a value from an external text file. So far so good.
    If I enter new text during run-time - editable is set to true
    - the TextInput component updates to reflect what I've typed. BUT,
    how do I retrieve that text to a variable? (I need to save the new
    value back to the external text file).
    Current code:
    myfieldtext = sprite(51).text
    And eventPassMode is set to passAlways
    this retrieves the initial value regardless of what I type.
    Any help appreciated!

    I'm not sure if this all helps, but I had to make a flash
    name input box
    recently. I was getting all sorts of weird results trying to
    get the text
    out of flash. It was giving me all the font info etc, and I
    just needed the
    name. So what I ended up doing is when they were done
    entering the text, I
    put the text into a variable within flash, then pulled the
    data from that
    variable rather than striaght out of the text.
    in director, in the behaviour attached to the flash sprite:
    myText = sprite("nameInput").getVariable( "myNameString",
    True)
    where the sprite is named "nameInput". It seems better to
    name the sprite
    and refer to it that way than using the sprite number, such
    as sprite(51).
    In flash I have the text input field named "textInput", and
    the following
    code attached to the save button. You may have to use a
    different event,
    like when they text input loses focus.
    on (release) {
    var myNameString = "";
    myNameString = textInput.text
    trace(myNameString)
    getURL('event:doEvent,1')
    Timm
    "tayl" <[email protected]> wrote in message
    news:edjutm$ptl$[email protected]..
    > Hi,
    >
    > I've been banging my head against the wall with this
    one....
    >
    > I've placed aTextInput Flash Component on the stage
    which reads/displays a
    > value from an external text file. So far so good.
    >
    > If I enter new text during run-time - editable is set to
    true - the
    > TextInput
    > component updates to reflect what I've typed. BUT, how
    do I retrieve that
    > text
    > to a variable? (I need to save the new value back to the
    external text
    > file).
    >
    > Current code:
    > myfieldtext = sprite(51).text
    > And eventPassMode is set to passAlways
    >
    > this retrieves the initial value regardless of what I
    type.
    >
    > Any help appreciated!
    >
    >
    >

  • Error when generating Java Classes from XSD

    I'm getting the following error when using oragc to generate Java classes from a schema:
    Error: Schema Class Generator failed to generate classes. oracle.xml.parser.schema.XSDException: Invalid facet 'pattern' in element 'simpleType'
    Any thoughts?
    Here's the part where it is getting the error:
    +111 <!-- Timestamp Type - Timezone portion is required and fractional seconds are prohibited -->
    +112 <xsd:simpleType name="TimestampType">
    +113 <xsd:annotation>
    +114 <xsd:documentation>Base type for a date and time stamp</xsd:documentation>
    +115 </xsd:annotation>
    +116 <xsd:restriction base="xsd:dateTime">
    +117 <xsd:pattern value="[1-9][0-9]{3}\-.+T[^\.]+(Z|[\+\-].+)" />
    +118 </xsd:restriction>
    +119 </xsd:simpleType>

    I would recommend using JAXB instead of the Oracle class generator. This will give a standards based object-to-XML platform.
    Oracle provides two JAXB implementations: one in the TopLink product, and the other in the XDK.
    For an example of using TopLink JAXB see:
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/jaxb/index.htm
    TopLink also provides the ability to map existing Java objects to an existing XML Schema, for an example of this see:
    http://www.oracle.com/technology/products/ias/toplink/technical/tips/ox/index.htm
    -Blaise

  • Flex Ajax bridge - flash player detection

    Does anyone know of a Flex HTML wrapper template which
    handles the express install (with history) user experiences in a
    manner which is compatible with the lifecycle of the Flex/Ajax
    bridge? Assuming JavaScript is enabled, the express install process
    creates the embed DOM node for the SWF dynamically; however, the
    FABridge scripts assume that the embed node(s) exist within the
    DOM; the the initialisation of the FABridge queries the DOM for
    ‘bridge’ instances (i.e. embed tags with the relevant
    flash vars). If the embed node is not present, the
    FABridge.instances object is not initialised correctly. This causes
    two problems: firstly, attempting to register an initialisation
    callback in the FABridge will fail, since the bridge instance is
    not known. Secondly, the ExternalInterface call from the Flash
    component to signify that it has successfully initialised does not
    have an endpoint to communicate with, meaning that the client side
    lifecycle cannot be instantiated.
    If anyone has come across a useful strategy to approach this
    problem, I'd be hugely grateful for any pointers.
    Thanks, Greg

    The html wrapper code generated by Flex Builder does this
    automatically if you have Project, Flex compiler, use Express
    Install checked.
    Tracy

  • I've gotten a kernel panic 4 times in a row while trying to reinstall lion osx from a flash drive to a reformatted hard drive.  How is this possible when there's "nothing" on my computer?

    My SSD failed and I was instructed to reformat my hard drive and restore my files.  I erase my hard drive using Disk Utility and reinstalled Lion from a flash drive. While Lion is installing, I get a kernel panic.  That's happened now four times in a row and I'm befuddled because I don't have anything on my computer to conflict right?  Please help.

    eubiedoo wrote:
      Do you think it's ram related?
    No way to tell unless you test it.  Like I said kernel panics are usually hardware related.  Since your Macbook Pro is from the "2009" era, run the Hardware Test disc which you should already have - Intel-based Macs: Using Apple Hardware Test 
    Apple Store diagnostic testings are FREE.  It's the repairs you are responsible for if out of warranty. 

  • How to use an SWF file generated by Flex as a Stand Alone file

    Whenever we compile an MXML file, there is an SWF file
    generated. This file is not a standalone file and will not work on
    any other computer expect on the computer where there is a Project
    file created by the Flex builder.
    Why am I not able to use that SWF file as a stand alone file?
    If I want to use that SWF file alone as in the SWF generated
    by Flash what do I have to do?
    Regards,
    Rashmi

    The swf file will run from anywhere. What's it doing when you
    try to open it on another machine?
    The only thing I can think of is if you're getting a security
    violation in which case you would need to read about Flash Player
    trust files and security.
    -Mac

  • Generating a report from RTF template using WSDL from ADF

    Hi,
    I am a newbie to ADF-BIP integration.
    I am using the wsdl http://<<ip>>:<<port>>/xmlpserver/services/PublicReportService?WSDL for generating a report from RTF Template in ADF.
    We are using Oracle Business Intelligence Publisher Release 11g (11.1.1) and JDeveloper 11g (11.1.1.5.0).
    I have a couple of merge variables in my RTF template and I am passing these variable using Report Request parameters.
    below is code I added for creating the report request.
    First I created publicReportService using webservice proxy.
        public static ReportRequest getReportRequestFromBIPWithTemplate(String reportFolderOnBIP,
                                                            String reportName,
                                                            String outputFileFormat,
                                                            String template,
                                                            HashMap params) {
          String reportAbsolutePath = reportFolderOnBIP + "/" + reportName + ".xdo";
          ReportRequest repRequest = new ReportRequest();
          System.out.println("report path:  " + reportAbsolutePath);
          repRequest.setReportAbsolutePath(reportAbsolutePath);
          repRequest.setAttributeTemplate(template);
          repRequest.setAttributeFormat(outputFileFormat);
          repRequest.setAttributeLocale("en-US");
          repRequest.setSizeOfDataChunkDownload(-1);
          System.out.println(params.size());
          ParamNameValue[] paramNameValue = new ParamNameValue[params.size()];
          ArrayOfParamNameValue arrayOfparamNameValue = new ArrayOfParamNameValue();
          Set set = params.entrySet();
          Iterator iter = set.iterator();
          int i = 0;
          while (iter.hasNext()) {
            Map.Entry me = (Map.Entry)iter.next();
            System.out.println(i + "--->>>" + me.getKey() + " : " + me.getValue());
            paramNameValue[i] = new ParamNameValue();
            paramNameValue.setMultiValuesAllowed(false);
    ArrayOfString values = new ArrayOfString();
    if (me.getValue() == null) {
    values.getItem().add("");
    } else {
    values.getItem().add((me.getValue()).toString());
    paramNameValue[i].setValues(values);
    paramNameValue[i].setName((me.getKey()).toString());
    arrayOfparamNameValue.getItem().add(paramNameValue[i]);
    i++;
    repRequest.setParameterNameValues(arrayOfparamNameValue);
    return repRequest;
    I generated report response bytes using below code
    {code:java}
    repRes = publicReportService.runReport(repReq,userID,password);
    reportStream = repRes.getReportBytes();I could see the generated PDF but the supplied variables are NOT reflected in place of merge variables.
    Ex: In template
    Welcome, <<merge variable, userName>>
    {code}
    Generated PDF should have
    {code:java}
    Welcome, Hello World
    {code}
    Instead of the above I am getting
    {code:java}
    Welcome,
    {code}
    I am looking for a suggestion, Please help me in this regard.
    Thanks,
    Satya
    Edited by: 921138 on May 30, 2012 11:11 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Please let me know if any one has update for this.
    Thanks in advance,
    Satya

  • ERROR WHEN USING JHEADSTART TO GENERATE ADF BUSINESS COMPONENT FROM DESIGNE

    Use JDeveloper to generate a ADF Businness component using Jheadstart from
    Designer the following error is thrown
    oracle.jmig.source.ExtractorException: Caught SQL exception:ORA-01795: maximum number of expressions in a list is
    1000
    at oracle.jmig.source.designer.DesignerExtractor.extract(DesignerExtractor.java:136
    at oracle.jmig.MigrationRunnable.extract(MigrationRunnable.java:349)
    at oracle.jmig.MigrationRunnable.migrate(MigrationRunnable.java:183)
    at oracle.jmig.MigrationRunnable.run(MigrationRunnable.java:122)
    at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
    at java.lang.Thread.run(Thread.java:595)

    Yes, this is a known issue. We will fix this for the next release.
    Having said that, the next release will contain the JHeadstart Forms2ADF generator which directly reads Oracle Forms .fmb files to ADF, without the need to use Oracle Designer, avoiding problems like this alltogether.
    Steven Davelaar,
    JHeadstart Team.

  • Generating next number from the SQL database using java

    Hi friends, I have a problem and need your help. I am working on a project about submitting claims form through the adobe PDF file and SQL database. I have problem working on a web service (written in java) that will generate the next Invoice Number from the SQL Database table. The field type for the column is text(var char). *Example: I first need to get into the table and search for the last Invoice number in the table and if the last invoice number in the table from the database is 3, i would want to generate the next number which is 4 and filled it up in the PDF file through web service that i am implementing. Can you all provide me some guidelines on how to implement this method in my web service?
    Thanks a lot. I need it by today. Hope someone can reply this as soon as possible.
    Lim89
    Edited by: LIM89 on Apr 2, 2008 7:10 PM

    far simpler to use a sequence generator, which most databases support.
    Suggested method to get the max value in the column is NOT secure, unless you lock the entire table for update before you do so, which is a severe performance penalty.

  • Generating Text file from table using Shell script

    I am using KSH for generating and FTPing a text file from a table.
    While generating Text file I am not getting my Column names in orderly manner.
    q2="select COLUMN1||' '||COLUMN2||' '||COLUMN3 from table1;"
    set pagesize 0
    set head off
    set trimspool on
    set trimout on
    set colsep ' '
    set linesize 1500
    set trimspool on
    spool /ss/app11/oastss/reports/$file2
    select 'COLUMN1'||' '||'COLUMN2'||' '||'COLUMN3' from dual;
    $q2
    spool off;
    EOF
    I am getting the result some what like below in text file
    COLUMN1 COLUMN2 COLUMN3
    MALLIK_ACCT     17-SEP-11     908030482     
    MALLIK_ACCT     17-SEP-11     908266967     
    MALLIK_ACCT     17-SEP-11     909570766     
    I want the format like below
    COLUMN1........ COLUMN2 .... COLUMN3
    MALLIK_ACCT ...17-SEP-11 .... 908030482     
    MALLIK_ACCT ...17-SEP-11 .... 908266967     
    MALLIK_ACCT ...17-SEP-11 .... 909570766
    I put dots(.) for illustration purpose.
    column data length may icrease some times . it shoudl automatically adjust column and data so that they are in alignment. thanks in advance.

    Mallik wrote:
    Hi my question is to format the headers so that they will be in alignment with column data and readable.So you want to output a query as a fixed width format data file? How about this (rather than using scripts)...
    As sys user:
    CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
    GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
    /As myuser:
    CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
                                         ,p_dir IN VARCHAR2
                                         ,p_header_file IN VARCHAR2
                                         ,p_data_file IN VARCHAR2 := NULL) IS
      v_finaltxt  VARCHAR2(4000);
      v_v_val     VARCHAR2(4000);
      v_n_val     NUMBER;
      v_d_val     DATE;
      v_ret       NUMBER;
      c           NUMBER;
      d           NUMBER;
      col_cnt     INTEGER;
      f           BOOLEAN;
      rec_tab     DBMS_SQL.DESC_TAB;
      col_num     NUMBER;
      v_fh        UTL_FILE.FILE_TYPE;
      v_samefile  BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
    BEGIN
      c := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
      d := DBMS_SQL.EXECUTE(c);
      DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
          WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
          WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
        ELSE
          DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
        END CASE;
      END LOOP;
      -- This part outputs the HEADER
      v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
      FOR j in 1..col_cnt
      LOOP
        CASE rec_tab(j).col_type
          WHEN 1 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),rec_tab(j).col_max_len,' ');
          WHEN 2 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),rec_tab(j).col_max_len,' ');
          WHEN 12 THEN v_finaltxt := v_finaltxt||rpad(lower(rec_tab(j).col_name),greatest(19,length(rec_tab(j).col_name)),' ');
        END CASE;
      END LOOP;
      UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      IF NOT v_samefile THEN
        UTL_FILE.FCLOSE(v_fh);
      END IF;
      -- This part outputs the DATA
      IF NOT v_samefile THEN
        v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
      END IF;
      LOOP
        v_ret := DBMS_SQL.FETCH_ROWS(c);
        EXIT WHEN v_ret = 0;
        v_finaltxt := NULL;
        FOR j in 1..col_cnt
        LOOP
          CASE rec_tab(j).col_type
            WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
                        v_finaltxt := v_finaltxt||rpad(nvl(v_v_val,' '),rec_tab(j).col_max_len,' ');
            WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
                        v_finaltxt := v_finaltxt||rpad(nvl(to_char(v_n_val,'fm99999999999999999999999999999999999999'),' '),rec_tab(j).col_max_len,' ');
            WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
                        v_finaltxt := v_finaltxt||rpad(nvl(to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),' '),greatest(19,length(rec_tab(j).col_name)),' ');
          END CASE;
        END LOOP;
        UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
      END LOOP;
      UTL_FILE.FCLOSE(v_fh);
      DBMS_SQL.CLOSE_CURSOR(c);
    END;This allows for the header row and the data to be written to seperate files if required.
    e.g.
    SQL> exec run_query('select * from emp','TEST_DIR','output.txt');
    PL/SQL procedure successfully completed.Output.csv file contains:
    empno                 ename     job      mgr                   hiredate           sal                   comm                  deptno               
    7369                  SMITH     CLERK    7902                  17/12/1980 00:00:00800                                         20                   
    7499                  ALLEN     SALESMAN 7698                  20/02/1981 00:00:001600                  300                   30                   
    7521                  WARD      SALESMAN 7698                  22/02/1981 00:00:001250                  500                   30                   
    7566                  JONES     MANAGER  7839                  02/04/1981 00:00:002975                                        20                   
    7654                  MARTIN    SALESMAN 7698                  28/09/1981 00:00:001250                  1400                  30                   
    7698                  BLAKE     MANAGER  7839                  01/05/1981 00:00:002850                                        30                   
    7782                  CLARK     MANAGER  7839                  09/06/1981 00:00:002450                                        10                   
    7788                  SCOTT     ANALYST  7566                  19/04/1987 00:00:003000                                        20                   
    7839                  KING      PRESIDENT                      17/11/1981 00:00:005000                                        10                   
    7844                  TURNER    SALESMAN 7698                  08/09/1981 00:00:001500                  0                     30                   
    7876                  ADAMS     CLERK    7788                  23/05/1987 00:00:001100                                        20                   
    7900                  JAMES     CLERK    7698                  03/12/1981 00:00:00950                                         30                   
    7902                  FORD      ANALYST  7566                  03/12/1981 00:00:003000                                        20                   
    7934                  MILLER    CLERK    7782                  23/01/1982 00:00:001300                                        10                   
                   The procedure allows for the header and data to go to seperate files if required. Just specifying the "header" filename will put the header and data in the one file.
    Adapt to output different datatypes and styles are required (this is currently coded for VARCHAR2, NUMBER and DATE)

  • I want to use the Function Generator VI to send command signals through the NI 7344 motion controller. This will be a closed loop servo valve system. I want to be able to change from say a square wave to a sine wave on the fly. Idea's?

    I am going to run tests that require an actuator to move using various types of arbitrary waveforms such as sine or square. The NI 7344 is hooked to the UMI that is going through a driver for a servo valve. The loop is analog and it is closed. I have played with some of the examples but can't get it to work. I have used the function generator VI to generate a signal but I think I am using the wrong input VI to the motion control board. When I use what I have it moves the servo and then stops. It doesn't continually generate the signal.
    I would love to use the controls on the function generator vi to control frequency and amplitude ect. Any help or pointer would be helpful. Thank you in advance.

    Hello,
    I'm not clear on exactly how you want to use the generated data but I'm assuming they will be used as your target points.
    There's a built-in example for motion called 'One-Axis Contour Move.vi'. This example demonstrates how to provide your target points as 1-D array. All you need to do is to replace the input array with the output of the function generator. In order to have it run continuously, use a while loop. You can further program your application so that it'll change the waveform on the fly by monitoring the user interface but this might be little little tricky as you will need to reset the move and load the new generated points while keeping track of your current position.
    I hope this helps. Let me know if you have further questions regarding this
    application.
    Best regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • Using Dreamweaver to create AIR app from HTML site, FLV loaded by placed SWF not loading

    Hello.
    I'm using Dreamweaver to create an HTML-based site that has pages with FLV-based videos that are loaded using a SWF file. The SWF file is just the player / skin. When I preview or publish to AIR, the videos do not show up. I'm sure others have asked how to accomplish this but I'm having difficulty finding the solution to this issue. Can someone share with them their solution please?
    Thank you!
    Robert

    Steveejay, I was having the same problem. It turns out that
    mine didn't like the fact that I was using the "POST" method in my
    loadMovie() call. I changed them to "GET", and it works fine in the
    web page now. Just doesn't work when previewing in Flash.

  • Loading child SWFs with TLF content (from Flash CS5.5) generates reference errors in FB4.6

    I am currently producing e-learning content with our custom AS3-Framework.
    We normally create content files in Flash CS5.5 with dynamic text fields, which are set at runtime from our Framework (AS3 framework in FB4.6).
    Now we are in the progress of language versioning, and since one of the languages is Arabic we are changing the dynamic text fields to TLF fields.
    Then all my problems started.
    In Flash I have chosen to include the TLF engine and to export in frame 2.
    (see to: http://helpx.adobe.com/flash/kb/loading-child-swfs-tlf-content.html )
    I get this error:
    VerifyError: Error #1053: Illegal override of getEventMirror in flashx.textLayout.elements.FlowLeafElement.
                at flash.display::MovieClip/gotoAndPlay()
    I guess it is because our framework wants to gotoAndPlay before the TLF engine has been loaded.
    Can this be it?
    Any good suggestions on how to handle loading child SWFs with TLF content.

    Please refere to the following articles .. you may find some help.
    http://www.stevensacks.net/2010/05/28/flash-cs5-tlf-engine-causes-errors-with-loaded-swfs/
    http://www.adobe.com/devnet/flash/articles/preloading-tlf-rsl.html
    I also faced similar problem and posted a question at the following link, but, I still couldn't find the solution.
    http://forums.adobe.com/message/4367968#4367968

  • Embedded AS3 SWF access in Flex 2

    I have an SWF (Action Script 3) created in Flash 9 Alpha
    Public.
    I can access all its methods and variables when using
    SWFloader, but fail to do so when embedding it by using [Embed]
    tag.
    I need to do it to use it as a custom cursor (CursorManager
    accepts objects of Class type as cursors). Before I was using SWF 8
    (AS2) with LocalConnection, but since the new SWF 9 is in Action
    Script 3, I want to use it directly.
    The code looks like this:
    [Embed(source = "cursor_9.swf")]
    private var newCursorSymbol:Class;
    private function changeCursor(event:MouseEvent):void
    CursorManager.setCursor(newCursorSymbol);
    The question is. Can I, and if I can, then, how, access this
    swf methods from within a Flex 2 application?
    or else, can the CursorManager somehow accept the content of
    SWFloader, which is a MovieClip object?
    Thank you

    This is tough. The DisplayObject that represents the customer
    cursor is instantiated internally by the CursorManager and is
    stored in a private variable, so there's no way to get at it. I
    believe there is a hack you can do if you ever only have one
    instance of that cursor. The Class you pass to the CursorManager
    can be any DisplayObject, so you can cook one up to wrap your SWF.
    For example, call it MyCursor.mxml:
    <mx:Canvas xmlns:mx="...">
    <mx:Script>
    <![CDATA[
    public static var sCursorLoader: SWFLoader;
    ]]>
    </mx:Script>
    <mx:SWFLoader id="loader" source="cursor_9.swf"
    creationComplete="sCursorLoader = loader"/>
    </mx:Canvas>
    And then use the CursorManager:
    CursorManager.setCursor(MyCursor);
    The idea is that once the CursorManager instantiates the
    MyCursor class, the static variable will point to the SWFLoader, so
    you can access it in a global way:
    MyCursor.sCursorLoader
    Of course, you'll have to put in some kind of delay to make
    sure the SWF is completely loaded, etc. This is just something I
    thought of off the top of my head, so take it with a grain of salt.
    :-)

Maybe you are looking for

  • Should I be able to Wi-Fi through my iMac?

    Hi people. I've just bought a Touch. I'm pretty pleased with it, with the exception of one thing: the Wi-Fi aspect. There are no local hot-spots, other than in pub's, and the i'm not going into the pub to play with my iPod! I have an Intel Mac (Alumi

  • List of Credit memo

    If in system i want to see the list of credit memos or the subsequent debit/credit documents in which tcode it will be avilable... I searched in SDN but didn't able to find.. Note : Please search forum & various sap resources before posting. Edited b

  • My computer is no longer responding to my iPod && my iPod is not charging.

    Please help me. I don't know why, but on the 26th, I downloaded songs onto my iPod, but today, my iPod won't charge, my computer won't respond to my iPod, and under devices on iTunes, my iPod is no longer there. Also, this question is all over the bo

  • Handling fault messages in an Integration Process (bpm)

    I have a bpm in PI 7.11 which performs a synch call to an external webservice. In addition to the request/response, that webservice can also generate two faults: ObjectNotFoundFault and generalfault.  I am having trouble handling these faults - when

  • How to create a new Plan order type or make changes in current stock type?

    Hi I need to do following for my client. After the planned order is created either manually or automatically a planned order profile is allocated and data is processed. The data would include: material, plant, order quantity and basic order dates. Th