Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

network request event phase
Started by afarazmand Jan 12 2015 07:28 AM

No replies to this topic
network request event phase
[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

afarazmand

[GLOBAL: userInfoPane.html]
afarazmand
  • Enthusiast

  • 32 posts
  • Corona SDK

I dont get any response using the following code for event.phase while I get response when changing "began" to "ended". Shouldn't be a response to "began" and "progress"?

 

local function networkListener( event )
 if event.phase =="began" then
   phase = display.newText( "test", 150, 350, 250,500,native.systemFont, 16 )
  
  end
 
end
 
network.request( "https://www.google.com", "GET", networkListener )

 




[topic_controls]
[/topic_controls]