Problem:
You have a javascript array that likely has some duplicate values and you would like a count of those values.
Solution:
Try this schnippet out.
Problem:
You have a javascript array that likely has some duplicate values and you would like a count of those values.
Solution:
Try this schnippet out.
Category: JavascriptComments (11)
Edit: This just seemed to eventually start working for me out nowhere. I hate when that happens. If you’re having the same problem I recommend you go have a beer and come back to it later.
This is pissing me off. I have some Javascript that looks like this:
var boz = { thing: function(val) { alert(val); } }
I want to call it from Flash using ExternalInterface like this:
ExternalInterface.call("boz.thing", "what the shit!?");
…but that doesn’t work.
Somebody asked about this on StackOverflow (here) and in the accepted answer the guy says the code is basically just eval’d so it’ll work just fine. He has an example like this:
ExternalInterface.call("function (foo) { alert(foo); return true; }","test");
That doesn’t work either. I can only seem to get it to work with global function calls. Am I missing something? There certainly doesn’t seem to any examples of calling namespaced Javascript from Flash out there.
I’ll post back if I find out what’s going on.
Piece.Category: Actionscript, Flash, JavascriptComments (0)
If you try to call a function within Flash from Javascript and that function has the intention of calling a FileReferenceList.browse() it’s not going to work. It’s a security thing. You need to use an in-movie button. Even if you have the JS call a function which calls another function that calls FileReferenceList.browse() it’s still not going to let you do it. I wasted some time figuring this out. Just give up.
This guy had the same issue: http://kevinmusselman.com/blog/2009/01/multiple-file-upload-using-flash/
Category: Actionscript, Flash, JavascriptComments (0)
Problem:
You need to grab some information from the querystring of a URL using only javascript.
Solution:
Use some code I found!
Category: JavascriptComments (0)