Flex :: Flash Builder Keeps Losing Imported Classes?

Mar 30, 2010

I've been having this really annoying thing happen the past few days, that has happened before but not as frequently. I create a project in Flash Builder, import some classes, and then on occasion it keeps erasing those classes. So then I get errors in a lot of my datatypes, have to go back through my document and retype the datatype so that it reimports the class.

I know flash builder can be a bit buggy at times

View 2 Replies


Similar Posts:


Understanding Flash SWC's Imported Into Flex Builder 3 And Key Framed Animation

Mar 25, 2010

I am trying to understand what is going on in a SWC that I am importing from Flash CS4 into Flex Builder 3. Specifically I am using a SWC supplied by a Designer as the animation for a custom preloader (a subclassed DownloadProgressBar).The issue I am trying to understand is, once the FlexEvent.INIT_COMPLETE is fired, I cleanup by removing the swc by running this [code]though even after I have removed this (which is successful, as I have checked by comparing this.numChildren before and after the call) the key framed animation still continues to run (not visibly). This has been detected by the Designer placing a trace in the time line of the animation (in Flash). Can anyone tell me why is it, that even after I have removed the animation from the subclassed DownloadProgressBar, it still keeps running ? Also, is it standard practice when importing SWCs to manage the cleanup of resources from the Flash side of things (much like releasing memory in obj-c). I find it counter intuitive that removing the child from the Flex side does not stop the animation.

View 1 Replies

Flex :: Imported Flash Builder Project Unable To Open Swc?

Sep 27, 2011

I wanted to import an older FB project into the flash builder on my new pc, but I only have the filestructure. So I used 'import>existing projects into workspace'.The files seem to be intact still, but the project now gives me an error regarding an swc in the bin folder:

'unable to open 'something'in'something'.swc

View 1 Replies

Flex :: Flash Builder 4 Include All Classes Being Reset?

Jul 11, 2011

When building a Flex library project in Flash Builder 4, setting the Include all Classes flag in the library properties tells the compiler to include all compiled classes into the resulting SWC file. Sometimes this flag gets reset or ignored. The .flexLibProperties file looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flexLibProperties includeAllClasses="true" version="1">
<includeClasses/>

[code].....

View 1 Replies

Flash :: Flex - Manage Library Symbols With Linked Classes In CS4 To Compile / Debug In Builder 4?

Apr 2, 2010

I'm building a video player using Flash CS4 (hereby referred to as "Flash") to create the graphic symbols and compiling and debugging with Flash Builder 4 ("FB4"). Here are the steps I take in my current workflow: --Create the graphic symbols in Flash. I've created a few different symbols for the player, but I'll focus on just the play/pause button ("ppbutton") here. --In the Library panel, I go to the ppbutton symbol's Linkage properties and link to a class named assets.PlayPauseButtonAsset that extends MovieClip. I do not actually have an assets package nor do I have a class file for PlayPauseButtonAsset as Flash will create them for me when I publish.

--In Flash's Publish settings, I set the project to export a SWC that will be used in FB4, called VideoPlayerAssets.swc. --After the SWC is created, I create my FB4 project called "VideoPlayer" and add the SWC to my path. FB4 creates the class VideoPlayer in the default package automatically. --In VideoPlayer.as, I import assets.*, which imports all of the symbol classes I created in Flash and are available via VideoPlayerAssets.swc. I can now instantiate the ppbutton and add to the stage, like this:

[Code]...

View 2 Replies

Flex :: Display Content Assist In Flex Builder For All Classes?

Jul 16, 2010

I have a components and classes project library. Within the library, flex builder only seems to display content/code assist options for top level classes (e.g. arguments, Array) but not other classes such as VBox. Also, within the non top level classes, class properties are not provided by content assist.

View 2 Replies

Flash - Imported Classes Not Loaded Properly

May 31, 2011

I am trying to create a new flash movie. I am using CS4, for publishing movie -> flash 8 - AS-> 3.0. My issue is if I publish the movie I receive the following complier errors - > ActionScript 2.0 class scripts may only define class or interface constructs.
Attribute used outside class.
The class or interface 'flash.net.URLVariables' could not be loaded.
The class or interface 'flash.net.URLRequest' could not be loaded.
The class or interface 'flash.net.URLLoader' could not be loaded.
The class or interface 'flash.events.Event' could not be loaded.
The class or interface 'flash.net.URLVariables' could not be loaded.
ActionScript 2.0 class scripts may only define class or interface constructs.
The class or interface 'URLVariables' could not be loaded.
[Code] .....

View 1 Replies

ActionScript 3.0 :: Flash Ide Ignores Changes In Imported Classes

Jul 20, 2009

a few days ago i have started running across various errors and glitches in the app i am developing, and after a lot of time found out the following fact:

just as the title reads, flash started ignoring changes i make to classes i use, as if it has an internal cache of imported classes and refuses to check for changes. it notices when i remove class from directory, it notices when i comment out a whole function, BUT if i comment out the contents of all of the functions, leaving just their declarations, flash executes them "perfectly" well. where does it takes their contents from? how to delete the cache?

while trying to save a class at a certain point when i was dealing with this, i got a "sharing violation" error, that told me i cant save it.

View 2 Replies

ActionScript 2.0 :: Custom Made Classes Imported To Flash Movie

Jul 14, 2007

I am having an issue getting my custom made classes imported to the flash movie. It seems to ave a problem importing (or using) the class. Here is the as code I am attempting to use to import and call to a function inside of a class:[code]

View 1 Replies

Actionscript 3 :: Use Flash Builder To Create A Collection Of Classes?

Aug 11, 2010

How can I set up a project in Flash Builder for creating a collection of classes that is not an application by itself? When creating an Actionscript project it forces having a main application file, as well as sets up the whole bin-debug folder and such.

For instance, if you wanted to start coding something like Tweener, Papervision, or some other set of classes that doesn't publish to an application, how would you set up the project in Flash Builder?

View 4 Replies

Actionscript 3 :: Flash Builder 4.5 - Can't Import External Classes?

Aug 31, 2011

I just installed the trial version of 4.5 of flash builder, migrating from 4.0 and I am encountering quite a frustrating problem. For some reason in which I can not peg, FB refuses to compile anything with an import from an external class, like greensock, bulk loader etc. I keep getting a 1172: Definition could not be found for any import from my external class AS3 folder on my harddrive.

Now I did edit my build path in the project and include the AS3 folder there as I usually do in past FB projects. Even code hinting works when typing in the import lines and even making new objects from those imports. But every time I save or try to compile, such errors appear on each one consistently. This is coming from a fresh install of 4.5 btw on any Flash Professional project and I would like to use it but I can't seem to get around such a fundamental problem.

View 1 Replies

Actionscript 3 :: Flash Builder 4 Not Finding Classes, Autocomplete Not Working?

Dec 7, 2010

For some reason Flash Builder 4 doesn't autocomplete any more for new projects I create (either pure Actionscript or Flash Pro projects). But for previous projects it still works fine.For instance when I go to create a new actionscript class, when I click browse next to Superclass there are only TWO classes that come up. EventDispatcher & Sprite. Where have the rest of the classes gone?

When I try to type inside the class.. ie var mc:MovieClip... as I'm typing MovieClip nothing comes up any more.. pushing ctrl+space doesn't bring up a list of classes either. Importing classes, no code hinting comes up at all.I haven't changed anything in Flash Builder between now and when my previous projects were created.

View 5 Replies

Flash :: IDE - CS5 Builder Auto-completion Works Only For FlexSDK Classes

Feb 3, 2011

I started to use Flash Builder with Adobe Flash CS5. Everything seems to ork great, but auto code completion if FB works only for FlexSDK classes. For example, if I'll write "import fl." list with "events;ik;lang; ..." appears, but when I write "import flash." i have ".text" suggestion only. I would be very glad if someone could tell me how to fix this. I couldn't find anything in google (code completion in Flash Pro works great, only in Flash Builder not).

View 1 Replies

Actionscript 3 :: GetDefinitionByName In Flash Builder Acting Racist To New Classes After Switching To FB 4.5.1?

Aug 26, 2011

why the getDefinitionByName function works with "com.foo.Bar" and gives error with "com.foo.Rab"?My only clue is that the class com.foo.Bar was created before importing the project to Flash Builder 4.5 for PHP (4.5.1 namely).

My question is very specific, in fact you could try for yourself if you had FB4.5.1, a prior version of the same program, and a lot of time. Obviously I'm hoping to find someone who have experienced this particular issue or any related issue with similar functions.

View 2 Replies

Actionscript 3 :: Make Flash Builder Package Explorer Emulate Flex Builder's Navigator Window?

Apr 21, 2010

Does anyone know if there is a way to make the new Package Explorer window in Flash Builder emulate Flex Builders 'Flex navigator' window?

Bottom line is I don't always need to peer into SWC's, and I don't like having a 'default package' automatically created for me. Not sure why the interface wasn't made simpler, allowing access to more power and complexity only if necessary. I want to focus on the code, not on how to navigate and use the bells and whistles in the coding environment.

View 1 Replies

Flex :: Convert Flex Builder 3 Project To Flash Builder 4

Oct 6, 2009

I just upgraded to Flash Builder 4 (beta 2) from Flex Builder 3 which I have been using since it came out. Problem: All the projects that were in my workspace from Flex Builder 3 did not carry over into Flash Builder 4 (e.g. in the "Flex Navigator" view if FB3). Flash Builder 4 now uses the .FXP format to manage projects, but Flex Builder 3 did not. Is there an easy way to get all my projects back into Flash Builder 4?

View 2 Replies

ActionScript 3.0 :: Using Packages With Imported Classes?

Nov 30, 2009

I'm working on a project that imports custom classes (from external as files).

Each class is in it's own file (correctly named, located), and they import and compile fine.

I am building the text version using the Flash IDE (?), and am only using actionscript. The final version will be build using Flashdevelop.

Why does the compiler choke and give an error ("1037: Packages cannot be nested") when a package is coded in the main movie?

Isn't all as code in AS3 supposed to be contained in a package?

Here is the code that works - is this OK (in regards to package code)?

ActionScript Code:
import flash.display.*;
import flash.utils.*;
import com.company.affiliateWidget.DateExample;

[Code]....

View 5 Replies

ActionScript 3.0 :: Conflict With Imported Classes?

Sep 21, 2010

An unashamedly naive question, I'm afraid, from someone trying to get to grips with as3 classes... I have a movie clip (a car) on the stage that's linked, through the 'Class' field in the symbol properties dialogue box, to a class which allows it to move. This works fine, until I attempt to set up collision detection for a movieclip representing the track, by importing a CollisionDetection class; then, the car movement class does not appear to be imported at all. Neither does it appear to work when I include any import statement on the main movie's timeline.

View 2 Replies

ActionScript 3.0 :: Is It Necessary To Import The Classes That An Ancestor Has Already Imported

Oct 17, 2010

Is it necessary to import the classes that an ancestor has already imported?Is there a keyword I could use so that the imports are implicit when I create an inherited class?

View 2 Replies

Flash :: Flex 3 + Player 10 - Losing Extension When Use FileReference Download

Dec 22, 2010

Possible Duplicate: losing extension when use FileReference download I'm having an issue that looks common when using the FileReference class in FP10 when saving a file. The whole thing works fine as long as I don't change the default filename. If I do, then I loose the extension of the file... which is annoying >_< I haven't found any "acceptable" workaround, but the posts I've seen are from a couple of months already. So I'm inquiring hoping that something's been done regarding this issue since then =)

View 1 Replies

Flex - Importing Flash Builder 4.5 Project Into Flash Builder 4.5.1?

Jun 27, 2011

I have an AIR project that I was working on Flash Builder 4.5 which now I'm trying to import to my updated Flash Builder 4.5.1 and it is prompting me to fix some paths before the import is completed. I'm kinda clueless what I should put in those fields.

[URL]

The project access a web server to retrieve data using JSON.

View 2 Replies

ActionScript 3.0 :: Best Practice - Recommended Order In Which To Arrange The Imported Classes?

Apr 10, 2011

There are a few things regarding best practices in ActionScript that I would like to know about:1. When a class uses other classes located in the same package, I know that it is not necessary to import them.But what is the best practice ? Should they be imported, just for the sake of clarity and order or is it recommended not to import them ?2. Is there a recommended order in which to arrange the imported classes ? I am just interested if there is a general idea regarding the order.Maybe display object classes before event classes, maybe event classes before component classes, and so on.3. Is there a recommended order in which to arrange the class properties and methods Regarding the properties, private, public, protected, constants. Regarding the methods, private, public, protected, getters, setters.Again, I am simply looking for best practices and recommended practices regarding these issues, I am aware that they are not essential to the code and that each person can choose to do different things.

View 12 Replies

Flash :: Flex - Migrating A Project From Builder 4.0 To Builder 4.5 Is Producing The Error "The Required Skin State 'disabledWithPrompt' Is Missing"

Nov 28, 2011

I am trying to migrate a project from Flash Builder 4.0 to Flash Builder 4.5. After Flash Builder prompts me to choose my new SDK, I choose 4.5, Then I get the following error:" error "The required skin state 'disabledWithPrompt' is missing".

View 1 Replies

Flex :: Changing A Flex Movie To Use Runtime Shared Libraries And Losing Text In Charts?

Dec 3, 2009

I'm creating a small size Flex movies which contains two line charts, at the moment the size of the release build swf is 343KB, which is too large for our needs.

I've tried changing the loading of the SWC file to Runtime Shared Libraries, but I found that this removed the text of the charts (the text for the x and y axis). Why would the text be removed when the Framework linkage is set as a Runtime shared library?

View 1 Replies

Flex :: Prevent Variable From Losing State After Being Set?

Nov 4, 2009

I've hit a very strange issue in adobe flex and I'm not sure how to solve it. I have a popup box that is called on creationComplete before startup of my main application. The popup simply asks for an email address and then the application is enabled showing the email address in a label component.

However, when I try to access the email address from the label component called UserID.text in the application, it is always null even though it is visually present in the label box...It seems like it loses state somehow...so HOW in earth can I keep it from losing state? I need to access the label or some variable throughout the use of the application and everything I try always ends up in a null variable?The main part of the application that sets the label is here:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:controls="com.iwobanas.controls.*" xmlns:local="*" creationComplete="showWindow(true)">
private function showWindow(modal:Boolean):void

[code]....

View 1 Replies

Flex - Losing Extension When Use FileReference Download

Jul 14, 2010

I need user download JPEG file from my app, however, when user change the file name the saved file will be downloaded without extension.

For Example: I am using FileReference.download() and set the default filename as "demoPic.jpg" and user's windows system setting control file extension not being shown. So when the dialog opens a download window, only "demoPic" shown as the filename. If user saved file without changing filename, the saved file will be OK. But if user change file name, the download file will be saved without extension. is it possible to add file extension to filename when user forget it by flex code?

View 3 Replies

Flex :: Builder - Using Flex Builder With Source Control?

May 25, 2010

When setting up a source control repository for a Flex Builder workspace, what do you consider to be worth checking in? Do you exclude the workspace .metadata folder but keep the .project and other project specific files? Keep both? Throw away both? Is there a guideline you use to decide which is worth holding onto or do you do it out of practical experience?

View 2 Replies

Flex :: Update The Model Without Losing Focus In Datagrid?

Jan 25, 2010

In my Flex Project using Cairngorm, I have a model that stores a bindable ArrayCollection displayed by a DataGrid. My problem occurs when the model is updated by the responder (from a Java service, after an "update" event), because the focus located in a cell of the DataGrid is lost (the scroll position il also lost). So, I retrieve the position before the update, with DataGridEvent.ITEM_FOCUS_IN event :

myModel.focusedCell.rowIndex = e.rowIndex;
myModel.focusedCell.columnIndex = e.columnIndex;

But, from where restore these parameters ? How to trigger this update only when the model is updated ?

View 1 Replies

Flex :: Working With Data In Flex By James Ward / EmpWeb Example In Flash Builder 4.0 Beta

Jul 31, 2009

From a video on AdobeTV, I tried to play with example empWeb (LiveCycle Data Services).In Flex Builder 3 (FB3) everything works fine. When I tried this on Flash Builder 4.0 Beta (FB4) it doesn't work. When I replaced original xmlns declarations (2009, spark, halo)with declarations from FB3 (2006) it works. Could you explain why?I'm using the default SDKs (Flex 3.2 for FB3 and Flex 4.0 for FB4). I investigated this (please see 3 source code examples). Source #1 works OK in FB3 and FB4, Source #2 gives a FB4 compilation error message: [code]

View 1 Replies

Can Flash Load A Flex Mx:module Created In Flex Builder 4

Feb 16, 2011

I have a Flex module created in Flash Builder 4 as a swf file. I am trying to load and run in within a Flash application. I can get the module loaded but I can not get the flash application to access any module functions. Here is how I load the module in Flash and the error I get. If I change the module to an application type swf then it loads and runs but now I have two applications on top of each other. I would like the loaded module swf to be able to have access the Flash stage object.

ReferenceError: Error #1069: Property application not found on MyModule__mx_core_FlexModuleFactory and there is no default value.
var loader:Loader = new Loader();

[code].....

View 1 Replies







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