[Xerte] Is it possible to identify and thus modify specific shapesdrawn as a background to a text icon

Patrick Lockley Patrick.Lockley at nottingham.ac.uk
Tue Oct 13 09:16:55 BST 2009


If you debug textID you should get a movie clip id?

 

As the textid is a flash movie clip at heart - you should be able to do
any of the following (there will be more as well)

 

textID._xscale

textID._yscale

textID._visible

textID._width

textID._height

textID._alpha

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Johnathan
Kemp
Sent: 13 October 2009 09:13
To: Xerte discussion list
Subject: [Xerte] Is it possible to identify and thus modify specific
shapesdrawn as a background to a text icon

 

I have a text icon (textID) 

I know that I can use

 

textID.beginFill(0xFFFFCC, 100);
textID.lineStyle(1,0x000000,100);
textID.drawRect(0,0,100,10,20);

 

to draw a rectangular background, giving me a rectangle that is much
wider than it is high.

 

but if I then do

 

textID.drawRect(0,0,10,100,20);

 

it does not replace the original rectangle, it adds a further rectangle,
higher than it is wide.

 

What I want to be able to do is to draw a background and then later
change the colour or alpha setting of that background.

An alternative would be to add or remove a glow.

 

So is there a way to either address the original rectangle so that I can
change its properties, or alternatively delete or erase the rectangle so
that I can redraw another one, without deleting the text icon?

 

Kind regards

 

Johnathan

Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/> 
01785 355714

 

 

________________________________

This email and any files transmitted with it are confidential and are
intended solely for the use of the individual(s) or entity(s) to whom
they are addressed. All messages are monitored for virus, high risk
files and inappropriate content. As a result users should be aware that
this mail maybe accessed, read and the right is reserved to reject,
return, remove attachments or delete if considered to be inappropriate
or unsuitable. Liability cannot be accepted for any loss or damage
arising from this email (or any attachments) or from scripts or any
virus transmitted. This communication represents the originator's
personal views and opinions, which do not necessarily reflect those of
Connexions Staffordshire. If you are not the original recipient or the
person responsible for delivering the email to the intended recipient,
be advised that you have received this email in error, and that any use,
dissemination, forwarding, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately reply to the sender or notify postmaster at cxstaffs.co.uk
Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford,
Staffordshire, ST16 2PX

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091013/c93304b1/attachment.html


More information about the Xerte mailing list