Help Logs Database

Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Ircnet  |  Dalnet
Page: 1 2

<TRAvWORK> I thought there was a component that does that, but I don't find it again (if it has ever existed)
<hatOFF> can I attach text with attachMovie?
<hatOFF> sort of a stupid question
<hatOFF> can I attach text via actionscript to a movie clip?
<Louanav> hey is there anyone willing to look at my code and tell me if there is a way to simplify it?
<Idealist> Does anyone know a command that makes two variables swap values?
<freed[q4]> just right a little function
<freed[q4]> a void p*** by address function
<freed[q4]> back to q4 =p
<Idealist> ok, so the function would take one variable, set the value to a 3rd one... take the 2nd value, set it to a 4th one, then make 2nd = 4th, 1st = 3rd?
<Idealist> errr.. I mean
<Idealist> 1st = 4th, 2nd = 3rd
<salamalec> why not use an array instead of a 3rd variable? you stack all the datas in the array, and then you pick the one you need.
<salamalec> ex the 1st data is always at array[0], you want to swap it with the element in array[1], so yourVar = array[1];
<salamalec> i don't know, just sketching an idea.
<Idealist> this is taking place within a for() loop. old_item and new_item are both being set to random numbers, and then they are swapping.
<Idealist> so is that the easiest way to swap these 2 variables with each other? Creating 2 duplicates, then overwriting the originals?
<Idealist> i was sort of hoping there was a swapVariable() command that I didn;t know about
<freed[q4]> just use a void function you p*** by address the 2 vars, use one tmp var to hold var1, put var2 in oldvar1, put tmpvar in oldvar2
<freed[q4]> it would only be 2-3 little lines
<freed[q4]> you could even name the function SwapVariable(var, var)
<Idealist> yeah, I'm thinking I'll do that
<Idealist> works like a friggin charm. thanks guys
<Idealist> okay... similar question.
<Idealist> hmm.. wait nm
<hoax> im populating a textarea component from a text file
<hoax> is it possible to change the character encoding
<hoax> nevermind


Return to flash
or
Go to some related logs:

WCF12 linksys zaurus

Copyright © 2005 www.irclogs.ws. All rights reserved. » disclaimer » contact