View Single Post
08-27-09, 09:57 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
If it is all in the same file, then you can use the local variable "cp" instead of the global "cp_frame"

If the frame is being created in one file and accessed in another, you can access it like this...

local cp_frame = _G["cp_frame"];

which looks in the global table for the global variable named "cp_frame"
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/