A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: using the same css across multiple classes

Hybrid View

  1. #1
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707

    using the same css across multiple classes

    ok one more question for today...if i am importing a css sheet from one class, or from the main swf, and i want to reference that same css from another class, what is the best method? I think it a bit much to have to import it for every instance of the class. In AS2, i used _level0.cssSheetName to make that reference from inside a class....how is this done in AS#?

  2. #2
    Flash Your Flex
    Join Date
    Apr 2007
    Location
    Provo, Utah
    Posts
    45
    You would probably be fine importing it in to a few classes. But for the _level0.abc structure, that is not proper AS syntax with AS3 now. You could do something similar to what I posted here about a global var though.

    http://board.flashkit.com/board/showthread.php?t=730165

  3. #3
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707
    yeah...this is the right track..thanks...i will study up now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center