Im trying to make password checker but in some reason my code doesn't work. I have one input text field "inTxt", one output text field "outTxt" and submit button "btn". My code checks if the text in the input field is same that is in the "pass" variable and if it is, it should print "Correct." in the outTxt output text field and if it's not it should print "Incorrect." But for some reason it prints "Incorrect." all the time.
What I'm Trying To Do: Modify the y coordinate of a MovieClip on the stage from an external .as File, simple as that.If someone could tell me why its not working and how I can go about fixing it without modifying the existing class structure (ChildOfMain must subclass MainClass).
Download Source Files 6 kB
For those of you who don't want to download the source files (I thought it would make it easier if you could handle it yourself)
Document Class For Project: Main Class Objects In Project Library platform (movieclip) subjectMovieClip (movieclip)
I am trying to create a simple animation, juste a picture that need to move from left to write while rotating around the vertical axis.I tried just to have the first position normal and the final position scaled at -100% in width but it also distort and move up and down.I already did that in acstionscript but not just graphicaly.
I have a simple text fade movie clip that will "play" but won't work when I "Test Movie." What am I missing? I don't regularly use Flash as of yet, and have been successful before, but this is ridiculous - and I know I'm probably missing something very simple.
I use the JQuery plugin Uploadify for uploading files. It works fine in all browsers. If however I imlement a passwort protection via .htaccess like this
AuthType Basic AuthName "Restricted Files" AuthUserFile /my/path/to/.htpasswd AuthPGAuthoritative Off Require user dev
uploadify stops working in Firefox. In Chrome it still works.
In Firefox the file select box works, but after I selected a file the progress bar does stay at 0% and the file is not uploaded to the server.
I guess the issue is somewhere with flash on password protected sites. how I can fix this, without removing the password protection?
I have a box similar to a credit card scanning box. to enter the site, it requires the user to enter "566404663" (that is "long_gone" on the numerical/alphabetical keypad) then click the enter key. when the user clicks on the enter key, it takes him to the site. When the user clicks enter, regardless of what the user entered, it takes him to the site. I want it to only go to the site if the user enters "566404663" and clicks enter.
This is my actionscript for the button: on (release) { if (display = "566404663") { getURL("[URL]", "_blank"); } else { displayStatus ="0"; }}
What I want that when the user clicks "566404663" and clicks on enter that it takes the user to the site and if the user enters anything other than "566404663" and clicks on enter that it would reset the display to 0? Check out the link to see the credit card scanning box: [URL].
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code: var i:Number = 0; var myInt:Number; var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.
I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.
i have a box similar to a credit card scanning box. to enter the site, it requires the user to enter "566404663" (that is "long_gone" on the numerical/alphabetical keypad) then click the enter key. when the user clicks on the enter key, it takes him to the site.
PROBLEM: when the user clicks enter, reguardless of what the user entered, it takes him to the site. i want it to only go to the site if the user enters "566404663" and clicks enter.this is my actionscript for the button:
on (release) { if (display = "566404663") { getURL("http://www.geocities.com/taikobou_20/index.htm", "_blank");[code].....
when the user clicks "566404663" and clicks on enter that it takes the user to the site and if the user enters anything other than "566404663" and clicks on enter that it would reset the display to 0?
check out the link to see the credit card scanning box: http:[url].....
Im new at actionscript, and I am making a very project. Basicly, I have some thing were there is a page you can get to by beating other parts of the 'game'. I want to add some sort of a password or save feature to people can type in the password of something at the opening screen and jump to that page.
I am just testing out how to place a button to go to a scene.I have 2 scenes named, one and two and 2 buttons...One on each scene to get them back to the other scene.The instance names on the buttons are scen1_btn and scene2_btn.My Functions are just called scene1 and scene 2.The code I have below is what I wrote, and I thought would work, but isn't.[code]
I have this little slideshow, it is for practise for my students. It always worked well in as 2.0, 5 slides, and two buttons: back and next.The script in2.0 has: prevFrame and nextFrame in the code and for the exceptions in frame 1, and frame 5 we made a new frame 1 in the actions layer, and coded the back button, gotoAndStop(5); and a new frame 5, and coded the next button: gotoAndStop(1); Works.
Now I put the thing over tot as 3.0: And I can not get it to work properly....the buttons work, but when I am on frame 5, and go back to 4, it will go no further than 4, evenso when I go back to frame 1 from 5, I can not go further up than frame 1.
I'm not familiar with AS3 at all.I'm working on a simple 2 minute presentation. For testing purposes, I have a layer named "label" that I am using to set a label called "test" (currently it's on frame 1445)I'm trying to put an action in the timeline, frame 1, that will cause the play head to automatically jump to the "test" label so as I build the presentation and test it, I don't have to sit through the entire thing just to see if my latest animations are working as expected. I'd like to move this "test" label down the timeline as I continue to build new parts of the presentation. I would expect this code to jump the play-head to where ever I put that "test" label..Instead, it either doesn't work at all, or it jumps to some other random spot around frame 160. NO other labels are being used in this presentation (I'm using the FlashEff component plugin for effects, in case that info is necessary)
I'm an AS2 guy finally being drug into the AS3 world and finding it difficult.I just want to make a simple rollover effect.[code]I noticed the first line in the code, do I have to import something? Either way my text in the button doesn't move when I rollover. It moves upon render but then it stops.URl...
I am using Flash 8, and for some reason, my if statement won't work. I have a scrollbar which scrolls a movieclip (that contains AS loaded material (eg. attachmovie). I want it so that only when the material is longer than the scrollbar do I see the scroll bar.For some reason, it doesn't work. The traces don't even work!
if (scrollbar._height < menu_mc._height) { scrollbar._alpha = 100; trace("works");[code].....
I have a scene for the title screen and a scene for the game itself. On the title screen i have a start button, that when clicked it is supposed to go to the game scene; but for some reason this wont work.
actions for startclick (start) on(release){ gotoAndPlay("Game", 1); }
I am having trouble getting a hitTest to work. My two MCs are lines, one horizontal, one slanted. When the horizontal line gets within the "bounding box" of the slanted line the hitTest is true, but it's not touching the slanted line yet. I saw that the shapeFlag property comes into play here, but only when using coordinates... I'm not sure how to apply it to these two lines. I want the hitTest to be true only when the lines actually touch. I have attached a simple FLA of the problem.
I'm trying to get a simple random SWF loader to work. and I'm close...I have 10 movies saved as movie1.swf to movie10.swf saved in a directory.For my index file (swf file that will load one of the 10 movies randomly) I have one single frame with this in the actions:
stop(); var movieArray : Array = ['movie1','movie2','movie3','movie4','movie5','movi e6','movie7','movie8','movie9','movie10']; var loader : Loader = new Loader(); loader.load(new URLRequest(movieArray[Math.round( Math.random() * movieArray.length-1 )] + '.swf')); addChild(loader);
For the most part it works. But every now and then the screen comes up empty on a refresh. My guess is the math might be slightly off and is calling a file that is not there.
I boggled with this simple script.This script is on the MC. Everything works except the last onRelase function which just won't go to "disable". If I change "disable" to "fadein" it will work. Please see the attached timeline pic to get better idea and please do let me know what I'm doing wrong.[code]
I do not know action script, and, have created a button in flash that pops up information when you rollover the button.The button works fine, but, the entire area - where the information pops - is also poping up when I rollover that area.
and I have the ClassPath pointing to the folder that contains this .as file. I do get the trace "In setUp" but I'm not getting seeing any Keyboard events. There also aren't any errors showing up in output so I am kind of stumped.
I've been trying to get a simple fade out of a logo to work. I converted the logo to a movieclip called logo_mc I click on the logo_mc movieclip and insert this actionscript.
I have also tried putting the code on the main timeline without any success.
If I understand correctly this should see if the alpha is greater than 0 and if it is it should decrease the value by five increments until it reaches 0.
I'm using Flash to create a simple profile on a recording artist for work. I'm trying to embed a minute-long .mov file into Flash, so when someone clicks the "watch" button I created, it changes frames and plays this .mov file. I have everything uploaded, but the .mov file only shows up on certain computers when someone actually clicks the "watch" button. It works on my Mac, a friend's Mac, but on the three PCs I've tested, it won't show up. The Flash file itself works, but the .mov file won't show up on the frame when it is accessed.The flash file containing the .mov is embedding onto a .php page made in Dreamweaver. On all computers, when the .swf is accessed directly, the .mov file will work properly. On the PCs, when the .php page is accessed and the Flash loads, the .mov will not load.URL...
I'm searched and searched and tested this, but I can't seem to get a simple scroll pane to work correctly. I have a bare-bones file, with dummy text here:[URL]..
Can someone download this and put the dummy text inside a scrollpane for me (using the ruler guidelines as a guide)? I'll even send you $10 via PayPal if you can get the text to look right inside the scrollpane...
I can't believe I have to resort to this, but I'm about to pull my hair out,
I've got 2 AS3 files going here, the document file "Main" and a "Fence" file..[code]For some reason the ping comes up, but the pong doesn't, it's starting to bug me now that the "onFenceAdded" wont even work, what have I missed? Is there some way to check if Flash is compiling correctly? I often find these weird problems where I'm sure I've done it all correct, but when I try to compile and run a swf it wont work!