fireburner69
Programmer
Hello,
I am trying to make a small component in FlashMX 2004 and I have a problem with Live Preview.
I have followed some tutorials on how to make a simple component. Everything is fine.
I have made a swf that holds the live preview of the component and I am using this code to make the livepreview to work:
function onUpdate() {
this.main_box._width = _root.xch.Umw;
this.main_box._height = _root.xch.Umh;
}
Everything is working fine.
Now for the problem.
When I am using the component for a second time on the scene and change the properties both instances of the component changes.
I setup the width and the height of the mc and everytime i change the value to the component a in the live preview I can see that it changes the b also.
Although the component works fine.
In the final preview I can see that each instance of the component takes the correct value.
Any ideas of how I can make the live preview work fine and not mix up the values?
Thanks in advance.
I am trying to make a small component in FlashMX 2004 and I have a problem with Live Preview.
I have followed some tutorials on how to make a simple component. Everything is fine.
I have made a swf that holds the live preview of the component and I am using this code to make the livepreview to work:
function onUpdate() {
this.main_box._width = _root.xch.Umw;
this.main_box._height = _root.xch.Umh;
}
Everything is working fine.
Now for the problem.
When I am using the component for a second time on the scene and change the properties both instances of the component changes.
I setup the width and the height of the mc and everytime i change the value to the component a in the live preview I can see that it changes the b also.
Although the component works fine.
In the final preview I can see that each instance of the component takes the correct value.
Any ideas of how I can make the live preview work fine and not mix up the values?
Thanks in advance.