I think if you embed the font onto a class, then load the SWF that has that class, then do getDefinitionByName for the class it should work?

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of mitchgrasso
Sent: Thursday, October 05, 2006 9:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Runtime loading of an SWF with embedded font

 

I am trying to use SWFLoader to import an external Flex-generated SWF
into my main Flex app. The external SWF has an embedded font which I
want to be able to use from the main app as well.

I know there are apparent limitations with dynamically embedding assets
but is this method possible? The documentation leads me to believe that
it should be possible to access the embedded assets within an external
SWF within the same ApplicationDomain but I haven't been successful in
getting this to work (not to mention that the sample code for
GetDefinition doesn't seem to work correctly). Are fonts treated
differently than other embedded assets? Assuming I can even get the
embedded font class out of the external SWF, how would I then reference
it in a style?

I have seen the discussion and solution using RSL components which
leads me to believe this could be possible...

thanks

Mitch Grasso

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to