Go Back   kirupaForum > Flash > Flash CS3

Reply
 
Thread Tools Display Modes
Old 11-26-2009, 10:50 PM   #1
pumpkin05
Registered User
Call a function with actionscript 2????

Hi Guys,

I am trying to remove a mouse listener from a function created from a tutorial in actionscript 2:

Mouse.addListener(mousecontroll);
onEnterFrame = oef; //main function: handles page turning-------------------------------------------------------------------------------------
resetPages();
reset();

function removeML() { //removes mouse listener
//Call this function before unloading the pageflip
//if you don't do that, the next time you load a
//pageflip, the mouselistener will not work!
Mouse.removeListener(mousecontroll);
trace("removed");
}

The swf that the function is within I am uploading externally into a container.

The code for the button that i am using to try and call the function and load the external swf is below:

on (release)
{
_root.holder_mc.loadMovie("external.swf", _root.holder);
_root.button_mc.onRelease = removeML; //this line of code doesn't seem to call the function
}

Any advice or help would be much appreciated.

Cheers.
pumpkin05 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 11-27-2009, 10:19 AM   #2
abigael
Registered User
Hi! Thanks for your post. Anyways you could always try your searches online. Further guides and instructions will be accessible in there. Hope this helps!


Regards,
abigael
Pret voiture
abigael is offline   Reply With Quote
Old 11-29-2009, 08:47 PM   #3
pumpkin05
Registered User
I have been trying to find the solution online but to no avail. Is there any suggestions how to call the function???
pumpkin05 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 -4. The time now is 02:33 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com