LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-31-2002, 04:07 AM
Gros Pingouin Gros Pingouin is offline
Registered User
 
Join Date: Oct 2002
Posts: 20
Rep Power: 0
Gros Pingouin is on a distinguished road
Standalone single instance & init

In a Flash MX project I am working, I want the file to be run as a standalone (you know, it has its own Flash player, so all the user has to do is double click on the .exe file and of fhe goes). During some tests, sometimes the movie would start more than once (I am running off a CD which was told to run the Flash movie as soon as it is inserted) running.

I do not have the foggiest idea of why that is happening. Does anyone have a suggestion?

Looking throught the Macromedia website they suggested using the init() function as a way to force having only one instance of the movie at a time.. How does it work? If I create a function in the first frame of the first movie like this (not perfect actionscript but you get the idea

function init()
{
if(!alreadyRunning)
{
quit since we only need to have this running once
}
else
{
nothing(?) since we just continue with the show
}

}

Would this work?
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access instance on stage, Urgent help needed! Ansie-Ans Flash CS4 4 06-22-2009 11:03 PM
Is it not possible to assign instance names to symbols within symbols in Flash CS3? potnop ActionScript 3.0 0 10-30-2008 12:24 AM
Assigning instance name via actionscript Amy_Saunders Flash MX 2004 1 08-18-2005 05:50 AM
createChildren do not access instance properties Joan Garnet Actionscript 2.0 Components 4 07-20-2005 01:18 PM
giving instance names emmaarcee Flash MX 2004 2 11-24-2004 12:41 PM




All times are GMT. The time now is 10:07 AM.