ActionScript 3.0 :: Include Custom Package In Any Project?
May 31, 2011I'm using Flash Builder and was wondering how I can include a package created in one project into another project?
View 2 RepliesI'm using Flash Builder and was wondering how I can include a package created in one project into another project?
View 2 RepliesI'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.
View 1 RepliesIs there any elegant method to convert the #include "as/myCode.as" into something like import com.MyDomain.as.myCode.as; or something similar ?
View 1 RepliesIs it possible to create an adobe air application from flash which include the adobe Air player on it. because I do not want the users to install adobe air before installing my application means when user install my application it automatically install adobe air
View 0 RepliesIn AS3, I know how to accomplish this. One needs only to click "ActionScript Settings", and navigate to the SWC file under "SWC Files or Folders Containing SWC Files".
However, when the project is set to AS2, the "Actionscript 2.0 Settings" is a rather sparse menu, and adding the folder as a classpath doesn't seem to work.
I need to use some classes belong to mx library, but when I try to import it Flash throws me an error that it can't find this library.
How can I import it to my project? I'm using Adobe Flash Professional CS5.
how i can define a package (please i need to know where i have to put the package folder to be ablae to use it) and how to add and use it in a project and any additional useful information
View 1 RepliesI 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?
View 1 Replieshow to package entire project. I mean to say that i have large project and i want to manage all files. I have main fla file, some xml files. some .as files. right now all this in one folder. i mean to say how to say path to the main file.
View 0 RepliesI'm building Action Script project in Flash Builder. No flex, no third party libs. Pure actionscript - hierarchy of packages and classes. How do I include a plain external .as file, which is not a package or class, but just a set of statements?
View 1 RepliesI'm currently looking at structuring my teams projects into a consistent manner that properly utilises packages and is easily version-controlled (via SVN). I'm interested in any 'best practise' with regards to project structuring and how to use consistent packaging without lumping everything into a gigantic [URL] folder structure whilst maintaining that package structure. I'm also keen to use the src/bin/lib folder structure within each project.
View 2 RepliesI searched the forum, could not find questions like this so I hop this is the right forum.[code]...
how I should add this package to CS4?
I'm trying to create a custom multi-touch application that consists of a package containing about 6 classes at the moment. I'm trying to find a way to communicate between the various classes when certain custom events happen but am having a hard time making custom events.
I've tried about 5 different tutorials online for creating custom events and none of them have worked. The code is a bit extensive so I won't attach it but the specific situation I'm dealing with goes like this:
There is a drop down menu system that contains file names from an XML file. When the file name is clicked in the menu I want a custom event to be dispatched that I can pick up in another class file that loads the name of that file into a "status bar" textfield element elsewhere in the app, and later a class that will open the file and add it to the stage.
I have a number of folders that contain data for my application. These data will change a lot through the application, creating different functionality for my app. What I want to do is package these folders into a customized file, like zip but not necessarily compressed and then in some way open it through flash and look into the folders. But the user will only have to copy paste the one single package file and not 4 or 5 folders of files every time and maybe leaving something important behind.
View 0 RepliesI saw it in this site...[URL].. it says "Include code from external sources using #include".umm... does it mean I can use C code, etc. within flash??
View 1 RepliesI saw it in this site...[URL]it says "Include code from external sources using #include".does it mean I can use C code, etc. within flash?
View 1 RepliesI'm having a hell of a time trying to get a custom mask to work on a project I'm creating.
The mask I'm trying to use is applied as a pixel mask on a layer in the photoshop doc I'm working off, but I can't seem to figure out the proper way to get that layer mask imported into flash, to then compile into my .swc and be called from actionscript. (I'm coding in Flex)
Whats the proper workflow for getting a pixel mask imported from photoshop so that when I call:
container.mask = myMask;
It'll show up as the shape I want, and not just a square box the size of my shape?
Does anyone know if it is possible to set a custom default easing for all Classic Tweens in a project?
View 1 RepliesI want to display "Hello World" with calibri.ttf using only AC3. How would I do that?Found two solutions on the web but I cannot use any of them
- The Adobe documentation site requires the use of Flash CS4. (Don't know how to use this in Flex Builder)
- The embed tag method requires FLEX SDK
Is it possible to embed font with purely Actionscript 3 in an actionscript project using Flex Builder?
I created some button states in flash (swc), and I want to use them in a pure AS3 project. They are movie clips with class of neatButton_on and neatButton_off respectively. I call them like this:[code]I've also used assets, especially for different states of the same item, where I've put everything in one movie clip and then switched frames as needed. Is one way faster than the other? is there a best practice?
View 2 RepliesI want to make a custom color palette on my paint project that I am developing. Also need 'paint bucket tool ' functionality.
View 0 RepliesI need to load a custom compiler config when compiling my project with textmate (as3 project).How can i do this?
View 1 RepliesI am having troubles passing an x and y argument into a package function that creates a projectile on stage at the tank.gun's x and y.I have attached a zip of the code I am working on.[code]
View 6 RepliesI'm running into this weird thing with ASDoc. It will only document one package function per package.For example.I have these two functions:
gs.util.printf
gs.util.ftrace
In these files:
gs/util/printf.as
gs/util/ftrace.as
The only function that get's documented in ASDocs is "printf". But I know it can do more than one. As an example, in the livedocs [URL] There are more than one functions documented.
I am trying to create a custom resize event as part of a larger project to create a flexible liquid layout class.Basically, i want an object to listen for the stage.RESIZE event. If i can listen for this event from multiple objects, it solves my event firing problem.[code]
View 7 RepliesI cant "center" my project, like you can see its "fixed" (yellow lines) in the left side and I cant see "invisible" part of project... (area around the project). how can I move my project so I can see the not-project area around the project. (picture 2).
At the moment situation... (cant see that area around the project)
http://img19.imageshack.us/img19/1186/68553623.png
I have an actionscript file,it has a package name,it locate C:demo directory,like follows:
package demo{
import flash.display.*;
public class ABC extends Sprite{[code]............
Then I compile above code like following command,but it raise following error:
C:>mxmlc demoABC.as
Loading configuration file C:sdkframeworksflex-config.xml
C:demoABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.Where is wrong above command?
I am using an include file, and I've noticed that sometimes the the fla file does not refresh new changes to my include file. When exporting with "Ctrl, Enter" Is Flash loading the include file from the cache?
View 3 RepliesThis is with Flexbuilder 3.2, Eclipse 3.3.2.I am moving my development environment to a new machine. Actionscript classes that compiled in the old environment now get a compile error:
A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package.I do declare the package in these classes - I think failure to declare the package is the usual reason for this error.To add to the mystery, many classes in this project compile without errors.
I would like to add a widget board to my flash project so users can embed my project in their web page or wiget display. To see what I'm talking bout go here [URL] and click the white + mark on their widgets.If your a moderater please put this in the correct area, and consider making it a sticky so we can post new ways to impliment in different sites as they become available.
View 2 Replies