ActionScript 3.0 :: Create An Array Starting Form 0 To 9437184?
Jan 10, 2009how can i create an array starting form 0 to 9437184 ?and how can i call them position by positionfor seeking to flv
View 5 Replieshow can i create an array starting form 0 to 9437184 ?and how can i call them position by positionfor seeking to flv
View 5 Repliesam sending one user object from java to flex using remote object,now i want to get each item from that array to display in text boxes...how can i do this ?
userInfo=event.result as Array;
<mx:FormItem label="FirstName" fontWeight="bold" width="325" required="true">[code].....
I've defined an array and want all the objects to start playing their animations when the project opens. Here's the relevant code (with only the first object playing the animation so far):
ActionScript Code:
var coinArray:Array = [coin1, coin2]; //an array which contains all of the coins
var numCoinArray:int = coinArray.length; //how many objects are in the coinArray
function init() //Loads assets to the stage and starts animations
{for(var i:int = 0; i< numCoinArray; i++)//set i to 0; if i is < numLevelArray perform code below; +1 to i {
var o:DisplayObject = coinArray[i]; //gets the object at index i,
o.gotoAndPlay(1); //perform operation on that object
}}
The error I'm getting at the moment is the line "o.gotoAndPlay(1)" where I get this error in the output section:
"Call to a possibly undefined method gotoAndPlay through a reference with static type flash.display: DisplayObject."
I'm presuming that the code line above "var o: DisplayObject = coinArray[i];" is the problem and should be changing DisplayObject to something else, I'm just not sure what?
Does anybody know how i can create a stacking list component (just like photoshop) where the first row starts at the bottom and the second on above the bottom and so on. Normally the list component works like this.
[Code]...
I am wondering if it is possible to create a contact form in AS3 without using PHP? The reason is because I am planning to create a co-op portfolio and host it on my university file space. The problem is that the university server doesn't support PHP, or other server side scripts. Is this still possible?
View 2 RepliesI am wondering if it is possible to create a contact form in AS3 without using PHP? The reason is because I am planning to create a co-op portfolio and host it on my university file space. The problem is that the university server doesn't support PHP, or other server side scripts. Is this still possible?
View 3 RepliesI'm trying to create a submit form in flash that will post the form data to my php script. How do I make a button post
View 1 RepliesIn my application Flash with AS2,i want to create a form (Name, email, tél,...) like this : [URL]That will be shown after a click on a button; this form should be in light box.I can do that with motion tween and transparency and... (Baby work), that is not good form me.is there a solution with action script 2, and the form called from another .swf ?
View 1 RepliesI want to create a form consisting of checkboxes that is based on data stored in a database and accessed via a RESTful web service in JSON format. Furthermore, some of these checkboxes will need to be pre-checked, based on other data stored and accessed in the manner described above. From what I understand I can use a repeater to create the checkboxes, but I'm unsure about the following and
View 1 RepliesHow can I create mailform (PHP)?
View 1 RepliesI'm trying to get this code to work dynamically:
ActionScript Code:
var imageArray:Array = String(imageArray0).split(",");
filePre.preload(imageArray);
I have a variable, _global.buildingNumber that I want to show up after imageArray so Flash loads the desired array.
This doesn't work:
ActionScript Code:
var imageArray:Array = String(imageArray+_global.buildingNumber).split(",");
filePre.preload(imageArray);
I'm trying to create a very simple flash:An input text field, in which the viewer is to enter a simple word (in this case, let's say the word is "earth.") Beneath this text field is a button.When the button is clicked, flash should detect whether the user entered the word "earth"- if they entered "earth", they get sent to frame 2 of this movie. If they typed something else, then they get sent to frame 3.Now, this should be pretty simple, but every attempt I've made has failed, and every search for a simple tutorial/example of how to compose the script meets with no results. Currently, this is the script I put on the button (The input text field has been given the instance name of "answer_1"):[code]
View 2 RepliesHow to create a contact form within my flash that emails me when someone fills out the forms, including a very good step by step at VTC. What I have found is that most of these tutorials start with the assumption that you're creating the contact form on a blank flash canvas, which is reality, is not always the case. So while I am sometimes able to get the forms to work if I do it on a brand new Flash movie, the moment I try to recreate the form within my current flash file, it stops working. I have mostly tried to recreate the contact form as a seperate movie within my flash file on it's own layer and have tried placing the Submit button within the contact form movie and also outside of it - neither works of course. Using CS3 btw.
Here's the info:
So according the image, my contact form is called "mcForm" which is a movie clip within the larger .fla on its own layer. The actions that are associated with the 1st frame in the "actions" layer above are as the following:
Here is the code itself repasted:
stop();
var gatherForm:LoadVars = new LoadVars();
//Send form function
function sendForm():Void{
gatherForm.receipient = "my@email.com";
[Code] .....
Is it possible to create a button in flash and use it in a php form? or even an html form? if yes, how???
View 2 RepliesAs you will see I do not have too much idea about flash. My question is about "builder forms" for flash. I think that a builder form is a form where people/customers fill it up and then there would be a new page in my site according to her/his information.
Example: When you want to sell something on ebay, you will choose different options: name, prices, pictures, categories, etc. Then, according to this on ebay there will be displayed that I would like to do the same, however, I would like to change a flash menu and htm with the option from my form.
I'm basically trying to create a subscription form where the user types in their email address in a text field which logs the information and pulls up a URL when the submit button is clicked.Right now,I only know how to create a button which links to a URL. I'd like it a little more interactive. How can I do this?
View 5 RepliesI am using one of the Adobe cookbooks to create an email form for my flash website. I am SO close to getting this rightI used the AS3 code below as well as the PHP code below in order to create the email form. Everything seems to be working fine, that is until I try to send an email using the form. When I input all of the text into the form, I get the actionscript default warning I wrote that states "Oh no! Something is wrong! Try again..." Hence the email will not send. What could be wrong with the script?Or does it matter where I file the PHP file, my swf file, html file, and my fla file? I tried several combinations of filing everything together, seperate,
ACTIONSCRIPT CODE USED:
stop();
/************************************* Buttons
[code].....
I'm trying to create a form with a drop down option that I found, but I seem to be having some trouble. I think i'm missing some key info on this this is what I have:
[Code]...
I'm trying to create a form box in flash, where I could create a list of states -- if a user types in one of the states on the list, he or she will see information about that state, if he or she types in a state or anything that isn't on the list -- he or she would see a 'information coming soon' default.
View 6 RepliesHow can I create a mail form in Flash ? I know, it's been asked a million times before but this one's different. You see the server I'm on has UNIX servers, and don't support anything. Real crap, not even PHP, AS, CGI, ... nothing. So now what do I do to create a mail form without PHP, AS, Perl, CGI, ... ? I have no idea at all, all those forms use PHP.
View 14 Repliesi am trying to create a simple mail form in flash to be sent through php.
the actionscipt:
Code:
on (release) {
getURL("http://www.dw20.co.uk/pages/contact_form.php", """", "POST");
}
the php:
[Code]....
Actionscript Code:
<root><node><child><grandChild></grandChild></child></node></root>
Actionscript Code:
Arr[0]=rootArr[0][0]=nodeArr[0][0][0]=childArr[0][0][0][0]=grandChild
Help needed to create Multidimensional Array from Recursive XML.
All I need create Array inside an Array dynamically from an unknown XML tree.
Is it possible to, if you have an array of class names like ActionScript Code: var city01names:Array = ["pic_01", "pic_02", "pic_03" ...] make a new array which would read these names, instantiate them, and push them into a new array containing the instances of all these pictures, which I could then use for a slideshow?
[Code]...
I am doing a project that deals with pathfinding and other AI algorithms. I am creating a city for the AI to navigate through and I wanted to no if I add all the symbols to the stage before runtime and set it up is there a way I can access all of these symbols either in an array that the stage holds. I would like to have the AI avoid them and I just figured it would save me some time if I could do it this way instead of coding the placement of 50+ items.
View 1 Repliesi got a array which stores some elements, in string form, and these elements actually represent the name of the instances on the stage. now i want to trigger the instance to reset it's alpha value..
eg: i got an array["A"."B"."C"];Instances name available: A,B,C,D....Znow how i should do to make the instance A to got triggered?? i call them by using on button. i try some like _root.name.array[0]=_alpha=0; but not success.
I'm trying to create a contact form, using a small PHP script.The PHP is working fine, the problem is in the AS.For some reason, I can't get the ActionScript to gather the information from all the fields in the contact form.For the last two fields, I get the error "Implicit coercion of a value of type String to an unrelated type Number." Here's the relevant part of the code:
var email_data:String = "name=" + name_txt.text
+ "&email=" + email_txt.text
+ "&place=" + place_txt.text[code]....
All of the fields exist as input text fields on the Stage - anyone have an idea why there's a problem with the time_txt and message_txt fields?
I have a need to create and publish a multi-frame form. It will use mostly Dynamic text boxes and checkboxes. I have all of the instances named but now need a starting point to get it to POST to a PHP script.
View 3 RepliesHow can I create a dynamic object from a string? Here is my current code with incorrect results:
[Code]...
I would like the previous code to output the following:
[Code]...
how to create just tabs in flash but I can't find none which explains how to create associated subpanels and switching between them.
View 1 RepliesActionScript Code:
// set default text of boxes - currently blank
name_txt.text = email_txt.text = subject_txt.text = message_txt.text = " ";
[Code].....
I believe my problem lies within the email_data var. And I believe the problem is the "&" that has to be there. If I take it out I dont receive the information placed inside the corresponding input text fields.