Commnunication swf to swf with Listeners

Hi,
am currently testing different approach to see what would be
the best way to load 1 swf inside another swf (with loadClip
method). The way I would prefer would be with EventDispatcher and
EventListeners. But is it event possible? What would be the scope
of listeners with multiples swf. Even if I create.delegate my new
clip, will he catches the event of the loaded swf.
Thank you in advance

Once you load one swf into another you should have access to
the functions, variables, listeners within that movie.

Similar Messages

  • Loading/Unloading a .swf that adds event listeners to the Stage

    Hi all,
    Disclaimer
    Apologies if I suck so bad at using forum search that the answer to this is on page 1 somewhere; I tried...
    Question
    I am loading and unloading a .swf to which I do not have source code access. This .swf places several event listeners on the stage, as far as I can tell. When the .swf is unloaded, the event listeners placed upon the stage still seem to be in effect. Using unloadAndStop doesn't seem to do it, and I have to target Flash Player 9, anyway, so can't really use it. Is there any other way I can keep this external .swf from holding onto my main movie's stage?
    Additional info
    All eventListeners and references being set by my code are removed.
    I've managed a little contact with the author of the .swf:
    I've requested he provide a dispose() method I can call to get all the listeners removed, and send an updated .swf.
    He's suggested that I should be able to avoid the problem by loading into a unique ApplicationDomain. I'm not terribly familiar with this, but have given it a try without much success. Is this a valid solution - can I really protect my 'stage' by properly using ApplicationDomains - or do I need to persist in trying to get a public dispose() method built in?
    Thanks in advance!
    Cheers, John

    thanks for reply sir
    sir actually, i have not any problem with loading any file but i need to go back to intro.swf file when i click on clsbtn of main.swf, i want unload the main.swf file and panel.swf file
    actually i did was, i have intro.swf file and there is button by clicking load main.swf file (where is timeline controling butons) and in the main file automatically load panel.swf file ( where is all animation)
    its all play gud , no problem
    but my problem is there is a clsbtn in main.swf file and when i click on that button everything should be unload and it should return on the previous position in intro.swf
    i hope u understand what i am trying to say

  • Smooth conversion of SWF to AVI with Alpha Channel

    today i tried a program which claims the unique program in
    the world can convert
    SWF to AVI with alpha
    channel, i find that this is the best program which can
    synchronization audio and video, and there won't be watermark in
    the middle of your video, i can also use it to capture pictures
    when i play the swf file, it is a good function that i can put the
    picture in my phone

    Hi there Schumi-z!
    Well, it seems many poeple have the very same problem. Let me explain what I have got and what I look for.
    I am working on a simple video editor. This program is to take a video as input, read the video and "chop" it automatically. Taken certain frames to different new videos, from one to 10 or more, according to certain parameters of the frame analized.
    What I have got until today is a way of opening the video, reading it frame by frame, extracting a frame, analize it. But I'm yet to develop a way to write new videos taking a group of this previously separated frames.
    I would like to know, if you are trying to solve the same or similar problem which in any time it envolves writing a new video file, so we can work together and solve this problem as soon as possible.
    This work is also a part of my research to complete my thesis work. It would be an honor to have a quote mentioning someone from around the world.
    Well, I hope to hear from you soon.
    Have a nice day

  • Allow loaded swf's communication with the internet

    Hi,
    I have an air application that is loading in swfs, the swfs then intern request data from internet.
    For example I have one swf thats loaded into the air application that requests data from the flickr api.
    But I keep getting adobe air security pop ups. "adobe air has stopped a potentially unsafe operation tring to comunicate with this internet-enabled location:
    This application is going on a kiosk of types. Is it possible to add some sort of text file to the machines that has predetermined list of allowed internet-enabled locations so that this pop up doesnt keep appear and the application works with out us having to manually set each kiosk to allow a location?
    Thanks
    Aidan

    Have you found an answer for this. I am running into the same
    problem.

  • When I publish a SWF/HTML5 module with Captivate 8 and try to run it using IE9 - I get the following error "The content you are viewing is not supported in the current Document Mode" - anyone know why?

    When I publish a SWF/HTML5 module with Captivate 8 and try to run it using IE9 - I get the following error "The content you are viewing is not supported in the current Document Mode" - anyone know why?

    TLCMediaDesign wrote:
    I've seen a lot of threads about getting rid of these kind of messages. Those messages are there for a reason most of the time. If you have CSS animations or other HTML5 standards that cannot be rendered in IE9 they won't magically start working becuse you got rid of a message. I use IE9 since that is the minimum standard for the client. I have never seen that message publishing to HTML5 content.
    IMO, if your client has IE9 I think that you should develop with IE9 in mind not IE11.
    When you say "develop with IE9 in mind not IE11" do you mean use SWF instead of HTML5? I used the standard question types, and a converted PowerPoint presentation. I didn't add anything out of the ordinary.

  • Multipe swf try out with adobe air 3.6 on ipad - black screen

    Hello Everyone,
    I am trying to build our app with the new adobe air 3.6, i read that i should build in aot mode to achieve it to work properly. In Flash Builder simulator the app works well, i see the assets in position(whitch is loaded from another swf "assets/swf/assets.swf") but on the ipad it only shows blacks screen nothing more.
    Why is that? Should I set something or i did something wrong?
    I am using Flash Builder 4.6 ( I hope i dont need to update to 4.7)
    Thank you for the Help!
    Cheers.
    Mat

    Solved. Was not AIR specific problem.
    BTW the product is great!

  • Flash swf movie player with chaptering

    Hi guys, I'm looking for an off the shelf paid flash player (or free if available) that will allow me to play SWF's (not FLV's or videos).
    I have 5 .swf animations (1.swf, 2.swf, 3.swf, 4.swf, 5.swf).
    I would like to have a player that if i click play, will play through the 5 animations one after the other seamlessley - however i may wish to skip through chapters (each .swf will be a chapter) by clicking ahead on a playhead or by selecting a chapter title from a drop down.
    The chapters need to be seperate swf's because they will used individually aswell as as one piece.
    So in effect I really simply want a player to watch all my flash movies concurrently with the ability to click ahead in the player and have it load the relevant .swf if need be!
    Any suggestions?

    Though this is not an extreme task to achieve, I'm not aware of any "you don't need to program anything" kinds of templates that allow you to quickly sequence a series of SWF files. But, I understand this kind of requirement if you aren't an AS3 programmer yourself (or maybe you are, and you just want to save time, which we all do!). Many times it can be worth paying $40 for some template/component versus taking the time ourselves (1 hour, someteims dozens of hours).
    If this were programmed from scratch, it would be a combination of these concepts (sorry, no code here):
    The Loader class to load in your other AS3 SWF files
    Using an ENTER_FRAME event (in your application, not in the SWFs, which I'll assume you don't want to edit) to know when a SWF has reached the last frame, at which point you unload the current SWF and load a new SWF.
    An array that lists out your SWF files.
    Detection of when the final file has completed.
    In addition, possible some UI controls that would:
    Allow for the pausing/playing the current SWF (which would only control their main timeline; dealing with nested MovieClips with their own timelines would require add'l work).
    Allow for the instant skipping to the Next or Previous SWF file.
    Allow for the Restarting of the presentation when the final SWF has completed (or the option ability to loop to the 1st SWF at this point)
    The end result would be your template, that could be made fully reusable by coupling it with a really small XML file:
    The XML would become your list of SWF files
    This could also control which UI controls you have available
    Hopefully this gives you a general (abstract) sense of things you'd need to program (or find somebody to program...at which point the'll have their own take on how they'd do this).

  • Is Flash CS6 download still available to CC subscribers? I need to create a SWF to work with AS2.

    Is Flash CS6 download still available to CC subscribers?
    I need to create a SWF to work with AS2.

    Get CS6 Apps from Cloud Subscription:
    Download previous versions of Adobe Creative applications -
    http://helpx.adobe.com/creative-cloud/kb/download-previous-versions-creative-applications. html

  • Loading external swf fonts created with fontswf, loaded with a Loader, compatible with iOS

    Let me immediately start out by saying that I do in fact have a current working solution for using embedded fonts, generated by fontswf and working in an AIR ActionScript mobile application, and also currently working fine with iOS.
    My current app needs CFF fonts, so I currently use the fontswf tool to pre-generate the .swfs using:
    fontswf -4 -a [SomeAlias] -o [SomeFont.swf] [SomeFont.ttf]
    and then I am currently embedding them in my app source code .as for compilation using:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    I then have no problem registering them using Font.registerFont(SomeFontClass) and everything works fine.
    However, I would prefer to take the use of these swf fonts one step further and load them dynamically using a Loader so that I do not have to take the hit of having multiple CFF font swfs embedded in the main compiled SWF and so that I could even load an unknown future set of fonts without having to supply them as part of the app build.
    Now I have seen and read many blogs and tutorials where people have exported font swf from Flash Builder where you add an explicit 'Class' name or even made standalone .as static files compiled into standalone swfs only including the two lines:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    so that you also have a 'Class' involved. Then people use some form of appropriate applicationDomain.getDefinition("className") as Class
    to pull out the class for the font registration.
    My question is, how does one perform the same font loading and registration of fonts using a Loader only loading the .swfs produced directly from fontswf?
    It seems only a DefineFont4 is tagged in the swf, there doesn't seem to be a 'Class' per se to call on.
    More importantly, iOS apps cannot load external swfs with code in them, so my understanding is any extra wrapped swf that would contain a custom Class technique would fail the iOS requirement of only having one main SWF with any ActionScript compiled code.
    Is there an alternative to the 'Class' technique by grabbing the DefineFont4 tagged resource from the swf and instantiating a proper working Font class from that? One that would still be compatible with the restrictions placed on AIR mobile apps running on iOS?

    Ironically, just after posting this, Adobe released AIR 3.5 beta onto labs, and added multiple SWF support for iOS.
    While this new support makes it easier to manage your content across multiple SWFs and technically allows you to use the class based separate .swfs for each font if desired, the system still requires that all these SWFs be present at compile time when making the final app .ipa for iOS.
    So this still doesn't solve trying to load fonts after the app is already built. For example, as part of a downloaded in-app purchase mechanism.

  • Can sdk3.0 application swfloader swf file builder with sdk4.6

    I have an application builder with sdk3.0. Can I use swfloader to load a swf file builder with sdk4.6?

    That configuration is not supported.  The 3.0 SWF will set the API version to some lower number and any FP10 or FP11 APIs will break.

  • Pass flashvars to swf in swf?

    I am loading a child swf inside a parent swf, and need to pass variables from the parent into the child.  I don't have control over the source code of the child, so I can't have the child pull data from the parent; the data needs to be passed to the child swf in a standard fashion, so that the child works just as if it were embedded in a page using flashvars.
    I've tried passing variables to the child as parameters on the URL:
    var ldr:Loader = new Loader();
    var urlReq:URLRequest = new URLRequest("http://mysite.com/child.swf?var1=aaa&var2=bbb");
    ldr.load(urlReq);
    addChild(ldr);
    This seems to work ok, but apparently Internet Explorer doesn't allow URLs longer than 2083 characters (http://support.microsoft.com/kb/208427).  I need to pass a fairly long string of parameters to the child which will likely exceed 2083 characters. So I'm trying to avoid passing the parameters directly on the URL, and wondering if there is any other way to populate the child swf with the variables that it will expect.  Is there any other way of passing flashvars to a swf-in-swf?
    Thanks,
    Dave

    Craig,
      Thanks for the reply.  I've tried this too but unfortunately, passing the data using URLVariables has the same limitation in IE.
    var ldr:Loader = new Loader();
    var urlReq:URLRequest = new URLRequest("http://mysite.com/child.swf");
    var variables:URLVariables = new URLVariables();
    variables.var1="aaa";
    urlReq.data = variables;
    ldr.load(urlReq);
    addChild(ldr);
    This still results in a request being made to http://mysite.com/child.swf?var1=aaa, since it's using HTTP GET.  If the entire URL (including the query string) is longer than 2083 characters, IE is unable to load the URL.
    Any way around this?
    Thanks,
    Dave

  • How I use swf in swf (nested) ?

    Flash is case-sensitive in naming(symbols,form
    fields,components) ?
    How I use ScrollPane ?
    How I use swf in swf (nested) ?

    What I've done in the past is created an image using an image editor like MS Paint,  then change the image to black/white instead of color, and used grey instead of black.  Then upload the image via SE78.  Then you can include the image in your sapscript using the BITMAP statement.  Search for watermark in this forum and you should get some more info.
    BITMAP ZIMAGE OBJECT GRAPHICS ID BMAP TYPE BCOL
    Regards,
    Rich Heilman

  • Problems with listeners

    i tried making some simple programs to get familiar with listeners.
    i encountered a problem:
    what i'm trying to do is to make a JFrame and add some swings to it. and i want the main frame to proccess the events from keyboard and mouse. i used KeyListener and Mouse Listener, and the result is that:
    when my frame is empty the events go to it and everything works fine (but my frame is empty and so useless...) but when i add even one component to my frame all the events stop getting to the frame and probably go to the component. that is even when that component is not selected
    how can i bypass that problem without
    Component[] c= get Components()
    for (i=0;i<c.size();i++)
    c.addListener.....
    aviad

    as you wish.
    i checked it further and te problem is only when there are components that can get focus (not jpanel jlabel..)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class KeyCheck extends JFrame implements KeyListener,MouseListener{
        int i=0;
        public KeyCheck(){
            setSize(200,200);
            getContentPane().add(new JButton());
            addMouseListener(this);
            addKeyListener(this);
            show();
    public static void main(String[] args){
        new KeyCheck();
        public void keyPressed(KeyEvent e) {
            System.out.println("Key Pressed"+(i++));
        public void keyReleased(KeyEvent e) {
            System.out.println("Key released"+(i++));
        public void keyTyped(KeyEvent e) {
            System.out.println("Key typed"+(i++));
        public void mouseClicked(MouseEvent e) {
            System.out.println("mouse clicked"+(i++));
        public void mouseEntered(MouseEvent e) {
            System.out.println("mouse entered"+(i++));
        public void mouseExited(MouseEvent e) {
            System.out.println("mouse exited"+(i++));
        public void mousePressed(MouseEvent e) {
            System.out.println("mouse pressed"+(i++));
        public void mouseReleased(MouseEvent e) {
            System.out.println("mouse released"+(i++));
    }

  • FlexUnit not generating TestRunner.swf when compiled with Hudson / Ant

    I've been dabbling with FlexUnit (4.1 RC2) and CI under Hudson. To that effect, I chose to test the server configuration with the sample CI project that comes with the 4.1 RC2 distribution of FlexUnit, and compiling the project with Hudson (now Jenkins after most recent update) and Ant (1.8). It doesn't work because it does not seem to compile the TestRunner swf. After exploring the artifacts in the workspace, it appears that the TestRunner mxml file is created as you would expect, but then the mxmlc compiler is seemingly silently failing to complete the compile step.
    It's worth noting at this point that compiling on my local dev machine does work (as it does on a half dozen other dev machines), also, the Hudson configuration is good for compiling other Flash projects. So mxmlc from the Flex SDK is setup and compiling other projects successfully.
    Here's the first part of the build log from Hudson / Jenkins as it tries to compile the sample project:
    compile:
        [mxmlc] Loading configuration file /opt/flex/frameworks/flex-config.xml
    test:
    [flexunit] Validating task attributes ...
    [flexunit] Generating default values ...
    [flexunit] Using the following settings for compilation:
    [flexunit]      FLEX_HOME: [/opt/flex]
    [flexunit]      player: [flash]
    [flexunit]      sourceDirectories: ["/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/src/main/flex"]
    [flexunit]      testSourceDirectories: ["/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/src/test/flex"]
    [flexunit]      libraries: ["/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-4.1.0_RC2-4-as3_4.1.0.16076.swc","/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-aircilistener-4.1.0_RC2-4-4.1.0.16076.swc","/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-cilistener-4.1.0_RC2-4-4.1.0.16076.swc","/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-uilistener-4.1.0_RC2-4-4.1.0.16076.swc"]
    [flexunit] Found SDK version: 4
    [flexunit] Created test runner at [/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.mxml]
    [flexunit] Compiling test classes: [org.flexunit.demo.EchoPanelTest, org.flexunit.demo.SampleTest]
    [flexunit] Executing '/var/lib/jenkins/tools/JDK_6/jre/bin/java' with arguments:
    [flexunit] '-Xmx256M'
    [flexunit] '-jar'
    [flexunit] '/opt/flex/lib/mxmlc.jar'
    [flexunit] '+flexlib'
    [flexunit] '/opt/flex/frameworks'
    [flexunit] '-output'
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.swf'
    [flexunit] '-source-path'
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/src/main/flex'
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/src/test/flex'
    [flexunit] '-library-path+=/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-4.1.0_RC2-4-as3_4.1.0.16076.swc'
    [flexunit] '-library-path+=/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-aircilistener-4.1.0_RC2-4-4.1.0.16076.swc'
    [flexunit] '-library-path+=/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-cilistener-4.1.0_RC2-4-4.1.0.16076.swc'
    [flexunit] '-library-path+=/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/libs/flexunit-uilistener-4.1.0_RC2-4-4.1.0.16076.swc'
    [flexunit] '-headless-server=true'
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.mxml'
    [flexunit]
    [flexunit] The ' characters around the executable and arguments are
    [flexunit] not part of the command.
    [flexunit]
         [null] Loading configuration file /opt/flex/frameworks/flex-config.xml
    After this line I would expect another line indicating the swf output and the size of the file - as I see in the build log on my dev machine - but that never happens because mxmlc never writes the swf. I have no idea why this fails.
    Then there is a bunch of other stuff to do with attempting to launch the test with Xvnc:
    [flexunit] Using the following settings for the test run:
    [flexunit]      FLEX_HOME: [/opt/flex]
    [flexunit]      haltonfailure: [false]
    [flexunit]      headless: [false]
    [flexunit]      display: [99]
    [flexunit]      localTrusted: [true]
    [flexunit]      player: [flash]
    [flexunit]      port: [1024]
    [flexunit]      swf: [/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.swf]
    [flexunit]      timeout: [60000ms]
    [flexunit]      toDir: [/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/report]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit] Entry [/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin] already available in local trust file at [/var/lib/jenkins/.macromedia/Flash_Player/#Security/FlashPlayerTrust/flexUnit.cfg].
    [flexunit] Executing 'gflashplayer' with arguments:
    [flexunit] '/var/lib/jenkins/jobs/FlexUnit4SampleCIProject/workspace/FlexUnit4SampleCIProject/target/bin/TestRunner.swf'
    [flexunit]
    [flexunit] The ' characters around the executable and arguments are
    [flexunit] not part of the command.
    [flexunit]
    [flexunit]
    [flexunit] Error: Invalid SWF file name
    [flexunit]
    [flexunit]
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
    But of course by this point we're toast because mxmlc has not output the TestRunner swf, so the filename is invalid. If anyone has any idea what's wrong, or any suggestions on things to try, please let me know, we're desperate!!
    Thanks for your time.

    Try ensuring the flash player on the server is definitely the Flash Debugger, also you have set headless to false, it needs to be true.

  • Can we publish swf file made with InDesign in .exe?

    I made a SWF file with InDesign. I would like to publish it in .exe? Is it possible?

    What version of FlashPro are you using? If you want a self contained app that doesn't load external resources, publish an AIR app, which will work on Windows or OSX. I'm using OSX so I can't really help with .exe projector files, but it looks like the latest version of FlashPro no longer outputs projector files—I think everything is AIR now.
    If you really want to go the projector route, I'm guessing Jeffrey Smith's suggestion of finding an older version of Flash Player would be simpler.
    So for AIR, set your Publishing target to AIR for Desktop. Then under File>AIR settings:
    Output as: Application with runtime embedded
    Include files: Add all of your resources—the swf ID generated and it's resource folder
    In the Signature tab click New to create a self-signing Certificate (if you were developing commercial software you would need a third party certificate). You can save the certificate anywhere.
    When you publish you should find an AIR application file (.app) file in the directory with your .fla

Maybe you are looking for

  • One of my Macs doesn't see USB drive hooked to Airport Extreme

    I have three Macs on my home network. Two of them can see the USB drive I've attached to my Airport Extreme, but the third -- a recent Intel Mac Mini -- won't. Airport Utility on the Mac Mini sees the drive, but Airport Disk Utility doesn't. Here's w

  • Health app double counting steps?

    I have a Withings Pulse activity tracker and it is now synced with my phone and the Withings app to help track my steps throughout the day.  I've noticed that the Health app itself tracks my steps in intervals throughout the day and it seems the With

  • G5 computer flashing on and off... broken??

    I was on the phone with Apple for something and they said to press command + option + P + R. Then my computer started making a really weird noise and the power light was blinking on and off three times then stopping... then repeating over and over. H

  • Modify bulk users attribute

    Hi All, I'm not really expert on vbscript and been trying to search from internet about the problem that i have but just couldn;t find any solution. We are currently making a review on our AD and found users having wrong attributes. Now, we want this

  • How to Debug Standard Program & Custom Scripts in Cheque Printing

    Hii Am working on APP Cheque Printing... here am using standard driver Program 'RFFOUS_C' and two customised script for Cheque print and payment advice print.. please let me know , How to dubug my cutostomised script while printing through F110 .....