I have a flash coloring book file and it works fine. I want to remove the drawing part so I can rotate in different drawings to color. I removed the drawing part(horse.swf) and made it its own file. I used the loadmovie to load it in the main file(coloringbook.swf) but when I click on the drawing to color it it doesn't work. I think I need to add paths but I'm not sure how.
Here's the code in the main file(coloringbook.fla)
the main timeline
empty.loadMovie("horse1.swf");
with (empty){
_x=0;
_y=0;
}
- empty.loadMovie("horse1.swf");
- with (empty){
- _x=0;
- _y=0;
- }
here's the code on each color block
on(release) {
_root.hue = 0xCC33FF;
colorselected = new Color (_root.selected) ;
colorselected.setRGB(_root.hue) ;
}
- on(release) {
- _root.hue = 0xCC33FF;
- colorselected = new Color (_root.selected) ;
- colorselected.setRGB(_root.hue) ;
- }
now here's the code on horse.fla
on(release) {
fillshade = new Color (_root.horsebody) ;
fillshade.setRGB(_root.hue) ;
gotoAndPlay(1);
}
- on(release) {
- fillshade = new Color (_root.horsebody) ;
- fillshade.setRGB(_root.hue) ;
- gotoAndPlay(1);
- }
that code is on each mc that will be colored with the "horsebody" being the instance name given to that piece.