Assistance unloading flv's from swf's imported to main stage

I have my main.fla which imports external swfs that contain flv's. I have three buttons that navigate the main timeline to frames 2-4. At frames 2-4 an external swf gets loaded into an empty movie clip via this code. Each loaded swf acts like a menu with some nice vidoes loading in the background.
The problem i found is the flvs continue to play as i navigate between menus, which makes the main swf/fla slow down becuase the pc is working harder to deliver all the stuff running in the background. I've added this code to frame 1 of my empty movie clip that is in my library that has the instance name 'menu1'
I keep getting the error "Access of undefines property mc1"
I have the source files for my site here if you can take a look and see what I'm doing wrong. I have removed this code so i don't get the error and have tried other things to no avial.
http://www.coldbloodedsovereignty.com/site.zip
var loader:Loader = new Loader();
addChild(loader);
loader.load(new URLRequest(MovieClip(this.parent).src));
var src:String="external.swf";
menu1.addEventListener(Event.REMOVED_FROM_STAGE,f);
function f(e:Event):void{
MovieClip(e.target).loader.unloadAndStop();

consider the files gifts to those willing to help, should they choose to use them for their own. oops, yes the files were created in cs5.
I will try your suggestions tonight. Thank you.

Similar Messages

  • Bug fix requires switching touch events from symbols/classes to the main stage?

    Also posted in Mobile Development, I'm still not sure which forum I should be in.
    For previous threads:
    http://forums.adobe.com/thread/864057
    http://forums.adobe.com/thread/863566
    http://forums.adobe.com/thread/864262
    http://forums.adobe.com/thread/863597
    Bug ID #2940816
    I  have an app that wasn't compiling correctly. I sent the bug to Adobe  who responded with a workaround. However, I can't figure out how to make  their stated workaround work in my code.
    I have puzzle  pieces on the stage. Each is assigned to a separate class. Inside the  class I have touch events defining multiple touch events for each piece.
    I  have another spot on the stage where, when it is touched, a puzzle  piece appears. These are also each linked to a separate class. Inside  this class I also have touch events defining multiple touch events for  each piece.
    Though it works fine on my computer, it wasn't  working on an iPad. Adobe said that I needed to switch the touch events  so that they were assigned to the main stage instead of to each  individual object.
    However, the code they gave me didn't really make sense in context and I'm confused how to implement it.
    This is the code in the class for each piece that is created when you touch the stage:
            public function GeoPiece(): void {
                if (PuzzleGlobals.currentLevel == "Name") {
                    this.gotoAndStop("wholeName");
                else if (PuzzleGlobals.currentLevel == "Abbrev") {
                    this.gotoAndStop("abbrev");
                else if (PuzzleGlobals.currentLevel == "Shape") {
                    this.gotoAndStop("shape");
                this.addEventListener(TouchEvent.TOUCH_MOVE, geoPieceBegin);
            public function geoPieceBegin (e:TouchEvent): void {
                PuzzleGlobals.pieceActive = true;
                e.target.startTouchDrag(e.touchPointID, false);
                e.target.addEventListener(TouchEvent.TOUCH_END, geoPieceEnd);
                e.target.interactionBegin();
                MovieClip(this.parent.parent).nameDisplay.gotoAndStop(e.target.abbrev );
                PuzzleGlobals.currentPiece = e.target.abbrev;
            public function geoPieceEnd (e:TouchEvent): void {
                PuzzleGlobals.pieceActive = false;
                if (currentObjOver.isLocked == true) {
                    currentObjOver.gotoAndStop ("Lock");
                else {
                    currentObjOver.gotoAndStop ("Out");
                MovieClip(this.parent.parent).nameDisplay.gotoAndStop(PuzzleGlobals.c hosenPuzzle);
                e.target.stopTouchDrag(e.touchPointID);
                if (this.dropTarget.parent is GeoPuzzle) {
                    if (GeoPuzzle(this.dropTarget.parent).abbrev == e.target.abbrev) {
                        PuzzleGlobals.statesCompletedUSA++;
                        GeoPuzzle(this.dropTarget.parent).isLocked = true;
                        GeoPuzzle(this.dropTarget.parent).gotoAndStop("Lock");
                        e.target.parent.removeChild(DisplayObject(e.target));
                    else {
                        //play BOOP sound indicated wrong drop;
                if (PuzzleGlobals.statesCompletedUSA == PuzzleGlobals.TOTAL_NUMBER_USA) {
                    //play fireworks game
                else {
                    //do nothing
                e.target.removeEventListener(TouchEvent.TOUCH_END, geoPieceEnd);
            public function interactionBegin () {
                 if (this.dropTarget != null && this.dropTarget.parent is  GeoPuzzle) { //check to make sure it's over a puzzle piece
                    currentObjOver = GeoPuzzle(this.dropTarget.parent);
                    currentObjOver.gotoAndStop("Over");
                if (lastObjOver != currentObjOver) {
                    if (lastObjOver.isLocked == true) {
                        lastObjOver.gotoAndStop("Lock");
                    else {
                        lastObjOver.gotoAndStop("Out");
                    lastObjOver = currentObjOver;
    This is the code in the class for each piece that's already on the stage:
            public function GeoPuzzle(): void {
                if (this.isLocked == true) {
                    this.gotoAndStop ("Lock");
                if (PuzzleGlobals.pieceActive == true) {
                    this.addEventListener(TouchEvent.TOUCH_BEGIN, geoPuzzleBegin);
            public function geoPuzzleBegin (e:TouchEvent): void {
                e.target.addEventListener(TouchEvent.TOUCH_END, geoPuzzleEnd);
                e.target.gotoAndStop("Over");
                MovieClip(this.parent).nameDisplay.gotoAndStop(e.target.abbrev);
            public function geoPuzzleEnd (e:TouchEvent): void {
                if (e.target.isLocked == false) {
                    e.target.gotoAndStop("Off");
                else if (e.target.isLocked == true) {
                    e.target.gotoAndStop("Lock");
                MovieClip(this.parent).nameDisplay.gotoAndStop(PuzzleGlobals.chosenPu zzle);
                e.target.removeEventListener(TouchEvent.TOUCH_END, geoPuzzleEnd);
    You  can see that each piece (whether it's already locked on the stage or  movable) reacts differently to different touch events. However, this is  the code that Adobe gave me as a workaround:
    this.stage.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchEvent);
    this.stage.addEventListener(TouchEvent.TOUCH_MOVE, onTouchEvent);
    this.stage.addEventListener(TouchEvent.TOUCH_END, onTouchEvent);
    var beginCount:uint=0;
    var moveCount:uint=0;
    var endCount:uint=0;
    function onTouchEvent(event:TouchEvent):void{
         switch (event.type){
              case TouchEvent.TOUCH_BEGIN:
               &nbs p;           &n bsp; trace("BEGIN")
               &nbs p;           &n bsp; beginCount++;
               &nbs p;           &n bsp; square.x = event.stageX;
               &nbs p;           &n bsp; square.y = event.stageY;
               &nbs p;           &n bsp; square.startTouchDrag(event.touchPointID, false);
               &nbs p;           &n bsp; break;
              case TouchEvent.TOUCH_MOVE:
               &nbs p;           &n bsp; trace("MOVE")
               &nbs p;           &n bsp; moveCount++;
               &nbs p;           &n bsp; break;
              case TouchEvent.TOUCH_END:
               &nbs p;           &n bsp; trace("END")
               &nbs p;           &n bsp; endCount++;
               &nbs p;           &n bsp; square.stopTouchDrag(event.touchPointID);
               &nbs p;           &n bsp; break;
         trace("begin: "+beginCount+" move: "+moveCount+" end: "+endCount);
    //     countText.text = "begin: "+beginCount+" move: "+moveCount+" end: "+endCount;
    This  doesn't make any sense to me because it seems that it would only work  if touching the stage had to react in just a single way. I have multiple  pieces that need to each react differently.
    1. The pieces that are locked to the stage need to highlight when touched and display their name.
    2.  These pieces also need to keep themselves highlighted and their names  displayed when the touch is dragged off of them instead of just removed.
    3.  Each piece needs to be created when touching the Puzzle Piece button  the stage. As these pieces are dragged, they need to highlight the  pieces underneath them and unhighlight them when they are dragged off.  They also need to display their own names, and lock into place when they  are dragged over the correct piece.
    My questions are:
    1. Why don't touch events work in the compiler?
    2. How can I translate my current working code's touch events to all be directly linked to the stage instead of their objects?
    Thanks so much!
    Amber

    Sure!
    I haven't changed much. I've been playing around and I think I know where the problem is coming from now. I just can't figure out how to fix it.
    This it the only code I've modified:
            public function interactionBegin () {
                trace ("Current: " + currentObjOver);
                trace ("Last: " + lastObjOver);
                if (this.dropTarget != null && this.dropTarget.parent is GeoPuzzle) { //check to make sure it's over a puzzle piece
                    currentObjOver = GeoPuzzle(this.dropTarget.parent); //make "currentObjOver" assigned to the puzzle piece the finger is currently touching
                    currentObjOver.gotoAndStop("Over"); //highlight the current piece
                    if (currentObjOver != lastObjOver) { //if your finger moves and you're now touching a different state
                        if (lastObjOver != null && lastObjOver.isLocked == true) { //if the previous state you were touching has been solved
                            lastObjOver.gotoAndStop("Lock"); //lock this state into place
                        else if (lastObjOver != null && lastObjOver.isLocked == false) { //if the previous state you were touching wasn't solved
                            lastObjOver.gotoAndStop("Off"); //unhighlight that state
                        lastObjOver = currentObjOver; //assign the current state to be the last state you were touching
    lastObjOver and currentObjOver are always assigned the same object. I can't figure out why, I've run it line by line but I can't figure out where I'm going wrong.

  • Get flv url from swf

    How can you find the url location of an flv file.... for
    example how could i find the flv of a youttube video... this must
    be possible as their are sites that enable you to download the flv.
    kind regards J.... p.s. merry christmas.

    So there is no direct way to get the url into flash?...
    The thing is that I`m making some multi-languaged banners for another programmer. The url`s used in his site have a ln parameter from which I could get the language.
    So then... I could call a JavaScript function with ExternalInterface from flash and get the url then move on with my bussiness form there, right? I dont`t know Java script though... You think you could give me the code?... Thanks in advance!

  • Switching touch events from symbols/classes to the main stage?

    For previous threads:
    http://forums.adobe.com/thread/864057
    http://forums.adobe.com/thread/863566
    http://forums.adobe.com/thread/864262
    http://forums.adobe.com/thread/863597
    Bug ID #2940816
    I have an app that wasn't compiling correctly. I sent the bug to Adobe who responded with a workaround. However, I can't figure out how to make their stated workaround work in my code.
    I have puzzle pieces on the stage. Each is assigned to a separate class. Inside the class I have touch events defining multiple touch events for each piece.
    I have another spot on the stage where, when it is touched, a puzzle piece appears. These are also each linked to a separate class. Inside this class I also have touch events defining multiple touch events for each piece.
    Though it works fine on my computer, it wasn't working on an iPad. Adobe said that I needed to switch the touch events so that they were assigned to the main stage instead of to each individual object.
    However, the code they gave me didn't really make sense in context and I'm confused how to implement it.
    This is the code in the class for each piece that is created when you touch the stage:
            public function GeoPiece(): void {
                if (PuzzleGlobals.currentLevel == "Name") {
                    this.gotoAndStop("wholeName");
                else if (PuzzleGlobals.currentLevel == "Abbrev") {
                    this.gotoAndStop("abbrev");
                else if (PuzzleGlobals.currentLevel == "Shape") {
                    this.gotoAndStop("shape");
                this.addEventListener(TouchEvent.TOUCH_MOVE, geoPieceBegin);
            public function geoPieceBegin (e:TouchEvent): void {
                PuzzleGlobals.pieceActive = true;
                e.target.startTouchDrag(e.touchPointID, false);
                e.target.addEventListener(TouchEvent.TOUCH_END, geoPieceEnd);
                e.target.interactionBegin();
                MovieClip(this.parent.parent).nameDisplay.gotoAndStop(e.target.abbrev);
                PuzzleGlobals.currentPiece = e.target.abbrev;
            public function geoPieceEnd (e:TouchEvent): void {
                PuzzleGlobals.pieceActive = false;
                if (currentObjOver.isLocked == true) {
                    currentObjOver.gotoAndStop ("Lock");
                else {
                    currentObjOver.gotoAndStop ("Out");
                MovieClip(this.parent.parent).nameDisplay.gotoAndStop(PuzzleGlobals.chosenPuzzle);
                e.target.stopTouchDrag(e.touchPointID);
                if (this.dropTarget.parent is GeoPuzzle) {
                    if (GeoPuzzle(this.dropTarget.parent).abbrev == e.target.abbrev) {
                        PuzzleGlobals.statesCompletedUSA++;
                        GeoPuzzle(this.dropTarget.parent).isLocked = true;
                        GeoPuzzle(this.dropTarget.parent).gotoAndStop("Lock");
                        e.target.parent.removeChild(DisplayObject(e.target));
                    else {
                        //play BOOP sound indicated wrong drop;
                if (PuzzleGlobals.statesCompletedUSA == PuzzleGlobals.TOTAL_NUMBER_USA) {
                    //play fireworks game
                else {
                    //do nothing
                e.target.removeEventListener(TouchEvent.TOUCH_END, geoPieceEnd);
            public function interactionBegin () {
                if (this.dropTarget != null && this.dropTarget.parent is GeoPuzzle) { //check to make sure it's over a puzzle piece
                    currentObjOver = GeoPuzzle(this.dropTarget.parent);
                    currentObjOver.gotoAndStop("Over");
                if (lastObjOver != currentObjOver) {
                    if (lastObjOver.isLocked == true) {
                        lastObjOver.gotoAndStop("Lock");
                    else {
                        lastObjOver.gotoAndStop("Out");
                    lastObjOver = currentObjOver;
    This is the code in the class for each piece that's already on the stage:
            public function GeoPuzzle(): void {
                if (this.isLocked == true) {
                    this.gotoAndStop ("Lock");
                if (PuzzleGlobals.pieceActive == true) {
                    this.addEventListener(TouchEvent.TOUCH_BEGIN, geoPuzzleBegin);
            public function geoPuzzleBegin (e:TouchEvent): void {
                e.target.addEventListener(TouchEvent.TOUCH_END, geoPuzzleEnd);
                e.target.gotoAndStop("Over");
                MovieClip(this.parent).nameDisplay.gotoAndStop(e.target.abbrev);
            public function geoPuzzleEnd (e:TouchEvent): void {
                if (e.target.isLocked == false) {
                    e.target.gotoAndStop("Off");
                else if (e.target.isLocked == true) {
                    e.target.gotoAndStop("Lock");
                MovieClip(this.parent).nameDisplay.gotoAndStop(PuzzleGlobals.chosenPuzzle);
                e.target.removeEventListener(TouchEvent.TOUCH_END, geoPuzzleEnd);
    You can see that each piece (whether it's already locked on the stage or movable) reacts differently to different touch events. However, this is the code that Adobe gave me as a workaround:
    this.stage.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchEvent);
    this.stage.addEventListener(TouchEvent.TOUCH_MOVE, onTouchEvent);
    this.stage.addEventListener(TouchEvent.TOUCH_END, onTouchEvent);
    var beginCount:uint=0;
    var moveCount:uint=0;
    var endCount:uint=0;
    function onTouchEvent(event:TouchEvent):void{
         switch (event.type){
              case TouchEvent.TOUCH_BEGIN:
                             trace("BEGIN")
                             beginCount++;
                             square.x = event.stageX;
                             square.y = event.stageY;
                             square.startTouchDrag(event.touchPointID, false);
                             break;
              case TouchEvent.TOUCH_MOVE:
                             trace("MOVE")
                             moveCount++;
                             break;
              case TouchEvent.TOUCH_END:
                             trace("END")
                             endCount++;
                             square.stopTouchDrag(event.touchPointID);
                             break;
         trace("begin: "+beginCount+" move: "+moveCount+" end: "+endCount);
    //     countText.text = "begin: "+beginCount+" move: "+moveCount+" end: "+endCount;
    This doesn't make any sense to me because it seems that it would only work if touching the stage had to react in just a single way. I have multiple pieces that need to each react differently.
    1. The pieces that are locked to the stage need to highlight when touched and display their name.
    2. These pieces also need to keep themselves highlighted and their names displayed when the touch is dragged off of them instead of just removed.
    3. Each piece needs to be created when touching the Puzzle Piece button the stage. As these pieces are dragged, they need to highlight the pieces underneath them and unhighlight them when they are dragged off. They also need to display their own names, and lock into place when they are dragged over the correct piece.
    My questions are:
    1. Why don't touch events work in the compiler?
    2. How can I translate my current working code's touch events to all be directly linked to the stage instead of their objects?
    Thanks so much!
    Amber

    I am going to copy and paste this answer into all of the forums I've asked this question in case some noob like me comes along and needs the answer.
    I found the problem! After 3 months I finally figured out what was wrong and why my app was working in Device Central when exported as Flash 10.1 and not on my iPad when exported as AIR for iOS.
    The problem is that in the Flash runtime, if a line of code returns a bug, the flash runtime says "Error, shmerror, try again next time." So I had one if, else statement that was executing when it wasn't supposed to be - only once, at the very beginning of the program. It was throwing an error. When I exported as Flash, flash didn't care, and still executed the code later when it was supposed to. But Apple won't let their programs crash. So instead of just trying that code again, Apple decided, after the first error was thrown, that it would then COMPLETELY IGNORE that line of code. So the error was in the line where the states would unhighlight themselves. Apple just shut down that line of code, that's why it wouldn't execute properly.
    I ended up changing this line of code
    if (lastObjOver != null && lastObjOver.isLocked == true)
    which threw an error when the piece was FIRST dragged over the puzzle, to to this
    if (lastObjOver.parent != null && lastObjOver.isLocked == true)
    which wouldn't throw the error.
    Problem solved!
    If anyone else is having this problem, I suggest you do what I did. Change all your touch events to mouse events so you can run the program in the adc debugger. That's when I discovered the error being thrown.

  • Import an FLV file from Adobe Connect into Premiere Elements 12?

    The Adobe Connect support staff recommended that we use Adobe Premiere Elements to edit the FLV file that we exported out of their software.  We purchased Adobe Premiere Elements 12 based on that advice.  Now we see that FLV files are not on the list of supported import files. 
    How can I import an FLV file from Adobe Connect into Adobe Premiere Elements 12 for editing?

    Welcome to the forum.
    Over the years, I have used Moyea's Flash Importer plug-in for PrPro, and it has worked perfectly. With about PrPro CS 4, IIRC, Adobe did add an FLV Importer, so Moyea began to suspend development of that plug-in. Then, with the release of the CC version of PrPro, they dropped FLV completely.
    Now, Moyea does have other programs, but I do not know if any of them are plug-ins for PrE. However, many of their programs can create, edit and output FLV.
    There is also a (free, if memory serves) FLV converter, FLV to AVI, which I used to convert FLV files, before I discovered the Moyea plug-in for my PrPro.
    I would look into Moyea, to see if there is anything, that will work as a plug-in to PrE, http://www.video-to-flash.com/products/, and if not, explore a program, such as FLV to AVI: http://www.pazera-software.com/products/flv-to-avi-converter/
    Good luck,
    Hunt

  • After Effects CC 2014 - removal of H.264, MPEG-2, WMV, FLV, F4V, and SWF exporters - WHY !?

    While reading the features of AfterEffects CC2014, I noticed the following:
    "removal of H.264, MPEG-2, WMV, FLV, F4V, and SWF exporters from After Effects"
    THAT IS IS REDICULOUS!!
    NO FLV !?!?
    WHAT DO YOU EXPECT USERS TO IMPORT INTO FLASH ??
    IF no FLV export is available under After Effects CC 2014, there is NO WAY to EMBED an flv into flash !! (Linking is NOT always what is wanted!!)
    NO H264 !?!?!
    HAVE YOU GONE CRAZY ?!!?!?
    YOU BREAK WORKFLOWS!!!!!!!!!!!!!!!!!
    THAT IS REDICULOUS!!!
    Any chance of restoring such features so that it makes updating to it worthwhile ?

    To date I've primarily been a Photoshop user and have dealt with years of mystifying UX and workflow changes, features that are useless to me added, and critical ones taken away (I'm looking at you Bridge, you worthless piece of garbage).  Then, to add insult to injury, Adobe forum mods telling me I'm doing it wrong and should be jumping through more hoops to achieve the same results. Now, with AE becoming a bigger part of my work, I am sad to find, that the same culture of disconnected arrogance and myopia prevails on the AE dev team.
    "Oh um user, you really want to be going through AME, because um technically speaking there have been many problems with the H.264 and MPEG-2 exporters in After Effects"
    Oh really? Tell me more about my job. Tell me about my experiences exporting these formats directly from AE. Tell me how my client views my content, is it on a Mac, or a PC? Maybe it's on his phone, or her iPad. What kind of phone is it though? Tell me at what point in my process it's ideal to render. Tell me about other tasks I'm performing. Tell me about the resolution and the bit-rate my files should play at. Tell me the final application I will be using the footage. Probably broadcast right? Or is it web? Or is it PowerPoint? Wait, what if there is no final output? What if it's just pre-vis for some other application?
    Tell me how to win over my clients; what's the correct method of presentation to engage them most impactfully? Tell me about how much time I have to render massive video files. Is it more time efficient due to the nature of my composite to render once because my file is super shallow and will render quickly or is it more efficient to render twice because my file is extremely complex with hundreds of layers?
    That the deprecated formats were hidden away in the preferences menu is dumb and annoying. That this same preference would then be removed is despicable and petty and is further confirmation that Adobe has contempt for me as a user.

  • Unloading flv's

    Hello.
    I have a home page that loads several flv's. I am also trying
    to give the user the ability to view the page without video. When
    the user clicks a button on the home page, it sets a cookie that
    reloads the page with a different swf file that does not contain
    any flv's. However, since it takes a second or two for the cookie
    to be read, the initial swf has started loading, and even though
    the entire swf is swapped out with the "video-less" swf, those
    original flv's continue to load in the background, slowing
    everything down even though the user wants no part of the video.
    Any ideas how to solve this?
    fyi, another feature of the home page shares a similar
    problem. The user is to select one of 3 "personal assistants" who
    will be their guide through the rest of the site. Once they've
    selected, another cookie is set. Each time they return, the initial
    swf checks for a cookie, and then displays a static image of the
    character they have selected. At this point, I am also trying to
    "unload" all of the swfs, but they still load in the background. I
    have tried both "unloadMovie(movieName);" and "stream_ns.Clear();".
    the site may be seen here:
    First Entertainment Credit Union
    Thanks in advance!

    sorry, I submitted, and it told me it didn't post because of
    a dropped network connection!!!!

  • Can't target main stage from dynamically loaded swf...

    A part of the Flash app. I'm working on right now does the following -
    Main stage loads an external swf using the following function:
    function loadAsset(evt:String):void{
    var assetName:String = evt;
    if (assetName != null){
      var assetLdr:Loader = new Loader(); 
      var assetURL:String = assetName; 
      var assetURLReq:URLRequest = new URLRequest(assetURL); 
      assetLdr.load(assetURLReq); 
      assetLdr.contentLoaderInfo.addEventListener( Event.INIT , loaded) 
      assetLdr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, displayAssetLoaderProgress);  
      function loaded(event:Event):void { 
       var targetLoader:Loader = Loader(event.target.loader); 
       assetWindow.addChild(targetLoader);
    The externally loaded swf loads another external swf into itself using the following function:
    function loadQuiz(evt:String):void{   
    var quizName:String = evt;
    if (quizName != null){
      var quizLdr:Loader = new Loader();
      var quizURL:String = quizName;
      var quizURLReq:URLRequest = new URLRequest(quizURL);
      quizLdr.load(quizURLReq);
      quizLdr.contentLoaderInfo.addEventListener( Event.INIT , loaded)       
      quizLdr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, displayQuizLoaderProgress); 
      function loaded(event:Event):void {
       var targetLoader:Loader = Loader(event.target.loader);
       quizWindow.assetLoader.addChild(targetLoader);     
    Everything loads fine, but from the quizWindow.assetLoader.addChild(targetLoader) level, I want to send a message/fill in a dynamic text box on the Main Stage. I have been "parenting" my brains out and I'm not sure how to communicate with that level.
    can anyone show me the proper path or method based off the above, or have a suggestion?
    Cheers,
    ~Chipleh

    Andrei1,
    Thanks again for your help. I was finally able to get the solution you posted below to work for me.
    Much appreciation,
    ~Chipleh
    "In your loaded movie write:
    function traceMyself(e:MouseEvent):void{
         dispatchEvent(new Event("I_WANT_TEXT"));
    function writeText(text:String):void {
         xmlFileName1.text = text;
    In the top movie that loads external swfs something like that:
    loadedSwf.addEventListener("I_WANT_TEXT", onTextRequest, true);
    function onTextRequest(e:Event):void {
         Object(e.target).writeText(tQuizXmlFile1.theQuizXmlFile.text);
    This way these two entities are independent and, most importantly, don't care who is the parent or grandparent."

  • Unload FLV movies when clicking home

    Is there a way to set up an unload FLV actionscript (AS3) on
    the click of a home button? So, when defining the functions of the
    home_btn, have it unload FLV (sound and video).
    Or would it be better to put into the actionscript frame? So,
    when the home_btn brings the timeline to "home", the actions on
    that keyframe have an unload FLV.
    Help would be greatly appreciated

    Did you ever find a solution for this?  I'm having the same trouble; I have multiple FLVs linked in welcome.swf, but when I load a different .swf file the sound continues.  I need to unload the FLVs (or at least stop the sound), but I don't know 1) what that script is and 2) where to put that script.
    Any help would be appreciated!

  • Has anyone used Migration Assistant to move services from one system running Server to a new system?

    So, I've purchased a Mac mini to replace my aging Mid 2009 mini on which I've been running Mavericks Server.  In trying to answer the question of how best to move services from the old machine to the new, I've stumbled into the fact that Migration Assistant can apparently migrate not just user data for workstations and laptops, but also service data for servers.  The problem is there isn't much detail in the docs about how good a job it does when going from one machine to another without changing OS releases.  There's a very detailed document in the KB about going from older versions of Server to new (OS X Server: Upgrade and migration from Lion Server or Snow Leopard Server) and a general doc on migrating from another Mac under Mavericks (OS X: How to migrate data from another Mac using Mavericks) but that has no details about Server.
    Has anyone used Migration Assistant to move services from one system running Server to a new system?  Are there any details that are particularly important to get right?  Are there things that require manual steps after Migration Assistant is done?
    There are other ways I could tackle the problem, of course.  I could simply swap drives between the systems, but the new system has two drives that are bigger, faster, and I intend to mirror them.  That would complicate such an approach.  I'd really like to keep the conversation constrained to a discussion of Migration Assistant as the primary method.

    yes. I migrated a server frm lion to mavericks following these notes a while back:
    OS X Server: Upgrade and migration from Mountain Lion
    i do not recall having any problems with it.

  • Unload event for external swf[urgently need help]

    hi all master,
    iI've mp3, eksternally loaded and I controlled from main time...
    the bugs are
    1. If I wanna go to another .swf file, i still can hear the sound...
    2. if I click the button wich linked to mp3.swf, the sound/song are duplicated by2, and then if I click again the sound are duplicated by3...
    how I can fix this problem??? oia, the buttons to call another swf are only in main swf,
    and here is the code:
    //zhe button
    var Xpos:Number = 140;
    var Ypos:Number =100;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    addChild(loader);
    // Btn function
    function btnClick(event:MouseEvent):void {
        if(loader)
            loader.unload();
            loader.unloadAndStop();
            removeChild(loader);
            loader=null;
        loader=new Loader();
         var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
         loader.load(newSWFRequest);
         loader.x = Xpos;
        loader.y = Ypos;
         addChild(loader);
    // Btn listeners
    shout.addEventListener(MouseEvent.CLICK, btnClick);
    song.addEventListener(MouseEvent.CLICK, btnClick);
    gallery.addEventListener(MouseEvent.CLICK, btnClick);
    about.addEventListener(MouseEvent.CLICK, btnClick);
    So, anybody can help me???

    then you can use:
    //zhe button
    var Xpos:Number = 140;
    var Ypos:Number =100;
    var swf:MovieClip;
    var loader:Loader;
    addChild(loader);
    // Btn function   
    function btnClick(event:MouseEvent):void {     if(loader!=null)
           loader.unloadAndStop();
            removeChild(loader);
            loader=null;
    loader=new Loader();
         var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
         loader.load(newSWFRequest);
         loader.x = Xpos;
        loader.y = Ypos;
         addChild(loader);
    // Btn listeners
    shout.addEventListener(MouseEvent.CLICK, btnClick);
    song.addEventListener(MouseEvent.CLICK, btnClick);
    gallery.addEventListener(MouseEvent.CLICK, btnClick);
    about.addEventListener(MouseEvent.CLICK, btnClick);

  • I used the Migration Assistant to move data from my Time Machine to my new Mac.   Most data has been moved successfully but none of my iPhoto pictures have been moved.   Looking at my Time Machine now I find that the earliest back-up is dated after the Mi

    I used the Migration Assistant to move data from my Time Machine to my new Mac.   Most data seems to have been transferred successfully but none of my iPhoto pictures have been transferred.
    My Time Machine now shows the earliest available Back-up to be after the Migration Date.   My iPhoto pictures seem to have either been lost in the migration process or are locked in my Time Machine prior to the earliest back-up date now accessible.  
    Any advice on recovering my old iPhoto pictures would be greatly appreciated.

    First go to iPhoto Preferences, look in both General and Advanced tabs to make sure that things are set to import from camera into iPhoto.
    Then if that doesn't help, connect the camera and open Image Capture in your Applications > Utilities folder and see if you can use Image Capture to reset the import path from the camera to iPhoto.
    Image Capture: Free import tool on Mac OS X - Macgasm
    Message was edited by: den.thed
    Sorry John, I didn't see your post when I clicked the reply button. Dennis

  • AIR crashes on loading swf with 'Imported for runtime sharing' fonts

    Hello everybody,
    I have a trouble with an AIR application developped with Flex but the error seems to come from the Flash/AIR, after some searches a staff member (Flex harUI) said me that I could find more help for my trouble here.
    I'm developping an AIR application which loads an external swf. This swf contains 'Imported for runtime sharing' fonts from another swf to reduce its size.
    When the AIR application has finished to load (see message below) the whole application crashes without giving any error message except the usual "Process terminated unexpectedly" error message.
    End Loading: [SWF] C:\Users\dev02\myProject\index.swf - 83,930 bytes after decompression
    Error Message:
    Process terminated unexpectedly.
    Launch command details:  "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\bin\adl.exe" -runtime "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.6.0\runtimes\air\win" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug\Language_Editor-app.xml" "C:\Users\dev02\Adobe Flash Builder 4\Languages_Editor\bin-debug"
    I use Flash Builder 4 (build 272416) with sdk 4.6.
    Full discussion here.
    I tried to load the external swf with the most basics codes, it works with a Flash web app but not with a Flex/AIR app or a Flash/AIR app.
    Thanks for the help !

    Thanks for the anwser.
    In fact, I cannot specify a swc because my main application is an editor of sub-applications where each one has its own library.
    The bug remains when sharing a simple MovieClip too.
    Maybe, if I explain my project it will be a little more clear.
    I'm developping a multi-languages module / application.
    For each module, I have an external xml for texts. So in order to add a new language we don't need to recompile, just to change texts in the xml. But, I had to externalize my fonts, (imagine if each swf contains the whole characters set like latin, cyrillic, etc.).
    And then, I have my main text editor application above the module, which loads texts xmls and a preview of the page where we need to change the text. (This is where it crashes, during the process of loading the preview).
    My editor works great for translating, changing texts, modify images but without the preview, what is really frustrating.
    (not so ergonomic, I know...)
    I hope it will help you to understand my trouble.
    regards

  • Converting FLV/F4V to SWF

    Hello
    I'm trying to upload a video to my flash website (www.vishgraphics.com) and i'm having some issues.  I can't seem to upload an FLV/F4V file to my server.  However, I am able to uploaded an swf file, but i can't convert my video file that ins F4V format to swf.  Do i just need to convert the file or are there more detailed steps involved in uploading the video.   Also, if i have to covert the file to swf, can someone please recommend a good software that i can download free from the net.
    thank you
    vish

    You probably don't want to change the FLV/F4V to SWF - you may need to embed it in a SWF. If you do find you are able to upload an F4V or FLV, you will still need a SWF to play the video. There is a great article by Tim Siglin on streaming media that goes into FLV/F4V and SWF - http://streamingmedia.com/article.asp?id=11170 that may be a good starting point.

  • I use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    i use migrate assistant to move files from my old pc to the new Mac , but it creates the user account. How can i delete the unwanted user account.

    Welcome to Apple Support Communities
    That's the classic behaviour after using Migration Assistant and that's normal.
    To transfer the data from the new user account to your old user account, you can follow some steps. Here is all the information you need to do this > https://discussions.apple.com/docs/DOC-5472

Maybe you are looking for