Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 27th, 2003, 03:30 PM
phyllis phyllis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Vienna, VA
Posts: 8 phyllis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
quit button for standalone player

Hi, I'm trying to create a button that closes the standalone player when it's pressed (I'm using Flash for developing a CD rather than on the Web). I've created the graphic in its 4 stages and added the action onrelease / fscommand quit. Only nothing happens when I open the projector movie and press the button. I'm new to Flash so maybe I've missed something obvious. Can the standalone player be controlledwith a button? Is there another step besides creating the instance and adding the action? Thanks, Phyllis

Reply With Quote
  #2  
Old May 28th, 2003, 04:24 AM
CyanBlue CyanBlue is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Chantilly, VA
Posts: 31 CyanBlue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Howdy...

What you are looking for is fscommand...

Try this code for the button with its instance name set to Btn_Quit...
PHP Code:
 Btn_Quit.onRelease = function ()
{
    
fscommand("quit""");


Reply With Quote
  #3  
Old May 28th, 2003, 08:27 AM
phyllis phyllis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Vienna, VA
Posts: 8 phyllis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hm. Thanks for your help, but no luck with it. The Flash syntax was similar to above, but I tried replacing with yours too and had no luck either way. I'm trying to use the standalone player at full-screen but still want to give people an obvious way to close it.

Reply With Quote
  #4  
Old May 28th, 2003, 09:12 AM
CyanBlue CyanBlue is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Chantilly, VA
Posts: 31 CyanBlue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Um... Okay... Here is a simple sample that you can use to create a projector with it... Try and tell me if it works or not...
Attached Files
File Type: zip fscommandquit.zip (18.3 KB, 1187 views)

Reply With Quote
  #5  
Old May 28th, 2003, 09:46 AM
phyllis phyllis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Vienna, VA
Posts: 8 phyllis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hah! Okay I figured out what I did. I think. I had the button on a layer with something else so I guess it has to be separate. I fear I don't know enough of the basics yet... Thanks for the sample. I pondered it for a while.

Reply With Quote
  #6  
Old May 28th, 2003, 09:54 AM
phyllis phyllis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Vienna, VA
Posts: 8 phyllis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
(Should all buttons be on separate layers?)

Reply With Quote
  #7  
Old May 28th, 2003, 08:34 PM
CyanBlue CyanBlue is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Chantilly, VA
Posts: 31 CyanBlue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
It doesn't really matter... Layer is there for two reasons... One is for your eyes only, and hence the second being the top one always cover the bottom layer... That's the only thing you need to remember about the layer...

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > quit button for standalone player


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway