Action Script Is Easy.. I'm Just Dumb..
What's wrong with this? I cant figure it out! Thanxz guys!
onClipEvent(load) { up._visible = left._visible = right._visible = 0; } onClipEvent(keyDown) { if (Key.isDown(Key.UP)) { up._visible = 1; down._visible = right._visible = left._visible = 0; selected = up } else if (Key.isDown(Key.RIGHT)) { right._visible = 1; down._visible = up._visible = left._visible = 0; selected = right } else if (Key.isDown(Key.DOWN)) { DOWN._visible = 1; Right._visible = up._visible = left._visible = 0; selected = Down } else if (Key.isDown(Key.LEFT)) { LEFT._visible = 1; DOWN._visible = up._visible = left._visible = 0; selected = LEFT }
This is the error:
Scene=Scene 1, Layer=Game, Frame=1: Line 4: Statement block must be terminated by '}' onClipEvent(keyDown) {
Scene=Scene 1, Layer=Game, Frame=1: Line 25: Syntax error. }
Thanxz again guys! -Paradoxz
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-04-2001, 06:28 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
This Is An Easy And Dumb Question
Okay, so I took over a project from someone, I know Flash enough to find an open source code and make it work, but I can't look at the code an determine whether it's AS2.0 or 3.0. Is there somewhere in adobe flash cs3 where I can see what I'm currently using for this file?
It's hard to find the right code when you don't know what language to use. Thanks! I'm such a noob.
MouseOver >> Really Dumb EASY Question
Ok, so i've had MX for some time, but i'm just doing my first major work on it...
and is it just me or is there no mouseOver command anymore?
what is the on mouseOver code now?
sorry for wasting your time...
WP
[F8] Dumb Question Please Dont Give Dumb Answer
Rightio folks,
want to create a thumbnail gallery. the thumnails are buttons, and when you press 'em they load a luvly bigger picture.
i dont want to do things the long way round by making lots of new frames with the 'gotoandStop' command for the bigger pictures but want to make use of the loader component.
Is doing such a task possible? ie pressing the button and it loading a big version in loader
i cant seem to find any tutorials on the web been searching all day!
Easy Action-script
what's worng here??? actions for a button in a movie clip that is inside the movieclip with the instance "about". when the button is pressed the mc "about" about will go to frame 194, if it is on frame 171.
on (release) {
if (_root.about._currentframe = 171) {
_root.about.gotoAndPlay(194);
}
}
thanks!
Easy Action-script
is there something wrong with this script????
_root.gotoAndPlay(_currentframe+1);
thanks
I Need An Easy E-bok 4 Action Script
hi
i need e-book 2 learn flash action script
atually i searched the net for ones
but they r not good & silly ones
i need e-book that expalins action script in easy & attractive way
thanks
Easy Action Script
Well, i dont really know how to do it but hopefully u could me out.
Basically, i can do most of it but not the last bit
I want a movie clips to appear (random size) and stay there, but...
I also need them to be created from the top (random distance from a straight line from) and then the line to move down and the clips to created from the line
If you get it, thanks
Please Help Action Script Easy Q
hey guys, i made this flash movie that loops a banner over and over goin left to right, what i want to do is that when someone puts their mouse over the flash, it slows down the speed. how do i do that? if u need to see the file im me on xPillzboyx. i need help asap cuz im doing this for a site thx alot
I'm Sure This Is Easy. Kill An Action
Hello all.
I want to kill an action that I'm using to create a popup. I've had a few weird problems with the popup interfering with some tiled images on the main page (I really don't want to explain it though lol) so I put the spawnwindow action for the popup in a frame at the end of a looping flash movie. As you guessed the popup keeps coming back when it hits that frame. How can I kill this action?
Your help is much appreciated.
*five fingering waving*
I'm Sure This Is Easy. Kill An Action
Hello all.
I want to kill an action that I'm using to create a popup. I've had a few weird problems with the popup interfering with some tiled images on the main page (I really don't want to explain it though lol) so I put the spawnwindow action for the popup in a frame at the end of a looping flash movie. As you guessed the popup keeps coming back when it hits that frame. How can I kill this action?
Your help is much appreciated.
*five fingering waving*
Easy Button Action
hello all, if i have a main mc with a button in the main mc, if i load a movie with a stop in frame 1 what is the action on the button to tell the loaded movie clip to play frame 2, total newbie
Easy Action Script Help
Hello i just purchased (http://flashden.net/item/xml-sliding-menu-2/17151) I really need help with the AS3 Code. I need this dynamic menu to load SWF files. I would be really appreciative if someone could point me in the right direction. I uploaded a zip of the file structure with the docs.
Thanks,
Easy Action Script For Moving.
I dont know what im doing wrong. I have made five circle I copied one MC and pasted four times. So I have five circles and I want them to move at
along x axis. I want to use action script heres the script. None of them are moving. I have given them instances name from circle1-circle5. I have included the FLA file. Can some tell me what I did wrong and explain.
for (i=1; i<=5; i++)
{
_root["circle"+i]._x++;
}
If You Know Action Script Then You Could Answer My Easy Question
I have made a mp3 player that loads external mp3's. I need to make it buffer for dailup connection though. I am not fluent in action script yet so maybe you can help.
Action Script needed=
getting if percentLoaded (variable)= 25% of the song loaded to goto and Play frame (43)
Here is the script that it is in:::
function loadFile() {
if (sound_1 instanceof Sound) {
}
_root.createEmptyMovieClip("holder", 1);
sound_1 = new Sound(holder);
vol = 100;
sound_1.setVolume(vol);
sound_1.onLoad = function(success) {
if (success) {
sound_1.stop();
} else {
clearInterval(checkProgress);
}
};
sound_1.onSoundComplete = function() {
loadStatus.text = "";
loadFile();
playing = true;
paused = false;
stopped = false;
dummy = 0;
sound_1Position = 0;
};
var loadUrl = checkField();
fileURL.text = loadUrl;
sound_1.loadSound(loadUrl, false);
progressBar._xscale = 0;
loadStatus.text = "loading streaming audio.";
checkProgress = setInterval(checkLoad, 50);
}
function checkLoad() {
var obj = sound_1;
var tBytes = obj.getBytesTotal();
var lBytes = obj.getBytesLoaded();
var percentLoaded = (lBytes/tBytes)*100;
progressBar._xscale = percentLoaded;
if (lBytes>=tBytes) {
clearInterval(checkProgress);
}
}
function removeSound() {
sound_1.stop();
delete sound_1;
holder.removeMovieClip();
loadStatus.text = "";
fileURL.text = "";
Selection.setFocus(fileURL);
}
function checkField() {
if (fileURL.text != "") {
return fileURL.text;
if (this.precentLoaded=25) {
gotoAndPlay(43);
}
} else {
if (songList.length == 0) {
initSongList();
}
return songList.shift();
}
}
thank you for your time
Patrick
Movie Action Script Prob Really Easy
rite where to start,
ive built a movie within my movie which has four button moving constantly in a circle,
i double click on the movie so i can get to the buttons and add action,
i give each of the buttons goto action in which they should go to differnt scenes but they dont it must be somthing to do with them being in a movie within a movie, as when u click on them they just make the movie jump and dont go any where
i was wondering if any one here would have any ideas
please help
Easy To Read Action Script Books
Are there any suggestions for Action Script books that might be a little easier to read? Something that would flip the light on a little faster then those big Action Script bible books that do nothing for me?
Hopefully An Easy Resolution, Simple Action Script Help :)
hi peoples!!
First post on here! i hope to learn alot from this forum.
I have a problem with a small slide show i am putting together.
You can find it here
basically, i want the negatives to loop and be seemless, sliding straight back to the start of the slideshow when the user presses the next button on the last frame. As you can see now there is a gap between the first and last slide.
Here is the code for it:
Code:
/*The following four sections contain the data
/*for each menu item.
/* 0 */
var image0title:String = "Stone Hendge";
var image0desc:String = "Photograph by Trevor Kearton";
var image0uri:String = "images/image0.gif";
/* 1 */
var image1title:String = "Lyndhurst, New Forest";
var image1desc:String = "Harry Perry, www.perryscope.ie Cam: Canon S3IS Mast: NL22";
var image1uri:String = "images/image1.gif";
/* 2 */
var image2title:String = "Lyndhurst, New Forest";
var image2desc:String = "Harry Perry, www.perryscope.ie Cam: Canon S3IS Mast: NL22";
var image2uri:String = "images/image2.gif";
/* 3 */
var image3title:String = "Golf Club";
var image3desc:String = "Photograph by Ron Bridle";
var image3uri:String = "images/image3.gif";
/* 4 */
var image4title:String = "Windmill";
var image4desc:String = "Photograph by Trevor Kearton";
var image4uri:String = "images/image4.gif";
/* 5 */
var image5title:String = "Test Shot, SMC Premises";
var image5desc:String = "Costa Skycam - Mast: NX25 Cam: Canon G6";
var image5uri:String = "images/image5.gif";
/* 6 */
var image6title:String = "Test Shot, SMC Premises";
var image6desc:String = "Costa Skycam - Mast: NX25 Cam: Canon G6";
var image6uri:String = "images/image6.gif";
var currImage:Number = 0;
var totalImages:Number = 7;
menu_mc.title_txt.text = this["image"+currImage+"title"];
menu_mc.description_txt.text = this["image"+currImage+"desc"];
for (var i:Number = 0; i<totalImages; i++) {
slideShow_mc.slides_mc["holder"+i].loadMovie(this["image"+(i)+"uri"],slideShow_mc.slides_mc.getNextHighestDepth());
}
slideShow_mc.slides_mc["holder7"].loadMovie(this["image0uri"],slideShow_mc.slides_mc.getNextHighestDepth());
// function for the Next button
function nextMenuItem(eventObj:Object) {
slideShow_mc.gotoAndPlay("slide"+(currImage));
if ((currImage+1)>=totalImages) {
currImage = 0;
} else {
currImage++;
}
menu_mc.title_txt.text = this._parent["image"+currImage+"title"];
menu_mc.description_txt.text = this._parent["image"+currImage+"desc"];
}
// add the event listener for the button
next_btn.addEventListener("click", nextMenuItem);
can anyone help me out please? it would be very much appreciated!!
I have made this following the guide in the Flash 8 tutorials.
Many thanks
mark
How Is Action Script? Is It Easy And Good To Learn? Would It Help Me With Animation?
I know Flash very well but not actionscript. I haven't even looked at it yet. But i heard that you can create some cool FX with it so i thought of given it a try. I do have some HTML experince but nothing complicated. I am not a programer. I don't know any programing languages like Java.
Do you think i can do actionscript if i can understand HTML? Is it easier or harder than HTML? And most importantly, where do i start?
[F8] Movie Clip Link With Action Script. It's Easy, Plz Help
In the following menu:
http://www.loutrakiguide.gr/flash_menu.swf
there is this code:
on(rollOver) {
this.gotoAndPlay("s1");
}
on(rollOut, releaseOutside) {
this.gotoAndPlay(_totalframes - _currentframe);
}
onClipEvent(load) {
num=3;
}
on(release) {
if(_root.link<>num and _root.animation==1) {
_root.animation=0;
_root.link_prev=_root.link;
//_parent["item" + _root.link].gotoAndPlay("s2");
_root.link=num;
_root.play();
}
}
I want when I click to a sub menu to load an external link like index2.html.
What changes I have to make? ?
Easy One: Movieclip Won't Listen On Frameload (but Does On Button Action?) Helpy...
I have an MC that I want to tell to go and play a framename. I have it working with buttons, when I press a button (that's in the root) with the code below, it makes a movieclip called "refreshing_mc" jump to and play the frame I want.
on the button
on (release) {
refreshing_mc.gotoAndPlay("FRAMENAME");
}
Now I want the exact same thing but not triggered by a button but when the movie enters a frame. So i figured putting the code below in that frame (which is also in the root) would do the trick. Wrong. This is the code:
refreshing_mc.gotoAndPlay("FRAMENAME");
Now I've triple checked if the move enters that frame by dumping stuff in it, sealing it off whith a blank keyframe and checking if it is being displayed, and it is.
What am I doing wrong?
A Dumb Question From A Dumb Kid
Probably the dumbest question on here:
Can you have two different colored backgrounds in the same movie (without drawing a generic rectangle behind everything)? I would like a brown background for scene 1, but white for scene 2.
Thanks in advance,
J-Money
Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.
using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.
here's the fla if i haven't been clear.
thanks for any/all help,
josh
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
Action Script Question: where is the OnRelease action in the action folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
SUPER EASY / RETARDED EASY SetMask ?
Ok got a simple retarded question. I have 1 swf loading into a holder_mc and a mask_mc set with setMask but it is not working. There is nothing else to this but so help me it is not working and I know I have to be overlooking something simple but I am just not seeing it.
Heres the whopping 3 lines of code:
code: stop();
contentHolder_mc.loadMovie("home.swf");
contentHolder_mc.setMask(contentMask_mc);
Example attached.
thx
c
Am I Being Dumb
I know this is probably a stupid question, but the more layers u have in falsh, does that contribute to the size of the file, should I be basing everything in one layer to svae on file size?
Thanx in advance.
This Is A Dumb Q, But I'm Really New At This
OK. What's the script I type in so that when my movie's done playing in my website's intro, it automatically sends the user to the homepage without them having to click on anything? If anyone can tell me how to do that I'll be greatful. Thanks.
Monica
I Must Be Dumb...
I want a row of buttons, all the buttons will look the same, but have different actions. I'm trying to put a dynamic text box in a layer in the button, so I can change the label for each button.
The test button has an instance name of button 1. The dynamic text box has a variable name of text.
But it's not working. If I change the behavior of the symbol to movie clip it works. If I make it a button, it doesn't.
I thought you could do this in Flash MX. Am I missing something?
I Am Dumb.
I can't get my flash to work with any free hosting service providers anywhere. It's so bizzar. Even if I publish it as html I still can't get it to be hosted on any free hosting services. Anybody esle find better luck at attaining this. Are there any places offering free hosting services that are incredibly good with flash?
Is This A BUG? Or Am I Just Dumb?
Hi i have made a site, which has small images, when you click on them it gives you a full size image in a new window. With the option to print the page.
When you click on the print button, it opens up the printer dialog page. But i cant click on the buttons. If i right click on the printer options page it comes up with the flash player context menu. Then i am able to click on the button.
Any ideas as to why this is happening?
Thanks
I have published it at http://www.visual-designs.co.uk its not finished yet though and stills needs to be split up into seperate movies so it preloads quicker.
Ok I Must Be Really Dumb
Ok I found a fla file that i thought might help me.... except i can't view it? its asking me for a patch??? i have no idea what the hell it is? someone pls help!
HELP... Did Something REALLY DUMB
HELP ME
On my other computer wich has no Internet, and where my Flash 5 program is on, I created an animation for something VERY important.
(Plus, the computer is screwy and I can't save, so I have to publish my animations to save them...)So I made an animation for fun the next day (The important one was accidentally published as 'Movie1'),
and then I finished it and I was publishing I was to excited about my dumb accomplishment of a stupid animation I accidentally published it as MOVIE1!!! Wich then published over the important one. Is there anyway to get it back!?>!?!?!?
I Am Dumb
ok is there anyway to preload 1 flash movie out of multiple flash movies that are embedded in a normal HTML page?
see i don't even know how to word this right
http://therandomdesign.com/jivemain.html
basically i need that video clip of the guy breakdancing to preload....the rest of it is cool
any suggestions???
war,
mes.
Help This Dumb Guy Out Will Ya?
Go here, all you flash gurus..
http://www.grandhyatttokyo.com/swf/index.html
Im trying to do that window-blind image transition effect. I tried to do the exact same thing but my image transition doesnt alpha fade in like this website does. I did mine by masking with the mask layer doing the window-blind effect and my photo on the layer below. My mask layer doesnt respond to any alpha input I gave it....so that means I have to alpha the image instead? ...how the hell do I do that? or maybe I'm just plain dumb...I need a drink.
Am I Being Dumb?
I am having real trouble with fonts, I have been to a number of
flash sites where smaller text appears in an html style eg www.cunningwork.com
www.twocreate.co.uk
please somebody put me out of my misery, how do i do this???
Da Da Da Dumb
why isnt this working:
code: on (release) {
tellTarget ("/head_me") {
gotoAndStop(2);
} { tellTarget ("/body_me") {
gotoAndStop(2);
} { tellTarget ("/jeans_me") {
gotoAndStop(2);
}
}
}
}
i am trying tomake 1 button call the second frame of three different mc's
This Is Dumb....
I am wanting to animate to some audio. So i imported a wav file. When i put it in its layer and hit enter, it played. The thing is...when i hit enter again to STOP it, it kept going anyway, all the way to the end. i KNOW it's not supposed to do that. I've tried restarting and i've tried importing a different audio clip to see if it's the wav file, but they BOTH do it. i need to be able to hear it as i scroll through the timeline and i can't. The only way to hear it is from beginning to end. what's the deal???
Maybe I Am A Dumb Ass
I am fairly new to flash, I bought a flash template a couple of weeks ago and set about customising it, everthing was going well until I thought I would try and import a text file into the design. I have followed so many different tutorials but what ever I do my text does not appear! It seems most tutorials were written for earlier versions of mx (I am using 7.2) I must be doing something wrong, most of the tutorials I have read basically say I have to have:
loadVariables ("textfile.txt");
but when i test the movie I get the error message:
**Error** Symbol=content privacy, layer=Layer 1, frame=1:Line 2: Wrong number of parameters; loadVariables requires between 2 and 3.
loadVariables ("textfile.txt");
Total ActionScript Errors: 1 Reported Errors: 1
I hope so one can help me.
thanks
Something So Dumb......
in my main timeline i have
Code:
corpVidsButton.onRelease = function():Void
{
gotoAndStop("corpVids");
//corpVids resigns in frame 6 of the main timeline
}
and it takes me to the frame just before it.....WHY??? i tried switching the code so its an "on (release)", same thing, i've done gotoAndStop(6); which is the frame that it is in, and still it takes me to the frame before. I've checked my instance names, they are unique.
I'm no noob to flash, i've been doing it a while, and have a pretty strong programming background. Though i wouldn't consider myself a guru yet. But this has stumped me more then anything. Any suggests?
[CS3] Ok, I Must Be Dumb...
And i know this issue has been addressed millions of times on this board, but I am having preloader issues! I've tried to use code from existing tutorials on the site but nothing seems to be working.
Here's my deal.....
I have a main .swf basically containing my navigation which loads in the smaller .swf's into level 1....(its about 5 subsequent swf files) In my knowledge, I've built another "Preloader" animation (similar to the Apple start-up star thing that will just spin until the loading is complete) .FLA file that the main Navigation .swf loads by "loadMovieNum("Preloader.swf",1)" to be published that will look for the total bytes of the other subsequent .swf and play on until the file is completely loaded.
I've built it this way because I've read that having the preloader in the same .swf file that is attempting to be load is not good. Someone please help before my boss has my head! Thanks in advance..
I Must Be Doing Something Dumb
I have code that reads from a text file :
&totalVotes=10
&value1=5
&value2=4
&value3=1
&value4=0
and actionscript:
trace ("value1 = " + value1);
trace ("totalVotes = " + totalVotes);
percent = (value1/totalVotes) * 100;
trace ("percent = " + percent);
When I run the program my trace window shows:
value1 = 5
totalVotes = 10
percent = NaN
Why is percent so messed up?
Please Help
This Is Dumb
This website is stupid all i wanted was a working demo version of flash MX not about 5 extra links and an error message why can't i just get a demo file...
I appreciate flash MX is very good i would have like to try it out but why only restrict it to one god damn mirror.
Regards
Paddy
Dumb But I Must Ask
does anyone know how to keep an image in the background of your flash like this
with the sizing properties and such?
i can do it normally but then when i add to page
it's just a jemmed up piece of junk??
http://www.clubguyandroni.nl/
Being Dumb...
Hey All!
can I control movieclips like this...
_root.themosclip.gotoAndPlay(1);
I have been using TellTarget and all that gaff?!
|