Welcome to WebmasterWorld Guest from 54.145.39.186

Forum Moderators: open

Message Too Old, No Replies

Flash split array on , but ignore htmlentities

     

Tommybs

3:49 pm on Oct 30, 2009 (gmt 0)

5+ Year Member



Hi,

I'm trying to split an array in as3 and I want to split it on ",". I also want to be able to include "," as part of the text in the array but using the correct html code. Now in IE this seems to work fine, but in FireFox the split script doesn't seem to get executed correctly. It also doesn't seem to like any other htmlentities. e.g if I have   it also throws out the split.

Any help on this would be appreciated.

many thanks

rocknbil

5:30 pm on Oct 31, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



A bit confused, you say in AS3 which should be executing directly in the Flash, which would have little to do with the browser rendering. Can you post some simplified anonymous code and the general task flow?

Tommybs

5:55 pm on Oct 31, 2009 (gmt 0)

5+ Year Member



Hi, sorry I forgot I'd even posted here. I'd worked out what the problem was. Flash vars were being passed to a swf using swfobject. The text that was being sent as a var contained html such as   whereas it just needed to be url encoded instead e.g. %20.It seemed to be working fine in IE7 but not in FF but I wonder if that was just down to IE displaying a cached version of the page which is why it appeared to be working.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month