Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : Help a beginner?


Storyman
4/22/2004 1:55:18 PM
Have you pressed F1 on your keyboard to bring up the help menu? That would
be a good place to start.


[quoted text, click to view]

Froborr
4/22/2004 8:45:37 PM
Student, just starting out with Flash MX. I have the basics of animation and
music down, but my project requires some actionscripting that I'm having
trouble with.

Here's what I need to do: (1) Clicking on certain spots in the animation
should open up a URL in a new browser window. These links should be in some
frames but not others. (2) At the end of the animation, close all daughter
windows and the window containing the animation.

I'm pretty sure the last, at least, requires fscommand, but I can't for the
life of me figure out how to make fscommand work. Any help?
ol_yello
4/22/2004 9:21:11 PM
I'm pretty much a beginner too, and I also had trouble figuring out fscommand
on the one occasion I've needed it so far. However, I learned that you can send
out javascript commands without using it, and that worked okay for me. This is
the code I used:

on (release) {
getURL
("javascript:NewWindow=window.open('pop_genRep_patch01.html','newWin','width=955
,height=600,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizabl
e=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
Froborr
4/22/2004 11:17:03 PM
Storyman: Help was the first thing I tried. However, I found the help for
fscommand more confusing than helpful, hence the reason I came here.

ol_yello: Thank you muchly, I will try that script for the new windows problem.

Anybody have any suggestions for the second problem? Will this work as
generic code:

on(event) {"javascript:close.window(windowname)"}
Froborr
4/23/2004 10:37:55 PM
AddThis Social Bookmark Button