This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2004 > Close button in Window component??





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Close button in Window component??
Kewin Pedersen

2004-04-29, 9:29 am

Hi, I'm fairly new to Flash but I've read a good starter book about Flash
but it didn't contain alot of info about how to use ActionScripts. It stated
that in order for the "Close" button to work with the Window component you'd
have to use ActionScript hence I ask of your assistance...
How do I enable the "Close" button within my Window component?

I'm also "frustrated" that I can't somehow disable the upper menu line:
"File - View - Control - Help" when I've exported my movie. Isn't there a
way to remove it so it just my Window component that's visible without any
inteference? Or should I just make it full-screen to get rid of it - how do
I do that while still only showing the actual contents of the Window in 100%
size (trying to make an 800x600 CD-ROM presentation within a 1024x768
desktop resolution)??

Hope you can help me and I'm new so I might not know the "obvious"...


adireddy

2004-04-30, 4:30 am

You can remove "File - View - Control - Help" menu in flash player using
fscommand...

fscommand("showmenu", false);

Coming to close button in window component... the following is the code to
enable close button...

var myTW = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window,
true, {contentPath:"path", closeButton:true});

Kewin Pedersen

2004-04-30, 4:30 am

Hmm... I still can't make it work! :-( I've attached an image (hope it
works - but couldn't send it the first time so if you have and email I can
mail it to you) showing the problem I'm having - though I've used
fscommand("fullscreen", true); aswell. When I've copy-pasted your code there
was an additional popup I could move around (the one with my mouse pointer)
and I could click the close button symbol and it would animate. Still it
wouldn't close the file and my other close button was 'disabled' - couldn't
click it and no animation.

If you know how to it'd be much appreciated if you'd help me. Also isn't it
possible to somehow 'disable' the fullsceen thing so you could see the
desktop while still browsing the internet (without going Alt+Tab) and still
be able to move the Window around freely??

"adireddy" <webforumsuser@macromedia.com> skrev i en meddelelse
news:c6sldm$8ar$1@forums.macromedia.com...
> You can remove "File - View - Control - Help" menu in flash player using
> fscommand...
>
> fscommand("showmenu", false);
>
> Coming to close button in window component... the following is the code

to
> enable close button...
>
> var myTW = mx.managers.PopUpManager.createPopUp(_root,

mx.containers.Window,
> true, {contentPath:"path", closeButton:true});
>



"adireddy" <webforumsuser@macromedia.com> skrev i en meddelelse
news:c6sldm$8ar$1@forums.macromedia.com...
> You can remove "File - View - Control - Help" menu in flash player using
> fscommand...
>
> fscommand("showmenu", false);
>
> Coming to close button in window component... the following is the code

to
> enable close button...
>
> var myTW = mx.managers.PopUpManager.createPopUp(_root,

mx.containers.Window,
> true, {contentPath:"path", closeButton:true});
>





Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews