Changing Movie Clip Color Stops All Interaction
I have a symbol called myMovieClip that I've animated along a path. I have buttons that call play, stop, prevFrame, etc on the main timeline. This all works fine. However, when I click a button that calls...
on (release) { trace("set color."); c = new Color(myMovieClip) c.setRGB(0x993399); trace("done."); }
...the movie clip changes color, but then the buttons don't work anymore. I can't even make it play by hitting the play button in the flash player. Anybody know what's going on? It should be way easier than this to change something's color.
thanks... -sascha
FlashKit > Flash Help > Flash MX
Posted on: 06-16-2002, 05:12 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[CS3] Changing Color (and Opacity Of That Color) Of Movie Clip
Hi. I have a pretty large movie clip filled with pngs. It's a sprite for a game and I want to change it's color. The setRGB method works, but I can't figure out how to set the opacity of the color. I don't want to change the alpha of the movie clip itself, just the color I'm applying to it so that it's just a shade over the normal images.
Is there any way to do this?
Changing The Color Of A Movie Clip?
Hello,
I am trying to use the code below, but it is not working.
new Color(Status).setRGB #FFFF89;
>>Status is a movieclip loacted on _root
Thanks for any help you can give.
Changing Movie Clip Color
Hi
I have some movie clips whose color I change depending on the information I retrieve from the database. This I'm doing it through ASP. The ASP file sends the movie clip name whose color has to be changed. I'm able to retrieve the movie clip name but the color of the movie clip is not changing. Given below is the action script.
Can anyone help me regarding this. Thanks in advance.
Gohan
---------------
Action Script:
--------------
this.onEnterFrame=function() {
sendDir=new LoadVars();
getDir=new LoadVars();
getDir.onLoad=function(){
c1=255;
c2=100;
c3=100;
rgb = (c1 << 16 | c2 << 8 | c3);
clr3=new Color(this.path); //path is the variable that is
//passed from ASP.
clr3.setRGB(rgb);
};
sendDir.sendAndLoad("http://localhost/testing/testNew.asp",getDir);
}
---------------
ASP Code
--------------
<%
dim sendDat
path=Session("getDir")
sendDat="path=" & path
Response.Write sendDat
%>
Changing The Color Of A Movie Clip
The actionscript I tried didn't seem to work for changing the color of the Movie Clip. I tried the following:
var my_color:Color = new Color(my_mc);
my_color.setRGB(0xFF0000);
I also tried this one as well:
var my_color:Color = new Color(my_mc);
var myColorTransform:Object = { ra: 50, rb: 244, ga: 40, gb: 112, ba: 12, bb: 90, aa: 40, ab: 70};
my_color.setTransform(myColorTransform);
Any help would be appreciated.
Thanks.
Changing The COLOR Of Txt In Movie Clip
hi,
there s movie clips works on rollover buttons and i have a problem that i cant change the colors of the txt .how will i change the YELLOW color of text to any color i like ?. can anyone help me pls ? i searched but there s no code for color..
here s the source :
http://rapidshare.de/files/33509591/...ed_buttons.fla
Changing The Color Of A Movie Clip On The Maintimeline....?
Could someone please point me in the right direction...
I have a mc that contains sub-menu buttons...what I would like these buttons to do is : on release, change a mc in the maintime line a different color. Now, these mc's that contain the sub-menu buttons have also been placed in the maintime line......does any of this make sense? I'd appreciate any help...thanks!
Problem Changing The Color Of A Movie Clip
Hi all:
I have done an editable text field in order to let the user choose the background color of a movie clip. He can introduce the hexadecimal value.
In the first frame IŽve put the following:
------------------------
fonCol=new Color(fondo);
------------------------
"fondo" is the instance name of the movie clip that changes color.
The editable text field is called "colortext" so, IŽve created an invisible button (IŽll change this after it works) with the following code:
--------------------------------------
on (keyPress "<Enter>") {
fonCol.setRGB("0x"+colortext);
}
--------------------------------------
It doesnŽt seem to work, because when I enter FF0000 for example, the movie clip becomes black, and not red!!. Maybe the syntax is not properly written.
I need help, please.
Changing The Color Of An Object/movie Clip
I had an object that I wanted to be visible and invisible at my choosing... had to change it to a movie clip (this seems silly to me... you should be able to do it to objects)... but now I want to change the color of this movie clip object at the click of a color... how would I go about doing this... I tried this without success:
c=new Color(img_boy);
c.setRGB( 0x000000 );
Thank you
Changing Color Of An Animated Movie Clip
It seems what I want to do should be pretty simple, but it is not working as I expect. I have an instance of a Movie Clip called myCircle and it is being animated with a Motion Tween. I want to change the color of myCircle by doing something like this:
circleColor = new Color(this.myCircle);
circleColor.setRGB (usersColor);
delete circleColor;
After the code executes, myCircle changes color, but it is no longer animated with the Motion Tween. Any suggestions?
Thanks
Changing Color Of A Nested Movie Clip
Ok, so I can change the color of a movie clip fine using actionscript. But say that my movie clip contains an outline and a color inside, and I only want the color inside to change. I figured I should separate the movieclip into two separate clips in order to to this. So now, I need to know how to changed the color of a nested clip.
circle consists of circleOut and circleFill movie clips
container.attachMovie("circle","circle1",1);
var circlefillcolor = new Color(container["circle1"]);
circlefillcolor.setRGB(0x333333);
This code will turn the whole circle including the outline gray.
container.attachMovie("circle","circle1",1);
var circlefillcolor = new Color(container["circle1"].circleFill);
circlefillcolor.setRGB(0x333333);
This code won't do anything color related.
I know I am doing it wrong but I don't know how to fix it. Any suggestions?
Attach Code
container.attachMovie("circle","circle1",1);
var circlefillcolor = new Color(container["circle1"].circleFill);
circlefillcolor.setRGB(0x333333);
Edited: 02/08/2007 at 03:36:46 PM by Jurgamund
Changing Outline Color Of A Movie Clip
I have a movie clip representing the state of Missouri. I'm changing its fill color based on data from an xml file. I'd like its outline color to be black. I've tried applying a glow filter, but it doesn't seem to work. Can anyone tell me what I'm doing wrong?
Attach Code
var outline:GlowFilter = new GlowFilter();
outline.alpha = 1;
outline.color = 0x000000;
outline.blurX = 7;
outline.blurY = 7;
outline.inner = true;
outline.quality = BitmapFilterQuality.HIGH;
outline.strength = 255;
Missouri.filters = [outline];
Changing Instance Color Of A Movie Clip
I've got a map, of those you roll over the mouse on the sections and it displays the section name.
I want to add to these code, the instance of changing the colour of the section, so sections are more visible each time you move your mouse over the map.
So, I have this code on every section (each section is a MC).
Quote:
onClipEvent (mouseUp){
myColor.setRGB(0xff9933);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.ciudad.escribir("Quilmes");
tip = true;
} else if (tip) {
_root.ciudad.escribir("");
tip = false;
}
// end if
}
Somebody can help me out here on adding to these a change color?
I've tried several options but none of them worked.
Thanks a lot.
Changing Outline Color Of Button Or Movie Clip
I have some vector art of the United States. I've made each state into a simple button. I'm changing the color of each button via transform.colorTransform. However, this knocks out the outline of each button. I can't "redraw" the button as a sprite because the states are not geometric shapes. I've tried applying a glowFilter, but instead of taking the color I specify (black or white), it uses the color of the colorTransform, which of course, doesn't show up unless I set the glowFilter knockout to true.
I tried changing a button to a movie clip, but that didn't make any difference.
Anyone know how I can either restore my vector outlines or set new ones on each U.S. state/button?
Here's a snippet of my code:
var t:Transform = btnName.transform;
var ct:ColorTransform = t.colorTransform;
ct.color = 0x3b6381;
btnName.transform.colorTransform = ct;
var outline:GlowFilter = new GlowFilter();
outline.alpha = 1;
outline.color = 0xffffff;
outline.blurX = 2;
outline.blurY = 2;
outline.inner = true;
outline.quality = BitmapFilterQuality.HIGH;
outline.strength = 255;
btnName.filters = [outline];
Changing Movie Clip Color ..whats Wrong With This Code?
Hi
I'm getting the movie clip name from access database through ASP which is a string. I have one frame in
my movie. The command txtTest.text= this.path is dispalying the retriebed value from teh database. So
data coming into the flash movie is not a prolem. So why is the movie clip color not changing?
Can anyone help me regarding this?
Thanks in advance.
------------------
Action Script
-----------------
stop();
this.onEnterFrame=function() {
sendDir=new LoadVars();
getDir=new LoadVars();
getDir.onLoad=function(){
myColor = new Color(this.path);
myColor.setRGB(0x006666);
txtTest.text= this.path;
};
sendDir.sendAndLoad("http://test/testNew.asp",getDir);
}
Changing Font Color Of Another Movie Clip's Dynamic Text (probably Ridiculously Easy)
Hi guys - I have two movie clips on the stage - KRS_ZOOM and heading_mc.
heading_mc contains a dynamic text box named ht. I am trying to change its font color via a frame on the KRS_ZOOM movie clip. how can i reference it?
My code below is not working.
tf = new TextFormat();
tf.color=0xFFFFFF;
trace(_root.heading_mc.ht.text);
_root.heading_mc.ht.setTextFormat(tf);
Changing Background Color During A Clip?
Hello,
I am trying to make swish file. I have made my letters drop on to the screen. But after that is done - I want to change the top half of the background color to red and the bottom half to yellow. I would like those to colors to slide in.
How should I go about doing this?
Thank you!
Tmuld.
Movie Clip Interaction
I'm pretty sure this is an action script thing so I'm posting the question here. I'm trying to make a little animation for my girl friend, it's of a penguin. What I want is for the penguin to just sort of waddle around the screen (that's the easy part) but what I am asking about is that I want the penguin to be interactive. If you click on the penguin I want it to react to the click in some random way, like have it jump or run away or somthing. I was wondering if anyone has any ideas as to how to go about this.
Movie Clip Interaction
Hi, here is my newest problem.
I have a movie clip that repeats itself and moves down the stage evertime it repeats.
I want a blank clip to load another instance of the moving clip and begin it playing on the stage when the first instance moves across the point on the stage where the blank clip is. I also want that clip to be rotated so it moves 90 degrees differently from the original clip.
Anyone have an idea?
(i am using mx2004)
Help With Button/movie Clip Interaction
I have 4 buttons on a page and a long rectangle movie clip that slides to a different area each time a button is clicked. The idea is similar to http://www.immigrantindustries.com/i...ords/index.htm when u go from label to news button the image slides over to the left. Basically thats all I'm trying to do. I've looked at most of the posts and no one's asked this question or had it answered so thanks in advance if anyone can help.
-Project-09
Movie Clip Stops When Doing Another Action
hi
i am working on a website, in which i have this kida "compass" follower... looks very cool, if you move the mouse, it turns... BUT
when i click into the text-scroller that is on the same page, that compass just stops.....
can somebody tell me how.... both clips (compass and smooth scroller are ripped and adjusted.... )
somebody please....
maybe i can send you the fla file?
greetz
melvin
Rewinding And Movie Clip Stops
I am using the below code to rewind for a button. I have no problems with the code except for the fact that I have a movie clip playing inside the button. The video clip plays then when you roll over it, the video is still playing, once I roll off then the clip stops playing. Once you roll back over it then it starts playing again.
I am trying to figure out how to make the video not stop on the roll off.
Code:
stop();
var rewind:Boolean;
this.hitArea = this.hit;
this.addEventListener(Event.ENTER_FRAME, ef);
this.addEventListener(MouseEvent.ROLL_OVER, roll_over);
this.addEventListener(MouseEvent.ROLL_OUT, roll_out);
function ef(event:Event):void {
if (rewind) {
this.prevFrame();
}
}
function roll_over(event:MouseEvent):void {
rewind = false;
this.play();
}
function roll_out(event:MouseEvent):void {
rewind = true;
}
Entire Movie Stops On Clip End
I have a problem. I made a preloader that reads it's filesize and then displays a percentage as it loads. Everything works fine, but the problem is when the movie clip that the script is in no longer exists (such as in the next scene), the entire movie just stops. Here is the code that I used:
onClipEvent (load) {
tkb = _root.getBytesTotal();
_root.size = tkb/1024;
_root.version = getVersion;
}
onClipEvent (enterFrame) {
p = Math.round((_root.getBytesLoaded()/tkb)*100);
_root.percent = p;
if (p == 100) {
_root.nextFrame();
}
}
Please help!
Rewinding And Movie Clip Stops
I am using the belwo code to rewind for a button. I have no problems with the code except for the fact that I have a movie clip playing. The video clip plays then when you roll over it, the video is still playing, once I roll off then the clip stops playing. Once you roll back over it then it starts playing again.
I am trying to figure out how to make the video not stop on the roll off.
Code:
stop();
var rewind:Boolean;
this.hitArea = this.hit;
this.addEventListener(Event.ENTER_FRAME, ef);
this.addEventListener(MouseEvent.ROLL_OVER, roll_over);
this.addEventListener(MouseEvent.ROLL_OUT, roll_out);
function ef(event:Event):void {
if (rewind) {
this.prevFrame();
}
}
function roll_over(event:MouseEvent):void {
rewind = false;
this.play();
}
function roll_out(event:MouseEvent):void {
rewind = true;
}
Invoke Action After Movie Clip Stops?
there is one movie clip on my stage with instance name : "myMC"
i have also 2 buttons: "buttonA" and "buttonB"
i have this code on my first frame:
friction = "0.2";
dif = 0;
targety = 0;
_root.onEnterFrame = function (){
dify = dif - myMC._y;
speedy = dify*friction;
myMC._y = Math.floor(myMC._y+speedy);
dify = int(targety)-myMC._y;
}
this code moves "myMC" up and down depends on value of variables: dif and targety,
actions on the buttons:
on buttonA:
on(release){
dif = 370;
targety = 370;
}
on buttonB:
on(release){
dif = 100;
targety = 100;
}
question: i want to invoke some action but only when myMC will stop,
i'd love to change this code to basically specify final position of myMC by assigning final _y value to the buttons (and than say: if (myMc._y == 100){ do this })
but as long as when i place myMC on postion 0,0 and after pressing buttonB it stops
on 100,0 that after pressing buttonA myMC stops on 366,0 and when i keep adding buttons
final position is not the same every time.
please help.
kooba
Looping Movie Clip Stops In Middle
I am using a movie clip as part of a game. It's a clip of a spaceman walking.
When the game is being played, the movie seems to loop one time (the spaceman walks one cycle), and on the second time around the animation seems to stop right in the middle of the cycle. it always stops on the same frame.
What is happening here?
Thank you
Movie Control For Multiple Stops In A Clip
ok..i have a nested movie clip called SHUTTLE and i i have 4 or 5 buttons in the parent clip that i want to control the Shuttle clip. I want to be able to make the shuttle movie play backward or forward to certain frames and stop and then continue from that frame when another button is pressed..i am using flash 5....can anyone help me?
Hex Color Code To Change Movie Clip Color
Hi all, Sorry real quick,
i've got a text box with the text with a hex code from a color picker which reads say "FF0000" how do i use that hex code(FF0000) to change a movie clips color.
simple (me stupid)....
thxs for any help
jon
Changing Height Of Movie Clip Without Changing Width
Im using flash MX, and i needed to know if it was possible to change the height of a movie clip without changing the width of it. i have a 1px wide line, and i want to change the height of it, but i want to keep it 1px wide. is it possible to do this without having to redraw it everytime i want to change it?
Sound Stops When Menu (movie Clip) Plays
Hi there can anybody tell me what i'm doing wrong?
Here is the link
The problem is when loaded if you select 'change track' (about 1/3rd of the way down on the right) and play a track, once thats start playing you can hit close but as soon as you click on 'select track' again to choose another it stops the current track playing.
Here is the code i've used on the 'track list button:
on (release) {
_level0.containerTracklist.loadMovie("tracklist.sw f");
_level0.preloaderTracklist.gotoAndStop(2);
_level0.current_selection = "tracklist";
}
as you can see it loads up a separate swf for the menu and then here is the code for the buttons within the tracklist menu:
on (release) {myMusic = new Sound(myMusicMc);
myMusic.loadSound("http://www.binaryfinarydesign.com/newcv/track1.mp3", true);
}
The only thing i can think of is that its loading on the same level or something and the 'change track' menu is replacing the sound object?
I'd greatly appreciate any help.
Photo Gallery Stops Functioning In Movie Clip
I have a photo gallery that works just fine by itself. It has clickable thumbnails to scroll through, select an image, and load it into a movie clip on the stage. When I test the movie it works great. Or, if I copy the frames of the gallery and paste them into a different .fla the gallery still works fine.
Here is the problem. I am working on a website and I have built each page as a seperate movie. When I paste the frames of the gallery (from its own .fla) into one of my pages (a movie), all of the functions do not work; the scroll buttons don't work, the thumbnails don't bring up images, etc.
It seems that there is a problem with pasting the gallery into movies. Why would this not work?
Help - External Sound Clip Just STOPS Midway Through Movie
Hi -
I have a file that loads a sound-only external swf in Frame 1. The sound file is about 790. Once loaded into the main movie, it plays nicely until frame 670, then the sound just stops. I checked my action script and the timeline, and can't find any reason it would stop the sound only.
I really need to deliver this file tommorrow, and would greatly appreciate any help! Here are the files for you to "save to disk."
http://www.ultimatecampresource.com/...aucha-long.fla
http://www.ultimatecampresource.com/...atauchaext.fla
Thanks in advance!
Load External Movie Into Sliding Clip When Stops
Guys, I spent days on this it's 5:30 am and I'm up figuring this out, yesterday I was up till 7am. I NEED HELP!!!
I have a sliding menu on a stage that is 700x500. the menu slides in a movie clip on a stage that has small movie clips inside for each of the 13 menu sections like : intro, overview etc...
I need each of those sections to load an external movie and ONLY PLAY IT When it detects that the sliding is done on each one.
This is the control2 that slides the movies: first frame has stop action, 2nd has code below and 3rd makes it go back to second.
Xsquare = _root.large._x;
Xdiff = _root.Xpos-Xsquare;
Xmove = Xdiff/3;
_root.large._x = Xsquare+Xmove;
this resides in a control clip at the root. then each of the buttons has this script:
on (release) {
_root.xpos = 2542;
tellTarget ("_root.control2") {
gotoAndPlay(2);
with coordinates changing every 700 px to account for the size of the stage since all the movies span across it.
How do I adjust this script to load the external movie when the control2 script stops sliding? Please help me before I totally go crazy.
Thank you.
pixelfan
my email: mayka06851@hotmail.com
Changing Movie Bg Color?
just wondering...is it possible to have the movie background color different somewhere along the movie than e.g. in the beginning?
Movie Clip Masked Title Stops With Stop Command
I have a masked Title on my web page which has a mask on a movie clip running over it. When it reaches the stop command which is two frames after it starts and seperate from the movie clip it stops even though it is a movie clip and should keep going right?
any ideas?
How Do I Stop The Movie Clip When The Song Stops With Action Script
Ok...I need help with this....I was given a task to stop a banner when the song that is just about 9:00 mins long. Now i dont know whether or not I should stream it or find some ActionScript for this....The only thing about the streaming is that the banner is about 30 secs. Is there a way for me to loop it until the song end???
Check it out here http://www.syn3.org/myspace/mergeMyspaceAD.swf
It keeps playing after the song ends
Changing Movie Color For Backgrounds
im really stumped on this one,
I've been making an all flash website and i want to make a site control with a change background button.
the only way I knew how to do this is import my premade backgrounds and adding them to seperate frames in one layer and making a button and using the stop and goto actions.
this increased file size from 100k to 654k
so i thought why not just change the movie color itself,
is there way to do this that doent have such a bad effect on file size?
Changing Color Of Movie From Parent...
I seem to be unable to set the color of the movie pf_ from within the movie player_
the player_movie, reads info from an array and sets var's to set properties of the movie...well its meant to...player_ actions are as follows...
Code:
pn = this._name;
pxy = pn.slice(7, pn.length);
xy = pxy.split("");
x = (xy[0]);
y = (xy[1]);
var sex = set_sex(x, y);
var age = set_age(x, y);
var strength = set_strength(x, y);
var player = set_player(x, y);
if (player != 0) {
this._visible = true;
} else {
this._visible = false;
}
pc = set_color(player);
p_Color = new Color(this.pf_);
p_Color.setRGB(pc);
all of the functions are located in _root frame 1.
I want the tint of the movie pf_ to change depending on the value returned by set_player(x,y).
How would I send x,y to a child movie of player_ (pf_)? and how would I then use the x,y to ether change the tint of the movie ( not pref) or use the x,y to chane the frame of the movie (pf_) so I can set the color by using frames.
if you want to know what the final outcome for this project is plaese read frame 10 in _root for more info.
sorry if its a long winded one guys.
Changing Color In A Movie; Breaks Tween
Thanks in advance for any assistance.
I have created a very simple movie that consists of a 60-second timeline with B/W letter vector outlines that have motion and scale tween. Everything worked great, now the client wants to add color. I want now to add color to the outlines. But when I select the beginning and ending frames to apply color, the scale tween stops working. I do get an error message (yellow triangle) that it only works with groups, but each layer is grouped already. Any ideas?
Changing A Movie Background Color Via Txt File
Hi!
I've made a movie that load's different things (info) from a text file.
Now i'd like to be able to change the movie background color via txt file. So i could change the color code inside the txt file and the movie would show accordingly.
I'm sure there is an easy way .
(to ask is the easy way sorry)
Changing Color Of Moveclip Stopping The Movie
Hello all,
I know something similar to this has been posted but I can't seem to find the answer that will work for me.
I have a box_mc that moves around the stage. When it hits a specified frame I would like it to change colors based on an array.
What is happening is that it will move to the specified frame (frame 38) and change the color. It will not continue moving after that or reset back to the original color and position when the movie loops back to frame 1.
I have attached a zip with 2 fla files.... when with the box moving and no color change. The second with the box moving until the color changes.
Any help would be greatly appreciated.
Thanks in advance
jlmoshier
How To Create Moving, Fading And Changing Color Movie
Hi
I want to make a simple movie where a graphic shaped as a ! (exp. mark) randomly appears on canvas, fading in and out and changing colors. I have studied the tutorial but I need a little help. Can you help me?
Symbol Stops Playing When The Movie Stops
Kindof a newbie question.
I have a flash movie, (it will be a flash banner for a website).
I created animated logo sumbol (which wil perform a litle animation every once in a while) and dropped into the main scene, which also has an animated intro.
So once the scene is built out, I put stop() in the last frame, so it doesn't start from the beginning. But the problem is that animation in my symbol also stops playing.
Am I doing something wrong?
Thanks for any feedback!
Changing Fill Color And Line Color Dynamicly And Seperately
Hi community,
In this case, I am going to load a swf with a looping animation colored in black and white only. I want to change the color of the animation dynamicly so that I could have different color at each time. Here is my code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import flash.display.*;
import flash.net.URLRequest;
private function init():void{
myCan.addEventListener(Event.ENTER_FRAME,capMotion);
}
private function capMotion(event:Event):void{
var bmd1:BitmapData = new BitmapData(mySwf.width, mySwf.height, true, 0x00CCCCCC);
bmd1.draw(mySwf);
var bitmap1:Bitmap = new Bitmap(bmd1);
bitmap1.x = 0;
bitmap1.name="org";
if (map.getChildByName("org") != null){
map.removeChild(map.getChildByName("org"));
}
map.addChild(bitmap1);
var bmd2:BitmapData = new BitmapData(mySwf.width, mySwf.height, true, 0xFFFFFFFF);
var pt:Point = new Point(0, 0);
var rect:Rectangle = new Rectangle(0, 0, mySwf.width, mySwf.height);
var threshold:uint = 0xFF999999;
var color:uint = 0xFFFFFF00;
var maskColor:uint = 0x00FF0000;
bmd2.threshold(bmd1, rect, pt, ">=", threshold, color, maskColor, true);
var bmd3:BitmapData = new BitmapData(mySwf.width, mySwf.height, true, 0xFFFFFFFF);
threshold = 0xFF000000;
color = 0xFF00CCCC;
maskColor = 0xFFFFFF00;
bmd3.threshold(bmd2, rect, pt, "==", threshold, color, maskColor, true);
var bitmap2:Bitmap = new Bitmap(bmd3);
bitmap2.name="dup";
bitmap2.x = bitmap1.x + bitmap1.width + 10;
if (map.getChildByName("dup") != null){
map.removeChild(map.getChildByName("dup"));
}
map.addChild(bitmap2);
}
]]>
</mx:Script>
<mx:Canvas id="myCan" x="10" y="10" width="650" height="603">
<mx:SWFLoader id="mySwf" width="100" height="250" horizontalCenter="0" verticalCenter="-7.5" source="dance.swf" complete="init()" scaleContent="false" autoLoad="true"/>
<mx:Image x="61" y="320" width="550" height="152" id="map"/>
</mx:Canvas>
</mx:Application>
It works quite fine but I afraid that it's quite resource consuming using enterframe and bitmap drawing. Is there any better method?
Thanks for help.
How Would I Go Changing Lots Of Movieclips Color And Border Color Seperatly?
I am in the making of a isometric level editor, and I have about 15 movie clips with more to come.
I want to let people change the color of tiles to what they want from a list of colors, so how can I let them change the color of a tile dinamicly with actionscript so that it changes a tile's color while preserving changes of "shadows"?
I mean I have let's say a cube and to make it look 3D I need to change each face to make a feeling of 3D and not a flat one.
thanks.
|