all groups > macromedia flash sitedesign > november 2003 >
You're in the

macromedia flash sitedesign

group:

please help - It should work..!


please help - It should work..! GilesW
11/30/2003 11:43:55 AM
macromedia flash sitedesign:
ok, well, ive got another button problem, but this time its weird.

I have a button which links to an extrnal swf file, but it wont load it.

I have used a script i got off here awhile ago for loading a swf automaticaly and also when you pres the button the scripts are (and it creates a target, named "paper")

for loading Automatically

createEmptyMovieClip("paper",10)
paper._y = 122
loadMovie("m1.swf","paper")

m1.onRelease = function(){
loadMovie("m1.swf","paper")
}


For loading on the press of a button

createEmptyMovieClip("paper",10)
paper._y = 50

m1.onRelease = function(){
loadMovie("m1.swf","paper")

}

It works perfectly when i use the loading automaticaly version of the script, but it wont work for when i use the on press version.

Please help.

PS (Currently i have the loading automaticaly version, but i want it to be the presing version)

Thanks

http://webforums.macromedia.com/attachments/problems1.zip

Re: please help - It should work..! stwingy
11/30/2003 12:32:07 PM
You have not given the button an instance name of m1 in the property inspector.


Certified but not by Macromedia!
Re: please help - It should work..! tralfaz
11/30/2003 8:10:39 PM
[quoted text, click to view]
which was m1. And I put that code it, and when i preview, nothing at all
happenes - no error or nething...
[quoted text, click to view]

I put instance name of m1 on your button and it loads m1.swf just fine.
Good luck,
tf


Re: please help - It should work..! GilesW
11/30/2003 11:34:51 PM
oh, sorry I send you the un saved ile, I had named it a button instance, which was m1. And I put that code it, and when i preview, nothing at all happenes - no error or nething...

Re: please help - It should work..! GilesW
12/1/2003 6:57:24 AM
thank, it works now,

AddThis Social Bookmark Button