Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

calling javascript function from datagrid

Posted on 2012-09-16
3
Medium Priority
?
311 Views
Last Modified: 2012-12-11
Hi, I have a datadgrid and i need to call a javascript function from a click.. I have the following but it throws up a Webpage error details:

Message: 'null' is null or not an object

i have set the allowScriptAccess="always" on the ebedded movie... I cant seem to get it to work?

heres the bit of code...

grid.addEventListener(ListEvent.ITEM_CLICK, clickHandler, false, 100); 
	
	function clickHandler(Event:ListEvent):void 
 	{ 	
                            ExternalInterface.call("myFunction()");
		trace(Number(Event.rowIndex));
 	}  

Open in new window

0
Comment
Question by:nthawkins1971
2 Comments
 
LVL 83

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 38406277
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 38678657
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question