Vector fill with image sheet

I am trying to fill a rounded rectangle with a particular frame of an image sheet, but when I run this code, the entire image sheet is used as fill.

[lua]

local mySheet = graphics.newImageSheet(“starburst.png”, {

    width = 100,

    height = 100,

    numFrames = 48,

})

local imgRect = display.newRoundedRect(100, 100, 100, 100, 30)

imgRect.fill = {type = “image”, sheet = mySheet, frame = 1}

[/lua]

Is this the correct way to do this, or am I missing something?

thanks,

–John

I reported a bug sometime ago where this was happening and they fixed it for rectangles but not the other objects.

Although I didn’t try it, it appears a RoundedRect also suffers with the same problem, and at a quick glance your code looks fine.

http://forums.coronalabs.com/topic/41215-fixed-fill-with-imagesheets/

I support texture fills in my Level Director editor but it is annoying that the exported results are not replicated in Corona.

Thanks Retrofit,

I thought I was missing something, but I guess I will have to wait until CL comes out with a bug fix.  I appreciate your help.

I reported a bug sometime ago where this was happening and they fixed it for rectangles but not the other objects.

Although I didn’t try it, it appears a RoundedRect also suffers with the same problem, and at a quick glance your code looks fine.

http://forums.coronalabs.com/topic/41215-fixed-fill-with-imagesheets/

I support texture fills in my Level Director editor but it is annoying that the exported results are not replicated in Corona.

Thanks Retrofit,

I thought I was missing something, but I guess I will have to wait until CL comes out with a bug fix.  I appreciate your help.