I Have Button Troubles
My buttons have a text rollout and i cant work out how to affect the button only. Even thou the text is not visable, if you move the mouse near the button (not on it) it acts like the button, showing the text. How do I stop this from happening ?
FlashKit > Flash Help > Flash General Help
Posted on: 02-23-2003, 09:45 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Button Troubles
My movie keeps getting increasingly more complex. Please help.
I have a button that on rollover plays an MC instance on the stage. No problem there. I also have a different MC instance playing on the stage on load. I want that same button to stop this MC on press, and play a new MC instance in its place. Hopefully someone can help me out if I explained myself correctly.
thanks
Button Troubles
I have a button in MX and when clicked on opens a movie clip. When you click on the button again whilst the movie clip is open, it closes the movie clip for some reason.
How can I prevent this from happening? Any suggestions?
Thanks
Button Troubles
Hi guys,
I am having a bit o' a prob here... I made this button menu interface for my site but I can't figure out why it wont work correctly. It's a simppe setup where you rollover the button and it sends you to the frame that has the pulldown categories. trouble is some of the buttons work and some don't even thoguh they're all coded the saame? Can someone tell me what I'm dong wrong or help fix it or something? Or is it just another one of those bizarre lil' things Flash does just to mess with you :-(
Button Troubles
I have a movie clip that loads with a mask. It begins on frame 1. I want a button in another movie clip to control which frame the first movie clip goes to. Here is my code. Everytime it is clicked it goes back to frame 1 in the first movie clip. Thanks ahead of time.
on (release) {
_root.content_photo.gotoAndPlay(2);
frame = getProperty ( _root.content_mask, _currentframe );
if (frame = 1) {
_root.content_mask.gotoAndPlay (2);
} else {
_root.content_mask.gotoAndPlay (15);
}
}
Button Troubles.
Code:
onClipEvent (load) {
mult = 0;
}
onClipEvent (enterFrame) {
if (_root._xmouse>this._x && _root._xmouse<this._x+this._width && _root._ymouse>this._y && _root._ymouse<this._y+this._height) {
_global.active = 2;
active = 1;
mult += .1;
_root.play._y -= .5/mult;
trace("move");
}
if (active == 0 && mult != 0) {
mult -= .1;
}
if (_global.active == 0 && this._y != 140.6) {
if ((this._y-.5)<140.6) {
this._y = 140.6;
} else {
this._y -= .5;
}
}
}
on (rollOut) {
active = 0;
_global.active = 0;
}
what this code does :
i have a movie clip above this movie clip, I have a unique button inside each of the movie clips. Thats all is really needed to know
the prob:
with the "on (rollOut)" present, its for some reason screwing up the mc, and instead of the button actually lighting up and, such, now it doesnt, also my mouse is "ignoring" the "hit" area of the button and only turns into a small hand when it touches part of the text, instead of teh rectangle i have in the "hit" frame. how can I either fix this prob, or avoid using the on rollout ??
Button Troubles.
When I hover over my buttons... they are not even doing the rollover effect, its as if they are just pictures now. they were working but now they're not
I would attach the fla but its like a 1 mb file.
there are 2 buttons that are affected. help please.
the frame they are in is stopped btw. if anyone feels nice enough I could email the fla... its a pretty website that i would really enjoy getting to work...
Button Troubles...
I'm trying to make a set of buttons that will "hide" when the cursor is not on the button area for a MC navigation i already have. ive tried just about everything i can think of, and it doent want to work for me
any thoughts on how i can make this work or another "simpler" way that im not seeing?
ActionScript Code:
//heres the code i have so far
onClipEvent (enterFrame) {
this.onRollOver = function(){
_root.tst1.tst2.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
this.onRollOut = function(){
_root.tst1.tst2.gotoAndPlay(7);
}
}
Button Troubles
how can I make it so when I press the button it jumps to a certain frame?
Button Troubles
Hello, anyone out there who can answer this problem, I'm having trouble with a button in Flash MX
First of all, I think the problem is related to the "Go to and play" function that I assign to a button. Regardless of what I think, here's the problem: I have a button that, when clicked, goes to and plays a frame label (which has a stop function on it). However, when you click the same button twice (after it's loaded the frame label), rather than staying on the same frame label, it jumps to the next frame. This only seems to happen when I use "Go to and Play", and only jumps to the next frame (it goes back to the original frame,when clicked a third time, after jumping to the following frame).
So, In conclusion, can someone help me with this problem possibly? If there's no way to fix it, please help provide me with some sort of actionscript that will just have a button go to a frame and stop there. Thanks!
Button Troubles
hey all,
really despirate for some help as a deadline is closing in and this is all thats in my way!!
ok i have made a button, and wat i want it to do, is when u rollover is, it goes to and plays(2) and then stops at frame 11 and when it rolloouts it plays frame 12 where it then looks to frame one and stops, I can do all that, but i want to add a sub menu on frame 11, and i want the buttons rollout funtion to be canceled if the sub menu is hit, and then if either the sub menu movie button or main button is rolled out then it goes to frame 12.
this is my script: I have also put a stop() script on frame 10 and 11 and one frame 1
telecom_bt.onRollOver = function(){
gotoAndPlay(2)
if (submenu.rollOver){
gotoAndStop(11);
}else if(telecom_bt.rollOut){
gotoandPlay(12);
}
};
thank you so much.
fla is here: www.mostique.com/nav.fla.zip
giles
Button Troubles.
I'm not sure whats wrong but, i have two buttons that aren't showing up as buttons. I have buttonMode turned on and an eventlistener listening for their click. I put a trace inside the function to trace out when they're clicked but nothing is happening. Can some one take a look and see if they can see any errors.
My buttons are called nButton and rButton and my function for them is nextImage and is at the very bottom of the code
Code:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
var xml:XML;
var xmlLength:Number;
var xmlLoader:URLLoader;
var imgLoader:Loader;
var imgArray:Array = new Array();
var current:Number = 0;
var mc1:Sprite;
var mc2:Sprite;
var loaderMovie:Sprite;
var width1:Number;
var width2:Number;
var height1:Number;
var height2:Number;
var curMovie:Sprite;
var swap:int = 1;
var nButton:NextButton = new NextButton();
var rButton:ReverseButton = new ReverseButton();
nButton.x = stage.stageWidth - nButton.width;
nButton.y = stage.stageHeight/2 - nButton.height/2;
nButton.buttonMode = true;
nButton.mouseChildren = false;
nButton.addEventListener(MouseEvent.CLICK, nextImage);
rButton.y = stage.stageHeight/2 - rButton.height/2;
rButton.buttonMode = true;
rButton.mouseChildren = false;
rButton.addEventListener(MouseEvent.CLICK, nextImage);
addChild(nButton);
addChild(rButton);
loadGallery();
function loadGallery():void {
xmlLoader = new URLLoader();
xmlLoader.dataFormat = URLLoaderDataFormat.TEXT;
xmlLoader.addEventListener(Event.COMPLETE,portfolioLoaderOnComplete);
xmlLoader.addEventListener(IOErrorEvent.IO_ERROR,portfolioLoaderOnIoError);
xmlLoader.load(new URLRequest("images.xml"));
function portfolioLoaderOnComplete(e:Event):void {
xml = XML(e.target.data);
xmlLength = xml.*.length();
fillArray();
initBigMovies();
}
function portfolioLoaderOnIoError(e:IOErrorEvent):void {
xmlLoader = null;
trace("Error");
}
}
function fillArray():void {
for (var i:int = 0; i < xmlLength; i++) {
imgArray[i] = xml.image[i];
trace(imgArray[i]);
}
}
function initBigMovies():void {
mc1 = new Sprite();
mc2 = new Sprite();
mc1.name = "mc1";
mc2.name = "mc2";
loaderMovie = new Sprite();
addChild(mc1);
addChild(mc2);
addChild(loaderMovie);
loadBigImgs(current);
setProp();
}
function loadBigImgs(id:int):void {
id = current;
if (swap == 1) {
trace("LOADING IN MOVIE 1");
loadBigImg(imgArray[id],mc1);
curMovie = mc1;
swap = 2;
} else {
trace("LOADING IN MOVIE 2");
loadBigImg(imgArray[id],mc2);
curMovie = mc2;
swap = 1;
}
}
function setProp():void {
stage.addEventListener(Event.RESIZE,resized);
}
function resized(e:Event):void {
calc(mc1,width1,height1);
calc(mc2,width2,height2);
nButton.x = stage.stageWidth - nButton.width;
nButton.y = stage.stageHeight/2 - nButton.height/2;
rButton.y = stage.stageHeight/2 - rButton.height/2;
}
function loadBigImg(path,holder):void {
trace(path);
trace(holder);
loaderMovie.visible = true;
stage.mouseChildren = false;
loaderMovie.width = 1;
setChildIndex(loaderMovie,stage.numChildren -1);
imgLoader = new Loader();
imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,handleComplete);
imgLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,handleProgress);
imgLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,handleIoError);
imgLoader.load(new URLRequest(path));
function handleProgress(e:ProgressEvent):void {
var percent:Number = e.bytesLoaded/e.bytesTotal;
loaderMovie.width = percent * stage.stageWidth;
}
function handleIoError(e:IOErrorEvent):void {
trace("ERROR LOADING IMAGE");
loaderMovie.visible = false;
stage.mouseChildren = true;
}
function handleComplete(e:Event) {
var bitmapData:BitmapData = new BitmapData(imgLoader.width,imgLoader.height,false);
bitmapData.draw(imgLoader.content,null,null,null,bitmapData.rect,true);
var bitmap:Bitmap = new Bitmap();
bitmap = new Bitmap(bitmapData,"auto",true);
bitmap.smoothing = true;
holder.addChild(bitmap);
if (curMovie == mc1) {
width1 = bitmap.width;
height1 = bitmap.height;
setChildIndex(mc1,stage.numChildren -1);
calc(mc1,width1,height1);
trace("FINISH LOADING IN MOVIE 1");
} else {
width2 = bitmap.width;
height2 = bitmap.height;
setChildIndex(mc2,stage.numChildren -1);
calc(mc2,width2,height2);
trace("FINISH LOADING IN MOVIE 2");
}
loaderMovie.width = stage.stageWidth;
setChildIndex(loaderMovie,stage.numChildren -1);
imgLoader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR,handleIoError);
imgLoader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,handleProgress);
imgLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,handleComplete);
imgLoader = null;
}
}
function calc(mc,W,H) {
var obj1 = new Object();
var sW = stage.stageWidth;
var sH = stage.stageHeight;
var _loc2:Number = obj1.sCx = sW/W;
var sCy = obj1.sCy = sH/H;
if (_loc2<sCy) {
_loc2 = sCy;
}
obj1.wD = _loc2 * W;
obj1.hT = _loc2 * H;
obj1.X = obj1.Y = 0;
if (obj1.wD>sW) {
obj1.X = -Math.round((obj1.wD-sW)/2);
}
if (obj1.hT>sH) {
obj1.Y = -Math.round((obj1.hT-sH)/2);
}
mc.x = sW/2 - obj1.wD/2 ;
mc.y = sH/2 - obj1.hT/2 ;
mc.scaleX = obj1.wD/W*1;
mc.scaleY = obj1.hT/H*1;
}
function nextImage(e:MouseEvent) {
if (e.currentTarget == rButton) {
if (current >= 1) {
current --;
loadBigImgs(current);
trace("pressed rButton");
}
} else {
if (current < imgArray.length) {
current ++;
loadBigImgs(current);
trace("pressed nButton");
}
}
}
thanks for the help i appreciate it.
Button Troubles In Flash Mx
made a nice set of buttons however my scripting skills are pretty sorry. getting to the point what i need is a script to link them to my secondary html page designed in dreamweaver ive been trying on release and get url but it acts prematurely on its own, i need a way to link only when the link is clicked on and then released. please help my site is almost done and ive hit a major stumbling block.
Button Troubles: Over Keyframe...
A simple rundown of what I want.
I have 2 buttons. Button A is a square, that when Button A is hovered over, the square turns blue.
Now I have Button B. Button B is the text "BLUE".
How do I get it so that when Button B is hovered over, it plays the OVER keyframe of Button A. And vice versa.
Basically giving the user 2 ways to changing the squares button.
Thanks,
Brett
Fuse Button Troubles
I have set a challenge for myself involving Fuse and Victor Gaudioso's "Button Animation with RollOver State that Stays when User Clicks a Button" script. I've made some mods to a script (see ButtonTest1.swf attached). The code for that is below. All works as expected.
ButtonTest2.swf does not. That code is the same as below except the commented out sections are put in. The trouble is that when the user clicks on a button, it scales down and even sometimes pulses. I don't understand how a simple colorTo can mess up the scaleTo's?
Code:
import com.mosesSupposes.fuse.*;
// set up zigoEngine
ZigoEngine.simpleSetup(Shortcuts);
// declare the variable that will be the button that is clicked (MovieClip)
var buttonClicked:MovieClip;
// create the array to hold all the names of the movieClips
var myButtonsArray:Array = new Array(this["myButton0"], this["myButton1"], this["myButton2"]);
//
myButton0.onRelease = function():Void {
// set the buttonClicked to this
buttonClicked = this;
// run the scale buttons down function
scaleButtonsDown(exception);
// create the variriable that we pass into the scaleButtonDown func
var exception = this;
};
//
myButton0.onRollOver = function():Void {
// run scale buttons up func and pass in this
scaleButtonsUp(this);
};
//
myButton0.onRollOut = function():Void {
// run scale buttons down function
scaleButtonsDown();
};
//
myButton1.onRelease = function():Void {
buttonClicked = this;
var exception = this;
scaleButtonsDown(exception);
};
//
myButton1.onRollOver = function():Void {
scaleButtonsUp(this);
};
//
myButton1.onRollOut = function():Void {
scaleButtonsDown(null);
};
//
myButton2.onRelease = function():Void {
buttonClicked = this;
var exception = this;
scaleButtonsDown(exception);
};
//
myButton2.onRollOver = function():Void {
scaleButtonsUp(this);
};
//
myButton2.onRollOut = function():Void {
scaleButtonsDown(null);
};
// scale buttons down function
scaleButtonsDown = function ():Void {
// loop through myButtonsArray
for (var i:Number = 0; i<myButtonsArray.length; i++) {
// scale all buttons down over a .5 second period
myButtonsArray[i].scalerCrc.scaleTo(100, .5);
myButtonsArray[i].scalerTtl.scaleTo(100, .5);
//myButtonsArray[i].scalerCrc.colorTo(0xFFCCCC,.5);
//color change over .5 seconds
// make the buttonClicked scale to 100 over .5 seconds
}
buttonClicked.scalerCrc.scaleTo(150, 0);
buttonClicked.scalerTtl.scaleTo(200, 0);
//buttonClicked.scalerCrc.colorTo(0xFF0033);
};
// scale buttons up function
scaleButtonsUp = function (args):Void {
// scale the args (remember the button passed in this) to 200/150 over .5 seconds
args.scalerCrc.scaleTo(150, .5);
args.scalerTtl.scaleTo(200, .5);
//args.scalerCrc.colorTo(0xFF0033,.5);
//color change over .5 seconds
};
// scale all buttons down at start of movie
scaleButtonsDown();
Does anyone have a suggestion?
Mute Button Troubles
I have a mini ap that loads ads externally. I need to ad a mute button, but haven't been able to get it to work properly. Not only does it not mute properly, but somehow my variable that controls the loading of the ads gets messed up, and the first ad gets displayed.
I've attached the requisite fla, swfs and text file. Simply unzip them all into the same folder. Open the composer fla and export a swf into the same folder. Then run the composer.swf.
Direction and or a solution would be great... Thanks for the help guys. (note: the third movie has sound)
Replay Button Troubles...
Hello Everyone!
I am in need of some assistance with attaching the actionscript to replay my movie (and the music to go along with it).
This is what I have done:
1. My button has been created. I just don't know where to put the actionscript.
2. I'm using Flash CS3.
Any response will be fine. Basically I just need to know where to put the actionscript for this replay button.
Thank you so much!!! :)
Attach Code
on (release) {
gotoAndPlay(1);
stopAllSounds();
}
Button Troubles: Over Keyframe...
A simple rundown of what I want.
I have 2 buttons. Button A is a square, that when Button A is hovered over, the square turns blue.
Now I have Button B. Button B is the text "BLUE".
How do I get it so that when Button B is hovered over, it plays the OVER keyframe of Button A. And vice versa.
Basically giving the user 2 ways to changing the squares button.
Thanks,
Brett
MC Button Event Troubles
Greetings,
I've included some psuedo code and AS code in hopes of helping those understand my problem.
Here's the scenario and troubles I'm having develop:
this.onRollOver do this
this.onRollOut do this
this.onPress move to 0,0 and scale to 100
if there is exisiting clip at 0,0 and 100 scale
remove that clip and scale it down and replace with new pressed clip - scale the new pressed clip to 100 and 0,0
else if this is the clip that was pressed initially, disable onRollOver and allow for another press on this same clip to "reset" (scale down and move away from 0,0)
current script
ActionScript Code:
click = false;
myCard.onRollOver = function() {
this.rotateTo(0, .25, "easeoutback");
this.swapDepthsByStep(lvData.count);
trace(this._name);
};
myCard.onRollOut = function() {
this.rotateTo(Math.random()*23, .25, "easeoutback");
};
myCard.onPress = function() {
if (!click) {
this.scaleTo(100, .5);
this.slideTo(Stage.width/2, Stage.height/2);
_root.click = true;
delete this.onRollOut;
} else {
this.scaleTo(20, .5);
this.slideTo(Math.random()*640, Math.random()*393);
this.rotateTo(Math.random()*23, .25, "easeoutback");
_root.click = false;
}
};
Hopefully this isn't to vague - any help is GREATLY appreciated!
Thanks!
Movie Button Troubles,,please Read
I made my menu a movie clip and the info about the different frames to play are in that movie.. I dragged the menu movie clip to the main timeline and when I click the buttons nothing happens,, but when I make the button in the main timeline it works.
Im pretty sure you can control the main timeline within a movie clip,, or am I wrong?
How do I make the menu made as an movie clip work.
Look yourself if you think my question is a bit fuzzy.
http://bluefrost.dyndns.org/bluefrost/wblue.html
The first button at the bottom named curry is a movie clip the second curry button(the one out of place) is in the main timeline.
Input Field And Button Troubles, Help
ok so i have really annoying problem on my page which i cant seem to fix:
i have a button with inputfield near it:
on (release, keyPress "<Enter>") {
code...
}
and because of interference of that button, i cant use <enter> key to get new line on any other multiline input textfield on animation!
please tell me if there is a solution to this, maybe to make that button activated only when that inputfield assigned to it is selected? how would i detect its selected?
please help me this is emergency
Troubles With : 3 Actions At A Time To A Button
on (rollOver) {
gotoAndPlay (330);
}
on (rollOut) {
gotoAndPlay (105);
}
on (release) {
gotoAndPlay (341);
}
___________________________________________
The 3 actions at a time to a button causes it to fail every now and again, forcing to remain the mouse on in order to work ;
is there anything that it can be done to improve the buttons ;
or is there another way to do the same tasks ?
Cheers
___________________________________________
Play/Pause Button Troubles
I have this play/pause button for a simple mp3 plater and it's almost working I am just having a small issue. here is the player.
I want the audio to start "paused" any ideas on how to do this?
Here is the AS
Code:
stop();
x = new Sound();
x.loadSound("test_audio.mp3", true);
x.start(0, 0);
musicplay = true;
x.onSoundComplete = function() {
streemer.gotoAndStop(1);
}
Here is the AS on the button.
Code:
on (release) {
if (musicplay == true) {
p = Math.round(x.position / 1000);
x.stop();
streemer.gotoAndStop(1)
play_pause.gotoAndStop(2);
musicplay = false;
} else {
x.start(p, 0);
streemer.gotoAndPlay(2);
play_pause.gotoAndStop(1);
musicplay = true;
}
}
any idea on how to make this work?
Troubles With : 3 Actions At A Time To A Button
on (rollOver) {
gotoAndPlay (330);
}
on (rollOut) {
gotoAndPlay (105);
}
on (release) {
gotoAndPlay (341);
}
___________________________________________
The 3 actions at a time to a button causes it to fail every now and again, forcing to remain the mouse on in order to work ;
is there anything that it can be done to improve the buttons ;
or is there another way to do the same tasks ?
Cheers
___________________________________________
RollOver And RollOut Animation On Button Troubles
So, basically I'm looking for some help or ideas on how to control a movie clip with a button. This animated movie clip is controlled with AS and has an animation for the rollover and rollout.
I've searched the forums and found a couple ways to do things like this but none seem to work the way I'm looking for (or I'm missunderstanding them which could be the problem). I've tried creating a movclip with the animations and putting an empty button on the clip. In this method I can't get the button to work.
If I put the rollover animation on the over state of the button then the button works but I can't get the animation to play and the rollout feature doesn't work.
So, at this point I'm thoroughly confused and I don't know where to go. If anyone can help out I'd be very gracious.
MC Troubles
I have a few questions:
1) I have 3 MC's and 3 corresponding buttons. On the rollover of button "1" MC "1" needs to play(the trick is I want it to play to it's end no matter what else happens {rollout/release} then complete it's task ie goTo URL) this is the code I have for that as of now (tried many others but to no avail)
on (rollOver) {
gotoAndPlay ("left");
}
I was also advised to try:
on (rollOver) {
gotoAndPlay ("left");
if (left._currentFrame) {
play ();
}
}
2) Then at the end of the MC I want it to return to frame 1 on the main stage?
PHP Troubles
Ok, this is a bit of a weird problem. I'm useless at coding anyway, so you can imagine how I fare with PHP. However, I got both a 'mailing list' type thing as well as a 'comments' form working absolutely no problem. That is when tested offline in the stand alone flash player.
When I publish the file online the PHP wouldn't work for some reason. I have this code on the first frame:
Quote:
mailform = "http://www.domain.com/mailform.php";
action = "";
an input text box assigned the instance name 'vemail' and this code on a 'submit' button:
Quote:
on (release, keyPress "<Enter>") {
if ((vemail.indexOf("@") != -1) && (vemail.indexOf(".") != -1) && (length(vemail)>5)) {
action = "Send";
loadVariablesNum("http://www.domain.com/mailform.php", 0, "POST");
vemail = "";
getURL("java script:NewWindow=window.open('http://www.domain.com/success. htm','newwin','width=240,height=200,top=0,toolbar=
No,location=No,scrollbars=No,status=No,resizable=N
o,fullscreen=No'); NewWindow.focus(); void(0);");
} else {
vemail = "incorrect entry!";
action = "";
stop();
}
}
This is the PHP script as well:
Quote:
<?
$adminaddress = "email";
$siteaddress ="http://www.domain.com";
$sitename = "site";
$date = date("m/d/Y H:i:s");
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
IF ($action != ""):
mail("$adminaddress","subject",
"new member: $vemail
Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
mail("$vemail","thank you for visiting $sitename!", "Hi $fname
Blah Blah Blah
$sitename
$siteaddress","FROM:$adminaddress");
ENDIF;
?>
Like I said, I am pretty awful at coding but this seemed to work when I was offline, so I can't work out why it doesn't work online. Presumably there is no problem with the server that the PHP file is uploaded to seeing as though it worked before.
Can anyone help?
telekin:
SWF To AVI Troubles...
I'm a TOTAL newb, so I hope I'm just not doing something right...
I'm trying to convert the SWF files from this page into AVI files so I can burn them onto a video CD or a DVD.
My problem is that no matter what program I try, when I export the movie, it does NOT save the sound at all...
Anyone know what I may be doing wrong???
Is there a program that will convert the file for me in whole???
Thank you very much for your time.
-EB64
SWF To AVI... Troubles... Help... Please...
Hey, I've got this problem, see if you can give me a hand.
I made an animation in Flash, that has several movie clips, with other movie clips inside, and so on (I'll explain better so you can understand: they're some animals that move, and their eyes (that blink) are another movie clips inside of the first movie clip). When I publish it as an .SWF, it works as expected, but if I export it as an .AVI (the animation will come out in video, and the person that's going to edit it asked me for that specific format), the movie clips don't move, like it is only reading the main timeline. Do you understand me? The only movements that come out are the ones that happen in the main timeline. The others movie clips stay still in the first frame. oes anybody know what's going wrong and how can I export that .AVI? Thank you.
Dns Causes Troubles?
Hi
In this site I made, there is a popup function that's allow to see
pictures. When I click on the buttons, it tries to open a new page
but not a popup.
Since I applied a dns management package and cloaked the site's name, that function doesn't work anymore( and it used to ).
The pictiures are in a file that's on the same level that the only
.fla wich contains the all site.
function popCenter (url, nom, largeur, hauteur) {
getURL ("java script:window.open('http://www.webcold.com/MahalR" +url +"','" +nom +"','width=" +largeur +",height=" +hauteur +"scrollbar=yes,top='+((screen.height/2)-(" +hauteur/2 +"))+',left='+((screen.width/2)-(" +largeur/2 +"))); void(0);");
}
On the buttons itself:
on (release){
_root.popCenter("popup/IMG_1393.html", "gpopup", "410", "307");
}
If you want to have a look, go http://www.mahalrayan.com ,in the photogallery section and click on the pictures.
Dns Causes Troubles
Hi
In this site I made, there is a popup function that's allow to see
pictures. When I click on the buttons, it tries to open a new page
but not a popup.
Since I applied a dns management package and cloaked the site's name, that function doesn't work anymore( and it used to ).
The pictiures are in a file that's on the same level that the only
.fla wich contains the all site.
function popCenter (url, nom, largeur, hauteur) {
getURL ("java script:window.open('http://www.webcold.com/MahalR" +url +"','" +nom +"','width=" +largeur +",height=" +hauteur +"scrollbar=yes,top='+((screen.height/2)-(" +hauteur/2 +"))+',left='+((screen.width/2)-(" +largeur/2 +"))); void(0);");
}
On the buttons itself:
on (release){
_root.popCenter("popup/IMG_1393.html", "gpopup", "410", "307");
}
If you want to have a look, go http://www.mahalrayan.com ,in the photogallery section and click on the pictures.
Mac Os + MX Troubles
Hi ,
I’ve been downloading tons of movies from the flash archive, i was looking for some kind of nice, simple mouse follow but with flash MX i am not able to open any .fla .
I am using Mac os 9.01 on a G3 eand it gives me ERROR -39.
I also try to change the Type of file with ResEdit, the icon change but i got always the same message. -39.
Any mac user got any clue ?
thanks!
Pop Up Troubles
Okay, so I have this flash site I'm making for school. The main site loads into a pop up window that I made with this javascript that I put into a welcome page:
SCRIPT LANGUAGE="JavaScript"
function popup() {window.open('intro.html','','toolbar=no,location= no,directories=no,status=no,menubar=no,scrollbars= no,resizable=no,width=504,height=360,left=0,top=0' );}</script>
It was originally working okay, but I made some changes and republished the pop up html and swf files. Now the pop up window opens okay, but the flash movie is shifted to the bottom right, cutting off some of the movie. I tried placing the flash movie in differant places within the html file ie.Top, Absalute middle etc. but nothing has worked.
Thanks.
MC Troubles
Hi Dudes & Dudettes!
I am hoping that one of you flash bods can help me out with this MC problem that I can't get my head around!?
I have a movie that I am working and in theory it should be quite simple. I have a MC(screen) of a display screen that part-rotates on a timeline of 100 frames (24fps) frame 1 shows a 3/4 left side on view of the screen - frame 50 shows a flat front on view - and frame 100 shows a 3/4 right side on view. This movie clip is then put into another timeline on a 750width stage where the MC-Screen starts on the far left hand side of the stage and moves to the exact centre on frame 50 and finishes on the far right of the stage on frame 100 all positions on the stage correspond to the rotation amount in the MC-screen.
What I want to do is have 10 screens placed at intervals across the stage and want the MC-screen to start playing from different frames of the MC-screen ie: the first screen plays from frame 1 of it's timeline then the next screen will always play from frame 10 etc... so it gives the effect of continuous movement by the screens. I have tried to duplicate the MC-screen and then paste the first 10 frames at the end of the timeline for the MC-screen so as frame 10 becomes frame 1 but it seems to eat the memory up.
How do I do it??? someone out there must have some idea......
......please!!!!
Cheers
Diga
Mc Troubles
Hi Dudes & Dudettes!
I am hoping that one of you flash bods can help me out with this MC problem that I can't get my head around!?
I have a movie that I am working and in theory it should be quite simple. I have a MC(screen) of a display screen that part-rotates on a timeline of 100 frames (24fps) frame 1 shows a 3/4 left side on view of the screen - frame 50 shows a flat front on view - and frame 100 shows a 3/4 right side on view. This movie clip is then put into another timeline on a 750width stage where the MC-Screen starts on the far left hand side of the stage and moves to the exact centre on frame 50 and finishes on the far right of the stage on frame 100 all positions on the stage correspond to the rotation amount in the MC-screen.
What I want to do is have 10 screens placed at intervals across the stage and want the MC-screen to start playing from different frames of the MC-screen ie: the first screen plays from frame 1 of it's timeline then the next screen will always play from frame 10 etc... so it gives the effect of continuous movement by the screens. I have tried to duplicate the MC-screen and then paste the first 10 frames at the end of the timeline for the MC-screen so as frame 10 becomes frame 1 but it seems to eat the memory up.
How do I do it??? someone out there must have some idea......
......please!!!!
Cheers
Diga
{Mod Edit: Moved to General Help- SJT]
For (i=1; I<17; I++) Troubles
Here is some code I'm writing that I'm having some big problems with. First, for the "text1" variable on line 7, how do I write the "unescape(title1)" part so that it goes: title1, title2, title3, etc.? Second, even bigger problem; all of my variables in this act like they are all 17, not 1,2,3,4,5,6 etc. Finally, how do I handle changing info like "rocksDescription" mindway down the code and, "QS164_Rocks.jpg" at the bottom?
Code:
title1 = "Rocks%99"
title2 = "Eggs%99"
title3 = "Cars%99"
//etc.
for (i=1; i<17; i++) {
_root["Btn"+i].btn.onRollOver = function() {
text1 = unescape(title1);
};
_root["Btn"+i].btn.onRollOut = function() {
text1 = "";
};
_root["Btn"+i].btn.onRelease = function() {
_root.attachMovie("ButtonCoverMC", "ButtonCoverMC", 80);
_root["Btn"+i].gotoAndStop(2);
setProperty("_root.ButtonCoverMC", _x, i*23+209);
setProperty("_root.ButtonCoverMC", _y, 470);
_root.ButtonCoverMC.coverText = i;
_root.Description.copy.attachMovie("rocksDescription", "", 2);
_root.Description.gotoAndPlay(2);
_root.attachMovie("ProductFadeInMC", "ProductFadeInMC", 300);
setProperty("_root.ProductFadeInMC", _x, 202);
setProperty("_root.ProductFadeInMC", _y, 189);
loadMovie("products/QS164_Rocks.jpg", "_root.ProductFadeInMC.productHolder");
};
};
text 1
XML Troubles, Please Help
Hey all;
I'm having troubles getting my xml data to display correctly, any suggestions?
Here's what I've got so far:
- An MC with a scrollpane on the stage.
-In the library, a MC called contentMC.
-Inside contentMC is an empty MC called imgHolder (for holding the jpgs) and a dynamic text field named infoText.
-An XML file named catalog.xml.
So I've been able to adjust my xml nodes to get to my info, but it wont display right. For one thing, it won't display the jpgs unless there is a dynamic text field in contentMC (which I find wierd). And secondly, I can't figure out how to position the jpgs & text so they don't overlap each other.
Here is the code I've got loading in the xml:
Code:
//create new XML object & load from external source
albumXML = new XML();
xmlDoc = "catalog.xml";
albumXML.ignoreWhite = true;
albumXML.onLoad = checkXMLStatus;
albumXML.load (xmlDoc);
//Checks the success of the loading
function checkXMLStatus(success) {
if (success) {
//Build the catalog
buildMenu();
} else {
trace (" Did not load ");
}
}
stop();
and this is the code I've got manipulating the xml data:
Code:
function buildMenu() {
theDepth = 100;
this.createEmptyMovieClip ("con", 10);
nodeCount=albumXML.firstChild.firstChild.childNodes.length;
for (u = 0; u < nodeCount; u++) {
//Build the content listing
buildContent();
} //Attaches the clip of items, to the Macromedia scrollpane component, which has an instance name of "catalogPane".
albumPane.setScrollContent (con);
}
function buildContent(){
theJpg = albumXML.firstChild.firstChild.childNodes[u].attributes;
theInfo = albumXML.firstChild.firstChild.childNodes[u].childNodes;
theName = "item_" + u;
con.attachMovie("contentMC", theName, theDepth++, {_y :350 * spacing});
con[theName].imgHolder.loadMovie(theJpg);
con[theName].infoText.text = theInfo;
spacing++;
}
stop();
...and this is the XML data:
Code:
<catalog>
<albums directory="albums">
<imageNode jpegURL="alb01_img00.jpg">Description of album 1</imageNode>
<imageNode jpegURL="alb01_img01.jpg">Description of album 2</imageNode>
<imageNode jpegURL="alb01_img00.jpg">Description of album 3</imageNode>
<imageNode jpegURL="alb01_img01.jpg">Description of album 4</imageNode>
</albums>
<singles directory="singles">
</singles>
<videos directory="videos">
</videos>
</catalog>
So how do I get the text to display correctly? Right now I get the word "null" in the text box when I test.
And how do I get it all to line up correctly?
Thanks for any and all help.
A Few Troubles
1) I want a projector file to open in Full Screen, so it doesn't show the Flash file menu or title bar. How do I do this?
2) I want to have a print function inside the projector so I don't have to use Flash Player's File->Print, and so I have control over what is being printed. Could someone please link me to a relevant tutorial?
3) When I set the Alpha of a movie clip to 0, if the movie clip has other movie clips inside of it then they are not made invisible. Do I have to set all of the inside objects to be invisible, one by one, or is there another way?
Thanks
XML Troubles. Its A Bit [U]ODD[/U]
Hi Everybody, Im Using Flash to read Questions from an XML file. The trouble Im having is, I am reading questions from an XML file into Flash variables, but the questions only load into the variables if the nodes are odd numbers!!! Ive got it working with the odd numbers, what I was wondering if anybody new why this happens and if possible how to fix it?.
Troubles With 3D
I am as as
I'm a real newby, as you should be in this forum. I've got this download, Swift 3D, I Think, at least something with 3D. My problem:
How to attach, for example, spinning wheels to a car, wiggly eyes to a face, that sort of thing.
Please answer this one question, I soy to anyone who knows this stuff( or is it only allowed for newbies to answer here? )
If someone reacts, THANK YOU
Troubles With This
trying to do something fairly simple, just want to have a root function define onRollOver,onRollOut, and onEnterFrame for a bunch of movieclips
PHP Code:
//frame actions in root
function prepare() {
this.onRollOver = function() {
if (this._currentframe<this._totalframes) {
this.go = true;
}
_root.popup("TV", this);
};
this.onRollOut = function() {
this.go = false;
_root["mytext"].removeTextField();
_root.popupmc.removeMovieClip();
_root.pointer.removeMovieClip();
};
this.onEnterFrame = function() {
this.go ? play() : prevFrame();
};
}
PHP Code:
//actions in mc
onClipEvent(load){
_root.prepare(this);
}
Pop-up Troubles...
i've tried to make a site that has a main page which has a button on it that will launch the actual website, in its own window. I had it working but i accidently deleted the fla file of my working version, and now that i have had to redo it i cant seem to get it to work again! So i was wondering whats wrong with my code? :
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.geocities.com/flashsaga/testsize.html','Welcome To Flashsaga','width=985,height=580,left=15,top=50,to olbar=No,location=No,scrollbars=No,status=No,resiz able=No,fullscreen=No');", "NewWindow.focus(); void(0);");
}
incase you want to see what that code ends up doing you can find it here:
http://www.geocities.com/flashsaga/main.html
IF Troubles
I have a large if statement being worked through. This is the part that is causing the trouble.
(this is one section of a much longer code)
code:
} else if (variablea == 5 or 6 && variableb == 2002 && variablec == 49 && variabled == 1 or 4 or 5 or 6) {
variablef = blah1;
} else if (variablea == 5 or 6 && variableb == 2002 && variablec == 49 && variabled == 2 or 3) {
variablef = blah2;
}
Now, no matter what I enter for variablec or variabled I always end up with variablef becoming blah1.
variablef should become blah2 if variabled is 3 or 4.
Hope this doesn't sound too confusing.
Pop Up Troubles
I am having troubles where some of my pop ups have stopped working. Instead of the pic appearing in a new window at the specified size, the new window just says 'untitled' and is regular size. I have this code on the button:
Quote:
on (release) {
getURL("javascript: MM_openBrWindow('brace1.html','loading','width=300 ,height=450')", "_blank");
}
Is there any hidden code in the html file/s that I may have overwritten, or can you think of any other reason why they are all not working?
Pop-up Troubles
hi everyone. I'm having trouble with some pop-ups. THey work fine on firefox but wont pop in IE6, is there anything else i could add to the code to make it pop in IE?
i used the same code in this tut.
http://www.kirupa.com/developer/flas...pup_window.htm
please help
Im using flash 8
[F8] Lag Troubles
Hey everyone!
I am almost done with my game, you can view the beta version here http://peejaroni.com/drawman.aspx
As you can see if you play for a while you will experience a bunch of lag. I'm not going to post the .fla in case someone tries to steal it, but I will post the script I think it is lagging at. I believe that the missiles keep duplicating, and the for loops that detect hitTests end up working too hard when they need to calculate over 150 numbers. I tried to clear out the numbers every X amount of shots, but then the hitTests wouldn't work at all.
here is my duplication code...
_root.z --
_root.j++;
duplicateMovieClip("_root.rline", "rline"+_root.j, _root.z);
eval("_root.rline"+_root.j)._x = heroman._x;
eval("_root.rline"+_root.j)._y = heroman._y;
Here is my hitTest code
for (o=1; o<=_root.j; o++) {
if (this.hitTest(eval("_root.rline"+o))) {
if (eval("_root.rline"+o)._currentframe != 1) {
this.gotoAndPlay(2);
if(_root.ten == true){
_root.refy = true}
}
}
}
Thanks for your help.
ps. if you find any other bugs or problems or comments in the game please post them too.
Swf Troubles
I am making a game, everytime I export the game to an swf the controlls such as enter and arrow keys dont work. But then does work when I use the test movie funtion in my flash animator. Anyone know what to do, or how to make it work.
XML Troubles
Hello there,
i'm trying to make a photo gallery using kirupa tutorial http://www.kirupa.com/developer/mx2004/thumbnails.htm, but i tried to make this gallery with categories, so i made XML file like this
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<gallery>
<galleryName id = "Schools">
<images>
<pic>
<image>images/1.jpg</image>
<description>Hello</description>
<thumbnail>thumb/1.jpg</thumbnail>
</pic>
<pic>
<image>images/2.jpg</image>
<description>Hi</description>
<thumbnail>thumb/2.jpg</thumbnail>
</pic>
<pic>
<image>images/3.jpg</image>
<description>Hey</description>
<thumbnail>thumb/3.jpg</thumbnail>
</pic>
</images>
</galleryName>
</gallery>
and traced galleryname
Code:
galleryName= xmlNode.childNodes[i].attributes.id;
but when i trace image using this code in flash
Code:
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
it gives me null!!
Can you have a look?
Thanks!
Xml Troubles
i've been working with xml and i have also problems with it!!! i'm a beginner with this language...
i just don't understand and don't know how to import to flash special characters such as "ç" "á" "ã"... can anyone tell how can i import to flash this characters???
thanks for helping me
jinhos
Var Troubles
hey guys, so heres the scenerio:
Initially get the y positoion of _root.whiteBox.topTitles.titles.panel and store it in an variable called
titleY.
Then when each button is rolled off it will return to the titleY position. Either the one set at the start of the movie or when one of the buttons is pressed.
When each button is pressed it will set the titleY varible to a new number defined in the on (release) action. e.g: titleY = 140;
This is what I want to do, but what seems to be happening is something...I really don't know, I'm still kinda new and this stuff.
|