Adobe Dreamweaver Forums



Last 10 THreads :         Re: Flash Player 9 for Pocket PC (Last Post : HowardZinn - Replies : 0 - Views : 1 )           »          UserAgent (Last Post : DJPerl - Replies : 0 - Views : 1 )           »          Pause videos on page load (Last Post : DLMAES - Replies : 1 - Views : 2 )           »          Lesson 17 Problem (Last Post : Jim Daniel - Replies : 4 - Views : 5 )           »          Flash for windows Mobile (Last Post : kelcel7545 - Replies : 0 - Views : 1 )           »          Share your opinion on Adobe Contribute for a chance towin $500USD! (Last Post : Ramesh Gopalakrishna - Replies : 0 - Views : 1 )           »          MySQL Error# : 2002 in Dreamweaver CS3 (Last Post : jmsearcy - Replies : 24 - Views : 25 )           »          Opensuse 11.0 install error (Last Post : RahulRohilla - Replies : 4 - Views : 5 )           »          Flash Publishing Help (Last Post : DLMAES - Replies : 1 - Views : 2 )           »          CFFEED Error message (Last Post : Azadi - Replies : 7 - Views : 8 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , , , ,

Reply
  #1 (permalink)  
Old 07-24-2008, 01:56 PM
kaushal_bs
 
Posts: n/a
Diggs:
Default Loading style sheets at run time

I have created few fonts css and compiled them into swf to load them at run
time.

There is one custom component Card, is placed into a Module and this Module is
loaded by main application.

The Card component contains TextArea, MyTextArea(custom component) and
ComboBox (which display font list).

Now when user select any font from ComboBox, Card component load css and when
it get loaded, it updates fontFamily of TextArea and MyTextArea. But only
TextArea updated with new fonts while MyTextArea is not getting update anytime.

Can anyone help me to figure out this.

I am using following code to load css run time.

var myEvent:IEventDispatcher =
StyleManager.loadStyleDeclarations(fontSource[0].src,true,false,ApplicationDomai
n.currentDomain);

myEvent.addEventListener(StyleEvent.COMPLETE,fontC omplete);

myEvent.addEventListener(StyleEvent.ERROR,fontErro r);

Any help will be appreciated, Thanks


Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 04:29 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk