![]() |
| Adobe Forums » Adobe Influences » Site Design » Nested Dynamic Text won't display |
| Tags: |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
Everything works correctly below. The new button displays on stage, but the
nested dynamic text (instance name "campText") will not display. 1119: Access of possibly undefined property campText through a reference with static type flash.display:SimpleButton. Here's the short code: import flash.display.SimpleButton; import flash.display.*; import flash.text.TextField; var myButton:SimpleButton = new camp(); myButton.x = 350; myButton.y = 100; myButton.campText.text = "CAMP"; addChild(myButton); |
![]() |
| Thread Tools | |
| Display Modes | |
|
|