Home  | Login  | Register  | Help  | Play 

RE: Flash help and tutorials, checked daily

 
Logged in as: Guest
  Printable Version
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash help and tutorials, checked daily
Page 15 of 24«<1314151617>»
Forum Login
Message << Older Topic   Newer Topic >>
1/29/2006 17:10:32   
flsg
Member

can someone tell me what's the difference between duplicateMovieClip() and attachMovie()?
does duplicateMovieClip copie the code on the MovieClip?(the onClipEvent handle)

< Message edited by flsg -- 1/29/2006 17:12:34 >
AQ  Post #: 351
1/29/2006 17:34:45   
lil boi blue
Member

well movie clips are like characters, when you make a circle press F8 and it will give you the option of movie clip, graphic, and button
Movie Clips= these are better for cartoons and games when it comes to moving something on the movie, you can animate these too so that they can be their own movie inside another movie's first frame

Graphics= these are more for show, you cant adjust them nor mess them up once they've been made this so whey you click a giant art thing you made into a graphic, it selects the whole thing, more for convenience purposes

Buttons= well, they are buttons, what left to say...


attach movie attaches another movie into the movie you are currently in so that it jumps you from one movie to dragging another one on that stage like in a play when they change scenes from egyptians to romans or something like that



for errors that say "must occur on clip event handler" it means this code can only be put onto a movie clip

there is onClipEvent (when clip enters the stage) and onEnterFrame(when the movie has reached this frame)

< Message edited by lil boi blue -- 1/29/2006 17:36:20 >
AQ DF  Post #: 352
1/29/2006 23:35:05   
Zoltan
Member

Its great to see you got it done but ..... 4) Add this script in actionscript text spac on bottom of screen----> onClipEvent(load){startDrag("", true);Mouse.hide();} the 'this' was not in the tutorial.........

Also Althorne yes I know that there is another way but with your way lots of beginners do not know about naming objects and as we have seen they have trouble with the easy one as it is.
Post #: 353
1/30/2006 18:27:01   
flsg
Member

I still have a question:
is OOP(Objet-Oriented Programming) a good thing?
AQ  Post #: 354
1/30/2006 18:31:53   
Swordhunter
Member

Ok, I have a question, and it might be a tough one...

I have been doing line art in Photoshop for some time now. It uses the pen tool. All you do is click one place, then another, then you can click on the line and drag it using Ctrl and make a curve with it. Thus, line art.

I just got Flash, and I was trying to do some line art, but, when I went to select the pen tool, I clicked, then clicked again, and it made a line! So, I've been trying to do lots of other things, but nothing seems to work...I cant use line art.

So then I tried to use the pencil tool, but I cant get the lines smooth enough. It almost seems like it would all be easier with Photoshop, please, tell me if theres a way for me to use the pen tool to achieve smooth lines without using the pencil. =(

< Message edited by Swordhunter -- 1/30/2006 18:32:21 >
AQ DF  Post #: 355
1/30/2006 21:59:03   
lil boi blue
Member

flsg, do you mean like object motion guides? otherwise R click on layers and select motion guide and add layers under it so they are indented, the object will follow the line you make in the motionguide layer itself BUT the object must be a symbol

______________________________________
Sword Hunter: i know how to answer this one, in flash 8 if you have it, select smooth and adjust the smoothness in the properties area, if in flash MX 2004 just use the line tool with the magnet on, this way the line attaches itself to the nearest point, or line. you can also hold control to move a vertex or adjust a line, also with pencil use it on smooth too, i almost never use the ink pencil unless im doing a pic like the one with the water and well i entered in the contest. but i personally like using line tool and pencil, also for pen, if you have pen on the stage already and wish to see it, just press pen tool again and it will highlight orange and here are some pen signs you may already know

o = close line
> = cut vertex
x = place vertex

you can also click the squares so it adds on to the pen, personally i dont like flash's pen tool so i just would stick with BOTH pencil on smooth and line tool, remember, Ctrl is like a free form tool, otherwise just click "Q" or hold down shift to make perfect lines, squares, circles, or object scalings

< Message edited by lil boi blue -- 1/30/2006 22:01:34 >
AQ DF  Post #: 356
1/30/2006 22:11:55   
flsg
Member

lil boi blue: no, OOP is a style of programming in Flash, in consist to make everything into Objects
in OOP, we transform functions into object's methods, variables into object's propeties.
example:
var myVar1 = "hello"
trace(myVar1)//return "hello"
in OOP, we write like this:

function myClass(arg1){
this.myVar1 = arg1
}
var myObject = new myClass("hello")
trace(myObject.myVar1)//also return "hello"
AQ  Post #: 357
1/30/2006 23:45:02   
Killer Pup
Banned

 

Can anyone get me a working attack system?
Post #: 358
1/31/2006 0:01:32   
lil boi blue
Member

with some help zoltan gave me i can try to make a step by step system,
AQ DF  Post #: 359
1/31/2006 16:11:10   
Swordhunter
Member

Thanks a lot LBB. =D
AQ DF  Post #: 360
2/1/2006 17:57:10   
flsg
Member

can someone help me?(about the OOP)
AQ  Post #: 361
2/1/2006 18:02:19   
Zoltan
Member

Try this= http://www.macromedia.com/devnet/director/articles/oop_dir_flash.html
Post #: 362
2/1/2006 21:01:18   
Dragoneill
Member

How do i loop a flash loop lol? (looping sounds)
AQ  Post #: 363
2/2/2006 7:59:40   
flsg
Member

Dragoneill: import a sound, in the linkage, name it "mysound"
write the code:
var sd=new Sound
sd.attachSound(mysound)
sd.start(0,numberOfTime)
AQ  Post #: 364
2/2/2006 17:54:39   
Dragoneill
Member

Where can i find this linkage? Ive imported a wma to my library, now where do i put th e linkage?
AQ  Post #: 365
2/2/2006 18:37:28   
flsg
Member

in the library, right-click your Symbol, then click linkage
choose export for ActionScript
AQ  Post #: 366
2/3/2006 2:07:16   
lil boi blue
Member

http://i5.photobucket.com/albums/y158/photo12/demogame.swf

lol, this is a demo of actionscript from the help of zoltan and his scripting goodness, thanks man, this little game has much potential
AQ DF  Post #: 367
2/3/2006 20:05:14   
da nite slaya
Banned


onClipEvent (load) {
moveSpeed = 19;
}
onClipEvent (enterFrame) {
if (Key.isDown (Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown (Key.UP)) {
this._y -= moveSpeed;
} else if (Key.isDown (Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown (Key.LEFT)) {
this._x -= moveSpeed;
}
}

How do I set boundries to where my object can and can't go and if you pass the screen to the left, you go to the next level.
and if i push up, i do a jump effect.
and last, if i push space, i shoot/punch.
AQ  Post #: 368
2/3/2006 20:25:34   
lil boi blue
Member

zoltan helped me a lot with this stuff, anything you see in the game i can now teach APPLY THIS ALL TO MAIN CHARACTER

quote:

onClipEvent (load) {moveSpeed = 20;}


this is the speed my guy bob the star goes at you must

quote:

onClipEvent (enterFrame) {if (this.hitTest(_root.Uwall)) {_y = _y+20;}}


apply this code to your character, mine is named bob, and Uwall stood for U(pper)wall you can change it to whatever wall you're making to stop the guy from going through

IMPORTANT the bold faced 20 represents moving speed so if your guy goes at 10, then the boundary should be 10 meaning they have to agree

< Message edited by lil boi blue -- 2/3/2006 20:28:06 >
AQ DF  Post #: 369
2/3/2006 22:15:05   
da nite slaya
Banned


um... Im new to Flash i dont quite understand this... i like 1)2)3) format to understand the steps better

and i still need to know how to make him jump on key UP

And make him punch/kick/shoot on SPACE

And how do u program a button's function

*looks around* Is n e 1 here? Hello?! *voice echoes in a scary way* n e 1?

And wut is difference between fla and swf?

< Message edited by da nite slaya -- 2/4/2006 3:01:28 >
AQ  Post #: 370
2/4/2006 2:17:46   
alpha_werewolf
Member

Thank you (writer of this Tutorial). Thanks to you I finnaly understand Flash and finaly can make some movies so erm...

THANK YOU

But still I have one question: how do you make movies go slower?

< Message edited by alpha_werewolf -- 2/4/2006 2:45:11 >
AQ DF  Post #: 371
2/4/2006 4:54:01   
Zoltan
Member

Well lil boi blue started this thread and I just helped out so you can thank him, unless you used the scripting tuts then that was me XD.
Anyway to make your movie slower you can either decrease the frame rate or make your tweens longer.

_____________________________

Post #: 372
2/4/2006 7:14:44   
alpha_werewolf
Member

Okay thanks.
AQ DF  Post #: 373
2/4/2006 11:18:00   
lil boi blue
Member

quote:

ORIGINAL: da nite slaya

um... Im new to Flash i dont quite understand this... i like 1)2)3) format to understand the steps better

and i still need to know how to make him jump on key UP

And make him punch/kick/shoot on SPACE

And how do u program a button's function

*looks around* Is n e 1 here? Hello?! *voice echoes in a scary way* n e 1?

And wut is difference between fla and swf?


lol, dont worry i didn't forget about you, i went to bed and since its the weekend i sleep in big time, i'll do the fight tut later (im on my parents computer and they dont have flash, mom's on my computer)
fla is a flash file that is editable if you want to save and quit to do more to it later, but not exportable on the internet (well it is exportable but other people who dont have flash cant see them)
swf is the exported version of an fla file but you cannot edit these, they keep the quality flash brings by not pixelating movies, you can also make games on these SWF FILES ARE so far the only file that can carry actionscript for games or stuff like that, jpg cannot, gif cannot, even png cannot, but you would then not be able to show swf files as pics on this website, just as links to another website to view it

Alpha_werewolf : thank you for the compliment ^_^ i never get tired of those

< Message edited by lil boi blue -- 2/4/2006 11:19:42 >
AQ DF  Post #: 374
2/4/2006 13:37:42   
flsg
Member

http://forums2.battleon.com/f/tm.asp?m=3820802
hey guys I just made a tutorial about AS programming

< Message edited by flsg -- 2/4/2006 14:02:44 >


_____________________________

My flash gallery
my game thread

flsg, proud old member of AQ(still playing :O)
AQ  Post #: 375
Page:   <<   < prev  13 14 [15] 16 17   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash help and tutorials, checked daily
Page 15 of 24«<1314151617>»
Jump to:






Icon Legend
New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Content Copyright © 2018 Artix Entertainment, LLC.

"AdventureQuest", "DragonFable", "MechQuest", "EpicDuel", "BattleOn.com", "AdventureQuest Worlds", "Artix Entertainment"
and all game character names are either trademarks or registered trademarks of Artix Entertainment, LLC. All rights are reserved.
PRIVACY POLICY


Forum Software © ASPPlayground.NET Advanced Edition