ActionScript 2.0 :: ScrollPan - Bounding Box With Mask Over Text

Mar 14, 2004

See the scrollpan with the news on the main page? [URL]. I have tried tons of things, but haven't gotten something I want.. I have made something just now that works like that, except the text doesn't work completely... Basically, I have a bounding box with a mask over the text I want...Code I use (and this is applied to an MC with the whole "container" pan")

Code:
onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);
top = bounds.yMin+(scroller._height/2);
bottom = bounds.yMax-(scroller._height/2);
function updateScrollbar() {
[Code] .....

My problem is basically I place my content box in the mask and it will start the whole thing at half way... the box will scroll and everything works. it's just that the content starts half way, so half the box will be empty towards the bottom.

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Make A Bounding Circle Instead Of A Bounding Box?

Nov 1, 2010

Is it possible to make a bounding circle instead of a bounding box?The objects should bounce INSIDE the circle.I have now a bounding box outside the circle, but the objects exceeds the circle at the corners.

I was thinking of making an array of Points on the edge of a circle and when the object is < or > then do something... but that would be a lots of if/else statements.

View 3 Replies

ActionScript 2.0 :: Text Field Bounding Box Width?

Nov 19, 2005

So i looked around and couldn't find a stright answer on this. How do i set the width of a dynamic text field and add wrapping?

stop();
for (var i=0; i<thisXML; i++) {
_root.createTextField("Text_Field"+i, i, i*250, 0, 0, 0);

[code]......

View 2 Replies

ActionScript 2.0 :: Scrollpan With The News On The Main Page?

Mar 14, 2004

scrollpan with the news on the main page? I have tried tons of things, but haven't gotten something I want..I have made something just now that works like that, except the text doesn't work completely...Basically, I have a bounding box with a mask over the test I want... Code I use (and this is applied to an MC with the whole "container" pan")

Code:
onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);[CODE]....

My problem is basically I place my content box in the mask and it will start the whole thing at half way... the box will scroll and everything works. it's just that the content starts half way, so half the box will be empty towards the bottom.

View 3 Replies

IDE :: Dynamic Text And Mask?

Aug 7, 2005

i am facing a problem with dynamic text and mask,when i use a dynamic text and i am trying to mask the text area it's not showing in swf

View 7 Replies

IDE :: Input Text Mask?

Jun 27, 2009

i wasn't sure whether to post this in CS3 or AS2,I know it's possible to make the text of an Input Box glow, i have seen it here:

View 1 Replies

IDE :: Text Mask Not Working?

Apr 6, 2010

I am trying to do some text effects by using a text mask but I can't get the mask to work. I can successfully mask a circle over a rectangle, and even mask a rectangle over text, but text over a gradient rectangle just doesn't work - I end up with the rectangle moving across the stage, but no text mask.

View 2 Replies

ActionScript 3.0 :: Add Text To A Draggable Mask?

Apr 5, 2010

I want to add a line of text to a small mask - the mask reveals a portion of an image underneath - the user drags the mask around the stage

2 movie clips

1. an image that fills the 900x700 stage

2. a 200x200 rect with blur that acts as a "window" to the image

The code below works fine (almost - see comment) but how do I add text to the mask?
 
img_mc.mask = mask_mc;mask_mc.buttonMode = true;img_mc.cacheAsBitmap = true; // for the blur
mask_mc.addEventListener(MouseEvent.MOUSE_DOWN, dF);
mask_mc.addEventListener(MouseEvent.MOUSE_UP,

[Code].....

View 8 Replies

ActionScript 2.0 :: Dynamic Text Behind Mask?

Oct 28, 2004

i have a dynamic text block which is inside a movie clip, is i grouped with other elements.This movie clip sits behind a mask. when i am in the movie clip i can see the text field, when i am on the root level (and the mask is disabled) i can see the text, but when i preview the movie the text IS GONE or I CAN'T SEE IT.

View 1 Replies

ActionScript 2.0 :: Text Not Showing With Mask

Mar 27, 2007

I'm working on making a news scrollpane thingamagig. I have a movieclip called "entry" with textfileds (basically it's just a header bar and a bottom border bar with two textfields). These are dynamically attached based on the number of xml nodes into a holder clip and I have that holder clip masked and for some reason the entry movieclips will show, but the actual text doesn't. when I get rid of the mask then the text shows.

View 3 Replies

ActionScript 2.0 :: Mask Disappear My Text

Apr 18, 2008

I was planning on making a scrollable blog thing within a mask. But when I setMask, the text in the blog items disappears.

View 2 Replies

IDE :: Mask Over A Dynamic Text ... FLA Attached

Apr 7, 2009

Hello Flash World, Ok, I may have posted this question before but I am still confused. I have a Master Movie Clip that has a Mask over it. By having that mask I can't view my dynamic text box that is scrollable. How do I embed a font so I can view my dynamic text box? (Im using AS2) attach is a file that explains my problem.

View 1 Replies

ActionScript 3.0 :: Set A Mask On A Mc Containing Dynamic Text?

May 12, 2009

I'm trying to set a mask on a mc containing dynamic text. But, the only thing that are visible, are graphics, not text.

When i remove the mask, the text comes back.

i heard that i have to embed my fonts for that, but how can i do it?

View 6 Replies

ActionScript 2.0 :: Dynamic Text Behind Mask

Oct 28, 2004

i have a dynamic text block which is inside a movie clip, is i grouped with other elements. This movie clip sits behind a mask. when i am in the movie clip i can see the text field, when i am on the root level (and the mask is disabled) i can see the text, but when i preview the movie the text IS GONE or I CAN'T SEE IT.

View 1 Replies

ActionScript 2.0 :: Dynamic Text Behind A Mask?

Jan 25, 2005

I've been trying to dynamically change some text for a titlebar that is behind a mask

However, I find that when I change the text of the dynamic text field (whose containing movieclip is masked by a graphic), the text no longer appears at all.

When i remove the masking, the text changes properly when asked, but when it it masked, the text does not show at all.

View 3 Replies

My Text Mask Doesn't Preview Properly

Mar 14, 2009

I'm relatively new to Flash, and I�m in the process of creating a flash intro to my website. The problem is, whenever I preview one of my Mask layers by pressing Ctrl+Enter, the mask effect doesn�t work � it merely shows the masking object. The puzzling thing for me, which leads me to suggest that the mask should work is that in the normal timeline view, when I lock both the mask and masked layers and press Enter or slide through the frames � the effect works perfectly. On Ctrl+Enter all of my other Masks work fine as well - the one in question has text as the mask content.

It only stops working when I view it as an .swf file or play the movie with Ctrl+Enter. Does anyone know why this is happening, how I can get around it, or whether it will be a problem when published?

View 1 Replies

ActionScript 1/2 :: How To Mask A Dynamic Text Field

Apr 9, 2009

Any one know,how to mask a dynamic text field

View 3 Replies

ActionScript 1/2 :: Random Text Scrolling Mask?

Sep 15, 2009

It's a flash banner with a simple image, and then I want an xml of quotes that get pulled into the banner a mask scrolls in and then when it scrolls out, the words have changed to another random quote?When I mean scroll I mean the quote remains in place but a mask appears (from right to left) that covers the words, once the 'mask has got to the left side of the quote all the letters are gone - the mask the reverses (right to left) to reveal a new quote."Random Quotes from XML mask swap in Flash" isn't getting the right results!

View 5 Replies

ActionScript 3.0 :: Dynamic Text Not Showing Up Under A Mask

Dec 9, 2010

I've discovered the joy that you cannot display dynamic text boxes if they are masked.After browsing the internet I found a few things to try, first embedding the font, which I have done, and that didn't work.The other solution involves setting the mask to a display object, which I've done, sort of.I create a Sprite() in code (I use Flex Develop, and never code on the time line), then use the Sprite.graphics to draw the mask, then set my main stage movieClip's .mask property to equal this layer.

View 3 Replies

Flash :: Using Actionscript 3 To Mask Text Thats In A Movieclip

Apr 5, 2011

I am dynamicly adding xml data into three text fields buy looping and then adding the text_info movieclip to a scroll_box movie clip then adding the scroll_box to the _myCanvas movieClip. I want to mask the data but am not getting the results I though I should.

[Code]....

View 2 Replies

Actionscript 3 :: Flash IDE Text Mask Reverses

Oct 16, 2011

I am trying to make a gradient mask over my text. It looks great the gradient fills the shape of my text. When I publish the flash video the text and gradient switch. The text is no longer masked and I cannot seem to figureThe top half is what it looks like inside the IDE, the bottom half is when it's published.

View 1 Replies

ActionScript 2.0 :: Dynamic Text Mask Not Working?

Feb 16, 2009

i have the AS setting the mask, and my fonts are embedded.. but the dynamic text doesnt mask my other movieclip.my dynamic text is "fly_in" MC with the text field inside. the MC label is: "headerTxt_mask" the sheen is labeled "sheenMC" and put in a layer below "headerTxt_mask" in the same "fly_in" MC then on the first frame of my scene i have:

ActionScript Code:
fly_in.sheenMC.setMask(fly_in.headerTxt_mask);

The dynamic txt field is supposed to be the mask for the sheen, so all you see is the sheen...

View 2 Replies

ActionScript 3.0 :: Text Loader Disappearing Under A Mask?

Oct 20, 2009

I created a loader class which creates a text pre loader and works fine until I add a mask over the images.Then the preloader doesn't display anymore. The preloader is called "progressOutput"

[Code]...

View 1 Replies

ActionScript 3.0 :: Changing The Text Along With The Mask Animation?

Dec 16, 2010

So I have a text which is saying for instance "hello". And when i press a button there is an animation which starts to erase the "hello" text and a pencil is writing a second text. So somewhere in the middle there is a blank text holder( i mean the place where the text is suppose to be)! The question is - is there a way with code when the animation have reached a certain frame to change the text because i can't do it with animation!

View 1 Replies

ActionScript 2.0 :: Mask Causing Text Under It To Appear To Move?

Mar 21, 2011

Mask causing text under it to appear to move...I have a mask that scrolls to the right over text.Before the mask comes on stage the same text is on a different frame before it in the exact same coordinates. But when the mask appears it makes the text under it seem to slightly move to the left. I've realized it is the mask that makes this seem to happen.I'm probably not doing something right with the mask, but I'm not sure.

View 1 Replies

ActionScript 2.0 :: (dynamic Text) How To _alpha And Mask

Apr 4, 2006

I have a dynamic text box and i want to mask it but its not working. i remember once someone was showing me something that had to be done to a dynamic text box to get _alpha effects on them and I wonder if its the same thing. Problem is, I don't know what that "thing" is.

View 4 Replies

ActionScript 2.0 :: Mask A Text Or Mc By The Attached Mc From The Library

Sep 7, 2006

I need to mask a text or mc by the attached mc from the library. I used this code, but it doesn't work to me:

i = 0;
function makeMask() {
_root.attachMovie("mc", "mc"+i, i);
_root["mc"+i].i = i;

[Code].....

View 1 Replies

IDE :: Dynamic Text Not Showing When Under Layer Mask?

Jun 11, 2009

why a dynamic text I create is not appearing or showing when being mask or when it is under by a mask layer?

View 3 Replies

ActionScript 3.0 :: Alpha Mask - Area Of The Loader Outside Of The Mask Will Visible When The Mouse Is Down

Sep 10, 2010

I have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:

[Code]...

View 2 Replies

ActionScript 3.0 :: StartDrag And Bounding Box

May 5, 2008

I have noticed when setting a bounding box on a drag object, if you go outside the bounds of the box you have set, the mouse won't let go of the object unless you go back inside the bounds and click on it again. Is there any way to force the stopDrag if you go outside the bounds while dragging? I have tried this bit of code:

[Code]..

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved