Question on TextFormat regarding Dynamic Text
|
|||
|
Rank: ? (1)
Member #: 24936 |
Hello,
I was hoping someone could lend a thought on this problem: I have 3 MCs which have dynamic text property. The 2 instances are completed properly. The site includes a shared library which has one font in it:Georgia. The web page which includes the MCs has the font linked. The font has been set up in the shared library, i.e., "Linkage Property". All 3 options in this property are selected and the url is "sharedlib.swf. (just in case anyone is wondering about the font setup). The problem is this. I am using the following code to establish submenu activity. When the page is published and opened into the "master" web page, the MCs do not work. The initial text is present, however there is no activity on rollover, rollout, etc. I have spent several hours reviewing syntax and help sites with no luck. I would really appreciate anyone's thoughts. Peace. //Create TextFormat object that defines the states of the sub-menu options var optionDisable:TextFormat = new textFormat("Georgia", 15, null, true, true); var optionEnable:TextFormat = new textFormat("Georgia", 13, null, false, false); // Disable the sub-menu option that corresponds to the currently loaded section this.AboutUs_MC.myText.setTextFormat(optionDisable); this.AboutUs_MC.enabled = false; // -----------<About_Us option>----------------- \\ this.AboutUs_MC.onRollOver = function() { this.myText.setTextFormat(optionDisable); } this.AboutUs_MC.onRollOut = function() { this.myText.setTextFormat(optionEnable); } // -----------</About_Us option>----------------- \\ // -----------<RMP Staff option>----------------- \\ this.RMPStaffMC.onRollOver = function() { this.myText.setTextFormat(optionDisable); } this.RMPStaffMC.onRollOut = function() { this.myText.setTextFormat(optionEnable); } this.RMPStaffMC.onRelease = function() { this.myText.setTextFormat(optionDisable); this.enabled = false; } // -----------</RMP Staff option>----------------- \\ // -----------<Projects option>----------------- \\ this.ProjectsMC.onRollOver = function() { this.myText.setTextFormat(optionDisable); } this.ProjectsMC.onRollOut = function() { this.myText.setTextFormat(optionEnable); } this.ProjectsMC.onRelease = function() { this.myText.setTextFormat(optionDisable); this.enabled = false; // -----------</Projects option>----------------- \\ |
||
|
Please login or register to post a reply.