flash

Flash game simple performance tricks

跟風遠走 提交于 2020-01-25 03:02:07
问题 I'm trying to make some simple flash games but before I start purring mega bytes of data into the game it's better to seek wisdom from pro coders since I;m totally new to AS3. 1st Question is: what's the best way to load the game faster? since bandwidth is limited like hell for me and loading a flash game takes some time I'm trying to make the game start as fast as possible and load the rest of materials in the gaming process.I saw this on lots of facebook games. 2nd: how to keep the RAM

“Intercept” flash socket with java

∥☆過路亽.° 提交于 2020-01-24 22:58:30
问题 given a flash application that opens a socket connection to a webserver, is it possible to reads packets exchanged with a java application, without redirect all the flash traffic ( that is, without programming a socket proxy)? 回答1: What you are trying to do requires lower level network analysis than sockets. Namely libpcap and its Java bindings , jNetPcap. This will let you capture packets much in the same way wireshark does, but from Java. The other options are analysing Wireshark logs after

What Flash can do that HTML5 not?

倖福魔咒の 提交于 2020-01-24 21:13:49
问题 What things Flash can do that aren't possible with HTML5 currently? For example, Flash supports raw access to the underlying network, while WebSocket needs some proxy server. This one is really annoying. 回答1: Here is a list of reasons of what Flash offers over HTML5 regarding video http://apiblog.youtube.com/2010/06/flash-and-html5-tag.html 回答2: Among other things flash can bring C/C++ libraries to the web using Adobe Alchemy 回答3: Work on almost every browser (except iphone:) 回答4: I suppose I

Can A Sprite Contain A MovieClip?

假装没事ソ 提交于 2020-01-24 19:38:07
问题 Hmmm... I'm working at creating an AS3 UI library, since most of the ones out there each seem to miss out at least 1 feature I need. In order to keep it lightweight, I created everything from scratch. I use Sprites to render just about anything. But I want to allow the user of the library the possibility of adding a custom graphic for a button. Now... maybe that graphic is a MovieClip which has a nice animation within it. So can I say sprite.addChild(mc) and then if I do mc.play, will the mc

problem in playlist when we select the different songs

喜你入骨 提交于 2020-01-24 01:52:09
问题 Actually in my website www.musicking.in when the user selects songs one player window will open and that will access the corresponding selected songs xml playlist and the player will play those songs. actually its working fine. but sometimes the problem is when so many users are accesiing the player not playing the songs selected, either its playing songs previously he selected or nothing. please help me. {my player code} <?php if(isset($_POST["song"])&& $_POST['song'] != "") { $song = $_POST

Autosize text to fit the width of a button

风格不统一 提交于 2020-01-24 01:18:09
问题 I've had a good look around but couldn't find anything that directly solves my problem. There are several posts which are along the right lines, but I can't get my head around it in order to fix the issue. I need to automatically resize the text so that it doesn't exceed the width of the button. The maximum length for my sized text appears to be 13 characters before it will become too large. -- The program starts by dynamically creating several buttons, filling them with the title and

AS3 - Friction(?) causing Movie Clip to jump, temporarily alter path (playable SWF included)

心不动则不痛 提交于 2020-01-24 00:56:05
问题 Im making a game in FlashBuilder where the player controls a movieclip (_character) around the stage with the arrows or WASD. On the stage there are squares/boxes with collision detection and a 50 pixel border around. While testing Ive noticed that if I hold a direction key, then switch to another AND the MovieClip is travelling past a gap in the boxes, the movieclip will jump a few pixels in the previous pressed direction, then back down again quickly. It’s a split second flicker but creates

Inputting a Equation in Textfield and Processing it? [actionscript 3.0]

ε祈祈猫儿з 提交于 2020-01-23 19:28:41
问题 I would like to know if theirs a way where you can type in a text field something like "5*5". And then on enter, the document would take the database and be able to return 25. I am quite confused due to the fact that content that you input into a textfield must be a String and when you use the Number() converter the system gets confused. 回答1: You'll need to break your string apart at operators (using regex) and then keep those operators. I don't have the patience to do this myself but you'll

Inputting a Equation in Textfield and Processing it? [actionscript 3.0]

谁说我不能喝 提交于 2020-01-23 19:28:19
问题 I would like to know if theirs a way where you can type in a text field something like "5*5". And then on enter, the document would take the database and be able to return 25. I am quite confused due to the fact that content that you input into a textfield must be a String and when you use the Number() converter the system gets confused. 回答1: You'll need to break your string apart at operators (using regex) and then keep those operators. I don't have the patience to do this myself but you'll

Flash streaming player: shoutcast (mp3/aacplus), windows media audio

吃可爱长大的小学妹 提交于 2020-01-23 16:49:45
问题 Is there a flash player that could handle all of the formats mentioned above. Or different players that could handle it? 回答1: http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player.html explains Flash 9's h.264 and aac support. Presumably Flash can play aac audio without h.264 video. Someone wrote an ogg vorbis player in Flash (http://drawlogic.com/2008/10/04/as3-fvorbis-flash-ogg-vorbis-player/) and the performance was acceptable. It's not written in ActionScript. It's