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


Similar Posts:


Css :: Reference A Nested Component In Flex 3?

Mar 5, 2010

Using CSS, how would I reference the Button component? FWIW, I'm using Flex 3.x SDK.

<mx:HBox id="myHBox" styleName="myHBox">
<mx:Button label="Test"/>
</mx:HBox>

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

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

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

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 :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 Replies

Flex :: Create Weak Reference And Strong Reference?

May 6, 2010

package uk.co.bigroom.utils
{
import flash.utils.Dictionary;
/**
* Class to create a weak reference to an object. A weak reference

[code]....

In this Class, how they denote one as Weak Reference and one as Strong reference.

View 1 Replies

Actionscript 3 :: Reference A Fla Component In Project?

Mar 8, 2010

How do I reference a fla component from an actionscript project? I use flex builder.

View 1 Replies

Reference Modal Button In A Custom Component?

Oct 20, 2010

I've got a custom component based on a TitleWindow. I want to put an event listener in my main app that listens for the Titlewindow's modal button's click[code]...

View 1 Replies

ActionScript 3.0 :: Accordion Component Null Reference?

Apr 23, 2010

I've got an mx accordion component that I want to populate at runtime. However, the first box will populate fine, but all the others return null reference so I can't access them. Does this have something to do with which one is currently selected? I'm creating my accordion:

<mx:Accordion x="398" y="207" width="331" height="250" alpha="1.0" borderStyle="solid" borderThickness="0" cornerRadius="10" fontFamily="Arial" color="#000000">
<mx:VBox label="EDITOR'S NOTES" fontSize="10" width="100%" >

[code].....

View 2 Replies

ActionScript 3.0 :: Flash To Reference A Library Component?

Sep 28, 2010

I have a component in my library that I want to programmatically place on the stage and manipulate from my external actionscript file. I have a blank FLA and all the movieclips, text, etc that are on the stage have being created in an external ActionScript file and placed on the stage. However I would like to access this one component that is stored in my library without having to place it on the stage - since everything is to be done in ActionScript.

View 2 Replies

Actionscript 3 :: Handle Stage Reference Of The Scrollpane Component?

Jan 24, 2012

I have created a XML driven shell where I'm calling external SWF files reading from the XML.ome of the SWFs has SCROLLPANE from the component panel of Flash is added on their respective stages. Now if I'm running those files individually, they are working fine. But it is loaded in the shell the below issue is coming.

TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::ScrollPane/setScrollDrag() at fl.containers::ScrollPane/draw() at fl.core::UIComponent/drawNow() at fl.containers::BaseScrollPane/get

[code].....

View 1 Replies

Actionscript 3.0 :: Load The File Reference In To A Video Component

Nov 4, 2010

question about file reference: i have a file reference that can browse for media files (*.flv, *.f4v, *.wmv, *.wma, *.mov) i am trying to load the file Reference in to a video component. i do that by:

video.attachNetStream(ns);
ns.play(null);
myByteArray = fr.data;
ns.appendBytes(myByteArray)

flv files are OK and i can see them and hear them & controll them. but when im trying to load any other kind of movie type, the all thing fails.

View 2 Replies

Flex :: Make A Custom Component Or Extend The List Component For A 2D Top Down View MAP ?

Nov 11, 2010

I'm building a top view 2D map, that it's objects are stored on the server.The kind of objects are 10 and might be a photo, label, button, lists, mix of them or labels with tooltips.The component must request the "areas" that are missing on screen.An area is 1000x1000 px and is cached in flex.To move in the map, will be like in google maps (drag-and-drop).I should be able to have another list and move objects from one to another using drag-an-drop on objects. Ex.: I grab an objects from a list and I move it on this map, I release the mouse button and the item is placed there.Now the problem is: I build a custom component for this trying to emulate the item renderer for performance and recyclage, implement drag-and-drop on objects and request the areas that are missing?

or

I extend the List component from spark and I add some features as multiple kind of itemrenderers and use recycle on them. Of course it must be able to request the missing areas on the screen and cache it's data.Maybe create a custom layout is needed too.What I need is something that must be really fluid, so the lighter this component is, the better.

UPDATE: *There will be not any object over another.

*I will not use hitTest on bitmaps because all bitmaps are wrapped in another component,as they,for now are itemrenderers.

Anyway I already begin to do this using a class that extends the SkinnableDataContainer and a custom layout. As the layout is not like a grid, is sparse, random items at diferent points(x, y).How to get the localX and localY, relative to item renderer and not to the Spark List, from a DragEvent in Flex 4?

View 1 Replies

Actionscript 3 :: Flex - Access Component Inside Another Component In MXML?

Sep 3, 2009

I have two components. One is called "InsideComp" and one is called "OutsideComp". OutsideComp has InsideComp as one piece of its component, and in my main MXML file, I have embedded an instance of OutsideComp. How do I access a public variable of InsideComp within my main MXML file?In Actionscript, I could just do something like:OutsideComp.InsideComp.valToChange = 5; But I dont know how to do it in MXML. I know this is probably an easy question.

View 4 Replies

Flex :: Access The One Component Properties Form Other Component With Out Binding?

Sep 21, 2011

I would like to bind two components with out binding and which resides in different MXML.for eg: A.mxml has textinput and B.mxml has a combobox when choose one item in B.mxml selected item should be display in A.mxml textinput.

View 2 Replies

Flex :: Access Component Properties From Extending Component

Jul 29, 2011

I have a component with a public variable declared

[Bindable]
public var mnuSource:String;

When I extend this component, I can reference mnuSource (it compiles) but Runtime complains about the property not being accessible (error 1056).

How do you modify / declare component properties so they are actually available to other components?

View 2 Replies

ActionScript 3.0 :: Include ContextMenu For Whole Swf?

Sep 11, 2009

How to include contextMenu for whole swf?

View 4 Replies

ActionScript 3.0 :: Can't Get ContextMenu To Work?

May 9, 2011

If I open an empty FLA and put in this code:

Code:
var cm:ContextMenu = new ContextMenu();
cm.hideBuiltInItems();
this.contextMenu = cm;

Then it works and the context menu for the empty flash file has no built in items. But if I take a project that I already have, and in the class that gets compiled's constructor I put that exact same code, it compiles fine and everything but the context menu still has all of the default items no matter where I click.

View 7 Replies

ActionScript 3.0 :: How To Add ContextMenu To Stage

May 20, 2008

So in AS2 you could add a contextMenu for the whole movie like this:

[Code]....

I have also tried just adding items to stage.contextMenu but that didn't work either. I also added a custom context menu to my Document class but that doesn't work for the whole movie. So does anyone know if there is something I can do to set the contextMenu for the whole movie?

View 4 Replies

ActionScript 3.0 :: Using ContextMenu, Removed All BuiltInItems?

Jan 4, 2010

Using contextMenu, i removed all BuiltInItems. Its working fine in IE.when i am viewing the same html file in mozilla, "Show Redraw Regions" option is still visible when i am right clicking on browser. In IE, its fine.

View 1 Replies

ActionScript 3.0 :: Check If Contextmenu Is Active?

Apr 22, 2010

How will I know the right click menu is currently open? Like a contextmenu.active = true property but that doesn't exist. An alternative would be a way to check if the user just right clicked but the right click event listener is for Adobe Air only as far as I know.

View 2 Replies

ActionScript 3.0 :: Contextmenu Stealing Focus?

Feb 12, 2012

I just noticed that using the context menu will take away focus fronm the application.
 
Here is simple example: one part is similar to the example for flash.ui.ContextMenu, the other one just performs some action on keyboard events (the keys could as well be used to move the square around)

[Code]...

View 3 Replies

Actionscript 3 :: Get The ContextMenu Target In Flash?

Mar 11, 2012

in a flash application i have to build i would like to find out what the target of the context menu is, which gets displayed when i ctrl-click.the reason for that: i created a custom context menu, which only displays over a certain area of the Sprite it belongs to. so there seems to be something "blocking the way".

View 2 Replies

ActionScript 3.0 :: ContextMenu Selected Text?

Dec 4, 2010

my code is
var cMenu:ContextMenu = new ContextMenu();
cMenu.hideBuiltInItems();

[code].....

View 2 Replies







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