Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old July 30th, 2003, 03:45 PM
church586 church586 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 3 church586 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just a heads up on best practices for actionscript:

The "_" is a signifier for reserved properties and some objects in actionscript such as "_root" or "_xmouse." As a rule I would steer clear of a leading underscore in your instance names, as it will confuse anyone else looking at your code.

There are also some instance naming conventions that you can follow to make handcoding a little easier within the editor. Terminating your object instance names in things like "_mc" or "_text" will prompt the editor's contextual menu to open at your cursor and choose from a list of available methods.

As for the problem your running into with _alpha, I recall having problems with that in Flash 5 -- I think that's only possible in MX/6

With regard to the length issue - there must be some maximum lenth beyond which you don't want your text fields to run. This is less of a programming issue and more of a design dilemma. If your navigation is running horizontally, you'll run into all sorts of undesirable results, depending on what kind of text you end up with. If your nav is running vertically, then I would make one clip with a dynamic text field inside and duplicate it for as many text strings you have. Then set a cap on the string length of your variables.

Remember, the visibility of the text is not limited by the size of the clip it's sitting in, but the size of the text field. Think of the text field like a mask. Scaling the parent clip will only distort the textfield, not make any more of the text visible. MoviecClips are objects, so what ever changes you make to the object (scale, position, etc.) are inherited by all of the objects contained therein.

Hope this helps and good luck.

Reply With Quote
  #17  
Old August 1st, 2003, 02:34 PM
NooRotic NooRotic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 15 NooRotic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the tips.

Actually I've picked up alot of what you just mentioned after dealing with it for awhile. Then reading your post again makes everything fit and makes alot more sense.

The value that is picked up with ._width is exactly what you said, its the text field where you string is. Dealing with the MCs really does you no good as distortion occurs, the largest you set the textfield is what will come out. (your mask example made it make sense)

I've had to think of ways to still have variable buttons but like you said, set a cap on the length. Some areas i've been able to pull off horizontally, only when you know the strings will fit and buttons can be "fit" in the design. Much easier when you just want to display the dynamic text, vertically.

I've started to terminate with \MC etc. I didn't know about the _MC and will start to use this myself.

Also, applying _alpha does work, I was applying it to the wrong clips and was my mistake.

However, I will still work on trying to figure out how to make these dynamic buttons. I'll post if i find out a way to do this.

Thanks and if you're reading this and know how to do this, PLEASE HELP. I'm running out of ideas.......

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > How 2 Dynamic size MCs


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway