ActionScript 3.0 :: Unload Image Rather Than Adding Another Button On Main Flash File

Mar 12, 2011

I can load the image by pressing the green button (see attached file). However, How do I UNLOAD the same image by clicking onto the image, rather than adding another button on my main flash file. This means that as soon as the image is loaded, the user can click on the same image to unload it.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Remove / Unload External Swf File(s) From The Main Flash File And Load A New Swf File And Garbage Collection From Memory?

Sep 12, 2009

I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?

View 15 Replies

ActionScript 3.0 :: Adding Unload On Main SWF And 12 Other Files

Mar 6, 2009

I have a main swf that loads 12 other swf files. The loading works. What I need is closing what just loaded. I created a close button Btn1 on all 12 other loaded files. It looks fine but if you keep clicking in a different names the speed of the main swf slows down each time.

Code for Btn1 in all 12 files :
Btn1.addEventListener(MouseEvent.CLICK, buttonClick1);
function buttonClick1(event:MouseEvent):void{
gotoAndStop(16);
};

I am not sure if I need to add an unload on my main swf or on the 12 other file instead of the gotoAndStop. Here is the url to the project. [URL].

View 1 Replies

ActionScript 2.0 :: Clear Memory Or Unload A Swf File Through Html Or Through The Main Menu Swf?

Jan 21, 2004

I have a menu and each button reveals a hidden layer which includes it's submenu (another swf).The submenus have sub-submenus in the same swf.When I take the mouse away from these layers the submenus hide again.All these work.The problem is that when a sub-submenu is opened and then the layer hides, when it's shown again the sub-submenu is still opened.Is there a way to clear memory or unload a swf file through html or through the main menu swf?

View 2 Replies

ActionScript 2.0 :: Command External SWF-file To Play Outside Of The Main Movieclip Via Button From Main?

Jan 17, 2012

I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).

It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?

View 2 Replies

ActionScript 3.0 :: UNLOAD Swf File From Nav Button?

May 29, 2009

I can load swf file from nav buttons. Gallery page is my default page. When I click about button I want gallery.swf to unload and about page to show up.Currently, gallery page is still in the background when I click about page.Gallery page is removed if I click about page again. How do I fix this?

var pageLoader:Loader = new Loader();
galleryBtn.addEventListener(MouseEvent.CLICK, galleryPage);
function galleryPage(e:MouseEvent):void {

[code].....

View 6 Replies

ActionScript 3.0 :: Set A Button In Mcproductpane Sprite For Unload / Make Dissappear An Image

Aug 15, 2010

first i have 2 sprite.. it`s mcproduct sprite and mcproductpane sprite .
mcproductpane is a parent of mcproduct sprite.. so inside mcproductpane there a several mcproduct sprite.. this is a script of mc prodcut

[Code]...

The problem is i want to set a button in here(mcproductpane sprite), this button will unload / make dissappear an image that i load using loader class in mcproduct sprite.. when i want to make a button in mcproductpane sprite which the function of the button it`s to unload/make an image that i load using loader class in mcproduct sprite disappear..

View 0 Replies

ActionScript 2.0 :: Play A Frame In An External .swf With A Button From Main Flash File?

Jan 15, 2007

im trying to play a frame in an external .swf with a button from my main flash file.

View 5 Replies

ActionScript 3.0 :: Unload The Current Swf File When I Click On The Other Button?

May 4, 2010

I have this menu that I am loading my swf files under a as. file and linked to a xml file.  It loads perfectly my swf files when i click on the buttons, but when i keep clicking the buttons, it keeps loading it on top of each other...How can i unload the current swf file when i click on the other button.? under the as file i have the following to load my swf files:
 
private function customFunc(link):void {      var request:URLRequest = new URLRequest(link);   var loader:Loader = new Loader()   loader.load(request)   var swfContainer:MovieClip=new MovieClip ;   this.addChild(swfContainer)   swfContainer.addChild(loader);;      trace(link);
}
 
and under the xml i have the following code :
 
<buttons> <button name="HOME" linkType="custom" link="ball.swf" />    <button name="DESIGN" linkType="custom" link="rec.swf" /></buttons>

View 3 Replies

ActionScript 3.0 :: Unload The Previous Loaded .swf And Load The New .swf Without Having A Separate Button To Unload

Aug 9, 2008

I am working on a school project that requires me to load external .swf or .jpg files. I currently have all of the buttons working and are loading an external .swf file on to the screen. The problem I am having is that when I go from one button to the next the loaded .swf stays on the screen and the next .swf gets loaded on top of it. I know that I need to unload the file but I am not sure where to put the code for the unload or what code exactly to use. I would like when the button is pressed to unload the previous loaded .swf and load the new .swf without having a separate button to unload.

[Code]...

View 3 Replies

Button In Mc To Display Image On Main Timeline

Nov 10, 2009

I have a movie clip (mc_menu) that sits on the main timeline. Inside mc_menu I have several buttons that display items inside the mc. I also need to display an image on the main timeline. I have converted the image to a movie clip (mc_01). I am using AS2.

View 2 Replies

ActionScript 2.0 :: Publish The Main File Doesn't Load Image?

Feb 10, 2008

I have created a main file,which has a navigation with buttons.Each button loads an external swf file.In one of the external swf files I have created an xml gallery.I have created some empty movieClips which work as holders and they load the images.It works great when I publish it,although it doesn't work when I publish the main file.It just doesn't load the images.

View 1 Replies

Flash :: Data Integration - XML - Slideshow - If Click On The Main Image - Another Image Could Come Up Next To It?

Oct 6, 2006

I attempting to make a slideshow like the one on this page: [URL] But i was wondering if it is possible to change the code so that if you click on the main image, another image could come up next to it? (I'm making a portfolio site, and i want people to click on one of the main images to then see a detail image next to
it).

View 1 Replies

IDE :: Adding Skin To Video File - Volume Button

Jan 10, 2010

I am relatively new to Flash CS3. I need to create a video file add a skin and put a voice over or background music. I have done all of it but I have a problem with the skin. On the skin there is a volume button for the video. How can I mute or control the volume of the video? Just like in youtube for example. You can turn it up or down. What is the code for it? Because when I click on the button to mute ir or turn it down it doesn't do anything to the volume. I had a separate video and a song but I went to Windows Movie Maker and associated the song with the video so now it is a whole: video with a song. So basically I just want to know what I need to do in order to control the volume of the video.

View 1 Replies

ActionScript 2.0 :: Unload A XML File In Flash?

Mar 14, 2007

Does anyone know how to unload a XML file in Flash? I'm creating a Flash gallery based on one at URL... the one that uses XML. The problem is I need to show several galleries and each gallery has its own XML file with an image list. It seems that I can't make Flash to unload XML or overwrite the new XML onto the one already loaded!

View 5 Replies

Actionscript 3 :: Unload Content - Main Menu?

Mar 31, 2011

i am new to flash actionscript 3 and trying to learn. I have a made a simple menu that has "start game" option. When the uses preses "start game", i hide the menu and the game starts. Now if i want to go "quit" and go the menu screen, how can i do this? How do i erase/stop the game that the user just played?

View 1 Replies

ActionScript 3.0 :: XML File - Adding Root Nodes On Button Press

May 26, 2010

I'm running flash cs4. I have an xml file I've loaded in but cs4 actually takes out the root nodes. So now I've been trying to add them back in when a button is pressed but I can't do it. I looked at creatElement and appendChild functions they seem to be what i need but I can't get them to work.

View 1 Replies

Flash :: Load External Swf From A Button In It And Unload Self?

May 13, 2010

I am an uber n00b to flash AS3. And it is not my intention to sound like a complete moron, but honestly, I have had a hard enough time figuring out just how to load an external .swf into my main file! add a button within the external .swf which will unload itself and load a new on in its place.

View 1 Replies

ActionScript 2.0 :: Unload A Movieclip From Flash MX File

May 13, 2003

I've tried to unload a movieclip from my flash MX File. I've tried on this way..that is unloadMovie[Num](level/"target") in this method I've given the target path of the movie clip. But when the browser page refreshing that again displays. How can we unload a movie that never comes even if browser refreshing the page.

View 1 Replies

ActionScript 3.0 :: Main .swf To Load And Unload Scene.swfs

Aug 11, 2009

I've just recently made the leap from AS2 to AS3 and after several days of reading the CS4 help and searching posts here, I'm still at a loss how to get my first AS3 project off the ground.I'm working on an illustrated choose-your-own-path story with each step split into seperate swfs to speed up loading time.I've got a main file loading a scene swf using.[code]The loading works fine (although I've just found a post that suggests I should wait until the swf loads before adding it as a child), but how would I then get the buttons in the loaded swf to tell the main swf which swf to load next?I'm stumped firstly by that, and additionally by how I should then UNload the swfs. Is it not common practice to refer to objects by their '.name' in AS3? Should I be loading the swfs into an array?

View 1 Replies

ActionScript 3.0 :: 3 Main Buttons Doesn't Seem To Unload Loaded .swf?

Jun 12, 2009

I'm trying to create app. that has 3 main buttons that goto 3 pages each with 15-30 buttons that each load external .swf that covers most of primary swf xpt 3 main buttons. Clicking on those 3 main buttons should unload previously loaded .swf and each loaded .swf should have preloader in its start.

1.) preloader works fine when i launch file separately, but when i load it from main .swf, it just shows "100%" at once...

2.) 3 main buttons doesn't seem to unload loaded .swf...

Main .swf code:

PHP Code:[code].....

View 2 Replies

ActionScript 3.0 :: Unload Main-menu Then Loading External Swf?

Feb 11, 2010

My project is PC software and not related to web.It contains of Main menu and 3 external SWF (Total 4 Files).Inside the Main-Menu 3 buttons , when the user click on button # 1 or # 2 or # 3 I want a code to unload the main menu first then open external swf # 1 or #2 or #3 depending on which button user click.I use this code to load the external SWF:

Code:
var myLoader:Loader = new Loader;
addChild(myLoader);
var url:URLRequest = new URLRequest("f1.swf");
myLoader.load(url);

Its working fine but the problem it load the external swf with the main menu in the same time! what I want a code first unload Main-menu then loading external swf. and another code in external SWFs to exit to Main-Menu with ofcorse unload the swf first then exit to main-menu.

View 5 Replies

ActionScript 2.0 :: Load/unload A Movie Located On The Main Scene?

Feb 25, 2003

How can I load/unload a movie located on the main scene, from a movie clip, or vice versa. Right now I can only load/unload a movie if located in the same timeline.

View 2 Replies

ActionScript 3.0 :: Flash - Pass Variables From One Movie Clip's AS File To Main AS File?

Jul 7, 2010

how to pass variables from one Movie clip's AS file to my Main AS file. Let say my Movieclip's AS file is calling damage = 1; so how the Main AS file retrieve the damage value from the Movieclip's AS?

Code:
public class robotMC extends MovieClip
{
public function robotMC()
{

[code]....

View 5 Replies

Adding A URL To Image Flash CS3?

Sep 28, 2009

I am not having much luck creating a link for an icon image on my site. What would be the easiest way to create a URL link to an image?

View 1 Replies

ActionScript 3.0 :: Load The External Swf File And Unload The Parent Swf File?

Aug 17, 2011

i have a question. let say i have file1.swf , file2.swf, and file3.swf, how can i link this 3 files together,let say suppose 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 i unload file1.swf at that time, so that my file2.swf will become the main content file?and again, when my current position at file2.swf, and i want it get replaced by file3.swf by clink on a button. so that the i can unload the file2.swf and let the file3.swf become the main content file.

View 13 Replies

Flash :: CS4 -adding Control Buttons For An Image Slideshow?

Jun 22, 2009

I want to add a slideshow to a web page. I have made a slide show with flash however I really want to add the play controls. Is this possible using CS4 Flash

View 10 Replies

ActionScript 2.0 :: Load Main Swf File (main.swf) On Top Of Background

Sep 24, 2004

I have a background swf that has been coded so that it scales with the browser. I want to load the main swf file (main.swf) on top of this bg so that it is always centred on the page.

View 2 Replies

ActionScript 2.0 :: Add One To The File That Is Loaded Into The Main Movie Main Movie That Is Loading The File?

Aug 3, 2003

using the command:

loadMovie(_root.section, _root.content);how would i work in a preloader bar?? add one to the file that is loaded into the main movie or on my main movie that is loading the file?

View 1 Replies

Flash - Add Image Using Loader And Make Image A Button With Event Handler?

Oct 26, 2011

How would I make an image I load using AS3's loader class into a button with an event handler on it? Below is what I have started. And below that is my error I get when I click the message.

AS:

//call function that starts loading my image
callButtons();
function callButtons():void {

[code]....

the error I am getting when I click the spanish.png on the stage is: ArgumentError: Error #1063: Argument count mismatch on MyVideoPlayer_CS4_fla::MainTimeline/playSpanish(). Expected 0, got 1.I NEEDED TO ADDED evt:MouseEvent

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved