ActionScript 3.0 :: Passing Time Events To Java Object?

Jun 27, 2009

I am working on an flash application that requires that all user interaction are stored in a database. The application will have thousands of lessons and needs to keep track of how long each user views lessons and scenes with in the lessons.

I would like to come up with a good solution on how to accomplish this with out having to send a call to a serve side object every few seconds. I could store the data in an as3 object and pass it when the user finishes a scene or exits out of a scene. However this would not work when a user just closes the browser. Maybe I could tie in some JavaScript.

View 0 Replies


Similar Posts:


Java :: Why Are Events Typically Created At The Time Of Dispatch

Dec 16, 2010

It seems more efficient to store events on the dispatcher if they're never going to change. Isn't creating them costly? Is there some kind of information I'm losing if I dispatch an already-stored event?

View 1 Replies

Java :: Passing Property Object Using BlazeDS?

Aug 3, 2011

I am building flex application and using blazeDS to pass objects between java and actionscript. I have the following java classes (Property that extends BaseProperty) and their actionscript representation. When I pass the java Property object to the actionscript using blazeDS and trying to cast it as action scipt BaseProperty object I get null. Why? It's important to mention that if I cast it as Property everything is fine.

View 1 Replies

Java :: Fields Are Mismatched When Passing Object To Flex

Aug 25, 2010

We have a pretty big application with lots of objects being passed between flex and java One object in particular has a subtle bug:It's a plain old java object being passed to the flex front end (using blazeds producer/consumer messaging). The POJO has two String properties such as:[codewhen I get the object on the frontend, in Flex, the value object's properties are swapped, as in:[code]Clearly, this is some type of confusion blazeds is having when the objects are serialized/deserialized. Since they are both Strings, it seems something is getting confused when reading/writing the objects.Both objects exactly mirror each other with parameters and methods in the same order in the files with the same names.How do I correct the serialization, preferably without having to handle it on my own?

View 1 Replies

Java :: Flex - Max Upload File Size For Java Using Remote Object (BlazDS)?

Jul 16, 2010

I tried with flex and java in the backend. In this, I am able to upload files till 100 MB using remote object (blazeDs) where we will read the file as byte array and send it to the java method. If the file size exceeds after that, then I get the run time error in IE.

View 1 Replies

Java :: Accessing A Java Method In A Flex Object?

Jul 16, 2010

Assume I have the following java class public class Square {

[Code]...

Inside an actionscript class, using RemoteObject, I invoke the java method SquareDAO.findById(Long id) an I get an Object with the following: But I don't get the area. How can I invoke the method getArea() ?

View 1 Replies

ActionScript 2.0 :: Time Base Events - Perform A Function After A Period Of Time?

Mar 19, 2006

I was just wondering whether it was possible to perform a function after a period of time.like +2 to hp every 6 seconds.

View 2 Replies

Java :: Are Socket's Events Queued In Flash?

Dec 1, 2009

I'm trying to implement a binary protocol between a flash application and a Custom Java Server using TCP/IP sockets, the protocol's messages are of variable length, so my idea is to add a field indicating the number of bytes I have to read before parsing a complete message, something like this:[code]if while processing a message (supossing it is complete) other data arrives through the socket, are messages of type ProgressEvent.SOCKET_DATA queued so the number of times my handler is called is equal (at least in this case) to the number of messages arrived or should I read until all data the socket has available? or simpler: are in general messages for a handler queued in flash?

View 1 Replies

Java :: Get Flash To Respond To External Html Events?

May 17, 2011

I want my flash movie to respond to rollover type events for links on my website. The idea being that the flash movie will provide descriptions of the links when moused over, but if the user doesn't have flash the functionality isn't lost. What's the best way to do this (if it's possible)?

View 1 Replies

Java :: Passing Parameters From Flex To Database?

May 18, 2011

I am facing one problem when am trying to insert values from flex(frontend) to database(backend).No problem in blazeds connection.I think problem is with java code.Anyway am pasting both java and flex code.Please let me know how to insert values into database.I am not well in java.So i tried a lot to solve this issue.

My Flex code is:
<fx:Script>
<![CDATA[

[code].....

View 1 Replies

ActionScript 3.0 :: Passing Events Out Of A Class?

Apr 28, 2009

So I've created a custom class which makes use of a Sound object. The Sound object loads a sound from a URL, and I attach and event listener to it to see it when it finishes loading i.e. Event.Complete

MY question is this: how do I receive this event outside of the class? For instance, I want to be able to create an instance of my class somewhere else, load a sound and attach an event listener to my custom class that listens for the event thrown by the sound. Understandably, I don't want to make the sound object a public variable.

View 3 Replies

ActionScript 3.0 :: Passing Events Through Hotspots?

Jan 13, 2010

I have two hotspots, one partially overlapping the other. The top one is set to listen for MouseEvent.ROLL_OVER. The bottom one is set to listen for MouseEvent.CLICK.Both work correctly in the non-overlapping area and I can get one or the other to work in the overlapping area by changing the order of the layers but I can't figure out how to get a click in the overlapping area to get through to the lower hotspot, the top one always captures the mouse event. I tried playing with the parameters for the 'addEventListener', 'useCapture' and 'priority', with no success.I am now trying to use'getObjectsUnderPoint()'  but so far can't figure out how to make that work either.

View 3 Replies

ActionScript 3.0 :: Multi-Touch Events Passing Through Objects?

Jan 18, 2011

I wrote a code for handling google maps in a multi touch table. On the map itself, I have a sort of button that, if touched, makes a tool bar show up. On the bar I have a slider and a button, both of them activated by touch events. My problem here is that when I touch objects on the bar, the touch event pass through the bar and it is fired also on the map below, making my map move. Uff, this is very annoying.

View 1 Replies

Media Server :: Application Sharing (passing Events Over Network)

Mar 3, 2010

I wan't to share the application over the network using as3 with FMS in such a way that events performed on application on one PC should also reflect on all the connected PCs. for example if I shared a notepad, the task performed by me on that notepad should be reflected to all the connected users and vice-versa, like remote desktop works.

View 2 Replies

Make Real-time Connection Java And Flex?

Jun 10, 2011

I'm still new at Flex. I want to make a flex code that request data to server everytime. I use java as a server. i have successfully generate a linked-list of data at server from asterisk cli command. like this

[Code]....

View 2 Replies

Actionscript 3 :: Best Way To Time Events In Games?

Aug 12, 2011

I am making a game similar to Touhou in style to learn AS3, but this game is timed to music. Bullet patterns, enemy spawning and special graphics will all be timed to happen at specific times in the music. What I am wondering is:What is the best way to accurately time many(!) events that are required to be very accurate and not slip even a tiny bit out of sync? Example of what sort of timing I am looking:

Spawn 5 different types of enemy's at 1:30 minutes, enemy 1 bullet pattern start at 1:31, bullet pattern will be timed to beat so repeat pattern every 2 seconds. This is a simple and short example of what I am trying to get at.

View 1 Replies

Java :: Get A Alert Message Each Time I Refresh The Browser In Flex?

Dec 29, 2010

i have a login system done in flex.once the user logs in and if he refreshes the page it will take you back to the login page.how can i make the logged in user stay in the same page using flex and java only?and also if once user is logged in and another loggs in with the same user name and passwrod how can i handle dat using flex and java?

View 2 Replies

Performance :: Measure Flex/Java App Response And Rendering Time?

Sep 19, 2011

We have Flex/Java app with a typical scenario:

Clicking the button
Preparing request
Sending request to the backend
Receiving a response from the backend
Rendering the response

How can I measure time from the start of step 1 to end of step 5?

View 1 Replies

ActionScript 3.0 :: Using The Timer Class To Time Events

Feb 11, 2010

I am using the Timer class to time events. Although, I am not sure I have it set up correctly as after a few seconds the events start to get synchronized. first two, then three, etc. Here is an example of the code:

[Code]...

Does anyone know what could be possibly interfering with the Timer for this to happen? It mainly starts happening after you click on an mc and it is removed from the stage (this is for a game).

View 3 Replies

ActionScript 3.0 :: Use Both CLICK And MOUSE_DOWN Events At Same Time?

Oct 28, 2011

I'm trying to figure out a way to have one button perform a function if the mouse is "clicked" and perform another if it is "held down". In my example I have the functionality of each working the way I want, but I can't seem to get them to work together (one is commented out right now). I've searched many forums and haven't found the answer, I'm sure it's there just not having luck putting my finger on it.

The only way I can think is with a timer - but a forum member I read somewhere said that was "Ghetto". Plus, I'm not sure I how to make that work right now anyway.See attached for a working version of what I have, or code below...

ActionScript Code:
var myNum:int = 2;
var myDirection:String = "Up";

[code]....

View 1 Replies

Professional :: Why Does Roll Over Counter Have A Time Limit Between Events

Mar 13, 2012

I asked for help earlier with a banner and a button that counts roll overs. I am having an issue where the first movie clips in the array play much more often than the others. When I mouse over every couple of seconds or so, only the red mc plays. When I go a little faster the red and blue mcs play back and forth, and when I do a bunch of mouse overs really fast, then all 3 play in order. What part of the code has something to do with amount of time between roll overs? I want it so that even if I roll over once and then again a minute later, I want the second movie clip in the array to play instead of the first again. Here is the code I have in the first frame of the main timeline, as well as a stop(); in the first frame of each mc.

[Code]...

View 9 Replies

Java :: Flex - LCDS Service Returning Null Asynctoken When Executed 2nd Time?

Dec 23, 2011

I'm developing a Flex application using RobotLegs, LiveCycle DS & Java.I'm trying to implement an update function, using LCDS, but I'm running into some strange behaviour:This is the ActionScript code within a RobotLegs' execute command, used to perform the update:

var token:AsyncToken = services.requestService.commit(new Array(model.currentRequestDetail));
responder = new AsyncResponder(resultHandler, faultHandler, token);

[code].....

View 2 Replies

ActionScript 3.0 :: Focus Events - Removing Text One Character At A Time

Oct 26, 2009

I'm trying to put the text back into a text field on FOCUS_OUT one character at a time. On FOCUS_IN, I want to remove the text one character at a time.

Here's the basic code:
major.text = "ActionScript 3.0";
major.addEventListener(FocusEvent.FOCUS_IN, inFocus);
major.addEventListener(FocusEvent.FOCUS_OUT, outFocus);
function inFocus(event:FocusEvent):void {
major.text="";// want to clear the text one character at a time
} function outFocus(event:FocusEvent):void {
major.text="ActionScript 3.0"; // want to put the text back in one character at a time
}

I attached a fla. that does this in ActionScript 2.0, but I'm trying to do this in ActionScript 3.0.

View 6 Replies

ActionScript 2.0 :: Flash8 : Passing Time As A Variable On Other Frame?

Jan 24, 2010

Basically, I wanted to 'save' the time thats been recorded in each of the 5 'games', so at the end there is a 'scores' page, with your times for each of the games.

I have managed to get the timer working for the games itself, but cannot find / work a method which saves them to the last frame?

I thought possibly converting the 'elapsed_time' into a different var (t1,t2 etc..) for each of the games? - doesn't seem to work timer_not_saving.fla

View 1 Replies

ActionScript 3.0 :: Interconnect Different Computers In Order To Share Events In Real Time?

Jul 10, 2010

I need to know how I could do to interconnect different computers in order to share events in real time. For example, if I press some button I get a sound and I need that other who is using the same swf could mix it with anothers that can be generated by the same swf.

View 2 Replies

ActionScript 2.0 :: Program A Simple Script Depicting The Passing Of Time?

Sep 13, 2002

Is it possible to program a simple script depicting the passing of time? Not necessary a timeline but rather a time code.My intention is to animate and integrate a 3D city (into Flash or Director) that is deteriorating/declining over time.I just might fake it in the end. i.e.Scrolling 24 hrs Days Weeks Months

View 4 Replies

Flash :: Handle A Time Object From Php In Flex (parse It To A Date Object)

Aug 19, 2010

I've got a php backend which delivers a time (e.g. '07:00:00'). This time is recognized as a string but I need it as a Date. So what I need is: Convert a string '07:00:00' to a Flex Date object. Is there a way to do this (without using regular expressions)?

View 2 Replies

Java :: How To Convert Object To ByteArray

Jun 25, 2010

The coding language is Java.I have a ByteArray embedded in ActionScriptObject.(Smartfox Server)I want to convert it into ByteArray.The idea is to save it as an image.This a sequel to the post --> Convert Byte Array from Action Script to Image in Java and save it

View 2 Replies

Flex :: Java Map To Object Conversion?

Jul 4, 2011

From java i am sending ordered Map.In flex when i convert that into Object i am loosing the order which i maintained in java.Is there any other way to maintain the order in flex object?

View 1 Replies

Java :: Determine The Size Of An Object?

Nov 12, 2011

In Java, what is the best way to determine the size of an object?

In Actionscript I can usually just do:

var myVar:uint = 5;
getSize(myVar)
//outputs 4 bytes

How do I do this in Java?

View 3 Replies







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