Loading... tie up and unload the question

Hello forum members:

(1) I have a main movie that loads an external movie with this code:

var loader: Loader = new Loader();

Loader.Load (new URLRequest("lessons/lessona/lessona.swf'));

addChild (loader);

Loader.y = 0;

var myTween:Tween = new Tween (charger, "x", Strong.easeIn, 1500, 0, 1, true);

(2) the film loaded attach a movieclip from the library of movieclip loaded with this code:

var mc:alert_mc = new alert_mc();

MC.x = 320;

MC.y = 210;

addChild (mc);

(3) against the home video clip I'm trying to remove the attached clip and the film loaded (and return to my main movie) with this code when the user clicks on yep_btn, but it is unsuccessful (he can't unload or go to my main movie)

nope_btn.addEventListener (MouseEvent.CLICK, cancelunloadexitb);

yep_btn.addEventListener (MouseEvent.CLICK, unloadexitb);

function cancelunloadexitb(e:MouseEvent):void {}

this.parent.removeChild (this);

}

function unloadexitb(e:MouseEvent):void {}

Loader (this.parent) .unloadAndStop ();

}

How to return to my main movie? Any ideas... Thank you

Draw the string to see where you are... If the buttons are in the attached clip from the library, then their parent is the clip, and parent.parent must be the swf of lessona. So, try something like this, until you derive the right object:

function cancelunloadexitb(e:MouseEvent):void {}

trace (parent);

trace (parent.parent);

etc.

}

Tags: Adobe Animate

Similar Questions

  • Can we load and unload the files in the run time?

    Can we load and unload the files in the run time?

    For example, there are four files named 'test1.h & test1.c' and another series 'test2.h & test2.c' (I have attached as an attachment to this post).

    test1.h contains the code:

    int variable; variable declared as integer

    test1.c contains the code:

    variable = 1; variable a value assigned

    test1.h contains the code:

    char * variable. variable declared as string

    test1.c contains the code:

    variable = "EXAMPLE"; a string that is assigned to variable

    So here, in this case can I dynamically load / unload first & second group files so that the same variable "variable" name can be used as an integer and string? And if so, how to do?

    Hi pa1majeti,

    You cannot simply consider that some code is loaded into memory or not: all code in a compiled application is permanently in memory unless you divide your application into DLLs that you dynamically load if necessary and remove if is no longer necessary.

    But as I understand from your description, you're better given the amount of memory occupied by the data (i.e. the contents of the variables) rather than the code. If this is the case, your only option is to allocate memory for variables dynamically and free it after it has been used. Now, even if this option is useful if you are using large networks of data, there is little or no effect on the unique variables.

    A final Council, given the huge memory installed on modern computers, are you sure you really need that extra work? I mean, the dynamic allocation of memory involves some additional precautions in programming: check the errors on each function malloc or calloc, check that the pointer is valid before each use, freeing pointers before reassignment in order to avoid memory leaks and so forth, so a balance must always be sought between the memory and the difficulty in programming.

  • Some time ago I bought ADOBE production Premium Windows CS6. At the time where I actually responsible programs without any problems. Since then I have loaded windows 10 and lost the programs but had already saved the ZIP files.  I tried to load programs

    Some time ago I bought ADOBE production Premium Windows CS6.

    At the time where I actually responsible programs without any problems.

    Since then I have loaded Windows 10 and lost the programs but had already

    Saved files from the ZIP.

    I tried to load the programs today, but I get the following message

    Please insert Adobe Production Premium Disc UM6 - MUL

    Because it was a download, it is not a loading disk.

    Make a new download

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    -Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html

    -Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

  • How to load external swf file and unload the swf file parent?

    I have a question. Let's say I have file1.swf, file2.swf and file3.swf, how can I link this 3 files together.

    Let's assume that file1.swf is the main content file, but as I load file2.swf, I want the file1.swf get replaced by file2.swf. How could unload file1.swf at that time, so that my file2.swf will become the main content file?

    and even once, when my current post file2.swf and I want it get replaced by file3.swf tinkle of a button. so that i can unload the file2.swf and let them file3.swf become the main content file...
    Anyone have ideas on this?
    Thank you..

    If you're publishing to fp 10 + use:

    var loader: Loader = new Loader();

    var urlR:URLRequest = new URLRequest();

    addChild (loader);

    Btn1.addEventListener (MouseEvent.Click, f);

    btn2.addEventListener (MouseEvent.Click, f);

    function f(e:Event):void {}

    {if (Loader.Content)}

    loader.unloadAndStop ();

    }

    {if(e.currentTarget==btn1)}

    urlR.url = "file2.swf";

    } else {}

    urlR.url = "file3.swf";

    }

    Loader.Load (urlR);

    }

    p.s. Please check the useful/correct, if there is.

  • Load and unload the swf file

    I am currently using AS2.

    I create a button instance named 'myBtn' and I want it to load the external swf "test2.swf" call all to unload the current swf file named "test1.swf" when you press on / release.

    that fact is I put the following code under mybtn:

    We (Press)

    {

    unloadMovie ("test1.swf");

    loadMovie ("test2.swf", 1);

    }

    the result was that the "test2.swf" was loaded successfully, but the "test1.swf" fail to unload.

    Any help is welcome

    AS2... Scope is your problem. When you are inside the function for delivery you tell the button you used to unload test1.swf of inside of this button (which it is not located in).

    You are probably using the root timeline, so I'll take a bet that it works:

    (press)

    {

    _root.loadMovie ("test2.swf");

    }

    If you want to follow the progress of loading between them, it is a bit more complex.

  • With the help of a button to load and unload the external SWF in AS3?

    How can I use a button to load and unload a sequence of external SWF files, as a Next button and previous?

    I don't know if it will work because apparently you are trying to load a swf AS1/2, but try

    change the line to be...

    _swfTempClip = MovieClip (event.target.content);

    If this does not work, then you will need to create _swfTempClip as a new MovieClip and add the event.target.content to this MovieClip using addChild().

  • Camileo load problem (solved) and a general question!

    Hi all!

    First of all, I was going to ask for help as to why the Camileo S10 wasn't supported (the orange light was not blinking) and I had seen a few people with similar problems.
    The solution?

    Give the contacts of the battery clean.
    The sticker of insulation that comes on it must leave some kind of residue on it, and just avoid the charges. [Now it blinks far fortunately:]

    So my general question was, is it possible/desirable to use the camera on the network?
    Instead of constantly drain and recharge the battery during long shoots, I prefer to leave it plugged!

    Thank you very much in advance!

    Paul

    Hello

    I think that the handling of the battery is always the same, regardless of what product it is
    From time to time the battery must be recalibrated.

    This means that the battery should be completely discharged and then after you need to load it again until the battery could reach 100%

    I do this with all my batteries; laptop battery, laptop battery and battery of digi cam.

  • DPP 4 cut and reframe the Question to the tool

    When using DPP 4 setting / Crop tool I can't paste changes to multiple images. When you use the old version of DPP 3, there is a button "apply to all". It was a very useful feature. I hope that it has not been removed in the latest version of the software.

    I don't have the time this minute to check it out, so don't take that as gospel until you've tried. But I believe that in V4, unlike his predecessors, cropping is included in the recipe for the picture. So I think that you can do your changes to an image, save in a recipe file, and then apply this file to recipe for as many other images as you want. (Of course you could always do. The question is whether cropping is included in the recipe file, and I think that in the V4's.)

  • Freezes at "Loading ImporterQuickTime.prm" and displays the error message. How should I do?

    Hey, I just built a system of game development, I do my trailer for the game now, but Premiere Pro will not work. The operating system is Windows 10 and my GPU is a MSI GTX 970.

    I advanced and installed Premiere Pro and it has installed without error, but when I went to start it for the first time, he stopped at "Loading ImporterQuickTime.prm" and then jumps to the top 'Adobe Premier Pro cannot find capable video game modules. Please update your video display drivers and start over. "He has only one button, you can press on and it is 'OK '. When I press on it just says: "Premiere Pro has stopped working." and makes me close. (screenshot attached).

    What confuses me, is that Photoshop and After Effects work perfectly. (perhaps because they have CS6?)

    I was puzzled because I already had the latest NVIDIA drivers installed, so I downloaded the beta version of the drivers and I still got the same error. I've uninstalled and reinstalled Premiere Pro several times, but I still get this error. My current version of the graphics driver from NVIDIA is 362,00.

    Any help is greatly appreciated.

    Screenshot (58).png

    Well, after a few hours trying things at random, I tried using a different user account, so I opened and administrator command prompt and typed in "net user administrator / Active: Yes" then disconnected and connected to the administrator account, then launch Premiere Pro to launch it. Surprisingly, it worked! So I closed the first, then disconnected from the Admin account, then went back on my main account and typed in "net user administrator / active: No.". Then I launched creating my account and it worked!

    I hope this might help someone else who was in my boat.

  • Re-register the VM and skip the question on the UUID

    I am writing a script to reregister several virtual machines on an ESX host, for purposes of Dr. I use the command "vmware-cmd - s register vmfs/volume/vmfslabel/VMName/VMName.vmx.

    When I registered the virtual machines on the new host and feed their place, I ask myself the question on if I want to create / keep / always create a new identifier.

    I was wondering if there was a way I could script the fact I want to keep the VM UUID so that this issue does not appear when I turn on my failure on virtual machines.

    John

    Insert:

    UUID.action = 'keep '.

    or

    UUID.action = "crΘer".

    inside your VMXs with virtual machines powered off.

    Marcelo Soares

    VMWare Certified Professional 310

    Technical Support Engineer

    Chief Executive Officer of the Linux server

  • Region is not created, and also the question is not added... Help me

    Hi all,
    I want to create a dynamic region (in the direction using the code). The following code is used, but the thing is the region is not created and the item also not created. Use of the object of the question, I put the guest, it is also not working. Assume that this code is wrong let me know how to create regin and under this region an element.
    the code is:
    OAMessageComponentLayoutBean msgcmpntbean = (OAMessageComponentLayoutBean) createWebBean (pageContext, MESSAGE_COMPONENT_LAYOUT_BEAN);

    OAMessageStyledTextBean msgstyledbean = (OAMessageStyledTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "Login");

    pageContext.getPageLayoutBean () .addIndexedChild (msgcmpntbean);

    msgcmpntbean.setRows (1);
    msgcmpntbean.setColumns (3);

    msgstyledbean.setPrompt ("User Login :");

    Thanks in advance

    Hello

    Change your code in this way

    OAMessageComponentLayoutBean msgcmpntbean is createWebBean (OAMessageComponentLayoutBean) (pageContext, MESSAGE_COMPONENT_LAYOUT_BEAN, null, "msgcmpntbean");.

    OAMessageStyledTextBean msgstyledbean = (OAMessageStyledTextBean) createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "Login");

    msgstyledbean.setPrompt ("User Login :");

    msgcmpntbean .addIndexedChild (msgstyledbean);

    webBean.addIndexedChild (msgcmpntbean);

    certainly it will work in the case of any questions, please let me know

    thanx
    Pratap

  • How can I determine what my CURRENT profile, because the Profile Manager shows 3 and all the questions and answers are ambiguous on this issue. THX.?

    Yes, I see ambiguity. I have also some old Save profiles of boards and I have 3 profiles showing under the Profile Manager. The folder under "%APPDATA%\Mozilla\Firefox\Profiles\" shows 2 of them, but how DO I know WHICH is my current profile? So far, I have been unable to navigate up a clear answer. THX.

    You seem to have created a profile in the Profiles folder and not as you should be in an empty folder.

    You already clicked the button Choose a folder and specified the profiles folder in the profile folder?

    You must always specify an empty folder and new for the profile if you really want to create one profile other than suggest Firefox (you can change the file extension part after the '. ': for example the default user-> my < name >)

    It would be preferable to cleaning the Profiles folder and delete all the files except the file profiles.ini and the default and files 'default user', although you might want to move to another location and start from scratch. If necessary, you can retrieve data from one of the two folders.

  • Satellite A300-146 - CD/DVD read and write the question

    I have Toshiba Satellite A300-146, model No.: PSAJ0E, 1 GB of RAM, Intel Dual core 1.87 processor, chipset Mobile Intel (r) 965 family
    I use the windows7 RC version.

    My DVD burner does not work correctly.

    (* 1) not read 700 mb CD and don't read do not more DVDs.*
    A few months ago he read sony DVD, read all CD and dint read some local DVD. Now, it is not read sony DVD and and all the CD that I used. But reads the local DVD...

    (* 2) a few times it can write DVD but most of the time this is not not writing DVD Nero 7 display of 100%, but the DVD is not written anything.*

    I use Vista drivers for my Window 7 operating system...

    3. should I install windows 7 drivers... ?

    4. are there specific drivers for DVD player. ?

    Experts or those who have recovered from the same problem. Please help me.

    Thanks in advance.

    Hello

    Maybe your CD/DVD drive becomes faulty... What do you think?

    But before you think to a new disk, you must remove the server - and lowerfilters in the registry. You can follow the workaround from Microsoft:
    http://support.Microsoft.com/kb/314060

    Also, make sure that the CD/DVD drive lens is clean. You can use a microfibre cloth to clean. This rag doesn't scratch the lens.
    Check this box!

    Finally and above all, there is no special driver for CD/DVD drive. It s a part of t Windows and can be updated.

  • Try to load a game and get the message that not taken OpenGL2.0 support.

    What does that mean? What can I do? How to pass the game FAQ page recommends?

    Angry birds?
    How to check your video card for OpenGL 2.0 support
    Go to the manufacturers site, area of support for your video card and download and update the drivers to the latest version. If you have difficulties to identify your video card, download GPU-Z and run it. It will tell you what you have.

    Thank you Google. :)

    If you have difficulties to do the above, please provide the brand and model of your PC and/or the video card and GPU - Z results. I will direct you to the correct drivers.

  • back up and restore the question

    I get the error message "the backup was not completely successful. a snapshot could not be established for the following reason: Insuficient of storage available to create the shadow copy storage file or other data to 0x8004231f shadow copy. »

    I use windows vista Home premium 64-bit Edition

    I followed the forum to someone with the exact probalem and windows and tried the solution but has been blocked because when I righ clicked on the volme in 'computer' I don't have the exact same screen. Mine had no shadow copies, the legs of quota or security.

    Hi kmojo,

    Thank you for visiting Windows Vista Microsoft answers forum.

    Windows backup center and restoration functionality is not included in the edition of Windows Vista Edition Home Premium and this is why you get this error.

    You can see the following link for reference:

    http://www.Microsoft.com/Windows/Windows-Vista/features/backup.aspx

    http://www.Microsoft.com/Windows/Windows-Vista/features/shadow-copy.aspx

    Please let us know if it helps.

    Thank you and best regards,
    David

Maybe you are looking for

  • How can I increase the RAM on my MacBook Pro?

    I want to speed up my Mac Book Pro end 2008 performance. Can I get rid of many languages to free up memory, and this will do the trick? How can I do?

  • How to disable the ToolTips while you item Hover mouse over a taskbar...

    OK this question is clearly asking how to disable or delete ToolTips and not the ones int the browser but other places like the taskbar, for example. you hover over low start and it says start or a brooch exe scrap cuts and it displays the names for

  • Cannot use regsvr32 to register the jscript.dll

    Hi, this is a problem which has been irritates me for some time. I'm unable to manually register the file jscript.dll via the prompt command, even when I use the administrator account by default on the computer in safe mode. I get the error message 0

  • Windows does not not errors

    Receive errors don't respondents not

  • Gross movement of photo files

    Two weeks ago, but not all my folders containing images suddenly appear empty and all of them have migrated to the "My pictures" folder  I have now largely replace them in subfolders holding in their records, but wonder how that happened?