actionscript

Programmatic Masonry / Space-FInding Layout in Actionscript

淺唱寂寞╮ 提交于 2019-12-24 16:12:54
问题 Can anyone point me to a good Actionscript 3 class that handles "masonry" style layouts ala the ted.com homepage? Short of finished code, can anyone describe / summarize an efficient algorithm that handles this effect? Searches turn up arcane articles about kd-trees and other such stuff that's way over my head. The jQuery Masonry plugin looks great, but I tried reverse engineering it without much success. Thanks in advance! 回答1: this doesn't do exactly what you want but it's somewhat in the

Programmatic Masonry / Space-FInding Layout in Actionscript

给你一囗甜甜゛ 提交于 2019-12-24 16:03:06
问题 Can anyone point me to a good Actionscript 3 class that handles "masonry" style layouts ala the ted.com homepage? Short of finished code, can anyone describe / summarize an efficient algorithm that handles this effect? Searches turn up arcane articles about kd-trees and other such stuff that's way over my head. The jQuery Masonry plugin looks great, but I tried reverse engineering it without much success. Thanks in advance! 回答1: this doesn't do exactly what you want but it's somewhat in the

ActionScript Socket vs WebSocket

有些话、适合烂在心里 提交于 2019-12-24 15:54:51
问题 I'm working on a Flash based networked game. I have to choose between ActionScript sockets and WebSockets (or more specifically socket.io). I'm wondering which is the better choice. I'm leaning toward ActionScript sockets since it (should) will be standard across all browsers. With socket.io, WebSockets can only be used in HTML5 and it can even result to polling for some older browsers which is a big issue. Would you guys say that ActionScript sockets is the better choice? Thank you very much

getURL not working on HTML export (Actionscript2.0)

▼魔方 西西 提交于 2019-12-24 15:53:26
问题 I was trying to add a facebook connection in developing flash website. Am using actionscript 2.0. I used the the following code more the button on (release) { getURL("http://www.facebook.com", "_blank"); } button works and takes me to the facebook link in SWF export. But am not yet able to access the link from the exported HTML file. (when i click the button in HTML export, it is connecting this link, file:///D:/WEBDESIGN/www.facebook.com) It would be a great if someone can help me out to

Making HTTPRequest and getting response (Adobe Flex)

て烟熏妆下的殇ゞ 提交于 2019-12-24 14:42:57
问题 Im trying to make a HTTP Request in Adobe Flex (Actionscript) as follows: var p:PersonSearchController = new PersonSearchController(); showAlertDialog(); p.search(sc); alert.cancel(); navigator.pushView(views.PersonSearchResults, +p.getResp()); So basically, before the search we get a "Searching..." AlertDialog box, once the search is complete, the dialog box disappears and the results screen is pushed onto the screen... Here is the search method: function search{ var requestSender:URLLoader=

Extracting data to create “Match Statistics” using (flash-based) game-replay files

社会主义新天地 提交于 2019-12-24 14:30:20
问题 I play a very basic multiplayer flash-applet game @ http://www.haxball.com (check it out!) Haxball’s match Replay files can be recorded by users in-game, and saved to disk as “.hbr” files. These Replay files can later be viewed by loading the .hbr replay file directly in the haxball.com interface, or by uploading the .hbr file publicly to a third-party service like "haxballtube.com" My goal is to launch a third-party web-service which will allow users to upload haxball match replay files (

App is loading each time

☆樱花仙子☆ 提交于 2019-12-24 14:08:55
问题 I have web application of flex. It's swf file is attached on a tabview. Means there are 5 tabs on the page. On the tab Five a swf file is attached. When I click on five tab it load the init method of main mxml file of flex application. Is there any way so we can stop to load it every time when we click on Five tab. This app get the data from server when load the application. But I don't want to send the request again and again when click on tab everytime. 回答1: Using <a href=""> to display

Flex, any way to programmatically highlight a field in red the way the validators do?

守給你的承諾、 提交于 2019-12-24 12:33:56
问题 I'm doing some programmatic validation of some field values in a form, is there any way in Actionscript to highlight the field in red the way the validators do? 回答1: you just need to set errorString property on programmatic validation error <s:TextInput errorString="error string value" /> <mx:TextInput errorString="error string value" /> 回答2: Using: var textField:TextField = new TextField(); addChild(textField); To highlight the background in AS3: textField.background = true; textField

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

Serialize Flex Objects to Save/Restore Application State

烂漫一生 提交于 2019-12-24 12:17:12
问题 Is it possible to serialize a hierarchy of objects in Flex, send the binary data to a URL for storage/retrieval on/from a server, and deserialize the data to restore the objects' original state? I know it's possible to convert the objects into an XML format (haven't tried it yet), but I'm hoping to avoid parsing XML and rebuilding the objects manually. It would be nice to have functionality which can serialize/deserialize objects to a simple binary format (I did something similar in the past