Re: [Flashcoders] Search in textfield AS2

2007-06-11 Thread Mikko Törmälä
var llat:String = 6.23456; if (llat.substr(0,5) == 6.234) { trace(ok); } else { trace(not found); } - Mikko Törmälä Hi How can I do to find 5 caracter in the 5 beginning caracter of var ? Exemple : var llat = ³6.23456² how can I trace ³ok² if there is ³6.234² in llat var

Re: [Flashcoders] splitting the list?

2007-05-24 Thread Mikko Törmälä
to a local folder on my machine so the messages don't use up space in my IMAP mail account. » Mikko Törmälä » Flash Developer » FWD HELSINKI » tel: +358 50 352 9770 Count Schemula wrote: Consider using a Yahoo! or gmail account specifically for this list. Helps a lot by threading e-mails

Re: [Flashcoders] _url

2006-05-26 Thread Mikko Törmälä
Create a container swf on the showing server for the other swf. Then grab the _url from the container swf. If this isn't possible for you (ie. you can't place swfs on the showing server) I think the only option left is to pass the url via flashvars to the embedded movie. Mikko Törmälä Hey

Re: [Flashcoders] multiple Key.isDown weird behaviour

2006-05-19 Thread Mikko Törmälä
While it could be because of the keyboard you're using, I remember that in some older systems there were controls in the BIOS for setting how the keyboard acts when pressing multiple keys. When I say older systems I mean 486. Not sure if any of those have survived to this day. MT I've

Re: [Flashcoders] Image loading weirdness

2006-05-18 Thread Mikko Törmälä
the flash app is in the webroot folder. If you run the flash app through the webserver local paths wont work. Regards, Mikko Törmälä My app, in my test enviroment (which runs at localhost:8080) used to load images that were output by a php script. Now, I´m trying to load the image directly from

Re: [Flashcoders] Image loading weirdness

2006-05-18 Thread Mikko Törmälä
Hi Marcelo, var _domain:Array = _url.split(/); _domain.pop(); var swfPath:String = _domain.join(/); trace(swfPath); This will return the path to your flash file. Regards, Mikko Törmälä Yes, I have to use a webpath like http:// ... , I´ve already solved the problem. And if you think better

Re: [Flashcoders] Pass variable to asp page

2006-04-18 Thread Mikko Törmälä
If I understand correctly, you wish to send the mail in the background? Use LoadVars send() to send the variables to the .asp -page. If you use LoadVars sendAndLoad() you can get data in return from the asp script to let flash know if your mailing was succesful and then present that

Re: [Flashcoders] Howto randomize the elements of an array?

2006-04-18 Thread Mikko Törmälä
I'd do it like this: Take a new array, take a random element from the oldArray and remove it from the oldArray. Then put it as the next element in the newArray. like so: var oldArray:Array = [item1,item2,item3,item4,item5,item6]; var newArray:Array = []; while (oldArray.length) {