A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: access stylesheet from document class, or reload?

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

    access stylesheet from document class, or reload?

    I have a stylesheet loaded to my document class. Later i create some Box instances (custom class) that havee some text in it. Can that textfield in the Box access the stylesheet loaded to the DC? Or am i better off having each Box load their own stylesheet? what is optimal?

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Have you tested it? It should be ok.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    will i ever get it?
    Join Date
    Feb 2004
    Posts
    707
    duh....time to find my thinking cap

    PHP Code:
    var rain:RainBow=RainBow(stage.getChildAt(0));
                    
    tf.styleSheet=rain._css//custom public prop 
    thanks ci....BTW, if there is a better way to acces the DC, please let me know...i figured out of a guess it has to be statge.getChildAt(0)-

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