flash

Binary math on Number objects limited to 32 bits?

与世无争的帅哥 提交于 2019-12-24 12:27:35
问题 Consider the following code: var combined:Number = Number(4294967296) | Number(2403025069); var testLimit:Number = 6697992365; trace("Combined is:", combined, "should be", testLimit); Output is: Combined is: -1891942227 should be 6697992365 Why?! I thought Number datatypes can hold 64 bit integers (okay- really 52-bit, but the numbers above are nowhere near that limit) 回答1: From the documentation: | bitwise OR Operator Converts expression1 and expression2 to 32-bit unsigned integers , and

java.lang.UnsatisfiedLinkError in jflashplayer — getOSVersion

感情迁移 提交于 2019-12-24 12:26:13
问题 I'm attempting to compile and run the Example code that comes with the trial version of JFlashPlayer 2.1.1. (Sorry for the download link, it appears that VersaEdge has discontinued JFlashPlayer) I was able to get a demo running back in 2009, but I'm unable to get the app running now due to a java.lang.UnsatisfiedLinkError to com.jpackages.jflashplayer.FlashPanel.getOSVersion . I'm running Windows 7 64-bit, and I do not use Internet Explorer. I'm guessing either VersaEdge didn't update

AIR 3.0 and Stage3D

这一生的挚爱 提交于 2019-12-24 12:18:49
问题 There isn't any tutorials on the web on how to use Stage3D on AIR 3.0. How do I enable it in Flash Builder 4? I have countless trial and error when testing 2D/3D framework: VerifyError: Error #1014: Class flash.display::Stage3D could not be found. 回答1: You will need the flex 4.5.1 SDK installed, as well as a playerglobal.swc from FP11. Check out this tutorial: Creating a Custom Flex 4.5 SDK to Target Flash 11 and AIR 3 回答2: You need to edit your app's XML file. That's the descriptor file with

Using a button within flash movie in flex/flash builder

泪湿孤枕 提交于 2019-12-24 12:13:54
问题 Is it possible to build a UI with Flash CS5 that contains multiple buttons, and then have flex listen to those button events? My current plan is to load the SWF with SWFLoader and attaching listeners to the buttons in a onComplete event would be the proper way to set it up, however i cannot seem to find a way to access the buttons themselves and attach listeners to them. Of course i would give each button its own instance name. Pointers and/or examples would be greatly appreciated. 回答1: Once

How to run the Haxe server and client example?

匆匆过客 提交于 2019-12-24 12:05:58
问题 I am new to Haxe. I want to try to run the example from here: http://old.haxe.org/doc/flash/chat but I do not know how to run. I just type haxe app.hxml and I have no idea how to continue. Could someone tell me how to run it? 回答1: Running haxe app.hxml creates two files: server.n and client.swf . Double click server.bat (which just starts the server via neko server.n ). Now any number of clients can connect to the server. For testing, just run the client.hx twice with the standalone Flash

Flex full screen mode

戏子无情 提交于 2019-12-24 12:03:49
问题 I'm new in flex. I faced problem to make full screen in flex 3.My layout container type like below. <mx:Application > <mx:Panel> <mx:ViewStack> <mx:VBox > <mx:VBox > <mx:Canvas > <mx:HBox width="300" height="300"> </mx:HBox> </mx:Canvas> </mx:VBox> </mx:VBox> </mx:ViewStack> </mx:Panel> </mx:Application> the container width and height will be fixed like above.Then when i click a button full screen it will be full screen mode. Please help me with example and tutorial. best regard. Mahedi 回答1:

Flash AS3 - Display an error if the XML if incorrect

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 11:44:06
问题 I'm creating a flash application which loads in some XML which is generated dynamically from the CMS. I want to display an error in case the XML file isn't formatted correctly. When I test this with incorrectly formatted XML, it will just get to the line myXML = XML(myLoader.data); and then just bomb out. How can I catch the error, display a message to the user, but the flash program to continue as normal. var myXMLURL:URLRequest = new URLRequest(XMLfile); var myLoader:URLLoader = new

Flash AS3, save and load data for iOs and android games

ε祈祈猫儿з 提交于 2019-12-24 11:36:16
问题 I'm trying to make games for iOS and Android. How do I save data to the gadget, and also how do I load it? The data that I want to save to the user device is basically just a bunch of strings. Kindly help please. And by the way, I'm using Flash CS6 for the game. 回答1: The SharedObject class should do fine for you. The attributes you write/read can be of any type (String, Array, Number, Boolean, XML, ...). Basic example: var scores : Array = new Array(10, 20, 30); var my_so : SharedObject =

Latency / Ping test from Browser

一世执手 提交于 2019-12-24 11:28:28
问题 I want to check ping from Browser to a Server. Ping/Latency should not be from Server but from Client's Machine. I have seen sites like Pingtest.net so it is possible to do from Browser. Any language will do. The server ping can also be tested by an UDP packet other than normal shell command ping. How should i proceed. ? 回答1: Try using XMLHTTPRequest() for javascript. The objective is to make about 10 objects and place them in an array. Then use onreadystatechange in each and every one of

Both html5 video and flash fallback loading if browser supports both

耗尽温柔 提交于 2019-12-24 11:19:30
问题 I'm doing Html5 video play on my project with flash fallback (if it doesn't support html5). But both players are loaded if browser supports both. help me. <video controls="controls" preload="auto" poster="image.url" > <source src="video.url" type="video/ogg" /> <source src="video.url" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'/> </video> <object type="application/x-shockwave-flash" data="flowplayer-3.1.1.swf"> <param name="movie" value="flowplayer-3.1.1.swf" /> <param name=