New Corona issue

I get this message but I don’t have that in my code. I also get a transparent body to show as white. This is strange.
WARNING: object.stageWidth has been deprecated. Use object.contentWidth instead
[import]uid: 8192 topic_id: 4293 reply_id: 304293[/import]

Ok. About the object fill color it seems that now you have to declare it, before by default it was transparent now it defaults to white full alpha.

Still getting the stageWidth Error though. Not in my code. I am doing a bbedit multifile search can’t find anything with stageWidth or stageHeight [import]uid: 8192 topic_id: 4293 reply_id: 13336[/import]

Regarding the new default color values for vector objects, please see the API “tuneup” docs:

http://developer.anscamobile.com/reference/tuneup

Regarding the stageWidth/height warning, I’m not sure why you would be seeing that if your code doesn’t contain any reference to those properties. Are you sure you searched everything? :slight_smile: The warning can be ignored since the old syntax will work, but it’s still strange…

Tim [import]uid: 8196 topic_id: 4293 reply_id: 13362[/import]

@Tim,
Thanks for the info. There is so much to catch up with, in this new release. Wow.

About the stageWidth issue. It’s strange It think there must be something else that has been deprecated but is sending out the wrong message. Something with touch events maybe? I am trying to chase it down. It happens at startup and when I press my jump button, in the game. [import]uid: 8192 topic_id: 4293 reply_id: 13383[/import]

For your button, are you using ui.lua? If it’s an older version (not the one in the latest SDK) then it would be using the deprecated APIs. If that’s not it, could you share your button code?

There IS a lot in this release!

Tim [import]uid: 8196 topic_id: 4293 reply_id: 13386[/import]

I had this problem too and it was in fact caused by ui.lua. Search for “stageWidth” instead of “object.stageWidth” to find it. [import]uid: 9422 topic_id: 4293 reply_id: 13421[/import]

You are right. That’s where it was. Weird why bbedit didn’t find it. Now I have another thing to investigate. Where can I find the lates ui.lua? [import]uid: 8192 topic_id: 4293 reply_id: 13422[/import]

Yeah, I think Ansca needs to package up all those “generic library” type files when they do a new release so we can grab them all at once instead of searching through the new sample code for files that might have changed.

Jay [import]uid: 9440 topic_id: 4293 reply_id: 13466[/import]

Or we can let Corona Project Manager manage them for us :wink:

Duly noted.

c [import]uid: 24 topic_id: 4293 reply_id: 14318[/import]

“Or we can let Corona Project Manager manage them for us ;-)”

Well, sure, that’s *probably* what I was thinking, but I didn’t want to come off as too promotional. :slight_smile:

Jay

PS - Which makes me think of a (possibly) cool feature for CPM: import new versions of libraries from the web when they are released. *Click* and the new one is downloaded and installed and the old one archived (in case you need it for something). Hmmm…
[import]uid: 9440 topic_id: 4293 reply_id: 14321[/import]

Is there even a consistent place where all Ansca recommended libraries are available? [import]uid: 1560 topic_id: 4293 reply_id: 14414[/import]