Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-01-2001, 04:53 PM   #1
Brute Forcer
Registered User
 
Join Date: Jan 2001
Posts: 2
Default

HI there
--------
I tried to protect my movie with this simple script...


------------------------------------------------------------
if (Substring (_url,1,30) eq "http://mydomain.de/flash/first.swf") {
gotoAndStop (7);
} else {
}
gotoAndStop (8);
------------------------------------------------------------

but it always shows me Frame 8 if i tried it on my server what did i wrong?
Brute Forcer is offline   Reply With Quote
Old 01-01-2001, 05:43 PM   #2
Akane
New Member
 
Join Date: Dec 2000
Location: Caen, France
Posts: 13
Send a message via ICQ to Akane
Default

hi !
i am not sure , but you pb may be this one :
_url is not a variable, but a property
set first a variable like this : setvariable myurl=_url

then

if (Substring (myurl,1,30) eq "http://mydomain.de/flash/first.swf") {
gotoAndStop (7);
} else {
}
gotoAndStop (8);
Akane is offline   Reply With Quote
Old 01-01-2001, 06:18 PM   #3
Brute Forcer
Registered User
 
Join Date: Jan 2001
Posts: 2
Default Thanks

Thanks Akané

But ive found my misstake LOL i wrote Substring,but it is called substring ;-) o.k thanks anyway for ure fast reply.
Brute Forcer is offline   Reply With Quote
Reply


Thread Tools
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

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

Forum Jump


All times are GMT. The time now is 09:30 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.