-
How to restrict to direct acess to SWF file in browser
Hi friends
Have a nice day to you all.
I am working in Macromedia flash 8.
I have created a photo album. I have created SWF files for each scene and each SWF file
is called from one small flash exe ,called Title.exe.
Now the problem is started when some of my users open SWF file directly ( double clicking)
in browsers like Internet explorer, mozilla etc.
I want to restrict the user to open the SWF file this way and forced them to open it from within exe only.
I need help from the experts of macromedia flash.
Thanks in advance.
-
Senior Member
maybe stop them at frame 1 and make title.exe to call gotoAndPlay(2)
-
.
Hi,
I had this before, it's simple really, I had a var on the exe file, example,
var internal:String = "execute";
and in the external swf files i looked for the var.
on frame 1 of each external swf
stop();
if (_root.internal == "execute")
{
goto next frame
}
else
{
fscommand("quit");
or goto and stop end frame if fscommand unable to work in browser mode;
}
I'm sure you can figure it out
-
Client Software Programmer
no i think its:
if(internal==external){
externalize_internalizer.internalization.internet. international.swag
-
.
Hi,
Seems you have nothing to add here Alloy... Other than to pester somebodies thread.
There are many ways that this could be achieved
-
.
Hi,
Just noticed Alloy, not sure why but many thanks.
-
Client Software Programmer
goto keep the fruit fruity
-
Thanks friends
You friends did help me
But I am not much familiar with flash coding.
Can you give me step by step guide or may be example FLA please ?
-
Client Software Programmer
What I would do is make the .swf extension to .rng remove the last character in the former .swf file, when the exe opens the .rng file add the extra missing chracter than launch it
-
.
HI,
However Alloy, that does not stop somebody trying to open the swf file with flash player even if it has been given a different extension.
Then not than.
I think they wanted some working code or files, which he/she has almost been given in posts above.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|