Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Functions: Anyone Knows Of A Good Tutorial?


I'm a newcomer to flash,

actionscript reference guide has a 3/4 page on function...
Im not bad with logic or math , but this "function" thingie its abstract (requires that you close ur eyes and visualize)... If anyone knows of any tutorial
that gives examples on handling functions , and would be so kind of posting it , I would appreciate it.
thanks

ummm...just in case, i do know how to call a function its, setting the logic to work with other objects in a movie...
all I want is to at least look at some code so I can see and comprehend how "whomever" set it up, to make it work... a little inspiration thats all
Gracci Tanti




FlashKit > Flash Help > Flash ActionScript
Posted on: 07-31-2001, 01:05 AM


View Complete Forum Thread with Replies

Sponsored Links:

Is Any One Good At Functions?
hello

i have a function, what i want it do do is when called, i want it to keep adding a numer to it for every frame and then stop when completed.
like i could say this function is called 'add(2,5);'. at the other end, it would
add 1 to 2 for each frame untill it reaches 5!
get it?

well get started then!
thanks

View Replies !    View Related
Passing Parameters To Functions - Looking For Good Explanation
Just trying to pass a parameter in my event handler to a function.

1) Why can't I do this easily anymore
2) I haven't been able to find any good threads on the "proper" way to do this in AS


TIA

View Replies !    View Related
Is Good Practice To Call Parent Functions In This Way ?
is good to call parent functions from the child ?

Ex.

MovieClip(parent).myTimer.start();


thanks

View Replies !    View Related
Adding Custom Functions To A Movieclip/good Coding Practices
Hello,

I am creating a complex MovieClip object with many layers and nested MCs. I want to add several custom functions to this MovieClip in order to provide abstraction/encapsulation and manipulate it from the rest of the code.

I have created the MovieClip visually, including all its components, it was a lot faster than doing it via AS, and I can quickly manipulate it visually. Now I am wondering where to define its custom functions/attributes. I am thinking of doing it in the MCs own timeline, in its own frame 1. This sounds the most logical to me. Many articles on AS I have read however indicate that it's best to keep all code in one place, which would be the first couple of frames of the Stage. It sounds illogical to me to put the MCs code there, but then again I am a newbie and I am afraid of bumping into serious problems later on. What would you advise on this?

One more thing that got me really worried, in one of my early experiments, the methods I defined inside the MCs timeline where NOT available in the same frame of the main movie that I created instances of that clip. In other words, in frame 1 of the movie, I created several instances of that clip, and the functions I defined for them did not show up in the debugger until frame 2!

I hope this doesn't sound very confusing. I am trying to do it the cleanest and most logical way possible in terms of good programming practice. Thanks in advance.

View Replies !    View Related
Need A Good Tutorial.
I can't seem to find any good tutorials for collision detection other then hittest. I want to have balls fall and continue to land on top of each other. I have the gravity working but all the examples of circular colisions have very...very little actual comments.. Any sugestions?

View Replies !    View Related
Where Can I Get Good Tutorial
where can i download flash mx tutorial on AS?
Thanks!

View Replies !    View Related
Need A Good Tutorial..please Help
Hey to all you flash freaks ... anyway i got a problem and i need a solution and i think this is the place to find it ...

Ok i am in the middle of making a website for a clan i am in, we play an online game called Strike Force (nough bout that) Anyway i am makin a flash menu and i've stumbled across a blank spot in my knowledge of flash.

ok the menu has a heading (General Section) with 6 flash buttons under it(got that part so far) then it has another heading (Games Section) then it should have 3 buttons under it (this is the part i dunno how to do) the 3 buttons (when u put u'r mouse over 1 of em) 5 sub-menu buttons should extend downwards and the other buttons below it move down aswell ... how do you do it?

I've downloaded some menus like it to try and get an idea but i don't get it ... i need a good tutorial i can use to start from scratch to make it and add it to my existing menu i have please help me ...

p.s here is a link to see the menu so far (think this should work)just click here also tell me what u think so far for somebody who aint been using flash that long (bout 3 weeks)

View Replies !    View Related
Does Anyone Have A Good Tutorial
on how to load external movie clips with their own preloaders

View Replies !    View Related
Looking For A Good Tutorial
Hi,

I've been trying to make a rollover dropdown menu for some time now. I've been looking everywhere for a GOOD tutorial to show me how to do this. All the tutorials I have found are unclear. If anyone knows where I can find a good tutorial PLEASE let me know! Thanx.

View Replies !    View Related
Good Tutorial For AS 2
Plz can you recommend a good tutorial web for AS 2:

e.g. OOP in AS2, building classes and using in apllikation, etc.

Many
Thanks

View Replies !    View Related
Where Is A Good Tutorial
I'm looking for a tutorial that will help with a project I'm working on. I'm creating a calculator and I want to give the user options such as pounds or kilograms, male or female,etc. The result and actionscript would be different based on the choices they made. A similiar calculator can be found here

http://www.weight-loss-for-women-ove...calculator.htm

View Replies !    View Related
Need Good Tutorial
excuse me if thsi si the wrong section (my most offen Internet mistake... posting on a wrong forum section)

I have Flash Mx and I want to start making a flash game
I need a good tutorial how to make one

The game is about selecting numbers that appear
so that the sum of all selected numbers shall be divideable by a random number in the middle (random form 1 to 9)

To make the game more cool there shall be cool stuff like....RPG elements
you cna play the game or travel around the town (you use arrow buttons at the map of the city to select a place to go
Also there shall be 3 characters, eahc with difrent sounds during play

and you schould be able to save your game too

Anyone cna advice me a good tutorial that would really help me make a such game?

BTW: My flash skills are veyr veyr poor

View Replies !    View Related
Looking For A Good Tutorial
I'm trying to learn about getting data in and out of flash and accessing a database. Unfortunately the book I'm using is old and is using ASP and Windows server for uploading the database and the scripted page. I don't have a Windows server and the only place I can store these files is my online webhost @ powweb.com which doesn't run ASP.

My question is, does anyone know any good tutorials that make use of a database, a scripted page (PHP would be my guess) and Flash MX? If you do I'd appreciate the link and will send you virtual chocolate. Thanks.

View Replies !    View Related
Looking For Good Tutorial
I was wondering if someone knows where is a good tutorial how to create something like this
http://www.flashmint.com/show-template-1920.html

I just want to learn how to create galleries and load different theme with each button - similiar to the one on the flashmint website under gallery button
any help is appreciated

V

View Replies !    View Related
Looking For A Good Tutorial
I am trying to make a website kind of like JK Rowlings Harry Potter site. Not necessarily as complex, but I would like to be able to turn lights and stuff on/off, a radio you can turn on and off and plays music, a clock that shows the users local time and the local time of some other location, have a hidden message appear when i turn on a lamp, etc. Also, animation when items are moused over or clicked and be able to link to other parts of the site. I am trying to find an easy to understand/follow tutorial. I am willing to learn whatever, but I am totally new. If I need to follow a few tutorials thats cool, I'm not intimidated just new. Please if anyone can link a beginner's tutorial and any other tutorials to help me accomplish these things let me know. Thanks!!

View Replies !    View Related
Need A Good PHP - AS3 Tutorial
I am stuck guys. I am trying to find a good step by step procedure to set up a simple PHP connection in Flash CS3.
I just need a simple mySQL set up. A simple PHP setup. and the ActionScript Code to make the connections. I have tried Flash Gods, Adobe, all my tutorials and nothing is working. Even the ActionScript Bible has errors in the code in the book.

I am very good with Flash AS2 and I am trying to learn AS3 but this is very frustrating. I cannot get a connection between the Flash -- PHP -- and MySQL.

Does anyone know of any good step by steps to take me through it. Anything simple will do from there, once I get it working I can move forward.

I really appreciate it. Thanks for the help in advance.

Mike

View Replies !    View Related
It This A Good Tutorial?
http://downloads.junioronline.us/det...ction=4&item=1

Please tell me if you think this is a good tutorial.
I need expert aswell as newb point of views!

(If you ant to let me know through the site itself, you'll need to register so you can use the poll located on the main page)

View Replies !    View Related
Good Tutorial
Does anyone know a good free tutorial for making a custom flash video player?

View Replies !    View Related
A Good AS3 Tutorial, Anyone Know One?
wondering if anyone know's a good AS3 tutorial, or what to do, cus, its nothing like AS2, I keep getting weird errors from it o_O

for example, drawing to draw a square..

Code:
var dog:MovieClip = new MovieClip();

with (dog)
{
//beginFill(0xCCFFFF, 100);
moveTo(0, 0);
lineTo(100, 0);
lineTo(100, 100);
lineTo(0, 100);
lineTo(0, 0);
//endFill();
}
it says "moveTo", "beginFill", so on, aren't functions, how is someone suppost to figure this out lolz...

I need tutorial really bad lol

View Replies !    View Related
Need A Good Tutorial On...
hi
this link (http://www.liquidradius.com/Default2.htm) is the kirupa site of the week. if youll go there, youll see that its one big flash animation, but is divided into three sections. the bottom left section controls the menu. when you click on a link, the right section shows that content.
how do you do that!!!!!?????
are there any tutorilas that will show you how?
thanks

View Replies !    View Related
Anyone One Of A Good Tutorial For Doing This?
Hi,

I was wondering of any of you know of a good tutorial that explains how i can get a simular effect to the one found on this page, http://www.nova937.com.au/. The part that i'm after is the little orange tuning this that follows your mouse, when scrolling voer links. It doesn't have to work exactly the same, like it can jsut follow your mouse without being over a link..

thanks to all that can help!
Regards,
Andrew

View Replies !    View Related
Good Tutorial For The 'duplicateMovieClip'
does anybody know a good tutorial about the duplicateMovieClip() function??
and maybe a tutorial on that _root and _level0 stuff, how to call variables from a different movieclip, stuff like that..

thx

View Replies !    View Related
Where Can I Find A Good Tutorial On This...
http://www.kistphoto.com/

if you roll over the name "Andrew Kist" it will play a movie clip ("click for contact info")that follows the cursor.

I've been looking in the tutorial section but with no luck.

View Replies !    View Related
Does Anyone Know Where I Can Get A Good Showreel Tutorial ?
Hi All

I'm having trouble creating a showreel in flash, the i just can't get the showreel to stop where i need it to.

can anyone recommend a good tutorial ?

thanks J

View Replies !    View Related
Help + Good Tutorial For Pop-up Window
Hi, first i would like to say that my english writing is bad,,very bad..

I found this good tutorial here at flashkit and it work very good.Check that and tell me

"If i want to put on my main scene this tutorial but on 3-4 button, cause the exemple in this tutorial is only on 1 button and 1 script"

Thanks my friend and i hope someone will respond...appreciate!

Rick from MTL

The link :
http://www.flashkit.com/tutorials/Ac...-836/index.php

View Replies !    View Related
Where Find A Good Tutorial?
Hello guys.
I want to learn about data interactions between databases and flashMX using asp.net
please give me some useful links.
thnx

View Replies !    View Related
Need A Good Bar Preloader Tutorial
hi,

i need to get my hands on a good tutorial for a bar preloader, i've searched flashkit and the tutorials are either not what i'm looking for, or they skip steps and automatically assume you know what they did, so if someone could give me a good descriptive tutorial that goes through all the steps of creating a bar preloader it would be great. i'm not exactly stupid when it comes to action scripting but i'm not a genius either...

thanx

View Replies !    View Related
Does Anyone Know A Good Tutorial For DuplicateMovieClip?
i want to learn how to duplicate one movie clip on the stage into many others and give each of them a different position.

please don't refer me to that tutorial about weapons manufacturing 101.

thanks.

View Replies !    View Related
Good Tutorial For Cgi/forms?
hi,

i've been looking for a good tutorial on creating a form in flash and sending variables to a cgi script. last time i tried this, i could not, for the life of me, get it to work, so i ended up just making a contact page with an email link. but this is a different client, and i really want to be able to get it to work this time. does anyone know of a really good tutorial out there, one that shows how to send variables to the cgi script, and also doesn't require editing of the cgi script? (i found what seemed like a good one, but they made you edit the cgi script!)

thanks so much,

heather

View Replies !    View Related
A Good Xml/flash Tutorial
Hey everyone, and sorry for bothering you - I rarely ask for help, but i just can't figure this out!

I always hear of dynamically updating flash sites. I know that you can do it through a text file... but i want to be able to parse links, add images...

well i dont know what i want to do, but i know that i'll definitely have an easier time if i knew XML.

so does anyone know of a good tutorial for XML?

basically, i'm a 3d artist who's trying to develop his portfolio. for my news/main portion, i want to be able to add links in my dynamic updating.

i also possibly want to be able to update my gallery with the use of XML - if its possible.

see, i dont know what XML can do for me... but i know it can at least solve my links problem. i think.

heh, anyway, if anyone can help me out, that'd be great.

thanks

View Replies !    View Related
I Need A Good Tutorial On Actionscript 2.0
There is nothing here worth a darn on Flashkit about

: movieCliploader
: onEnterFrame
: onClipEvent


Not much on Macromedia either that I understand.

I need to be spoon feed on this one.

Best regards
Toby

View Replies !    View Related
Looking For A Good Basic Tutorial...
I'm an actionscripting newbie, and I'm working on a pretty simple little animation that I'd like to practice on. There are about a dozen events that make up the animation - things sliding in, fading up, etc - and I've successfully managed to get pretty close to what I want with each element. But now I want to put it together, and have one event happen after another. Does anyone know of a simple tutorial that would outline how to make this happen?

Oops, that would be for Flash 8 Actionscript 2.0

Thanks!

View Replies !    View Related
Looking For A Good Tutorial Or Hint....
I think the movie I want to make is somewhat easy....just looking for a little guidance.....the basic premise is a square with four flaps. One at a time each of the four flaps opens. When the movie is done the backside of each flap is opened and the center square (picture a box taken apart type thing.

The effect I want is....as the first flap (for example) opens you begin to see the backside of it....obviousely when its opened all the way you will see the entire backside of the flap.


Any hints?


Thank you!

View Replies !    View Related
[F8] I'm Looking For A Good AttachMovie Tutorial.
I'm trying to use attachMovie instead of duplicateMovieClip to create a scene creator. The problem though, is I can't find a tutorial for that. Would I make a button that attaches or what?

View Replies !    View Related
Anyone Know Of A GOOD Preloading Tutorial...
the one here is no good for flash 8. Also i noticed that a few people say its terrible script. Does anyone know of a good tutorial out there where i can get a good lesson on preloaders?

View Replies !    View Related
Preloading Tutorial? - Where Is A Good One
I need a good tutorial on preloading external swf's. If you guys could help me out with a link it would be most appreciated.

View Replies !    View Related
Good Transition Tutorial...
Does anyone know or can point me in a direction where there are some good script for a load movie or load level transition in which you click the button...and then it fades to black and the new movie fades in...ya know which kind...I didn't know what to search for...thanks in advance...

View Replies !    View Related
Need Free Good Tutorial
Hi
I need a good tutorial about setting up flv playlist, with thumbnails, full
screen button opltion and all thins in progressive download mode
is there something like this for free?
thanks

View Replies !    View Related
Kirupa Tutorial Good?
Any comments abt Kirupa tutorials??

I had tried few of Kirupa tutorials and I found the tutorial is not tht complete or not user friendly.

I prefer more tutorial on the picture tht enable us to follow step by step rather than looking at lots of explanation tht can't help us to see the outcome.

I did follow the instructions, but in the end the output is totally difffent frm the tutorial one because it lacks of guideline.

I am very happy with the provided tutorials but I am very disappointed when I can't make it workable.

And, sometimes the ready made flash file enabled us to download also made me confuse. Don't knw how they make it n jz blindly follow the instructions in order to get the output.

When ppl ask you how to do this/tht part n your answer is "I dunno, I downloaded it frm Kirupa tutorial". ...

May b it's my problems to understand the tutorials but I jz want to share with you all my opinion abt the Kirupa tutorials.

Pls do not hesitate to rp and share with us ur comments, thanks!!

View Replies !    View Related
I'm Looking For A Good AttachMovie Tutorial.
I'm trying to use attachMovie instead of duplicateMovieClip to create a scene creator. The problem though, is I can't find a tutorial for that. Would I make a button that attaches or what?

View Replies !    View Related
Good Scroller Tutorial?
does anybody know of a really good tutorial to help me with a mc scroller. one that has a thing u can drag and the two arrows. thanks!

View Replies !    View Related
Looking For A Good Mp3 Player Tutorial Or Example
I would like to create an mp3 player but my history with flash has almost no audio experience. Can anyone point me to a useful tutorial or example to work from?

The flash player needs load mp3's dynamically via .txt or xml and use the ID3 info to get the necessary information: artist, title, etc. I need the basic functionality of an mp3 player: play, stop, pause, fast forward, rewind, next/previous track, and would like it to have the option of playing continuously (like a playlist) except instead of selecting a group of songs to play, just start from the first selected mp3 then continue through the txt or xml list.

Any help would be great!
Thanks

View Replies !    View Related
Good Tutorial Sites
HI! this is my first post in here.
I am new to flash Mx...i wonder where could i get tutorials of it?

View Replies !    View Related
I've Followed The Tutorial Without Good Result
Hi, great site I must say.. Only one remark, I followed the xml video playlist tutorial as good as I could (I didn't do all the video player tutorials, I skipped the sound ones..) but for the rest I did everything correctly.. but the xml list doesn't load... what could be the problem here, does anyone know:

here is my actionscript:
var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

ns.setBufferTime(30);

ns.onStatus = function(info) {
if(info.code == "NetStream.Buffer.ull") {
bufferClip._visible = false;
}
if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
if(info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
}

backButton.onRelease = function() {
ns.seek(0);
}

playButton.onRelease = function() {
ns.pause();
}

var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number
var duration:Number;

ns["onMetaData"] = function(obj) {
duration = obj.duration;
}

function videoStatus() {
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 155.8;
loader.scrub._x = ns.time / duration * 155.8;
}

var scrubInterval;

loader.scrub.onPress = function(){
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,151,this._y);
}

loader.scrub.onRelease = loader.scrub.onReleaseOutside = function(){
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus,100);
this.stopDrag();
}

function scrubit(){
ns.seek(Math.floor((loader.scrub._x/155.8)*duration));
}

var vlist:XML = new XML();
vlist.ignoreWhite = true;

vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for(i=0;i<video.length;i++) {
videoList.addItem(videos[i].attributes.desc,videos[i].attributes.url);
}

ns.play(videoList.getItemAt(0).data);
videoList.selectedIndex = 0;
}

var vidlist:Object = new Object();

vidlist.change = function() {
ns.play(videoList.getItemAt(videoList.selectedIndex).data);
}

videoList.addEventListener("change",vidlist);

vlist.load("videos.xml");

View Replies !    View Related
Good Tutorial In Using Coldfusion
anyone who knows a good site on how to use coldfusion and flash side by side?

View Replies !    View Related
Good Scrolling Text Tutorial Please?
Hi,
Can someone give me a link to a good tutorial on how to create scrollable text boxes (similar to the scrollbars on a browser window)? Preferably with a .fla example? I tried the one in flashkit -> tutorials -> interactivity but the .fla is not working.

Thanks!
webworks123

View Replies !    View Related
Good Load Music Tutorial
Reason why I posted this here and not the sounds forum, I figured I would get a quicker response. If mods need to move it, you can do so.


Im looking for a good tutorial to load music in MX. Anyone know of any?
One other question, might be stupid, whats a streaming sound and whats an event sound?

Ok, 2 questions
[Edited by Vox98 on 07-17-2002 at 04:26 PM]

View Replies !    View Related
New To Action Script / Need A Good Tutorial
Hi everyone,

I just got flash a couple weeks ago and have completed all the tutorials.

But I'm still trying to grasp action script and how it ties with the objects on the screen.

In particular I would like to learn how to load txt files to an object.

I've tried 3 examples from the web. 2 of them didn't have good documentation, and 1 simple example didn't work with flash 6.

Does anyone know of a good place to start?

View Replies !    View Related
Need A Good Beginners Tutorial For Flash MX
I'm beginning to learn Flash MX and I was looking for some good tutorials to aid me in this if you know of any please let me know. Thanks.

View Replies !    View Related
Looking For A Good Time Zone Tutorial
I'm looking for a good Flash MX tutorial on how to display multiple time zones (i.e. USA, Japan & London time zones)
Thanks
Retile

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved