Changing Buttons To Movieclip
I have a lot of buttons that are named (flashmx).
now I would like to change these buttons to movieclips so that I can get flash 5 support.
Is there a way to change a lot of buttons in one easy step??
The only thing is that the new movieclips should have the instance names of the buttons.
Regards
Godowsky
FlashKit > Flash Help > Flash MX
Posted on: 10-23-2002, 04:09 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
A.S BUTTONS CHANGING MOVIECLIP.. Help Plz ?
Can anyone see anyting wrong with this code ? It´s suppose to change the height of a
box that is containing some text, and I just want it to go from one state to another using simple AS. Is that not possible ?
Kissies and Huggies to the SOLVER
btn_small.onRelease = smallRelease;
btn_Big.onRelease = bigRelease;
function smallRelease() {
delete this.onEnterFrame;
this.onEnterFrame = function(){
if(mc_box._yscale > 200){
mc_box._yscale -= 10;
}
}
}
function bigRelease() {
delete this.onEnterFrame;
this.onEnterFrame = function(){
if(mc_box._yscale < 400){
mc_box._yscale += 10;
}
}
}
#1009 Error Movieclip Inside Movieclip Changing The Alpha Property
Problem:
I'm getting this "TypeError: Error #1009: Cannot access a property or method of a null object reference."
What's happening in the flash file is that I've got a movieclip inside a movieclip and when you roll over one of the movieclips the alpha setting for the movieclip inside the initial movieclip is set to 1, then it transitions out back to 0 over a period of time.
var myTween:Tween = new Tween(event.target.parent.ripple_mc, "alpha", Strong.easeOut, 0, 100, 24, false);
It seems to be random but eventually after rolling over the several movieclips on the stage the error comes up. Sometimes the alpha setting stops working and will continue to be visible even though it should have stopped and be invisible after 24 frames.
Would love some help on this.
Cheers
#1009 Error Movieclip Inside Movieclip Changing The Alpha Property
Problem:
I'm getting this "TypeError: Error #1009: Cannot access a property or method of a null object reference."
What's happening in the flash file is that I've got a movieclip inside a movieclip and when you roll over one of the movieclips the alpha setting for the movieclip inside the initial movieclip is set to 1, then it transitions out back to 0 over a period of time.
var myTween:Tween = new Tween(event.target.parent.ripple_mc, "alpha", Strong.easeOut, 0, 100, 24, false);
It seems to be random but eventually after rolling over the several movieclips on the stage the error comes up. Sometimes the alpha setting stops working and will continue to be visible even though it should have stopped and be invisible after 24 frames.
Would love some help on this.
Cheers,
Sarge
#1009 Error Movieclip Inside Movieclip Changing The Alpha Property
Problem:
I'm getting this "TypeError: Error #1009: Cannot access a property or method of a null object reference."
What's happening in the flash file is that I've got a movieclip inside a movieclip and when you roll over one of the movieclips the alpha setting for the movieclip inside the initial movieclip is set to 1, then it transitions out back to 0 over a period of time.
var myTween:Tween = new Tween(event.target.parent.ripple_mc, "alpha", Strong.easeOut, 0, 100, 24, false);
It seems to be random but eventually after rolling over the several movieclips on the stage the error comes up. Sometimes the alpha setting stops working and will continue to be visible even though it should have stopped and be invisible after 24 frames.
Would love some help on this.
Cheers,
Movieclip Rollover Effect Disables Internal Movieclip Buttons
Is it possible to have a movieclip rollover effect with another movieclip inside of it that is able to be clicked and do what it's scripted to do?
Let me try to get specific...
Movieclip 1 -- Has www.kirupa.com/developer/mx2004/button_effect.htm applied
Inside of Movieclip 1 --> Buttons that appear visible when you rollover the menu (it comes out of eases into view)
These buttons inside are not being allowed to be pushed because from what I can gather, the complex rollover is not allowing anything to be activated except the rollover effect.
So here's a diagram:
Rollover Movieclip 1 --> Eases it's bottom part up revealing 4 buttons --> These buttons when clicked are supposed to do an action --> Buttons cannot be activated for some unknown reason.
Can anyone help me out? I'm out of ideas after working on this for the past hour or so. If you need any extra info or materials, let me know; I'm sitting right here working on this problem haha.
-Indecisive
Changing A Movieclip
Hi,
If I have already created a movieclip and am currently in the onEnterFrame
method, can I change the clip that that object references in the library?
For example can I do something like this
function onEnterFrame()
{
this = _root.attachMovie( ... )
}
Thanks
Wil
CHanging Within A Movieclip?
I would like to know if there is a way to change inside a movie clip. Basically the drawing object or shape.
For example
I draw a square on the stage 100 x 100.
Turn it into a movieclip.
Then scale it up to 200 x 200.
But if I go into the lowest level that square is 100 x 100.
Anywhere to change then both??
Changing Within A Movieclip
I would like to know if there is a way to change inside a movie clip. Basically the drawing object or shape.
For example
I draw a square on the stage 100 x 100.
Turn it into a movieclip.
Then scale it up to 200 x 200.
But if I go into the lowest level that square is 100 x 100.
Anywhere to change then both??
Movieclip Buttons Inside Of Movieclip Buttons
I followed the tutorial for creating animated buttons and have also created them in your mp3 player tutorial, but when I have a button inside another button I get nothing on the rollover, like its not even there!? Any ideas?
Changing Colour Of A Movieclip
Hi.
I am wanting to change the colour of a movie clip which I have in mt flash. At the moment it is completely empty with no symbols in etc. Can anyone suggest what I need to do in order to change the colour of this clip using actionscript?
If so what code will I need to use and will I need to make any changes to the MC in order for it to change colour.
Thanks
Immy
Changing Scene From Within A Movieclip
I have a menu button inside of a drop down menu movieclip and no matter what I try, I can't make the button change the scene. I am just trying to make a simple drop down menu type navigation site and I can't even get it to go to the next page. I feel like I am dummer by the minute. Help before it is too late.
Changing Scenes From Within A Movieclip?
I created a preloader within a movieclip which works fine, it shows correct values and percentage loaded but at the end of the loading, the scene doesn't change.
Here's the problem script:
total_size = _root.getBytesTotal();
total_loaded = _root.getBytesLoaded();
percentage = int((total_loaded/total_size)*100);
load_bar.gotoAndStop(percentage);
ifFrameLoaded ("graphic design", 1) {
gotoAndPlay ("graphic design", 1);
}
Then it just sits there.
So...
How do I change the scene from within a movieclip on a different scene?
Changing The Center Of A MovieClip
hi all,
i need to know if it is possible and how to change the center point of a movieClip with actionscript, i mean while the swf is running.
thanx
Changing A Movieclip Color
I have a movieclip which i want to change the color of. Using:
myColor = new color(myClip);
myColor.setRGB(etc);
I can change the background color to a solid hexadecimal color, but what I now need to do is be able to change the same movie clip to both a color or an image dependant on the user.
I tried the obvious:
myColor.setRGB(myPicture.getRGB(etc));
but to no avail. Any help will be greatly appreciated here guys.
Many Thanks
Matt Beighton
Changing Color Of Movieclip On The Fly
I have a black circle movieclip. I trying to change the color to red in a loop without having to make 2 frames and use mc.gotoAndPlay(2). I believe it will be quicker to change the color with code. I looked at the movieclip class, but I didn't see anything useful. Am I missing something?
Thanks
Changing Movieclip Dimensions
Hi there all
Is it possible to change the properties of a movieclip that has been loaded in via loadmovie?
properties like _width, _height etc etc?
I can't seem to be able to do it
Cheers!
Changing Level Of Movieclip
Hi,
Using actionscript (in Flash MX), I have a movieclip (called 'x_mc') within another movieclip (called '1_mc') so the root to x_mc is _root.1_mc.x_mc. I also have a movieclip called '2_mc' and would like to move x_mc from _root.1_mc.x_mc to _root.2_mc.x_mc . Is this possible?
Thanks in advance,
Matthew Dingley
Changing Quality On A Movieclip
I need to know how to change the quality of a movieclip to low/medium while its playing and once it stops to switch back to high quality. Anyone know the actionscript that would go with that? Or is it even possible? Thanks in advance!
kode_man
P.S. wasnt sure if this should go in General or Actionscript...
MovieClip And Changing The LineStyles
Hi,
I am trying to create a small application where users drag a number of MCs around and where a line is drawn to each one when an MC is released. Now, I would like to change the look of the line so that it appears to be 'dotted', is this even possible?
This is my code so far:
ActionScript Code:
code:
function drawthem()
{
for(n=0;n<(xlocs.length-1);n++)
{
this.createEmptyMovieClip("area_mc"+n, n+100);
_root["area_mc"+n].lineStyle(1, 0x000000, 100);
_root["area_mc"+n].moveTo(xlocs[n][0]-100, xlocs[n][1]);
_root["area_mc"+n].lineTo(xlocs[n+1][0]-100, xlocs[n+1][1]);
if(xlocs[n+1][0] != 999){_root["area_mc"+n].curveTo((xlocs[n+1][0]-100)-(bounce*thetoggle), (xlocs[n+1][1])-(bounce*thetoggle),xlocs[n+1][0]-100, xlocs[n+1][1]);}
}
circle1._x - circle1.stringVib, circle1._y - circle1.stringVib, circle1._x, circle1._y
}
[F8] Changing Movieclip Coordinates
First, I appologize if this has been asked already, I've been searching and can't find an answer anywhere--perhaps b/c I'm not sure what exactly the problem is to search for. Second, for this possibly being a very retarded question. I imported symbols for a movie clip , everything worked great in the exported swf, until I realized that the symbols I was using had a background that was being interpreted by flash as part of the movie. So the original movie was ~400x300 px. I edited my symbols to crop out the background, etc. and now have a movieclip thats ~200x65 px. The symbols are all at 0,0 and the movie works, except for the fact that the movieclip itself is fixed at a position of ~-400,-300 (x,y) and the info panel for the mc the boxes are unclickable to specify a position. The exported movie is a blank window in flashplayer, until you drag out the edges far enough to find the movie. Any help is sincerely appreciated--
Changing Color Of A MovieClip
Hi there,
I have a very simple MovieClip. It's just a simple Triangle. Now I want to fill it with any color, doing it with Actionscript 2.
Can anybody help me?
Thx
MisterDan
[F8] Changing The Position Of My Movieclip HELP
Hi guys,
This is very basic and for some reason it's not working. I am doing a very basic zoom in/out map thing and I have a button where i just want to reset the map to it's original position. So on the reset button I have:
on (release) {
lowestScale = 100;// lowest desired scale of map2 in %
highestScale = 300;// highest desired scale of map2 in %
_root.position=_root.map2._x=456.3, _root.map2._y=109.8;
function reset() {
// calculates scale and sets it
_root.scale = _root.map2._xscale=_root.map2._yscale=lowestScale;
_root.slider.scrollMin = _root.range._y-_root.range._height;// minimum _y value possiible for scrollbar
_root.slider.scrollMax = _root.range._y;// maximum _y value possiible for scrollbar
_root.slider._y = _root.slider.scrollMin+(_root.slider.scrollMax-_root.slider.scrollMin)/1;// sets starting position of scrollbar (currently half-way)
scaleFactor = Math.pow(highestScale/lowestScale, 1/(_root.slider.scrollMax-_root.slider.scrollMin));// variable for SetScale
}
reset();
}
For testing I did the following but it's still didn't work:
on (release) {
_root.map2._x=456.3
_root.map2._y=109.8;
}
Any ideas as to what I am doing wrong, this is so basic it's embarrassing.
Cheers
Changing The Parent Of A Movieclip
Hi,
Has anyone figured out how to change the parent of a movieclip?
This is the code I'm experimenting with:
Code:
//The actions
this.createEmptyMovieClip('a',this.getNextHighestDepth());
this.createEmptyMovieClip('b',this.getNextHighestDepth());
a.createEmptyMovieClip('c',this.getNextHigestDepth());
visualize(a);
visualize(b,50,0x00ff00);
visualize(a.c,50,0x0000ff);
a.c._x = b._x = 10;
a.c._y = b._y = 10;
a._x = 10;
a._y = 100;
setChild(a,b);
//Functions
function visualize(m:MovieClip,s:Number,c:Number,a:Number){
with(m){
var w0:Number = (s==undefined)?150:s;
lineStyle(1);
moveTo(0,0);
beginFill(((c==undefined)?0xff0000:c),((a==undefined)?20:a));
lineTo(w0,0);
lineTo(w0,w0);
lineTo(0,w0);
lineTo(0,0);
endFill();
}
m.onPress = function(){
startDrag(this);
}
m.onRelease = function(){
stopDrag();
}
}
function setChild(parent_mc:MovieClip,child_mc:MovieClip){
// How to do this???
}
Now, I want movieclip b to become a child of a - just like a.c.
How can I implement setChild(), so that b starts behaving like a.c? (without having to constantly update its position relative to a)
You'll know if it works, when movieclip b is constantly on top of movieclip a.c. Even while you're dragging movieclip a.
Something very unfortunate is that you can't use the _parent property to do this, because it's read-only.
That's why the following doesn't solve it:
Code:
function setChild(parent_mc:MovieClip,child_mc:MovieClip){
child_mc._parent = parent_mc;
}
Changing Container Of A Movieclip
Hello,
From what I understood, attachMovie takes a symbol (e.g. a movieclip) from the library and attaches it to a movieclip. Given this, how can I attach a movieclip that was created dynamically at run-time (hence no symbol defined into the library) to another movieclip.
I try to dynamically change the container of a movieclip.
Thanks for your help,
Cyrille
Changing Path Of A MovieClip
Hi, is there is any way to move a movie clip that on the _root to inside of another movie clip.
I mean :
Now my movie clip at : _root.mc
i want to move it to : _root.holder.mc
Changing Movieclip Colors
I want to be able to dynamically change my colors of my movieclips based on flashvars. Is there an easy way to say movieClip.fill.setColor = #000000;
I want to be able to set fill and stroke.
I know bgcolor = whatever changes the stage color...anything else?
Changing Instance Of A Movieclip
Is it possible to dynamically change an instance of a "on stage" movieclip with actionscript?
eg:
I want to change my movieclip "mcBox" on the stage. The current instance of this movieclip is "box: red". I want to change it for "box: blue" dynamically, an instance from my Library.
If not, the only other way to do it is to hide/unhide movieclips?
Director users:
It's like changing the cast of a sprite on the stage. In director, we would use something like Sprite(1).member("castMember").
Thanks!
Changing MovieClip Size?
How do you change a movie clip's size?
I'm trying to create an effect of an aircraft in mid-flight and it's gently moving around and I need to give it a perspective effect as if it is moving closer and further ever so slightly to give it a realistic animation.
Any suggestions?
Changing MovieClip Colors
I have a simple mc of a rectangle in a library with linkage that I bring to the stage with an attachMovieClip. I want to change the fill color of the rectangle. All the examples I have seen look like you have to draw an object line by line with a beginfill before the first line and an endfill when your done. Isn't there an easier way?
Automatically Changing A Movieclip Each Day.
I run the website for a college radio station and am looking for a way to get our schedule to change on the front page each day (http://www.klcradio.net). Does anyone have a script/trick that will automatically change the movieclip (or even the frame) with each day. (I'm looking for a solution which looks at the host computer's clock...i think..
I haven't found anything in the forums which solves this problem.
Geniuses.... have at it!
Thanks
Changing MovieClip Depths
I'm trying to create a Flash Movie that emulates those poetry magnets. There are a bunch of buttons (magnets) on the stage and when you click on one, you can drag it and place it next to another. That way you can write sentences by moving the buttons (magnets). The only problem is that I want it so when I click on a button (magnet), that it sets it's depth higher than the other ones so it will look realistic, like you are actually moving it over the others insted of over some and under others. Is there anything that I can add to the on (press) handler to change the depth of the movie clip being clicked on?
Changing Cursor To MovieClip
Please Help!!!!
I'm embedding a swf into a html document and I want my cursor to change to a movieclip every time I go over the swf. I have that working fine but my problem is when I place the mouse off the swf, the movieclip is still on the swf.
How do I make that movieclip disappear when I roll off the swf.
Thanking you in advance....
Changing Colour Of Movieclip
I have this piece of actionscript working
ActionScript Code:
var my_color = new Color("mymc");my_color.setRGB(0xFF0000);
This works when I call the actionscript say from a button on the same timeline as the movieclip. What I can't get my head round is how I change the colour of an object on a different timeline, say if the path to the movieclip was _root.mc1.mc2.mymc
What would be the actionscript then?
Changing Movieclip Hierarchy
there are a few mc's already on stage that ive attached dynamically to _root.
now i want to take one of them and attach it into some other mc on stage, also attached dynamically. i want to retain the position, width and height of the former mc.
is this possible? some way to manipulate the pointers or addresses?
can i manipulate the ._parent property?
Changing A MovieClip's Parent?
From my search of the forums, I think I know the answer, but wanted to verify. There's no way to directly change a MovieClip's parent MC? That is, move it from one MC to another?
TransitionManager, Changing The MovieClip?
var tm:TransitionManager = new TransitionManager(myMC);
How to change the selected movieclip (myMC) for transition manager?
First I would do few fades with myMC, then start using myMC2.. myMC3.. myMC4..
Can it be changed later (for the 'var tm')?
For example adding later in the code,
tm:TransitionManager = TransitionManager(myMC2); // just example - doesnt work
or
tm = TransitionManager(myMC2); // just example - doesnt work
* trace (tm.content.name); // prints out the name 'myMC'
Automatically Changing A Movieclip Each Day.
I run the website for a college radio station and am looking for a way to get our schedule to change on the front page each day (http://www.klcradio.net). Does anyone have a script/trick that will automatically change the movieclip (or even the frame) with each day. (I'm looking for a solution which looks at the host computer's clock...i think..
I haven't found anything in the forums which solves this problem.
Geniuses.... have at it!
Thanks
Changing MovieClip Depths
I'm trying to create a Flash Movie that emulates those poetry magnets. There are a bunch of buttons (magnets) on the stage and when you click on one, you can drag it and place it next to another. That way you can write sentences by moving the buttons (magnets). The only problem is that I want it so when I click on a button (magnet), that it sets it's depth higher than the other ones so it will look realistic, like you are actually moving it over the others insted of over some and under others. Is there anything that I can add to the on (press) handler to change the depth of the movie clip being clicked on?
Changing Cursor To MovieClip
Please Help!!!!
I'm embedding a swf into a html document and I want my cursor to change to a movieclip every time I go over the swf. I have that working fine but my problem is when I place the mouse off the swf, the movieclip is still on the swf.
How do I make that movieclip disappear when I roll off the swf.
Thanking you in advance....
Changing Movieclip Color...
Hi,
I'm developing a flash avatar generator system. with having this concept in mind, I'm trying to find a better solution for changing skin/hair color on my sketches.
right now I'm using a silly method: I've put some color boxes (buttons) and when user clicks a box, for example the red color, the movieclip which holds the hair object, jumps to frame 5 which is our red color!
I know this is a very basic way to accoplish this and also I don't have much colors avaiable as I have to create the colored frames first and then add color boxes according to them.
I've seen many sites using a color table and do the whole thing by actionScript! Can any one help me with this or at least link me to a tutorial/sample or something?
Any help is highly appriciated. I'm getting crazy!!!!!
Regards,
Hadi
Changing Button To MovieClip
I have a button that works great but i need to change it to a movie clip because i need to swapdepths with my main movie. When I change the button symbol to a movieclip symbol the code does work anymore.
What do you have to do different for a movieclip button than in a regular button?
ActionScript Code:
on (release) {
if (_root.dest == 2){
var my_color:Color = new Color(_root.copy_3.pix3.services_bar_text);
my_color.setRGB(0xFFFFFF);
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(_root.copy_3.pix3.services_box, '_xscale', Strong.easeIn, 100, 50, 2, 90, false)
new Tween(_root.copy_3.pix3.services_box, '_yscale', Strong.easeIn, 100, 50, 2, 90, false)
}
if (_root.dest == 3){
var my_color:Color = new Color(_root.copy_4.pix4.team_bar_text);
my_color.setRGB(0xFFFFFF);
new Tween(_root.copy_4.pix4.team_box, '_xscale', Strong.easeIn, 100, 50, 2, 90, false)
new Tween(_root.copy_4.pix4.team_box, '_yscale', Strong.easeIn, 100, 50, 2, 90, false)
}
if (_root.dest == 4){
var my_color:Color = new Color(_root.copy_5.pix5.portfolio_bar_text);
my_color.setRGB(0xFFFFFF);
new Tween(_root.copy_5.pix5.portfolio_box, '_xscale', Strong.easeIn, 100, 50, 2, 90, false)
new Tween(_root.copy_5.pix5.portfolio_box, '_yscale', Strong.easeIn, 100, 50, 2, 90, false)
}
if (_root.dest == 5){
var my_color:Color = new Color(_root.copy_6.pix6.contacts_bar_text);
my_color.setRGB(0xFFFFFF);
new Tween(_root.copy_6.pix6.contacts_box, '_xscale', Strong.easeIn, 100, 50, 2, 90, false)
new Tween(_root.copy_6.pix6.contacts_box, '_yscale', Strong.easeIn, 100, 50, 2, 90, false)
}
var dest:Number = 1;
var my_color:Color = new Color(butt_firm);
my_color.setRGB(0x8EBCD7);
var my_color:Color = new Color(butt_services);
my_color.setRGB(0x000000);
var my_color:Color = new Color(butt_team);
my_color.setRGB(0x000000);
var my_color:Color = new Color(butt_portfolio);
my_color.setRGB(0x000000);
var my_color:Color = new Color(butt_contacts);
my_color.setRGB(0x000000);
var my_color:Color = new Color(_root.copy_2.pix2.firm_bar_text);
my_color.setRGB(0x8EBCD7);
var my_color:Color = new Color(_root.copy_3.pix3.services_bar_text);
my_color.setRGB(0xFFFFFF);
var my_color:Color = new Color(_root.copy_4.pix4.team_bar_text);
my_color.setRGB(0xFFFFFF);
var my_color:Color = new Color(_root.copy_5.pix5.portfolio_bar_text);
my_color.setRGB(0xFFFFFF);
var my_color:Color = new Color(_root.copy_6.pix6.contacts_bar_text);
my_color.setRGB(0xFFFFFF);
new Tween(_root.copy_2.pix2.firm_box, '_xscale', Strong.easeIn, 50, 100, 2, 90, false)
new Tween(_root.copy_2.pix2.firm_box, '_yscale', Strong.easeIn, 50, 100, 2, 90, false)
}
on (rollOver) {
import flash.filters.BlurFilter;
var butt_services:Button;
var butt_team:Button;
var butt_portfolio:Button;
var butt_contacts:Button;
var blurX:Number = 5;
var blurY:Number = 5;
var quality:Number = 1;
var filter:BlurFilter = new BlurFilter(blurX, blurY, quality);
var filterArray:Array = new Array();
filterArray.push(filter);
butt_services.filters = filterArray;
butt_team.filters = filterArray;
butt_portfolio.filters = filterArray;
butt_contacts.filters = filterArray;
butt_services._alpha = 50
butt_team._alpha = 50
butt_portfolio._alpha = 50
butt_contacts._alpha = 50
var my_color:Color = new Color(butt_firm);
my_color.setRGB(0x8EBCD7);
}
on (rollOut) {
var butt_services:Button;
var butt_team:Button;
var butt_portfolio:Button;
var butt_contacts:Button;
var blurX:Number = 0;
var blurY:Number = 0;
var quality:Number = 0;
var filter:BlurFilter = new BlurFilter(blurX, blurY, quality);
var filterArray:Array = new Array();
filterArray.push(filter);
butt_services.filters = filterArray;
butt_team.filters = filterArray;
butt_portfolio.filters = filterArray;
butt_contacts.filters = filterArray;
butt_services._alpha = 100
butt_team._alpha = 100
butt_portfolio._alpha = 100
butt_contacts._alpha = 100
if (dest != 1) {
var my_color:Color = new Color(butt_firm);
my_color.setRGB(0x00000);
}
}
Changing MovieClip Path
Can you change the path of a movieClip? like from
_root.obj
to
_root.mc.obj
?
I don't need to do this for variables, I'm doing this because I'm preloading graphics from an external file and I want to then from the image container place them into the other movieclips that need them. Is there anyway to just link the graphics from another movieclip like with variables?
Changing Level Of Movieclip
Hi,
Using actionscript (in Flash MX), I have a movieclip (called 'x_mc') within another movieclip (called '1_mc') so the root to x_mc is _root.1_mc.x_mc. I also have a movieclip called '2_mc' and would like to move x_mc from _root.1_mc.x_mc to _root.2_mc.x_mc . Is this possible?
Thanks in advance,
Matthew Dingley
Changing Depth Of A Movieclip
I've got a mediaplayer component that i've placed in my movie and I dynamically load another movie in and the two overlap at times and the dynamically loaded movie is always on top. Is there anyway I can send that movie to the bottom layer?
Changing The Size Of A Rotated MovieClip
Hi all
Found a weird problem, I have a sneaking suspiscion that its a bug but am fairly new to flash so don't know.
i have a movie clip that has four smaller ones attached to it using the attachMovieclip function. each of these smaller clips are then rotated by a certain amount, so that one points to each side of the compass. these are all produced dynamically using a loop so they are all the same bar their name, and their orientation.
later on in the movie i then try to change the _height and _width of each of the clips, by directly changing the _height and _width properties of each of the four of them. this is done in a loop by cycling through each of them, since they have numerically sequential names.
this is the part where it starts to get wierd, two of the movie clips change size as expected, both their heights and widths do exactly what i want them to do. then the other two have their heights locked and only the widths will change on them, i think it may be something to do with the fact that they a rotated but don't know.
Any ideas on this, would be much appreciated.
Thanks in advance.
Matt
Embeded MovieClip Changing Scenes
Hi, I have a button inside a MC. The MC is on the main timeline and the button its within the MC. On the button I have
on (release) {
gotoAndPlay("Scene2", 1);
}
Well this doesn't work, so I tried this
on (release) {
gotoAndPlay("_root.Public", 1);
}
Well, that doesn't work because the "," make it a string name so the _root has no meaning. So I tried this
on (release) {
_root.gotoAndPlay("Public", 1);
}
and still no luck.
At this I'm at a dead end. The forum search seems broken right at the moment so if anyone has any idea on how to help I'd love it.
Just a bit of extra information, I could use an invisible button ontop of the MC but the button within it that I'm trying to apply actions to has an Over state animation and an invisible button breaks the overstate.
THanx
Changing Value Of Variable Based On Movieclip
I'm a newbie struggling to figure out how to write this script. I have several variables in a movie that will contain numerical values.
These values will change based on which of several random movieclips is loaded into a target.
Would I put actions in the target mc to determine which random mc is loaded into the target and then set the variables accordingly? Such as:
if the target contains mc1
then set myVariable = 5
else
if the target contains mc2
then set myVariable = 6
end if
I just can't figure out the syntax
Does anyone have an example of something like this I could see?
Thanks
|