How To Make Something Visible On Click Of Button
Hi,
I am trying to make a menu appear within my movie. The menu in question is in the library of the same movie. I simply want the user to be able to click a button and then the menu appears. Here is the code I have came up with but it does not work, I am new to actionscript so probably got it all wrong.
if (menu_btn.onPress)
{menu._visible = true;}
else if
(menu._visible = false
I would appreciate any help.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-11-2006, 04:33 PM
View Complete Forum Thread with Replies
Sponsored Links:
- Cant Make Symbol Visible With Button Click
- Cant Make Symbol Visible With Button Click
- How To Make Text Visible When A Button Is Pressed?(and Not Visible At All Other Times
- Why Does A Draggable MC Become Visible Where The 'make Visible' Button Is Clicked?
- How Can I Make One Button To Make A Mc Visible. The Mc Is Not Visible In The Beginnin
- Make A Button Visible Only In A Particular Frame
- Make A Button Visible Only In A Particular Frame
- Make Button Visible Only When Pressing Another Button
- How 2 Make A Button Action So That It Makes A Word Visible On An Inputtxt
- How 2 Make A Button Action So That It Makes A Word Visible On An Inputtxt
- How To Make A Button That Responds To Right Click, So That When You Right Click This
- How To Make A Movie Clip Button I.e. Make It Click-able
- Can A (mc, Visible,false), Make It Self (mc,visible,true)?
- How To Make Button Do Something Different On Second Click?
- If You Want A Button To Make A Click Sound...
- How To Make The Randomly Appear On Click Of A Button?
- How To Make A Selected Button When You Click?
- How Can I Make A Sound Play On A Button Click?
- To Make A Button Double Click Active
- Help. How To Make A Mouse Left Click Button
- Make A Button Where When You Click On It You Goto The Next Scene?
- Make Array Items Appear On Button Click
- Make Array Items Appear On Button Click
- HELP - Make Button Click On Keyboard Enter
- Trying To Make A Movieclip Stop When Click On A Button
- How To Make Button Click Play The Last Audio Among 400 Levels?
- How To Make Playout Movieclip When Mouse Click On The Button.
- How Can I Make It So When I Click This Button It Pauses A Audio File And...
- How Do I Make A Movie Play At The Click Of A Button(more Specific Inside)
- HOw Do I Make This OnClip Event (load) Work When You Click A Button?
- Make Button Not Play Sound On Click, Only On Rollover, With Out Screwing Up Anything
- Trying To Click A Button And Make The Number Variables I Assigned Add Up In The Total
- HOw Do I Make This OnClip Event (load) Work When You Click A Button?
- Visible Not Visible On Button Controlling Mc
- Visible Area User Click
- Make MC Visible, Make MC Invisible
- How To Make A Mc Visible
- Help: HitTest To Make 2 MCs Visible?
- How To Make Something Visible/invisible?
- Make Layer Not Visible In Swf
- How Make Mc Visible With AS, Function
- How Make Mc Visible With AS, Function
- Scroll Buttons, How To Make Visible Only If Necessary
- How To Make An MC In A Level 0 Movie Visible?
- How To Make Layers Visible/invisible
- Keylistening To Make MCs Visible - Big Problem
- Help-actionscript Parameters, How Do I Make Them Visible
- Make Visible Based On Variable
- Make Layers Visible/unvisible
- How To Make Layers Visible/invisible
- How To Make Sure A Movie Clip Will Be Visible Over All Other Mc
Cant Make Symbol Visible With Button Click
this is so simple its embarresing, but it dosn't work.
I am trying to create an effect where I press a button, a symbol become visible.
So, i created two buttons called blue and green.
on the blue button i placed this code.
on(release){
blu=1
grn=0
}
on the green button I placed this code.
on(release){
blu=1
grn=0
}
I inserted a layer called lyr_blue and inserted this code.
setProperty("_root.blue", _visible, "0");
if (blu==1) {
setProperty("_root.blue", _visible, "1");
}
I inserted a layer called lyr_green and iserted this code.
setProperty("_root.green", _visible, "0");
if (grn==1) {
setProperty("_root.grn", _visible, "1");
}
but it doesn't work for some reason.
I have read SAMS teach yourself Macromedia MX in 24 hours and I am currently reading friends of Ed's Foundation Action Script for Macromedia Flash MX.
So far none of the books have helped.
Please can someone help
Tricia
View Replies !
View Related
Cant Make Symbol Visible With Button Click
this is so simple its embarresing, but it dosn't work.
I am trying to create an effect where I press a button, a symbol become visible.
So, i created two buttons called blue and green.
on the blue button i placed this code.
on(release){
blu=1
grn=0
}
on the green button I placed this code.
on(release){
blu=1
grn=0
}
I inserted a layer called lyr_blue and inserted this code.
setProperty("_root.blue", _visible, "0");
if (blu==1) {
setProperty("_root.blue", _visible, "1");
}
I inserted a layer called lyr_green and iserted this code.
setProperty("_root.green", _visible, "0");
if (grn==1) {
setProperty("_root.grn", _visible, "1");
}
but it doesn't work for some reason.
I have read SAMS teach yourself Macromedia MX in 24 hours and I am currently reading friends of Ed's Foundation Action Script for Macromedia Flash MX.
So far none of the books have helped.
Please can someone help
Tricia
View Replies !
View Related
Why Does A Draggable MC Become Visible Where The 'make Visible' Button Is Clicked?
Hello, i have a MC which is draggable and controlled by the code below.
The first time the user opens the draggable mc, it is positioned nicely on the screen (where i have placed the instance of the MC, then made it invisible).
But if the user closes the draggable MC, then click on the 'open' button, it appears where the user clicks the button.
This looks very ugly.
How can i tell the MC to become visible where the initial MC is placed on the screen?
code i'm using
Code:
largeimg._visible = false
largeimg.onPress = function() {
this.startDrag();
if (this.closeMC.hitTest(_xmouse, _ymouse, true)) {
this._visible = false
largeimg.gotoAndPlay(1)
}
};
largeimg.onRelease = stopDrag;
The window is reopened when a button is clicked
Code:
enlarge.onRelease = function() {
_root.largeimg._visible = true
_root.largeimg.gotoAndPlay(2)
}
Thanks a lot for any help in advance
View Replies !
View Related
Make A Button Visible Only In A Particular Frame
hey this is nithin...im working on flash cs3
my as3 code is:
Code:
Code:
function eventResponse1(evt:MouseEvent):void {
gotoAndStop(30);}
lab_but1.addEventListener(MouseEvent.MOUSE_UP,eventResponse1);
function eventResponse2(evt:MouseEvent):void {
gotoAndStop(60);}
lab_but2.addEventListener(MouseEvent.MOUSE_UP,eventResponse2);
function eventResponse3(evt:MouseEvent):void {
gotoAndStop(126);}
lab_but3.addEventListener(MouseEvent.MOUSE_UP,eventResponse3);
function eventResponse4(evt:MouseEvent):void {
gotoAndStop(121);}
lab_but4.addEventListener(MouseEvent.MOUSE_UP,eventResponse4);
Now i made a button on Frame 130...and added this code to above one's..
Code:
Code:
function eventResponse5(evt:MouseEvent):void {
gotoAndStop(133);}
lab_but5.addEventListener(MouseEvent.MOUSE_UP,eventResponse5);
Im getting this error...and that button is also not working...
Code:
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gotit10_fla::MainTimeline/gotit10_fla::frame1()
here is the fla file...http://nithin1234.googlepages.com/gotit10.fla
Any help....plzzz
View Replies !
View Related
Make A Button Visible Only In A Particular Frame
hey this is nithin...im working on flash cs3
my as3 code is:
Code:
function eventResponse1(evt:MouseEvent):void {
gotoAndStop(30);}
lab_but1.addEventListener(MouseEvent.MOUSE_UP,eventResponse1);
function eventResponse2(evt:MouseEvent):void {
gotoAndStop(60);}
lab_but2.addEventListener(MouseEvent.MOUSE_UP,eventResponse2);
function eventResponse3(evt:MouseEvent):void {
gotoAndStop(126);}
lab_but3.addEventListener(MouseEvent.MOUSE_UP,eventResponse3);
function eventResponse4(evt:MouseEvent):void {
gotoAndStop(121);}
lab_but4.addEventListener(MouseEvent.MOUSE_UP,eventResponse4);
Now i made a button on Frame 130...and added this code to above one's..
Code:
function eventResponse5(evt:MouseEvent):void {
gotoAndStop(133);}
lab_but5.addEventListener(MouseEvent.MOUSE_UP,eventResponse5);
Im getting this error...and that button is also not working...
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at gotit10_fla::MainTimeline/gotit10_fla::frame1()
here is the fla file...http://nithin1234.googlepages.com/gotit10.fla
Any help....plzzz
View Replies !
View Related
Make Button Visible Only When Pressing Another Button
Hi Everybody, 1 question.
How do I make it so when you press a button another button appears?
Example:
I have a button that shows a picture.
After pressing that button I need another button to apear that zooms the picture.
I have both button created.. Only I want the second button only to be visible AFTER the 1st button is released.
How do I do that without placeing the buttons on seperate frames?
PLEASE HELP.. THANKS
View Replies !
View Related
How 2 Make A Button Action So That It Makes A Word Visible On An Inputtxt
Very familiar with audio editting and stuff, also design (no flash e.d.) So beginning to learn bit by bit.
I now actually understand that the hardes part of all nice things are coming this year for me. the variables, let animated things work.
A question I have is:
how 2 make a button action so that it makes a word visible on an inputtxt. (Some sort of add 2 cart, a button action adds a text into an inputtextbox. When all products are chosen the send button at the bottom of the form will send it 2 email. (trough php)
All of that is fixed accept that code.
Is it possible when the buttons are in load level 2 and the form is in 1.? (So that those buttons can preform the action 2 goto that form and fill in my desired button related text)
Greets,
a music hippy.
View Replies !
View Related
How 2 Make A Button Action So That It Makes A Word Visible On An Inputtxt
Very familiar with audio editting and stuff, also design (no flash e.d.) So beginning to learn bit by bit.
I now actually understand that the hardes part of all nice things are coming this year for me. the variables, let animated things work.
A question I have is:
how 2 make a button action so that it makes a word visible on an inputtxt. (Some sort of add 2 cart, a button action adds a text into an inputtextbox. When all products are chosen the send button at the bottom of the form will send it 2 email. (trough php)
All of that is fixed accept that code.
Is it possible when the buttons are in load level 2 and the form is in 1.? (So that those buttons can preform the action 2 goto that form and fill in my desired button related text)
Greets,
a music hippy.
View Replies !
View Related
How To Make A Movie Clip Button I.e. Make It Click-able
i followed the tutorial for making animated buttons by using movie clips instead of button symbols. now i don't know how to make them click-able. this is probably pretty basic, but i'm new to flash and i'm getting pretty frustrated trying figure things out by myself (no programming experience here, although i did buy the flash bible). i'm using flash mx 2004.
any pointers on how to do this would awesome. thanx a ton.
--V
View Replies !
View Related
Can A (mc, Visible,false), Make It Self (mc,visible,true)?
Hi...Im just playing around here
I have _level0.variable=false... when the user clicks a button it sets _level0.variable=true... I have movies loaded through out the levels waiting for _level0.variable=true i get them to work fine in their actions ... but then I have a mc that is not visible and I want to make visible but from its own script
onClipEvent(load){
setProperty(_level0.mc, visible,false);}
onClipEvent(enterFrame){
if (_level0.variable==true){
setProperty(_level0.mc,visible,true);}}
I get it to work, when I have the script in the buttons actions directly
on(release){
setProperty(_level0.mc,visible,true);
but I'm just wondering if it could be done inside the actual mc... all instances are named property.
thank you
View Replies !
View Related
How To Make A Selected Button When You Click?
I have several items on my menu. Let's say:
Button0
Button1
Button2
How to make a selected button when you click, initialize to "Button0" and when the user click to another button (ex: Button1 or Button2), the color will be switched to this new selected button??
thanks in advance,
View Replies !
View Related
Make Array Items Appear On Button Click
Hi I have items stored in an array in a txt file.
word1= Italy&word2= Napoleon&word3= Garibaldi
AT the moment when the screen loads all the text appears in different dynamic text boxes.
I would like to change it so that I can have a button and when you press it it will make the words appear one at a time in just one text box.( to play jeopardy)
E.g. on 1st press it would make word1 appear, then if you continue pressing it the word2 and then word3 will appear in turn.
At the moment I load it like this
loadText = new LoadVars();
loadText.load("Jeopardy words.txt");
loadText.onLoad = function() {
topic1.text = this.word1;
topic2.text = this.word2;
topic3.text = this.word3;
};
I've looked through tutorials on this and other sites but I can't find one which does exactly what I am wanting.
Cheers
Lesley
View Replies !
View Related
Make Array Items Appear On Button Click
Hi I have items stored in an array in a txt file.
word1= Italy&word2= Napoleon&word3= Garibaldi
AT the moment when the screen loads all the text appears in different dynamic text boxes.
I would like to change it so that I can have a button and when you press it it will make the words appear one at a time in just one text box.( to play jeopardy)
E.g. on 1st press it would make word1 appear, then if you continue pressing it the word2 and then word3 will appear in turn.
At the moment I load it like this
loadText = new LoadVars();
loadText.load("Jeopardy words.txt");
loadText.onLoad = function() {
topic1.text = this.word1;
topic2.text = this.word2;
topic3.text = this.word3;
};
I've looked through tutorials on this and other sites but I can't find one which does exactly what I am wanting.
Cheers
Lesley
View Replies !
View Related
HELP - Make Button Click On Keyboard Enter
I need to make my search form run when a user hits the enter key
I thought this would do it, but apparently not
(this is on the txtKeywords instance)
//launch search on enter keystroke
on(enter){
_root.btnSearch.click();
//trace("Enter");
}
Any idea what I am doing wrong here ?
Thanks,
J.
View Replies !
View Related
Trying To Make A Movieclip Stop When Click On A Button
The problem im having is in the main screen im having text play and pictures pop up. but on the right hand side of my screen i have three buttons and when i click thoses buttons the tabs scroles out and then plays whats in the tab. but i can figure out how to stop the main timeline because it keeps playing whats in the back ground. this is the code i have when you click on the tabs..
on (rollOver) {
gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
}
on (press) {
if (_roo.m<>1 and _parent.pos == 1) {
if (_root.gal<>0) {
_root["gal"+_root.gal].gotoAndPlay("s2");
}
_parent.gotoAndPlay("s1");
_root.gal = 2;
}
if (_roo.m<>1 and _parent.pos == 2) {
_root.gal = 0;
_parent.gotoAndPlay("s2");
}
}
View Replies !
View Related
How To Make Playout Movieclip When Mouse Click On The Button.
this is example website :: http://www.template-download.net/previews/t498/
You'll see the button below,
When you click on button it play movieclip and then when you click on another button it going to play roll out movie and then start to play the new movie clip.
I think the principle is ... I have 2 button one is DOG button second is BIRD button. I click on dog button it run dog walk in and stop!
Then I click at bird button dog movieclip play next after thay stop to the end is dog run away and then load bird movie clip is bird come down and stop. and then i click on the dog button again bird flyaway and load god movieclip.
I think I know that mean but I don't know How to do that ?
I can't make the movie clip play out ....
View Replies !
View Related
HOw Do I Make This OnClip Event (load) Work When You Click A Button?
I want to alter this code so that the thing scales and moves when the user clicks a button.
How do I do this?
Thanks.
onClipEvent (load)
{
_x = 0;
_y = 0;
xsEND = 200;
ysEND = 200;
xEND = -455;
yEND = -577;
speed = .2 //(0-1) speed of transition
tolerance = 1 //(0-1) precision of final placement...one is usually good enough
}
onClipEvent(enterFrame)
{
//if difference between END and CURRENT is still > tolerance (can use ANY variable...)
if(Math.abs(xEND - _x) > tolerance)
{
//find the distance between the current location and the END location, and go a percentage
//of that //distance (30% here, or speed = .3)
_x += (xEND - _x)*speed
_y += (yEND - _y)*speed
_xscale += (xsEND - _xscale)*speed
_yscale += (ysEND - _yscale)*speed
}
}
View Replies !
View Related
Make Button Not Play Sound On Click, Only On Rollover, With Out Screwing Up Anything
okay, here is my problem, and no one has been able to give me a solution that really works,
I can't figure this out. The home button works perfectly, the other buttons arn't working the same way. I don't want to use stopallsounds, because I am going to be adding in sounds on click and I don't want stopallsounds to be interfering. When I had the other buttons the exact same way as the home button the other buttons would play the sound continuously. I changed them and now the best I can do is that they play once on roll over, but will play once when I click as well, which I of course do not want. I want to get rid of the sound playing on click.
Can anyone help me with this with out either making the animation not play on click, or rearanging resetsubbuttons so that the buttons are reset after or during the animation taking place. Thank you.
View Replies !
View Related
HOw Do I Make This OnClip Event (load) Work When You Click A Button?
I want to alter this code so that the thing scales and moves when the user clicks a button.
How do I do this?
Thanks.
onClipEvent (load)
{
_x = 0;
_y = 0;
xsEND = 200;
ysEND = 200;
xEND = -455;
yEND = -577;
speed = .2 //(0-1) speed of transition
tolerance = 1 //(0-1) precision of final placement...one is usually good enough
}
onClipEvent(enterFrame)
{
//if difference between END and CURRENT is still > tolerance (can use ANY variable...)
if(Math.abs(xEND - _x) > tolerance)
{
//find the distance between the current location and the END location, and go a percentage
//of that //distance (30% here, or speed = .3)
_x += (xEND - _x)*speed
_y += (yEND - _y)*speed
_xscale += (xsEND - _xscale)*speed
_yscale += (ysEND - _yscale)*speed
}
}
View Replies !
View Related
Visible Not Visible On Button Controlling Mc
I am trying to make a movie clip visible or invisible useing a button. I want the button to check and see if the mc is visible if it is than make it disappear. If it is not visible make it appear. The is the code that I have on the button and it does disappear, but not reappear. Please help, I know this code looks horrible, but I am winging it.
on (release) {
pt._visible = false;
if (pt._visible=false) {
} else {
pt_visible = "true";
}
}
View Replies !
View Related
Make MC Visible, Make MC Invisible
Looking for a piece of script to (on rollover of other MC) make a MC placed on the stage visible, then to make it invisible.
I think there is a simple piece of code to target the MC and tell it visible == true or false???
Any Help greatly appreciated,
Thank you kindly,
cpalino
View Replies !
View Related
How To Make A Mc Visible
hi,
i have this script to animate my button.
so fare it works fine. the buttons are mc and have three states: one for up, one for over and one for press.
when first loading the swf, i want to have the first button already in the 'press' status.
i tried to do it with this:
but1.mc_butup._visible = false;
but that confuses my function of the button states.
Any help is appreciated. Thank you
_selassi
this is the scrip i have so far:
var buttonActive;
_global.buttonRelease = function(which) {
if (buttonActive != nil) {
with (buttonActive) {
mc_butover._visible = false;
mc_butup._visible = true;
}
}
};
for (i=1; i<=4; i++) {
with (_root["but"+i]) {
butOn = false;
mc_butover._visible = false;
}
_root["but"+i].onPress = function() {
_global.buttonRelease(buttonActive);
this.mc_butup._visible = false;
this.mc_butover._visible = false;
butOn = true;
buttonActive = this;
};
_root["but"+i].onRollOver = function() {
if (buttonActive != this) {
this.mc_butover._visible = true;
} else {
this.mc_butover._visible = false;
}
};
_root["but"+i].onRollOut = function() {
this.mc_butover._visible = false;
};
}
View Replies !
View Related
Help: HitTest To Make 2 MCs Visible?
Ok, so I have 3 movie clips in Flash 5.
What I want to happen: If mouse is over aMC, then bMc and cMc become visible.
So far I can only get one movie clip to become visible but not both b & c. I tried listing both movieclips in the if statements & I tried putting 2 if statements in 1 movie clip. What is the correct way to make bMc and cMc visible at the same time? Should I be using hitTest, or should I use tellTarget in aMc?
Either of the following work for making a single clip visible. The Actionscript is on bMc and cMc.
onClipEvent(load){
this._alpha=0;
}
onClipEvent (enterFrame) {
if (_root.aMc.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha<100;
this._alpha+=50;
}else{
this._alpha=0;
}
}
View Replies !
View Related
Make Layer Not Visible In Swf
Hi there,
This is a very simple one I would think but for whatever reason I can't seem to figure it out. I have an swf and I was to feeze a layer that I have in there (a link I'm currently not using), but instead of deleting the layer with the text on it, I just want to make it not visible. I goto the mc that the text is on, and i click the 'freeze' layer button. The text disappears. However, when I republish the swf it still shows up.
How can I make a layer not visible and when I publish it, it stays not visible.
thanks
View Replies !
View Related
How Make Mc Visible With AS, Function
hi,
i have this script to animate my button.
so fare it works fine. the buttons are mc and have three states: one for up, one for over and one for press.
when first loading the swf, i want to have the first button already in the 'press' status.
i tried to do it with this:
but1.mc_butup._visible = false;
but that confuses my function of the button states.
Any help is appreciated. Thank you
_selassi
this is the scrip i have so far:
ActionScript Code:
var buttonActive;_global.buttonRelease = function(which) {if (buttonActive != nil) {with (buttonActive) {mc_butover._visible = false;mc_butup._visible = true;}}};for (i=1; i<=4; i++) {with (_root["but"+i]) {butOn = false;mc_butover._visible = false;}_root["but"+i].onPress = function() {_global.buttonRelease(buttonActive);this.mc_butup._visible = false;this.mc_butover._visible = false;butOn = true;buttonActive = this;};_root["but"+i].onRollOver = function() {if (buttonActive != this) {this.mc_butover._visible = true;} else {this.mc_butover._visible = false;}};_root["but"+i].onRollOut = function() {this.mc_butover._visible = false;};}
View Replies !
View Related
How Make Mc Visible With AS, Function
hi,
i have this script to animate my button.
so fare it works fine. the buttons are mc and have three states: one for up, one for over and one for press.
when first loading the swf, i want to have the first button already in the 'press' status.
i tried to do it with this:
but1.mc_butup._visible = false;
but that confuses my function of the button states.
Any help is appreciated. Thank you
_selassi
this is the scrip i have so far:
ActionScript Code:
var buttonActive;_global.buttonRelease = function(which) {if (buttonActive != nil) {with (buttonActive) {mc_butover._visible = false;mc_butup._visible = true;}}};for (i=1; i<=4; i++) {with (_root["but"+i]) {butOn = false;mc_butover._visible = false;}_root["but"+i].onPress = function() {_global.buttonRelease(buttonActive);this.mc_butup._visible = false;this.mc_butover._visible = false;butOn = true;buttonActive = this;};_root["but"+i].onRollOver = function() {if (buttonActive != this) {this.mc_butover._visible = true;} else {this.mc_butover._visible = false;}};_root["but"+i].onRollOut = function() {this.mc_butover._visible = false;};}
View Replies !
View Related
Scroll Buttons, How To Make Visible Only If Necessary
I have scroll buttons on my Flash site to scroll text loaded from external text files. The site was posted in site check and I received a comment that the scroll buttons should only appear if necessary. Does that mean I have to create a duplicate MC only without the scroll buttons? What if the size of the text file changes? Is there a way to maybe use the ._visible property to accomplish this? What would be the condition? Is there a way for Flash to determine how many lines exist in the text file and use that as a condition? I think I'm close, just need a little help.
Thanks a bunch to whomever...
View Replies !
View Related
How To Make An MC In A Level 0 Movie Visible?
Im making a photo gallery where the level 0 movie contains a movie clip with links to load other movies that contain the pictures. i'm doing this so the user doesn't have to wait for the entire gallery to load before viewing anything.
so right now i have for each button within a movie clip:
on (release) {
this._visible=0;
loadMovieNum ("bleh.swf", 1);
}
and for the bleh.swf i have a link to unload that movie. what i'm trying to find is a way to get the main movie clip from the level 0 movie to become visible after the level 1 movie is unloaded. any suggestions?
thanks.
View Replies !
View Related
How To Make Layers Visible/invisible
Hi there!
at first i have to say i am from germany and have been out of school for a couple of years, so my english is probably not be the best, nevertheless, i hope you'll understand me.
ok, here we go:
i have made a map in FlashMX and the rivers, towns and borders are on single layers.
i´d like to have 3 checkboxes under the map so that you can choose "only show rivers / towns / borders" or a combination of all.
it is supposed be like the function you have in fMX but in the final movie (or document, however you want to call it).
i´ve visited a lot of tutorial sites but i haven´t found anything!
now i've come to this board and i really hope that somebody here can help me (or tell me a better solution)
so far, greetings!
View Replies !
View Related
Keylistening To Make MCs Visible - Big Problem
Hi there,
I'm trying to make a game which requires the opponents to hit each other's hands for getting some points. Each hit has its own videos; one wide and one close-up. For example when you try to pull your left hand when you see the approaching left hand of the computer, you press "x"(Key.isDown(88)in the file rootcode.txt i've uploaded); and if(this is the point i'm trying to realise) you can press it within first 9 frames of that video of the approaching hand, the second video would be the zoomed one of your successful backward move of your left hand. To do this i've created a movieclip(MainMC)(the approaching hand) and inside i've put the two possibilities(SubMCs) of the zoomed ones(backward move or being hit)on seperate layers.
The problem is i can't access their ._visible's from the root timeline. Because of this, the movie playing is always the one on the layer on top of the other.
Also with the code i tried before on the root, i couldn't use a variable in a keylistener(one was in an object function for example)in the timeline of a movieclip in order to solve the "within9frames" case. I've put a frame counter on the second frame of the MainMC but i can't use it because of this variable or/and visibility problem. Or am i totally going on the wrong lane?
I've uploaded here "rootcode.txt".
Any help would be greatly appreciated,
Thanks.
Ucan Payanda
View Replies !
View Related
Help-actionscript Parameters, How Do I Make Them Visible
probably a simple question but im using MX 2004, how do i set the working mode (ie.. normal) in the actions panel? the little button that usually does it offers features such as view line numbers and word wrap and thats it. i also have no parameters area visible, how do i make it visible? my textbooks are out of date, am on a deadline to complete my work, anny help much apreciated. thanks
View Replies !
View Related
Make Visible Based On Variable
In short, I have a variable called dim_01 that is set at 0 until a person "visits" a certain frame. Once they hit that frame, dim_01 is set = to 1.
On the main page, I want to make a graphic visible or hidden based on the value of dim_01 (0 = hidden and 1 = visible).
I am using Flash MX and have limited exposure to action script so feel free to spell things out...talk real slow.... and maybe even a little bit louder... so I'll be sure to understand....
Thanks!
View Replies !
View Related
Make Layers Visible/unvisible
We have a flash project, and it is related to some modifications of the text.
Unfortunately, I'm not working only for myself, I'm just a coder. Designer prepared all the staff, everything in MC as needed, but inside movieClips there are more than 10 layers, and sometimes not all of them needed to be shown.
Unfortunately, objects in that movieClips are just drawings.
Because, there are hundreds of that staff, is it possible to make the total layer invisible/visible programmatically?
("make everything mc" is not a solution :( )
Digging in help, found this:
The following example makes all objects in the first layer invisible:
fl.getDocumentDOM().getTimeline().layers[0].visible = false;
but it is working only in mx version. Need something similar in as3 or at least as2.
View Replies !
View Related
How To Make Layers Visible/invisible
We have a flash project, and it is related to some modifications of the text.
Unfortunately, I'm not working only for myself, I'm just a coder. Designer prepared all the staff, everything in MC as needed, but inside movieClips there are more than 10 layers, and sometimes not all of them needed to be shown.
Unfortunately, objects in that movieClips are just drawings.
Because, there are hundreds of that staff, is it possible to make the total layer invisible/visible programmatically?
("make everything mc" is not a solution :( )
Digging in help, found this:
The following example makes all objects in the first layer invisible:
fl.getDocumentDOM().getTimeline().layers[0].visible = false;
but it is working only in mx version. Need something similar in as3 or at least as2.
View Replies !
View Related
How To Make Sure A Movie Clip Will Be Visible Over All Other Mc
Thank you for the ComplexButton RollOver/RollOut Effects. I was able to create the Flash file mentionned below. The only problem is all except one movie clip are hidden behind the last one placed on the Main timeline. How can I change the hierarchy when the rollover action is triggered so each mc is shown on top of the others ?
Fla file - http://www.ittflygt.ca/Files/1729035.fla
Swf file - http://www.ittflygt.ca/Files/1729038.swf
Html file - http://www.ittflygt.ca/Files/1729052.html
Thanks,
MMorency
Québec, Canada
View Replies !
View Related
|