[Xerte] Re: Drag and drops - close

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Feb 1 12:21:34 GMT 2011


OK. But concerned about that autoSize thing stopping working. Is it a Flash Player version thing? Shouldn't be anything to do with me, not sure I can influence that even if I wanted to...

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 01 February 2011 12:20
To: Xerte list
Subject: [Xerte] Re: Drag and drops - close


Jump to the latest in the thread. All the rest is junk.
Solved it by targetting the .txt instead of the icon.

________________________________
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Tue, 1 Feb 2011 12:16:47 +0000
Subject: [Xerte] Re: Drag and drops - close
Yeah, if you size up a moveiclip, you stretch iot;'s children. Draw into a new movieclip in the icon? Or fake it with two icons?

What's the scenario? I'm sure there's a neat answer here.

I'd draw, set the initial text to '', then when you want to show the text do iconID.setText("my txt") and then iconID.clear(), iconID.redrawtheRectangle(); //fictional method, but you get the idea

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 31 January 2011 23:38
To: Xerte list
Subject: [Xerte] Re: Drag and drops - close

OK, real close

Text icon properties 200 x 30.

daveid.txt.setSize(200,30); //set the actual text object (txt) to match the icon
daveid.txt.autoSize = "none"; //tell the text object not to resize
daveid.drawBorder(2,0x000000,80); //fill the text icon area
daveid.fillIcon(0xff0000,80); //fill the text icon area

So I get a red object 200 X 30 with the first line of text showing in it.

Now I want to expand it and show all:

daveid.txt.autoSize = "left"; //tell the text object to resize to show all text
daveid.txt._height = daveid.txt.textHeight; //get the height of the text object
daveid._height = 400; // try to expand the icon area to match the new text object height

Unfortunately, this expands the text as well, with the font size jumping radically.
I thought the icon and txt objects were divorced at this point?
Problem because it's a child?

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110201/98673a5b/attachment-0001.html>


More information about the Xerte mailing list