Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-26-2009, 10:47 AM   #1
Join Date: Nov 2005
Posts: 344
Default Bizzar? My text wont rotate?

I am loading text in from an external xml file, but when I set it to rotate:

ActionScript Code:
desc_txt.rotation = 5;

the textbox is blank?

I even tried to put it in a movieclip and rotate it:

ActionScript Code:
desc.rotation = 5;
in case you weren't allowed to rotate text boxes for some reason? but still an empty text box?

And when I manually rotate the text box, without using actionscript... I still get an empty textbox!

I know it's rotation of any method because I get text again when I undo the rotation?

Am I doing anything wrong? Or can't you rotate external text for some reason?

Oh, P.S I import it first, then rotate it...

ActionScript Code:
var xmlLoader:URLLoader = new URLLoader(); var xmlData:XML = new XML(); xmlLoader.addEventListener(Event.COMPLETE, LoadXML); xmlLoader.load(new URLRequest("images.xml")); function LoadXML(e:Event):void {     xmlData = new XML(e.target.data);     ParseBooks(xmlData); } function ParseBooks(imgInput:XML):void {     var P:int = 0;     var IMG = imgInput.pic.image.text()[P];     var TXT = imgInput.pic.caption.text()[P];     var imageLoader:Loader;     function loadImage(url:String):void {         imageLoader = new Loader();         imageLoader.load(new URLRequest(url));         imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);         imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);     }     loadImage(IMG);     desc.desc_txt.text = TXT;     function imageLoaded(e:Event):void {         mc.addChild(imageLoader);     } // this is usually where I would place the rotation code }
chrisopia is offline   Reply With Quote
Old 10-26-2009, 10:55 AM   #2
Super Moderator
ASWC's Avatar
Join Date: Dec 2007
Location: Greenville, SC
Posts: 6,528

You can't rotate or apply basic effects (like fading for example) to text displayed without embedded fonts.
Super Duper!
ASWC is offline   Reply With Quote
Old 10-26-2009, 04:09 PM   #3
Join Date: Nov 2005
Posts: 344

Aaah!!! Thankyou!! Such an easy fix!
chrisopia is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:15 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.