Flex :: Flash - Make A LinkButton Selectable?
Aug 26, 2010Is it possible to make a LinkButton selectable? That is, the text from the LinkButton can be selected and then copied. LinkButton does not have the selectable property.
View 1 RepliesIs it possible to make a LinkButton selectable? That is, the text from the LinkButton can be selected and then copied. LinkButton does not have the selectable property.
View 1 Repliespackage {
import mx.controls.LinkButton;
import flash.text.TextLineMetrics;[code]....
my issue here is if you use this component you will see that the text is bunched up into a very small area. It does not fill the entire width of the linkButton.
As part of requirements for a new feature of "locking" a page, it is desired to have all elements on a locked page be non-selectable. This is not to be confused with disabled. All elements should appear as if the page were active, but not be selectable.The current thought is to create a clear canvas and place it over the existing elements. With this thought, I have two questions:if you can think of a better way to make all items non-selectable than applying a clear canvas element over the existing elements could you describe it?if not, what is the best way to retrofit existing implementations to accept the overlayed canvas item? BTW, all .mxml pages inherit from a custom .as file.
View 3 RepliesI need to make Text box to be Draggable And Selectable
View 1 RepliesIs it possible to make an item in a List control not selectable? If so, how would this be accomplished?
I've tried one thing so far. What I did was use a custom item renderer that checks for a value in the data property upon a FlexEvent.DATA_CHANGE event. If that value is not set, I tried setting the item renderer's selectable property to false. This, unfortunately, does not seem to work.
If I have a menubar that has an XML datasource like:
<mx:XMLList id="menuList">
<menuitem label="Parent1">
<menuitem label="Child1">
<menuitem label="SubChild1" />
[Code]...
How can I make it so that clicking on Child1 will cause a click event despite it having children?
I'm trying to create a button that will simply link back to the context root. I noticed flex has a @ContextRoot attribute that appears to work only in certain cases. For example, if I try to use it in the following mxml:
<mx:Button label="Back to Root" click="navigateToURL(new URLRequest(@ContextRoot()), '_parent')"/>
I get the following error: Error: Attributes are not callable.
when i doubleclick on the linkbutton its still working i dont know even though i have made linkbutton doubleclickenabled property =false too.
View 1 RepliesI would like to enable the (Open in a new tab) option when a user right clicks a mx:LinkButton, take the address that linkbutton is supposed to go to and allow the user to click on (open in a new tab) and get to that address in a new tab. Is there an easy way to do that.
View 1 RepliesIve figured out how to make an object selectable with this [code]...
Now that ive done that i want to know how to change the color of a selected object when i click a certain button?
We are creating a LinkButton programmatically and would like to set it's icon to an image retrieved from the remote server rather than something embedded within the SWF. The .icon property expects a Class but I can't figure out how to create one equivalent to an @Embed but from a dynamically generated URLRequest or URL String.[code]...
View 5 Repliesi am using below code for using linkbutton in flex datagrid
<mx:DataGridColumn headerText="Case ID" width="80">
<mx:itemRenderer>
<fx:Component>
[Code]...
now on link button click i want linkbutton label name and selected row inside lnkCaseIdClick method, how can i do this?
I am using this [code]...
How can I access lnkCaseId outside the datagrid?
I am feeding the label to my LinkButton directly from a string I receive from a Google API that puts html to format the label.
I want to extend linkbutton to allow this. I wrote a class myself to allow html text for the label and that aspect of it works but now the background that appears when you hover is way too big. I tried to override measure() to fix this but I didn't have a clue how. Here is the class I wrote:
package com.kranichs.components
{
import mx.controls.LinkButton;
public class HTMLLinkButton extends LinkButton
[Code].....
How do I make a selectable photo scroll bar like the one on URL... under the nav. I want to make one similar on a music web site, but am unsure how it's done.
View 2 RepliesHow do I make a selectable photo scroll bar like the one on[URL].. I want to make one similar on a music web site, but am unsure how it's done. I just need to know what I need to do, I'll figure it out from there. DO I jus bring the png photos in seperately? Do I just use a scroll bar component? I just need to know where to start
View 3 RepliesI have to make all the textfields on the stage selectable through actionscript.Currently its a tedious task since there are more than 1000 files for which the textfields are to be made selectable. All of these files get loaded in a main shell.fla.Is there a way to write a script that would make all the textfields on the stage selectable???
View 4 Repliesis there a way to span the text of a link button to 2 lines? so instead of "Save Page" to be in one line only, I want it to be in 2 lines.
View 1 RepliesThere are styles for over and clicked but no up state.
View 1 RepliesI want a LinkButton's style to stay unchanged when the mouse hovers over it. (But I still want the tooltip to work.) How do I do this?
(The mouseOver event seems relevant, and I do a noop() on that event, but my goal is to leave the style unchanged rather than do something specific.)
By the way, I am using a non-default style, defining it with CSS in the MXML.
In my application one Datagrid and down one Canvas is there.
I have a DataGrid with Data. When i select the data in the Data grid, the focus is displayed in the canvas. In the canvas i have a chart component.so when i select the link data on the datagrid the focus should be in the chart component in the canvas.
I would like to have a LinkButton programmatically selected.So I have a code like this:
<mx:LinkButton label="hello42" selected="{isHello42}"/>
isHello42 is true but the LinkButtons doesn't look like it's selected.Do I have to change the complete skin to achieve that the LinkButton look like it's selected?Here it look like setting selected=true should work:[URL]
How do I make text selectable (so I can copy) in a DataGridColumn?
View 2 RepliesI am new to flex, and do not know how to add an image (or other ui component) to canvas, so user can select it (and see that it's selected), also I want to add a possibility for example to click backspace and remove selected image from scene. How to do that?
View 1 RepliesI have a canvas with a scrollbar and I would like to disable the scrollbar in some way that keeps the thumb visible, but not selectable. I just want to let the user know that there is more information below, but I do not want to let him use the scroll to move down(this will be done with the movement of the arrows). I tried using the properties enabled but it does not work.
View 1 RepliesIt would be an easy question, but property 'selectable' is set to 'false' and therefore selectedItem is always null.
In each row I have 3 buttons. When I click a button, I need to extract data corresponding to clicked row.
I have a Label in AS3 that I want to be selectable (.selectable = true) AND I want the clipboardMenu to show up on right-click ALONG with custom menu items.
If I do THIS:
var label:Label = new Label();
label.text = "test";
label.selectable = false;
[Code]....
The label IS selectable - however ONLY the clipboard menu items are present.
How can I both make the label selectable AND have a menu with my custom items + standard clipboard items?
BTW - this is with an AIR application using the 3.2 SDK.
I found if I make the text selectable, the SWF ignores format such as bullet points indention, spacing between paragraphs. How can I keep both?
View 0 RepliesI'm using the selectableRange property of a DateChooser, but the DateChooser will not allow me to "select" the first date within the selectableRange.
Here is the code. Give it a go.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comps="comps.*"
backgroundColor="0xFFFFFF"
layout="vertical" xmlns:text="flash.text.*">
[Code].....
Try selecting Jan 1 - Jan 10 using Shift-click. No go. But try selecting Jan 2 - Jan 11, works fine. What's up with Jan 1?
You can also find the app here:[URL]
Is this possible through flash?
I have to create a flash uploader where you can define the maximum number of files that can be selected.