flashdevelop

AS3 [Event(name=“”, type=“”)], what is the significance?

不打扰是莪最后的温柔 提交于 2019-12-03 05:35:07
I develop with FlashDevelop3 R2 and the Flex 3.3 SDK and there are many occasions where I must use the embed metadata tag as such: [Embed(source="path/to/file")] private var Asset:Class; I understand the above all well and good, and I am thankful it exists because I do not like to open the flash IDE too often. When I am going through other authors classes lately, I have found an interesting metadata tag that I do not understand: [Event(name="", type="")] I have yet to see a situation where I require this, and furthermore I really just do not understand what it is for. Thank in advance for your

Deploying to a server and remote debugging with FlashDevelop?

混江龙づ霸主 提交于 2019-12-02 20:57:47
问题 Is there any way to automatically deploy to a server after I build a flex app, and then debug using the remote url ? This is totally possible in FlashBuilder, but I am highly hoping that it can be done in FD as well. 回答1: You can script any action you want in a batch file and then go to Project->Properties->Build->Post-build-command and enter your batch file execution line. To jump to a debug URL after compiling, just go into Project->Properties->Output, select "Open document" and type your

FlashDevelop, Haxe import CreateJS?

此生再无相见时 提交于 2019-12-01 21:38:26
I just started trying out Haxe to make a web-app, and I would like to use CreateJS, which has a Haxe extern lib thingy. I'm using FlashDevelop as my IDE. So I created a new Haxe JS project in FlashDevelop, and installed CreateJS with "haxelib install createjs". Thougg now I try to add an import to my Main.hx, but it doesn't work. My import looks like: "import createjs.easeljs.Ticker;" (got that from an example, just copied it but didn't work :s) I also added a new map "lib" to my project, in which I added the createjs stuff. The error I get is: src/Main.hx:3: characters 0-31 : Class not found

Embed mp3 in actionscript 3 doesn't work

六眼飞鱼酱① 提交于 2019-12-01 16:50:14
I have a problem with actionscript 3, especially when using the embed tag. I have this code: [Embed(source = "sound.mp3")] private static var soundClip:Class; ... var sound:Sound = (new soundClip()) as Sound; trace(sound.length); When I test the movie, I get the following output : 4501,923 Which is the sound.mp3 length in milliseconds. However, the original sound is 13.000 milliseconds. How can that be possible, can anyone help me please? Thank you. The Embed process implies a transcodification (made by the compiler), if the sound doesn't fit into the supported Flash Player Sound format you

MovieClip disappear after changing width and height in AS3

匆匆过客 提交于 2019-12-01 08:51:46
问题 I am trying to load an image from an url in as3, as follows: var myImageLoader:Loader = new Loader(); private var mcImage: MovieClip = new MovieClip(); var myImageLocation:URLRequest = new URLRequest("http://example.com/xyz.jpg"); myImageLoader.load(myImageLocation); mcImage.addChild(myImageLoader); mcImage.x = 100; mcImage.y = 100; //mcImage.width = 50; //mcImage.height = 50; addChild(mcImage); The code above works fine, but since my desire image has a different size comparing to the

Debugging iOS/AIR content on the device

六眼飞鱼酱① 提交于 2019-11-30 18:11:36
问题 I've created some flash content in FlashDevelop (v 4.0) that I've turned into an .ipa and put on the device. I would like to debug the content while it is running on the device because it is giving me some unexpected behaviour. Is debugging AIR content on the physical device possible with FlashDevelop remote debugging? How to set that up? 回答1: Yes remote debugging from FlashDevelop works with AIR iOS & Android projects (provided they share the same Wifi LAN): You need to edit the .Bat

Flash AS3: ReferenceError: Error #1056: Cannot create property

▼魔方 西西 提交于 2019-11-28 11:56:59
I am writing something in Flash/ AS3, and I came across this problem: ReferenceError: Error #1056: Cannot create property txtInput on package.name.DocumentClasss Basically I have a document class, and I can create instances of movieclips clips and compile without issues. But when I put a input text field ("T" icon in the palette) on the stage, and it refuses to compile, with the above error. I am not sure if this makes a difference, but I am writing my ActionScript in FlashDevelop, with compilation done in the Flash IDE. I also have both Strict Mode and Warnings Mode selected under Publish

Possible to use Flex Framework/Components without using MXML?

主宰稳场 提交于 2019-11-28 05:26:47
Is it possible to use the Flex Framework and Components, without using MXML? I know ActionScript pretty decently, and don't feel like messing around with some new XML language just to get some simple UI in there. Can anyone provide an example consisting of an .as file which can be compiled (ideally via FlashDevelop, though just telling how to do it with the Flex SDK is ok too) and uses the Flex Framework? For example, just showing a Flex button that pops open an Alert would be perfect. If it's not possible, can someone provide a minimal MXML file which will bootstrap a custom AS class which

Flash AS3: ReferenceError: Error #1056: Cannot create property

折月煮酒 提交于 2019-11-27 06:44:34
问题 I am writing something in Flash/ AS3, and I came across this problem: ReferenceError: Error #1056: Cannot create property txtInput on package.name.DocumentClasss Basically I have a document class, and I can create instances of movieclips clips and compile without issues. But when I put a input text field ("T" icon in the palette) on the stage, and it refuses to compile, with the above error. I am not sure if this makes a difference, but I am writing my ActionScript in FlashDevelop, with