View Full Version : Create a button and text
Hi
I have a little problem that I dont now how to fix that.
I have a picture and a text beside and a nice shape as background and that is my button.
Now I want the button to duplicate X time (I going to make the flash read a XML file that have the pictures name, text and a adress in to the button) and the duplicate is going to be under each other.
Is a dynamic menu.
I have done that in VB sometime ago but I dont now if that is possible in flash and Actionscript.
Gibberish
11-22-2005, 10:08 PM
Elaborate please. It sounds like you are trying to make a kind of image slider? Where you can click on each image? If so that is talked about quite frequently in here.
I would suggest posting some code or a sample fla so we can get a better grasp of what you are trying to accomplish.
Nothing is impossible with programming. :)
Is like a vertical image slide but I like to have a text too.
I have a scrollPane I going to use.
I going to use a XML file and inside the XML file I going to have info like image name, text and a address.
When the flash read the XML file it going to count how many buttons he going to create under each other and create a image at left and the text on the right side so when I push one of the button it going to play a movie (from the address)
I now howto create a menu with the scrollPane (Not so good solution, I going to use two swf file but it works)
Is going too look like I have in the picture I have attach. (But more nice :rolleyes: )
I try to make it easy so when I like to add more movie I just edit the XML file.
I hope that help a little :)
Gibberish
11-22-2005, 10:40 PM
oh thats pretty simple. You would just use a scrollpane component and duplicate the movie for every childNodes.length of the xml.
I can craete something for you but I have a meeting in a bit here so It won't likey be till tommorrow.
Thanks
I have try to find any code or fla file but that was not to easy.
I did try myself but I did not now what to start with :D :o
How it going about that fla file ;)
Hi
I did find a fla code that use XML as a database and do a menu that I like to have but he have use a XMLConnetor and a Dataset.
I have try too understand the code but that is not so easy :o
I have try too change the code a little so I can use more then one category like
<category1>
some xml..............
</category1>
<category2>
some xml..............
</category2>
<category3>
some xml..............
</category3>
The flash read how many category the XML file have an list them so the user can choose and then the flash read the xml and show it in the menu.
That is what I try to make after I have done a nice menu :rolleyes:
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.