cYb3rc0re
02-25-2006, 10:50 AM
Hi,
I have a question regarding components, changing parameter dynamically (but from the begining). I have one menu component and 3 menus on the stage. The menu component has parameters for the color of the normal text, and the hover (mouse-over) text, so there is no problem defining them from the flash component parameters for every menu.
So I am making it so the client can edit only one html file containing the parameters of the whole design (menu colors, position, images etc.) but I have problem with setting the color of the texts at the begining (when the menus load). I did it with "menuName.onLoad = function()" but it isnt passing the variables "when the menu loads" and if I mouse over and then "it realises that the menu is loaded" and sets the colors. Untill I do that, the colors are as set from the parameters from the flash.
I get no result if I do "this.menuName.noverColor = 0x222222;" on first frame, it is successfull only if i place it in a function (as the onLoad, or custom made just for calling the colors), but the menu keeps the preset colors from flash at the begining.:confused:
I have a question regarding components, changing parameter dynamically (but from the begining). I have one menu component and 3 menus on the stage. The menu component has parameters for the color of the normal text, and the hover (mouse-over) text, so there is no problem defining them from the flash component parameters for every menu.
So I am making it so the client can edit only one html file containing the parameters of the whole design (menu colors, position, images etc.) but I have problem with setting the color of the texts at the begining (when the menus load). I did it with "menuName.onLoad = function()" but it isnt passing the variables "when the menu loads" and if I mouse over and then "it realises that the menu is loaded" and sets the colors. Untill I do that, the colors are as set from the parameters from the flash.
I get no result if I do "this.menuName.noverColor = 0x222222;" on first frame, it is successfull only if i place it in a function (as the onLoad, or custom made just for calling the colors), but the menu keeps the preset colors from flash at the begining.:confused: