flashdevelop

Using PNG/GIF Images as buttons using AS3

爱⌒轻易说出口 提交于 2020-01-17 03:07:30
问题 Friends, I am new to AS3 so pardon me. I am trying to use images as buttons (PNG/GIF images as buttons(simple, toggled and multi-state) - Image change on mouse over, normal and pressed) using AS3 only. I tried to search. All I got is to setting icon of a Button. It would be really great if you can share the code snippet or pointers. Thanks a lot. 回答1: There are ways to do this without converting an image to a Movieclip. You can either embed your images inside your SWF using the [Embed] tag...

Flashdevelop + haxe — repeated “An I/O error has occured” errors

蓝咒 提交于 2020-01-15 03:32:04
问题 I'm getting small dialog boxes that pop up saying I/O Error occurred . What causes this, and how should I fix this? Edit: what happens is that after i run my flash game, FlashDevelop will try to connect to the Flash debugger, but apparently fail and give me the above error. I have both the debug standalone player and the ActiveX debug control for Firefox. 回答1: To activate interactive debugging with haxe/Flash/FlashDevelop you have to add the fdb switch and network-sandbox. To do that open

Relationship of Adobe AIR SDK and Flex SDK?

六月ゝ 毕业季﹏ 提交于 2020-01-12 06:53:13
问题 I'm trying to make sense of the whole mess of the Flash platform (mainly so I understand the terms being thrown around) and so far, I haven't been able to figure out how exactly the AIR and Flex SDKs are related. Without actually having looked at the SDKs, my understanding would have been that AIR enables you to develop Flash (i.e. ActionScript, and apparently also JavaScript/HTML) applications that can be run by the AIR runtime without the need of a browser (such as a pure desktop or

Haxe: How can I make the android menu bar stay hidden

陌路散爱 提交于 2020-01-06 05:08:43
问题 Im developing an app using haxe / openfl, with the flashdevelop ide. The default setup for a new project comes with the correctly configured android manifest so that the android menu bars dont show up. However when I touch anywhere on the device they pop up. How can I prevent this from happening. Okay, so I found the the template GameActivity.java file that the system was using to generate the apps code and modified it to include: @Override public void onWindowFocusChanged(boolean hasFocus) {

Haxe: How can I make the android menu bar stay hidden

倖福魔咒の 提交于 2020-01-06 05:08:05
问题 Im developing an app using haxe / openfl, with the flashdevelop ide. The default setup for a new project comes with the correctly configured android manifest so that the android menu bars dont show up. However when I touch anywhere on the device they pop up. How can I prevent this from happening. Okay, so I found the the template GameActivity.java file that the system was using to generate the apps code and modified it to include: @Override public void onWindowFocusChanged(boolean hasFocus) {

Cannot import library on Haxe & FlashDevelop

核能气质少年 提交于 2020-01-06 03:20:20
问题 I added some classes through http://lib.haxe.org/ and git with the correct command (haxelib install x) and, while the classes are in the haxe/lib folder, I can't access most of them. Sometimes I'm able to import a library(I get the autocomplete and everything), but when I try to compile it gives me the error Class not found . I searched everywhere and I still don't know how to fix this. I tried to add through Project>Properties>Classpath and I'd even edited the global Classpath but it still

flash crash when loading external swf (with code example this time around)

♀尐吖头ヾ 提交于 2020-01-05 13:09:10
问题 This is a AS3 project created in FlashDevelop. It targets flash player 10. I have a disturbing problem when running this code: package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; public class Main extends MovieClip { private var loader:Loader; private var sprite:Sprite; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function

flash crash when loading external swf (with code example this time around)

我只是一个虾纸丫 提交于 2020-01-05 13:09:07
问题 This is a AS3 project created in FlashDevelop. It targets flash player 10. I have a disturbing problem when running this code: package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; public class Main extends MovieClip { private var loader:Loader; private var sprite:Sprite; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function

FlashDevelop - Why does code-completion not work with mx.controls

自闭症网瘾萝莉.ら 提交于 2020-01-01 10:28:12
问题 Today's my first day with Flex and FlashDevelop. In my ActionScript file, I have this line. import flash.display.SimpleButton; FlashDevelop is aware about this and Code-completion works fine. But, when I have this line. import mx.controls.Button; Then code-completion doesn't work. 回答1: Works perfectly well for me w/o doing anything special. But maybe your project's properties got borked. Do this: Open Project Properties Go to Compiler Options tab In Advanced -> Intrinsic Libraries add the

AS3 using PrintJob to print a MovieClip

三世轮回 提交于 2019-12-30 02:33:07
问题 I am currently trying to create a function which will allow me to pass in a MovieClip and print it. Here is the simplified version of the function: function printMovieClip(clip:MovieClip) { var printJob:PrintJob = new PrintJob(); var numPages:int = 0; var printY:int = 0; var printHeight:Number; if ( printJob.start() ) { /* Resize movie clip to fit within page width */ if (clip.width > printJob.pageWidth) { clip.width = printJob.pageWidth; clip.scaleY = clip.scaleX; } numPages = Math.ceil(clip