Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Icons In List Compoinent


Hi all
i want to know how to put icons in the list component
thanks
Nabeel




Actionscript 2.0
Posted on: Sun May 20, 2007 2:19 pm


View Complete Forum Thread with Replies

Sponsored Links:

Icons In List Component
I have managed to set the defaultIcon for the list component like this:

mylist.defaultIcon = "face";

But how to I set different icons for different rows?

thanks / Henrik

View Replies !    View Related
List Component + Icons
Hello!

Is there any way i can load thumbnail images for icons in list component? I know how to make icons in list from the library MC, but i am building a dinamyc service, and i have to load thumbnails.

Please help me even with idea what to do as i am on a thight schedule here.

View Replies !    View Related
Set Icons In List Object
Hi,

How do I set icons to each item in List object on runtime? I am trying the following:

in mxml file:

<mx:Script>
<![CDATA[
[Bindable]
[Embed(source="sound.png")]
public var SoundIcon:Class;
]]>
</mx:Script>

in .AS file (Channels is the ID of my List control):

Channels.dataProvider[1].icon = SoundIcon;

but I am getting the error:

Cannot create property icon on String

THanks guys

View Replies !    View Related
Dynamic Icons In A List
Hello,

please, does anyone know how to add icons to a List from some URLs?

I have an XML, e.g.:
<body>
<row>
<label>Abc</label>
<url>some.local.path</url>
</row>
...
</body>

I can load it, parse it and fetch it into a DataProvider.
Then, I read that I have to create a custom CellRenderer to display a icon from url - but how?

If I understand correctly, I need to subclass CellRenderer. Ok:

public class myRenderer extends CellRenderer
{
override public function set data(d:Object):void { ... }
override public function get data():Object { ... }
}

And I think I need to put something into "set data" but don't know what?

Maybe something like:
icon = "myIconSymbol";
but I don't have any symbols in the library since the images are loaded on the fly...

Thanks a lot in advance!

--Ecir

PS: Or do I need to do it somehow like this?
public class myRenderer extends UILoader implements ICellRenderer { ... }

View Replies !    View Related
List Of Icons That Can Be Reordered... Has This Been Done?
I'm trying to create a list of icons that can be dragged into a different order (along a fixed vertical path) by the user. Think of the OSX "dock" for example, how when you drag an application to a new place in the dock the icons around it will move out of the way and let it snap into place. I can probably figure out how to program it manually but I think this MUST have been solved already, so I was wondering if anyone knows if there is a tutorial or sample out there somewhere that I can base my code on, or if any of you have done something similar and wouldn't mind sharing your actionscript or techniques.

TIA,
Alison

View Replies !    View Related
Inserting Icons In Flash List Component
Join Date: Dec 2008
Posts: 1

Default using external images as icons for flash list component
I've created a custom flash video player with a
xml generated playlist using actionscript 2 and the
flash list component. I want to insert icons in each row
of the list next to each video description. These icons aren't symbols
located in the library, they are external images located in the same folder
as the video player. The video description, url and image location are
imported from an XML file structured like this:

<videos>
<video url="thevideo.flv" desc="The description." img="thumbs/video_thumb.gif" />
</videos>

The XML data is imported into the list
component using actionscript 2.0 like this:



var vlist:XML = new XML();
vlist.ignoreWhite = true;
vlist.load("the_video_playlist.xml");

vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes; //will take all video tags in xml file and put into array

videoList.iconField="icon";

for (i=0;i<videos.length;i++) {

var labelItem:String = videos[i].attributes.desc; //video description
var dataItem:String = videos[i].attributes.url; //video url
var imageItem:String = videos[i].attributes.img; //thumb URL

videoList.addItem({label:labelItem, data:dataItem, icon:"video_icon", img:imageItem});

}


The list instance name is videoList. The icon for list items is a
movie clip called "video_icon".

The solution must be to load the external images for each icon into the
"video_icon" symbol using loadMovie. I'm just not sure how to do that - I've tried several approaches including using a placeholder image inside of the "video_icon" to load the external thumbnail image specified in the xml file. I can't get this to work. Thanks in advance for any ideas/suggestions.

View Replies !    View Related
Help... Need A Dynamic List Of Clickable Icons From Xml Data
I'm producing a slide show tour sort of thing and I have the slideshow data loading from an XML file. What I'd like to do is to have a horizontal string of icons at the bottom that are clickable that would take you to that specific slide in the tour. The icon would be just a sqaure framed box with number in them, as in 1, 2, 3, 4... and so on, all built dynamically depending on how many slides are in the XML file. If the user clicked on icon with a 4 in it, they would be taken to slide 4 in the tour.

I've played around with a couple of things...

I've written a for loop to create a number that is incremented by one for every element it hits in the XML data and then I've linked that by an <a href= call function>... sort of thing. So it wrote out 1 2 3 in a dynamic text field. That works all great and fine but the text numbers are hard to click on the screen. Being the reason I want to click on an icon, not just the text.

I've also worked with duplicate movie clip and got that to work as well with a button in the MC that would link to a given slide in the tour. But it's doing what it should and that is duplicating the one MC I told it to, so all the icons link to the same slide, the last one in the XML list.

So I've got two things to work, sort of, but I would like to get something to work together. An icon with a number in it in a horizontal list for the user to click on and go to specific slides.

Any thoughts? Not sure if a tutorial exists for something like this, I couldn't find one but maybe I'm looking for the wrong thing, seems kind of a custom issue, maybe not though.

I'd appreciate any advices.

Thanks so much!

View Replies !    View Related
Help... Need A Dynamic List Of Clickable Icons From Xml Data
I'm producing a slide show tour sort of thing and I have the slideshow data loading from an XML file. What I'd like to do is to have a horizontal string of icons at the bottom that are clickable that would take you to that specific slide in the tour. The icon would be just a sqaure framed box with number in them, as in 1, 2, 3, 4... and so on, all built dynamically depending on how many slides are in the XML file. If the user clicked on icon with a 4 in it, they would be taken to slide 4 in the tour.

I've played around with a couple of things...

I've written a for loop to create a number that is incremented by one for every element it hits in the XML data and then I've linked that by an <a href= call function>... sort of thing. So it wrote out 1 2 3 in a dynamic text field. That works all great and fine but the text numbers are hard to click on the screen. Being the reason I want to click on an icon, not just the text.

I've also worked with duplicate movie clip and got that to work as well with a button in the MC that would link to a given slide in the tour. But it's doing what it should and that is duplicating the one MC I told it to, so all the icons link to the same slide, the last one in the XML list.

So I've got two things to work, sort of, but I would like to get something to work together. An icon with a number in it in a horizontal list for the user to click on and go to specific slides.

Any thoughts? Not sure if a tutorial exists for something like this, I couldn't find one but maybe I'm looking for the wrong thing, seems kind of a custom issue, maybe not though.

I'd appreciate any advices.

Thanks so much!

View Replies !    View Related
[F8] Replacing Scrolling Icons To Rotating World Icons
Hi,

I'm working on this web site that needs to be changed. What I want to do is replace the scroll menu with a rotting world menu. Kinda like Itunes has in the album view.

I have a function called mover that makes the scroll menu move. So what I was thinking was that all I have to do is adjust that function.

This is roating world that I want to add:


Code:
function mover(count){
if(inited){
world.rotateY(360- ((360/15) * id), 8);
}
}


and this is the old scrollling menu


Code:
function mover()
{
if(_ymouse > 250 && _ymouse < 365)
{
var xdist = _xmouse - Stage.width/2;
this._x -= xdist / 25;
}
else
{
if(_xmouse > centerX)
{
this._x -= speed;
}
else
{
this._x += speed;
}
}

if (this._x>= -600)
{
this._x = -1500;
}

if (this._x<= -1501)
{
this._x = -601;
}
}


My question is why can't I just call the new function mover so that it grabs that information now?

Thanks in advance,
Bmcc

View Replies !    View Related
Load Xml Data(list Of Names), Use List As Buttons In Flash Possible?
Hi, basically I have a quiz game that I made, the quiz is done but I want to keep track of how many times a person has failed the quiz. I have an XML file that has a list of names. I want to take those names, put them in a quiz game (at the beginning) as a "list" of some sort and let the user be able to choose their own name (which is of course already in the XML file). This name will be used to keep track of how many times they have tried the quiz.

I have successfully loaded the XML file (names) into an ARRAY in Flash but how can I output them to the screen AND let the user be able to choose those from the list? as a button? This will add the count after they clicked their name to +1 and then save it to somewhere(where is best?). I will attach the zipped files (there are 4, the fla,swf,2 XML files[quiz/names]). If anyone can help me ASAP it would be awesome.

View Replies !    View Related
Chnage The Font Of Selected Item Color In A List Mx:List
Hi,am Trying to change the font (bold and color) of a selcted item in List..But it is changing the complete list's font..

Here it is my code..
<mx:List id="businessFunctions" left="10" right="10" bottom="10" top="208"
dataProvider="{processList}"
itemClick="select();"
horizontalScrollPolicy="auto"
labelField="@name"/>


ActionScript COde:
private function select():void
{
businessFunctions.setStyle("textSelectedColor","#D 3E9F5");
businessFunctions.setStyle("fontWeight","bold");

var page:XML = businessFunctions.selectedItem.page[0];
var pageID:String = page.@id;
var processID:String = businessFunctions.selectedItem.@id;

server.submit(pageID, processID, RequestMessage.BEGIN);
}



Here i need toc hange the selected item color only..

View Replies !    View Related
Separate The List Items With The Separator And List Is Dynamic
Hi,
I am getting the list items dynamically ,and hv to draw a separator after the every group of list items.For this I have to embed a script function after every group.How can i do this Actionscrip 3.0 Any help?

Ex:

Group 1:

ABC
DEF
GHI

TODO-----Here we need to draw a line
Group 2:

123
456
789

TODO-----Here we need to draw a line
Group 3:


abc
def
ghi

Here I have da code:

for each(var group:XML in event.responseMessage.rawXML.group)
{
var pageSection:PageSection = new PageSection();

pageSection.text = group.@name;
pageContents.addChild(pageSection);
trace("***********Group Name: "+group.@name);

// once the section has been added, iterate through it's children and render each field.
// for each(var field:XML in server.currentPage..field)
for each(var field:XML in group.field)
{
var formElement:FormElement = AppCode.FieldRenderer.renderField(field, pageSection);
/* check for null, if for some reason we encounter an unknown control type
* the formElement will not be instantiated so we should skip over it.
*/
if(formElement != null)
{
/* formElement.field = field;
pageSection.addChild(formElement); */

formElement.setRuleDetails = this;
formElement.communicator = this.communicator;

if(event.responseMessage.pageType == PageType.UPDATE || event.responseMessage.pageType == PageType.ADD )
formElement.readOnly = false;

fieldList.push(formElement);
}


}
//Add Separator b/n groups

TODO...Here we need to call a function which draws a line.....}


Plz help me if u have any idea?

View Replies !    View Related
Icons
Hi everybody,

I'd like to install an icon in case someone bookmarks my page. I know there is a tutorial in flashkit but I don't get it. I've got an icon (16x16) made my Image Explorer Pro. And now?

Thanx for your efforts

View Replies !    View Related
MX Icons
Hopefully this is a easy one, cause its been driving me crazy. What i am trying to do is change the default flashMX icons for fla. and swf. files so they use the old flash 5 icons. Which is easy to do, but every time i start up flash they all go back to the original default icons (which to me they just look to similar to each other) I am using win XP, if that would make a difference

View Replies !    View Related
Icons
1) Does n e 1 know how to put another icon rather than the internet explorer's or the netscape's logo at the address bar ?

2) I was checkin' on the tutorial called "creating an autorun for your .exe projectors", by william glenn. Apart from creating the autorun function, there's also this possibility of adding a custom icon. which is the format for the custom icon? (gif, jpg...) it's recommended size? (2k, 5k, etc...)

Thanx for reading !

View Replies !    View Related
16 X 16 Icons...
I've created a simple application using PHP, text files, and a flash interface that allows users to create small - 16 x 16 icons and upload them . You can also view the icons that others have made. Its quite good fun.

If anyone would care to contribute by making me an icon or giving feedback, it would be most appreciated.

Every single icon contributed will be displayed as part of my final year project at huddersfield university on June 6th (im trying to get at least 100 - currently on 64).

heres the link:

my symbol generator

cheers flash kitters!!!!

View Replies !    View Related
Icons
Can any1 talk me through creating an icon for my flash projector and switching the flash.exe icon with the new icon.

View Replies !    View Related
Icons
Hi, does anyone here know where I might be able to get my hands on the Flash Icons used to swf and projector? Thanks

View Replies !    View Related
[MX] Icons
Hi
this aint reali a AS question but cause it is related to games i thought there is no harm in asking!
So i was wonderin how game makers make an icon for there game?
Is there a special program if so what is a good one)
Or what??
Thanks

View Replies !    View Related
Aim Icons?
is there a way using AS to emulate or duplicate
the html way of downloading aim icons?


HTML Code:
<a href="aim:BuddyIcon?src=http://www.site.com/icon.gif">
OR

how could I make a link that would atleast give me a download promopt
with out opening an _blank page? if thats possible?

View Replies !    View Related
Aol Icons
Im trying to make aol icons out regular pics. How do make the pics a smaller size so the gif isnt so big the limit is 7168kb. It doesnt work when i resize the pics with flash.

View Replies !    View Related
Aim Icons?
is there a way using AS to emulate or duplicate
the html way of downloading aim icons?


HTML Code:
<a href="aim:BuddyIcon?src=http://www.site.com/icon.gif">
OR

how could I make a link that would atleast give me a download promopt
with out opening an _blank page? if thats possible?

View Replies !    View Related
I Got Icons...
i want them to fade into a color. How do i do it.

View Replies !    View Related
Icons FLA Help
Hello,
I'm trying to dissect the FLA file at:

http://<a href="http://www.ultrashoc...ed/27.html</a>

Does anyone know how to add links to the buttons? Everytime I do, I lose the animation of the buttons. Thoughts?

View Replies !    View Related
Rotating 3d Icons - U R G E N T
Hi fellow flashers,

anybody now how to (or can point me to a source fla) that demonstrates the best (and easiest) way to rotate an icon

many thanks in anticipation

Rob

View Replies !    View Related
Installing An .exe And Icons
Running a Flash MX projector from a CD. At a certain point, a button appears that asks the user if they want to place a link on their desktop to access a specific website.

An.exe file will be present on the the CD (a zipped or stuffed .swf that will runs a short teaser- the a get URL to the web address). Problem is, I want the .swf to be installed on the desktop for future use, but without the user having to do anything. In other words, silently beneath the Flash player.

Any ideas? Anything would be much appreciated!

View Replies !    View Related
Pixel Like Icons
Can anyone tell me how can I get that sharp pixel edge to buttons and other little icons? I have seen it quite a bit. egomedia have a similar look.
ego7
IF you look at all there icons they have that sharp edged pixel look.
Also go into the exec showcase and have a look at the buttons in there.
I'm trying to find other sites with this but I think this one demonstrates what I want to achieve.
Thanks.

View Replies !    View Related
Projector Icons
sorry if this has already been answered somewhere, but I have searched on this site. Just curious if there was a way to change the icon of the projector file from flash to a custom icon.

It would really come in handy for current projects...

thanks

View Replies !    View Related
Making PC Icons
Does anyone know of software to make PC icons. I want one for my project CD i am making. I posted this here, because it seems as if no one goes to that area anymore

View Replies !    View Related
Cool Icons
Hi!

Could someone show me how to do the cool icons on this
site ? how to make it glow and animate...

Samplefile are nice if someone have the time...

Thanks
Swed

http://www.neave.com/webgames/

View Replies !    View Related
Flash Icons..How?
As you know, some websites have flash icons of some popular companies on there website a required program, plug-in like macromedia flash, internet explorer, shockwave, etc etc. On this site http://www.special-air-service.org/ it has a intenet explorer icon, flash icon and another icon..and I wanna know how that was done..the flash icons, how was it done.

View Replies !    View Related
Flash Icons For Aim
I made a flash that is 60x60 in size (the right size) and it is not too big (in kb) but wen i make it an icon for aim (aol messanger) it will not play it just shows the first frame if u can help me plz plz plz help me


-------jeyez63

View Replies !    View Related
Forum Icons
Can anyone recommend a link to a site were i can get some icons for my Flash forum. I dont mean the smileys. i am talking about the folders on the very far left in the threads view.

cheers
Paul

View Replies !    View Related
Get Flash Icons
Can someone please point me in the right direction for the "get flash" icons - the ones that people would click on if they needed to install flash player.

Cheers

View Replies !    View Related
Browser Icons
whats the deal with this..?

many many sites seem to have these icons next to their web address , like the F that flashkit has..

how is this done? , its neat.

View Replies !    View Related
Icons For Url Address Bar
hello all

thought i would seek help from my fellow flashers.... does anybody know how to create and upload those sexy little icons at the start of the url address bar???

many thanks

$

View Replies !    View Related
Icons For Web Address
I'm trying to figure out how you make the little icon appear in the web address bar. Like how there is a F symbol for flash kit rather than the typical earth looking thing.

I can't figure out what this is called.

Thanks

View Replies !    View Related
[f8] Datagrid Icons
Hey guys,

I am working with the data grid component in flash 8 and i was looking for tutorials online that will help me get data from a database into the cells on the data grid. Well i found an example online and i figured out how to get the data in there but now i want to be able to have those icons/images clickable within the data grid. When someone clicks on the icon i want them to be able to pop up a window within flash (in my case it will be an attached movie). Can anyone help me with this problem?

here is the link to what im talking about: http://philflash.inway.fr/dgrenderer/dgiconrd.html

View Replies !    View Related
Customizing Icons
In perusing some previous posts I have come across an question. What exactly is the legal status of making and selling applications in Flash and are you allowed to put a custom icon on them? For instance, a game.

View Replies !    View Related
ContextMenu With Icons
Hi, i have created a context menu in AS 3.0 Flex, but i cannot find the way to add icon to the left of single item.


ActionScript Code:
public var contMenu:ContextMenu = new ContextMenu();
public var contactMenuItemDel:ContextMenuItem = new ContextMenuItem("Voice 1");
public var contactMenuItemMod:ContextMenuItem = new ContextMenuItem("Voice 2", true);

contMenu.customItems.push(contactMenuItemDel);
contMenu.customItems.push(contactMenuItemMod);

Is it possible add icons?

thanks
marcus

View Replies !    View Related
Flash Icons
Well anyone know where to get small flash icon symbol like the movie explorer icon cause i need it for my report.

View Replies !    View Related
History Icons
I have a page icon that I have designed, I want to use it as an icon that allows users to flick back to pages that they have clicked on in a flash movie. Like a history page. So say they go to the education section, a page icon will appear in the bottom part of the movie with an option to return back to that section. It is also so users can keep track of where they have been during the visit to the site.

Its just a thought that I have had, not sure if it has been used on anyone elses site. Would it be too hard to code?

Cheers

View Replies !    View Related
Why Are My .swf Icons Always Missing?
Hey Everyone,

You know how when you save a .fla file, and when you look in your folder you can see the 'reddish' flash icon for the file and then you can see the 'greyish' .swf icon for the .swf file? Well, I used to be able to see the .swf icon..but now it's always just one of those 'windows missing file' icons. What the hell causes this? ..and how do i get my swf icon back? am i missing a player or something?

View Replies !    View Related
Draggable Icons:
I have a MC that's a palette of icons that can be "click and dragged" off the palette. I use duplicate MC, and give each instance a new level, so you can add as many as you like.

I would also like to move the palette itself, freely from the placed icons. Currently, I can make the palette draggable, but is also moves the placed icons as well.

I considered a new MC for the icons inside the palette MC, but since it is nested inside the palette, wouldn't they still move together?

How can I make the palette move independantly of the placed icons?

View Replies !    View Related
Tree Icons
I'm trying to change the the icons on my tree using the iconfield command. It's not working, any suggestions? I have a movieclip in my library named "mike" that I want to use. I've attached the code. Thanks







Attach Code

import mx.controls.Tree;

this.createClassObject(Tree, "first_tr", 10);
first_tr.setSize(200, 100);
first_tr.iconField = "icon";

var trDP_xml:XML = new XML("<node label='1st Local Folders' icon='mike'><node label='Inbox' data='0'/><node label='Outbox' data='1'/></node>");
first_tr.dataProvider = trDP_xml;

View Replies !    View Related
3D Icons And Graphics
How do designers make and implement 3D icons and graphics that move a twirl, like in the below site?
http://www.dreamlinestudio.com/mrmusic/main.html

View Replies !    View Related
Flash Icons
Anyone know where to get a nice clean flash icon? I need a button to direct ppl to macromedia flash player if they dont have it, I'd like to use a flash icon if I could find a CLEAN one.

View Replies !    View Related
Flash Icons For Mac OS X
I made some Flash icons to make things eaiser to find in a folder if you dig 'em cool drop me a line @ mailto:http//www.nucklewebdesign.com
obvisouly they are free for the takin'. If anyone needs them for PC just email me I'll hook it up!

http://www.nucklewebdesign.com/uploads

View Replies !    View Related
How To: Pixel Icons
Hey all!
Have'nt been here for a while! Still cool.

I'm building a site which is graphically very technically orientated. I wish to build up a language of very simple and very clear pixel icons. These icons will serve as buttons and symbols relating to the content. They are going to be pretty widely used, so on a forum, newsletters, site etc.

I am wondering about the best practice for building these?
Sizes?
Optimisation?
Technique?

So, if anyone knows of good resources for tutorials, techniques etc. I would be really glad of your help.
I guess a good example of what I'm trying to achieve is here on this site! Small tight icons.

Any input as ever really appreciated.
Good to be back

View Replies !    View Related
Using .ico Icons In Flash?
Fellers -

Is it possible to use .ico files in Flash? I've had no luck. Not a clue.

Thanks!

View Replies !    View Related
Xml Menu Icons
could anyone here lend me a hand regarding my post in: http://www.kirupa.com/forum/showthre...23#post2291523 ?

thanks in advance!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved