Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

[Fixed] display.newText error "Bad argument #-1"
Started by ingemar Aug 08 2013 07:38 PM

2 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

	local textParams = {
		text="This is some text",
		x=160, y=50,
		width=320, height=0,
		font=native.systemFontBold,
		fontSize=12,
		align = "center"
	}

	local t=display.newText(textParams);
	
	--the above results in this error:
	--"Bad argument #-1 to 'newText' (Proxy expected, got nil)"

 

 



[TOPIC: post.html]
#2

walter

[GLOBAL: userInfoPane.html]
walter
  • Moderator

  • 726 posts
  • Alumni

I think that's b/c we're working in a branch and haven't merged in the new table style params for newText.



[TOPIC: post.html]
#3

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

That's what I thought... 

 

I've branched the repository of one of my apps and I'm in the process of converting it to Graphics 2.0 just to see how far I get.




[topic_controls]
[/topic_controls]