ActionScript 2.0 :: Hyperlinks (URLs) To Items In ComboBox?
May 10, 2004I'd like to assign a hyperlink (URL) to the items in the combobox.
View 1 RepliesI'd like to assign a hyperlink (URL) to the items in the combobox.
View 1 RepliesI'm trying to set a specific list item in a mx combobox to have a custom item renderer, the problem is that I cannot do this via mxml, it needs to be done via actionscript at a later stage, eg: combobox gets created, combobox gets populated, user does other tasks, combobox needs to set one or more items in the combobox to have icons (via item renderer)..
I can do this via the onChange event, but it only applies the icon when the combobox is opened and there is a slight delay so you can see the icon being added.
im having some dificulties in the combobox of Flex 3, after defining the dataProvider and filling the combobox, how can i remove the items in the combobox later (without removing items in the dataprovider)? if i set the provider to "" or null, the items in the combobox are still there
View 1 RepliesHow do i retreive the total number of items (count) of a combo box in Flex?
View 4 RepliesI have a combobox that uses a custom itemrenderer to display an image. when scrolling up and down the list the images randomly go out of alignment. How do I stop this?
public class PinRenderer extends UIComponent implements IDataRenderer, IListItemRenderer {
private var currentPin:DisplayObject;
private var _data:Object;
public function get data():Object {
return _data;
} public function set data( value:Object ):void {
[Code] .....
[code]It's taking up 300px ,but actually only the upside 150px is in use.How to show all its items while keeping the page UI normal?
View 1 RepliesHow can I simply add or remove Items to/from component - ComboBox?
View 6 RepliesI'm currently working on a project where I have a user defined list of urls which is saved in a local SO. When the movie is loaded the ComboBox is populated with the values from the SO (Stored as array inside SO).I want to give users the option to remove items from this list. So far I have managed to remove the selected item from the combo box, clear out the SO and loop the remaining ComboBox items, but, when I try and load these item into an array to parse back to the SO, the array is created and creates the correct amount of elements, but, each element is populated with only the data from the 0 index item of the ComboBox.My code so far: (This sits inside a button component and is invoked onClick)
_root.ComboBox.removeItemAt(_root.ComboBox.selecte dIndex);
_root.ComboBox.selectedIndex = 0;
_root.local_data.clear(); [code].......
I have a combobox that uses a custom itemrenderer to display an image. when scrolling up and down the list the images randomly go out of alignment. How do I stop this?
public class PinRenderer extends UIComponent implements IDataRenderer, IListItemRenderer
{
private var currentPin:DisplayObject;
[code].....
I want to add a key to my ComboBox, so each item contains a little picture + text, is there any easy way to do it?
View 2 RepliesIm trying to use the selected item in a combo box (aCB) to populate a text field (taLabel) the trace statement shows the correct item but i'm missing something simple to make it work. This is the error I get:
ReferenceError: Error #1069: Property null not found on fl.controls.ComboBox and there is no default value.
var cPriorities:Array = new Array(
{label:"Image Conscious",data:"Image Conscious"},
{label:"Durable", data:"Durable"},
{label:"Dependable", data:"Dependable"},);
[Code] .....
How can I simply add or remove Items to/from component - ComboBox?
View 6 RepliesI am trying to create a combobox where the items listed in the combobox are font names and each item will display using the font of the item label. For instance, one item label in the list is "New Times Roman" and I want that particular row in the combobox to have the text AND font of "New Times Roman". For some reason, inside of my custom CellRenderer class, I cannot seem to find a way to get the item label that corresponds to the CellRenderer and the CellRenderer.data item always appears to be null!
This is the code I am currently using:
//From the main class, I am creating an instance of the
CustomizableComboBox and adding in the font names I am interested
in.
var comboFont:CustomizableComboBox=new
[Code]....
I need to add accessibility to a flash program which I have created. I can make the screen reader state all of the different buttons and at the top level of a combobox. However if I traverse the combobox none of the items are mentioned by the screenreader. I've tried various things down to trying to set the accessibility properties of the combobox items as though they were an array
cb[0].accessibilityProperties = accessProps0; but nothing seems to work.
3-rd day goes to waste. And soon I'll be mad. I cannot correctly do it despite the Adobe's topics (e.g. [URL]). But I need:
1) the user can enter the word (first sign - the Letter);
2) the entered item is added to the List of CheckBox;
3) that List can be correctly sorted;
4) WHAT I CANNOT MAKE: to be able to correctly remove the selected item. All indices after removing must properly changed:
so, if I removed the item with index '4', the next indices would be descended (5=>4 etc.). How can I achieve it? You may have a quiet laugh over my desperation,
[Code]...
I'm using Flash CS3 and want to create a custom ComboBox. I've followed the steps outlined in "Editing component skins in a new document" (http:/[url]...), but every time I get to the step where I drag the ComboBox Assets folder from the HaloTheme.fla library into my library, if I test movie at that point my combobox has become an unclickable white rectangle with no label, button or anything.
View 2 RepliesHow can I validate there's a selected item in a ComboBox before saving? If there's no selected item, how can I set focus on the ComboBox?
View 2 Replies**Warning** The linkage identifier 'ComboBox' was already assigned to the symbol 'ComboBox', and cannot be assigned to the symbol 'GUI MC/Combo Boxes/abc', since linkage identifiers must be unique.**Warning** The linkage identifier 'ComboBox' was already assigned to the symbol 'ComboBox', and cannot be assigned to the symbol 'GUI MC/Combo Boxes/def', since linkage identifiers must be unique.
Both of my ComboBoxes has the same identifier.I could not change the identifier through the properties tab because it is greyed out.
I have a project underway where I am making an interactive game. It is a personal character creator game and I need Actionscript 3 help with this.Something similar here:http:[url]....
I have tried already with toggling visibility and 'gotoAndStop()' to make items appear over other items when the corresponding button is pressed, for example, when the user tries out different pants/shirts on their character.
I would like to use the selectionMode=multiple described in the Flex docs, but with a few modifications:
1) I would like the box that the user drags over the graph to remain there until the user drags a new one.
2) In the top right corner of the box I want to display the sum of the items selected by that box.
How to make list items as tool tips for combo box items?
View 2 RepliesI'm creating a facebook application in flex. I'm actually working on the friends component that shows your friends who are using the application. now, each friend has a profile image.
I created the component using a s:List element.
In the Skin Class of the element i configured the requestedColumnCount to 3, which means it shows 3 friends. i added buttons to scroll left and right in the list.
Whenever I scroll to see a different friend, for a half of a second i see no image because the List component is loading the image in order to view it.
is there a way to make the list preload all the elements so i won't have this kind of problem ?
I am working with flash 6 with a map that is already made.
1. find a layer with a name "LINKS".
2. Press F9.
3. The window "Actions" will open.In it a window you will see the following code.
4. In it a code you can change links for any state.
//Washington
_root.map.state1.onPress=function(){
this.gotoAndStop(10);
getURL("http://www.yourdomen.com/yourpage.html");
Easy enough except for the fact that there is no layer named links. All the layers are numbered. I can't get a response from the company.
when I try to make text or a button into a hyperlink within that tooltip, it doesn't seem to be usable in the preview. I click on the text/button, and it just doesn't do anything. I've tried coding it several different ways, and looked for an appropriate tutorial, but I haven't been able to find any luck. Is there something I'm missing? Can I even make hyperlinks in a tooltip that's made with that simplified code, or will I have to find another way to make them?
View 1 RepliesI have a banner ad that cycles back and forth between two ads, and am trying to set it up so that when the first ad is up (5 seconds or so) and the viewer clicks on it, it goes to one URL, and when it changes to the second ad and the viewer clicks, it takes them to a different URL.
View 5 RepliesI created an interactive document in InDesign CS5 that I exported as a .swf and inserted it into a html based webpage. I would like the buttons I created with url actions to open the url in the same broswer window and not in a new broswer window. Is this possible in ID CS5 and if not how can I get it done. I have enough knowledge in flash to be dangerous.
View 1 Repliesflash file loads text from xml. How can hyper links be used in the xml file to display them in the swf?The application i am trying to use
`<?xml version="1.0"?><mindmap>
<words>
<word value="Next Web minor" type="main">
[code].....
How would I include links in an XML file?[code]...
View 2 RepliesThe site's main area is the 3D AS2(oldschool) carousel(Lee Brimelow model) and one of the icons, when clicked, adds the content to the cooresponding textbox like the tutorial. I want the names of the URL's to be hyperlinks. So in essense, one of the icons is a portfolio link area, where I have the content= text like this:
Code: Select all<icons>
<icon image="icon1.png" tooltip="PORTFOLIO" content="Please, feel free to visit some of our projects around the web we've done for clients:[url]....
I obviouysly want the url's to link t that URL.This issue has not been directly answered from what research I have done today(ALL FREEGIN DAY!)
can someone just tell me the EASIEST way to make a text field or a buttohyperlink to another page on a site, a text anchor or another web site altogether?I don't know why Adobe has made this so un-intuitive and difficult. InDesign has a hyperlinks panel that makes it easy.I'm trying to modify a nav menu template that someone else created
View 3 Replies