This content has been marked as final. Show 9 replies
add the following to the main timeline of horse.swf:
that didn't work
does horse.swf work correctly when not loaded?
Yes it works on its own. Here's some more info. Basically I made a flash coloring book that worked fine. But I want to be able to rotate in different drawings by loading different swfs. So from the original flash I took out the drawing(horse.swf) and made it into a new file. So the horse file and the file with the color palette are 2 different files. If I just run horse.swf on its own and click on the blank spots it fills them with black. If you have a different way to do this its fine. thanks
the file with the color palette is a separate file? does that file contain the variable hue? if so, into what movieclip is the palette loaded?
yes I have 2 fla files. the main one "coloringbook" contains the palette In the main timeline I have this code
On each different color mc I have this code
_root.hue = 0xCC33FF;
colorselected = new Color (_root.selected) ;
I want to add different pictures to the palette. So I have a drawing named "horse,swf" It has thia code in the main timeline.
Each part that can have color added to it has this code.
fillshade = new Color (_root.horsebody) ;
with each piece having an instance name. Thats all my code
remove the _lockroot statement. if horsebody is in the external swf you need to use a relative path to it.
how do I do that?
you can use trace(this) attached to a frame in horsebody and next to your fillshade assignment. if you post the output of each those the relative path can be determined.