ActionScript 3.0 :: Collecting User Data?

Aug 24, 2010

I've got to create a form with 2 fields (Name, email adress) that users can type their information into, but i then need to collect the data and store it somewhere (so i would then have a file showing everyone's names and email addresses that have been entered).I have quite a good knowledge of flash front end development but don't know alot about hooking stuff up to xml/php whatever

View 1 Replies


Similar Posts:


Flash - Collecting High-volume Video Viewing Data?

Apr 5, 2010

I want to add tracking to our Flash-based media player so that we can provide analytics that show what sections of videos are being watched (at the moment, we just register a view when a video starts playing)

For example, if a viewer watches the first 30 seconds of a video and then clicks away to something else, we want the data to reflect that. Likewise, if someone watches the first 10 seconds, then scrubs the timeline to the last minute of the video and watches that, we want to register viewing on the parts watched and not the middle section.

My first thought was to collect up the viewing data in the player and send it all to the server at the end of a viewing session. Unfortunately, Flash does not seem to have an event that you can hook into when a viewer clicks away from the page the movie is on (probably a good thing - it would be open to abuse)

So, it looks like we're going to have to make regular requests to the server as the video is playing. This is obviously going to lead to a high volume of requests when there are large numbers of simultaneous viewers.

The simple approach of dumping all these 'heartbeat' events from clients to a database feels like it will quickly become unmanageable so I'm wondering whether I should be taking an approach where viewing sessions are cached in memory and flushed to database when they become inactive (based on a timeout). That way, the data could be stored as time spans rather than individual heartbeats.

View 2 Replies

Php :: Make Some App In Flash - Receiving Some Data From User And Storing In Data Base?

Jan 18, 2012

i am looking for some kind of library which does CRUD easily using PHP and MYSQL.My goal is to make some app in flash AS3.0 , where i will be receiving some data from user and storing in data base , and perform CRUD opertaions. I dont want to be so much involved in writing php and sl query.My scenario is:

Data types : [ like user_profile data, etc]

add under data types 1 to many fields with various types..

Database tables and realtions etc should be done by my DREAM library, then user when select a Dtat Type, he is presented with related fields to fill up data.

I will be using Flash AS3.0 ( Builder or IDE ) to perform .If only i can find some php library i think AMFPHP can connect flash with php

View 2 Replies

Actionscript 3 :: Collecting And Identifying Functions Within An Array?

Dec 28, 2011

I want to do something where I collect functions to be invoked later when a certain condition is met. E.g.

function doSomething(someArg:Object):void {
if (conditionIsFalse){
operationsToDoWhenConditionIsTrue.push(function(){
doSomething(someArg);

[Code]...

Basically if doSomething is called twice, I only want operationsToDoWhenConditionIsTrue to hold the most recent invocation. Obviously since the invocations are wrapped in function(){} all the functions are the same. Is there any way I can accomplish what I want?

View 1 Replies

ActionScript 3.0 :: Movieclip = Null; Garbage Collecting?

Jul 26, 2010

after strolling through the internet looking for garbage collecting of dynamic movieclips i conceded and justified to myself i should make a forum post.I'm making a small game, with many many explosions. Explosions are random swfs which i cache before using them. Problem is that although i did everything to make them ready for garbage collecting, they seem to overflow the memory.my code:

Code:
package
{
import flash.display.MovieClip;[code]....

the last line, 'e.target.parent=null ', is the way i know how to make movieclips ready for garbage collecting. But if i uncomment the line, I get this error:

Code:
ReferenceError: Error #1074: Illegal write to read-only property parent on example03_fla.MainTimeline.
at Explosions/::doneHandler()
at flash.events::EventDispatcher/

example03_fla is the timeline of the supposed movieclip i'm trying to delete, not the document fla.

View 9 Replies

ActionScript 3.0 :: Trace Object References For Garbage Collecting?

Oct 12, 2009

I'm trying to get my head around optimising AS3 code and clearing things out for garbage collection.

I understand that each time an item is referred to in the code it has its reference count increased by one, so I was wondering if there is a trace option I can use to see how many references each of my objects has?

I can then see where things are getting left behind (if they are) and where I can make optimise better.

I think it would help me work out several issues if I was able to do this

View 1 Replies

ActionScript 3.0 :: Garbage Collecting - Make Sure There Are No Memory Leaks?

Feb 9, 2010

What's necessary to do when removing an object to make sure there are no memory leaks? Do you have to remove all children? Or just remove all event listeners? Or both?

View 1 Replies

ActionScript 3.0 :: TweenLite CPU Optimization - Just Stacking And Never Garbage Collecting?

May 12, 2011

I'm currently working on a game where every "Step" - defined by a global time modifier - everything on screen calculates where it's next position will be, then uses tweenlite to animate itself to that location. This program runs for about 10 seconds before it eats 100% of my CPU. iMac i5 quad core, so it's not the hardware.

The problem is specifically in the following snippet, and the peculiar thing is if I teleport everything to it's next position (i.e. don't tween it there) the CPU is stable at 6% (where flash IDE consumes 4%). Does anyone know why these tweens are just stacking and stacking and never garbage collecting? (This is what I assume the problem is, as I can't find another explanation as to why the problem only exists when i TWEEN to the next location)

[Code]...

View 3 Replies

ActionScript 3.0 :: Triangle Maths - Collecting Stars That Appear At Random Moments?

Jan 13, 2012

i want to finish it in the end! i have this code which generated 20 stars and an ai player collects all of them (going for the one which is closest to it). This code was courtesy of -lauri... the code was

ActionScript Code:
import flash.events.Event;
import flash.display.MovieClip;[code].........

what i have currently is a player who moves around with the arrow keys collecting stars which appear at random moments... i wanted to make it so that the ai can also collect these stars and i am pretty sure that the code for that would be linked to what.

View 6 Replies

ActionScript 2.0 :: Flash - Collect Data From The User And PHP To Mail The Data In A Confirmation E-mail,it's Not Working?

Jan 23, 2004

I made this small shop that uses Flash to collect data from the user (and what they want to buy) and PHP to mail the data in a confirmation e-mail. it's not working

View 1 Replies

ActionScript 2.0 :: Save The User Data?

Mar 21, 2012

I am trying to save user data and I keep on coming up with the same problem. The problem code is highlighted red in the ITEM.as file. The problem is that when I update the variable it updates the savefile also, when it should not! I do not have a clue what is wrong because I am putting the traces for the savefile in one right after the other so the code can't be executing elsewhere right?

SAVE.as

ActionScript Code:
class Save_mc extends MovieClip {
var nSaveAnim:Number = 0;
function onEnterFrame() {

[code]....

View 0 Replies

ActionScript 3.0 :: Allows The User To Go Through XML Data Thats Put In A XML File?

Jun 26, 2011

I want to make a small application that allows the user to go through XML data thats put in a XML file. To make it more organized and so I can use the code later I also want to use classes and the MVC method.

All I want to have the user interact with is:
A textbox
A back button
A forward button

The app should load up the XML file in an array and display the first line in the textbox, and then the user can go through each line with the forward/back buttons.

View 1 Replies

Data Integration :: Saving User Input To Xml

May 22, 2007

I'm sorry this is a question from a server ignoramus, I've previously captured user input using a combination of cfml and text files. That was way back in 2002 and using AS 1.0. I'm now working in an environment where the server guy won't put any scripts on, and I mean none, no PHP, no ASP, no CFML, nothing. Would anyone know if there is a way of capturing user input without using a script, please? This prolly shows a really basic lack of understanding of how servers work but I'm a bit desperate. I know the Flash Learning Interactions can work with SCORM and pop results into LMSs that use SCORM and our LMS does use SCORM, but it seems to only be within the learning interactions and I don't know where to start to tailor this for the input I need to capture.

View 2 Replies

ActionScript 2.0 :: Mp3 Player That Generates User Data?

Sep 15, 2010

i want to make my mp3 player generate some sort of a xml/txt file or e-mail that will store which song has been downloaded and the number of times it has been played and add date stamp to it so i can view it when required. i think parts of this can be achieved in a simillar way as a flash ''contact form''.how to start this.links and examples would do very well. I am not sure if most of this can be possible but i would like to try it.below is the action script i have on my player...

var song_folder:String = "songs/";
var song_list:Array = new Array();
var code_list:Array = new Array();[code]....

all i want is when the download btn is pressed, it has to generate the necessary data.

View 0 Replies

ActionScript 3.0 :: Capturing Data From User Input?

Jan 23, 2011

I'm sure it's easy to do, but I just cannot figure it out. I've created a timer but want to let the user set default values to start at so they don't have to modify the start time each time the program starts.I was able to create a text box but it is un-editable in the actual program. It displays '00' nicely but it's useless. I haven't even gotten to the point where the data is pulled and stored.

ActionScript Code:
var timerHrs1:TextField = new TextField();
timerHrs1.type = TextFieldType.INPUT;

[code]......

View 3 Replies

ActionScript 3.0 :: Data Validation Submitted By User

May 27, 2011

We are using Hibernate, BlazeDS and Flash Builder 4.0 for Application development. We have a problem in Data validation submitted by User. We have a Employee table. We need to enter the EmployeeId and Name in the form. We need to have two levels of validation. One is to check the user entered proper text which can done by validator components. The Second one is to check whether the Entered Id is already existing or not.

After checking the validation we will insert in the Database Table. For the second one, We have created a method in Hibernate and referring through BlazeDS. Now our problem is, In our Action Script we are passing the entered data into the Method and getting the return value. Depending on this we are inserting. The subsequent code is getting executing before getting the return value. Our code as follows:

Code:
protected function empIdCheckResult_resultHandler(event:ResultEvent):void {
IdCheck.text = empIdCheckResult.lastResult;
} btnSubmitClick() {
empIdCheckResult.token = opteDestination.empIdCheck(dgEmpId.text);
idCheck.text = empIdCheckResult.lastResult; /* This step taking time, setting the Variable after some time and the Script executing next step in the code*/
if(IdCheck.text != "0") {
//Some Function
} else {
// Some function
}}

View 1 Replies

ActionScript 3.0 :: SharedObject Data--> Where Is It On The User's Harddrive

Oct 26, 2010

I've looked on Adobe's Flash Player guide and in the official docs, but it's not mentioned. I'm creating a game that saves your progress to the local drive using SharedObjects and want to reassure users about what's going on

View 3 Replies

Data Integration :: Create A Tree Layout That A User Can Navigate?

May 12, 2009

I have been given the task at work to create a interactive tree. A little like a family tree, but instead of people it will be branches (think of them as buildings). I've spent a day or so looking and finding out how to get the data from my SQL database in a format that flash can read it etc. Anyhow the problem is I don't really know where to start with the graphical aspect of it...

Each branch can have more than one child and i want the user to be able to scroll through the history of that branch, seeing it's parent branch and also it's child branches, each branch will have a certain amount of information to show. So it's almost as if i need to create a branch class and then use this and load all the data into it etc.

Should i create a new layer for each branch? Then when the user clicks a down button i just take them to a new layer? Do i create the whole thing on one layer and have navigation buttons so the user can scroll around the window and see all the other branches?

It would be nice if i could draw the damn thing at run time, and the user almost walks along lines from one branch to another, and has the option which path to take if one branch has more than one child etc.

View 3 Replies

Media Server :: Storing Data For Upload When User Leaves?

May 30, 2009

I am trying to work out if FMS is the solution I am looking for. I am trying to create a system that will store data, and upload it to a database when the user leaves the page. I thought the best way to achieve this would be to send a data object to the media server, check on an interval to see if the user is still active and then somehow upload the data when their "session" times out.

View 1 Replies

ActionScript 3.0 :: Use The User Input Data As Part Of The Regular Expression?

Jul 6, 2011

This time want to know is it possible to use the user input string as part of reqular expression for instant search... I am aiming to add search feature in my game.. Where i m going to have several items available in list... what i am planning is to have a text box from which i will accept user input and perform instant search am still a noob in AS3... so whether using RegExp meet my goal ?

View 3 Replies

Flash :: Will Shared Object Data Disappear When The User Updates The App

Nov 30, 2011

I'm using Flash and AS3 to write an app for iOS and for Android and I'm saving XML-data using shared objects. Now it struck me that when I supply an update to the app store and the user updates the app, will the shared objects remain intact or will they be replaced? I'd very much like them to remain as they were.

View 1 Replies

ActionScript 3.0 :: Login And Register Functions - Saving User Data

Oct 21, 2009

I have a problem with these functions when I register the first user it works just fine but when I register the second the first user is deleted. I'm saving my data inside the swf because I couldn't write the functions in SQL>

This is my register function
ActionScript Code:
function registerplayer(e:MouseEvent){
savedata.rpname = rpn.text;
var registername = [savedata.rpname+"N"];
savedata.registername = "name";
trace(registername);
[Code] .....

View 0 Replies

Actionscript 2.0 :: Datefield / Calendar / User Cannot Select Previous Data

Aug 27, 2009

I use a datefield on a form for user to pick an appointment date.All is working fine but I would like to make users cannot select previous date (ie yesterday).

View 3 Replies

Data Integration :: Exchanging User Input Information With Aspx Server?

Jan 26, 2007

I've made a flash page with user input for email and comments. The thing is I am working with a aspx.net server. The programmer has written out a aspx coding for the server side. Now all i have to do is write a script in the input fields in flash to connect to the aspx server. The progammer said that I would have to create variables inside the flash program to call to the aspx page he created. I am faily new to aspx and have no clue to writing a script with variables.

View 2 Replies

Flex :: Store Some User-specific Data On Machine Such As A History Of His Entries?

Mar 31, 2010

I am deploying a desktop application using AIR, and I would like to store some user-specific data on the machine such as a history of his entries.

View 2 Replies

ActionScript 3.0 :: Flash - Save Data To Server When User Navigates New Page?

Sep 24, 2011

I have a Flash AS 3.0 swf-based browser game. It's hosted on my site and communicates with a MySQL database via PHP using Flash's URLVariables. Everything works fine. The problem is, I want to be able to save the player's game after he leaves the webpage or closes his browser. How is this usually handled?

Is there a reliable event that fires when a swf is terminated? Is so, what is it? If not, what's the solution? Should I simply save the player's data every x seconds? That seems like it will bog down my server. I could have 10,000 people playing and I don't want to save each of their games every x seconds.

View 2 Replies

ActionScript 2.0 :: Use "user Defined Templates" In Flash And Load Data From Xml In It Accordingly

Sep 25, 2009

Here is the basic structure of my xml code:

[Code]....

Now what i want to do is,

1. create some templates in Flash CS3 <!--i want to learn -->

2. use actionscript 2.0 for coding

3. read nodes from xml <!-- i know how to do this -->

a. read the template type of the screen <!-- i know how to do this -->

b. for a particular screen on flash, load the template (made in 1) onto stage <!--i want to learn -->

c. read data from xml file <!-- i know how to do this -->

d. load the data onto template in flash. <!--i want to learn -->

I want to do this because i think re-using will make my application size smaller.
Can I do this?

View 2 Replies

ActionScript 3.0 :: Detecting Browser Close Event And Send Data To Database / When User Closes Browser Window

May 24, 2010

Trying to detect a browser close event and send some data to the database when the user closes the browser window...but can't seem to get it to work.[code]

View 6 Replies

ActionScript 3.0 :: User To User File Transfer Via FMS Or RED5 In AIR Application?

Jun 25, 2009

It is possible to make file transfer from air application via server?I think need to create like byte array streaming or somethink like this from sender and write the destination file on receiver user pc.

View 2 Replies

Flash - Webcam Service For A Website: User To User Directly?

Mar 14, 2010

I wonder wether on a website like chatroulette for example, the streaming video is going directly from user to user or wether it is going through a server.

In other words I wonder wether it is possible to offer a webcam service on a website, so that the streaming video goes directly from user to user, without overloading the system.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved