How to use the String with an external dispatchEvent event.target.name?

... I hope that the question of the title makes sense...

On my stage, I have an external SWF loaded with a button. When you click the button dispatches the main event scene.

On the main stage a listener can load a SWF it in a magazine called Gallery.

The charger of the Gallery is also shared by the buttons on the main stage, who use the event.target.name chain to appeal to sovereign wealth funds with corresponding names.

I use tweens to fade and, in the content of the Gallery when a key is pressed.

--

Loading of the FSV worked until I tried to create a universal function for the dispatchEvent buttons...

The problem I have is that I don't know how to set the string to indicate to the newSWFRequest where the SWF file when triggered by external buttons.

(I maybe do this wrong... but thought that the best way to load a SWF on the main stage from an external SWF was using dispatchEvent?)

My code raises the event and the charger of the Gallery Faints, but then it does not find the new SWF:

Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2035: URL not found.

Please can someone help me understand how to make the point in the chain in the right direction? (I think that the errors only are in bold below)

Code:

var myTweenIn2:Tween;

var myTweenOut2:Tween;

var nextLoadS2:String;

Listening external inclinometer shipped external event

addEventListener ("contactStage", btnClickExtrnl);

function btnClickExtrnl(e:Event):void {}

nextLoadS2 =?

myTweenOut2 = new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);

myTweenOut2.addEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);

}

Function universal BTNS

function tweenOutCompleteF2(e:TweenEvent) {}

myTweenOut2.removeEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);

myTweenOut2 = null;

var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + nextLoadS2 + ".swf");

myTweenIn2 = new Tween (Gallery, "alpha", None.easeOut, gallery.alpha, 1, 0.2, true);

Gallery.Load (newSWFRequest);

Gallery.x = Xpos;

Gallery.y = Ypos;

}

Thank you.

If this code is on the timeline of a child of the main timeline of your external swf add parent 3rd in two lines with parent.parent.

Tags: Adobe Animate

Similar Questions

  • How to use the AVMenuItemExecute() with an external window

    Hello

    I am using the AVMenuItemExecute() function in an external window. I mean I have a document open in another window (to aid

    AVDocOpenFromASFileWithParams or a feature like this).

    In fact, the problem is that the AVMenuItemExecute() is running on the windows of Acrobat that is emplty in my case, because I opened the PDF file in another window.

    Do you know if it's possible or not? Whethet it is possible how can I do?

    Thanks in advance,

    Joel

    Sorry, but you can't: (.)

    As you can imagine, MenuItemExecute() is on the menu... running items these does ARE menu items that in Acrobat/Reader and NOT in any application based on an external window.

    What menu item you try to run?  Perhaps there is another way to access this feature?

  • How to concatenate the string with a digital command?

    Hello

    How to concatenate the string with a digital command?

    Thank you.

    I think I forgot to add the semicolon, what you can do is, drag the CONCATENATE function and add semicolon.

  • Satellite A300 - how to use the recovery with external DVD drive disc?

    Hello

    I bought a toshiba Satellite A300 - 15 d

    FTM the tsscorp drive that is installed in the camera no longer works (does not detect any type of media what so ever). ) need to recover the laptop, so I used a USB DVD drive to boot from the restore disc, but after that the charges of recovery console it says waiting for media in the f: drive, which is the tsscorp drive although I used an external drive to load the disc.

    What files should I edit to make it to load from the drive externally and if this isn't the solution, what do I do?

    Thanks in advance

    Hey Buddy,

    Unfortunately I think that it of not possible to use the recovery with external CD/DVD drive disc. Therefore, place the internal for use the recovery disc.
    You can get a new drive to an authorized service provider.

    But if the original OS from Toshiba is installed, you can use the function of disk recovery HARD reinstall Windows as well. Go to the advanced boot menu (F8) and select Repair my computer :)

  • How to use the product with laptop Portege R150 recovery CD?

    How to use the recovery CD product with laptop Portege R150 of Formate and reinstall the operating system?

    Mobile recovery procedure Asian does not for me but may not be very different as on mobile phones produced in Europe or the United States.

    Start your laptop and press F12 to display the boot options
    Place the recovery disc into the optical disc drive
    In the start menu, choose the CD/DVD drive and press ENTER
    The procedure of the facilities is expected to begin
    Follow the menu on the screen

    I do not know what will be shown at this stage, but it is not complicated to install the original recovery image. If you have any other questions please let me know what happens when upgraders begins. What options are displayed?

  • How to use the date with the report parameter format

    Hi all

    How to use the date format with this tag function,

    <? param@begin:P_FROM_DATE? > <? $P_FROM_DATE? >

    This date of form source of report and setting is coming as this 2012/11/01 00:00:00.

    So now I need this in MY-DD-YYYY marker. I tried like this..? param@begin:P_FROM_DATE? > <? $format - date: P_FROM_DATE; ' DD-MON-YYYY '? >

    but its giving error. Can someone pls how to convert to the format of date custom.

    Thanks and greetings
    Srikkanth.M

    Problem solved.

    REF this link

    Date Format of XML

  • How to use the string as a terminal window control

    Hi all

    I am setting up a terminal window in my VI and to do this I have a control of the chain and an indicator of the chain.

    I want the user to be able to write a command in the terminal and when hitting enter into the control must update, but not before! I'd do it

    as the user to be able to enter several commands without having to re - click the control with the mouse, so he must stay in the

    control window.

    The result of this chain control is introduced to an external motor controller, which responds with a string entry in the string of an invoke node indicator.

    I tried to make some case of the event, but not quite sure how I'm going to only detect the input control.

    Any ideas how to precede?

    Thank you

    Concerning

    Tommy

    Yes, in the structure of your event, look for an event of your control chain called 'key' down... on the left, there are several upcoming parameters (char, Vcle etc.) where you can use for example the char find char = 13 (back).

    Look here: http://zone.ni.com/reference/en-XX/help/371361B-01/lvprop/control_key_down/

    Good luck

    Christian

  • How to convert the string with numbers in the table of Boolean 2D

    Hello

    I have input a string with comma separated numbers 1,192 (starting at 1).

    This string must be converted to a table 2D-boolean. Each number that appears should be true, not true rest.

    The 2D table consists of 4 times of 0.47 Boolean values.

    1.48--> [0.47] numbers [0]
    49.96--> [0.47] numbers [1]
    Numbers 97.144--> [0.47] [2]
    145.192--> [0.47] numbers [3]

    If a '1, 49, 97 145' input string put all [0] [0.3] true.

    How can it be easy/fast resolved?

    Thanks for help

    Break the string of numbers in a table of numbers.  (Spreasheet String to Array).

    In a loop For, index with each issue of this table.  Use in the range and Coerce to see if it is in the range of numbers.  (You can put this in a loop For as auto good indexing through the ranges).  If it's in the range, then use subset replace table to activate the corresponding item in a real.  If this is not the case, do nothing.  Maintain the table of Boolean in a shift register.

    Repeat this step for each number in your table.

    (What is a class assignment?)

  • Satellite A210 - how to use the muldimedia with other than Media Player buttons

    Hello

    is it really not possible to use media keys (Play, Pause, FF) on top of my laptop for an application other than Windows Media Player?
    Is there a reason for this? I would like to control Winamp with this button.

    It seems quite sensless to restrict access to a SINGLE application of HUNDREDS available, a then it is the multimedia player that is not used by most people.

    I have the Satellite A210 Notbook.

    Can you tell my how to control my winamp with these buttons?

    Greetings from Robert

    Hello, Robert

    Unfortunately, there is no solution at the moment. If you check this forum, you will find several very interesting discussions on the multimedia buttons and Winamp player. The fact is that some people have found the solution for older models of laptops running Windows XP Home edition. Winamp has offered the plugin must be installed.

    We now have the new situation. Your laptop is running latest Vista OS and I didn t find any plugin that can help. Problem is that your laptop is designed for Windows Vista preinstalled OS contains all the necessary plugins for Windows media player running under the operating system preinstalled.

    Is any kind of restriction. With preinstalled operating system you can do what you want and if you can find a way to change it for that. You know very well that there are hundreds of different players in the market. You can't wait for Toshiba take a time and create a plugins for each other and satisfy customers around the world.

  • How to convert the string with numbers in U8 with ascii

    Hello

    I have a string with only numbers 0. 9 paper.

    Now, I want to convert to table-U8.

    He works here, but now the problem: How can I change each character to its ascii value?

    Example:

    entry: 123 (string)

    output: x 31, x 32, x 33 (U8-array)

    Thanks for the help

    It's very easy

    String to Byte Array Function
    Have the Palette: string/array/path Conversion functions

    Converts a string to an array of unsigned bytes. Each byte in the array has the ASCII value of the character corresponding to the string.

  • How to use the microphone with a music player

    I did not use the microphone input with any music player for the internet radio show. can it be done with vista on a sony vaio labtop

    Hellotrendsetter,

    Thank you for visiting the Microsoft answers Site.

    Please provide the make and model of your PC. Also, to better help, please relay the program or music player you use.

    You can also view the link below for more information on how to connect a microphone, music player or other audio device to your computer:

    http://Windows.Microsoft.com/en-us/Windows-Vista/connect-a-microphone-music-player-or-other-audio-device-to-your-computer

    Thank you

    Mary
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to use the import with FDM with adapter ERPI script?

    Hello

    I use FDM and ERPI 11.1.2 to load data of EBS R12 to planning 11.1.2

    Loaded from eBS data for a YEAR.

    I realized I could use an import script to manually calculate the amount with the periodic_net_cr and periodic_net_dr fields.

    But how to use this import script? Because in my import in FDM format, I do not use a file but directly the adapter, if no field "Expression".

    Thanks in advance for your help

    Fanny

    You must use the ImportAction script.

  • How to use the Clipboard with some sites

    I use the copy and paste function from the Clipboard frequently to allow access to certain pages. It worked fine until I updated Firefox to the latest version of 29,0. It doesn't work anymore! I followed the usual instructions to create a user.js file and place it in the profile directory. But the problem is still there. Need help with this problem.

    You can do this is through buttons using JavaScript to make the paste.

    You can only do this via the keyboard.

    Use keyboard shortcuts if the buttons on the web page or other methods do not work.

    • Copy: Ctrl + C or Ctrl + insert (Mac: command + C)
    • Paste: Ctrl + V or shift + insert (Mac: command + V)
    • Cut: Ctrl + X or shift + delete (Mac: command + X)

    See also:

  • How to use the user with event loop event

    Hello

    I want to communicate between 2 VI, so I have a global variable (boolean) who gives the order to an event tool to run. The problem comes from the fact that event loop accepts no global variable, I found on the forum that I can use the user event. Of course, the second VI works normally when I push the button (boolean) in there to run the event loop. Please can someone explain me how to do this, I am a chemist.

    Thank you.

    You enter the receiver structure of event for the event you want to receive.

    To do this in two screws, you will have to share the user between them event reference.

  • How to use the nocopy with java stored procedures parameters

    
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    
    

    I'm a PL/SQL programmer, but not a Java programmer. I have the following java function that does what it's supposed to add a pdf at the end of another pdf document:

    import oracle.sql.BLOB;
    import org.apache.pdfbox.util.PDFMergerUtility;
    import oracle.jdbc.OracleConnection;
    import oracle.jdbc.driver.OracleDriver;
    import java.io.OutputStream;
    
    public class PDFUtilities {
    public static BLOB appendPDF(BLOB pdfdoc1, BLOB pdfdoc2) throws Exception {
           
            //create a connection object to the current instance
              OracleConnection conn = (OracleConnection)new OracleDriver().defaultConnection();
            //create the output blob using the connection
              BLOB outPDF = BLOB.createTemporary(conn, true ,BLOB.DURATION_SESSION);
            //create an output stream to the output blob
              OutputStream os = outPDF.setBinaryStream(0);               
            //instantiate the pdf merger utility
              PDFMergerUtility mergerUtility = new PDFMergerUtility();       
            //connect the merger to the output stream
              mergerUtility.setDestinationStream(os);
            //stream from each input blob into the merger utility
              mergerUtility.addSource(pdfdoc1.getBinaryStream());
              mergerUtility.addSource(pdfdoc2.getBinaryStream());
            //merge the 2 input pdfs
              mergerUtility.mergeDocuments();             
            //do not close the output stream
            //return the blob
            return outPDF;
        }
    
    }
    

    CREATE OR REPLACE package PDFTOOLS.pkg_pdf_utilities
    as
    function f_get_merged_pdf (
              pi_pdf1       blob
            , pi_pdf2    blob
      )
      return blob;
    end pkg_pdf_utilities;
    /
    
    CREATE OR REPLACE package body PDFTOOLS.pkg_pdf_utilities
    as
    function f_get_merged_pdf (
              pi_pdf1       blob
            , pi_pdf2    blob
      )
      return blob
      as language java name 
      'com.mycode.pdftools.PDFUtilities.appendPDF(oracle.sql.BLOB, oracle.sql.BLOB) return oracle.sql.BLOB';
    end PDFTOOLS.pkg_pdf_utilities;
    /
    

    It's very basic, but doesn't seem to work. However, I want to my function from PL/SQL to a procedure that looks like this:

    CREATE OR REPLACE package PDFTOOLS.pkg_pdf_utilities
    as
    procedure sp_append_pdf (
              pio_pdf2append2   IN OUT NOCOPY blob
            , pio_pdf2append   IN OUT NOCOPY blob
      )
    end pkg_pdf_utilities;
    /
    

    What is important, what I'm trying to do is to NOCOPY the BLOBs. Otherwise, I have to read my PDF files into 2 BLOBs and create a 3rd blob as output. I prefer to be able to keep the pio_pdf2append2 as the final output. What I actually do call thing in a loop to gradually add a PDF file to a big. I'm not linking this in one operation because of concerns over the use of the system and because the pdfbox library java has would have been question after 850 in PDF format, which is not completely unrealistic in my approach.

    How could I achieve this?

    Post edited by: Pollocks01 only formatted code blocks because atlassian {code} tags didn't work.

    Passage of an argument as input/OUTPUT requires the mapping to a Java array.

    Simplified example that adds one FOR the other:

    create or replace and compile java source named blob_appender_src as
    import oracle.sql.BLOB;
    import java.sql.SQLException;
    import java.io.OutputStream;
    import java.io.InputStream;
    import java.io.IOException;
    
    public class BLOBAppender {
        public static void run (BLOB[] p1, BLOB p2) throws SQLException, IOException { 
    
            InputStream is = p2.getBinaryStream();
            OutputStream os = p1[0].setBinaryStream(p1[0].length()+1);                
    
            byte[] buffer = new byte[1024];
            int len;
            while ((len = is.read(buffer)) != -1) {
                os.write(buffer, 0, len);
            }
            os.close();
            is.close();
        }
    }
    
    create or replace procedure blob_append (
      p_lob1  in out nocopy blob
    , p_lob2  in            blob
    )
    as language java name 'BLOBAppender.run(oracle.sql.BLOB[], oracle.sql.BLOB)' ;
    /
    
    SQL> declare
      2    p_lob1  blob := utl_raw.cast_to_raw('ABC');
      3    p_lob2  blob := utl_raw.cast_to_raw('DEF');
      4  begin
      5    blob_append(p_lob1, p_lob2);
      6    dbms_output.put_line(utl_raw.cast_to_varchar2(p_lob1));
      7  end;
      8  /
    
    ABCDEF
    
    PL/SQL procedure successfully completed.
    

Maybe you are looking for

  • Can I get the IP address used by other devices for synchronization?

    One of my machines was stolen. I wanted to know if I could find it using the synchronized information. I hope that there is a way to determine the IP address, and then contact the owner of this IP block to see if they can help me more. Is this is pos

  • Re: Screen Equium A200 is low

    Hello I have a Toshiba Equium A200 computer laptop with a dark screen. I changed the inverter and the screen but the image isalways off.I came to the conclusion that near the lid switch was defective but have disassembled the laptop and can't find fo

  • How to install more Ram on Equium L20 - 197

    Hello world I am new to this site and if possible need help.My partner has a Toshiba Equium L20-197 Notebook, she was constantly telling me that it's very slow and when I watched it only had 128 MB or Ram, she is running that Windows XP so he was adv

  • Bluetooth connection error when you connect the phone to computer

    Original title: Bluetooth connection My phone shows upward in devices but when I click on connect is not - it says connection error?

  • Looking for a particular video tutorial

    HelloA month or two ago I briefly watched a video tutorial online that showed the presenter using the chromatic aberration removal tools to help the fringe a selection mask / tree. I forgot to bookmark the video and now I can't find - and since I cle