# \[Flash 8\] Naming Frame Variables

**URL:** https://forum.kirupa.com/t/flash-8-naming-frame-variables/233988
**Category:** flash
**Created:** [July 29, 2007, 5:32am UTC](https://forum.kirupa.com/t/flash-8-naming-frame-variables/233988 "2007-07-29T05:32:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Adrock1](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@Adrock1](https://forum.kirupa.com/u/Adrock1)
#### Post date: [July 29, 2007, 5:32am UTC](https://forum.kirupa.com/t/flash-8-naming-frame-variables/233988/1 "2007-07-29T05:32:24Z")

</div>

I am farely new to Flash and actionscript and need a little help. I created a slot machine and it works properly but i need it to do more. Currently when you spin the Reel, if you get any 4 of a kind its a jackpot. I need it so if you hit 4 “7’s” lets say its different than hitting 4 “Bar’s”.

On the main reel I have 4 frames with movie clips, each having a different (chip) and the end. I have set the random() function on them so it is completely random on how they hit. So my question is…how do I set a variable name for the frames so I know that frame 1 is a “bar”, frame 2 is a “7”, frame 3 is a “cherry” and so on. That way when I write the “if” statements, I can compare them so a “7” is better than a “bar”.

My game is similiar to [[COLOR=#333333]http://www.adobe.com/support/flash/interactivity/slots/[/COLOR]](http://www.adobe.com/support/flash/interactivity/slots/)

On this one, what would I have to do to make it gotoAndPlay “You Win” only when lets say 3 bunnies display instead of just any 3? Thanks Alot in Advance!!!
