# Buttons

**URL:** <https://forum.kirupa.com/t/buttons/258663>\
**Category:** Uncategorized\
**Created:** [April 26, 2008, 1:26pm UTC](https://forum.kirupa.com/t/buttons/258663 "2008-04-26T13:26:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stiffi](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@stiffi](https://forum.kirupa.com/u/stiffi)\
**Post date:** [April 26, 2008, 1:26pm UTC](https://forum.kirupa.com/t/buttons/258663/1 "2008-04-26T13:26:57Z")

</div>

Hi

Im creating a dynamic gallery with flash and xml and i have the basic stuff working.

At the minute I have a dynamic menu loading and when one is clicked on thumbnails become visible and clickable

This is all great except when the user enters the page the gallery is empty so I want to set the first dynamic menu button to clicked

Is there a simple piece if code that I can use to set the vale of a button to clicked I tried looking on the net but just get random useless info back

also i tried using

\<code\>  
holder.loadMovie(urls[0]);  
caption.text = captions[0];  
whoIsOn = 0;  
\</code\>

but it doesnt work for the images only the text (i think because i have the imagesholder set with an event listener)

so i think what i need to do is set the first gallery node to clicked but cant find the code. can this be done?

Thanks in advance
