I want to update a row in mysql when a user uses an application with flash. And when they exit that application, I want to change the row to reflect that the user has left. Is there a way to do this easily? Currently, I'm thinking of writing a connection manager with sockets.
We generate a LOT of swfs where I work. We've got a group of people managing putting the swfs into our asset management system. These people do NOT have flash or anything adobe. However, they need to be able to determine the AS setting on the swfs. Is there a tool (preferably cheap or even free) that can be used to determine the Actionscript level of a swf?
I need to swap a JSP form with a Flash form should the user have it installed. I know there is a JavaScript option, but don't want to use this as that cuts out people who have Flash but not JavaScript.
Is FarmVille on the iOS built with Flash? And if so, how can you tell? Are there certain flags that exist in the form of certain files or magic numbers within the .app folder hierarchy?
is it possible using actionscript to determine what operating system the flash projector is running on. I'm producing a swf that is to run from a cd-rom and so will be published as an .exe for windows and a .app for mac...parts of the presentation change depending on what os the user is running it on. I don't want to have to publish, change things and then republish. If it were a swf embedded on a web page, the browser would provide all those details...
I have a SWF that can be hosted in several different places on the web (including facebook.com). How can I determine which page is hosting my SWF from within Actionscript?
ActionScript 3.0 provides for a way to determine if a swf is for either: 1) AVM2 (or earlier); or 2) AVM3. [link1, link2]My Question:From C#, is there a way to determine if a swf is for AVM1 or AVM2?
I want to know, if my Flashapplication is running in a browser or it is tested from within Flash authoring tool (local Flashplayer).I came up with this one.
var isLocal:Boolean = !ExternalInterface.available || ExternalInterface.call("window.location.toString") == null;
Other than stated in the AS3 documentation ExternalInterface.available returns always true when running in a browser or testing locally.
I know that it is possible to pass the page URL to a Flash movie using either a query string or FlashVars but I was wandering whether there is a method for Flash to determine the page URL by itself? I do not have the possibility to pass the URL by external code...
Determine if Mac or PC within a flash projector? (for use with FSCommand) How do I determine if a computer is Mac or PC within a flash projector? I need this because I've got several FSCommands I need to use within a projector (such as launching an application or file) and need to have different commands for Mac and PC.
I am trying to loop through a bitmap and determine if each pixel is lighter or darker than gray using getPixel(). Problem is, I am not sure how to tell whether the value returned by getPixel() is darker or lighter than gray.
Neutral gray is about 0x808080 or R:127, G:127, B:127. How would I need to modify the code below to accurately determine this?
I'm developing a flash application that is getting information from a remote server using a URLLoader. I have a function that will create a request for information based on the product ID. When there is an error, I want to fall back to an alternate URL, but to create the alternate URL, I need to know the product ID. What is the best method to determine which URLLoader failed (and which product request failed) so that I can regenerate the new URL?
My functions are below:
function loadData(productID:String):URLLoader { var productURL:URLRequest = new URLRequest("/path/to/product/" + productID); var dataLoader:URLLoader = new URLLoader();
I'm trying to load the jpg out of an mp3 (I'm doing this in Flash, but that's neither here nor there), and I've pulled open a few MP3s in a hex editor and while the rest of the tag is pretty clear, the image part is a mystery. There is a label "image/jpeg" but then I expect something resembling a byte length for the image or a string key that demarcates the end of the image
I'm creating an online multiplayer game in which I want to prevent players from joining a game using multiple clients/accounts on one computer. I can't simply do a server sided check for the IP-address because I still want e.g. people in the same office to be able to play together.Therefore I'd like to generate some kind of computer ID/hash on the client which it sends along to the server. I know that is easily hackable, but it will stop at least those "cheaters" who can't or won't change their client software.Is there a way to generate such an ID/hash in my game client? It's made in Flash and AIR (there are two versions, browser and desktop).The value doesn't need to be globally unique, because I will check for IP-address + ID
I have a Flash file, which uses AS 2, that is displayed in 2 individual html pages. When I click a link in the file, I would like to, if possible, determine the name of the page that it is inside of. Is there a way to determine which of the 2 HTML pages my Flash file is being called from?
I am using the following tutorial to create a php message page, however, even in their example, I cannot get the php echo function to send the output to the dynamic text fields:Here is the button code to send the php variables and attempt to capture the php echo of either "sent" or "error"
on (release) { Now import the variables we need to send in this movie clip sender_mail = _root.Semail.text sender_name = _root.Sname.text sender_subject = _root.Ssubject.text sender_message =
I use Flash to develop a movie that runs when a user installs a new version of my companies software, and allows the user to access the user documentation and software installations at the click of a button. I use ActionScript to control the flow of the movie based on radio buttons that the user selects so that they are only provided with information relevant to them.I have been asked if Flash can determine whether a program is installed on the user's computer which can then be used to determine the flow of the movie.
Adobe flash: How to determine users CPU characteristics? (its mhz, its current ocupation) I need to know how fast is users computer now, and I have only 150 ms for it. How to do such thing in actionscript?
We have an old Flash application that has worked fine for years, but intermittently fails on latest versions of Firefox. Using the same version of the Flash Player, the application runs fine in Internet Explorer. Recompiling the product is risky, and I'm trying to fully understand the problem before resorting to that. I'd like to be able to point to a known browser or player bug, but I can't really say where the problem is yet.I've gather the following information using Charles Proxy:The Flash application gets a list of files it needs to load. It requests a file then waits until the Flash Plug-in dispatches an Event.COMPLETE before requesting the next file. During this process I can see the HTTP requests and server responses. When the application "hangs", Charles Proxy reports that the response actually completed; however, Firefox's status bar shows "Transferring ..."
Sometimes for an extended period, I can't recreate the problem at all. At other times, the hang-up happens over and over again.Finally, if we switch to using https instead of http, the problem NEVER happens. Because Charles Proxy shows Status Complete while Firefox shows that a Transfer is still occurring, I speculate that the problem is actually in Firefox. I believe that Firefox is failing to recognize when the file actually finished loading, and therefore it fails to tell the Flash Player. The end result is that our code gets no Event.COMPLETE from the player and cannot continue requesting files.
Is it possible to use JavaScript to detect whether a .swf file has loaded completely within a web page?Assume that the .swf file is pulled from a 3rd-party website and we don't have access to its source code.
I can do it on pen and paper using a compass, but can't do it in Actionscript 3.As the title says, essentially I need to find the centre of a circle using multiple points from the radius.
I am trying to find the best way to improve the user experience when interacting with a context menu in a Flex application. I already know that the context menu in Flex is quite limited in terms of how it is constructed and what it can show.
What I was hoping to do was to implement something similar to what Microsoft Word does in 2010 or later, where when right clicking a little floating palette is displayed above the common popup menu. I was hoping that there was a way to 1) listen for an event that is triggered when a context menu is displayed, and 2) determine the location of the context menu so that I could display a floating palette above the context menu as in Word. So far, I have not found out how to accomplish either of these things.
I suspect that there might be some focus and stage management issues with this approach generally, but I was hoping to at least get to the point where those issues were discovered.
i have a game inwhich a bait is thrown determined by a variable of a power meter, when the meter is full it returns a variable of 1 when half 0.5 and when low near 0, how can i use this to determine how far my "bait will be thrown" onto the screen? i have tried how ever the X value would not be consistent with my fishing rod placement, and when the point is decided i will have to move my bait to that point and stop.
I use Flash to develop a movie that runs when a user installs a new version of my companies software, and allows the user to access the user documentation and software installations at the click of a button. I use ActionScript to control the flow of the movie based on radio buttons that the user selects so that they are only provided with information relevant to them.
I have been asked if Flash can determine whether a program is installed on the user's computer which can then be used to determine the flow of the movie.
It seems there are a lot of problems with sound control with flash, and i (now seeming studpidlY) decided to undertake a project where i can have multiple sounds at once, and turn them off (individually) at the click of a button.
see the code
Code: function soundSelected(evt:MouseEvent):void { // Pushes the filename into a playlist array.;
[Code]....
Obviously there is more code but these are the two functions that deal with the playing of sounds, the adding of icons (that form a playlist of clips that are being played) and also to remove these icons.
Basically when i click a button, it play a song (depending on the .target.FileName which is declared elsewhere), it then adds a small icon to a navigation bar so the user can see easily which sounds are on (this is depending on the .target.IconNo which again is declared elsewhere). I then add an event listener to the small icon that is on the stage, that calls the removeIcon function.
At the moment it adds the small icon, then when i click the small icon, it removes it from the screen, how can i link it so that it stops playing the sound it refers too?