ActionScript 3.0 :: Set Classpath For As Files In Flex?

Apr 6, 2008

How can I set the classpath for .as files in flex?

Im using the free flex 3 SDK, with a plain text editor... And I want to be able to import files from my previous libraries.. So how do I set the classpath to those?

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Add Core Classes Of Flex To My Classpath?

May 25, 2011

I want to open/convert a class in Flash that has was build for Flex. Now there are includes like StringUtil wich are easy to rewrite and others like bitmapasset which are not found.Is it possible to add the core classes of flex to my classpath?

View 1 Replies

ActionScript 3.0 :: Classpath Missing On Mac

Jul 21, 2009

I have many flas with Document Classes associated to them.  I have been using them successfully on both Mac and PC for over a year now.  But just last week when ever I transfer the files to my Mac to work on them I get the error class not found on your classpath one will automatically be generated upon export.
 
Is there parts of the files that can become corrupted but continue to work on the PC? I have not changed anything in my classpath recently and some files have retained the link and some have not.  I have tried transferring the files many ways now and even tested them on other macs and both macs have the same problem.  I've emailed the files, used a flash drive, done interenet transfers (FTP) and I still have the same error.  I can open the files fine too.

View 7 Replies

ActionScript 3.0 :: Timelined Object With Classpath?

Oct 12, 2010

if a object already exists(not created dynamically) on the time-line how do i reference its instance name im loading the class like this

class is (Scene.as)
var Scene2:Sprite = new Scene()

and its extending Sprite

I've also tried extending movie clip and that didn't appear to help,

is the extend part what gives it the reference to the time-line of the script that initiated it, or was i way off?

View 2 Replies

Professional :: Setting Classpath For Papervision In Flash CS5?

Jul 17, 2010

I keep trying to get started with Papervision, but I must be entering the classpath incorrectly as I keep getting errors that the compiler cannot find the classes.Is there some kind of bug with setting the classpath on a mac?I checked out the papervision stuff so it sits in:
 
/Applications/Adobe Flash CS 5/Papervision/as3/trunk/src/
 
Inside the src folder is a folder called "org", which contains "papervision3d" and the folders of classes.To set the classpath, I've gone to Preferences, chosen ActionScript, clicked on the ActionScript 3.0 button at the bottom, clicked the plus sign, and then clicked on the little folder button to add a path to the Library box (the middle box). I browsed and selected:
 
  /Applications/Adobe Flash CS 5/Papervision/as3/trunk/src/
 
I thought at this point (after quitting and restarting Flash) that if I created a class file that had, for example,
 
import org.papervision3d.cameras.*
 
that it would work -- but it doesn't. It only works if I save the .fla and .as files themselves in /Applications/Adobe Flash CS 5/Papervision/as3/trunk/src/, in the same folder as the "org" folder. And I guess this means that the path in the Preferences setting is useless. 

View 2 Replies

ActionScript 3.0 :: ClassPath Errors On Compiling Main FLA File

Oct 13, 2010

The company I work for outsourced the development of a flash project which I have now taken over. We had a handover from the developer and all was working well. However, I have moved all files onto a new machine and now I get several errors when I compile. The project is set up as follows (this isn't all the folders):
mainFolder
mainFolder-in
mainFoldersrcfolderB
mainFoldersrccases
mainFoldersrccontainerMain.fla (and Main.as)

When I compile Main.fla (all fla's are set to compile to the bin folder) I get the error -
1046: Type was not found or was not a compile-time constant: PageEvent.
Which refers to this line in the class -
protected function pageEventHandler(e:PageEvent):void

PageEvent is a class that is found in the folderB directory - mainFoldersrcfolderBevents
It is imported into the Main class -
import folderB.events.PageEvent;
3 errors appear, all the same for the 3 times the var e:PageEvent is referenced.
It seems that the main.fla/.as cannot find PageEvent class.

Another example is this:
In the directory mainFoldersrccases is a class Case1.as/fla
this class extends CaseSpaceCore which is found here - folderB.pages.cases.spaces.CaseSpaceCore; and is imported into Case1.as
When I try to compile I get the error -
1017: The definition of base class CaseSpaceCore was not found.
and then other errors about overridden methods that is cant find because it cant find the base class.

I am using Flashdevelop (if that makes a difference) as did the developer. I have tried adding the class path in the project settings to srcfolderB but this made no difference.

View 5 Replies

Actionscript 3 :: Linking A Class To A Symbol, Classpath Not Found

Feb 25, 2010

Im having problems with classpaths. I have used them before with "import" but I'm not able to link a class directly to symbol in the library.

I have a class c:/myfolder/src/myclass.as . In prefernces > AS3 settings, I have c:/myfolder/ as default classpath. I click linkage on the symbol and enter src.myclass . When I click the checkmark, it says 'class not found'. I am able to do: *import src.myclass; and attach the class to an instance on th stage. That works fine, but thats not what I need to do.

View 2 Replies

Flash :: Professional - Unused LAN Classpath Makes To Compile Very Slow

Mar 2, 2011

I'm working on CS4 / Windows 7. I recently moved from XP where everything worked fine. My problem is that compiling any movie now takes about 40 seconds longer than before. I have been able to narrow down the issue to this. There is folder in my classpath which is on a local network. It is this folder that is causing the issue. Plus, even if this folder is not required at all to compile the movie it slows it down anyway. As soon as that folder is removed from my classpath everything works as it should -- of course, for movies which don't require that folder to compile :-) --. Having said that removing the folder or changing its location is not the solution I'm looking for.

View 1 Replies

ActionScript 3.0 :: Compiler Favors 'root Classpath' Definition Over Import Statements

Jan 28, 2010

I'm wondering if I'm the only one with this error. Is it a quirk or a feature? Should it be reported to Adobe as a bug?I found this out (after a while of frustration) that whenever I have a class in the root folder of the global classpath (or even in the same folder as the FLA, just not arranged into a package), even if I use an "import" statement for a "packaged" class with the same name, the compiler will still fetch and use the "global" class definition.[code]

View 6 Replies

Flex :: Performance - Printing From AIR/Flex Application Causes Large Files Being Sent To Printer?

Oct 25, 2010

I am working on an Adobe AIR (2.0) application that contains a feature to allow users to print documents (such as salary slips). Those documents are originally in PDF format. Due to circumstances we cannot directly display those PDFs in the AIR application (for example using flash.html.HTMLLoader). Therefore we convert the PDFs to SWFs (using the pdf2swf tool, see The SWFs are loaded into the application using a mx.controls.SWFLoader, like so:

<mx:SWFLoader
id="salarySlipImage"
loaderContext="{someLoaderContext}"

[code].....

View 2 Replies

Flex :: Flex - Decompress Zlib Files Created With ByteArray.compress?

Dec 21, 2010

I work on a Flex application that creates compressed files and uploads them on a server. The files are created with ByteArray.compress method, which is zlib compression. I can decompress them using Python API on the server but I prefer to keep the files compressed there. I want to be able to download and decompress the files later, however WinZip and WinRar fail to decompress them. When I google for zlib utility, I only find zlib dll library. I need a simple application for Windows (and/or Linux)

View 1 Replies

Flex :: Build Several Files In Maven Flex?

Jan 31, 2012

I can use Maven with FlexMojos to generate swf file, but because I have several mxml files need to build, could I build them in 1 Maven pom file?I know if I separate them into several projects, Maven can build them. But because these mxml files have some shared functions, it's not easy to manage if I separate them.Another question is the size of swf file. The original file size build by Flex builder is about 80KB, but the file size by Maven is about 800KB. Is it normal?

View 2 Replies

CSS :: How To Have Constants In Flex Files

Feb 18, 2010

How can I have a constant in a Flex application which I could apply at several places in a Flex CSS file? For example I may have a background color which is the same in several UI components and then I would like to have this color set in only one place and reused in all style clauses. Something like ...

public static const myColor = "#00FF00"...
component1 {
backgroundColor: myColor
}
component2 {
backgroundColor: myColor
}

View 2 Replies

Xml :: Merging Two Files In Flex?

Mar 25, 2010

how to merge two xml files in or two xmllist objects in Flex3 ActionScript?

View 2 Replies

Flex :: How To Play MOV / M4V Or M4A Files

Mar 26, 2010

Is it possible to play these files in Adobe Flex or flash?

View 2 Replies

Flex :: Different Size Of .swf Files?

Jan 12, 2011

I have a flex project with two .mxml files. Therefore, there are two .swf files in the bin folder. The size one of them is 500Kb and another 3Mb. Why are they so different? I assume some files with embedded images are not included in the first one. But why? All files in one project in flex builder.

View 2 Replies

Flex :: Jsp - Caching Of Swf Files In Application

Aug 21, 2009

I've created a Flex application and the size of the swf file is ~900KB. My trouble is that the files are not getting cached. When I launch the application for the second time, the swf file is fetched again from the server. I'm including the swf file in a jsp, and I'm not modifying any HTTP Caching Headers. I assumed that the swf files will be cached automatically. Isn't it so? How do I forcefully cache the file? Do I need to provide anything in the MXML code or just a response.setHeader("Cache-Control","max-age=100"); is enough? Can anything be done from the flex side itself?

View 2 Replies

Flex :: Get A List Of Files In A Folder?

Dec 2, 2009

what I need to do is get a list of files in a folder in a Flex application from the web (i.e. all the files in a location like [URL]

View 2 Replies

Flex :: Flexbuilder Keeps Compiling Old Files

Feb 28, 2010

I'm working on a project on Flex AS3.0 project in Flex Builder. It was working fine, I changed the name of one of my classes and all the related process. Now when I compile dubug the thing, it keeps on compiling an older version even if I comment all the code in main. It still compiles the old files. I have cleaned the project , but still the same old problem.

View 2 Replies

Actionscript 3 :: Creating Gif/bmp Files With Flex?

Mar 15, 2010

public function bmdToStr(bmd:BitmapData,width:int,height:int):String {
var encoder:JPEGEncoder = new JPEGEncoder();
var encBytes:ByteArray = encoder.encode(bmd);
return ImageSnapshot.encodeImageAsBase64(new ImageSnapshot(width,height,encBytes,"image/jpeg"));
}

As of now, I am creating JPEG image from bitmapdata as above. I can use PNGEncoder for creating png images as well. How do I create .bmp or .gif files?

View 1 Replies

Load Remote Swf Files In Flex?

May 5, 2010

I have a SWFLoader in mxml of my flex app.[code]...

I get the alert popup (that is the loadComplete is called) but do not get any swf loaded, not able to view anything. What can be the problem, am I missing something or some security issue? I also tried the image control to load the swf. Moreover, the swf are pdf files converted to swf so can this be an issue of different frame rates between flash and flex ?

View 1 Replies

Flex :: Can't Open Flash Files

Jun 3, 2010

I'm trying to create a rotating cone using papervision where all the segments can be filled with a color / image separately. So just like you can use a MaterialsList to render all the sides from a Cube separately.

View 1 Replies

Flex - How To Install Air Files With Air2beta

Jun 10, 2010

I have some troubles installing air files that've been built with air2.0beta or air2.0beta2 They both do not install (error message: 'your need an update to install this air application) even though I've got the latests Air2 runtime installed.

View 1 Replies

Flex :: Flash Catalyst - Where To Look For SWZ Files

Sep 3, 2010

I don't do flash myself: in this company, flash is generally used just for design elements, so the designers build the flash and my job is just getting it onto the site. All fine so far, but now one of the designers wants to move to using Flash Catalyst.

1. Flash Catalyst outputs one .swf file containing the application.
2. External files (images, videos, audio files) may be referenced, but by default are embedded into the .swf.
3. The flex framework is stored in .swz files. These files are signed by Adobe and therefore flash considers them safe to store in a "flash cache" separate from the browser cache. These framework files may be reused on any other site, and therefore reduce download times.
4. If you don't have the .swz files, and the person viewing your site doesn't already have them cached, they can be downloaded from the Adobe site.

Can I have the .swz files stored anywhere on my server, or do they need to be in the same folder as the .swf? I assume they can be anywhere, but I'd have to tell Flash Catalyst where to look for them.

View 1 Replies

Flex :: Compile .FLA Files Using Maven

Nov 16, 2010

I am using flexmojos to build my flex projects. I also have a flash project containing .fla files which needs to compiled into swf have I thought was to use a command line script to do it and force maven to call the script. Something like this

View 1 Replies

Flex :: Pass Variables To FXG Files?

Dec 18, 2010

I made a drawing in Illustrator and exported it as FXG file to be used in my Flex App which is working fine. But now I want to change some settings inside FXG programatically, namely changing color inside the FXG file. How do I do that?

View 1 Replies

Flex :: Possible To Upload Multiple Files At Once?

Jan 20, 2011

I need a component where user can click on browse button and select multiple files using ctrl key and upload them at once. Please note that it is dfferent from clicking add more files each time a file gets uploaded. Is it posible in flex?

View 2 Replies

Flex :: VideoDisplay Can Play MP3 Files?

Apr 12, 2011

Is it possible to play MP3 files using the VideoDisplay or VideoPlayer components?

View 2 Replies

Flash :: Compile .AS Files Through Flex 4

Apr 22, 2011

I've got the environment variables in Win7 set-up so that I can compile .as files through prompt.But it shows some warning about not having FactoryClass, so I can't compile using shared libraries. How can I compile the file with classes and libraries imported?I'm trying to compile with mxmlc file.as

View 1 Replies

Flex :: Secured Streaming Of Flv Files?

May 13, 2011

I want to play a flv file over http using a custom player in flex. The video content has to be made secure due to piracy reasons. Our idea is to encrypt the byte array of the flv files and decrypt it in the player using NetStream class in Flex.The problem is that Netstream class requires the complete byte array to be appended using appendBytes() but th size of the file is huge so its not a valid approach.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved