I used this video to teach me how to create a safe: [URL]The buttons work when I 'Enable Simple Buttons' (not the text input but the Down image shows) but when I export it, absolutely nothing works. The instance name of the text box is 'input_txt' and it is set to 'Dynamic Text' using the font 'Cambria Math'.Here is the ActionScript for one button:
I'm loading an image from an async database in every view of my app. I'm using a view transition in Pop/PushView to change between views.Problem: The image loads after the ViewTransition is complete, instead of before.
And the code:
private function NextView():void { selectStmt = new SQLStatement(); selectStmt.sqlConnection = conn;
Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairsI run into this problem frequently when handling MySQL queries inside of Flash. I can usually figure out the problem, but the amount of time it takes is incredible sometimes. Part of the problem is that I have a hard time pinpointing where the problem is. The reason for that is that as far as I know, there is no way to see the String being passed that is causing the problem. First, is there a way to see this String, and second, if not, how do you typically troubleshoot this error?
For more details: Normally, I am sending data via POST to a PHP script which runs a MySQL query and returns the results. For simplicity and ease of use on my end, I got in the habit of forming the queries in ActionScript and sending the query as a variable to the PHP script, so all the PHP script does is run it (I know its not the best practice). There are a number of reasons for getting the 2001 error. For instance this morning I encountered a 406 : Not Acceptable error every time I sent a query over POST that included a WHERE statement in it. SELECT * FROM table was fine. SELECT * FROM table WHERE userName=something was not (As a side note, I am still puzzled by this as in a different swf on the same server in a different folder, it is running the exact same queries in the exact same method using the exact same PHP code (in a different file) just fine. For now, I'll just stick with the probably better practice of forming the queries in the PHP rather than in the ActionScript). It was difficult to figure out even what the error was on the server since when I navigateToURL() instead of URLLoader.load() all the POST data gets sent as GET and its hard to piece apart if the problem has something to do with the fact that PHP isn't accessing the variable anymore or something else like a security restriction from certain queries to prevent cross-site scripting (which I assume was happening this time).
Looking for any help you might be able to give me with this one. Recently upgraded from Flash CS3 to Flash CS5 Pro. When I publish a movie produced exclusively with CS5, the resulting SWF will work everywhere but inside my company's highly restricted/locked down network. When I attempt to load the SWF in a browser from within the network, all I get is what appears to be the standard Flash preloader - the 5 little dots that crawl across the middle of the screen.
I've confirmed there's no IE version error, the machines have the newest version of Flash Player; the only difference is the network. What could be preventing the SWF from reaching the browser? Is there any esoteric publishing setting I can use in CS5 pro that I should try?
I am putting together an simple xml read and write swf for online usage and i need to show each "".xml filename loaded in the bombobox, when you select the name from a drop down combo box i intend in using this xml and populate the fields in my document and have it saved when i click the save button. right now i just need the function i cannot seem to master so far i have the xml loaded in the combobox and when i select any of the items from the combobox it will load the right xml file. so far so good. coz it shows up in my traces.
I'm working on some generative art animations using Flash ActionScript which appear much smoother at a frame rate of 72 FPS compared to 30 FPS or lower rates.On a Intel Pentium E2200 Dual CPU @ 2.20 Ghz, Flash Player hardly uses more than 9% during the animations at 72 FPS. The animations are meant to run for a quite short period of time (less than 10 seconds each).Is it safe to use this frame rate?
Since the dawn of time, man has wished for and invented ways to do enumerations in Flash AS3. There's been various problems with many attempts, such as the ability to use a constructor to create new types of the enum (insecure). I believe the following is type-safe at compile time, and safe from being able to create new instances of the enum class at runtime. The main issue surrounds the inability in AS3 to have a private constructor. In this example, the constructor can only succeed if passed the private static const variable ENFORCER, which is only visible inside of the class.
I've spend the last 6 months developping a Flash (CS4 / Flash v10) game. As I'm now ready to publish it online, I would like to ensure that my actionscript code is safe. Hence my questions are: - Is the CS4 built-in password protection safe? (I guess not given that my actionscript still needs to be executed hence has to be readable for the client) - What are the best options to further protect my code? (I guess obfuscation is the most common approach: which obfuscators are good?)
in my timeline i have two orbs transforming into arrows. it works, i watch it, then i'm like, ok, all good time to save. i save. exit/open, and come to find that my orbs were not transforming. i looked on the timeline and they are not set to transform, so i redid the shape tween, save,exit open and the same thing. so why won't my file save the shape tweens? i'm previewing it in cs5.
--edit--for some reason it works in the swf file, but not the fla file.
How to make (safe) administration with php and flash mx 2004? don't work MySQL on server!!! But is it safe to make administration with flash? Maybe someone know good sample fla?
If i have two or more input boxes to create a crossword puzzle, how can i make the cursor automatically jump to the second input box after the first input box is filled with a character?
i created an input text box that puts the users input into a global variable, but when i test it it gives me not only what i have typed in but all the html formatting for the font that my input text box has on it.I only want the text that i have typed in to go into the variable but the wackload of html is going in there too. ive tried a few different things, rewriting my code, recreating the text box, changing settings, dont know what im missing.
I'm trying to build a fahrenheit to celsius convertor in AS3. How can I test to see whether what is input into a text input box (flash component) is not a number? This isn't correct but you can get an idea of what i'm trying to do:
if (celsius_txt.text == NaN || fahrenheit_txt.text == NaN) { //do something; }
i have an one input text box, first i type text into it and press space bar at this it will become empty and ready to accept next input from starting position, i make the text box empty by
textbox.text = "";
but the cursor not set to initial position in text box it consider "" as "space" and cursor will display after one space only, i need that cursor again move to starting position..
Using AS3 to create a basic number guessing game but for some reason the input text field won't accept text input. I can't figure out which piece of code is causing the problem and it's driving me nuts considering it's from a tutorial.
This code corresponds to a quiz question where the correct answer is either blue or green. I get the #1009 error if I input "blue". The answer "green" seems to work ok. What's wrong with my code? Is there a better way to make is so more than one answer works? Something like "blue" or "green" or "otheranswer", etc..?
I got an input function in witch i set all the variable i want to display. To make it clean i would like to input any number of vars without having to change my input function to avoid the "Expecting more/less arguments". Then i would like to get any type of var (bool num int ....) in the input and then check their type, instead of declaring the first input var being exclusively a number for example. Is that possible and how, don't know if i was clear,
I am going nuts here. I've searched exhaustively, and cannot seem to find anyone else experiencing my issue, so it must be something elementary I am not grasping. I'm creating TextFields dynamically, for use as input boxes:
Code: function makeText(whatParent, whatText, whatFormat, input){ var thisTextField:TextField = new TextField();
I have an issue with font scaling of a dynamic text box.
Currently i have one input box named input_1 with a variable attached to it named "choc_1".
Also, i have a dynamic text box named dynamic_1 with variable "choc_1".
When the user types something on the input box then the dynamic box changes instantly and displays what the user has written.
auto scale-size the fonts to a smaller size if the user types many letters.
The input_1 box has a 13 character limit. My initial font size is 200, i want to scale down so when the user types 10 letters they fit the box and they don't go out of screen. I want to use one line, so wrap or multiline is not possible.
here's a code that i'm trying to fix but i can't get the dynamic box to change:
I have an issue with font scaling of a dynamic text box.
Currently i have one input box named input_1 with a variable attached to it named "choc_1".
Also, i have a dynamic text box named dynamic_1 with variable "choc_1".
When the user types something on the input box then the dynamic box changes instantly and displays what the user has written.
I've googled a lot, but i can't find a solution to auto scale-size the fonts to a smaller size if the user types many letters.
The input_1 box has a 13 character limit. My initial font size is 200, i want to scale down so when the user types 10 letters they fit the box and they don't go out of screen. I want to use one line, so wrap or multiline is not possible.
here's a code that i'm trying to fix but i can't get the dynamic box to change:
I'm trying to extend the text input that comes in flex to support an icon, just like mac os x search text input has a grey circle aligned to the right, the text input has a addChild method, but it didn't work for me.
the last of many problems, is that at the very end of the test, you're shown your score, and you have the option to type your name in a text box and click "save". Doing so will apply you score data (time elapsed, date, correct answers and percentage) along with the name you typed in, and output in a form, that you can save or print off, or whatever. The problem is, the input text box will not let you type in it. If you mouse over it, the mouse stays a pointer, you don't get the text tool. If you click on it, the cursor appears for a split second after you release the mouse button, but you cannot type anything in it.This is the actionscript for the output form:
Code: // function saveRecord(record:String, field:String, now:Object, score:Object):Void {