ActiveDen

HTML Text fields and masks . . .

132 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • United Kingdom
  • Referred between 1 and 9 users
smoke_e_joe says

When working with dynamic text fields and you apply a mask to it unless you imbed the fonts it wont always display. “Or so I’v found”. Now i have sorted this problem out but my next problem is when the text is html formated.

with out mask it displays fine but when i apply the mask nothing! although my text box still scrolls to the correct height as though it was there???

Any help would be great….

A solution would be even better though! lol

Thanks in Advance.

3 years ago
1945 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 5 000 and 10 000 dollars
  • Bought between 10 and 49 items
  • Netherlands
  • Referred between 10 and 49 users
Emroni says

Add the font into your library. I think that will fix the issue. Do it like this: find the buttons somewhere on the top right of the library, click, then click on Add Font.. and choose the font you would like to add :) You will need to add new fonts for each type or font (bold/italic/both)

3 years ago
1560 posts Nice Guy
  • Has been a member for 4-5 years
  • Won a Competition
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 100 and 499 items
  • Referred between 200 and 499 users
RubenBristian says

Try to put the text field into a movieclip, then cache as bitmap the two objects(the mask movieclip, and the movieclip that holds the text)..

3 years ago
567 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Ireland
  • Referred between 10 and 49 users
iamdok says

HAve you tried placing the text field in a holder sprite and then applying the mask to the sprite? I was doing this recently, though html links still became activated by the mouse through the mask. Didn’t really find a solution. Hiding the textfield wasn’t an option for me. But otherwise the mask was fine. AS3 though. Not sure what you’re using.

3 years ago
132 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • United Kingdom
  • Referred between 1 and 9 users
smoke_e_joe says

AS2

I’v just tried it with the font in my library but still no joy. The text is already in a movie as well!

I’ll keep trying thanks for your help!

3 years ago
1236 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 200 and 499 users
LGLab says

Try not to embed the font….

3 years ago
132 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 1 and 9 items
  • United Kingdom
  • Referred between 1 and 9 users
smoke_e_joe says

Thats what i tried originally!

3 years ago
4324 posts
  • Has been a member for 3-4 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Interviewed on the Envato Notes blog
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Beta Tester
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
  • United Kingdom
  • Referred between 1 and 9 users
Reaper-Media says

if you still need help send us one of the files (if you want to send it to me, use reaper@reaper-media.com)

Regards

3 years ago
Reaper-Media is a moderator
1 post
  • Has been a member for 4-5 years
  • Bought between 1 and 9 items
flyingace says

I just ran into this same problem and it was making me lose my marbles. I believe now (it seems to be working anyways…) is to use a Shape() for your mask (if you can). Create and define your mask in your AS rather than in the timeline.

In my current movie an empty MC on the stage loads in a separate clip. The MC is masked, giving the loaded object rounded corners. At first I had a mask applied to the empty MC on the stage and my html text wouldn’t appear (though I could select it!). Since I’ve switched to using a mask made with shape.graphics.drawRoundRect() the text is finally appearing.

3 years ago
6471 posts
  • Has been a member for 4-5 years
  • Won a Competition
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Beta Tester
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 50 and 99 items
  • United Kingdom
  • Referred between 10 and 49 users
MSFX says

wish I had noticed this thread whenever it was started, doing it all via code with masks using graphics – whether its Shape / Sprite / MovieClip – will work with embedded fonts as well as CSS formatting :)

3 years ago
MSFX is a moderator
by
by
by
by
by