@# 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



Comments:

<0> a
<1> is it color['a'] = "0x..."
<1> or color[a] = "0x..."
<0> color[a]
<1> so there's your mistake
<0> oh
<1> define it as color['a'] = "0x..."
<0> k ill try
<1> actually
<1> on a 2nd thought
<1> AS doesnt take ***ociative arrays
<1> so u need to work with index arrays
<1> what u really should do is
<0> yer it compiled ok but still broke
<1> u should work with indexed arrays
<0> long storyu but it's ewasier in thiks code to uise a b c



<1> actually
<1> hmm I am a bit confused
<1> wait let me just try it
<0> sec f1
<0> it works 1 sec brb
<1> yeah
<1> it takes ***oc arrays ok
<1> so yes
<1> ur definition is wrong
<1> color['a'] =
<1> color['b'] =
<1> that's the right syntax
<2> ello F1--
<1> cus color[a] is taking a variable
<1> which is not making much sense in a declaration
<1> hey smurf
<0> back
<0> F1 that was the problem
<2> if you're going to use an ***ociative array why not just use an object? it's the same thing
<2> when you use an ***ociative array like that flash treats it as an object
<0> i had some other code in the loop i put in for this debugging that made the first p*** of that suggestion fail
<0> but fixed that up, modified the array to how u said and it works well
<0> thanks:)
<1> Smurf it costs less and its exposed to Array properties
<2> true
<2> never been a fan of ***ociative arrays myself
<1> yeah I use index 90% of the time
<1> but ***oc arrays are handy in some situations
<0> in this situation
<0> the for loop defines a, b, c, etc
<0> and i need to ***ociate that to an array
<0> so rather than use indexed, ***ociative is perfect
<0> i just name the vars the same as the data input
<1> I am kinda getting out of practice with AS
<1> havnt coded in AS for a while now
<0> ahh
<0> i dont do much flash
<0> but i only do it in AS
<0> when i do
<0> like im writing this realtime grapher in flash
<0> the main layout is in flash, bt the rest is in AS
<0> it uses the BitmapData object, lineTo's and matrix object to scroll
<1> sounds cool
<1> I wrote one in SVG before
<2> sounds pretty neat :)
<1> exactly a graphing calculator
<1> computes scientific data and plots the graph
<0> yea.. well this is seriously my first p*** at AS, so ive learnt a lot.. found a few bugs too with the BitmapData object i need to report
<0> i dont think it's been tested to its full capacity haivng just been release din v8
<0> nice F1
<0> my one plots traffic input from iptables dumps
<1> that was back in college though
<3> joobie what kinda bugs? :)
<0> perl serverside script parses the iptables output of byte counts.. sends it down the wire via XML to flash and flash parses, plots, bitmaps the graph and scrolls the bitmap... loops through that process to give realtime graphing.
<0> Smily, there's a problem with BitmapData.draw and BitmapData.attachBitmap
<0> in my testing i did the following:
<2> orly?
<0> yea
<0> it only happens when u use beginFill
<0> in my testing i made a parent movieclip
<0> within that on the left i put one child movieclip and on the right i put another child



<0> i draw to the child on the right, then snapshot the parent, then attach the parent snapshot to the mc on the left
<0> (repositioning it using matrix so that it fits)
<0> it works fine if i use lineTo() when drawing to the mc on the right
<0> but if i set a beginFill on the left and right mc within the parent, it screws up
<0> it lets u attach like 2-3 times
<0> but then it stops attaching
<0> it's very weird.
<0> definitely a bug though, because i've cut down my code just to this function and i simply replace beginFill wlith the lineTo and it works fine...
<0> the weirdest part is that it works like 2-3 times and then it stops working
<0> like it lets you attach 2-3 times and then anymore then that it doesnt wnat to do.
<2> that's weird joobie
<0> ya
<0> ill see if i have an example i can post
<0> ok we've established im not the cleanest coder:P but here is a link
<0> maybe im missing something.....
<0> http://pastebin.com/718463
<0> run it as is, press a few keys on the keyboard and the bitmap will scroll
<0> i put some comments in on how to mod it so it's doing the beginFills
<0> comment out one line and uncomment two and then run it again
<0> and u'll see it screw up
<0> worst thing is, i was doing all my dev work using these beginFill and later realised i had it working for a while, it was just the damn beginFill screwing up:P
<0> btw it requires flash 8 for that bitmap lib
<0> guys im having problems with this variable ***ignment - hope someone can help
<0> attr = a;
<0> moo + a = 100;
<0> okok
<0> i stuffed up
<0> start again:P
<0> var attr:String = "a";
<0> var moo + attr = 100;
<0> trace(mooa); <-- should equal 100
<0> the problem is with line 2, in that i dont know how to make the variable moo<expand attr>
<0> any help appreciated, looks like a simple problem but duno how to fix it
<2> array accessors
<2> wait
<2> eval in this case
<2> or this[moo+a]
<2> !find -c eval
<4> eval == http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary200.html
<0> thanks Smurf
<0> SmurfMX, if i use this[moo+a], how do i trace that?
<2> trace(this[moo+a])
<0> i tried trace(mooa), didnt work.. also this.mooa, this[mooa]
<2> or whatever
<5> trace(this[moo+a])
<5> what up smurf
<5> :)
<2> not much
<2> tidying up a cl*** that's bout it
<0> SmurfMX, i want to reference the actual variable name to trace though
<0> like a = baa
<0> eg.
<0> a = baa;
<0> this[moo+baa];
<2> you can't afaik
<0> ahhh
<0> no worries Smurf, thank you
<2> Sp8sMunkE i got a mushroom cake for my bday :) ready to fruit, i should have some starting within a week :D :D :D
<6> joobie: tried eval?
<5> :o
<2> i'm soaking it in water right now, for about 24hrs, then i put it in the growbox :)
<2> nah, just enough for an 8th for me and my gf :)
<5> punk
<5> well
<5> enjoy ;)
<2> oh boy i will
<2> going to try this lemon juice trick
<2> it breaks down the psylicybin into psylocin before ingestion it's supposed to double what you feel, my buddy did it, said it worked really well
<5> :o
<7> \m/
<5> G o/
<7> Sp8NK!
<5> :D


Name:

Comments:

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






Return to #flash
or
Go to some related logs:

#solaris
#nhl
quick riz
i hate anarxi
#politics
repeating tiles
#gentoo
Flash 8 loading images drop SHadow
#beginner
unable to load firmware FC5



Home  |  disclaimer  |  contact  |  submit quotes