Unload and stop the swf from scene
Hello
I am a newbie in Flash and Actionscript. I need to give links to about 20 files swf via the menu.swf buttons. I am able to give links. But when I come back by clicking the HOME button held in the newly loaded swf audio files are always played in the background.
Yes, there are audio files playing in the back for each slide in the new FSV. Then click the link even menu.swf again once the files are played with the old incomplete file. It's really intense.
I need to unload the scene completely when I return to menu.swf by clicking the HOME button on one of the 20 categories.
I used unloadAndStop but it does not. I hope I'm mistakes of committing to a place but could not provide.
Need help!
FOR THE HOME BUTTON:
var _content:Loader = new Loader();
function loadContent(content:String):void {}
If (_content! = null) {}
_content.unloadAndStop (true);
removeChild (_content);
_content = null;
}
var loader: Loader = new Loader();
Loader.Load (new URLRequest (content)); -> > > > I don't really know what to put in this :-(
_content = addChild (loader) like charger;
}
Home_Button.addEventListener (MouseEvent.CLICK, home);
function home(event:MouseEvent) {}
_content.unloadAndStop (true);
var homeSWF:URLRequest = new URLRequest ("demo.swf");
_content. Load (homeSWF);
addChild (_content);
}
MENU.swf BUTTON
var loader: Loader = new Loader();
Category1_Button.addEventListener (MouseEvent.CLICK, category 1);
function category1(event:MouseEvent):void {}
var Category1SWF:URLRequest = new URLRequest("Category1.swf");
Loader.Load (Category1SWF);
addChild (loader);
}
I think that there is a question of terminology.
your main swf is the SWF that is embedded in your html page. It is the first swf to display, and it can not be unloaded using actionscript.
It must contain the loader, the only case of Loader, you need.
This main swf may or may not be main.swf.
in your main swf file, you must use:
/////////////////////////////////
var loader: Loader = new Loader();
addChild (loader);
function loadF(fileS:String):void {}
{if (Loader.Content)}
loader.unloadAndStop ();
}
Loader.Load (new URLRequest (fileS));
addChild (loader);
}
function unloadF (): void {}
{if (Loader.Content)}
loader.unloadAndStop ();
}
}
/////////////////////////////////////////
do not change anything between the lines.
----------------------------------------------------
your main SWF, if you want to load "catgoryxyz.swf", use:
loadF ("categoryxyz.swf"); This argument in this line, you can and will change
you main swf, if you want to unload all that is been loaded (and seem to go back to your file main swf), use:
unloadF();
---------------------------------------------------
Since the script a swf loaded (as categoryxyz.swf) principal, if you want to load "categoryabc.swf", use:
MovieClip (this.parent.parent) .loadF ("categoryabc.swf"); the argument in this line, you can and will change
If you want a swf to unload himself (and seem to go back to your main swf file), use:
MovieClip (this.parent.parent) .unloadF ();
-----------------------------------------------------------------
Tags: Adobe Animate
Similar Questions
-
I've been upgraded to El Capitan and electricity went off and stopped the session. I don't have time to continue for 12 hours. It is the CV. How can I cancel until I have more time?
Hello nancy milano,.
Thanks for this info and choosing the communities Support from Apple. I know how important is able to complete your update to El Capitan at a later date! The good news is that you can simply delete the "install Mac OS X" install app in the Applications folder on your Mac. Then you can open the Mac App Store when you're ready to update and restart the download from the tab updates or searching through the Mac App Store for El Capitan. This is a resource that explains the process of update more:
See you soon!
-
Re Vista - printer does not print after canceling a print job even if I deleted the queue and stop the computer and the printer and restarted.
Hello
· try to uninstall and reinstall and use the latest printer drivers VISTA for your model of the manufacturer of the printer
You can also track information to try to solve your problems of printer below
read the printer correct that information the slot microsoft, including the 'fix - it' and the information of the links to the other
Solve printer problems
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems
and read this microsoft tutorial too
Introduction
This tutorial is designed to help you identify and fix the problem printer common windows problems, including print errors, or errors, and other issues that could prevent you from printing. This tutorial does not cover printing problems related to specific programs. Printing problems can be caused by cables that are not properly connected, corrupt, drivers, incompatible drivers, the printer settings, missing updates and problems with your printer.
How to use this tutorial
For best results, complete each step before move you on to the next. Try to print after each step before moving on to the next step.
http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows
-
How to unsubscribe and stop the writings of cash on the card?
How to unsubscribe and stop the writings of cash on the card?
This is an open forum, not a direct line to Adobe support... you will have to wait for a response
Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday
-
Flash as2 cross subject to access the SWF from another server domain
I have question cross-domain, how do I access the .swf from another swf file without using System.Security.allowDomain() in the swf file, which we are called.
I use 2 domains and I have 2 files swf is a.com (a.swf) and another is of bcom (b.swf) I want to access the file the a.swf b.swf frames, if I use the system.Security.allowDomain() in b.swf file I can access executives. But without using this way I can access the file from another domain.
Because I have a risk to change the file b.swf so I vant to go without changing the file b.swf is any other wey to access frames of the file the file a.swf b.swf. Please someone help me solve this problem.
use a local executable (such as php) to load the b.swf and send it back to a.swf. for example:
loadSWF.php:
<>
$fh = fopen ("www.b.com/b.swf", "r");
Header ("Content-type: application/x-shockwave-flash");
fpassthru ($FH);
?>
a.fla:
var target_mc:MovieClip=this.createEmptyMovieClip("target_mc",this.getNextHighestDepth());
target_mc.loadMovie ("loadSWF.php");
-
I have not yet used sync, but I sense it's going to be a problem if I do. I have different bookmarks I want to keep it on each computer. Sync will delete the bookmarks on a single computer and replace the bookmarks from another computer in their place? So I think that will erase the bookmarks on the second computer you configured to synchronize. Is there a way to merge bookmarks on every computer in the library of a bookmark that contains all bookmarks on both computers, so I'm not all bookmarks in sync?
Just to be clear, this is something that we have commented several times in the forum, Firefox Sync adds everything that is already in the device for the account and pushes this info for the rest of the devices.
So if you have 2 computers with data X and the other with the data from there, once you set up synchronization in both computers you will have X + Y at the same time.
I hope that clarifies the doubts...
-
I need to download my photos on icloud on my device and stop the photos to upload on icloud because my icloud is full and I have a 64GB iphone
On your phone, go to settings > iCloud and make sure that you have downloaded all your photos on your phone. Then click on "disable the iCloud photo library." But even once, make sure that you have all the photos uploaded to your Mac computer or your iPhone.
-
When you use my cRIO 9024 on the ground, I prefer to be able to start and stop the acquisition with pressing a physical button on cRIO.
I want to say I don't want it to be "as a start-up," I don't want cRIO to start the acquisition as soon as the power supply is ensured.
Is this possible?
Hi Cashany,
you will surely find this switch status. But there are easier ways (but more expensive) for a button. Fiddling with a pen or a small screwdriver to switch USER1 is not what I call "user friendly"...
-You have at least 2 voltage inputs on your module available. Use a switch voltage on the power inputs. Use a 'real' button!
-You have an available serial port. You can set some pins on GND or voltage and check their status inside the cRIO/RT target...
-
I was finishing process on my task manager and stop the bad thing, now my screen is empty. I can't understand how to get back my taskbar or shortcuts. Help, please
Original title: Oops
Hello
And here is how to do a Safe Mode system restore.
"In Windows 7 system restore:
http://Windows.Microsoft.com/en-us/Windows7/products/features/system-restore
'Advanced options boot (including safe mode).
"The Advanced Boot Options screen lets you start Windows in advanced troubleshooting mode. You can access the menu by turning on your computer and pressing the F8 key before starting Windows (press F8 at the rate of about once per second)"
See you soon.
-
Import and delete the photos from the camera
The link you gave is not useful. I don't want to use the application Windows 8 photos. All I want to do is to plug my camera and have pictures, transfer in a folder of my title and delete the photo from my camera. It's an ability that were available in Windows 7 and not available in Windows 8. I am currently using Dropbox and it is slow and uses tons of data to my hotspot.
Thank you!
Hello Joe,
Thanks for posting your query in Microsoft Community.
I understand that you have questions, import and delete the photos from the camera. We are happy to help you in the matter of fixing.
You can check the below link to import photos from the camera.
- First, connect your digital camera, and press the Power On button. Windows 8, which will detect the camera and will install the appropriate drivers.
- After the driver installation is complete, the AutoPlay menu appears.
- Select the option import pictures using Windows.
- In the lower right corner of the screen, a small window asking if you want to mark photos will appear. You can type a general images you want to import. Tags can be very useful to organize and find your photos.
- If you do not want to insert a tag just leave this space empty and click Import.
- If you want to customize the import settings, click the Options button. Now you can change the following settings: where pictures import them (the default folder is pictures - if you want another folder, click Browse and select or create this folder), the name of the folder (by default the name of the folder will be the date when the images are imported over the tag you entered) and the file naming convention.
- When you are finished, click the OK button. These settings apply to all the photos you want to import in the future.
- After you click import, Windows 8 starts to move all your photos. If you want the pictures to be removed from your camera once the import process is completed, click the Delete after import check box.
- Once the process is complete, start Windows Photo Gallery and you will be able to see all the photos that have been imported.
- Now, turn your unit off and unplug the cable to connect to your PC.
If this does not help then, try the steps below to get the images from the camera.
- Go in computer.
- You will find the camera under portable device or removable devices.
- Double-click on this unit and you can copy and paste from this location and import it onto your computer.
I hope this helps. Otherwise, feel free to write us back for assistance.
-
Can you start and stop the glassfish server in JDeveloper 12 c and how?
Mr President.
Can you start and stop the glassfish server in JDeveloper 12 c and how?
Concerning
have you looked at
http://www.Java-n-me.com/2014/02/GlassFish-extension-for-JDeveloper-12C-go-live.html
-
When I download adobe after affects cc 2015 after approximately 87 percent done I get error and stop the download how to fix this?
Hi Giovannil27088677,
If you're still having trouble installing it, please refer to the following thread Photoshop CC install hangs at 48%
-
I paid creative cloud. I need first. But I had a month of trial version. And now the money from an account has been removed automatically, but I do not have first. What can I do?
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-If you have more than one email, but of course you use linked to your subscription
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-https://helpx.adobe.com/creative-cloud/help/sign-in-out-activate-apps.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html
-
I heard that we might try Lightroom for free for 30 days, once I wanted to try it but the download was so long that at the time he was downloading I changed my mind and stopped the download and delete each 'part' of the application. I now want to try it finally but it says I can she... Is it possible to understand? I don't want it before trying it...
Please check: software Adobe to trial has expired at the beginning
-
Whenever I try to install and update creative cloud, he's going to halfway and stop the download says "Setup could not access the critical file (error code46).
Hello
Please refer to the instructions mentioned in the link below, it should help:
Cannot install Creative cloud installation - error code 46
"Setup could not access a critical file. Please try to reinstall. (error code: 46) »
Let us know if this was helpful.
Kind regards
Bani
Maybe you are looking for
-
How can I block messages unwanted popup Flash?
I'm browsing without Flash installed. When I go to certain sites or pages in some sites, a small pop up icon in the upper left corner of the window. The icon invites me to install flash. The icon can be closed, but after many repetitions becomes bori
-
Can I install SSD hard drive in the version of Windows XP Media Center 2002.
Original title: ssd hard drives I have a Sony desktop running Windows XP Media Center version 2002. I am thinging about buying an SSD hard drive. I was wondering if it will work
-
T420 PCI Simple Communications Controller
Due to software problems (won't it 64 compatibal until end of July) I had to convert to Win7 32 bit. Now I have a device without driver. PCI Simple Communications controller. Its location is bus PCI 0, 22, function 0 device.
-
E7440: Audio Jack does not detect all connect more
Hi all I am reported a strange problem. I use E7440 with Windows 7 64-bit with Realtek HD Audio driver (as shown below). My computer also has 'AUDIO DELL' management utility. Previously, external headphones and portable speakers were working well and
-
My PS3 will not identify other readers, apart from my C drive
Hello I use Windows 7 64-bit. I set up networking in my house, all computers can display the content, I've shared, but the PS3 is only picking up the stuff that is in my "library" on my C:\ Drive. I added my H:\ files to the 'Library', but the ps3 st