Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : List component problem


cabp ms
4/5/2004 10:17:04 PM
Hi every body, i have a problem with list component, I've been using it with
out problems but now I want an image and a little description of it in each row
of the list, or use a scroll pane in each row of the list, I tried to use html
tags in the label field of the list to show jpg file or a movie clip, but
nothing, I know it possible to use images or other componentes in the list
component, can anybody tell me how please????

Thanks
Jack.
4/5/2004 10:31:53 PM
this link might help you on your way
http://www.macromedia.com/devnet/mx/flash/articles/extending_components.html

and one i've modified
cabp ms
4/5/2004 11:10:40 PM
Thanks Jack, I think your links are very useful to use icons in the list
component, i think I can use a bigger image instead an icon, maybe You can tell
me how to use one or more components inside list component, I explain better
what I want to do:
I want a list with an especific image loaded from an xml file, in the same xml
file are a description for each image.
The xml data is loaded succesfuly, now I would like to use other componentes
because the description for the loaded image must be formated with html
something like You've done in your link, but an image and html text. I hope
I've explained this better, thanks for your help
Jack.
4/5/2004 11:56:45 PM
i don't think a listbox has the functions you require,
have you considered using movieclip(s) and scrollpane, with -
myScrollPane.setScrollContent(target);
where target is the Linkage Id of the movieclip that displays your input
through html enabled textfields and receives your images.
if this idea is a no-no, do you have a url of something i can visualize,


komakino
4/19/2004 5:35:55 PM
hi ,
i'm interested in your discuss as i try to do the same kind of "list"
i wanted to duplicate my movie and fill it in with my xml datas, and then be
able to have a "list" of clips, and a scroll to navigate through the liste.

so my question is :

do you mean you create a clip (call it "display" for instanc) made of the
different movies duplicated and fillled via the xml. and you target the scroll
on the "display" scroll?

thanks by advance
cabp ms
9/8/2004 6:00:18 PM
Jack:
thanks for you reply, i had to think a little hard to do this idea work, but i
get it, what i did is a mc that contains a normal list that it's items are
populated from the xml file, according with each data i enable or disable the
correct image, then i made a math function that count's each time a xml node
data is visualized, adding or subtracting 1 to the original value, so now i can
move among the list items and works fine.

Komakino:
I think You can do something like i did, you can create the mc and specify
it's likage name, you can specify which xml file you must read for example with
local or global variables or a dynamic text field instead of variables, so when
you attach the mc it can read the variable or text field text to know the xml
file that must read then change the text field (or variable) to the next xml
file that must be read, so you can attach any number of your mc with diferent
instance names, so you can control them by separate. I hope this helps
AddThis Social Bookmark Button