Adobe Dreamweaver Forums



Last 10 THreads :         Adobe Flash 10 kills Wimpy (Last Post : m77ty8uu - Replies : 39 - Views : 255 )           »          problem loading flv over network when accessing swfthrough html (Last Post : Colin Holgate - Replies : 1 - Views : 2 )           »          Please help...Need to rotate image/MC by moving mouse (Last Post : clbeech - Replies : 2 - Views : 3 )           »          Drop down not working in IE (Last Post : Jeepbull - Replies : 1 - Views : 5 )           »          Re: using cast members with case of statement (Last Post : Dave C - Replies : 0 - Views : 1 )           »          Importing video to CS4 (Last Post : elearn11 - Replies : 0 - Views : 1 )           »          Calling Query in Custom Tag (Last Post : Dan Bracuk - Replies : 6 - Views : 7 )           »          Create A Rotator Banner in DW? (Last Post : Twocans - Replies : 1 - Views : 2 )           »          How to Code SWFObject with Alternate Content (Last Post : SRKay62 - Replies : 5 - Views : 6 )           »          While executing error (Last Post : TedMoore - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flash
 
Tags:



Reply
  #1 (permalink)  
Old 10-16-2008, 12:30 AM
motonutty
 
Posts: n/a
Diggs:
Default Controlling FLASH player

I was wondering of there's a way to control the FLASH player (if playing back a
..swf directly from the harddrive) with Actionscript, so that
1) the movie opens and plays in "full screen" mode automatically
2) the application can "quit" on button-click (= the equivalent of the user
hitting the esc key on the keyboard).

Can I do that? Is there a way to communicate to the actual "Player"
application in this way? Help would be greatly appreciated. Thanks...



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-16-2008, 03:33 AM
clbeech
 
Posts: n/a
Diggs:
Default Re: Controlling FLASH player

yes - this is exactly what you are doing any time you write a script -
controlling the "player". to implement both of the items above your can use
the fscommand methods -

1) fscommand("fullscreen", true);
2) fscommand("quit");

place #1 on the first frame of your document, and #2 within a standard button
handler.

Reply With Quote
  #3 (permalink)  
Old 10-16-2008, 04:41 AM
motonutty
 
Posts: n/a
Diggs:
Default Re: Controlling FLASH player

Ahhhh, this is perfect! Works like a charm. Thanks a lot, I appreciate it!
Reply With Quote


  #4 (permalink)  
Old 10-16-2008, 05:24 AM
clbeech
 
Posts: n/a
Diggs:
Default Re: Controlling FLASH player

np - you're welcome
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:17 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk