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


Similar Posts:


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

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

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

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

Flex :: No ContextMenu.customItems With AIR?

Sep 20, 2009

Just compiled it with amxmlc and it gave me errors over the presence of "customItems" - nothing else at all in the entire 1500+ line AS3/flex program. I took out the customItems reference and it compiles with amxmlc just fine. Nothing about that feature 'customItems' is indicated to be anything other than active and current in the documentation. All amxmlc actually does is add a command line argument for AIR to the standard mxmlc.

View 1 Replies

Actionscript 3 :: Attach A NativeMenu On NativeWindow (or NativeApplication On Mac Os)?

Mar 25, 2011

I have an Air windowedapplication with no chrome (but a custom) and main app windows is transparent.I try to attach a nativeMenu on nativeWindow (or nativeApplication on Mac Os). But as there is no system chrome NativeMenu don't work on windows Os but work well on Mac Os.As I'd like to have similar look and feel on both Os.

View 1 Replies

Flex :: ContextMenu On Right Click Not Showing?

Feb 1, 2011

I'm pretty sure my code is OK as the Context Menu shows nicely when I compile for web, but when I compile for AIR nothing shows up.

View 2 Replies

Actionscript 3 :: Flex Contextmenu Component Reference

Jul 7, 2010

I have a DataGrid with a custom itemRenderer(Canvas) which has a context menu on its right click. I am trying to get the data of the itemRenderer. I tried to find something in event & variables. I also tried with FlexNativeMenu on RIGHT_MOUSE_CLICK. But I didn't find any way out.

View 2 Replies

Flex :: 4 Right Click Spark List Using ContextMenu()

Mar 7, 2011

I would like to add custom right clicks to a number of spark list controls. I have tried the following as an item renderer. (as per the flex 4 cook book). Full Render code here [URL] When I right click on the Spark List I simply get the Adobe Default Context menu. This is the same default behaviour I had before I added any code to this.

View 2 Replies

Flex :: ContextMenu() Not Showing Added Items?

Mar 15, 2011

I am trying to use ContextMenu() to display context menus in Flex 4.

Full Render code here [URL]

The problem is that the context menu does not change when I add items to it.

how to add a custom right click menu to a List box in flex (without using external JS, just using ContextMenu as Adobe intended.

View 2 Replies

Flex :: Custom ContextMenu Not Displaying In MX TextArea?

Apr 12, 2011

Been tearing my hair out for ages trying to get my custom ContextMenu to apply to a TextArea, It will just display the default (copy, paste ect...).

import mx.events.FlexEvent;
public var nm:NativeMenu = new NativeMenu();
public var cm:ContextMenu = new ContextMenu();[code].......

View 1 Replies

Flex :: Contextmenu In Datagrid With Title Window?

Dec 26, 2011

I want to add a context menu with a datagrid which is in a title window, after adding it nothing happens.

[Code]...

I am calling init function on creationComplete event of title window.

View 1 Replies

Flex :: ContextMenu Change The Items Dynamically?

Sep 14, 2010

I am using a ContextMenu for an AdvancedDataGrid in my application. I could implement the normal context menu for the grid. Now, I am planning to make the context menu dynamic.For example, if I click on a particular cell, I need to see only the items related to that cell in the Context Menu. Is there any way we can do that?

View 3 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

Flash :: Sound Library For Project?

Nov 22, 2011

I am looking for a good and simple as3 library that can help me manage sounds in a Flash app I develop.

I need something that will hold my sounds (not more than 25) and when I call certain sound to play it should play it.

View 2 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

Actionscript 3 :: Make A Mobile Library Project?

Aug 2, 2011

I'm developing an ActionScript 3.0 project for Blackberry Playbook, Android and iOS. I have some custom UI classes, like buttons, that I want to use it in another projects. How can I make an actionscript mobile library project? I'm using Flash Builder 4.5, and I'm not using Flex in my code.

View 2 Replies

Actionscript 3 :: Include MX Library To Flash CS5 Project?

Oct 27, 2011

I need to use some classes belong to mx library, but when I try to import it Flash throws me an error that it can't find this library.

How can I import it to my project? I'm using Adobe Flash Professional CS5.

View 1 Replies

IDE :: Use The Free Edition Of Flowplayer As A Library On FLA Project?

Oct 26, 2009

I'm quite a newb in flash. I am trying to use the free edition of flowplayer as a library on my FLA project. If anybody did or tried this, please tell me how can I use the flowplayer to play embedded FLVs.

I've tried creating instances of the FlowPlayer(), Launcher() and Preloader() objects. On each one i've recieved errors of incorrect casting.

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







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