Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-20-2011, 04:23 AM   PM User | #1
sportzel
New to the CF scene

 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sportzel is an unknown quantity at this point
Loading .swf files to a portfolio

Hi,
I'm really new to flash, but working on a portfolio. I'm able to load the .swf files I've done and they work with clicking the buttons. But when I click the first button, the .swf file will stay there and disappear when I click on the next button. The .swf file from the second button just goes on top of it. I've tried to use this code:
[myloader.addEventListener(MouseEvent.CLICK, removeimage);
function removeimage(e:MouseEvent) {
removeChild(myloader);
}]
and it won't work. the .swf file still stays.

I've used the function [myloader.unload();] as well. with that code if you click on the .swf it will go away. But I want to be able to click on the next button and have the previous .swf file disappear.
Any suggestions?
Thanks!
sportzel is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:30 AM.


Advertisement
Log in to turn off these ads.