
What is the bare minimum that needs to be passed to createObj() to create a graphic object? var newObj = createObj("graphic", { imgsrc: Straight[0], width: 128, height: 128, layer: "gmlayer" }); Straight[0] contains the url string obtained from inspecting the image library pane for a particular object. newObj is coming back undefined. Am I overlooking some formatting thing?