ActionScript 3.0 :: Use Public Libraries That Depend On Flex Classes?

May 28, 2010

I work with Flash CS4 and lately I've been looking for certain classes to ease my work. To be more precise Atom/RSS2.0 parsing classes. But the best result I found needed me to work with FLEX. Now I can't get this to work with flash CS4. There's no apparent way to make this work. I can build my own parser or look for one that doesn't need Flex. But it looks like the future is more FLEX oriented.

EDIT : I know how Flex Code and SWC files should work. But every time I try to use them I get some bizarre error about missing classes and methods that are part of FLEX but not included in Flash...

View 1 Replies


Similar Posts:


Flex - Determine If Mx Classes/libraries Are Supported?

Feb 25, 2011

I'm writing a helper class and I want it to be used in both flex and pure actionscript projects. For example:

public static function listenToPositionAndSize(control:DisplayObject):void
{
if (mxLibrariesSupported)
{
control.addEventListener(mx.events.ResizeEvent.RESIZE, onControlResize);
control.addEventListener(mx.events.MoveEvent.MOVE, onControlMove);

[Code]...

EDIT: One simple reason to do this is: if you check the above example, I would prefer mx.events.MoveEvent.MOVE (if available) instead of flash.events.Event.ENTER_FRAME for performance issues.

View 3 Replies

ActionScript 3.0 :: Import Same Libraries In Classes?

Dec 21, 2010

Is it wrong to have to keep importing the same libraries in classes.

In almost every class I make I'm having to import these[code]...

Is it not importing the same things over and over again into the same flash file? Making the swf bigger and slower?

View 3 Replies

Actionscript 3.0 :: FP 10 Libraries - Use The Classes That Were Added To CS4?

Feb 26, 2009

Is there any way to allow CS3 to use the classes that were added to CS4? I would love to work with the 3d stuff or the File IO stuff that come packaged with CS4 with my students, but can't upgrade the lab to CS4.

View 1 Replies

ActionScript 3.0 :: Third-party Libraries And Classes?

Jan 27, 2011

At the moment I'm trying to make a game using Box2D and QuickBox2D but I'm having a problem at the moment because the Player character is actually a QuickObject I don't know how to construct a class that extends that.

For instance if I was just to create the object I want in the main constructor it would be something like this:

[Code]...

So how would I go about this?because I'm getting loads of problems one of which is the the 'World' variable can't be accessed within the Player Class.

View 6 Replies

Actionscript 3 :: Loops - Good Sound Classes/Libraries ?

Feb 11, 2011

Can anyone recommend good sound classes or libraries (open-source) for Actionscript 3.0?

View 2 Replies

Accessing A Public Variable Between Classes?

May 25, 2009

I've got two classes running...one is a document class (EgoGame.as) and another is a class linked to several similar movie clips (Ball.as).I'm trying to access a public variable from Ball.as which has been declared in the doucment class EgoGame.as.When I run the test the outputs states the following...1120: Access of undefined property _ballPlaced.Here's my code.  What I'm trying to do is remove the event listeners from the Ball.as when the _ballPlaced variable is true, so that the user can't drag and drop the balls after they've been placed in a zone.

Document ClassEgoGame.as
package
{

[code].....

View 3 Replies

ActionScript 3.0 :: Classes - Why Static’s (not Available To Any Instances) Properties And / Or Methods Can Have A Public

Feb 17, 2009

I have a question about classes. I just learn that static means that functions and/or properties are specifics to a class, but is it a synonym of private? And why statics (not available to any instances?) properties and/or methods can have a public (available anywhere else (timeline)) access modifier? PS: I just start with classes.

View 6 Replies

ActionScript 3.0 :: Multiple Internal Classes With An Extended Public Class?

Jan 9, 2010

If I have a class that extends another, e.g.,
 
package {
import flash.display.Sprite;
public class MySprite extends Sprite{

[Code]....

and extend that class, if more than one internal classes are defined:
 
package {    
public class MainClass extends MySprite {         
public function MainClass():void{}   

[Code]....

ReferenceError: Error #1065: Variable MainClass is not defined.Note that this only happens (as far as I can tell) when the public class of the package extends another class, and multiple internal classes are defined. The internal classes don't even need to be instanced or referenced to generate the error (the bare-bones code above will error out). If only a single internal class is defined, it works fine (no error).  Even if the internal class is instanced.

View 11 Replies

Flash :: Expose A Method In An Interface Without Making It Public To All Classes?

Nov 7, 2009

I have a issue where I'm working with a particular interface for quite a lot of things. However, I have a particular method that I want to be available only to a particular group of classes (basically, an internal method). [code]...

View 4 Replies

ActionScript 2.0 :: Multiple Classes Accessing The Same Variable Without Making It Public?

Dec 26, 2006

i've got two classes and i'm not extending to MovieClip. I like to attach the mc in the constructor just because i'll be working with different MC's that have the same purpose.

however, im using private var loadedMC:Movieclip and now i've got another class that needs to be able to access the instance's variable.

for example, myClass.loadedMC , but this would mean having to make it public and I rather not go that route.

View 2 Replies

Flash 9 :: Export To Movie But Not Depend On Timeline?

Aug 28, 2008

I'm trying to export a little animated logo to a video file.

Thing is, I'm using tweener animations, and it's all animated in actionscript. So there's nothing going on on the timeline, except for the first frame that contains the actionscript code and my objects in their starting position.

So when I export, it's just showing a static messed up image of all my elements, which should be hidden from start (due to itemMc.alpha = 0; on basically every item).

View 6 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 :: Where Are The Libraries? Can I Clear The Cache?

Jul 15, 2009

Where are the signed, cached flex libraries on a windows / mac / linux system? They don't appear to be in my browser cache... so where is adobe keeping them? I found the files. But can I clear the cache? After trashing the files in windows, I don't see the files get downloaded again (with fiddler).

View 2 Replies

Actionscript 3 :: Circular Dependencies In Flex Libraries?

Sep 21, 2009

I have two Flex libraries that reference each other. Both use link type "External", and I manually load then with the Loader class.I'm getting the error "A cycle was detected in the build path of project: foo".

View 2 Replies

Flex :: Mxml - Any Good Wizard Libraries ?

Sep 25, 2009

I'm looking for a good "Wizard" library in Flex before rolling my own. The important features are: Multiple custom input panels in sequence. Ability to prepopulate the data fields using an object, but cancelling at any point leaves original data unmodified. Ability to move to back and forth in panel sequence without losing data.

View 3 Replies

Flex :: Approaches / Libraries For Resize Dragging?

Jan 8, 2010

I'm currently working on a WYSISYG editor that allows the user to move, resize and rotate shapes by directly manipulating them. The resizing seems to be fairly complex when the shape is rotated. I got this working for non-rotated shapes, but it will take some trigonometric calculations to resize shapes that are rotated. The registration point is always is the middle of the rectangle because this makes rotating a lot easier. Before I start implementing this, I was wondering if anyone knew of any libraries or sample source code that does this, or could share some tips and tricks to calculate the transformations.

[Code]...

I attached a screenshot of what I'm trying to accomplish and another one that has some lines drawn onto it that should allow me to deduct the trigonometric calculations. The cross is the cursor.

View 3 Replies

Flex :: Libraries That Support Image Editing?

Mar 8, 2011

I'm looking for something that will support image rotation, multiple image layers, cropping, etc., and allow the client to customize which features are to be shown.

View 1 Replies

Flex :: Can't Automate Some Objects Which Uses Degrafa Libraries

Jun 15, 2011

In our application ,we have diagrams which make useof degrafa libraries.When this application is automated with flexmonkey any operation done on these diagrams are not recorded nor played back.

Rest of the application like filling the textfield and dropdown are working fine.

Is there any way I could automate these degrafa diagrams like clicking on it or changing the description.

View 1 Replies

Flex 4 / Apache Ant - Cannot Load ActionScript Libraries

Jun 26, 2011

I have been searching google, Apache Docs*, and FlashPunk forums looking for an answer to this: I cannot get Ant/Flex to find and compile a folder of libraries in *.AS format.

Here is my build.xml.
<project>
<!-- Flex SDK Properties -->
<property name="FLEX_HOME" value="/opt/flex"/>
<property name="MXMLC.JAR" value="${FLEX_HOME}/lib/mxmlc.jar"/>
<!-- Project Properties -->
[Code] .....

Results in many errors of the type "Definition net.flashpunk.masks:Grid could not be found" even though when I open the directories I can see the *.AS files right there. I decided to use Ant because neither FlashDevelop for Windows nor Eclipse for Linux seemto work for me.

View 1 Replies

Flex :: Large Project - Convert Swc Libraries To A RSL?

Jan 9, 2012

my Flex project has grown to over 1 Mb in size in release mode and now I am trying to cut it up into modules.

One of my SWC libraries is fairly large and I want to use it in multiple modules, so I think I can turn it into a RSL? how can I go about turning the SWC library into a RSL? I am building with Flash Builder (Flex).

View 1 Replies

Actionscript 3 :: Three D Libraries In Flex Application For Game Development

Feb 10, 2012

I am beginner in flex as3 applications. I need to develop a 3d game using flex will you the some 3d engines used for flex applications.

View 2 Replies

Flex :: Acoustic Echo Cancellation In Flash Using Native Libraries

Feb 4, 2010

I have to implement AEC in Flex video conferencing application. I know that it can not be done directly in Flash. I'm thinking to write a native application or library that will do AEC outside Flex.

As far I know Adobe Connect Pro is using some external library that do AEC. I'd like to follow this direction and do something similiar.

There comes two possibilities in my mind:

1) Independend custom AEC filter.

The custom AEC filter will be run in the background and will be processing all data from microphone and sound card and doing AEC. The echo signal will be the data that is to be played but delayed in a temporary buffer, something like this: aec(input, delayed_input, output).

I don't know if it work, because Flash microphone input doesn't know about my custom input and the same with the speakers. But how it is done in WinXP/Vista that have AEC at the system level?

2) AEC filter interacting with Flex's NativeProcess.

The filter will be run by NativeProcess. Flex app will pass microphone sound, received remote voice to the filter and return voice with echo removed and then Flex will output this to the speakers. Will it be correct?

If the 2) method is OK then I have following questions:

I will start with Speex's AEC so in what format should be the data pased from Flex? If I choose Flex Speex codec for sound compression can I pass it directly to the speex library? Will be the performance OK? Calling NativeProcess library every sound frame buffer can be time consuming I think. Why there is no AEC implementation in AS3 that can be used directly from Flash? As far I know to do AEC you must have echo data and microphone data (in Flash 10 there is direct access to the microphone). There is definetly something that is stopping doing it like this but I don't know what it is yet :) Is there some free AEC implementation or a DSP library with in except Speex's that I can use?

View 2 Replies

Flex :: Why Do Charts Axis Values / Labels Not Show Up When Using Runtime Share Libraries

Nov 10, 2009

I have developed a flex application using the data visualization components. I am now trying to optimize the application and one of approaches I am trying is to use Runtime Shared Libraries.I have configured Flex Builder to deploy with Runtime Shared Libraries and have added the .swz file for the framework, datavisualization and rpc share libraries. After deploying, my application loads, however my axis values within each of my charts are missing. The axes themselves are shown, however they do not have their label units displayed. The series themselves are displayed too.I have tried this using the 3.4 SDK and also the 3.2 SDK within Flex Builder. I also tried compiling flex using the mxmlc ANT tasks and got the same results.I made sure that the framework RSL is getting loaded first and I also made sure that the global flash cache has been cleared before I tested.I can see from my access logs that the .swz files are getting loaded the first time I make a request for my application, so I am confident that I properly cleared the flash player global cache.

Does anyone know why my axis values would be missing only when I deploy with RSL??? Switching back to Merged mode, my application works fine and it is only when I deploy with RSLs that I get the issue.I have also tried to compile using only the framework RSL and not the datavisualization or rpc RSLs (keeping them in merged mode) and I get the same results, no axis values.

View 1 Replies

Javascript :: Client Technology Choice - Any HTML5/Canvas Libraries As Capable As Flash/Flex?

Jan 7, 2011

I built a prototype in Adobe Flex, they (customers) liked it. Everything was fine until they later told me that iPads / iOS needs to be supported too.I checked out Adobe's Packager for iPhone. We're evaluating that and we will know if it works out in a couple of days. (We need to get through Apple's red tape and certificates raj so this angle is delayed by a few days!)

There is a growing voice for using HTML5/Canvas as a technology platform itself. And despite being quite proficient in Flex, I think this makes sense.

I'm in need of a HTML5 library that can:

Render "widgets" i.e. containers with forms and components(this should be easy and possible using POHJC - Plain old HTML,JavaScript and CSS )Provide a Tree like control for laying out some data Provide a Canvas where data structures can be represented as basic shapes Provide drag and drop capabilities between Trees, Buttons and Canvas Provide some sort of Tab Navigator container (I guess JQuery works here) Interact with back-end services (JSON/XML calls will be okay, but mapping directly with back-end entities will be awesome!)Renders on latest versions of major browsers, Android OS and iOS (WebKit for mobile?)

I'm ready to give JQuery & JQuery UI a try. I looked at Sencha / ExtJS but it seems we need to maintain two code bases one for normal browsers and the other for mobiles (is that correct?)Single code base, I don't want to suggest to them that multiple code bases for the client need to be maintained. That's a last resort option and would lead to complete ruling out of HTML5 with Flash apps and native apps being developed.Canvas capabilities - I don't want to work with raw canvas and shape tags. This too is a last resort option. Is there any abstraction available?

View 2 Replies

Flash - File System, Native Process Utility Libraries For Adobe AIR/flex Applications?

Dec 20, 2011

I am looking for utility/helper classes for Adobe AIR/actionscript 3.0 file system and native process utilization. Could someone point me to opensource library projects specific to Adobe AIR..

View 2 Replies

Flex :: Set A Public Var In A Popup Window?

Feb 9, 2011

I am trying to set a variable in a titlewindow pupup and use it in a script section. The variable is not being set and I don't know why. Here is my Main.mxml file:

[Code]...

View 2 Replies

Flex :: Undefined Public Variables - Value Of MyVar?

Oct 11, 2009

I have a class like this..
public class Doc {
public function Doc():void {}
public var myVar:Boolean;
}
How can I know if the value held by myVar is default false, or someone has assigned false to it? Isn't there an undefined state? How can I achieve such a thing?

View 2 Replies

Flex :: Make A Protected Property Public?

Dec 29, 2009

I'm trying to extend a class like panel so that I can fire click events only when the title area is clicked on. The title area is a protected uicomponent of Panel called titleBar. So I want to make that component public.It seems like I'm almost there but I'm getting a "TypeError: Error #1009: Cannot access a property or method of a null object reference." when it tries to add an event listener to the titlebar.

here is my extended panel

package custClass{
import mx.containers.Panel;
import mx.core.UIComponent;
public class ExtPanel extends Panel{

[code]....

And then this in the AS:

newPanel.getTitleBar().addEventListener(MouseEvent.ROLL_OVER,over);

Still getting the same error.

View 2 Replies

ActionScript :: Flex When Are Public Definitions Loaded?

Jan 7, 2010

magine a Flex application which contains spam/eggs.as: package spam {public var eggs:Eggs = new Eggs();
} At what point in the process of loading the .swf file will Eggs be instantiated?

View 2 Replies







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