Mailing List
Home
Forum Home
MUD Dev - Discussion of MUD system design, development, and implementation
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Flash Racing
MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
RE: (Ron help me?) Flash text

RE: (Ron help me?) Flash text

2003-12-17       - By Director

 Back
Reply:     1     2  

Hi Ron,
Excuse me for being such a dumbass, but help me out a bit with this one...
Where do I put this code?

I tried oLtxt.text = "this is my first test field object text"; to see some
text, but nothing happens (it's on a frame script)..

Thanks,

Ben

-- --Oorspronkelijk bericht-- --
Van: dirgames-l-bounces@(protected)
[mailto:dirgames-l-bounces@(protected)] Namens L.R. Valstar
Verzonden: maandag 15 december 2003 10:33
Aan: 'Director - Shockwave - and Flash Game Production'
Onderwerp: RE: [dirGames-L] Flash text

myNam = 'txtIntro'+i;
_root.createTextField(myNam, 3, 100,100, 200,0);
oLtxt = _root[myNam];
oLtxt.autoSize = true;
oLtxt.wordWrap = true;
oLtxt.selectable = false;
oLtxt.html = true;
oLtxt.htmlText = sText;
oLtxt.embedFonts = true;
oLtxt.setTextFormat(new TextFormat('Font 1'));

this creates a textfield in layer 3 of the _root at position 100,100
with size 200x0
since autoSize is used the height of the textfield will automaticly go
with the amount of text you put in...
_root can also be replaced by a movieClip instance (especially when you
want it to be a button)...


        ...Ron
      www.sjeiti.com



> -- --Oorspronkelijk bericht-- --
> Van: dirgames-l-bounces@(protected)
> [mailto:dirgames-l-bounces@(protected)] Namens Director
> Verzonden: maandag 15 december 2003 9:06
> Aan: dirgames-l@(protected)
> Onderwerp: [dirGames-L] Flash text
>
>
> Hi all,
> I hope I'm in the right group for this one, but I'll give a try.
>
> I want to show some text in directory, using a flash movie. I
> manage to send a string to the variable which I defined in
> flash, but I would like the text field to appear
> autoresizable, so that it matches the content size. I found
> some flash action script, but haven't got the foggiest idea
> on how to implement this code into the flash object.
>
> Name.autosize = true;
>
> I don't know where I have to specify name (is it an
> instance?) and where and how to call this comment!
>
> Can anybody help? Please?
>
> Thanks!
> Benjamin
>
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____
> dirGames-L mailing list  -  dirGames-L@(protected)
> http://nuttybar.drama.uga.edu/mailman/listinfo> /dirgames-l
>

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
dirGames-L mailing list  -  dirGames-L@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames-l

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
dirGames-L mailing list  -  dirGames-L@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames-l

Earn $52 per hosting referral at Lunarpages.