| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Comments:
<0> for sure <1> yes gotoURL("mysite.com"); <0> so if i were to replace hello with "gotourl("www.google.com"); it would take me there? <1> okay well, our button is an object(a movieclip object, buttons are just movieclips) <0> ya i made one <1> no getURL("http:///www.google.com"); <0> ahhh k <1> and objects have methods attached to them <1> like the onPress method we used <0> k <1> test_but.onPress = <1> ^-object ^-method <0> and the "test_but" is just a name right... whatever i name the button "instance name" <1> actually i like, test_but is an 'instance' of an object <1> yes, its just a name , a reference to the object <0> cool
<1> now to run a code we have to ***ign a function to the method <1> which is what that function () { }; is <0> cool <0> so we fill in the () <1> the { and } defines a block of code to be executed, so anything you put in that will be run when its pressed <1> no we fill the { and } <0> ahhh <0> k <1> the ( and ) is for parameters <0> k <1> hold on lemme show you what i mean <2> hey, does the FCS 1.5 updater update the app to 1.6? <0> **** man i'm really sorry some1 at the door <2> or do i need to download special files to get to 1.6? <1> whyley http://pastebin.sekati.com/?id=Anonymous@ccee0-2639d134-t <1> okay no worries catcha <0> k <0> sorry neighbour needed tools <0> you there? <3> I'm trying to debug a flash movie... is there anyway to view all of the code for a given scene/layer at once instead of hunting for it? <3> Don't know if it's possible with flash .. but i'm hoping it is <0> it ran right away spas <0> no click <1> yes <1> its supposed to <1> can you guess why <4> is | 'or' <4> ? <1> || <4> cool cheere <1> no worries :) <1> whyley how you doing <1> in that example, i created a function and gave it a name myFunction <0> cuz my function is defined as my sentence... <0> and my sentence is hello wyley? <1> mmm no <1> so myFunction is a reference to the code after it, kinda like how test_but is a reference to a movieclip function <1> yes mysentance is "hello whyley" <0> lost <1> okay thats cool <0> myfunction = funcion <0> naw dude i'm screwd <1> test_but.onPress = function () { } , we are ***igning a function to onPress <1> see the = <1> onPress equals this function <0> cool <0> est_but.onPress = function () { <0> spasmFace trace("Hello!"); <0> spasmFace } <0> wrong paste <0> *Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Syntax error. <0> myFunction = function (mysentance) {trace(mysentance);}myFunction("Hello wyley!"); <0> Total ActionScript Errors: 1 Reported Errors: 1 <3> I'm used to programming in c/c++/vb/vb.net but i'm having a hard time figuring out flash ... could someone please point me to how to display all the code at once for a layer? there's an event that apparently shouldn't be there and it's keeping me from publishing the movie <1> Alt+F3 Mushu2 <1> Movie Explorer <5> Mushu: the output panel will tell you where the error is when you publish, what scene, layer, frame and line <5> unless its' not reporting an error <5> heh <3> it does ... but i don't know how to view that line <3> **Error** Scene=the body plan, layer=Complete Body, frame=90:Line 1: Mouse events are permitted only for button instances
<3> on (release) { <1> whyley it works here, whats your error <1> llook on frame 90, there must be an a on the frame 90 keyframe <0> yep go an a <0> got <3> ok .. what does a stand for .. action script? <1> whyley put myFunction("hello whyley"); on the NEXT line <0> k <0> ahhh works good now <1> anyway, i was only showing you that to show you what () does <0> thats perfect <0> i got it <1> nice :) can you explain to me what () allows you to do? <0> i dont really understand the myfunction stuff but good enuf <6> it allows me to put things in paranthesis <1> okay, well you will get it later on <1> whyley if you wanna keep learning a good place to start is http://www.actionscript.org/tutorials.shtml <0> so if myfunction is function now and myfunction is defined as whyley.... dude i still dont get it... becuz the original piece is on press <0> so why does it do it right away... it doesnt wait for on press <5> brainy, whaddap <6> yo fearx, nothing much, how about you? <5> meh, just trying to pump out some prawjex <6> ah <1> whyley forget about the onPress for now <0> command is on press right? <6> morning time for me, trying to unglue my eyelids <0> is each line its own command? <0> are we ***igning a function to the frame? <5> brainy, use lighter fluid <7> afk bbl <1> see how both the code looks like function () { }; <0> yes <1> no whyley, listen stay with me for a second <6> i'll try that thanks <0> i'm with the function thing <5> no need to thank me, just doing my part <1> okay, now you see how we have test_but.onPress <0> yep <1> onPress , is a special method that belongs to test_but <0> ahhhhhh ok <0> so does myfunction belong to the frame? <1> and so when you press test_but, it tells the function code to run whatever is inside { and } <1> yes it does <1> it just is <0> ok.... perfect <0> now i get it <1> myFunction is a name <0> oh <1> and instead of using onPress to call its function code <1> we call the function code by saying myFunction(); <0> whats mysentence? <1> thats a reference name to a variable <1> http://www.actionscript.org/tutorials/beginner/variables/index.shtml <1> so when we call myFunction("Hello whyley"); , see how in myFunction = function(mysentance) { }; <0> and we defined the variable in trace? <1> see BOTH of the () <1> no the variable is defined in the () <0> oh so we defined myscentence as hellowhyley <1> yes :D <0> buddy <0> your the man <0> the most help ive had on the internet <1> anyway, you dont need to knowthat for your button <0> thanks <0> yea... but its good to know <1> but thats what the () is for :) <1> no worries :P <1> so can you show me what your button code will look like to make me goto google <0> i could spend the next week reading tutorials and wouldnt figure that out <0> tutorials arnt the way i learn <1> well socratic learning is the best way to learn :) <0> test_but.onPress = function () {trace(http://www.google.ca);} <1> sorry thats not it <0> dude
Return to
#flash or Go to some related
logs:
#linux-noob #3dsmax #microsoft #beginner #politics #computers #linux-noob #beginner play scrablle
maple missing hostid
|
|