Welcome to WebmasterWorld Guest from 184.72.177.182

Forum Moderators: open

Message Too Old, No Replies

Flash split array on , but ignore htmlentities

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

Full Member

5+ Year Member

joined:June 21, 2007
posts: 316
votes: 0


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

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

Senior Member

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

joined:Nov 28, 2004
posts:7999
votes: 0


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?
5:55 pm on Oct 31, 2009 (gmt 0)

Full Member

5+ Year Member

joined:June 21, 2007
posts:316
votes: 0


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.