Saturday, January 3, 2009

1118: Implicit coercion of a value with static type Object to a possibly unrelated type .

var myvar:classname=e.target could result in the compiler error:
1118: Implicit coercion of a value with static type Object to a possibly unrelated type . in actionscript 3

Possible fixes / solutions:
try var myVar:classname= e.target as classname;

or

var myVar:classname=e.currentTarget;

Thursday, October 16, 2008

How to load fonts from external swf in actionscript 3

Here is the code:

import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.events.Event;
import flash.text.TextFormat;

var newFormat:TextFormat = new TextFormat();
var fontLoader:Loader = new Loader();
var fontLoaderInfo:LoaderInfo = fontLoader.contentLoaderInfo;

fontLoaderInfo.addEventListener(Event.COMPLETE, onFontLoaded);

fontLoader.load(new URLRequest("
Verdana.swf"));

function onFontLoaded(e:Event):void {
var info:LoaderInfo = e.currentTarget as LoaderInfo;
var loader:Loader = info.content as Loader;

var embeddedFonts:Array = Font.enumerateFonts(false);
for (var i:Number = 0; i < embeddedFonts.length; i++) {
var item:Font = embeddedFonts[i];
trace("[" + i + "] name:" + item.fontName + ", style: " + item.fontStyle + ", type: " + item.fontType);
}
var myTextField:TextField = new TextField();
myTextField.embedFonts = true;
myTextField.text = "Displaying font in textfield from external swf with embdedded fonts.Anon Delivered.";
myTextField.autoSize = TextFieldAutoSize.LEFT;
newFormat.font=embeddedFonts[0].fontName;
newFormat.size=26;
myTextField.setTextFormat(newFormat);
addChild(myTextField);
}


To create Verdana.swf, check this article:
http://services.communitymx.com/content/article.cfm?cid=67A61&print=true

Friday, August 8, 2008

Nokia To Ship Silverlight on Mobiles



Nokia To Ship Silverlight on Mobiles

By MJorge

Nokia announced today that it will be installing Silverlight on S60, S40 and Nokia internet tablets. Sunny Talks Tech.


Beedigital - Adobe, Flash, Flex,... - http://www.beedigital.net/blog


more.. @http://www.beedigital.net/blog/?p=1903

actionscript 3.0 editor on mac - update



actionscript 3.0 editor on mac - update

By David Pett(David Pett)

Since my last post, which has been a while, I have been doing a lot of coding, and Flex wasn't cutting it, it was to slow and clunky for my purposes (although a great tool for creating flex apps). I have move to Textmate. ...


David Pett - http://www.davidpett.com/


more.. @http://www.davidpett.com/2008/03/actionscript-30-editor-on-mac-update.html

Orgoo adds video chat to repertoire



Orgoo adds video chat to repertoire
CNET Blogs - Cupertino,CA,USA
It lets anyone create a text chat room with four spots for Webcam video and
audio without any sort of registration or software besides Adobe's
Flash plug-in ...

See all stories on this topic

more.. @http://www.webware.com/8301-1_109-9885729-2.html

Apple shareholders pepper Jobs with questions



Apple shareholders pepper Jobs with questions
CNET Blogs - Cupertino,CA,USA
Turning back to the iPhone, don't expect support for Adobe's
Flash technology anytime soon. The full-blown PC Flash version
"performs too slow to be useful" ...

See all stories on this topic

more.. @http://www.news.com/8301-13579_3-9885708-37.html

Adobe's Flash Player Not Suited For IPhone, Apple CEO Says



Adobe's Flash Player Not Suited For IPhone, Apple CEO Says
CNNMoney.com - USA
... the mobile Web browser inside the combo phone and digital
media player hasn't been compatible with online videos based on Flash
Player, an Adobe -made ...

See all stories on this topic

more.. @http://money.cnn.com/news/newsfeeds/articles/djf500/200803041742DOWJONESDJONLINE000829_FORTUNE5.htm