Ask a Question related to Macromedia Director 3D, Design and Development.
-
positdan #1
Text overlays
I have a text overlay which is one line long. when I swap the cast member with
another text that wraps to a second line, the text on two lines is squished to
the same height as the orignal text.
It looks like it is trying to fit the wrapped text into the same area as the
orignal text. Any solution for this? Or am I loading the new text wrong? I use
this code to replace the overlay text with a new text.
on setText (nextText)
trace("nextText"&&dirText)
sCastName = getCastName() -- this is the
cast name for the 3d scene
scene = member(sCastName)
member("myText").text = nextText -- set the new text
scene.deleteTexture("oText") -- delete the old text overlay
texture
overlay2 = scene.newTexture("oText", #fromcastmember, member("myText"))
-- load the new texture with the new text
overlay2.renderformat=#rgba8888
end
positdan Guest
-
limitation to numer of overlays
hello 3d artists, I am currently designing a director/shockwave3d application that makes extensive use of overlays for a modular user interface... -
Image overlays - how?
I'm prototyping an application at the Australian Bureau of Met. I want to design a set of controls for overlaying and interacting with images. I... -
Creating overlays with an alpha channel
Here are two methods to create textures for an overlay, depending upon its usage: * Easiest way to create an opacity mask (giving a shape to... -
Flash overlays DHMTL menu
Hi, I'm a bit of a novice with flash. I have a drop-down DHMTL menu on my site and have added a flash animation underneath. Unfortunately, the flash... -
translucent text overlays.
could someone explain how to make a translucent scroll bar frame that overlays a background image? The textbox should be translucent, but the text... -
tedalde2 #2
Re: Text overlays
You may want to create your texture from a "container" image object that is a
power of 2, rather than creating it from a cast member with random dimensions.
Look at imaging lingo...
Measure the width and height of your text member after putting the new text
into it. Then create an image who's dimensions are the next power of 2 larger
than your text dimensions (ex. a 98 x 14 text member would need a 128 x 16
image). Then copypixels() the text member's image onto the container image, and
create your texture from the container image using #fromImageObject.
You can set the alpha of the image too, so the background of your text is
transparent.
tedalde2 Guest



Reply With Quote

