• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

flipping speech bubbles?

Participant ,
Apr 03, 2009 Apr 03, 2009

Copy link to clipboard

Copied

Basic scenario, sprite programmed to say various stuff in a speech bubble (used a dynamic text field inside an MC located inside the sprite). But when the sprite gets too close to an edge of the screen, the bubble goes off the screen. So I made a basic fix for testing:

robot_mc.talk_mc.bubble_mc.onPress = function(){
robot_mc.talk_mc.bubble_mc._yscale = -100;
}

but noticed the text didn't appear anymore. Before I switch out the "onPress" for something XY coordinate related, is there something I need to do to address the textbox, or am I going about this completely wrong?
TOPICS
ActionScript

Views

611

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 03, 2009 Apr 03, 2009

Copy link to clipboard

Copied

What is that fix supposed to be doing?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 03, 2009 Apr 03, 2009

Copy link to clipboard

Copied

I think the problem is that the textfield inside the bubble is now also having a _yscale of -100 and perhaps you didn't embed the fonts for the textfield it isn't showing. Show first embed the font. If you don't know how let us know.

The next thing to do after that is add:

robot_mc.talk_mc.bubble_mc.mytextfield._yscale = -100;

Also I recommend flipping by

robot_mc.talk_mc.bubble_mc._yscale *= -1

Just incase it started at 80 or something you don't actually want it at -100 but rather -80. Just a lesson learned....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 03, 2009 Apr 03, 2009

Copy link to clipboard

Copied

ah right!, *= -1; that makes a bit more sense. What I think I can do is probably make two parts to the icon instead. One part is the bubble itself with the textbox inside, the second part is the pointy piece connecting the mouth and the bubble, the pointy piece flips, but the bubble doesn't, that way I don't have to imbed the font.

Ned -- the testing fix was to see if the textbox+bubble would flip upside down at all - the bubble flipped but the textbox disappeared.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 06, 2009 Apr 06, 2009

Copy link to clipboard

Copied

LATEST

Two parts to the bubble clip are probably the best approach, but generally I recommend embedding the font. There are so many things like masking and rotating and alpha that all rely on having the font embedded that it is generally a good idea to do it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines