18 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 50+ items on Envato Market
bubberz says

Hello!

Fairly new to FLASH , so I hope I’m calling things correctly.

What I’d like to do, say for a restaurant site, is on a menu item click, pop-up a window that shows the menu in a scrollable text box. I know how to create a scrollable text box, but was wondering the best approach on this.

Do you set the textbox visible propert to “hide” or whatever, then on the click event for the menu, change is to “show”? ...then via a red “X”, change it back to “hide” on the Click event?

I’ve seen templates here do that, and I’d like to try it myself.

Thanks!

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says
you can use for the menu this script… and.. for the window close button… you can use only the _visible=false thing…
this code is for actionscript 2.0
button.onRelease = function (){
    if (window._visible == true){
        window._visible = false;
        }else{
            window._visible = true;
            }
    }
18 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 50+ items on Envato Market
bubberz says

Hello!

Thanks for the response.

I’m assuming some how I have to set the visible property to false when the file first shows.

I have the following in the Actions pane (txtMLText is the var name of the textbox):

function() { }

txtMLText._visible == false

...but it’s not working. I was going to use a simple button to set it to visible and use your code you posted, but I think I need to get the initial visibility set first.

Thanks for all the help!

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

default it has _visible = true

what you have write there must be like this:
function() {
      txtMLText._visible = false;
}

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by