ActionScript 3.0 :: Use Flex Classes From Flex Library Project?

Mar 4, 2012

If I create a Flex Library project, am I able to use Flex classes from within the library?

The reason I ask is because I'm working in a Flex Library project and trying to use the mx.rpc.soap package. I can import the the package without an issue, and even get code hinting making me think the package is available. Of course I can even see the swcs included in the project. However, when I try to instantiate the WebService class, I get an error when building. Flash Buidler IDE doesn't tell me what the error is, and I don't go into debug mode when I continue with building. I haven't tried connecting to the service yet, just importing the Class and creating a new instance.

View 3 Replies


Similar Posts:


Flex :: Use Remoting (mx.rpc)classes In An Actionscript Only Project?

Jul 28, 2009

Is it possible (and if so recommended) to use Flex remoting (mx.rpc)classes in an actionscript only project?

I'm creating an application with login and registration to a php back end using AMFphp.

As an option I was wondering if it made sense to take advantage of the mx.rpc flex classes.

View 3 Replies

ActionScript 3.0 :: Using Project Classes In A Flex Developer 4

Jul 15, 2010

I've got some nice little animations developed in an Actionscript Project in Flex Developer 4. They work great. I now want to be able to make use of them in a Flex 4 project. How to do this ? I'm guessing must be a SWC in the process. So many hits from google that I can't filter out the correct approach

View 4 Replies

Actionscript 3 :: Test Individual Classes In A Flex Project?

Jun 22, 2011

I need to write and test xmlStuff.as. I would like to test it on its own without launching the entire application (launched with index.mxml).

Project
Folder: src
Package: Default Package
- index.mxml[c

If I was using java what I would do is I would create a new package: [url].....

And I would put this code in it:

public class xmlStuffTester {
public static void main(String [] args){
XmlStuff xs = new XmlStuff();[code]...

(Alternatly I would write a unit test if I knew exactly what the xml output should be. I don't know that yet so I prefer the above approach.)Question: What is the standard way to do this in Flex builder?

View 1 Replies

Flex :: Add VOs Into A Library Project When Developing Using Modules?

Sep 4, 2009

I'm developing a module based applications in Flex and I was thinking about moving all my Value Objects (VOs) into a library project

Current Structure: I have a project that consist of a shell application and 3 modules. The modules contain about 10 custom components in each that are dynamically loaded at run time. My problem is component A ( in module A) needs to pass data to component B (in module B). So when this happens I move the VO that component A was using to a common folder. I then pass the VO and have component B pick that up and do what ever it needs to do with it.

So what I was thinking was using an existing library project and adding all my VOs to it. This way I'll never have to move a VO from the module to a common folder so both module A and module B can access it. The basic idea is I want to be able to complete abstract any module from shell into its own widget or Air app with out depending on any other modules.

View 2 Replies

Html :: Parser Library In As3 For Flex Project?

Nov 8, 2009

Simple html parsing library, written in as3 for a flex project?

View 3 Replies

Actionscript :: Vector Class In A Flex Library Project?

Dec 20, 2009

i seem to be having some problems with the Vector class in actionscript 3 in a Flex Project or an ActionScript Project it is possible to do this var v:Vector.<String>; But when i do the same thing in a Flex Library Project (to create an SWC) then i get the following error on that line of code 1046: Type was not found or was not a compile-time constant: String.

so when using Flex Library Project it fails..., but when i compile the same thing using compc there are no problems any idea why only the library project is complaining about Vector ?

[Code]...

View 5 Replies

Flash :: Use Open Chart (or Any Library) In Flex 3 Project?

Jan 22, 2010

I want to use Open Flash Chart in Flex3/AS3 project?

I mean,How Can I use Open-flash-chart in Flex application client side.. ??? (I use FlashDevelop)

Can i do that by just adding .swf file?? If yes? then where to add? I am not using FlexBuilder, I am using FlashDevelop OR Command line for compiling..

Or I have to add .swc file.. ??? If yes, then how to generate one for open flash chart..???

View 3 Replies

Actionscript 3 :: Flex Library Project: NativeMenu Vs. ContextMenu?

Jul 13, 2010

I have a Flex Library Project which has both Flex specific classes, and Air specific classes.When I reference the library in an Air project, the compiler complains about an overriding contextMenu in mx.containers.Panel, saying that the param should be of type NativeMenu (instead of ContextMenu). If I switch it over to NativeMenu then it compiles fine.

The issue is when I reference the library in a Flex Project. This time it complains that it doesn't know the type NativeMenu. If I try to change it back to ContextMenu, then I get the same error as above.I've searched google to no avail (found that someone else encountered the exact same problem: http:url.... )

View 2 Replies

Flex :: Access A SOAP WebService From Library Project?

Oct 29, 2010

I would like to access a soap webservice from a class in a Flex (AIR) Library Project.

How can I instantiate a WebService and get data from a SOAP WebService.

View 1 Replies

Flex :: Put Library Folders Relative To Project In FlashBuilder?

Mar 27, 2011

If I create a new ActionScript project with Flash Builder and want to add some library (for example Tweenlite) where do I have to put the gs folder of Tweenlite relative to my project folder? and what do I need to setup in the project settings in order to be able to use it?

View 2 Replies

ActionScript 3.0 :: JQuery - Import Flex Library In Project?

Feb 18, 2010

I wonder if there is any way to use a JQury code in my Flex application? Can I import this Library in my Flex Project?

View 1 Replies

Css :: Flex - Properly Reference An Image In A Library Project File?

Sep 26, 2011

My flex (flash builder 4) project references (embeds) a flex library project (ReusableFx). I have it working fine when it builds and runs, but I am struggling with a Design mode error "Design mode: Error during component layout...". In the flex library project there is a 'default.css' file which references a png file. Specifically like this:

[Code]...

It works when I build and run, I see the icon, but the problem is that design mode must work different in flash builder and breaks with this line. I tried a few things with no difference:

[Code]...

View 2 Replies

Actionscript 3 :: Prevent MXML Custom Component In Flex Library Project Always In Default Package??

Mar 31, 2010

I'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 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

Android :: Convert Flex Mobile Project To Flex Web Project?

Jun 29, 2011

I have a flex mobile project and I want to convert it into web-based project. What is the best way to do it.

View 1 Replies

Flex :: Flash Loader Demands Library Files In Folder Other Than Folder Where Main Project File Is?

Jul 29, 2010

i have situation in which i have some library projects, say

"DataProcessors","Lib2"

, included in my lets say "MainProject" (a web project) placed on directory

"E:in-debugMainProject.swf"

, when i build the project it automatically place all the libs .swf in its "E:in-debug" folder, but when i debug or run the project it it gives loading error that

"E:DataProcessors.swf"

not found but i have those lib files on

"E:in-debugDataProcessors.swf"..

what could be the possible errors.

View 1 Replies

Flash :: Call Flex Project From Other Flex Project?

Sep 16, 2011

I have 2 flex projects which were create in flash builder 4.5.....how can i call one project from second??? the best would execute to the same window.... I'm interesting about both possibility (in browser and air too).

View 1 Replies

Actionscript 3 :: Classes In Project Override Classes In A Flash CS3 SWC File?

May 6, 2011

I have an actionscript project which uses visual symbols from an SWC. I have a CheckoutButton which has the following class associated with it (compiled into the SWC in Flash CS3).

[Code]...

View 1 Replies

Java :: New Project Created With Flex Mojo's Archetype Throws Cannot Find Parent Project-Maven Exception

Jun 15, 2010

Maven 2.2.1 unzipped,M2_HOME set and repository altered to point to different drive location in settings.xml Flex 4.0:

Installed Created a multi-modular webapp project using flexmojo:

mvn archetype:generate
-DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup
-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-modular-webapp
-DarchetypeVersion=RELEASE

with following options

groupId=com.test
artifactId=test
version=1.0-snapshot

[code]....

Parent pom has swc, swf, war as modules.

Dependency is war->swf->swc.

With parent artifactId of swf, swc, war set to swf, swc, test respectively.On executing mvn on test folder(for that matter clean or anything) I get this following error.

G:Projects est>mvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/com/test/swc/1.0-snapshot/swc-1.0-snapshot.pom

[code]....

Looks like its trying to download the project from maven's central repository instead of building it.

View 2 Replies

Flex :: Adding Flex Capabilities To An Existing J2EE Enterprise Application Project

Sep 17, 2010

I have an J2EE Enterprise Application Project in which I would like to add a few Flex screens. How do I go about adding Flex capabilities.

I have build Flex/J2EE applications from scratch but can't think of the best way to do this.

I am currently using Flex Builder Plugin for IBM Rational Application Developer 7.5.

View 1 Replies

Flex :: Security - Setting Wsdl Service In Flex Project Crossdomain.xml?

Apr 7, 2011

How can i settings crossdomain.xml my flex project.* this is my crossdomain.xml.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>

[code].....

I've tried lots of different methods but my project send error message "Security error accessing url Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL [URL]"

put the file in different places

C:wampwwwMYPROJECTin-debugcrossdomain.xml
(my swf url : http://localhost/bin-debug/test.html checked http://localhost/bin-debug/crossdomain.xml its ok)
C:wampwwwcrossdomain.xml

I added the load line of the project

protected function application1_initializeHandler(event:FlexEvent):void
{
Security.loadPolicyFile("http://localhost/MYPROJECT/bin-debug/crossdomain.xml");
}

if flex server type select none everythings ok. but server type select PHP need crossdomain.xml how can i fix.

View 1 Replies

Flex :: Configuration - Host And Load KML File In Flex Project (IGN)?

Jul 23, 2010

I'm looking at a tutorial to display placemarks using a KML file on a flex application. I'm using IGN API (openscales) in flex project. The example works perfectly (http:/[url].......

<os:KML url="http://www.parisavelo.net/velib.kml"
proxy="http://openscales.org/proxy.php?url="
numZoomLevels="20"
style="{Style.getDefaultCircleStyle()}"/>

But when I'm hosting the same kml file on my server like that :

<os:KML url="http://www.cycom.org/velib.kml"
proxy="http://openscales.org/proxy.php?url="
numZoomLevels="20"
style="{Style.getDefaultCircleStyle()}"/>

Placemarks don't show up on the map. I tried to host the kml file on different hosts but that doesn't change.

View 1 Replies

Actionscript :: Disadvantages Of A Flex Project Vs Project?

Oct 20, 2009

I've recently started making a game in FlexBuilder. The game is currently a Flex project. Is there any downside to using Flex as opposed to just Actionscript? A friend of a friend told me that Flex is slower than an Actionscript project. I've been unable to validate this on the internet; is there any truth to that claim?

View 6 Replies

Flex :: Get Project Framework Into ActionScript Project?

Mar 27, 2011

If I create a new flex project with flashbuilder, these are the libraries that get included by default through the Flex SDK[code]...

View 1 Replies

Flash :: Flex Project In A CodeIgniter Project?

Jun 18, 2011

I have a CodeIgniter project and I made a back-office in Flex. I was wondering how I can implement the Flex project in my CodeIgniter since I'm working with routing I can't route to any directory. So there isn't a way to display the back-office.

View 1 Replies

Actionscript 3 :: Inside The Library Use Of A Bunch Of Classes/packages - Expose One Of These Classes?

Feb 3, 2012

I am creating a library in AS3. Inside the library I make use of a bunch of classes/packages that need not be exposed to the end user of my lib. I want to only expose one of these classes.

I guess my questions are:

1) How are libraries commonly distributed in AS3?

2) Is there a .jar equivalent in AS3 that developers can include, but will only have access/knowledge of the classes I've declared as public?

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

Flex :: Adding Runtime-library-path To Flex Build Configuration Using Ant Mxmlc Task

Feb 9, 2011

I'm trying to build a flex project, linking it to some RLSs. When setting up the project in Flex Builder, the corresponding "build configuration" (that I got by adding -dump-config to the compiler options) generates (among other things) a tag like this :

<runtime-shared-libraries>
<url>some-lib.swf</url>
<url>some-other-lib.swf</url>

[Code]....

View 2 Replies

Eclipse :: Flex - Putting A Separate Project In The "example" Folder Of A GitHub Project?

Apr 30, 2011

I have one Eclipse Workspace containing two projects. - The first is my actual library. - The second is example code for using the library.When I push this code to GitHub, I don't want two separate projects, I want the example code to go into an "example" folder of the second library.How and where would I do this? From Eclipse, GIT, or GitHub?Or is there a better way of including sample code in GitHub projects? (the example code doesn't actually need any version control)

View 1 Replies







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