ActionScript 2.0 :: Loading Database Stuff Through PHP / Flash
Feb 10, 2005
i have a database with two tables. one table holds the following:[code]i have a php script that goes as follows (i'm ignoring the description fields for now):[code]now i'm not 100% sure this script is correct, so if anyone sees problems in it, please do let me know. i know that it needs some additions to pull the linking table (status) to display the status_id, but i have no clue how to write that as im not familiar with php, i just took this script from a user on this forum (i apologize for forgetting your name) and edited it.
anyway, i want to be able to pull out all those fields and load them up in flash so i can use them in the scripts over there.i have a grasp on the LoadVars(); a bit but not sure how to pull all this out and if its correct so that i can use it in flash. the fields im most worried about using is the number field in the lots table and the status_id (in both i guess since its a linking table).
ok, i have a database with two tables. one table holds the following:table 1 name: lotscolumns: lot_id, number, description, status_idtable 2 name: statusi have a php script that goes as follows (i'm ignoring the description fields for now):
Have a little homepage, where I load some of the stuff from external swf's. But I have some buttons which is gonna be on top of the external load content, but when I export it the buttons doesn't appear anymore. Underneath I have some AS which I use to load the the external content, and to control my buttons.
stage.addEventListener(MouseEvent.CLICK, clickHandler_contact); function clickHandler_contact(event:MouseEvent):void{ if (event.target.name!=null){ switch(event.target.name) { case "contact_back_btn": gotoAndStop("index"); [Code] .....
on Flash MX 2004 having problems with loading external jpegs and stuff. I got a tutorial from here and loading from a web address on it is okay, but I can't get my one to load from my hard drive because there is always an error with the path. I know it'll ultimately be on line anyway but I want to know what I'm doing wrong.[code] What's the correct format for putting in a file path?
Just wondering. Is it possible to load data from a external txt file in AS2? in particular using the data loaded as a number variable to use for say a Maximum number in a timer counter? for example, say the text file has the variable&numOfPhotos=3how can you make it so flash AS2 can read the variable and convert the number (which I guess is a string) into a Number variable, ready for the swf to use in number related activities?
I've used this script: [AS] fscommand("allowscale", "false"); _root.main.attachMovie("boxContect", "boxContect", 1) bar.useHandCursor = false; space = 20; friction = 0.9; speed = 4; [Code] .... If I try to load some thing dynamically into the main MovieClip, it works but the scrollbar doesn't works properly, it doesn't noticed that the height from main has changed.
What I am trying to do is bring data in from (mysql)PHP into flash 8 (actionscript 2.0). I got part of this to work. I bring in the text and diplays just fine. So the next step was, To set the font size from anothere php loadvars (code below). Flash will not pick up that part of the code, were I set the font size.
Here is the code: onClipEvent (load) { info4 = new LoadVars() lv = new LoadVars();
I have a page display people's name and when you click on a name information such as age, height, and weight are displayed. In Flash, can you create the same thing? I know with displaying data from a database you have to have dynamic text boxes set up to load the info but can you have it set up so you can load a name from a database and THEN click that name to have it load the other info?
for my project im trying to get output data from xml into flash...with images & url with description on top of image, load like 10 images with ur and if there is more give me options with numbers.
I am trying to create a video that loads the videos stred in a directory, depenant on the users id etc.To do this, I am using php. However, I cannot then get the php to convert to xml within the actionscript:[code]It works with a normal xml file just not php
So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:
i want to intertwine php, MySql and flash. so i can make a flash movie display text that is in the sql database and a php script to change the database, php > sql = i can do but sql > flash = i can't do..i want it so the sql data show's in a text box in the flash movie...
Is it possible to create a database driven website using these alone? Or do i need to learn any other technology? If i do then what should i learn? I know j2se for the desktop and oracle SQL/MySQL i finally got the feeling that i need to learn PHP anyway along with css and javascript. So it is fine. Also another query. Which CMS should i consider? Wordpress or Joomla?
I have a database on a server and I transfer the data from it to a web site. So I need to build a flash grid on this site and to load the data on it. But the problem is that I do not know how to do it. So my question is how to build a dynamic flash grid wich is fill with data from a database? Is there a way to do it with action script only or I must do it another way?
I'm trying to load the variables from a database into my flash file but I'm unsure what to use. I know for XML it's
var myXML:XML; myXML= new XML(e.target.data);
but i'm not sure what the type is if it is coming from a database? I sent it the database via php and need to receive it back into flash. Even a reference so I can go look, I'm just not sure what class to begin with.
initially when i want to load data from database, it will output all the elements from a tablenow i create a timer to make sure it will query from the database every interval to keep track of the updated content, however, the problem comes in...when i delete a data from there, the data was somehow 'cached' into flash, meaning, it wasn't updated at all.weird thing is, if i port the data over to xml and update the file, the flash would show the updated data correctly
hey people wondering if there is a way to use AS3 to save and load to a database.
Specifically I have created a flash program for a teacher that runs tests for her students. When a student loads up the .swf they are prompted for their name. Ideally we would like to be able to save the progress of a student after he/she has completed a test and then use that data later. Is there a way to save data like this and call upon it at a later time?
I used the example on this site to load movies. I am using flash mx but I need to save it as flash 5. on (release) { set("f_movie", eval("movie" add x)); loadMovie(f_movie, "container"); } I worked out how to load them dynamically.. form the database. How do I load it automatically without pressing a button.
I know how to do stuff in flash. Ok, so here's what I want to know..on this guessing game, I want the person to enter in their 1 - 3 digit guess, the the number they need to guess is 577 (later I want to make this random whenever they go to play it). If they guess under 577, I have a box to say their guess is too low. If they guess over 577, it says their guess is too high. However, I am not sure how to make it so that what they put in the text box, it takes it as the new variable. I know this may sound confusing, but here is the .fla file.URL...
I'm writing a Flash game for a class that is supposed to test elementary kids' math skills. After each activity is completed, Flash sends the results to our database (e.g., that 8/10 math problems were answered correctly). If the user is in the middle of an activity and hits our Logout button, we'll send what results they had to the database anyway. But if the user closes out of the browser in the middle of an activity, is there a way to quickly send stuff to the database before the swf dies?
how to code where it should move towards (that's easy), and I know somewhat how to use math stuff on flash. But when I tried to implement it on this, it doesn't work. See code:
I'm sure it's been discused before ..but I can't seem to be able to find it in the masses of photo gallery questions..So here it is;I want to load pictures/swf's etc into flash ..no problem.However, i want them to resize (proportionally) so they fit inside the movieclip holder.I'm ok with a solution where you have to state the size in XML, aslong as they fit in the movie clip.Code:
I'm working in Flash 5...I've made a random loading database of animations that's the first thing to load in my movie. My problem is that after the random images fade in, display, and then fade out I need the next movie clip to load. Right now I can't figure out how to get the second movie clip to load Following the random loading movie clips...all the other animations want to play at the same time the random movie clip plays.I used a modified version of the Kirupa random loading background...it's on the timeline as "Location" with the action scripting for the random load on that layer. Can anyone tell me how how get the second animation to play After the random loading clips play?[code]
This is a pain but Ok the On event stuff has errors but works. the main part that has me fustrated is this.[code]The bio works but the rest wont. EVEN the collect which I made go to the same fame as bio but it does nothing.
I am fairly new to Flash and I am creating a simple Flash login programme in Flash. If I type in the correct password or even if I type in the wrong password it always goes to frame 3 which is "Login Failed! Username or password was wrong". I have attached .fla file. Note I created in Macromedia Flash 8.