The call of a function in a SWF with an external program TLFTextField

I have a program that loads another swf B, and after B, a will call a function of B.  He used to work when B creates a TextField and TextFormat is using, but when I changed to create a TLFTextField, I got this error:

Reference error: #1069 Error: loadCurrentPictureFromMenu property not found on ECard__Preloader__ and there is no default value.

to ECard / swfLoadCompleteEventHandler ()...

And also

WARNING: Ignorance of the attribute 'trust' in the http://fpdownload.adobe.com/pub/swz/crossdomain.xmlpolicy file.  The secure attribute is allowed only in HTTPS policy files and taken...

So I wrote these 2 programs to test this:

----------------------- Test B -------------------------

Import fl.text.TLFTextField;

Import flashx.textLayout.formats.TextLayoutFormat;

Import flashx.textLayout.elements.TextFlow;

var myFormat:TextLayoutFormat = new TextLayoutFormat();

myFormat.fontFamily = "Kids."

myFormat.fontSize = 24;

var tlfTextField:TLFTextField = new TLFTextField();

tlfTextField.x = 50;

tlfTextField.y = 50;

addChild (tlfTextField);

var myTextFlow:TextFlow = tlfTextField.textFlow;

myTextFlow.hostFormat = myFormat;

myTextFlow.flowComposer.updateAllControllers ();

tlfTextField.text = "test this."

function changeText(string:String):void

{

tlfTextField.text = string;

}

---------------------- Test A -----------------------------------

import flash.net.URLRequest;

import flash.display.Loader;

import flash.display.MovieClip;

var urlRequest:URLRequest = new URLRequest ("testTLFTextField.swf");

var loader: Loader = new Loader();

Loader.Load (urlRequest);

loader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadingCompleteEventHandler);

function loadingCompleteEventHandler(evt:Event):void

{

addChild (loader);

loader.contentLoaderInfo.removeEventListener (Event.COMPLETE, loadingCompleteEventHandler);

var mc:MovieClip = evt.currentTarget.content;

mc.changeText ("we are here");

}

---------------------------------------------------------

I got the error #1069 again, but when I changed back to TextField TLFTextField, it works again.  Test one can now find the 'changeText()' function to test B.

I use CS5.5.

Any help is appreciated!

Thanks in advance!

This can also be due to bugs in the class Loader.

If you're on CS5.5, use the class ProLoader .

Tags: Adobe Animate

Similar Questions

  • oracle database of the calling user-defined functions

    Hi, are there ways to call oracle database functions defined by the user of the RPD or queries?

    I think that it not there no.

    But there may be some ways that I don't know.

    Thank you!

    Yes, there is.

    The function EVALUATE obiee.

    Document:
    http://www.Oracle.com/technology/products/bi/PDF/Oracle%20Business%20Intelligence%20Server%20and%20Embedded%20dB%20Functions.PDF

    You can call defined by the user or the functions of the database system.

    O address:
    http://108obiee.blogspot.com/search/label/evaluate

    Concerning
    Goran
    http://108obiee.blogspot.com

  • The project-centric issue of peer to Peer with an external compiler in LabVIEW FPGA

    Hi all

    FPGA OR Version: 14.0

    I have an application developed in LabVIEW interfacing FPGAs developed in LabVIEW FPGA making of peer to peer Communications.

    Everything works fine.

    I try on the port to Visual Studio 2013 (on the same PC) and am able to communicate with the FPGA very well using the C API.

    However, I have a problem now with the help files or the peer supported external compiler peer.

    I get these errors:

    1. cannot open the file source 'PublicIncludes/nistreamCommon/prefix.h '.

    2. impossible opening the file source 'PublicIncludes/nistreamCommon/postfix.h '.

    in

    c:\Program Files (x 86) \National Instruments\Shared\ExternalCompilerSupport\C\include\nip2p.h

    in my project...

    I looked in the folder c:\Program Files (x 86) \National Instruments\Shared\ExternalCompilerSupport\C\include\ and the PublicIncludes\nistreamCommon folder does not exist.

    What I am doing wrong?

    Hello!

    It seems that you have worked with another engineer of Applications on this issue.  For the love of documents, the nip2p library is not supported in CVI. There has been cases where users were able to get this work to comment on the two header files.

    Thank you!

  • the call to dyanamic events for Boolean control with mechanical lock action.

    Hello

    I have two Boolean controls, you don't write operation and another read operation. what I want is, when I trigger a write operation, after it's done you go read the case without user hitting the play button. Please send with a small example and my type of button is to have action mechanical latch. I'm using labview 8.5.

    You are here, sorry about that

  • Problem when calling a return function of SQL BOOLEAN in package type

    Hi all

    I'm having a problem when you try to call a SQL function in a package with the return BOOLEAN type
    The SQL function signature is
    ####

    CREATE OR REPLACE PACKAGE RMSOWNER. ORDER_ATTRIB_SQL *.

    FUNCTION GET_PO_TYPE_DESC (O_error_message IN OUT VARCHAR2,
    I_PO_TYPE IN VARCHAR2,
    O_PO_TYPE_DESC IN OUT VARCHAR2)
    RETURN A BOOLEAN VALUE;

    ####


    Here is my java code

    ####
    + Cs3 CallableStatement = conn.prepareCall ("{?}") = call ORDER_ATTRIB_SQL. GET_PO_TYPE_DESC(?,?,?)} ");" +
    + CS3.registerOutParameter (1, java.sql.Types.BOOLEAN) +;
    + CS3.registerOutParameter (2, java.sql.Types.VARCHAR) +;
    + CS3.registerOutParameter (4, java.sql.Types.VARCHAR) +;
    + CS3. SetString (2, ""); +
    + CS3. SetString (3, "ST"); +
    + CS3. SetString (4, ""); +
    + ResultSet rs3 = cs3.executeQuery (); +
    ####

    I get the following exception, I tried to change the (registerOutParameter) boolean sql type bit, but I've always found this exception.
    But when I call all other functions with a return type other than boolean, they work perfectly well.

    Please can someone help me solve this problem, I don't know if its something to do with classes of JDBC providers?

    #####
    + java.sql.SQLException: ORA-06550: line 1, column 13: +.
    + PLS-00382: expression is of the wrong type.
    + ORA-06550: line 1, column 7: +.
    + PL/SQL: statement ignored +.

    + oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) +.
    + oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) +.
    + oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) +.
    + oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743) +.
    + oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:215) +.
    + oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:954) +.
    + oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168) +.
    + oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3316) +.
    + oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3422) +.
    + oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394) +.

    #####

    Looks like it's a Limitation of the jdbc drivers. Please visit the following link:
    http://www-Camden.Rutgers.edu/help/documentation/Oracle/Java.815/a64684/typesup1.htm

    Here is an excerpt from above:
    ==========================================================
    PL/SQL BOOLEAN, RECORD and the Types of TABLES of packing

    Oracle JDBC drivers support the argument of appeal or return values of PL/SQL TABLE types (now known as indexed arrays by), REGISTRATION or BOOLEAN.

    To work around the problem, you can create wrapper procedures that manage data like types supported by JDBC. For example, to wrap a stored procedure that uses PL/SQL Boolean values, you can create a stored procedure that takes a character or a number of JDBC and passes to the original procedure as BOOLEAN or, for an output parameter, accepts a BOOLEAN of the original procedure argument and pass it as a TANK or a NUMBER to JDBC. Similarly, to wrap a stored procedure that uses PL/SQL records, you can create a stored procedure that maintains a record in its individual components (such as CHAR and NUMBER). To wrap a stored procedure that uses PL/SQL tables, you can divide the data into components or perhaps use Oracle collection types.

  • "failed to create value for the message Analyzer online [541]" when you try to remove a program

    I tried to remove a program from the Add/Remove program icon and it came with this message

    Hello

    We would like to get a better understanding of this issue, so we can better help not only you but other users with similar problems.

    1 are. what program you referring?

    2. How did you install the program?

    3. don't you make changes to the computer until the problem occurred?

    4 does happen with a particular program or applications?

    I suggest you to try the steps below and check if it helps.

    Method 1: Try to put your computer in a clean boot state, and then try to uninstall a program.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

     

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Follow these steps to reset the computer to start as usual:

    (a) click on start toreduce this top that i, type msconfig.exe in the Start Search box and press ENTER.

    If you are prompted for an administrator password or for confirmation, type your password, or click continue.

    (b) under the general tab, click the Normal startup option, and then click OK.

    (c) when you are prompted to restart the computer, click restart.

    Method 2: Problems installing and uninstalling programs on Windowshttp://support.microsoft.com/kb/2438651 computers

    Hope this information is useful.

  • Call the Flash of IE10 function

    Hey guys,.

    So, I'm looking to have some javascript call a flash function.  I have it fully functional with older versions of IE, as IE9. However IE10 won't.

    I followed the example provided by Adobe here: http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/external/external Interface.html #addCallback ()

    Using this code example, (in IE10) I'm successfully able to send data to flash on my Javascript, but coming from the other direction, it does not work.

    The error I get is (' object does not support property or method 'methodNameHere' ")

    Does anyone have ideas of what I could use to do?  Or IE10 does not support this communication longer?  Any thoughts are appreciated, thank you!

    ExternalInterface.call("saveglobalscore",score), as you know, is easy to implement.

    ExternalInterface.addCallback("IsStatic",IsStatic) is must more difficult because he has not a lot of flexibility in the HTML, code integration.

    in your embed code, you (try to) embed a swf file that is named ExternalInterfaceExample.swf.  If the SWF with your method addCallback test.swf, it's a problem.

    you need to change one or the other.

  • Call a javascript function in the Value attribute of param

    Hello

    I want to put a TLF text field in the SWF file in an HTML page. So I used flashvar, by calling a javascript function to it attribute "value" as follows.

    < param name = FlashVars value = "" + SetFlashMovieParam() + "" id = "message" / > "

    SetFlashMovieParam() is a javascript like the following function.

    function SetFlashMovieParam() {}

    document.getElementById("message").setAttribute ("value", "msgText = Start");

    }

    Even if this does not work, when I put the text value directly to the 'value' attribute, it worked.

    < param name = FlashVars value = "msgText = here % 20is % 20The % 20text" id = "message" / > "

    I think it's because calling a javascript function syntax error in the param tag. Can anyone help to call this function properly...

    Thank you.

    Normally when you have an executable code embedded in the html code you should check that article accordingly.  In the case of javascript surround you with

  • How to call a function of child swf

    Hello

    Here is that a parent SWF load a child swf file and there is a button/movieclip in child swf for example childBtn_mc, I now want whener I click on this childbtn_mc in parent SWF (like child swf is loaded into a parent swf file) thanks to a function in the parent swf.

    for ex.

    child AS SWF:

    childBtn_mc.onRelease = childBtnClicked;

    function childBtnClicked() {}

    trace ("call of the child");

    }

    SWF parent AS:

    loadMovie ("child.swf");

    chilBtn_mc. onRelease = childBtnClickedUsingParent;

    function childBtnClickedUsingParent() {}

    trace ("parent call");

    }

    ::::::::::::

    After compling the file when I click on childBtn_mc, trace = > call of the child

    and I want no trace of "the call of the parent.

    Help, please.

    Thank you.

    its DONE... Thanks kglad

    parent swf AS:

    _root.createEmptyMovieClip("page2MC",2);

    loadMovie ("test2.swf", "page2MC");

    page2MC.greenbtn.onRelease = parentFunction;

    function parentFunction() {}

    trace ("parent of child movieclip function call");

    }

    :::::::::::

    in children such AS:

    greenbtn.onRelease = _parent.parentFunction;

    Thank you.

  • receive the following error code when searching for a piece of music I did several times without a music problem but have recently updated Firefax: Fatal error: Call to undefined function AmazonData() in/home/boss/public_html/mc on line 13

    I am in the page web http://www.songarea.com/ and after searching a piece of music, I get the following error message:
    "Fatal error: Call to undefined function AmazonData() in/home/boss/public_html/mc on line 13.
    I did this several times before without a problem, but have recently updated Firefox with the Skype add-on and wonder if the two things are related.

    URL of affected sites

    http://www.songarea.com/

    Hi John,.

    It is an error message from the web server providing this site. Specifically, it is something wrong with their PHP code.

    It is not browser specific and would go into another browser besides Firefox.

    You will need to contact the webmaster of this site to report this problem. A quick test does not show this problem, but you do not specify what search query, you tried:

    http://www.songarea.com/music-codes/test.html

  • How to use the node to call a library function to convert C++ source codes

    Hi all

    There are two dll name 'QMSL_WLAN_Transport.dll' and 'QCAMSL_MSVC10R.dll' and some codes c ++ to connect to the DUT. The two DLLs work together for communicaite with the DUT.

    I am confused as how to use the node to call a library function to load the 'QCAMSL_MSVC10R.dll' function as

    g_hResourceContext = QLIB_ConnectServer_UserDefinedTransport((HANDLE) USER_HANDLE,
    UserDefinedSend,
    UserDefinedReceive,
    UserDefinedFlushTxRx,
    true,
    true);
    

    It seems that 'UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx' Processaddress?  And "UserDefinedReceive, UserDefinedSend, UserDefinedFlushTxRx"'s functions in 'QMSL_WLAN_Transport.dll '.

    UserDefinedReceive = (_UserDefinedReceive)GetProcAddress(hUDT,"UserDefinedReceive");
    UserDefinedSend = (_UserDefinedSend)GetProcAddress(hUDT,"UserDefinedSend");
    UserDefinedFlushTxRx = (_UserDefinedFlushTxRx)GetProcAddress(hUDT,"UserDefinedFlushTxRx");
    

    Attached DLLs and C++ code snippets.

    Need help.

    Thank you.

    These parameters are reminders - pointers to functions that are called by the DLL - and there is no way to duplicate this purely in LabVIEW. Search this forum for the word "recall" and you will find similar questions (for other DLLs). You will need to write your own DLL (in C, C++, etc.) that implements these functions and provides a way to transfer data to LabVIEW.

  • How to return on a Subvi in a calling VI and does not stop the calling function

    I am writing a program which consists of a call VI and one under VI. I want to call function to run continuously and be able to trigger the sub VI (via activation of the voice). I want the sub VI to expire automatically after 10 seconds and return to the calling VI (master), which will continue until the sub VI is still called.

    I found a way to expire the sub VI using the 'stop' command, but he left the appellant VI also, which does not. I know there is no 'back' or 'soft stop' in LabVIEW, but someone he knows a way to do this?

    What you really need in your Subvi is something like what is shown below. You specify the delay using the delay function or get Date/Time In Seconds msec. would work in the same way.

  • Transition from tables to call a library function does not work after the application builder

    Call a DLL with function of library to call that requires a data table to work properly in Labview, but after building an exe with the application generator, the call no longer works.  Dereferecing the pointer in the DLL returns all values 0 and not the real.

    So finally figured it out.  It seems that you cannot use the utilities of pointer in an exe built such asGetValueByPointer.xnode.  Once I replaced the calls with calls to DSNewPtr and MoveBlock library, everything works as expected.

  • 'Require the error' try to call reverse geocoding function of geo_search.h


    I am trying to create an additional function in an existing extension using WebWorks 1.0.4.11.

    The function is geo_search_reverse_geocode in geo_search.h

    For now I'm just using the code example in the documentation on this function.

    http://developer.BlackBerry.com/native/reference/core/com.QNX.doc.Geolocation.lib_ref/topic/geo_sear...

    So therefore, my code looks like this.

    /**
     * Test Function to performs a reverse geocode lookup.
     */
    string TExtn::performReverseGeocode(const char* handle) {
    
        string result = "";
    
         geo_search_handle_t handle_t;
         geo_search_error_t error = geo_search_open( &handle_t );
         if ( error == GEO_SEARCH_OK ) {
           geo_search_reply_t reply_t;
    
           // for now, use the location in the example.
           double lat = 39.8017;
           double lon = -89.6436;
    
           error = geo_search_reverse_geocode(&handle_t,
                                              &reply_t,
                                              lat,
                                              lon,
                                              GEO_SEARCH_BOUNDARY_CITY);
           if ( error == GEO_SEARCH_OK ) {
    
                 // do something with the results in the search reply
                 result = decode_reply( &reply_t );
             geo_search_free_reply( &reply_t );
    
           } else {
               result = "unknown";
           }
           geo_search_close( &handle_t );
         }
    
         return result;
    }
    

    Before adding this feature, the extension causes no problems in my webworks app.

    Now that I've added the function call, I get this message that appears when running my application webworks.

     

    Need error cannot find /usr/lib/webplatforms/plugins/jnext/libTJNext.so library cannot be found

     

    * edit: libTJNext.so is the name of the shared object containing my extension.

    I use the same build scripts, and if I comment my changes to my hpp/CPP files, extension begins to work again (but without the support of geocoding).

    I hope that the message itself is a herring-saur, as the so is included in the file of the bar (I checked), so I expect to be installed when I install the application.

    What I am doing wrong?

    Yes, the message is a red herring. As a general rule, if the system cannot load a .so due to a connection problem, it shows the error. Have you noticed on the documentation of the API that it uses this library: libgeo_search?

    This library must be added to your project in order to to use. Without it the binding will fail and you will get this message.

    The process of adding that is documented here: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10-Cordova/Template#including-li...

    This section of the manual applies to extensions times WebWorks 1.0 and 2.0 WebWorks, although a large part of the rest of this file applies only to the WebWorks 2.0.

  • How can I call functions of a SWF file loaded into another swf?

    Hello

    Please excuse my ignorance, I am very new to actionscript and flash.

    I have 2 Fund sovereigns - a.swf and b.swf.

    I load b.swf in a.swf with the following code:

    var swfLoader:MovieClipLoader = new MovieClipLoader();
    swfLoader.loadClip("b.swf", container_mc);
    

    Now in b.swf, I have a function as follows:

    public function sendData(){
      trace("I ran the function!");
    }
    

    So I did a lot of reading, from what I can tell, I should be able to perform the function of sendData() from code in a.swf, by typing:

    container_mc.sendData();
    

    but it's not working. What I am doing wrong?

    Thanks in advance,

    Adam

    container_mc. SendData();

    will work AFTER THAT b.swf is initialized.  That is to say, use a listener to detect that.

Maybe you are looking for

  • Problems with Firefox home page

    I was trying to find a place to contact Mozilla Firefox feedback. I found this: https://input.mozilla.org/en-US/ but when I go to login / create an account of persona he says "you do not have an account here or you have used the wrong account of Pers

  • 10.11.3 Update - All Applications Gone - Safe boot so OSX

    10.11.3 installed from the Mac Store this morning, that's my story if someone's looking for a similar situation. MacBook Pro retina 15 inch - end of 2013, 1 TB SSD, 16 GB Ram, i7 2.3 I'm running FileVault and ran Clam AV. In my view, that the importa

  • Don't download apps on my iPad

    It is not the usual case that plays to the App Store or whatever it is, it's more specific update/download problem. I mean a few months ago I clicked to update my applications (Facebook, Instagram, tumblr), so they changed to the little circle with t

  • Impossible to update: error message on the BITS and ActiveX

    I need to hurry and to know what is wrong bc I have service pack 1 at the moment and I need service pack 3 b4 the deadline. * Title *.When I'm tryin g install my updates, he failed for the FORESTS of the installation. Now when I upgrade from windows

  • How to create the associated program file?

    while I want to play the game on my computer, I got a notice, "" this file does not have a program associated with it for the execution of this action.create an association in the set associations control panel please how do? " or what program I have