How would I go about compiling just AS3 in CS3? I tried having my .as files in a folder then creating a new .fla from within CS3 in the same folder but I cant seem to get any output.
It seems it isn't possible at runtime to change styling defined in CSS files, ex.: colors. This is seemingly because the CSS files are compiled into SWF. Is it possible to externalize styling information in CSS (or any other format) without compiling it to SWF file so that it can be changed easily at runtime just as normal CSS can be changed when it is used in HTML.
Is there any way to speed up MXMLC compiles using Flextasks in Ant in Eclipse. Compared to FDT and Flex Builder's in-built compilation, it is painfully slow.
I'm teaching myself ActionScript and the book I'm reading just got into input text capabilities. The book shows me how to link input text to a variable and output that text to the output window using trace. My question is: how can I display the text that the user input onto the actual movie. For example... if I wanted the visitor to type their name into the input text box and click Submit and then a phrase shows up with their name such as "Hold on Name, my site will be done soon." How do I reference that variable and have it actually display in my movie?
I'm having an odd problem that isn't mission critical since I can use the command line with no probs.In my earlier post http:[url]... I had problems getting the web compiler to work.Now that it's working I use this in a browser to compile: http:[url]...
and I get this error as a result:
ERROR : Could not resolve to a component implementation.
Everything is legit and the most recommended solution is that the namespaces aren't correct. I've checked those and they're fine. Other answers I've come across relate to external components causing a problem but as you can see, I'm not using an external component.Here's the kicker. If I do a compile via command line:
mxmlc topsight.mxml
it compiles perfectly.Specs are still the same from the prior post and I'm using the Flex 3 SDK.Not sure if this would help but I did the download from http:[url]... and I clicked on the Open Source Flex SDK - Milestone 3.3
I am learning ActionScript 3.0. Coming from Java world I can easily relate to strict compilation mode. I think having type safety checks at compilation time makes perfect sense. This makes me wonder, why the compiler allows a standard mode were all the type safety checks are deferred to run time? Is compatibility with older ActionScript specification the sole reason for having standard mode?
I am trying to set some public static constants on a class conditionally by passing variables to the compiler e.g. -define=CONFIG::ENVIRONMENT,'testing_server'
[Code]...
Obviously this means I have to tinker with long command line setting each time. I thought my initial approach was possible given the documentation and various tutorials I have read.
Is it possible to embed compilation date into compiled Action Script 3 file (like in C's __DATE__ preprocessor constant)?Is it possible to do it with custom date format?I am using Flex for compilation
I'm building a Flex/AIR application that connects to a remote server, the URL of which changes depending on the environment (development/production, and possibly others). For now, this URL parameter is hardcoded in my root application MXML file but it means I have to change it everytime I build my app for a different environment.Is there a way to externalize such a parameter so that when Flash Builder automatically builds my app (in development mode), it uses the development URL
I have a web application written in Flex and I'm trying to build an AIR application from the same code base using conditional compilation.
In the AIR application, I need to have import statements such as the following: import flash.data.SQLConnection; import flash.filesystem.File; but I cannot have these import statements in the web application because they are AIR only classes.
[Code]...
and similar approach to include web or AIR specific functions during compilation. The approach seems to have worked so far The only place I have run across issues is in my Cairngorm's model locator. If I put CONFIG::desktopMode around import statements in Cairngorm's model locator, it starts giving "Uncaught exception in compiler" or "1131 classes must not be nested" error. I'm not sure how to address this error!
In Flex it is now possible to use the -define compiler option to do all sorts of cool stuff.In my program, I am using the option such that some of my code is excluded by blocks like this:
CONFIG::FACEBOOK{ //Some code }
And this is working well.How do I get a similar behaviour with MXML?I want to do the same thing, but omitting/including MXML tags in this way, not blocks of AS code.
Code: class Dot extends Sprite { public function Dot():void { ring.scaleX = 1.0;
[Code]...
If I attach the class Dot to the movie clip everything is fine, but if I attach the class Dottle to the movieclip the pre-export complains saying it can't find 'ring'. however, if I use this['ring'] everything works fine. I understand WHY this is, but I don't know what I should do to make it so it works w/out have to put this[''] around everything.
I am trying to build an application which has a flex front-end and a php back-end. I am struggling to do something with this application which I couldn't figure out a way to do. I would want my flex application to show a view based on an MXML it recieves from the server as a response to some interaction in the flex application. for example, lets say there are two buttons on the current view and if i press the first button, it will load one mxml/as3 from the server, and when i click the other, it will load a different mxml. How do you think i can tackle this situation? how to do this as i've been banging my head on the wall trying to figure out a way.
I created a eclipse plugin for editing and building as3 code, the project is hosted on sourceforge, link: http:[url]...The compilation and debug functionalities are based on Flex SDK fcsh and fdb respectively.I am an experienced Java developer but new to ActionScript, so there are many things I don't know. To make my program better.
Compilation failed while executing: as. I am publishing a swf with one frame, no scripts, no graphics, nothing. This is a result of removing asset after asset from my original swf, which produced the same publishing error, in an effort to determine what the issue is. What conclusion can I draw from this? I just want it to do what it says on the tin: Publish flash to iOS apps. Why is this not possible?
I'm a senior actionscript dev and would like to start converting some of my class libraries to JavaScript, especially those that make use of bitmap manipulation and would target the canvas element in HTML.
My question is how clean is the resulting JavaScript code from a haze/haxenme compilation? Is it easy to debug?
Or would I be better off forgetting haze/haxenme and coding in JavaScript from scratch?
I moved from using the Flex Builder 3 IDE to Flash Builder a couple weeks ago and have noticed a ridiculous jump in compile times with the same project. It almost seems like every time I build it does a clean build. The project I am working with is pretty big, but when it takes more than 4 mins to build, something is wrong. I tried adding more memory to eclipse and all the tricks I could find on the web but the compile time never really changed. I am running under Windows 7 32bit, and I get the same performance from the plugin and stand alone version of the IDE.
I have a movie clip called turret that is on the screen and is instanced as Turret, I have a movie clip called bullet and that is in the library exported for AS "bullet" no quotes. Here is the website [URL] My frame (main) class is called du34
Is there a way to compile SWC files in different targets (Debug vs. Release) similarly how you can compile a SWF file with the AS3 Conditional Compiler constants?
This link shows how SWF files can be compiled with predefined compiler constants:[URL]..
But I need to know how to achieve this with SWC files instead.
Note: I'm using FlashDevelop (Windows 7) to create the SWC (if that's any help to refine the answer).
How can I attach an AS3.0 Flash Builder 4 project to a FLA file and a document for compilation? Currently I have a AS project full of files which I can't build. What should I do?
Does MXML get compiled down to as3 and then converted to flash bytecode? Also, is there a significant performance penalty to compiling mxml vs compiling as3?