When I export assests for actionscript the defaul package is empty it there change to change it? To each time I export library asset for actionscritp default value for class field will contain package?
When creating an Actionscript Project in Flex builder 3 an application class is automatically created and dropped in the root of your source folder. In my case my source folder is called src/.Is it possible to change the default application class to a class which is not directly in the root of the src folder? It seems when right-clicking on class files which are in sub packages the 'Set as Default Application' option is not selectable.Is this done on purpose by Adobe to enforce all pure AS projects to have their application class residing in the top-most package?
I have classes witch resides in this package :com.network.interface_as. When I try to load one class from that package in another class in the same package like this:
My code is an external .as file. Google provides this code on their demo, which contains the this keyword:
[Code]...
Notice that I have 4 calls to console.log. The first 3 fire, but after the new GATracker statement, the 4th does not fire. I have a feeling that I'm overriding the entire package with the object created from new GATracker when I should be passing a different context. I believe the correct context I should pass is whatever this defaults to when not inside of a package/external file, I assume it references the main stage object.
I'm creating some custom components and backing code. I've created a Flex library project in Flash Builder which compiles to a SWC. The problem is now that all my MXML files get compiled into classes in the default package, making the whole thing a big mess.Is there a way to set a package declaration for MXML files? After all it just gets translated into AS3 classes. This seems to work in regular Flex projects using a namespace declaration so I'm at a loss how that is supposed to work. The other option is building out all the components in AS3 which I'd like to avoid.
I know you can change Flash builders default "Main source folder" by right clicking on the project properties and going to the "Flex Build Path" ...but how do you change that by default for all new projects? I prefer the folder name "src_flex" rather than "src" when I create my projects.You can do this for PHP in "PHP>>New Project Layout" preferences but I don't see anything similar for Flash Builder or know if there's a (hidden) file I could edit to do this.
I am using Flash CS5 and am getting a very odd error when I compile. All my classes are in the package com.es3.as2. In the first frame of my movie, I have the following code:
import com.es3.as2.Shell;
I have my classpath set correctly. When I compile, I get this error:
, Line 1 There is no class or package with the name 'com.es3.ProgressBar' found in package 'com.es3'.
This is odd because nowhere do I refer to a "com.es3" package. It's always "com.es3.as2".If I remove the import line, the movie compiles with no errors (but without the initialization code, it doesn't run correctly).
Is there an easy way to reset all of my variables to the way they were when I first loaded the package so that I don't have to go through all of the variables and reset them manually?
Where does Sprite class under flash display package located?I find only flash display 'BitmapData' under AdobeAdobe Flash CS3enFirst RunClassesFP9flashdisplay
Sometimes there is a name conflict between classes in two different libraries, but I almost exclusively use one over the other. Unfortunately, the one I am using is not showing up as the first entry and I have to press the down arrow to pick it.
It seems I have no trouble pointing an FLA's document class to my project's class package when the FLA is at the same root level as the package's top-level directory. However, if the FLA is nested in a sub-directory, then relative paths to a class nested in the package will not work.example package & class location : [url]....
If someone can provide an explanation as to why nested FLAs can't point to custom packages in parent-level directories, OR demonstrate how this can be done,
public class ribbon extends Sprite { private var fallAmount,taper; public function ribbon(FallAmount=50,Taper=0.2){ fallAmount=FallAmount; taper=Taper; }
I'm working on an accordion component and I was thinking that it'd be cool if I could write a very basic one and then set it up so that it would be possible to pass in any kind of container class and child class so long as they subclassed a particular parent or implemented an interface (haven't really gotten that far yet).
What I've noticed though is that I can't setup a default class for my constructor parameter. For example I'd like to do this:
Code: public function DropDownList(containerClass:Class = ContainerSprite, childClass:Class = ChildSprite) However it gives me the following error: 1047: Parameter initializer unknown or is not a compile-time constant.
instance is a public static variable on the default class, Main. I can do Main.instance.defaultClassFunction() with no problems at all, I use it to access functions and variables from within other classes. Is it possible to use this method to call a function on the subclass, currently I have to do this,
I have two projects (created with Flash IDE), which i'd like to merge. both use the default package and have a lot of classes, some of which conflict.is there a easy way to change the package of a whole project from default to something specific?
What is the most common way to change the font of a textField within a package. I read a little bit about styling the text in the textField with CSS, or possibly embedding the fonts, but I know little about accomplishing either.
how to change the default main swf file when you package an AIR application? I've used obfuscation manually on a swf and I would like that to be the main swf for AIR.
I can include the modifided swf into AIR but cannot set it to the default swf. Should I just make the default swf as a swfloader class? and just include the modifided inside?
I wanted to design a [relatively] all purpose class to load images and SWF's with a preloader MC and error handler. I made this BUT, when I load the MC I cannot control it. i.e. I load an SWF containing an animated GIF, but I cannot say mc.gotoAndStop();
I wrote a class that performs an asynchronous loop. It needs a package name. I already have a util package, but feel resistant to put half of my classes in that package. If it really belongs there, I'll put it there, but I'd feel much better if I can find a more appropriate/specific package.
I have classes witch resides in this package :com.network.interface_as. When I try to load one class from that package in another class in the same package like this:
Code: import com.network.interface_as.SomeClass_A class com.network.interface_as.SomeClass_B{ private var class_A:SomeClass_A; public function(){ class_A = new SomeClass_A(); }}
I get error message that "class com.network.interface_as.SomeClass_A could not be loaded".