sushil
09-05-2007, 05:40 AM
I have some problem in fontstyle , I want that when i select combox box then font style will change, It is working on swf7 but not working on swf8,
I am using swf8, if there is any solution pls give me ....
<canvas width="500" height="500" debug='true'>
<font name="Helvetica-Condensed">
<face src="helmetcb.ttf" style="bold"/>
<face src="helmetcbi.ttf" style="bold italic"/>
<face src="helmetci.ttf" style="italic"/>
<face src="helmetcr.ttf"/>
</font>
<text x="100" y="100" font='Helvetica-Condensed' fontsize='20' id='pp' text='ssssssssssssssssss'/>
<combobox id="cbox" x="5" y="5" width="130" editable="false">
<textlistitem text="plain" />
<textlistitem text="bold" />
<textlistitem text="italic" />
<method event='onselect' >
pp.setAttribute('fontstyle',this.text);
</method>
</combobox>
</canvas>
I am using swf8, if there is any solution pls give me ....
<canvas width="500" height="500" debug='true'>
<font name="Helvetica-Condensed">
<face src="helmetcb.ttf" style="bold"/>
<face src="helmetcbi.ttf" style="bold italic"/>
<face src="helmetci.ttf" style="italic"/>
<face src="helmetcr.ttf"/>
</font>
<text x="100" y="100" font='Helvetica-Condensed' fontsize='20' id='pp' text='ssssssssssssssssss'/>
<combobox id="cbox" x="5" y="5" width="130" editable="false">
<textlistitem text="plain" />
<textlistitem text="bold" />
<textlistitem text="italic" />
<method event='onselect' >
pp.setAttribute('fontstyle',this.text);
</method>
</combobox>
</canvas>