Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Multi-password Check Not Working HELP



Code:
var passes:String = passwords;
var passlist:Array = passes.split(",");
function checkPASS(passlogin) {
trace(passlogin);
trace(passlist[i]);
for (var i = 0; i<passlist.length; i++) {
if (passlist[i] == passlogin) {
trace("in");
break;
gotoAndStop("loggedIN");
} else if (passlist[i] != passlogin) {
failedchecks = i;
if (failedchecks == passlist.length) {
trace("notin");
break;
gotoAndStop("badPASS");
}
}
}
}
line 4 isnt passing in the first value or any value for that matter.
and im not reaching my traces in my if statement...
can someone please help!

never mind i got it...
dont you just love when you over look the little things

Code:
var passes:String = passwords;
var passlist:Array = passes.split(",");
function checkPASS(passlogin) {
//trace(passlogin);
for (var i = 0; i<passlist.length; i++) {
//trace(passlist[i]);
if (passlist[i] == passlogin) {
//trace("in");
gotoAndStop("loggedIN");
break;
} else if (passlist[i] != passlogin) {
//trace(failedchecks)
//trace(passlist.length)
failedchecks = i;
if (failedchecks+2 == passlist.length) {
//trace("notin");
gotoAndStop("badPASS");
break;
}
}
}
}



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 01-06-2006, 04:13 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Password Check
Hey,

I have little action script experence but as far as I can see Flash is being stupid. I have the code:

on (release) {
if (_root.code ==pass) { _root.GotoAndStop(7);
}
}

I have a input text box set to the password setting and the var:code and i one already but why isnt it going to frame 7? I have all other menu items and things working. If you have an idea please tell me since im not too happy with flash.

Thanks!
Tactical

Password Check
Hello masters of actionscript

I have a question...
So Im trying to make a password check script. Here goes:

There is an input text field on stage with a variable name set to: userPassword.

Also a mc on the stage with instance name: button1.

Code on the first frame on stage that Ive put in is:

ActionScript Code:
var correctPassword="time";
 
function checkIt()
{
 
if (userPassword == correctPassword )
{trace ("Access granted");}
else
{trace("Access denied");}
}


Also code on the button1 object is:

ActionScript Code:
on(release)
{
checkIt();
}


Ok so when I enter a data of any kind in the input text field and press the mc, it does not show me the "access denied/granted" thingie.. as it should. Am I calling the function in a wrong way?

Tnx in advance.

How To Check Multi Preloader?
hi guys,
I made a website that consist of several different movie that loaded on command to the main movie. Each movie has their own preloader.

My question is could we check how the preloaders work offline? If I use the "show streaming" option, it shows only the main movie preloader, not the other movie preloader.

Thanks,

Password Check On Button
Hi as you can probably guess I am not a programmer and I am fairly new to Flash.

I have got the following code working on a button. I have a text box where the user adds his password and a combo box for the user to select the area he wants to go to. The on release part works to my amazement.

on (release) {

if (myInput == "XXXX" && Selectme.getValue() == "222") {
goToAndStop("welcome");
}
else if(myInput == "YYYY" && Selectme.getValue() == "333") {
goToAndStop("part1");
}
else if (myInput == "ZZZZ" && Selectme.getValue() == "444") {
goToAndStop("part2");
}
else if (myInput == "HHHH" && Selectme.getValue() == "555") {
goToAndStop("part3");
}
else {
goToAndStop("wrong");
}
}

I need the enter button on the keyboard to also work along with the click of the button. When I upgraded to Flash CS3 it stopped working. Can anyone help?
Both scripts are on the same button.

on (keyPress "<Enter>")
if (myInput == "XXXX" && Selectme.getValue() == "222") {
goToAndStop("welcome");
}
else if(myInput == "YYYY" && Selectme.getValue() == "333") {
goToAndStop("part1");
}
else if (myInput == "ZZZZ" && Selectme.getValue() == "444") {
goToAndStop("part2");
}
else if (myInput == "HHHH" && Selectme.getValue() == "555") {
goToAndStop("part3");
}
else {
goToAndStop("wrong");
}

Check Multi-line Input Box
Hi,

I have an input box that a user has to type in some specific text. When the user clicks the button, the typed text is checked and depending upon whether it is right or wrong, flash performs a function.

I have this working on other pages where the type is single line, but I cannot get it to work when the type is multiline.

Here is the code I am using:

on (press) {
if (_root.holder.input.addy =="Dear Andy, I am arriving in Sydney on the 17th, is it alright if I stay with you for 2 weeks? Yours, Sam.") {
gotoAndPlay("email14", 1);
} else {
_root.holder.input.gotoAndStop("wrong");
stopAllSounds();
}
}

This is how the type should be formatted:

Dear Andy,

I am arriving in Sydney on the 17th, is it alright if I stay with you for 2 weeks?

Yours, Sam.


I would be grateful for any help on this please.

I have tried this, but didn't work:

on (press) {
if (_root.holder.input.addy =="Dear Andy,"+ newline + newline;
addy +=="I am arriving in Sydney on the 17th, is it alright if I stay with you for 2 weeks?"+ newline + newline;
addy +=="Yours, Sam.") {
gotoAndPlay("email14", 1);
} else {
_root.holder.input.gotoAndStop("wrong");
stopAllSounds();
}
}

Cheers,

Craig

Username And Password Check With Flash And Asp
Hi i've a a little problem

i want to put a username and password field into a swf file so you can enter a private part of my site.

It all worked but now i've got to put in the errors (f.e. if you don't put in your password or it is wrong, you have to get a notice of that)


can somebody help me on this matter cause i've been searching and didn't found it


tia
J-ke

Password Check For 2000 Users
Hi,

How would i do this? I need the user to input their email and password to enter the site. They are just as confirmation, the password would be the same for everyone.

But for 2000 people, if i had the 2000 emails all in one file, is there someway i can check with the password and against that list when they hit 'ok'?

Generally looking for the easiest but also 'best' way to achieve this.

thanks





cuse

Multi-variable Check: Script Query...
Hi All, Hope everyone's well...

Im making a game, and i need a piece of code / a method to look at a
collection of variables that are thrown out and recognise patterns in them.
i.e
var1 = 5
var2 = 7
var3 = 4
var4 = 6
var5 = 7

I want to know how to say:

If (any 2 of these variables are the same)
then "do this"
else If (any 3 of these variables are the same)
then "do that" etc etc

I have 5 variables, 9 combinations and over 50 possible properties for each
variable (anyone guessed the game? ;o) Does anyone know how to write the
code / the best way to do this? Its late and my head hurts...

muchos gracias in advance

Andy
perkos@btinternet.com

LoadVars Issue... Password Check Page
so I have a page with login and password fields. named login and pass
enter your info,
variables passed to a php script that matches with a database.
if true, it echo "verif=yes" if not "verif=no";

the actionscript:
logincheck = new LoadVars();

logincheck.onLoad = function()
{
gotoAndPlay("end");
}

loginsend = new LoadVars();
loginsend.login = login;
loginsend.pass = pass;


loginsend.sendAndLoad("login.php", logincheck, "POST");


frame "end"
//to test return value
checker.text = logincheck.verif;

if(logincheck.verif == "yes")
{
gotoAndPlay("start");
}
else
{
gotoAndPlay("error");
}

no matter what it ALWAYS send me to "error" even if it is the right info and checker displays YES as returned answer from PHP... anyone has an idea what I missed?


thakns.!

Password Not Working?
Hi all,

I have used the following actionscript

on (release) {
if (_root.password.value eq "my password" && _root.username.value eq "my username") {
gotoAndPlay ("Preloader", 1);
} else {
gotoAndStop (20);
}
}

for a password facility on my site (used tutorial from Flashkit) but when I upload the flash file to my web site it doesn't work, however when try it from the file on my hard drive it does, can anyone please help?

Many thanks in advance

Shen

Password Code Not Working?
Hellooo

I have a problem with this password code. It has no errors and I checked everything but the password in the code I choose it just goes to the else action which says "error"

I have provided a .fla file. I have been trying to fix this for ages. Is it just flash 8?

Thanks in Advance!

Is My Pre-loader Working, How To Do It For Multi Clips?
Hello everyone,

I found a pre-loader code on one of the tutorials and used it. But I can't verify whether it's working or not. On the first frame the pre-loader code executes while the images load. On the second frame I have a button which is to show a different (supposedly pre-loaded) image when clicked. But there is a flicker before the image switches. It seems to me this indicates the time it takes for an image to load again. Why else would there be a white flicker if the image is already in the cache memory? Does anyone have any idea about that?

To fix this I modified the code to load each external image into its own movie clip. This time the pre-loader did not work. Specifically the statements to getBytesLoaded() and getBytesTotal() both returned zero. Could someone please tell me why my code does not work? I really appreciate your input. Sorry for the long code.

Thanks in advance.


Code:
swflist = new Array("image1.jpg","image2.jpg","image3.jpg")
var loadingswfNum = -1;
var level = 101;
var checkLoad = false ;
this.createEmptyMovieClip("loadertest_mc",100) ;
function loadClip()
{
loadingswfNum++;
level++;

if (loadingswfNum <= swflist.length){
var cliptoload = swflist[loadingswfNum];

this.createEmptyMovieClip("targetClip_mc"+level,level) ;
this[targetClip_mc+level].loadMovie(cliptoload);

this[targetClip_mc+level]._alpha = 0;
loadertest_mc.hasLoaded = false ;
loadertest_mc.onEnterFrame = checkloadfunc ;
}else{
loadertest_mc.removeMovieClip()
_root.gotoAndPlay(2) ;
}

function checkloadfunc (){
var name = "targetClip_mc"+level;
var bl = this._parent[name].getBytesLoaded() ;
var bt = this._parent[name].getBytesTotal() ;
var bp = int((bl/bt)*100)
this._parent.update(bp); // show progress bar

if ( bt>4 && bl>=bt && this._parent[name].targetClip_mc._width >0 && this.hasLoaded == false ){
this.hasLoaded = true ;
this._parent.loadClip() ;
}
}

Flash With A Password Form Isn't Working
I setup a quick password entry screen using flash, which i'm pretty new to, and it doesn't seem to be working correctly.

Here's my scripting..

PHP Code:





 on (release) {
if (pass eq "dr0wssap") {
gotoAndStop(2);
          } else {
gotoAndStop(3);
}








The password box's name is "pass". No matter what someone puts in the box, it goes to the same frame. in this case, frame 3. Not sure what I'm doing wrong.

Any help would be great.
Thanks in advance

If Its Still Not Working Then Check
if its still not working then check that you have an upto date version of the flash player

Can Someone Please Check My Conditional (not Working For Me)?
This code is working, for the most part, for me - I am getting a mask. But, I'm trying to use a conditional (at the bottom) based on the image to be masked. Looking at it with my inexperienced eyes it seems like it should work but I'm obviously missing something. Thanks for looking.



Code:
import flash.filters.*


_root.createEmptyMovieClip("photo5_mc",1);
photo5_mc.loadMovie("photo5.jpg");

_root.createEmptyMovieClip("photo5_mask_mc",2);

var loader = new MovieClipLoader();
var loaderListener:Object = new Object();
loader.addListener(loaderListener);
loaderListener.onLoadComplete = function(photo_mask_mc)
//loader.onLoadInit = function(photo5_mask_mc)
{

photo5_mc.setMask(photo5_mask_mc);
var dropShadow:DropShadowFilter = new DropShadowFilter(10,45,0x000000,50,5,5,1,3);
photo5_mc.filters =[dropShadow];



}

if(photo5_mc._width >= photo5_mc._height){

loader.loadClip("wide_mask_400x300.jpg",photo5_mask_mc);
}else{
loader.loadClip("tall_mask_225x300.jpg",photo5_mask_mc);
}

[F8]HELLPP Why Isn't This Working? Check It Out Please
Hi i downloaded a PhotoScroll file from flash kit and i understood everything, now that i am trying to set my button to click to another scene but its not working and im pulling my hair out! Please help
-------------------------------------------------------------------
It works when i put:

(release) {
getURL("http://www.msn.html","_self");
}
--------------------------------------------------------------------
Below is what im typing in it:
-------------------------------------
on (rollOver) {
button2.gotoAndPlay(2);
}

on (rollOut) {
button2.gotoAndPlay(16);
}
on (release){
gotoAndPlay("album2", 1);
}

Can Someone Check This? Tutorial Isn't Working.
hi. im trying to do this http://www.tutorialized.com/view/tut...in-Flash/39405
but its not working. my main hurdle was applying action to button symbol. it wasnt allowed to do. if you check my cs3 fla file, i did somehow applied the action to the button. 1st i made a movie clip symbol, then applied the action in the movie clip timeline. then in the properties of the movie clip i changed it to button symbol. next problem was i couldnt apply action to a movie symbol. according to the tutorial, i just had to select the symbol and apply the action. i couldnt do it. so i went inside the mc symbol and applied the action to one of the 2 layers. they're masked layers. im working on cs4. i also checked it on cs3 but its same deal. can somebody please check this out? id really appreciate it. thanks.

final360-cs3.fla

RemoveListener Not Working, Can Someone Check Me?
PHP Code:



var clickListener:Object = new Object();
clickListener.onMouseDown = function() {
    if (_root._ymouse<367) {
        var imageName = _root.myGame.checkForButtons();
        if (imageName == undefined) {
            _root.myGame.curPhoto = _root.scene[_root.scene.target.substr(0,1)].room;
        } else {
            _root.myGame.curPhoto = imageName._name;
        }
        Mouse.removeListener(clickListener);
        _root.nextNavSection = "revi";
        _root.toolbar.gotoAndPlay(_root.toolbar._currentframe+1);
    }
};
Mouse.addListener(clickListener);
stop(); 




every line of code in this is working except the Mouse.removeListener(clickListener); line.

any ideas why that would be?

Can Some Check This Code For Me Its Only Working Once In My MC
The code below is only working once in my MC. I am trying to create a tabbed navigation with an imbedded button within an MC. I have started to get the movement down sorta, but the movement only works once. I'm new to actionscript so i'm not sure if this code is right. thanks for all the help.



speed = 1.5;
endX = 100;
endY = 40;
meycolitemesh.onRollOver = function() {
entiremeycolitemesh.onEnterFrame = function() {
this._x += (endX-this._x)/speed;
this._y += (endY-this._y)/speed;
meycolitemesh.onRollOut = entiremeycolitemesh.onDragOut= function() {
if (entiremeycolitemesh._x>=100) {
endX = 335;
endY = 40;
delete this.onEnterFrame;
} else {
endX = 335;
endY = 40;
}
};
};
};

Please Check Actionsipt3 As Not Working
I am trying to convert a flash folio to actionscript 3

I will endevour to describe my timeline setup followed by the frame code that I cannot get to work. At the moment the time frame keeps looping, buttons and AC3 loader/ progress components.

I feel I’m close but I’m missing something. Once I get one frame right I can continue with same actionscript basis for others. Please help….

I have put all the actionscript for this particular frame in the top layer named “actions”

The other layers below on the stage are as follows:

-a layer containing buttons
-a layer containing for progress bar component
-a layer for the loader component loading file called “recycle-web-map-4-folio.png”
-a layer for text and background artwork

On the stage are:

-progress bar component instance name of “recyclingProg”
-UI loader component instance name of “recyclingLoad”
-Button instance name of “contactUs”
-Button instance name of “profilePage”
-Button instance name of “workPage”
-Button instance name of “applyPage”

In addition within this scene named “main”, frame name labels have been created named “profile”, “work”, “apply”

Here is the action script that is in the layer named “actions”:

//import classes
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.events.Event;
import flash.events.EventDispatcher;
import fl.motion.Animator;
import flash.events.ProgressEvent;
import flash.text.TextField;

//stop movie clip
this.stop ();

//profilePage event listener "istance name" & "handler"
profilePage.addEventListener(MouseEvent.CLICK, clickProfile);

//profilePage event handler
function clickProfile(event:MouseEvent):void
{
trace ("profile page button clicked");
_root.gotoAndPlay("profile"); //root of timeline with "profile" label??
}

//applyPage event listener "istance name" & "handler"
applyPage.addEventListener(MouseEvent.CLICK, clickApply);

//applyPage event handler
function clickApply (event:MouseEvent):void
{
trace ("apply page button clicked");
this.gotoAndPlay ("apply","main");
}

//workPage event listener "istance name" & "handler"
workPage.addEventListener(MouseEvent.CLICK, clickWork);

//workPage event handler
function clickWork (event:MouseEvent):void
{
trace ("work page button clicked");
this.gotoAndPlay ("work","main");
}

//contactUs email link event listener
contactUs.addEventListener(MouseEvent.CLICK, clickContactUs);

//contactUs event handler
function clickContactUs(event:MouseEvent):void {
navigateToURL(new URLRequest("enquire@evulon.com","_blank"));
trace("contact us button clicked");
}

//define Loader instance “recyclingLoad/myLoader” of the loader class
var recyclingLoad:Loader = new Loader();

//define URLRequest instance “myRequest” that points to file to load
var myRequest:URLRequest = new URLRequest("recycle-web-map-4-folio.png");

//instance loads image to stage
recyclingLoad.load(request);

//capture loading progress
//declare three callback functions: showPreloader(), showProgress & showLoadResult
recyclingLoad.contentLoaderInfo.addEventListener(Event.OPEN,showPreloader);
recyclingLoad.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,showProgress);
recyclingLoad.contentLoaderInfo.addEventListener(Event.COMPLETE,showLoadResult);

//alternate listen for event errors??
//recyclingLoad.contentLoaderInfo.addEventListener(10ErrorEvent.10_ERROR, loadError);
//recyclingLoad.contentLoaderInfo.addEventListener(Security ErrorEvent.SECURITY_ERROR, loadError);
//recyclingLoad.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);

//define textfield showing load progress
var loadProgress_txt:TextField = new TextField();

//callback function reacts on OPEN event
function showPreloader(evt:Event):void {
addChild(loadProgress_txt);
}

//callback function reacts when progress is made
function showProgress(evt:ProgressEvent):void {
loadProgress_txt.text = “loaded:”+evt.bytesLoaded+” from “+evt.bytesTotal;
}

//callback function displays loaded content
function showLoadResult(evt:Event):void {
removeChild(loadProgress_txt);
addChild(recyclingLoad);
}

Someone Please Check Why This Isnt Working
hello again guys n gals well i made a preloader that doesnt preload, ok this is what im experiencing, in the first frame of this fla theres a simple animated movie clip wich should play till all of the frames are loaded but the funny thing is it wont play at all and it wont even preload if you copy the movie clip from the first frame and paste it to a new document its less than 2 kbs now when i use it in cojunction with the movie the first frame is 16 kbs why is this??? this is very strange i cal out to all who can help me get through this because im goin nuts with it

Thanks guys
get the fla here www.bmv-interactive.com/about_us_final.fla

Grim

Multi Loaded Vars To Multi MC's...Banging My Head Against The Wall
OK I'm banging my head against the wall because this is probably too simple, and I've been working on too many things lately *L*

OK so I've loaded a bunch of vars... let's say var1, var2, var3...var6 from a txt file.

Now I want to send each var to a MC whit similar names - but1, but2, but3...but6

code:
varsFile.onLoad = function(success:Boolean) {
trace("loaded");
for (i=0;i<=6; i++) {
buttonClip.but[i].htmlText = varsFile.var[i];

}
};



I've tried a bunch of different syntaxes, but can't seem to get it to work... HELP!!!!!! LOL


Thanks!!!!

How To Password Protect A Movie, Password Scrn With Multiple Frames
I'm trying to password protect one of my flash 5 clips but if the password entree screen has only one frame then anyone who wants acces the site can just right click and press "play". I need a way of disabling the right click menu on my movie, if thats impossible then I need a way of making the password enter screen multiple frames.
Help please!

Code Is Working But I Have Some Problem ,please Check
hi

i write a code to calculate some input

with the example i have it's working 100%

but when i use anther example it's stop at frame 2

i add error messages for the users to know his error from input


and here is the code (it's not all the code it's just 10% of the code but the error is here i know caze the movie stop here)



frame 1:
----------

StartProcess = function () {
ErrorMessages = "";
Angle = GetAngleSelection.getValue();
KoData = GetKoSelection.getValue();
if (Pw eq "" or np1 eq "" or nGmax eq "" or nGmin eq "" or dc eq "" or Angle eq "Choose a selection" or KoData eq "Choose a selection") {
ErrorMessages = "Error Message: Please Fill or Select All The Data";
Next = false;
} else {
Next = true;
/:nG1 = (Number(nGmin)+Number(nGmax))/2;
}
if (Next) {
Next = false;
/:Np2 = GetAngle();
/:Ko = GetKo();
gotoAndStop(2);
}
};
GetAngle = function () {
if (Angle == "14.5") {
return 32;
}
if (Angle == "20") {
return 18;
}
if (Angle == "25") {
return 12;
}
};
GetKo = function () {
if (KoData == "Uniform -> Uniform") {
return 1;
}
if (KoData == "Uniform -> Light shock") {
return 1.2;
}
if (KoData == "Uniform -> Moderate shock") {
return 1.3;
}
if (KoData == "Light shock -> Uniform") {
return 1.25;
}
if (KoData == "Light shock -> Light shock") {
return 1.4;
}
if (KoData == "Light shock -> Moderate shock") {
return 1.7;
}
if (KoData == "Moderate shock -> Uniform") {
return 1.5;
}
if (KoData == "Moderate shock -> Light shock") {
return 1.75;
}
if (KoData == "Moderate shock -> Moderate shock") {
return 2;
}
if (KoData == "Heavy shock -> Uniform") {
return 1.75;
}
if (KoData == "Heavy shock -> Light shock") {
return 2.25;
}
if (KoData == "Heavy shock -> Moderate shock") {
return 2.75;
}
};
stop();




frame 2:
----------


CorrectNp2 = function () {
if (Angle == "14.5") {
Np2 = Number(Np2)+1;
}
if (Angle == "20") {
if (Number(Np2)<32 && Number(Np2)>=18) {
Np2 = Number(Np2)+1;
}
if (Number(Np2)>=32) {
ErrorMessages = "Error Message: The Value Of np Not Correct With the Angel "+Angle;
}
}
if (Angle == "25") {
if (Number(Np2)<18 && Number(Np2)>=12) {
Np2 = Number(Np2)+1;
}
if (Number(Np2)>=18) {
ErrorMessages = "Error Message: The Value Of np Not Correct With the Angel "+Angle;
}
}
StartCalculations();
};
StartCalculations = function () {
VR = Number(np1)/Number(nG1);
nG2a = Number(Np2)*Number(VR);
nG2 = Math.round(nG2a);
VR1 = Number(nG2)/Number(Np2);
nG3 = Number(np1)/Number(VR1);
if (nG3<Number(nGmax) && nG3>Number(nGmin)) {
gotoAndStop(3);
} else {
if (Number(nG3)>Number(nGmax)) {
ErrorMessages = "Error Message: The Value Of np or Np or nGmin or nGmax is InCorrect";
}
if (Number(nG3)<Number(nGmin)) {
CorrectNp2();
}
}
};
StartCalculations();
stop();










with working example it's work fine and goto frame 3

but when changed the input it's stop at frame 2
but my qustion why the error messages not showen up!!??

thanx

Creating Multi-buttons To Open Multi-jpegs
I am a newbie to action-script and flash. I have Flash 6.
I am using a template built in flash and there is a sub page that has numerous
buttons with roll-over effects that were pre-built. BUT they don't point to anything yet.

I want the viewer to be able to click on a button and have each one open a different Jpg in a window next to the rows of labeled buttons.

I imagine this is pretty simple...Perhaps you know of a specific tutorial within this flash help site that addresses this?

Or if there are a few things that you can communicate to help me...that would be awesome!

Thank you!

Date Check Function - Not Working In Europe
Hi all,
I created a simple date check function for a Flash program that I sometimes send out on CD's. It checks the date on the computer, and if it's past a certain date it jumps to the end of the timeline and gives a message (license expired) to the user.

**THE PROBLEM**
It works fine, usually. The problem is that recently I had some people in Europe use the CD and they were getting the license expired message, even though they are well within the date that it expires.

Go to:
http://www.design4x.com/test/dateche...hDateCheck.swf

You should be able to see the site OK. If you change your computer date to 2005 and then run it again - you should get the License expired message.

****

Any ideas why this would occur only in Europe (I had some U.S. customers use the same program and they didn't have a problem). Is there some quirk with how dates are set-up on European computers that would cause this (I even changed my computer to display in a European format to test it out and it worked fine).


Regards
M

P.S. for those of you who think such a date check isn't much of a deterrent. After all, all the person has to do is set their computer date back temporarily to run the program. However, the code is a little more complicated. It actually creates a SharedObject (i.e., a Flash cookie) that keeps track of the last date the user tried to access the program. Then if they try to set their computer date back, the program "knows". Obviously, anyone familiar with Flash can just find and erase the SharedObject - but most people probably won't realize this or know how to do it. It's not 100%, but it's the best I got. Any other suggestions?

Specifying The FLV In A Multi-channel Multi-title Player
Hello,

I have Flash 8 Pro that I use to publish an Earth Sciences Agency version 5.1 multi-channel multi-title FLV player on my website. The FLV player is populated using an XML playlist. I'm going through the account setup process at Truveo, which is a search engine dedicated to video, that uses an RSS feed to enter your videos into their search engine. I've set up the RSS feed and it validates.

However, a listing of one of my videos in the search results only points to my site as a whole, rather than to the specific FLV file on a specific channel in the FLV player. I suspect that there is some need in the RSS file to specify the FLV video and also fire an event, plus some type of event listener in my SWF to respond with the correct FLV.

In other words, when the search engine(s) return one of my videos in a search list, and provides a hyperlink to my site, how do I make it open the FLV player at that specific video, rather than just open my site as a whole?

Can anyone point me to a tutorial for how to set that up? Is it even possible?

Thanks,

Tom Wood





























Edited: 07/13/2008 at 09:35:46 AM by tomwood2

Multi-multi-dimensional Array?
Can you have an array structured like this?

The idea being that'd we'd have a whole bunch of stores with the same data

School[0] = Store's full name
School[1] = Number of store employees
School[1][0] = Employee 1
School[1][0][0] = Janitor (Title)
School[1][0][1] = Employee 1's hire date
School[1][1] = Employee 2
School[1][1][0] = Sales person (Title)
School[1][1][1] = Employee 2's hire date

And on and on and on

Password Protection W/ E-mailed Password
I need a password protection gate that E-mailes a password to the visitor if they pay to enter the site. I really need this or I can't take this job I got. Please help. If can be anything like .html, .swf, .php, .etc.

I'm just a flash designer and I don't have a ton of knowlege in programing outside of flash and html.

Thanks!!!

[CS3] Multi Level Drop-down Menu. Trouble With The Multi Level Bit
Hi,

I'm creating a multi-level drop down menu for a college project. So far I have 2 main menu items, one of which (products) contains 3 sub menus (line 1, 2 and 3). Line 1 should also have 3 sub menu items (product 1, 2 and 3).

I'm putting the actions for the line1_mc roll over and roll out on the main timeline but it doesn't seem to be working because it is trying to call a movie clip from within another movie clip!

Any ideas would be greatly appreciated!

How To Check If "delete This.onEnterFrame;" Is Working?
Is there any method how can I check if "delete this.onEnterFrame;" is working or not?..

thx a lot..

How To Check If "delete This.onEnterFrame;" Is Working?
Is there any method how can I check if "delete this.onEnterFrame;" is working or not?..

thx a lot..

Reality Check: Flash CS3/AS3 Check Syntax
I need a quick reality check. I've finally started playing around in CS3/AS3 on my Mac. Whenever I click "check syntax" I get a very limited error response: specifically, I get actual syntactical errors (e.g., a missing brace or paren), but I get NO COMPILER ERRORS (e.g., use of an undefined method or property). These compiler errors trigger at runtime, but not having them during authoring makes coding and debugging unnecessarily difficult.

Is this really how it's supposed to work?

In Flash8/AS2, we had compile-checking right in the AS file. If I attempted to access an undefined method or property, the error-checker would catch that right away. No time-consuming compile was necessary to catch these obvious errors (see example below). But AS3 doesn't seem to be as clever.

Am I missing something?

Thanks much!

-------------EXAMPLE---------------







Attach Code

import flash.display.BitmapData;

class myClass{

var _bmp:BitmapData;

function myClass(){
_bmp = new BitmapData(500,300);
_bmp.methodNotDefined();//unknown method of BitmapData triggers an error
myVar = 5;//unknown property of myClass triggers an error
}
}

HELP Check Box W/ DYNAMIC Check Value?
I was wondering if you can make the Check Box component have a dynamically-loaded check value.

I would like to have it read the "&price1" variable from a text file.

If you know how to do this, please help.

thanx!

HELP Multi SWF?
I want to create a main swf that will load several different swf files, for example my main window which will load is blank it will then load say a menu swf file and then another swf file in the same window. How can I do this?

If anyone can post a example file or possible know of a tutorial or post a detailed description of how to do this, I would very much appreciate it.

Thanks in advance for your help, just one last thing I will need the swf to be displayed in a certain area of the main blank swf and other swf files will also be placed in certain places.


Thanks
0rlando

Multi Mc At Once
Hey,
Is it possible to creat a invisible mc with in 2 other invisible mc's and if so would there be any complications. Im trying to do something similar and it gets to the second layer but then doesnt want to load the third inv-mc. Like loading an external swf to a container mc then in that same mc have another external load and then another.
What do ya think.
Cloak

Multi Mc At Once
Hey,
Is it possible to creat a invisible mc with in 2 other invisible mc's and if so would there be any complications. Im trying to do something similar and it gets to the second layer but then doesnt want to load the third inv-mc. Like loading an external swf to a container mc then in that same mc have another external load and then another.
What do ya think.
Cloak

<<<<<< Password Help >>>>>>
If I used this code to put a password on my site would it be safe to use, or can the code be looked at by a hacker.


if (password == "monkeynuts") {
gotoAndPlay ("index");
} else {
gotoAndPlay ("goaway");
}

Password
I am trying to make a dinky little password for my web site. I have some of it, but i can't get it to work. If you can help me, e-mail me at fastercracker@hotmail.com and i will send the file to you. Thank you!

PASSWORD
I want to make a program (using flash) but b4 useing the program I want it so you have to enter a password to get access to the program. Do you know how? If so please tell me!

Password
How do i write the actionscript that generates a random password? the password has to be retained for log-ins.

Password ******
I want to make a password access, and make some like in windows text field ( ****** )

Any solution for doing that

Cheers

Robok

Password
Hi,
I've looked at some of the tutorials here at flashkit for creating a username and password log-in system and none of them seem very clear about how do make a log-in that can accept multiple combinations of usernames and passwords that all point to different urls.

In other words. I want to have a single field where more than one user can type in their username and password, and based on their username and password, have their browser be directed to individual urls that contain a static web page with info specific to them.

What would the code be for this and were would I put it, on a submit button? Or a frame? Any help with this one would be greatly appreciated.

Password Help
Right i just got the tut for the password login and i followed evry thing to the letter and ended up with this actionscript for the 'TRIAL' button.

on (release) {
}
if ( pw eq 123 ) {
}
gotoAndStop ( frame 8 );
} else {
gotoAndStop ( frame 11);
End if
End on

thats exactly how it looks on the tut but when i run the movie i get this msg in the out put box.

Scene=Scene 1, Layer=Start, Frame=1: Line 3: Statement must appear within on handler
if ( pw eq 123 ) {

Scene=Scene 1, Layer=Start, Frame=1: Line 5: ')' or ',' expected
gotoAndStop ( frame 8 );

and the screen is blank can ne1 tell me wot i've dun wrong?

Password
I have this code for a simple password, to advance my movie to frame 35. It works fine if I type in "1234" as the password. However, I would like to be able to give out several different passwords, all of them with 4 digits. How can I code the script, to accept any 4 numbers? Here's my code below. Thanks in advance. Daryl

on (release) {
if (password eq "1234") {
gotoAndStop (35);
} else {
password = "";
}
}

Password
Does anyone know how to make a password so that the person then can watch the moive. For example. The person need to enter the password so that the person can watch the moive..

How To Put Password?
How to put password so that when people download my swf movie they cant import to their flash work?

Password
I have a section of a site which needs to be accessed buy a password only one password (lets say FLUFFY) the password will never change.

TY

Password Not
Hi,
Im trying to create a password secured area within my flash movie. The password protection does not work though.
When the enter button is press your automatically
allowed into the secured area.

I have the input type options set to password.
and the variable is
_root.login

could you check out this set up or just explain how
the password option works in general.
Its not in my flash book.

Thanks



on (press) {
if (login == vipguest) {
tellTarget ("_root.client") {
gotoAndPlay (2);
}
} else if (_root.login<>vipguest) {
tellTarget ("_root.intro.login") {
gotoAndPlay ("sorry");
}
}
}

Copyright 2005-08 www.BigResource.com, All rights reserved