Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-23-2007, 09:17 PM   #1
Registered User
Join Date: Apr 2007
Posts: 48
Default Panel Class

Hey there,

I want to develop a class that displays a popup window to the user, the popup could be any given width or height and could possibly have subclasses that display either a text message or load another SWF.

Two things.

I want this popup to be modal, meaning that the user needs to respond to the window before they can continue. So I guess, how do you disable user input with anything in the background.

How do I go about developing such a class. Aside from the actionscript file I imagine you would need to have an object in your library so if you want to call up a new TextPanel you could do so? This is the area where I am not sure is the best practice to develop it.

Any suggestions would be great.


lucas_wallsi is offline   Reply With Quote
Old 06-23-2007, 11:37 PM   #2
Salmon Eater
TomMalufe's Avatar
Join Date: Jun 2007
Location: Doylestown, PA, USA.
Posts: 740

I would probably make the popup on a 30% alpha black box the size of the flash movie. So it looks like you darkened the flash movie and gave a little dialogs box or something. This way any click events are on the top movie (which is your popup because it now takes up the whole screen).
You know what I mean?

You would also have to disable tabbing probably.

You could make it a combination of library MCs and runtime created sprites (or extensions there of). Just make sure to use good commenting (without overdoing the comments) when you are working with external things in your code (let a reader of you code know where the heck they can find the Man class for var mega:Man = new Man("Hand Cannon"); or if it's an object in the library.)
TomMalufe is offline   Reply With Quote
Old 06-25-2007, 12:41 PM   #3
panel's Avatar
Join Date: Mar 2007
Location: Warsaw
Posts: 1,991
Send a message via Skype™ to panel

'Mix' classes wiuth library symbols

1. create mc symbol in library
2. linkage it to class (myClassName)
3. create file in fla file folder calles myClassName.as

Now you can controll everything what you have inside symbol for your class
panel is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Class extends - mothod help... code management? What would you do? Darcey ActionScript 2.0 11 06-24-2009 11:13 PM
Extendings class... simonboris ActionScript 2.0 0 02-25-2006 04:53 PM
How can I implement a two-way relationship between classes in AS 2.0? MHH ActionScript 2.0 5 10-13-2004 04:35 PM
How to use external .as files Flashchick ActionScript 2.0 6 04-16-2004 06:04 AM
Inherited Properties problem with class hierarchy Johnathon_apple ActionScript 1.0 (and below) 5 09-17-2003 12:38 AM

All times are GMT. The time now is 09:03 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.