Groups | Blog | Home
all groups > flash actionscript > february 2007 >

flash actionscript : Beginner/ Actionscript problem


jr1913
2/18/2007 10:03:04 PM
I am following this tutorial

http://www.tutorialized.com/tutorial/Blue-Flash-Button/20836

Stuck on step 23, have redone it several times and just can't seem to get
it to work.

Here is my project file

http://www.filefactory.com/file/c2f41d/

Main problem seems to be connecting the invisible button with the
actionscript, I get a error when "run it / debug"

Thanks,
JR
geilezeit
2/19/2007 12:00:00 AM
I don't understand how Step 22 is done. I'd create an invisible button by
pressing CTRL and F8 (then choose "button). Name it FlashButton and do the
Linkage in the Library.
In Step 23, surely that's a misprint in the script - "fstartlse" should be
"false"
Incidentally, if you delete -
on (release){
getURL("http://www.flashvault.net/", "blank");
}
- it will avoid their pop-up!
Your name for your .fla file is on that web page but no link for download so I
haven't seen that.
geilezeit
2/19/2007 12:34:48 AM
I'm a beginner too, but just an idea. Have you checked the button's linkage?
Right click the button in the library, click on Linkage. Check "export for
actionscript" and make sure "export in first frame is checked".
jr1913
2/19/2007 1:20:06 AM
Thanks for the advice; Neither were checked.

But it did not solve the problem. Any other ideas?

jr1913
2/19/2007 8:07:13 PM
I got stuck on it too, Check out this tutorial for step 22

http://www.tutorialized.com/tutorial/Invisible-Flash-Button/22337

This is one way to make it...

Thanks for pointing out the misprint, I was wondering about it originally but
forgot about it.

Web Link - It is there, but filefactory.com has a weird way of displaying the
link to download it.

Look for this half way down the page.

Download for free with FileFactory Basic

I think my problem is = not understanding exactly where to apply the
actionscripts. Do all action go only on the action layer?
depakchopra
2/19/2007 8:32:00 PM
geilezeit
2/19/2007 10:38:05 PM
I downloaded your .fla file. Yes that "download for free" link got it there in
the end!
If you click on the InvisibleB1 layer and open the actions frame. Click on the
blue tick (check syntax) . It will come up with 3 errors.

**Error** Scene=Scene 1, layer=InvisibleB1, frame=1:Line 1: Mouse events are
permitted only for button instances
on (rollOver) {

**Error** Scene=Scene 1, layer=InvisibleB1, frame=1:Line 5: Mouse events are
permitted only for button instances
on (rollOut) {

**Error** Scene=Scene 1, layer=InvisibleB1, frame=1:Line 9: Mouse events are
permitted only for button instances
on (release){

Total ActionScript Errors: 3 Reported Errors: 3

I think that would imply your buttons need Instance names for the script to
relate to.
I suppose the actions can go on any layer but usually put on an "Actions"
layer for convenience. On their file, the BlueFlashButton.fla there is only
some script on the Action layer (but not on Invisible Button layer) and I can't
find the rest of it!
I'll have to check it later when I get more time. In the UK here and getting
late.
geilezeit
2/19/2007 10:38:07 PM
I downloaded your .fla file. Yes that "download for free" link got it there in
the end!
If you click on the InvisibleB1 layer and open the actions frame. Click on the
blue tick (check syntax) . It will come up with 3 errors.

**Error** Scene=Scene 1, layer=InvisibleB1, frame=1:Line 1: Mouse events are
permitted only for button instances
on (rollOver) {

**Error** Scene=Scene 1, layer=InvisibleB1, frame=1:Line 5: Mouse events are
permitted only for button instances
on (rollOut) {

**Error** Scene=Scene 1, layer=InvisibleB1, frame=1:Line 9: Mouse events are
permitted only for button instances
on (release){

Total ActionScript Errors: 3 Reported Errors: 3

I think that would imply your buttons need Instance names for the script to
relate to.
I suppose the actions can go on any layer but usually put on an "Actions"
layer for convenience. On their file, the BlueFlashButton.fla there is only
some script on the Action layer (but not on Invisible Button layer) and I can't
find the rest of it!
I'll have to check it later when I get more time. In the UK here and getting
late.
geilezeit
2/19/2007 10:38:21 PM
I downloaded your .fla file. Yes that "download for free" link got it there in
the end!
If you click on the InvisibleB1 layer and open the actions frame. Click on the
blue tick (check syntax) . It will come up with 3 errors.

**Error** Scene=Scene 1, layer=InvisibleB1, frame=1:Line 1: Mouse events are
permitted only for button instances
on (rollOver) {

**Error** Scene=Scene 1, layer=InvisibleB1, frame=1:Line 5: Mouse events are
permitted only for button instances
on (rollOut) {

**Error** Scene=Scene 1, layer=InvisibleB1, frame=1:Line 9: Mouse events are
permitted only for button instances
on (release){

Total ActionScript Errors: 3 Reported Errors: 3

I think that would imply your buttons need Instance names for the script to
relate to.
I suppose the actions can go on any layer but usually put on an "Actions"
layer for convenience. On their file, the BlueFlashButton.fla there is only
some script on the Action layer (but not on Invisible Button layer) and I can't
find the rest of it!
I'll have to check it later when I get more time. In the UK here and getting
late.
AddThis Social Bookmark Button