@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11



Comments:

<0> I just tried it
<1> this i know
<0> holy crap
<0> and the code is so clean
<2> if I want a bunch of buttons to do a similar thing ... lets say I have a button for every letter of the alphabet. and when I push the button I want the letter pressed to play that sound...
<0> I found this other temp thing on the web and it was like 400 lines of code to do what you di in like 8
<2> how can I combine the actionscript for all 26 buttons into one tiny little chunk of code?
<3> WOOOT I GOT IT, HORIZONTAL PLATFORMS IN MY GAME
<3> (sorry, been ****nig witht aht forever)
<2> lets say each button instance is named simply as the letter it represents ('a', 'b', etc)...
<4> @stonge: do all the letters play the same sound?
<1> that'll be $100
<2> and each .mp3 for each letter is ID'd as its corresponding lteter 'a', 'b', etc...
<0> dang
<2> each letter, when pressed, corresponds to a voice saying that letter
<0> those 3 cd's are prob worth around 1200.00 does that make us even?



<4> @stonge: you could have a little bit of code in each button registering itslef with a button array
<2> hmmm
<0> wow this works so perfectly
<2> I'm very new to actionscript - but I know a little bit of other programming/scripting languages.. I was kind of wondering if there was a way to have a small chunk of code ***ociate itself with whichever of the 26 buttons is pressed.
<2> is that not possible?
<0> where do you live. you looking for a job in chicago by chance?
<4> then run a for statement chnaging the event handler to say "snd.attachsound(this.letter.text + ".mp3")
<1> nope
<1> i live in southwestern indiana
<0> cool
<4> then snd.start
<1> i've only been to chicago once
<0> you like mudvayne or blueman group
<0> I can get you VIP tickets
<1> not that i know of
<0> k
<1> i don't do concerts anyway
<0> k
<1> i have friends who do
<1> it's just not my thing
<2> because - this script will ultimately involve a bit more code related to each letter button ... so I was hoping there was a way to keep it as streamlined as possible.
<0> well if your ever in chitown. I can get you into clubs free and etc
<0> I do VJing
<0> on the side
<1> cool
<0> brb
<4> that is streamlined
<1> now if you ever happen across tickets to see Utada Hikaru or The Pillows i may be interested ;)
<5> Hey. Question: I'm importang an external image in actionscript as a movie using loadMovie. I want to cut out part of the image (specifically, clip a triangle out of the upper left corner). Is there a way to do that in actionscript? The background-image is a gradient, and the image is getting moved around, so I can't just draw a solid color over it.
<5> Like, is there a way to make only a certain _region_ of a flash movie transparent?
<0> sure.. use a mask
<0> inverted
<6> yea setMask()
<6> mc.setMask()
<5> Huh...cool, I'll try it. Sorry if this was noobish, I'm more a programmer than a flash user, I just got drafted to modify it. Heh.
<1> Flag_____: so why did ya wanna know if i was lookin for a job, you offerin?
<0> I am really impressed with how clean this code is!
<0> You really have good product
<0> clean
<1> yeah i know
<1> you should see my game
<0> better than most I think
<1> in all seriousness, there are several people here that are much better than i am
<0> you should see this fla I was trying to go from
<1> SHiZNiT for example
<0> thats amazing....so much to learn
<0> I'm good at visual and audio but really need to develop some good scripting skills
<0> with it was easy like html and css
<0> wish
<1> i'm good with graphics/animation and scripting
<1> i **** at audio
<0> great combo
<0> you mess with video animation and 3d?
<1> i used to
<0> like AE and etc
<1> haven't in like 5 years though
<0> I love the new AE
<4> i know
<0> I like sequencing and etc
<1> the past three years i've been working on sites and this game
<4> am using it now



<0> cool
<1> game development is my p***ion
<4> cool, what game youw rokign on?
<0> that would be akilelr job. My friend works with george lucas on films and video games
<0> he's an animator
<1> nice
<1> the thought has crossed my mind to seek a job with Tri-Ace
<1> i'd rather make my games myself but i'm so antsy to get started on bigger productions that i've thought about workin with them instead
<0> I could get you in touch with my friend he might be able to help steer you
<1> i'll keep that in mind
<0> I'll just post his email tonight with links to the cd's
<1> we'll see how my current gaming community does when i take it fully live
<0> proabbly around 8
<0> cool
<1> ok, in the meantime i need to take off
<0> you'll have his email if you need it
<1> ja
<0> me 2 thanks again ....Rock!!!
<7> wtf does $#174; parse but $#153; doesnt in a dynamic html field using loadvars
<2> what does it mean if String(trace(this)) returns "_level0" .. I have the instance name set to a letter.
<2> I need 'this' to return the instance name - or I need SOMETHING (other than 'this') to return the instance name.
<5> Wait, am I doing this mask correctly? I created a movie clip, drew a black triangle, and applied that clip to the object with setMask(). But nothing appears to have changed.
<2> when I click a button, I want the buttons' instance name to appear in my trace dialog box ... so on(press) { trace(WHAT?); }
<4> sorry, i dunno why its not working
<2> thats ok...
<2> I'm probably gonna give up on flash again :) the manuals and books that I have do not help me either.
<4> try moving them all into a movieclip
<2> I will probably resort to that in the end.. but I just want to understand why I have to name my buttons twice, and then can't access their names from actionscript.
<4> no I mean copy and paste them all into ONE MC
<4> and give that an instance name
<8> !help
<4> actually it gives the parent
<9> on(press) { trace(this._name); }
<4> shiznit, that gieves a blank output lin
<9> ya
<9> cant do from 'on'
<9> write script on frame
<9> vs on the clip
<9> and will work
<9> name button instance btn_mc or such
<9> and on frame (not button) where button is ... put btn_mc.onPress = function() { trace(this._name); }
<9> will work fine
<9> scope is different (automatically points to parent) when code is 'on' the button
<4> if you use this and not this._name, you get the whole path, not just the name
<2> SHiZNiT - that works... is there a way to get that function() to apply to a group of buttons without writing the a.onpress = , b.onPress=, c.onPress= ... etc.
<4> i was thinking having an array with button paths , then runnin g a for statement adding the onPress
<5> How should I diagnose why this setMask() is not working? It just doesn't seem to be applying the mask to the movie I apply it to...
<2> what is the syntax for calling and running a function?
<2> I tried this: A.onPress = function.letters(this._name);
<2> and then I put this below it: function.letters(this._name) { trace(this._name); }
<2> both are in frame 1 actionscript
<2> I figured I would write a function for my group of buttons, and just have one line for each button to call that function.
<9> stonge: filterMethod = function() { trace(this._name); }; Button.prototype.onPress = filterMethod;
<9> remove script that ***igns onpress to button
<9> use above
<2> ok :)
<2> it iddn't work until I removed 'prototype.' - but it works!
<2> thanks
<9> um
<9> you need prototype
<9> Button is as is - you dont change the name
<9> lol
<2> I don't think I understand..
<9> frame1:
<9> filterMethod = function() { trace(this._name); }; Button.prototype.onPress = filterMethod;
<9> exactly as is
<9> do not change anything
<2> doesn't work :|
<2> ok.. hold on
<9> yes it does - as1/as2 .. works fine
<2> oh sweet
<2> you rule
<9> somethin like that


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #flash
or
Go to some related logs:

#beginner
#beginner
mo-oz irc
drivers scanjet5500
#windows
europeian porn
#hardware
#politics
#beginner
#windowsxp



Home  |  disclaimer  |  contact  |  submit quotes