Help Me STOP THIS CRAZY THING
Hey take a look at this... I need help figuring out how to make this MC stop scrolling when it reaches the edge. Below is the code I used to make it scroll...I need to make the MC stop when it reaches the edge of the image. the FLA is included. Thanks, J
onClipEvent (enterFrame) { speed = 12; if(_root.right==1){ this._x +=speed; } if(_root.left==1){ this._x -=speed; } if(_root.top==1){ this._y +=speed; } if(_root.bottom==1){ this._y -=speed; } }
FlashKit > Flash Help > Flash MX
Posted on: 02-02-2004, 10:19 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help Me STOP THIS CRAZY THING
Hey take a look at this...
I need help figuring out how to make this MC stop scrolling when it reaches the edge.
Below is the code I used to make it scroll...I need to make the MC stop when it reaches the edge of the image. the FLA is included.
Thanks,
J
onClipEvent (enterFrame) {
speed = 12;
if(_root.right==1){
this._x +=speed;
}
if(_root.left==1){
this._x -=speed;
}
if(_root.top==1){
this._y +=speed;
}
if(_root.bottom==1){
this._y -=speed;
}
}
Regpoint - Crazy Little Thing
I've just upgraded to MX 2004 and a few of the little things are kinda driving me crazy. Case in point, this reg point.
I'm not sure how it got to where it is, but there it sits and any attempt to "align to stag" inside an mc places the center on that cross hair in the upper left of the image (inside the red circle). I can change the reg point of the symbol just fine, but the stage thing is another matter.
Sorry for such a n00b wuestion, but is there a solution to this?
Any help would be appreciated.
Synth
Regpoint - Crazy Little Thing
I've just upgraded to MX 2004 and a few of the little things are kinda driving me crazy. Case in point, this reg point.
I'm not sure how it got to where it is, but there it sits and any attempt to "align to stag" inside an mc places the center on that cross hair in the upper left of the image (inside the red circle). I can change the reg point of the symbol just fine, but the stage thing is another matter.
Sorry for such a n00b wuestion, but is there a solution to this?
Any help would be appreciated.
Synth
Crazy Masking Thing
I was looking around at different flash sites and I came across this cool cs site www.invulse.com/cs, and I noticed the flash on his goggles. I dont really know much on masking, which I think thats what it would use.... Any input?
Crazy Golf Game, Ball Will Not Come To A Stop
Hi there.
Ive been pulling my hair out with this problem, and have tried everything I know, with still no luck....
Ive created a Crazy Golf style game, and so far, most of the physics are working (movement, collision, bounce angles etc.). The thing that is really proving a pain is trying to get the ball to slow down once its moving. I thought this would be a simple case of 'speed -= 0.4' or something similar, but it seems this isnt the case. The ball is slowing down at the moment, but only when it hits a wall. I really need a gradual decrease in speed though.
Im going to include my code, and the FLA file, in the hope that one of you clever lot might be able to point me in the right direction.
Code:
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
radius = 10;
friction = 0.90;
precision = 360;
start_angle = 0;
speed = 5;
_root.aiming = true;
}
//Code for the initial aim and shoot.
onClipEvent (enterFrame) {
if (_root.aiming == true) {
var diffx = _root._xmouse-this._x;
var diffy = _root._ymouse-this._y;
//Sets initial angle and rotation
bounce_angle = Math.atan2(diffy, diffx);
this._rotation = bounce_angle*(180/Math.PI);
//Sets initial speed
xspeed = Math.cos(bounce_angle)*speed;
yspeed = Math.sin(bounce_angle)*speed;
}
//If shot has been taken...
if (go == true) {
//Stop ball moving if speed is 0
if (speed<=0) {
speed = 0;
}
//Set x and y speeds
ball._x += xspeed;
ball._y += yspeed;
//Decrease speed gradually over time (Doesnt Work)
speed -= 0.02;
collisions = 0;
sum_x = 0;
sum_y = 0;
//Collision points for the ball
for (x=1; x<precision; x++) {
spot_x = _x+radius*Math.sin(x*360/precision);
spot_y = _y-radius*Math.cos(x*360/precision);
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x += spot_x;
sum_y += spot_y;
trace(collisions);
}
}
if (collisions>0) {
//Position ball to last point that was not touching a wall. (Avoids getting stuck)
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: "+bounces;
ball_dir = Math.atan(yspeed/(xspeed*-1))/(Math.PI/180);
if ((xspeed*-1)<0) {
ball_dir += 180;
}
if ((xspeed*-1)>=0 && yspeed<0) {
ball_dir += 360;
}
spot_x = sum_x/collisions;
spot_y = sum_y/collisions;
x_cat = spot_x-_x;
y_cat = spot_y-_y;
ball_coll = Math.atan(y_cat/x_cat)/(Math.PI/180);
if (x_cat<0) {
ball_coll += 180;
}
if (x_cat>=0 && y_cat<0) {
ball_coll += 360;
}
ground_rotation = ball_coll-90;
if (ground_rotation<0) {
ground_rotation += 180;
}
bounce_angle = 180-ball_dir-2*(ground_rotation);
if (bounce_angle<0) {
bounce_angle += 360;
}
xspeed = speed*Math.cos(bounce_angle*Math.PI/180)*friction;
yspeed = (speed*Math.sin(bounce_angle*Math.PI/180))*-1*friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = _y+yspeed;
_x = _x+xspeed;
}
}
on (keyPress "<Space>") {
go = true;
_root.aiming = false;
}
Please also find attached the FLA file. I really hope someone can help me with this, as its really stressing me out!
Many thanks
Help I Cant Stop The Damn Thing From Skipping
I made a web site with alot of stuff moving, and its skipping. i know this is a problem with flash but is there and easy way to fix it. i dont know much about action script but i spent alot of time on this and i cant use it.
n e help will be nice
thanks
gadgets
I Cant Stop Having Problems....lol... Now Its A Preload Thing
i wish that this board can help me.
i want to build a preloader, which has to load several swf.
each swf is set into the main movie by using a level for each, and because im not sure how to structure the whole movie, i made the size of each swf the same as the main movie (cause i dunno how to type correct scripts for these swf if i load them with a blank mc in the main movie).
so here are my questions:
1. is it correct or does it make sense, to size the external swf like the main movie?
2. when i get an idea of this preloading thing, how can i be sure, that every frame of the external swf is loaded?
Have i to tell the script that there are several mcs in the swf?
there will be many more questions i think, but i hope to get an answer, cause i have basic problems with this preloading. Thanks in advance for reading my thread.
Sven
[F8] How To Stop Two Textfields Always Show The Same Thing?
Hi,
I'm trying to create a menu by reading an xml-file and using this information to build up the menu. My problem is the following:
In my library I have a movieclip called menuLink which only contains a textfield. The textfield inside the movieclip is called txt so if I had an instance of my menuLink movieclip called link I would refer to the textfield like this:
link.txt
My problem is that if I have two instances of the movieclip menuLink and try to have the textfield in one display "home" and the textfield in the other instance display "projects" it does not work. The two textfields always show the same thing. This problem is pretty lame, I know... but I just can't find a solution around it.
I would be so grateful if somebody could help me out.
Sincerley,
Anders Kotsalainen
UnloadClip() Not Working? About To Go Crazy, Can't Manage To Make It STOP Loading
I'm designing (actually, it's kind of finished) an image gallery which uses the usual combination of thumbnails in one movieclip, and another big movieclip where the actual images are loaded into (this means all the images are loaded into the SAME movieclip).
I'm using a preloader with progress bar and everything, and it also indicates the name (number) of the image it's currently loading. It works alright, but I have a problem that will probably become important when the site is finally published:
1. I click a thumbnail, the image starts downloading and the progress bar displays its name and progress accordingly.
2. BEFORE that image has finished downloading, I select a different image to load because I no longer want to see the first one (I'm using the typical arrow buttons for next/previous image, so this WILL likely happen when people want to navigate quickly through the gallery).
3. Here's the problem: the new image will start downloading and the progress bar will update to display its name and status, but the old one WILL KEEP DOWNLOADING in the background even if I use the unloadClip() function everywhere. This will cause the desired image to download really slow, something that can be seen by the speed of the progress bar, and obviously when the old image finishes downloading in the background the progress bar for the new image becomes fast again, hehe.
Consecuently, if you click 3 or 4 thumbnails one after another (or if you just hit the "next image" button 3 or 4 times), you'll get painful download times, and as I said before, this is something that will probably happen, as people are used to tap the next/previous buttons when they want to advance quickly from one image to another, instead of moving the mouse to click on the corresponding thumbnail.
Also, note that I've used:
trace(imageLoader.unloadClip(_parent.image_mc));
and the function always returns "true" in the output window, so it's supposed to be working alright.
I have the feeling that unloadClip is only "removing" the movieclip from the screen so that you can't see it (which wouldn't be necessary as I'm loading the new image in the same place than the old one, so it's replaced anyway), but it doesn't stop the download, which is what I actually want to do.
Any info on this? Thanks in advance for any replies.
Crazy Easy If/else Script Drive Me Crazy
Hello new Kirupa friend! I am jakartaguy from jakarta indonesia with crazy simple question...
code below is okay IF people put in only number... but if they put in LETTER... result is NaN (non number)....
the code i use (from tutorial here) is:
if (ques1 > 100 || ques1 < 0 || ques1 == undefined) {
ValidationMessage = "For statement 1 please insert a number between 0 and 100%";
}
But question - how do I add if/else for Letter??? The script below NOT WORK... can someone please help??
if (ques1 > 100 || ques1 < 0 || ques = NaN || ques1 == undefined) {
ValidationMessage = "For statement 1 please insert a number between 0 and 100%";
}
thankyou(terima kasih)
jakartaguy
Crazy Client Came With Crazy Idea.
I met my client two weeks ago.
Thay want to do some multimedia like Karaokae
but that Karaokae thay want not like the other
like hmm... I want to type some words and then it will speak(TTS)
AND SPEAK OUT LIKE SINGING..
If my job is english or other language I will think about it...
but my language is harding to do this.
Question is can we do this?
base on Text to speech?
Making A Thing Any Of Which Will Interact With Any Of Another Type Of Thing
Well i know that title was a bit vague but heres what im trying to do, ive been larning to use flash for the past couple weeks, I'm using flash MX, i am expeirienced in other programming languages. What id like to do is to make an object, in this case a turet, which has code in it and can be duplicated, i know how to do that part, but, i want to be able to make it and copy it, and also have an enemy i can copy, a zobie, and have any of the turrets shoot at any of the zombies that get close. They cant all be pre scripted with eachothers names because i want to be able to create either after the program starts.
Basically, the zombies come out all over during the program and the player clicks where he wants to put turrets and those turrets shoot at whichever zombie is closest to them. Im sure its not that hard, and probably would involve arrays, but since im still learning how flash works im not sure how it can be done. Any help is apriciated, thanks. While i wait for a reply I'm going to read some more on how arays work in flash since i think they may be the answer.
Thing Thing Arena Type Game.
I want to make a shooting game, but I had a question first. How can I make the hand follow the cursor constantly, but never leave a restricted area? I would like to know how, thanks.
Stop Actionscript Function At A Specific Frame (stop Looping)
I want to stop an effect at a specific frame but I dunno how.
Do I have to put something in the code?
I'm confused.
Or just tell me how to stop it from looping.
Edit:
Is it possible to attach this to a movie clip? Then i can stop it or use onEnterFrame and then escape();
I actually have no idea what I am talking about. /Edit
Here is one of the code I borrowed:
MovieClip.prototype.placeInSpace = function(id) {
var ratio = this.focaldistance / Math.sqrt(this[id].z * this[id].z);
this[id]._x = this[id].x * ratio;
this[id]._y = this[id].y * ratio;
this[id]._xscale = this[id]._yscale = 1000 / this[id].z;
}
MovieClip.prototype.randomPlace = function(id) {
var radius = this.rmin + (this.rmax - this.rmin) * Math.random();
var polar = 2 * Math.PI * Math.random();
this[id].x = radius * Math.cos(polar);
this[id].y = radius * Math.sin(polar);
this[id].z = this.zmin + (this.zmax - this.zmin) * Math.random();
}
Here's the other code cause I can use two in my movie:
function mover() {
// Move the particle over time
this._y += this.speed;
this._yscale += 10;
this.speed++;
if (this._y>500) {
this._y = 0;
this.speed = Math.random()*10;
this._yscale = 100;
}
}
function starField(x, y, n) {
// Generate a starfield of specified dimensions with n stars
for (var i = 0; i<n; i++) {
var star = this.createEmptyMovieClip("star"+i, i);
var dot = star.createEmptyMovieClip("dot", 0);
star._rotation = Math.random()*360;
star._x = x;
star._y = y;
dot.lineStyle(0, 0xFFFFFF, 100);
dot.moveTo(0, 10);
dot.lineTo(0, 15);
dot.onEnterFrame = mover;
dot.speed = Math.random()*10;
}
}
starField(275, 200, 100);
[F8] Movie Plays > Stop > Reverse > Stop > Play
I am fairly new to involved action scripting. I have successfully scoured flashkit threads for years to get my answers but this one has been driving me crazy for the past couple days. I have tried numerous solutions but none of them do exactly what I am trying to do.
I am creating an online portfolio that I want to control with two buttons that will play forward on release and stop at every piece unless the user is pressing and holding down - I also would like the scrolling animation to play in reverse on press and stop at every piece unless press and hold which happens to be skateboards in this section. I am posting the .fla for this section. This is what I have been able to accomplish so far. I moved everything into the main timeline from a movie clip because I could not get that to work at all. Should I move it back to movie clip? I also want it to stop at the first board.
here is the code I was able to peice together that just plays continously without stops.
Empty movie clip on second frame.
PHP Code:
onClipEvent (enterFrame)
{
if (_root.goBack)
{
_root.prevFrame();
}
else
{
_root.nextFrame();
}
_root.frameNo = "Frame : " + _root._currentFrame;
}
Forward button.
PHP Code:
on (press)
{
_root.goBack = false;
}
Reverse Button.
PHP Code:
on (press)
{
_root.goBack = true;
}
I have only done basic stops; goToAndPLay, getURL and such I am a little out of my league here but I started the ball rolling and would like to make this work as I intended. Any help making this do anything close to what I am describing would be much appreciated
How To Make The Wings Of A Fly Stop When The Flash Movie Stop?
Hello,
I made a simple "Fly Flying" flash animation. The wings of the fly are moving up and down while the fly is flying from one location to the other. My problem is:
The wings of the fly are still moving up and down when the fly is landed on the ground. I tried to add a stop(); action script at the last frame. However the wings are still moving even the movie is stopped.
How can I make the wings stop moving when the flash movie is stop? Please download and take a look at my flash file (fly_flying.fla):
http://space.uwants.com/batch.download.php?aid=313219
Thanks and best regards
Alex
I'm Going Crazy
I'm going crazy. I am trying to bring in a quicktime movie that i made in Afftereffects into flash. Everything works beautifully on the stage. However, when i publish, export, or even simply try to preview the movie, the quicktime bit doesn't show. Do i need to embed the clip? if so, how? Can i have a quicktime in flash and still have it be interactive. The frame rate of the quicktime is 12 fps; the same as my FLA. movie. What's going on? how do i solve this?
Url Is Getting Me Crazy Help
Hi,
I want to read into a variable the URL of the html page.
The following code...
myURL = this._url
gives the URL of the flash movie, NOT the URL of the Html page where the flash was loaded.
If you can, help plz.
The result I wana get is:
myURL = "http://www.mysite.com/home.asp?lang=en"
Please Help Me I'm Getting Crazy
Hello,
Maybe someone can help me with my problem, i'm trying whole week now, but i don't get it right.
I made a homepage with frames in html, now I want to load my swf movie in one of the frames.
This is no probem it works perfectly!!
I created only one big scene, the scene is big because it contains JPG pictures.
I thought flash was streaming, but the movie only starts when the whole swf file is loaded?????????
I tried a preloader but that doesn't work beause then he loads the preloader and the whole file and then he starts playing. (he doesn't show the preloader)
I'm pretty sure that te actions of my preloader are right, and without my preloader my movie isn't streaming either.
Maybe you can take a look at my homepage, first you get the intro with a preloader (thats fine), but when you get at the html menu and you press the link "diashow", he first loads the whole movie and then starts to play??
Ans on this moment I don't use a preloader!!!!
I am getting crazy, why doesn,t my movie stream??????
My homepage adress is:
http://members.brabant.chello.nl/~m.martens/
Sorry for my bad Englisch thats because I'm from the Netherlands but , Please Help!!!!!!!!!!!!!
Thanks
Martin
[Edited by Martin974 on 01-24-2002 at 10:31 PM]
Am I Crazy?
I can't import a preloader from one file into another. When I do, it clumps everything in one layer. Is there a way to import a scene easily? Thanks!
HELP....GETTING CRAZY WITH MC´S
this is my problem and I hope U might help me:
I have a scene. inside that scene I have a mc. then in frame 11 of that mc, I put a stop action, so it could play anoother mc I have in that keyframe.
Is it possible that when it finishes playing the second mc it goes back to the first one on frame 12?
basically it is a movie clip inside another movie clip
and what I need is to know how to call the first movie on a specific frame when it finishes playing the second
I really hope U can help....my neck depends on it!
thanks
I've Gone Crazy
Or I've gone crazy ... or I always been.
Got this movie clip, with inside 3 graphics.
Everytime I try to import inside this movie clip another object or another movie clip or whatsoever, the width of the object just decrease...
Please help.
Maybe the coffee is too strong.
Going Crazy
i have been trying to figure out what i am doing wrong for about 4 hrs straight.
Here is my problem:
I have 2 movies (swf)
primary.swf
secondary.swf
In the 2nd swf i have actionscripts with _root
When i load loadmovie to the 1st swf with different scripts, i either have the 2nd swf in the top left corner, or its within a MC BUT the actionscripts do not work.
I cant get it to load in a MC AND have the actionscripts work at the same time.
Here are some of the scripts i have tried to use:
loadMovie("secondary.swf", "_root.MC"); = AS doesnt work, but loads in a MC
loadMovieNum("secondary.swf", _root.MC); = AS works, but 2ns.swf pops up in a new window
loadMovieNum("secondary.swf", 1); = AS works, but loads on the top left corner
please, if anyone has any ideas on how to fix this please reply.
Thanks in advance.
Please Help Going Crazy
I have a main movie. On the bottom of it is this:
Previous 1 2 3 4 5 Next
I've got it so that when you click "next", it goes to the next consecutive page, & the # (which is a MC) gets larger...and when you click "previous", it goes to the previous page & the current # goes back to normal & the # that it is on gets larger, etc...Now I want to also be able to click on the #s themselves & make them go to that specific page. I can do that...the problem is if I click on say 2, then click "next" it doesn't go to 3. Here is the code I have for the "Next" button...(the "previous" button's code is basically the same)...
on(release){
// next one to be loaded
_root.nextLoaded += 1;
// the one that is selected now
_root.lastLoaded = _root.nextLoaded - 1;
// load movie at into level 1
// they should be named consectively like
// mySWF1.swf, mySWF2.swf, mySWF3.swf, etc
_level2.loadMovie("slide" + _root.nextLoaded + ".swf", pageholder);
_level3.loadMovie("text" + _root.nextLoaded + ".swf", pageholder);
// scale the next number movie clip
_root["n" + _root.nextLoaded]._xscale += 50;
_root["n" + _root.nextLoaded]._yscale += 50;
_root["n" + _root.nextLoaded]._y = 387;
// "unscale" the one that was previously selected
_root["n" + _root.lastLoaded]._xscale = 100;
_root["n" + _root.lastLoaded]._yscale = 100;
_root["n" + _root.lastLoaded]._y = 393;
if (_root.nextLoaded != 1){
attachMovie("previous","previous",5);
}
}
How do I get them both to work? I guess what I need to do is put in some script that will tell the movie to know what SWF is currently loaded...but not sure how to do that...
Please Help Going Crazy
I have a movie that has a series of colored boxes that appear on the stage...one appears, stays for a certain amount of seconds, then is replaced by another one that stays for a certain amount of seconds, and so on...I have a pause, start & rewind button that is SUPPOSED to pause & start/resume & rewind the rotation of the boxes...when I press pause, it does pause, but when I press play again, it jumps to the next keyframe, thus ignoring that AS that is telling it to pause...the pausing of each box is done with AS...
I guess what I need is this...I need the movie to know how much time has passed since the image came on the screen, so if the viewer presses the pause button and then presses the play button to resume the movie, it will know how much time has passed, & will then continue to pause until the FULL pause time has elapsed, and THEN, go to the next keyframe...
I can't post the FLA b/c it is too big...(Weird b/c it's only 1K) I can email it to you if you want...PLEASE HELP!!!!
Thanks!
Am I Crazy?
does my text scale along with the size of the text box?
is there any way to avoid this?
i would just like to make my text box dimensions a little more exact, with whole numbers fitting more precisely into the space i've allotted for text.
i can't draw the perfect text box freehand, but when i try to change the text box size, my text starts looking fuzzy and icky
please help!!
Going Crazy - Help
Does anyone know why this actionscript won't work on a button
on (release) {
getURL("java script:NewWindow=window.open('muscle. swf','myWindow','width=800,height=600,left=100,top
=100,toolbar=No,location=No,scrollbars=No,status=N
o,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
I keep getting this Error message:
This program does not support the protocol for accessing
'java%20script:window.open(muscle.swf',win1','wi
dth=800,height=600,top=100,screeny=100,left=100,sc
I've also tried this script to open the file in a new window and I get the same message :
on (release) {
getURL("java script:window.open('muscle. swf','win1','width=800,height=600,top=100,screeny=
100,left=100,screenx=100,toolbar=no,scrollbars=no,
resizable=no,menubar=no,status=no,directories=no,l
ocation=no'); void(0);");
}
Need Crazy Help
I'm needing help with a few things. I need help with creating a form for my site for viewers to input things like Name, Address, Tele., Email etc. I made the names (Name, address, tele etc) on one layer as static text. I then made another layer for the input text and as i tested the site the input text squares don't line up with the other layer. Also I need help with making my pictures drag left to right. Help please!!!
Crazy Help
For whatever reason flash and shockwave have quit working on my computer - I suspect because of one of the games I loaded at one time.
My os is winxp - most updated version of ie.
I have uninstalled - reinstalled - followed all of the steps on the macromedia help site - and nothing. When I go to a site with flash, i get a small white box. I'm ready to slam my head into a brick wall. Nothing is working and this is insane.
Any ideas or help! Please!!
Am I Crazy Or?
Am i crazy or does the string class not have a replace function?
Crazy Bar...
Could anyone help me, few months ago i have create animation with moving bar but at the end i had deleted that file and today i can't remeber how the hell i get effect of moving bar...
check file, the white bar should move from left to right
Going Crazy.
Hello Everyone.
I am trying to write my first real actionscript program to take some user information and send it to a server. The second part will be to write a script to format the data so it will import into another program.
I have attached the following code. However it does not seem to be sending the data to the data folder.
Can anyone point out a suggestion on why its not working??
Thank you for any suggestions.
dataURL = "http://www.flashtfs.com/data/";
function showResult(success) {
if (success) {
trace("record added");
}
}
function processForm(btn) {
if (btn._name == "clear") {
borrowerLast = "";
borrowerFirst = "";
borrowerMiddle = "";
borrowerSSN = "";
} else if (btn._name == "submit") {
formData = new LoadVars();
formData.blname = borrowerLast;
formData.bfname = borrowerFirst;
formData.bmname = borrowerMiddle;
formData.bssn = borrowerSSN;
formData.action = "add";
formData.sendAndLoad(dataURL+"guestbook.php", formData);
formData.onLoad = showResult;
}
}
[color=blue]
Help Going Crazy..
Hi, Y when I try both methods to get data from a file MyTempVirus.txt, I cant get the same ans 26 ??
=================================================
x=1;
y=1;
TempVirusData2=V11; ====> 26
TempVirusData="V"+x+y; ====> V11
(My MyTempVirus.txt contain: V11=26)
=================================================
Hope someone helps me this..
Really thanks alot.
Help Me I'm Going Crazy
ok this is probably a really stupid question but here goes any ways coz this problem is driving me crazy
I have downloaded and modified a tsunami menu system that works fine untill i try to attach a go and stop on next frame in the same scene action on the buttons that i have.
The buttons transitions (colour changes) when the mouse is over or is pressed are working fine and looks great but the actions are not happening!! I thought I knew what i was doing, obviousley i don't!! (I hope i don't forget how to walk or breathe by the morning). If anyone has any insite as to what level of the movie the actions will work I would be eternaly gratefull. I apologise in advance for the probable stupidity of this question.
Please help!!
Going Crazy
Im having a really hard time trying to get my sound to work the way i want it to, so i made a simpler setup but need help on getting it to work, heres what i have
music layer with nothing in it
layer for my green button which will be the on button for sound
layer for my red button which will be the off button
what i want to do is have the song play when the website comes up and they can hit the red button to turn it off and the green button to turn it back on if they choose, ive tried several methods but cant get my action scripts right my song is SimpleMan.swf or SimpleMan.mp3 can someone please help me with this, and please tell me if i need to add the song name to the action script or if i need to use the Music layer in my script, Thanks.
heres what i have so far after 8 days or so of flashing.
http://home.comcast.net/~stevetalley/NRAWEB3.swf
I'm Getting Crazy
you can call me every single name you can remember but tell me, please, how can I format text in labels and textinputs? i've already tryed textColor, color, bold, settextformat, ... but it doesn't works!
Thanks again!!
Is It Possible Or Am I Crazy?
Is it possible for the arrows on a side scroll bar to be a movie clip of sorts? Like when being pressed down they move, etc. until mouse is off?
Or am I nuts?
FLV Crazy?
I am trying to create a FLV player that will play multiple files, but...
Code:
import mx.video.*;
player.contentPath = "add1.flv";
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
if (player.contentPath == "add1.flv") {
player.play("movie1.flv");
} else if (player.contentPath == "movie.flv") {
player.play("add.flv");
}
};
player.addEventListener("complete", listenerObject);
When I try with this code, it plays the first FLV (add1) perfect, but when it is about to load the second FLV (movie1) it plays for about 1 sec. and then jumps to add1 again, and it won't play that either, and then it all f.... up... Can somebody tell me whats going wrong!?!
At ease
Dasphatman
Help Before I Go Crazy
im making a game and i made a score but i cant get it so when the score is 100 they go to the naxt frames how do i do that????
Help Me Before I Go Crazy
[HTML]loadBtn.onRelease = function() {
hotSpot.attachMovie("loadedContent", "", 1);
};
loadBtn2.onRelease = function() {
hotSpot.attachMovie("loadedContentb", "", 1);
};
[/HTML]
above is the code i am using....
I just want to be able to attach a movie named other than "loadedContent"
for some reason if I try to attach any other movie named other than "loadeContent" the script does not work
What am I missing?????
here is a source file
any help is appreciated, I am sure its something stupid
Thanks In Advance!
Please Help Me Before I Go Crazy
OK, I've been searching the internet for days now and I getting very frustrated. I'm rather new with flash so please bear with me. I made a contact form in flash and what I wasnt to do is validate that the fields are filled in. I found a number of ways to do it, but none work. I found one for my email field and that works perfect its
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
getURL ("javascript:NewWindow('invalidemail.html','redeem Win','408','150','yes')");
Now, For my other boxws the submit button starts with this
on (release) {
if (fullname.text == null || fullname.text == "") {
getURL ("javascript:NewWindow('invalidname.html','redeemW in','408','150','yes')");
Then Have and else if then the email validation. The meathod above opens the invalid name file every time, evin if you enter something. I've also tried. if (!fullname.length == 0), that didn't work. I found numerous tutorials that used if (!fullname eq "") , that didn't work either. I've tried a ton of different versions of all of these. but none work! I dodn't know what to do. Please help me. I will provide the .fla file if anybody needs to take a peek at it.
Thanks so much
John
Link to FLA
Im Going Crazy
hi! im an artist and im trying to build my site in flash.
Ive done this animation (its a movie clip and after it playes ive put 5 buttons in the movie clip itself) and put it on scene 2. When u press button 1 i want another animation to play and after its done i want it to go to another scene (Scene 3). So i found out that u cant make a buttom jump scenes if its in a movieclip! i just dont know what to do-
((visual explanation= 5 Nesting dolls opening up one by one and they are buttons links to (art,about,news,links,contact). When a button is pressed the dolls get "folded" into eachother (like nesting dolls do) and u reach the "art"page.
Ive drawn these nesting dolls and made graphs and buttons out of them. Then created 2 movieclips. First one where they open up and second one where they close. ))
I dont know how to proceed from here..need desprt help..
thank you soooo much....
Im Going Crazy
hi!
((((im new at flash-))))
im an artist and im trying to build my site in flash.
Ive done this animation (its a movie clip and after it playes ive put 5 buttons in the movie clip itself) and put it on scene 2. When u press button 1 i want another animation to play and after its done i want it to go to another scene (Scene 3). So i found out that u cant make a buttom jump scenes if its in a movieclip! i just dont know what to do-
((visual explanation= 5 Nesting dolls opening up one by one and they are buttons links to (art,about,news,links,contact). When a button is pressed the dolls get "folded" into eachother (like nesting dolls do) and u reach the "art"page.
Ive drawn these nesting dolls and made graphs and buttons out of them. Then created 2 movieclips. First one where they open up and second one where they close. ))
I dont know how to proceed from here..need desprt help..
thank you soooo much....
Im Going Crazy
hi!
((((im new at flash-))))
im an artist and im trying to build my site in flash.
Ive done this animation (its a movie clip and after it playes ive put 5 buttons in the movie clip itself) and put it on scene 2. When u press button 1 i want another animation to play and after its done i want it to go to another scene (Scene 3). So i found out that u cant make a buttom jump scenes if its in a movieclip! i just dont know what to do-
((visual explanation= 5 Nesting dolls opening up one by one and they are buttons links to (art,about,news,links,contact). When a button is pressed the dolls get "folded" into eachother (like nesting dolls do) and u reach the "art"page.
Ive drawn these nesting dolls and made graphs and buttons out of them. Then created 2 movieclips. First one where they open up and second one where they close. ))
I dont know how to proceed from here..need desprt help..
thank you soooo much....
Help:crazy:
hey people, im trying to unload a target thats not on my main timeline. i know
_root refers to the main time line but how would i point it to sidebar.swf..
here's my function.. can anybody please help me. i finish collage tomorrow and this project must be in...
this.onRelease = function() {
loadMovie("mywork.swf",_root.target1_mc);
unloadMovie(taget6_mc)
target6 is on a swf called sidebar
thanx dudes..
[F5] I Am GOING CRAZY Help, Please
I have done a lot of Flash work in the past, but this is a new issue for me...
I created a website for a friend, and the into should have a BLACK background and NOT loop.
It worked fine at first, and now the background for the flash is WHITE and it won't stop looping.
Please take a look and let me know if you can spot the problem in the code or if I should just try exporting the movie from Flash again...
http://www.neverbroken.com/mfmusic
Thanks so much!!
Going Crazy, Please Help :(
Hi,
i am really going crazy figuring this out. It's such a simple program and yet there is something not working the way it should, and i don't find it... i've been looking at it for hours, trying different approaches but i never works the way it should...
So here's the code :
ActionScript Code:
stop();
trace ("begin");
var size:Number = 30;
zoomy_mc._xscale = size;
zoomy_mc._yscale = size;
var smallerBool:Boolean = false;
var biggerBool:Boolean = false;
var bigInterval;
var smallInterval;
zoomy_mc.onRollOver = function()
{
trace ("rollOver");
if (smallerBool)
{
smallerBool = false;
clearInterval (smallInterval);
}
if (size < 100)
{
biggerBool = true;
bigInterval = setInterval (bigger, 10);
}
}
zoomy_mc.onRollOut = function()
{
trace ("rollOut");
if (biggerBool)
{
biggerBool = false;
clearInterval (bigInterval);
}
if (size > 30)
{
smallerBool = true;
smallInterval = setInterval (smaller, 10);
}
}
function bigger()
{
trace ("function bigger, size = " + size);
if (size<100)
{
size++;
zoomy_mc._xscale = size;
zoomy_mc._yscale = size;
}
else if (size == 100)
{
clearInterval (bigInterval);
gotoAndPlay ("ft");
}
}
function smaller()
{
trace ("function smaller, size = " + size);
if (size>30)
{
size--;
zoomy_mc._xscale = size;
zoomy_mc._yscale = size;
}
else if (size == 30)
{
clearInterval (smallInterval);
gotoAndStop ("wait");
}
}
so i have a movie clip that contains another movie clip (zoomy_mc) which is just a picture that i want to zoom in and out. The idea is that when you move your mouse over it, it starts growing and when you roll out agian, it shrinks back to its original value. The program works fine as long as i simply move my mouse over the clip, and hold it there until it's at its maximum size.
Then, the jump to "ft" is made like it should be.
BUT, when i move my mouse over and out a few times, it still shrinks and grows like it should do, but when i reacht the maximum size of 100, the jump to "ft" is not made. This is the code on ft :
ActionScript Code:
trace ("FT");
zoomy_mc._xscale = 100;
zoomy_mc._yscale = 100;
stop();
i can see that the jump isn't made because normally ft should trace "ft" , which doesn't happen in the latter case.
Another question that i was wondering : if you "gotoAndPlay" to a certain frame, and that frame contains a "stop();" then appearently this stop is ignored??? I know that i could use gotoAndStop instead, but i was still wondering howcome it ignores the 'stop()' if you enter a frame with gotoAndPlay. Seems strange!
Anybody help please!!
thx!
edit : oh yeah i should add that this code is on a frame labelled "wait". Doesn't really soud logical but it's just an inheritance from an other approach that i tried, but i left it like that because it doesn't really matter to the problem
OMG Going Crazy...
I have tried and tried the couple of posts I found about setting a particular URL as the new "homepage", but can't make any of them work and they are all really old posts. I have asked this before and no one responded. Waited and waited. Saw that other people have asked this question and got no response either. I managed to get the bookmark property ok, but not the "set as home page" property. Please, god, someone help me figure this out!
|