ActionScript 2.0 :: [CS4] Flash/PHP/MySQL Multi-User Interaction?

May 22, 2009

On load - Get the current position of the movieclip object on stage which is stored in MySQL through PHP.When the user moves the movieclip object, update the x and y position of the object by sending it to MySQL through PHP.It's a pretty simple way of understanding Flash/PHP/MySQL Integration and I find it much less complex than a socket server but I don't think it's efficient enough to use with the constant queries. [URL] Does not really work very well, dont think the Y position works at all lol, when you refresh the page it is suppose to save your current object position into the database then load it again but it appears a bit buggy, not completely sure why - I'm pretty new to Load/Send but it doesnt matter much. Also the movement appears to be lagged too and opening a new window as a 'new user' does not share the same instance of the object on stage (I think that would require me to make seperate ID's for each user though to give them their own unique objects on stage.)Is there any better (more efficient and reliable) way of creating a stage for multi-user interaction (like player characters for a game which move around by user key input, not a chat room)...Which does not involve the use of a socket server?

View 1 Replies


Similar Posts:


Dynamic User Interaction Flash UI?

Dec 13, 2009

I am looking at taking on a project that will be a considerable challenge since I come from a LAMP development environment. I am wanting to create a Flash driven community with chat and profiles. In PHP I know how I would go about handling the data as everything is put together on the server and returned to the user completely formatted, however adding a flash layer on top of it present a problem. I am not sure how to transport data from the server to a flash file without using XML. The obvious problem that I see is as more people are online, Sending updated XML files to flash could become a bandwidth hog and make for a slow UI. best method of moving result data from a PHP script to Flash without using XML or is that going to be the only viable option? My concern is load time. Also is there a good way of unloading data once it is no longer used (ie Photos).

View 4 Replies

Flex :: Record User Interaction In Flash App?

Apr 30, 2010

I am looking for a way to capture the user interactions with a text input control in Flash over a period of time (not a screen cast)?For example: If the user enter some text, then delete, then enter something, I would be able to store that interaction as it happens and replay that later.

View 2 Replies

JQuery :: Tracking User Interaction With Flash Outside Of SWF?

Mar 26, 2012

I have been tasked with tracking user interactions with a flash movie that contains several chapters. I need to track which chapters the user decides to watch. But I have no access to the flash movie itself and I can not modify it. The movie loads in a modal. I do have access to the HTML page from which the modal is spawned. This is a screenshot of the interface. There are 6 chapters. Users can select the chapters they want to watch. They can then click Play Your Demo. Alternatively there's a Play All button. I would like to track which chapters users select. This can be easily done with flash, but this is not an option. I hope I can use jQuery on the page to monitor user clicks. I am inclined to say this is not possible though, since JS can not track events/interactions with the flash movie, but I could be wrong.

View 2 Replies

ActionScript 3.0 :: Flash - Upload A PPT Without User Interaction

Apr 5, 2012

I'm really stuck on this - I'm supposed to be delivering the project today. I need to be able upload a PPT without user interaction (so no FileReference)

View 2 Replies

ActionScript 2.0 :: Flash 8 - Trigger Time Up Without User Interaction?

Aug 10, 2009

I would like to start a timer on a button release which will trigger a "time up" on the user when a reasonable time to respond has been reached. I think I know how to use getTime to set a starttime variable but how do I trigger the "time up" without any user interaction?

This is the code I have:
var starttime=getTimer() // put this where you want to start tracking time
var elapsedTime=getTimer()-starttime; // put this where you want to know the time.
while (elapsedTime>4000)

View 1 Replies

Flash Player - Fullscreen Without User Interaction (automated Testing)?

Jul 4, 2010

At the moment I'm using Selenium-Flex to write functional tests for a video playback app.At the moment, I need to test that the app behaves appropriately when switched to fullscreen mode - make sure that the control bar is in a reasonable spot, the video resizes appropriately, etc., and of course to do that I need an automated way to make Flash Player go fullscreen.

For good reason, Flash's security features prevent being able to fullscreen except in response to user input. Actual user input, a javascript callback being called does not count.Is there any way to disable this security feature on my test rig, so I can actually run my automated tests on fullscreen mode? Barring that, is there any way to put Flash into fullscreen mode externally, so I can hack it up to work that way?

View 1 Replies

Flash 10 :: Javascript :: Open File Dialog In "without" User Interaction?

Sep 25, 2009

I want to open a file dialog via FileReference.browse() but I get #2176 error which means that this action can only be invoked upon some user interaction. I'm aware of security considerations but in my scenario I have a thin flash movie which merely displays an image and the whole UI is in javascript (I heavily use javascript <-> actionscript communication).

So the question is - do you think it would be possible to invoke FileReference.browse() upon the user interaction coming from javascript?

View 4 Replies

Actionscript :: Code Not Executed Without User Interaction?

Sep 27, 2011

The following code works as expected: when a user clicks the button, the installer automatically launches.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"[code]....

I verified that the installApp function is executed.Why doesn't the second piece of code work? Is user interaction required? If so what's a way around this?

View 1 Replies

Php :: MySQL Or XML: Saving User Votes On Server From A Flash Movie?

Nov 21, 2009

A project of mine involves a flash movie (.swf) in a webpage, where the user has to pick from a number of items, and has the option to thumbs up or thumbs down (vote on) each item.So far I have gotten this to work during each run of the application, as it is currently loading the data from an XML file - and the data is still static at the moment.I need to persist these votes on the server using a database (mySQL), such that when the page is reloaded, the votes aren't forgotten.Has anyone done this sort of thing before?The two mains methods that I have found on the 'net areeither direct communication between AS3 and the SQL using some sort of framework, orpassing the SQL query to a PHP file, which then executes the SQL query and returns the SQL to AS3.

Which of these methods is the better option?For the latter method (involving PHP), I have been able to find resources on how to acheive this when attempting to retrieve information from the database (i.e. a read operation), but not when attempting to send information to the database (i.e. a write operation, which is needed when the users vote). How is this done?Edit: Implemented solutionSomewhere in the PHP file:

if ($action == "vote")
{
$id = $_POST['id'];

[code]....

View 2 Replies

Actionscript 3.0 :: The Colors To Be Constantly Changing Without Any User Interaction?

Apr 7, 2010

I'm trying to change the colors of a blur filter. But I want the the colors to be constantly changing without any user interaction. So far i've set up a color matrix filter

View 4 Replies

ActionScript 2.0 :: Getting Custom Cursor To Act Opposite User Interaction?

Apr 13, 2006

Is it possible to get the custom cursor MC to act opposite the users actions? I want it to be opposite the center of the stage, lets say the real mouse cursor is 200px to the RIGHT of the center of the stage, but the custom mouse cursor is 200px to the LEFT... get it? And the same goes for the y coordinates. I gave it a try, but can't seem to get it right, math never was my strong side

View 3 Replies

Actionscript 3 :: Download A File From Server Without User Interaction In Flex 4?

Sep 27, 2011

The code flow is as follows: user clicks 'download details' button on the page -> on button click handler a call to a RPC method is made using s:CallResponder -> RPC method generates and returns a URL from where to download the file -> the success event handler of the CallResponder gets the url where FileRefrence.download() is used to download the file but throws following error:-

Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press.

[Code]...

View 3 Replies

ActionScript 3.0 :: Create User Interaction Simulating The Use Of A Spirit Level?

Jan 18, 2012

I need to create a user interaction simulating the use of a spirit level showing that a rectangular object on the stage is level. It doesn't have to actually work like spirit level, basically just has to give the impression that it has worked like one.

Maybe make the bubble of the spirit level should move (become animated) when being dragged to the object, then settle (animation come to a stop) when dropped in place on top of the rectangular object? Although I am unsure of the code to go about this?

View 4 Replies

Multi User Game Programming?

May 24, 2010

If u have any tutorials, books or links related to this type of code, please forward me for this or my mail id - swamy.webdesigner at gmail.

View 1 Replies

ActionScript 3.0 :: Multi User Drwaing Application?

Jul 2, 2009

client has suggested that they would like a multi userdrawing board online.Basically i need to demo something that two users can draw onto at the same time, my host has php and mysql which i would like to stick with as I have a basic understanding of the technologys

View 1 Replies

ActionScript 3.0 :: Multi User Game Programming?

May 24, 2010

now i am trying to make some games, I want to design a game with multi users.If u have any tutorials, books or links related to this type of code

View 1 Replies

ActionScript 3.0 :: Make Multi-user Drawing Application?

Jun 24, 2009

How to make multi user drawing application in as 3.0

View 8 Replies

ActionScript 1/2 :: Using Collaboration Builder SDK For Multi-User Quiz

Jul 15, 2011

We are currently using some simple AS2 templates with adobe connect pro to add some interactivity to our elearning courses. We are hoping to take this a step further using SDK to give a live report to the meeting host. A current AS2 template that we use looks like this: The .swf contains 4 buttons, only 1 of which is the correct answer. Currently, the participant will click the correct button in their individual instance and reveal a message informing them that they are correct and may move on to the next question. It would be a greater learning experience if once all of the participants had answered, everyone in the meeting could see a break-down of what answers people gave.

E.g. 77% selected answer A 10% selected answer B. This could then be analysed and discussed with the trainer. I know this is not disimilar to the poll function built into connect but we need the answers to be images rather than text. Therefore, the question is really around the coding that would be used to implement such a system and as to what code we could use. We are not professional flash developers, rather trainers that have begun to dabble in self-taught flash and can use the SDK on a very basic level for synchronizing text input fields and pod re-sizing etc.

View 1 Replies

ActionScript 3.0 :: Multi User / Group Video Chat

Apr 15, 2011

i plan to do video chatting i m able to do p2p and i want to do group chat i cant get any reference for that..

View 0 Replies

ActionScript 3.0 :: Send The User Balance To Mysql And Save It There?

Aug 8, 2009

What actionscript i need, to send the user balance to my Mysql and save it there. and when the user come back to the game get the same balance from the last time(override the user balance).here is part of the Flash code that in the game:

game_pr.display = function ()
{
_root.display.balance = "<P ALIGN='LEFT'><FONT FACE='04b_25' SIZE='12'

[code]......

View 0 Replies

Mysql :: Migrate A Preexisting Flex/Java/Hibernate/MySQL App Onto A CD For Portable Distro?

Feb 2, 2011

I have a typical Flex-based application that was written to use a Java/Hibernate/MySQL backend. The client changed the requirements - now they want to distribute it on a CD where the user can just run the app without any installation or a network connection.

To do this, I certainly need to eliminate the web server and the database server and adapt my application (with as few changes as possible, of course) to a stand-alone application that will fit on a CD/DVD. I've managed to export the data to XML and read it into Flex, but I'm wondering if there's a way to recreate the Hibernate data structures in Flex so I could change as little code as possible. Failing that, is there any way to keep the existing Java/Hibernate external to the Flex code but retrievable without installing Apache Tomcat or MySQL?

View 3 Replies

Mysql :: Create An Insert Form With TextInput Containing ComboBox Provided By MySQL Database Table?

Jan 13, 2010

I have a Flex application which manage a database composed by 7 tables.I have created the insert form and all work great. Now I wanto to improve the Form performances; the idea is to replace the TextInput of the Form with ComboBoxes which are provided by the DataBase tables

View 1 Replies

Configure MySQL JDBC Driver Mysql-connector-java-5.1.12?

May 25, 2010

I have downloaded MySQL JDBC driver from [URL]... How do I configure it?

View 1 Replies

Doing Interaction Design With Flash

Feb 28, 2011

I've been trying to teach myself flash for a couple of weeks and am totally lost. I have had experience with programming in the past, so I understand logic, etc, but I really am not grasping this forced time based system.What I need to do seems pretty simple. I have a jpg of a washing machine front panel. I need to be able to put some transparent "buttons" over it, and have some areas "light up" when the buttons are pressed. So far I understand that I have to work in a chronological setup, with key frames for each state of interaction, and use buttons with some kind of gotoframe action script. what I can't do:

1. get the background jpg to stick to the stage. it apparently has to be either a symbol or a layer?

2. make transparent buttons. in flash catalyst I can just set the opacity to 0, but I'm not sure how to do this in flash pro.

I guess those are the pressing issues. I had tried to import the jpg as a psd background, but then I had to put the button on a separate layer, and it was always either behind the background, or I had to have it's action refer only to the timeline of it's own layer and not the background.

View 10 Replies

Flash Interaction After Flv Video Playback?

Dec 7, 2010

I have a video embedded in Flash as an FLV. I'm able to get the video to play through the way I want, but when the video plays through and ends, I want to have two options/"buttons" display that allow the user to either replay the video a la youtube, or link to another web page.

I know it must a very basic question but I can't seem to find any answers. I've included a screen capture of the end of the video.

View 1 Replies

ActionScript 2.0 :: Interaction Between Two Flash Files?

Jan 31, 2003

I wish to be able to use a Flash animation (call it "one.swf, loaded into "one.html"") as a control panel to control the activities in another animation (say "two.swf" which of course will reside in "two.html")The control panel ("one.swf") will have 10 buttons for the navigation around "two.swf" and "on release" of the butons, I would like for BOTH 1. the navigation in "two.swf" to happen AND 2. "one.swf" to be (preferably) minimised or else closed.What sort of coding is needed to enable this interaction between the two swf files?here will be a button on "two.swf" which will be used to call up "one.swf", but presumably the coding there will need to be different if "one.swf" is minimised to how it is if it is closed. Whilst I can hack opening "one.swf" from fresh if it has been closed, how do I code the button to restore it from being minimised?

View 1 Replies

ActionScript 2.0 :: ASP Flash Interaction - Too Many Variables

Aug 15, 2006

I created a huge flash application and I need it to interact with an ASP file that interacts wiht a database. But when i loadvars in flash it take a very very long time to load. My guess is that becaus there are sooo many variables, passing them all takes a long time. Is there anyway I can pass only a few variables or speed up the process?

View 1 Replies

ActionScript 3.0 :: Flash / CSS / Javascript Interaction

Jun 24, 2009

I have search all forum, but didn't find any good example with sources of as3/css/js integration. I need that swf could send itself dynamic height's value through javascript and css (div). Or, as last hope, to another swf with redirectiong to another page.

View 2 Replies

Mysql :: Accent MySQL-Flex/ZendFramework?

Oct 22, 2011

In my table the Collation is:latin1_swedish_ci (but i tried UTF8_unicode too).In my flex application when it shows the table,it displays it correct,with all accent and pointing correct,but in the table is like :

View 1 Replies







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