Netscape and split() problems
I have a page that has Flash and Javascript talking to each other. Flash sends a string to the javascript to be spilt up after each comma in the string. I am using a javascript alert so I can verify that each one is there. This works fine in IE. Netscape doesn't do the alerts at all.
The string I am sending looks something like text1,text2,text3. The script that splits it up looks something like this
function splitString(args){
sets = args.split(",");
alert(sets[0]);
alert(sets[1]);
alert(sets[2]);
}
I can't send each one the the function as a different variable from Flash because the Flash FSCommands don't work like that (I tried it and Flash didn't like it).
The trouble with doing something right the first time is that nobody appreciates how difficult it was.
Abhishek Reddy posted this at 11:41 — 9th December 2001.
He has: 3,348 posts
Joined: Jul 2001
Could you post the actual code (and an example string as flash sends it)?
I have a hunch that sets = ... requires "var" before it. var sets = .... But I'm not sure...
Vincent Puglia posted this at 18:08 — 9th December 2001.
They have: 634 posts
Joined: Dec 1999
Hi,
The splitString function you posted looks good to me, but...a link to the actual page (or as Abhishek said, actual code) would be better.
While I'm not a flasher, I did read somewhere that you should set "wmode=transparent"
Vinny
Where the world once stood
the blades of grass cut me still
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.