PDA

View Full Version : Problem loading an external SWF from buttons inside a scrollpane.


insultcomicdog
05-26-2006, 06:24 PM
I am having a some targeting issues from inside of a scroll pane. Heres what i have:


I have an fla that uses a custom scrollpane. Inside the scrollpane there are buttons that load an external swf into a specified location outside the scrollpane in the parent swf.

The buttons load the external swf fine, if I put them in a layer by themselves using the as:

on (press) {
location.loadMovie("externalmovie.swf");
}

Yet if I try to put the buttons in the scrollpane script, they stop working. I've used this scrollpane script before using dynamic text read as html as content, and it has worked fine. But if I try using my buttons as content for the scrollpane, the buttons stop working.

I've included my fla:

http://www.skjohn.com/helpclips.fla

Any help would be much appreciated. I suspect it is some sort of scoping issue, but as I am a newbie my AS skills are limited and I am stumped.

This is the script I used for the custom scrollpane.
http://www.actionscript.org/forums/...11&d=1141433691

insultcomicdog
05-26-2006, 07:02 PM
Problem solved.

should have inluded " _root."

AS for buttons should read like:

on (press) {
_root.location.loadMovie("externalmovie.swf");
}

Izlude
06-06-2006, 02:46 AM
edit:

solved it :)