ActionScript 3.0 :: Passing A Function As Data In A ComboBox And Slow Export
Nov 14, 2009
I want a comboBox that will allow the user to select what colour palette they want the application to have. I am using a comboBox to do this and want to have a function with arguments as the data in the comboBox item. I've managed to do it and pass arguments but these are running when the comboBox is set up. I only want the function to run when the user presses the submit button. How can I prevent the function from running on set up? Here is my code:
Plus, my movie is taking ages to submit, even though there is nothing on the stage. There are components in the library though. Would this cause it to take about 5 seconds to export to swf?
I want a comboBox that will allow the user to select what colour palette they want the application to have.I am using a comboBox to do this and want to have a function with arguments as the data in the comboBox item.I've managed to do it and pass arguments but these are running when the comboBox is set up. I only want the function to run when the user presses the submit button. How can I prevent the function from running on set up?Here is my code:
I want a comboBox that will allow the user to select what colour palette they want the application to have.I am using a comboBox to do this and want to have a function with arguments as the data in the comboBox item.I've managed to do it and pass arguments but these are running when the comboBox is set up.I only want the function to run when the user presses the submit button. How can I prevent the function from running on set up?Here is my code:
in a for loop i am passing 60 movieclips to the stage at runtime.now after that I trigger a function that fires every second.But inside that timer function, i can not trace what items are in my array in other words, every second i want to trigger a movieclip inside the array.(this will later destroy a random ipad or iphone processor :p)
heres my code:
Code: var circle_array:Array; var seconds_counter:uint = 0; var myTimer:Timer = new Timer(1000);
I'm trying to take a variable from a php page and send it to flash to then use in a link.I'm having problems just selecting ONE variable from the print function, the code will help explain:
It collects all the data fine but it does not print it out correctly, it prints out all the variables in the php in one link. For example: If i click the facebook icon, i will be taken to http:[url].... This also happens with the other icons (Youtube and Twitter).
Im trying to use dynamic SQL tables on my PHP server so I need to pass the table name to the PHP script. I don't understand why the Data Management system that sets up CRUD won't allow this extra parameter. It says it can only have one input: item. I can get all records, but when I try to create, update, or delete I get an error.
Or is there another way I can pass the tablename variable to the php file before I call any functions?
We have implemented a Flash photo slideshow on our site and it works just fine for most of our users. Whenever the xml.load(success) returns false I have the Flash email me a debug report. For the life of me I can not find a common thread between all of these people having problems with the Flash. I don't think it's a cross-domain issue because it works for most people, and I have the crossdomain.xml files where they should be.
it's quite hard to explain, especially cause i'm not a native english speaker.. i've uploaded my >fla< and the >swf< as wellplease have a look at it. when handle 1 is being dragged, handle 2 swings elastically on one axis around handle 1.in case of dragging handle 1 (upper) everything is just perfect. but when i drag handle 2 (lower), the movement of the line, which connects the two handles all the time, is slower than the movement of handle 1.why? both handles have got (basically) the same code.
I am doing some animation using setInterval. It runs ok on all browser(firefox, sarfari, and opera..), but not in IE8. I just check ie7, it works fine also.
Just like in title i know how to load(import) data from xml to datagrid, but don't know how to save(export) it into another xml, i know i will have to use php file to save it, but how to export.
I'm creating a Flash game that will be placed in a Sharepoint page. Is there a way to export data from the Flash game (ex: the user's score) to a different Sharepoint page? I'd like to display the high scores of different players in Sharepoint. Note: I'm using ActionScript 2.0 So here is the sequence of events... Player completes Flash game embedded in a Sharepoint page Flash exports player's score to Sharepoint database Second Sharepoint page displays top ten player scores from database.
I need to pass a variable to a function inside a function. However this parameter (i) seems not to be passed (to function ...onRollOver). This is required to attach a textfield to a movieclip (reading the adress and showing it as a tooltip).
ActionScript Code: for (i=0; i<array_BE_ElecCities.length; i++) { var attachElecCity = mc_map.mc_places.attachMovie("Plant",
Does the onEnterFrame Function() slow down the computer as opposed to other methods?
[Code]...
Just not sure whether I should use onEnterFrame so they are always accessable or to just call the function when I need it at that point in time. Big question is, is there much difference between the two methods?
I want to export the data kept in an actionscript array as a text/CSV file. I have searched and found a few that did datagrid to excel exports but they are complicated and confusing
Do flash 3D display engines such as Papervision allow data to be exported from the swf to a php back end and vice versa (PHP into model)? Does Unity allow for this?
If I was to build a simple 'change the colour of the model' application with a UI in a 3D package such as Papervision, could I then export the user choices to php or perhaps a javascript intermediary?
I am making a flash survey using AS3. All of the input data is stored in variables. At the end of the variables i want to export all of the variables to a Excel file. Is that possible? If not than how can i export the data? I have never exported data in flash so i have no idea what to do
I'm doing an order form, where the user can input his contact information and then choose a product in a dropdown menu.Untill now, I just gave the dynamic text fields a variable and used this code:
on (release) { form.loadVariables(order.php, POST); }
It is populated with Countries in the labels and email addresses in the data.I want the data (email adresses) to go to the php file, not the labels. In the php file it would use the addresses to mail the form to.I can trace the data, but cannot get it into the php file.
AS code: country_txt.addItem({label:"CHOOSE YOUR COUNTRY"}); country_txt.addItem({data:"ega-maui@hawaiiantel.net", label:"Headquarters/International"});
I am really new to php. I have an AS3 file which records user inputted data and stores them in variables. The only thing i know how to do is how to email those variables using .php. Well I want to be able to export the data to a csv file from the flash file and later want to import it back to the flash file.
if it's possible to make text wrap in the combobox component, and if so, how? I've searched this and other forums/sites but have had no luck with an answer either way. I'd like to combobox to stay a set width and therefore wrap text lines that are longer than the width. Currently it's just cutting off the text.
I am trying to populate a datagrid based on a value selected from a combobox. The data comes from a xml file, which looks something like this,[code]The user can list data in the datagrid based on either "media" and "region." For example, the user should be able to choose "Europe" from the combobox and list "only" media having "Europe" in the region tags. In this case, if the user chooses "Europe" from the Combobox only one listing (rammstein) will be seen in the Datagrid.However, it doesn't work. I get a blank datagrid. Loading data into the datagrid is not the problem, because if I just use a straight For loop with no conditions I fill the datagrid no problem. The problem comes up when I try to control what data get listed in the datagrid based on selected value in the combobox.[code]
I have combobox in frame 2. how can I receive the selected "string"data when I go in frame 3? I thing it can't do that. Must I store data in class and I read then when I go in frame 3.
I have combobox in frame 2. how can I receive the selected "string"data when I go in frame 3? I thing it can't do that. Must I store data in class and I read then when I go in frame 3.