Mx.collections.ArrayCollection and others in ActionScript project?

Creating an ActionScript project doesn't seem to allow access to the mx.collections (among many other) packages.
What gives?  Is there some way to gain visibility to the those libraries?
Thanks,
Colin

answering my own question: 
check out: http://livedocs.adobe.com/flex/3/html/help.html?content=projects_6.html
or: http://www.actionscript.org/forums/showthread.php3?t=125777

Similar Messages

  • Suddenly in the middle of editing a large project the cropping and other tools stopped working. Did i hit some key or something accidently?

    suddenly in the middle of editing a large project in Aperture the cropping and others tools stopped working. Did I accidently hit something to do that?

    Maybe you hit the "p" key?
    Then "Quick Preview" will be turned on and prevent editing. Hit "p" again or use the "View" ->"Quick Preview" menu entry.

  • Archiving projects events and other files together

    Hello,
    My projects are generally a mix of motion graphics, videos, 3d and other stuff like flash apps etc. I'm now ready to archive my first few projects that i've used FCPX on. So i guess i use "Move project" to move it off my main work disk. But what do i do with the files that aren't anything to do with FCPX but are to do with the job. I ideally want to keep everything in one place. Any workflow suggestions welcomed.
    Thanks

    From what I've seen, advantages touted for using disk images in FCPX can be easily accomplished without them.
    For example:
    1) Mounting just certain Events or Projects can be accomplished manually or in combination with EMX.
    2) Consolidation of an Event and Project can be accomplished by placing them in to a single folder.
    3) Archiving or moving an Event/Project to another hard drive can be done in the Finder or FCPX.
    And creating and using a disk image takes half a dozen extra steps and adds another layer to the process.
    The only advantage I found for using a disk image in FCPX is when working on a SAN.
    - Richard

  • One Flash CC project gets stuck when publishing in IOS. It will quickly publish as Android, and other projects will publish as IOS. Not sure what to change.

    One Flash CC project gets stuck when publishing in IOS. It will quickly publish as Android, and other projects will publish as IOS. Not sure what to change.

    Thanks for the info.
    I've recently stumbled on an article on how to view the packaged file (apk) published using AIR 3.2 for Android setting (Adobe Flash CS6). All you need to do is change the extension of the file from (.apk) to (.rar) or (.zip) and extract the file as you would with any other zip or rar file. I was able to confirm that the packaged file (apk) indeed contain all the videos for the presentation. I have more than 80 videos in the presentation. All videos included in the package are of the same video format and resolution (FLV 320x240) but of different duration. I intentionally included the all the videos inside the package so I can use the presentation anywhere and anytime without the need to connect to the internet. The packaged apk file size is (1.23GB) the file includes the project's swf and xml file, the component swf and videos.
    When installed to android I noticed that the package remained as an apk file. Not really sure if android temporarily unpacks it when you run the app.
    Testing phase:
    I see no problem when I'm testing the project on my desktop computer. But when packaged and installed on my device the problem arise.
    Problem:
    I'm able to install and run the app on my device but wont play some of the videos included in the package.
    Was this due to the limited RAM or processor of my android device?
    I wanted to distribute the presentation to friends so i was trying to package it for easy access and installation on their device.
    Alternative Solution:
    I installed a third party app called SWF player by BIT LABS. Copied all the files to my device (the project's swf and component swf with the videos). The project worked like a charm the player (SWF player) and was able to run the presentation as if it was running of my desktop. All buttons and videos working properly. Although the alternative solution worked for me I still wanted to package the presentation for easy access and distribution to friends.
    Please help...Thanks in advance.

  • Actionscript project and Scout

    As I understand in order to use Telemetry I have to work with an ActionScript project. But how would I add UI components to this project? Or if I use Loader to load another SWF (with all UIs) will I be able to use Scout to it full power trouble shooting UI problems?
    Thanks

    You only need to enable Telemetry on the main SWF, not on every SWF you load.
    If you have a non-ActionScript project (like Flex), or an existing SWF, or you don't use Flash Builder, then you can enable telemetry on it with this simple tool:
    http://renaun.com/blog/2012/12/enable-advanced-telemetry-on-flex-or-old-swfs-with-swf-scou nt-enabler/

  • Is it possible to sync some collections to my iPhone and others to my iPad?

    I'm in the process of trying out LR Mobile. Is it possible to specify some collections that will sync to my iPhone only (where space is more limited) and others to my iPad?
    Thanks.
    Paula

    Yes, Numbers syncs (very well) via iCloud.  You need to activate Numbers iCloud sync on all of your devices.
    On the Mac, go to System Preferences > iCloud and make sure Documents & Data is checked.  Also click the Options... button next to Documents & Data and check Numbers.app.
    On each iOS device, go to Settings > iCloud > Documents & Data > and turn on Numbers. Also go to Settings > Numbers and turn on Use iCloud.
    After you've got things working, it's best to close down the Numbers document on one device before you use it on another.
    SG

  • Unable to map nested java classes and objects in actionscript using flex

    Hi All..,
    Im a newbie in flex and actionscripting...,I however have a task assigned in this domain and goin insane since a week now with this problem...
    Problem explained:
    I have a class called Unit that inturn have many other classes like for example unit has an engineer class,,,Im not able to access the attributes of engineer using the unit class...that is unit.engineer,engineerid is giving me a null...however attributes unique to unit are accessible...
    Please help me out with this...,this problem has already eaten up my deadlines...
    Any help would be appreciated and thankz in advance..

    Thank you for the swift reply...,
    I actually have three java classes Unit , Engineer and UnitretrievalRemote....
    Unit contains engineer and also UnitRetrievalRemote has methods to retrieve unit which inturn should return engineer...,However i hav actionscript classes for both engineer and unit and mapped it apporopriately using the remotetag...and also my remote object is defined with a destination...
    The below code is my Actionscripting code included in mxml:
    import UnitScript.Engineer;//These are my Action Scripting Classes
    import UnitScript.Unit;
    import mx.collections.ArrayCollection;
    import mx.collections.ArrayList;
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.rpc.events.ResultEvent;
    public var unitIds:ArrayCollection;//I'm passing an array from java end
    that retrieves the unitId's from the db using hibernate...
    public var index:int;
    public var unit:Unit;
    protected function initData():void
    ApplicationService.getUnitIds();
    //This is the remoteobject call using blazeds to load the method during application start from java..
    private function setUnitIds(event:ResultEvent):void
    unitIds  = ArrayCollection(event.result);
    private function setUnit(event:ResultEvent):void
    unit = Unit(event.result);
    //mx.controls.Alert.show( "Compling" );
    //mx.controls.Alert.show( "Engineer Method" +unit.engineerId);
    //mx.controls.Alert.show( " Engineer=="+unit.engineer) ;
    unitIDText.text = String( unit.unitId );
    customerName.text = unit.name;//displaying the contents fetched from the backend in the panel...
    setEngineer(event);
    private function setEngineer(event:ResultEvent):void
    unit.engineer = Engineer(event.result);
    unit = Unit(event.result);
    eng_id.text = String(unit.engineer.engineerId);
    mx.controls.Alert.show( "Engineer ID Please Show"+unit.engineer);
    //This prints a null.
    mx.controls.Alert.show( "Direct Engineer Id" +unit.engineer.category);
    // This prints a null.
    Remote object mapping is as below:
    <mx:RemoteObject
        id="ApplicationService"
        destination="Destination1" >
        <mx:method name="getUnitIds" result="setUnitIds(event)"
        fault="mx.controls.Alert.show(event.fault.faultString)"/>
        <mx:method name="getUnit" result="setUnit(event)"
        fault="mx.controls.Alert.show(event.fault.faultString)"/>
    </RemoteObject>

  • SWC buttons not working in a Flash Builder 4.7 ActionScript Project

    Howdy,
    I have this BIG issue. Every button in my swc causes issues when compilling in Flash Builder 4.7. Two things will happen, one or the other:
    1. I get this error in the class that extends a linked library item:
    Error #1107: The ABC data is corrupt, attempt to read out of bounds.
    2. The swf compiles with no errors but all buttons display the wrong art.
    Both problems go away when I remove the buttons.
    I found this article:
    http://inflagrantedelicto.memoryspiral.com/2012/12/flash-builder-4-7-useflashsdk/
    I tried this solution but it did not work.
    This problem occurs with all my projects. I'm creating SWCs via Flash Pro, and using them in a Flash Builder ActionScript Project.
    Does anyone have any solutions?
    Thanks!

    Hi,
    I followed the directions here: http://inflagrantedelicto.memoryspiral.com/2012/12/flash-builder-4-7-u seflashsdk/
    But the only "Use Specific SDK:" options are Flex 4.6.0 and Flex 3.6a.
    When I select Flex 4.6.0 (under "Use Specific SDK:"), I get errors, it seems that some sub classes don't have access to their parents protected methods and properties. The only way to fix this is to delete the project and create it again.
    I downloaded the apache flex SDK, and added it via the Flash Builder preferences. Then went into the project and set "Use Specific SDK:" to the appache flex. This brought up more errors, double clicking the errors wouldn't take me to any class, they where mostly something about bitmap...
    And the only way to fix it is to delete the project and create it again.
    Should I not use Flash 4.6? or not use SWCs? This is really frustrating.

  • How do I create an instance of RemoteObject in Actionscript project?

    I have created a class as below but, it keep saying that unable to find the "RemoteObject" class can't be found("Type not found").
    Thanks for your help,
    BaBo,
    package custom.util
    import flash.events.Event;
    import mx.rpc.remoting.mxml.*;
    import mx.rpc.remoting.RemoteObject;
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    public class RemoteObj
    private var ro:RemoteObject;
            public var lastResult:ArrayCollection;
    public function RemoteObj()
    public function remoteobj():void
    ro = new RemoteObject();
    ro.destination = "ColdFusion";
    ro.source = "";
    ro.showBusyCursor = true;
    ro.endpoint = "";
    public function getName(id:String):void
    var obj:Object = {badgeId:id,serial:123};
    ro.badgeIn.addEventListener("result",ResultHandler);
    ro.badgeIn();
    public function ResultHandler(Event:ResultEvent):void
    trace("Got it");

    Hi,
    Remove this line from the import statements and try
    import mx.rpc.remoting.mxml.*;
    Importing RemoteObject from both  mx.rpc.remoting.mxml and mx.rpc.remoting packages creates ambiguity
    Message was edited by: Subeesh Arakkan

  • 1067: Implicit coercion of a value of type void to an unrelated type mx.collections:ArrayCollection.

    Here is what I have going on.
    When a button in my app is clicked it will instantiate a new object called ButtonCommand, within that object I create a new instance of a ListVO called vo.  I then reference my model object that also has a separate instance of the same Value Object ListVO class, reference its properties and place it into the corresponding property of the new VO object. Here is the code.
    var vo:ListVO = new ListVO();
    vo.name = model.list.name;
    vo.id = model.list.id;
    vo.amount = model.list.amount;
    vo.category = model.list.category;
    Within that same ButtonCommand class, next line I am trying to add the new ListVO instance to an arrayCollection that is also referenced from my model object, so here is the code for that.
    model.listCollection = model.listCollection.addItem(vo);
    I get the following error : -1067: Implicit coercion of a value of type void to an unrelated type mx.collections:ArrayCollection.
    And here is my getter/setter for the model.listCollection.
    public function get listCollection ():ArrayCollection
          return _listCollection;
    public function set listCollection(value:ArrayCollection):void
          _listCollection = value;
    Any Ideas?

    I thought model.listCollection is an ArrayCollection?
    model.listCollection is an ArrayCollection as shown in the example model code a few posts back.
    public class Model extends Actor
         //- PROPERTIES - //
         //-- other properties are here
         private var _listCollection:ArrayCollection = new ArrayCollection();
         public function Model()
         super();
         //other getter and setters here
         public function get listCollection ():ArrayCollection
         return _listCollection;
         public function set listCollection(value:ArrayCollection):void
         _listCollection = value;
    I am finding this to be very odd, seems like a simple getter setter situation, but I feel I must be missing something. The code trace(model.listCollection); should trace out as an ArrayCollection and not the VO object I am trying to add to it. Also when i run the code model.listCollection.addItem(vo); it should add the vo to the array collection through my setter, but yet it seems to try to access my getter.
    I took Kglads advice and traced out  _listCollection within my getter before my return statement and it returns [object ListVO]..... confused for sure. I am going to change the _listCollection property in the model from private with a getter/setter to a public and see what happens.

  • Large applications - Labview and other programming languages

    Hello Labview Users,
    as the forum saw this very interesting thread about large applications programmed in Labview
    (see: http://sine.ni.com/niforum/niforum?requireLogin=False&forumDU=http://forums.ni.com/ni/board/message?... ) I would like to ask the community about their experiences with Labview applications in combination with other programming languages.
    In advance: I have several years of experience in programming Labview applications starting from quick-and-dirty solutions which had to run within few hours and complex test solutions. I saw Labview growing and becoming better with the released versions and lot of things I missed in former times got implemented in the meantime. Actually I have to develop a complexe ATE solution with numerous equipment to control and numerous data to be captured and archived. Despite the Verison 8 I still feel still some drawbacks of the LV concept which let me hestitate to setup the solution completly in Labview:
    1) It is alway hard to re-use code of complex applications since it is not possible to do some kind of global search an replace of functions
    variables etc. It nearly impossible to re-use approved code structures (e.g a state machine) if the "inner part" is changing more the a little bit.
    2) If the application requires a certain flexibility (e.g. exchangeable test equipment of varying vendors) this is hard to implement since you have to define a lot of parameters through your hierarchy if you dont want use global variables which slow down your application and hide
    the code functionality.
    3) Despite modern PCs the look and feel of LV applications appears somewhat slow compared to other applications. For complex user interfaces the polling methode generates a lot of complex code. (I dont have expierence with the event-structure).
    Now my questions:
    Do you have experience of implemention of complex solutions dividingthe code modules using Labview and other languages? Which other
    languages did you use? Why did you use these languages (speed, flexibility of text based code, available library functions)? Did you found out this to improve your development time and code maintainibility?
    (I concider a solution where I do the single tests with Labview-VIs but delegate all the test sequencing and data collection stuff written in PERL which allows really very compact code)
    I'm curious what your experiences are.
    rainercats

    Given that you're asking these questions in a forum for LabVIEW users the opinions given are going to be somewhat slanted towards the general like of LabVIEW. I've been working with LabVIEW for a long time, ever since 2.something on a Mac. I've written numerous large-scale applications as well as "mundane" instrument drivers. As you've noted you're experienced with LabVIEW, so you know some of its strengths and weaknesses.
    To address your specific questions:
    (1) Yes, that has always been a limitation in LabVIEW, but I don't believe it is an overriding one to choose C over LabVIEW. Putnam provided one workaround for the search and replace of VIs. Once you've programmed in LabVIEW long enough you get used to doing it this way. Is it clumsy? Yes. As for the re-use of code structures, that's not entirely true. You can create a "template" VI (a regular VI, not a .vit) that contains the code you want to re-use and place in your palette with the "Merge VI" option set. That way you can select it from your functions palette, plop it down on your diagram, and you get the "template" VI's diagram placed right into your new VI.
    (2) This is not something that is specific to LabVIEW, as this exists with any programming language. It's not the language that limits you here, it's how you've designed your code. In a language like C++ you would go with classes. You can do the same thing in LabVIEW. IVI is another option (though not preferred by me).
    (3) As Putnam mentioned, you should be using the event structure.
    Other thoughts:
    The biggest strength I see with LabVIEW is that each VI is a miniature program, which allows development and debugging of functions a snap. With a language like C you have to write another program to call that function in order to debug it. The biggest weakness? I would say user interface. Yes, even with the event structure. Don't get me wrong, the event structure has vastly improved the way user interfaces and event handling in general are done with LabVIEW, but it simply doesn't hold muster to a program written in C or VB. ActiveX anyone? LabVIEW still doesn't do ActiveX properly in terms of actually getting the controls to work. Programming ActiveX controls is just plain aggravating what with all the property nodes taking up so much diagram space.
    It certainly makes sense to use the best tools available to you to get the job done. In my recent projects I had to write software to run automated tests on some products my company made. The test modules were written in LabVIEW. The tests executive was a proprietary engine driven by a SQL Server database. I had to write a "wrapper" DLL that interfaced between the LabVIEW code and the executive since the executive hadn't been designed to call LabVIEW DLLs directly. This allowed us to use LabVIEW as the preferred language for developing the test modules and let the guys who were fiddling with the test executive do their bit. Of course, TestStand's premise is basically that.

  • Charting components for actionscript project

    hi -
    I have an actionscript project going (ie, not flex) and I want to use some kind of charting components
    I'm complining as desktop appilication, ie, I am running on the AIR platform
    because it's an actionscript-only project I dont think I can use any of the mx.* classes -- is this true? would be good to confirm that
    given that, I think my only option is to find a third-part charting package that's AS3-only
    any suggestions?
    thanks

    Tried compiling it using the FlexBuilder IDE? There's nothing
    wrong with your code, so it sounds like your compiler doesn't know
    where to find the libraries, or is looking in the wrong place. Are
    you giving an explicit library-path argument?
    http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=L iveDocs_Parts&file=00001500.html

  • ArrayCollection and contains

    I have created an array of multiple objects, and want to be
    able to search in the array as I loop over rows in a datagrid to
    determine whether to add an entry to the array (if not present). At
    first I tried using indexOf, but that doesn't work if the array has
    multiple named values. I switched to adding the array to an
    arraycollection and am trying to use arraycollection.contains...
    Not having any luck, so am curious to see syntax for checking
    on the existence of a value from the array in the array collection.
    Surely it has to be easier than I am making it - here is my latest
    attempt:
    function testArray() {
    var test:Array = [{Classname:"class
    10",data:1},{Classname:"class 11",data:2}];
    var testAc:ArrayCollection = new ArrayCollection(test);
    for (var i=0;i<test.length;i++) {
    Alert.show(testAc.contains('class 10').toString());
    Hopefully someone has already done this or something similar
    Ethan

    Ethan,
    If you are going to this much trouble, you might as well
    simply capture the Classname property and push it into a seperate
    array, then go back to using indexOf.
    var nameArray:Array = new Array();
    for (var index:int=0 ; index<test.length ;index++){
    nameArray.push(test[index].Classname);
    var isItHere:int = nameArray.indexOf('Class 1');

  • 4.7 actionscript project with two .as files

    hi,
    Using FB 4.7 to make actionscript project with two .as file: Main.as and GFX.as. There are variable in GFX that Main cannot access. WHat do I need to do to the GFX.as file to make the variables it declares readable by Main.as?
    Thanks
    GReg

    Reason 1:
    put public before var . Example: public var foo:Number
    Reason 2:
    the variable that you can't load in Main.as should be inside function GFX() body. Example:
    package {
         import flash.display.MovieClip
         public class GFX
              public function GFX()
                   public var foo:Number  // Put your variables here that can be load by another class
              function anotherFunction(parameters:Number) // Another function starts here
                   foo = parameters
    Reason 3:
    In Main.as, put import GFX after package {

  • ActionScript Project - Export classes in frame 2?

    I have a holder swf that loads in a swf that has its own built in preloader. Problem is those preloaders are not seen. The loaded swf only displays after it is 100% complete. On its own, the swf with preloader works fine.
    I created the preloader by using the Frame metadata tag:
    (import classes etc.)
    [SWF(frameRate=60, width=900, height=580, backgroundColor='#2A3146')]
    [Frame(factoryClass="screens.Preloader")]
    public class MainClass extends Sprite
    Then in the Preloader class when all is loaded:
            private function onLoaded():void
             this.nextFrame();
             var mainClass:Class = Class(getDefinitionByName("MainClass"));
             if(mainClass)
                 app = new mainClass();
                 addChild(app as DisplayObject);
                app.start();
    In the holder swf it does something like this to load the swf:
                gameLoader = new Loader();
                gameLoader.load(new URLRequest(gamepath));
                gameLoader.contentLoaderInfo.addEventListener(Event.INIT, onGameLoadStart);
                gameLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onError);
            private function onGameLoadStart(e:Event):void
                preloader = gameLoader.content;
                addChildAt(preloader,0);
    I thought this was the to do a "export classes in frame 2" kind of thing in an actionscript project, and it works great on its own but not when loaded inside another swf. Is there something I'm missing?
    I know I could just built a preloader in the holder swf, but the holder swf is loading in games that all have a unique style on thier own and the games' preloaders all dipict its games style.
    Thanks.

    You were right. It was the Loader not having the size. After your post I checked the to see if the server was serving with the right mimetype and with no g-zip compression. Everything was in in correct order. Then I checked from my connection at home and everything is loading as intended. Come t find out its something with our firewall. When checking from work and the swfs are on a server outside our firewall the total bytes are unknown. If they are on a server within our firewall they are fine. (Most problematic in Webkit browsers). So I guess i was going about it the right way. Thanks for your help.

Maybe you are looking for

  • How do I get contact names to appear in the Verizon Messages browser version?

    Hey Guys, I just got the S5 and was giving the Verizon Messages app a shot since Mighty Text is acting a little wonky with Kit Kat and won't sync outgoing browser texts with the phone. With the VZW Messages app sending and receiving texts from my pho

  • Business connector Error Clarification

    Hi This is regarding the error: <i>"Login attempt as user dtinet\invista-b2b on host whex004 failed"</i> The inbound messages to the BC system had stopped abruptly. The messages were in our server mailbox; but BC is not fetching those. I checked the:

  • XSLT call Value Mapping

    Hi Folks, please, i need a step by step Solution for calling Value Mapping with XSLT Mapping Program. best regards Michael

  • Partywise & Itemwise purchase register query

    Dear Expert, I am new in SAP. I need Partywise & Itemwise purchase register query. BR Deep

  • No JSESSIONID cookie found in log-in response

    The below code keeps throwing the "No JSESSIONID cookie found in log-in response" Public Sub Establish() If Not sessionId Is Nothing Then Destroy() End If CheckUsernamePassword() Dim req As HttpWebRequest req = WebRequest.Create(GetLogInURL()) req.He