Very Basic If Else Set Up :/
Hey. I cant seem to get this very very basic if else going.
Code: if (sound==off) { gotoAndStop (4); } else { gotoAndStop (3); } sorry for asking such a noobie question
FlashKit > Flash Help > Flash ActionScript
Posted on: 02-26-2004, 09:30 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Basic Basic Email Submit Form
I want text in a one line input box to be sent to my email address by clicking a button in flash. How can this be done?
Greg
I want people to be able to submit their email address to me.
Basic Basic Email Submit Form
I want text in a one line input box to be sent to my email address by clicking a button in flash. How can this be done?
Greg
I want users to be able to submit their email address to me.
Basic, Basic Problem In Animated Btns
I have spent HOURS and DAYS working on a project for an online Flash 2004 class. I've searched threads on this subject in this site but none address it. I guess I'm too new to understand 90% of what's posted! I've viewed a couple of tutorials but just can't get it! Here's one of the problems. I've tried all kinds of ways to do this, but I just don't get it. I'm sure all of you are shaking your heads over my inability to "get it" but I'm putting my pride behind me and asking for help!!
Book: Essentials for design Level One by Dwayne J. Ferguson, Proj. 7, Challenge 1, "Creating a Fading Animated Button."
1. Open scifi_button.fla from folder (this shows the hangar door)
2. Use the Selection tool to select the hangar door. Drag the hangar door into the Library. Name the new symbol "hangarDoor_symbol" and choose Graphic as the Behavior. Click OK.
===I'm okay up to here
3. Press the "F8" key and create a new movie clip symbol. Name it "hangarDoor_mc."
===Where should I do this? Duplicate in the Library? And what do I do with the hangarDoor_symbol on the Stage?
4. Drag an instance of the hangarDoor_symbol to the stage.
5. Add a keyframe to the movie clip Timeline on Frame 10. Move the door to the top of the guide.
===Do I create another layer and move the mc into frame 1?
6. While still on Frame 10, decrease the Alpha of the door to 20%.
===There's no place in Properties that brings up the color box. It just shows a sound box.
7. Choose Motion Tween from the Property Inspector. Scrub the Timeline to ensure that the door animates.
===I went to Frame 1 and did this, but nothing showed in the frames in between!
8. Return to the main Timeline. Click the Preview button in the Library to play the animation.
===I thought I WAS in the main Timeline!!
9. Press the "F8" key to convert the door on the Stage into a button symbol. Name it "hangarDoor_button."
10. Double-clicki the hangarDoor_button on the Stage to enter Edit mode.
11. From the Insert>Timeline menu, add keyframes for each of the button states.
12. Choose View>rulers. Draw guides around the shape of the door on the stage.
13. Click the Over state keyframe and delete the door graphic. Replace the graphic with an instance of hangarDoor_mc from the Library.
===Why is all this necessary.
14. If necessary, move hangarDoor_mc into position within the guides, so it matches the placement of the other states.
===What? I go to onion skin outline?
15. Return to the main Timeline. Choose Control>Test movie to try your button.
===This is a joke!
[FCS3] Basic (i Mean Basic) AS Tutorial (2 Or 3)
OK, I have absolutely no idea what i have to do when it comes to actionscript. I dont know why you would use } or : or ; or, well, anything, and I have no idea what the functions of it are. The onlt thing i know is the stop action, and even then i just do [ESC] S T - so i dont know what im typing to make it stop.
Is there any tutorials that will take me from being a person who knows f**k all about AS (but a fair bit about Flash) to a person that knows a fair bit about both. All the tuts I have consulted so far have either been so basic that you don't need AS, or a "basic" AS tutorial, which I have no idea what is going on in them, because they are not basic [for me].
Thanks
Alex
Sorry if there has already been a million post like this before, but they probably all have stupid titles, which I can't be bothered to sift through.
Maybe a post like this should be stickied, because i'm sure its not just me who is an AS idiot?
Thanks again
Some Basic, Basic Instructions About FMS.
Hello everyone,
I am trying to make a Multiplayer AS3 based game. Can anyone kindly guide me to some BASIC BASIC tutorial about how to send variable to the FMS, and read something back?
Its about 3 days now and I can't find anything. I tried my hands on Red5 at first, but then I discovered that it was even harder to understand. The samples in Red5 were in AS2 and would confuse me more if I tried to translate them to AS3. And the samples found inside the FMS server don't work
I tried to make google find me a hello world tutorial for either Red5 or FMS, and tried alot of different ways to convince Google to find something but it didn't.
Please guide me on how to get started with FMS OR Red5, as Red5 is still an option for me.
All I need to transfer is the x and y location of one movie clip to another. Simple. That's the only thing I am wanting to do right now.
Any help in this regard will be appreciated,
Thanks in advance.
Most Basic Of Basic Questions
i just need to know how to do a navigation in flash...i have a lot of images so the most streamlined it can be the better...
for example, i want a series of buttons
and when you click one button, several come up, and those are buttons for images...nav, sub-nav.......ive been looking all day on how to do this, can anyone help, or direct me to a sight to help, or show me where i can download a sample file? im really desperate, deadline soon, nails bitten to the core, just need a simple website
Basic Basic Question
hi there,
i have an mc, with an on press event which should tell the main timeline to go to the next scene and play, but it doesnt work
any reason why?
on (press){
_root.gotoAndPlay('Main','start');
}
so basic, so iritating!
chers all
jamo
Basic One
i'm having some problems with actionscript....
i have 2 movies, one with some buttons and background (movie1), and the other with sort of window(movie2).
When i touch in a button in movie1 i want that movie2 jumps to another frame, for example frame 50. How do i do that.
Basic Help
I have a movie that playes on a button on the scene.
on this movie I have a cose button what code do I put in this to close the movie or make the movie invisible???
.................................................. ...
also anyone stil know how when yu put a new scene<preloader> infron of your main <scene 1 movie> the quality of the movie becomes real poor?????
hope sometone will help this time
thanx
Basic Or Not?
I need one tip..
I want to preload and open external swf in one part of my main movie, and i dont want to change anything in main movie. Like a frames in html? Is it possible and how?
Best regards
Need Some Basic Help
Action command is:
if (loops++ >1)gotoAndPlay(1);
gotoAndPlay (glint);
how can I make the scene loop a few times and then play the next scene?
Yes Im Still Up At 1am (PHP) Basic
Hello there,
My first dabblings with PHP, I have a friends of ed book from which I want to make a php mail form. I went through the excercise and created my mailer (it didnt work)- after cheaking the code, I tested the sample mailer supplied with the book, only I updated it with my email.
Same problem I get an error message.
-The site is local
-I am on Line
-using MX although the book is for flash 5
Shurley these people cant be wrong that book cost me a fortune???
I know nothing about PHP versions and the like, could that be the answer.
Who ever helps with this one could save my sanity!
J (Tired and Confused)
Goodnight
Very Basic
i am very new in flash, and the web and have just purchased my first domain, i put the flash file in a dreamweaver file and then ftp it to the server, My question is how do i get the file to open when you go to the site without haveing to put a "/" and then the file after .com?
Hope that makes sense. thanks for the help
Very Basic Mah..pls Help
hai ppl....thnx 4 looking into this msg....
In this forum rite.. I c a lot of ppl using flash signatures...i think it is called flash signatures..the one under all their messages...Can anyone teach me also how 2 do that...I want to try it out..jus curious..
Also i am a very novice user..so do not give me very factual things which i dont understand..
Thanx:
confused:
Basic
hi
I'm using a preloader which if done goes to scene2.
My prob is that the largenumber of frames i want to preload is in a moviclip which is on the first and only frame of scene2.
CAn i maybe direct the if framesloaded to the mc on scene2? how d'u script this?
cheers
I Need BASIC Help Plz
Can anyone tell me step by step how to make a continuous looping flash sequence of just pictures fading in and fading out... a total of 6 pictures. I want to be able to see each picture for about 2 seconds before it fades away. All of the pictures are .jpg extension. I dont want any text whatsoever or any other effects other than a slideshow more or less... can anyone help plz???
Thanks!
David
Need Some Basic Help
When you shoot somebody in my game, you get points and the points generate in a text box.
Can you check the .fla and send me a code to put in my textbox so that when I reach 2000, I go to frame 1 in the next scene...
Please help
Basic Help
Can someone help me get this programmed please? Its very basic, but so am I
http://img260.imageshack.us/my.php?image=115hr.swf
-Thanks
Basic Sin Cos Tan. Very Basic....
Hi all,
I have another question today,
Im trying to get into the maths side of flash as i have ALWAYS ignored it, anything to do with the Math functions.
Well i have tried all morning just to come to grips of what the basic Math functions do.
My task is just to have the most basic flash code possible where i can just move a circle on the stage in a back and forth motion using something like
mc._x = Math.cos(whatever this bit is).
Anyways i have NO clue. So i have just been planting everything possible into (this bit).
At one point i had a slight movement, but it was so small you could barely make it out so i started doing something like.
mc._x = Math.cos(blah)*10;
So see if that would give me the same movement only ona larger scale. No matter what i did i couldnt get it to do so.
And because i tried so much random stuff, i have lost (this bit) and completely forgotten what i had in the first place.
So could someone give me just a basic code so i can begin to come to grips with what im doing. If i have something to work with i can start trying new things via trial and error.
Thanks!
Basic Help
I'm trying to develop a simple, non-animated pop-up ad in Flash that would incorporate an image and some text. I want the ad to be transparent so that the page it resides on can be visible through the ad. I also need it to be able to be closed by the viewer.
Can someone send me to a place that boasts this particular tutorial or send the steps on how to create it and insert in my HTML?
Thanks for your help!
Basic Help?
the template i am using...
this is the fla file
Ok i downloaded this website from the movies section but i cant seem to find it again... if anyone can do please paste the link for me thanks..
ok now to wat i wanted to do... basically i want to add a scroller for text... as i might want to add abit more than the space provided... before just stating how to add a scroller text, have a look at the fla file
also how would i go about adding a guest book to this... i have a tutorial on how to make one... but i cant get seem to access a design board, to design one and create itagain u want to look at the fla file to see what im talking about
thank u
So Basic... (except For Me)
Please help...
I desire to load an external swf file ("pic01.swf") into my main flash interface, but at the bottom layer so that the graphics in the main flash are ON TOP of the loaded swf file. I created a blank movie clip called with an instance called "movieloader", and have tried several ways to load the swf, but all tries load the movie ON TOP of all the layers in the main flash file. I desire the swf file to be loaded UNDER all the layers.
Thanks!
Paul
[F5] Very Basic...
Hi to all... What's up ?.
I have a very basic question...
I have my swf movie and inside of it, a certain movieclip... The problem is that I would like that just after I make this movieclip appear in the scene, then, to start reproducing the frames inside of it... Coz if not, when I use the alpha effect to make the movieclip appear, then the movieclip is almost finishing...
If I wasn't clear, pls answer I will try to be simply...
Need Basic XML Help
I'm proficient in tweening and basic acctionscripting in Flash, but anything beyond "Go to and Stop", Get URL", Set Proprty", etc, are beyond my mental capacity
I have a client that requested that I assign a URL to a button in my movie via an external XML file rather than embedding it in the actionscript using a the standard Get URL method.
Can anybody tell me how to do this? I will need to know exactly what to put in my XML document and exactly what actrionscript to assign to my button.
I'm using Flash MX. And exporting a Flash 8 SWF file.
Please somebody help! I'm in a reall pinch here.
Need Basic XML Help
I'm proficient in tweening and basic acctionscripting in Flash, but anything beyond "Go to and Stop", Get URL", Set Proprty", etc, are beyond my mental capacity
I have a client that requested that I assign a URL to a button in my movie via an external XML file rather than embedding it in the actionscript using a the standard Get URL method.
Can anybody tell me how to do this? I will need to know exactly what to put in my XML document and exactly what actrionscript to assign to my button.
I'm using Flash MX. And exporting a Flash 8 SWF file.
Please somebody help! I'm in a reall pinch here.
Need Some Basic AS3 Help.
Yeah, I'm a bit used to the much simpler AS2, so trying to do anything that requires AS3 in Flash 9 is a bit hard for me. I've tried a few tutorials and documentations (including the ones listed here), but I still haven't been able to find the stuff I want to do. So I'll just pose these little tasks to you guys and if you can, please tell me how to do it or redirect me to someplace that can tell me how.
1 - A loading/progress bar screen with a still image above the progress bar that changes based on the percentage of the movie loaded (ex. 25% - Image 1, 50% - Image 2, etc.)
2 - Switching from the progress bar screen to a menu or Play button.
3 - Getting the play button to go to the correct frame to start the movie.
4 - A replay button at the end.
Everything else I'm hoping I can just do with the Flash tools.
Also, since I'm trying to do a music video of sorts, I was wondering if there's some kind of efficient way to make subtitles. I could very well just have a layer above everything that shows the subtitles at pivotal points in the video with the words basically just pasted there, but I was wondering if maybe there's a way to take an outside source of lyrics (like, say a .txt file) and have the movie display the appropriate lines at the appropriate frame with some code?
Most Basic Of Basic
Hey there everyone. I'm in quite the predicament. I have a problem, and hopefully I get a bunch of helpful information because it's a very basic thing. I'm pretty darn good at making still-frame graphics in Flash. However, I am incapable of animating properly. It seems that whatever I do, my animation comes out being very choppy. I can make it seem reasonably fluid, but only if I make very minor changes each frame which makes them do what they need to do very slowly. No idea what the deal is.
[F8] I Need Some Basic Help
Long story short but I am trying to create a flash movie that I can embed into PowerPoint. This will then be projected as community song for an amdram pantomime audience participation. I can do the embedding bit ok but I'm a complete novice in movie creation. I have Koolmoves and when I e-mailed the company they said it could be done but that's all.
I've dabbled with the software trying to learn as I go and I can get lots of text transformations but none that either scroll or even like a karaoke style.
Can anyone please point me in the right direction before the director slaughters me for saying I could do something that, at the moment, I can't. I'm reasonably IT comfortable but flash is new to me.
Thanks in advance
Andy
ps
I have had a search of the forums and there's a lot on text but nothing that seems to match what I'm looking for so I apologise in advance if this has been requested before.
[CS3] Really Basic Help
How do I make it so that a certain frame doesn't play? Like if i have 2 frames, but I don't want it to just play frame 1 then frame 2 (AS3). I want it to just stop at frame 1. Also, how do I make it goto that frame, in AS3.
I think it's gotoAndStop(); but how do I use that?
Basic AS Help
PHP Code:
onClipEvent (enterFrame) {
_root.conter=0
this.Mid_sq=new Array(1, 2, 3, 4);
if (this.hitTest(_root.Mid)&&_root.conter==0&&this.hitTest(_root.Mid2)) {
_root.conter=(this.Mid_sq[Math.floor(Math.random()*this.Mid_sq.length)]);
unloadMovie(_root.Mid);
}else{duplicateMovieClip(_root.Mid, Mid_dup, 1);
_root.Mid_dup._x=100;
_root.Mid_dup._y=100;
if (_root.conter == 1) {
this._x+=10;
}
if (_root.conter == 2) {
this._y+=10;
}
if (_root.conter == 3) {
this._y-=10;
}
if (_root.conter == 4) {
this._x-=10;
}
}
My problem is that if the "else" is true It refuses to duplicate "Mid". Help Anyone? The Overall Purpose of the else is so that when the movie clip this scipt is inside is not touching Mid it creates another Mid (at its currnet posistion off x=100 y=100). It only has to create Mid once.
Basic Help With MCs
Been ages since Ive been into AS, (I was heavily into it about 2 years ago - AS 2.0 included)
But now I 've forgotten it, I wanna do something simple can anyone get me started?
A wanna add a class to a movie clip so it plays through the entire MC , then when the MC ends, it advances a frame to the next MC which does the same. Just so I can chagne the MC length and play a series of them in a row.
I hope thats clear Im typing in a rush, taa
Something Basic
Hey guys,
I have a basic .fla. This one resizes a movie clip with a plus and minus button..easy.
the file is here:
www.w72.com.au/zoom02.fla
At the moment, you have to continuously click the buttons to resize the image. What I'd like to work out is how to enable the buttons to be held down while the movie clip resizes...you know?
I find myself trying to do this a lot with different kinds of movie clip manipulation, but with little success. If someone could help me out here, I would be 50 times the flash man I am today. hahaha.
Thanx guys
Basic Get Url
hi people , i am stuck, and feel very embarassed by something this simple holdinig up my whole mission. anyway, please help. all i am trying to do is have a function that links a movie clip to a site.
eg. lets say google
i have so far,
video_btn.on (release) = function () {
getURL ("blank,http://www.google.com");
}
and its not working ...
Basic AS Help For Me.
PHP Code:
if (_root.ball, hitTest(_root.hole2)) { if (this._xscale <= 70, this._yscale <= 70) { gotoAndStop("falldead");}}
Frame "falldead" is within the timeline of the MC ball, however when ball hits hole2 "falldead" is not played. Can any one help with this?
Basic Help
I am totally new to flash and don't have a clue how to get started. I want to use it for expanding menus and viewing pictures from thumbnails, can someone point in the right direction for finding some help?
Very Very Basic
I have been using flash for a while now but still rely on simple dodges than doing things the correct/better way. A good example is my toggle button that sets a movie clip to invisible when pressed.
I know lots of ways of using the button as a simple toggle (on/off switch) but I tried this today and I dont understand why it dosnt work. Could anyone tell me (am am sure its obvious) and prehapes offer a better/workable alternative.
on (release) {
if (_root.clip_mc, _visible, false) {
setProperty (_root.clip_mc, _visible, true);
} else if (_root.clip_mc, _visible, true) {
setProperty (_root.clip_mc, _visible, false);
}
}
Any help would be great to help me lift myself from novice status.
Thanks
Edited: 02/09/2007 at 04:30:52 AM by Donnyoddlegs
Basic But Can It Be Done
Hi!
Can anyone tell me me if is it possible to draw on the flash mx for an example a square with smooth corners?
I now that i can create it on photoshop or fireworks and then import into flash
I know this is problably a realy basic question, but can it be done in flash??
thanks
Idu
Basic ?
I have flash MX and I am creating a game. I want to have a shop with different kinds of guns. When you buy a gun I want it to go into your gear page. This page will allow you to select the gear you want to use for the different missions (if you have more than 1 gun you can choose which to use).
To do this, this is what I think I need to do (tell me if I am right or what to do):
On one of the guns in the store (it is a button), I put in a code similar to : onrelease a(or some varible) = 4
Then I put in the gear page... If A=4 display ... ( I am lost here)
Thanks
Basic's
Hello were can i learn the basics of actionscript etc? Thanks in advance
Basic Help
I haven't used flash for almost 2 years now, but I've jumped back on the horse with Flash MX 2004 and just can't do what i want!!!
I am creating an intereactive map of the UK. The basic outline contains all the counties. Each county is a seperate button (almost 60 in total). I have 60 scenes, where the county that was clicked zooms in to reveal a more detail on the services available in that area. That part I have done without any problem.
I set out to make my first button action (cornwall being the name of the scene)
on (press) {gotoAndPlay("cornwall");
}
It worked a dream. I have tried making the other buttons go to their scene, using their scene name, but they just go to cornwall.
What am i doing wrong?
On each county page i also want a button that will link directly back to scene 1
A Basic Acs Help
i have a mc that has this script
Quote:
onClipEvent (load) {
x = 0;
y = 0;
alpha = 100;
}
onClipEvent (enterFrame) {
_x += (x-_x)/4;
_y += (y-_y)/4;
_alpha += (alpha-_alpha)/4;
}
this allow mwe to generate easing effects
but i wanna know
how i can make that when the mouse pass over this mc some of theyr properties like _x, _y or _alpha get a new value
i know this is simple
but i cant find the answer
thanks
Basic XML
i have been following the tut "displaying XML data in flash" and i understand what is going on, I have created my XML file that i want to display in flash.
I am now slightly confused as to what to do next as i want to create a movie clip which runs through in a loop displaying the different lines of text in the XML file.
i think this could be done quite simply but Im not sure what to do here, im a bit of a noob to all this...
can anyone help me out?
Basic OOP With XML
Hello, I'm trying to finally dive into OOP and tie it into XMl that I am loading. I am using a custom class I created and I believe I've linked everything together that should be (paths and whatnot). The problem I'm having is I'm trying to trace 1 of the new portfolio objects I created so that I can reference to its properties. But whenever I trace i get an undefined. Anyone who could point me in the right direction would be awesome! Here is the XML code:
Code:
var ap:Array = new Array();
xmltw = new mx.transitions.Tween(xmlload, "_alpha", _global.transNone, 0, 100, 10);
xmltw.onMotionFinished=function(){
ap_xml = new XML();
ap_xml.ignoreWhite = true;
ap_xml.load('xml/webdesign.xml');
ap_xml.onLoad = function(sucess) {
if (sucess) {
var nodes:Array = this.firstChild.childNodes;
var portdir:String = this.firstChild.attributes.dir;
for(var i=0; i<nodes.length; i++){
xclient = nodes[i].childNodes[0].firstChild.nodeValue;
xname = nodes[i].childNodes[1].firstChild.nodeValue;
xurl = nodes[i].childNodes[2].firstChild.nodeValue;
xsimg = nodes[i].childNodes[3].firstChild.nodeValue;
xmimg = nodes[i].childNodes[4].firstChild.nodeValue;
xlimg = nodes[i].childNodes[5].firstChild.nodeValue;
xtools = nodes[i].childNodes[6].firstChild.nodeValue;
xtype = nodes[i].attributes.type;
xdir = nodes[i].attributes.dir;
ap.push(new Portfolio(xclient,xname,xurl,xsimg,xmimg,xlimg,xtools,xtype,xdir));
}
parseFile(ap_xml);
totalpages = Math.ceil(ap.length/8)-1;
curpage = 0;
themin = 0;
themax = 7;
if(themax>=ap.length){
themax=ap.length-1;
}
viewinfo.thetext.text = (themin+1)+"-"+(themax+1)+" of "+ap.length;
xmldur = new mx.transitions.Tween(xmlload, "_alpha", _global.transNone, 100, 0, 10);
xmldur.onMotionFinished=function(){
startaniin();
}
trace(ap[0]);
}
};
}
Here is how I have my class setup:
Code:
class Portfolio
{
public var typex:Number;
public var dir:String;
public var client:String;
public var namex:String;
public var url:String;
public var simg:String;
public var mimg:String;
public var bimg:String;
public var tools:String;
public function Portfolio(ty:Number,di:String,cl:String,na:String,ur:String,si:String,mi:String,bi:String,to:String)
{
typex = ty;
dir = di;
client = cl;
namex = na;
url = ur;
simg = si;
mimg = mi;
bimg = bi;
tools = to;
}
}
Basic XML Help...
So, I took this directly out of the Actionscript 3.0 Cookbook, chapter 20.9, but it doesn't appear to be working. This is verbatim, less my trace()::
Code:
var cart:XML = <cart>
<item price=".98">crayons</item>
<item price="3.29">pencils</item>
<group>
<item price=".48">blue pens</item>
<item price=".48">black pens</item>
</group>
</cart>;
var total:Number = 0;
for each (var price:XML in cart..@price)
{
total += price;
/* Displays:
0.98
NaN
NaN
NaN
*/
trace(total);
}
I changed the code in the loop to this:
Code:
var num:Number = new Number(price);
total += num;
Which works.
The only thing that has me baffled is that, in the original, it traces the first iteration of the loop correctly, but messes up after that, even though the price variable traces out correctly for each iteration.
About AS 3. 0 Basic
Hi all,
OK,
I can put AS code in the timeline .
I can put in DocumentClass .
I can put in Publish -> AS 3.0 ->settings .
I can put Linkage property .
Why ? Is there some restrictions ? Where to put Custom class ? Do I need syntax >package<on every code ?
Thanks advance .
Basic But Can It Be Done
Hi!
Can anyone tell me me if is it possible to draw on the flash mx for an example a square with smooth corners?
I now that i can create it on photoshop or fireworks and then import into flash
I know this is problably a realy basic question, but can it be done in flash??
thanks
Idu
Basic ?
I have flash MX and I am creating a game. I want to have a shop with different kinds of guns. When you buy a gun I want it to go into your gear page. This page will allow you to select the gear you want to use for the different missions (if you have more than 1 gun you can choose which to use).
To do this, this is what I think I need to do (tell me if I am right or what to do):
On one of the guns in the store (it is a button), I put in a code similar to : onrelease a(or some varible) = 4
Then I put in the gear page... If A=4 display ... ( I am lost here)
Thanks
|