Yes.
https://www.mediafire.com/file/qjdeost2pol3w6h/MyFirstApplication.rar/file.
I am personally not comfortable with opening files from such locations, especially with URLs like that.
You can just post the code here on the forums by using the code formatting tools, i.e. the <> button.
But in the project existent a few pages so to send all the code in the project?
In such a case, you can also zip it and upload it to the forums.
But generally you’ll want to post the code here. If it is in different files, you can add different code blocks for them. Do note, however, that you shouldn’t just dump thousand(s) of lines of code here, but try to isolate the problem area and post that.
I cant to attach zip file.
Please
Hello,
I have developed an app by corona sdk.
When I run my app in my phone my app crashed and the app move very slowly.
hope for help
ori
In addition I get these messages:
11:53:15.987 WARNING: C:\Users\ori\Documents\Corona Projects\MyFirstApplication\RGQ6.lua:107: file ‘kishueCA.png’ does not contain a valid image
11:53:15.987 WARNING: C:\Users\ori\Documents\Corona Projects\MyFirstApplication\RGQ6.lua:107: file ‘kishueCA.png’ does not contain a valid image
11:53:15.987 WARNING: C:\Users\ori\Documents\Corona Projects\MyFirstApplication\RGQ6.lua:107: file ‘kishueCA.png’ does not contain a valid image
11:53:17.493 WARNING: C:\Users\ori\Documents\Corona Projects\MyFirstApplication\RGQ6.lua:107: file ‘kishueCA.png’ does not contain a valid image
and a lot of warnings
What to do? Please
That’s a pretty straightforward error message. It is literally telling you that “kishueCA.png” does not exist.
Are you sure you’ve got the path and filename for the image correct? Is the extension correct?
Also, we can’t help you without seeing any code. Can you just copy the problem areas here using the code formatting tool <>?
ok
local composer = require( "composer" ) local RGQ6 = composer.newScene() -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not recycled) via "composer.removeScene()" -- ----------------------------------------------------------------------------------- -- ----------------------------------------------------------------------------------- -- Scene event functions -- ----------------------------------------------------------------------------------- -- create() function RGQ6:create( event ) local sceneGroup = self.view -- Code here runs when the scene is first created but has not yet appeared on screen end function RGQ6:show( event ) local sceneGroup = self.view local phase = event.phase local function kishueCAClick(e) kishueCA:setFillColor(0, 255, 0) local options = { effect = "fade", time = 2000, params = {name = "Ori", age = "12"} } composer.removeScene("RGQ6") composer.gotoScene("RGQ7", options) end local function kishueA1Click(e) kishueCA:setFillColor(0, 255, 0) kishueA1:setFillColor(255, 0, 0) local options = { effect = "fade", time = 2000, params = {name = "Ori", age = "12"} } composer.removeScene("RGQ6") composer.gotoScene("RGQ7", options) end local function kishueA2Click(e) kishueCA:setFillColor(0, 255, 0) kishueA2:setFillColor(255, 0, 0) local options = { effect = "fade", time = 2000, params = {name = "Ori", age = "12"} } composer.removeScene("RGQ6") composer.gotoScene("RGQ7", options) end if ( phase == "will" ) then -- Code here runs when the scene is still off screen (but is about to come on screen) local background = display.newImageRect("Images/ddfdfsdg.png", 500, 600) background.x = display.contentCenterX background.y = display.contentCenterY sceneGroup:insert(background) local kishueWho = display.newImageRect("kishueWho.png", 400, 600) kishueWho.x = display.contentCenterX/1 kishueWho.y = display.contentCenterY/4.5 sceneGroup:insert(kishueWho) local kishueP = display.newImageRect("kishueP.png", 600, 600) kishueP.x = display.contentCenterX kishueP.y = display.contentCenterY sceneGroup:insert(kishueP) elseif ( phase == "did" ) then -- Code here runs when the scene is entirely on screen kishueA1 = display.newImageRect("kishueA1.png", 300, 500) kishueA1.x = display.contentCenterX/3 kishueA1.y = display.contentCenterY/0.6 sceneGroup:insert(kishueA1) kishueA2 = display.newImageRect("kishueA2.png", 300, 500) kishueA2.x = display.contentCenterX/1.03 kishueA2.y = display.contentCenterY/0.6 sceneGroup:insert(kishueA2) kishueCA = display.newImageRect("kishueCA.png", 300, 500) kishueCA.x = display.contentCenterX/0.6 kishueCA.y = display.contentCenterY/0.6 sceneGroup:insert(kishueCA) kishueCA:addEventListener("tap", kishueCAClick) kishueA1:addEventListener("tap", kishueA1Click) kishueA2:addEventListener("tap", kishueA2Click) end end -- hide() function RGQ6:hide( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then -- Code here runs when the scene is on screen (but is about to go off screen) elseif ( phase == "did" ) then -- Code here runs immediately after the scene goes entirely off screen end end -- destroy() function RGQ6:destroy( event ) local sceneGroup = self.view -- Code here runs prior to the removal of scene's view end -- ----------------------------------------------------------------------------------- -- Scene event function listeners -- ----------------------------------------------------------------------------------- RGQ6:addEventListener( "create", RGQ6 ) RGQ6:addEventListener( "show", RGQ6 ) RGQ6:addEventListener( "hide", RGQ6 ) RGQ6:addEventListener( "destroy", RGQ6 ) -- ----------------------------------------------------------------------------------- return RGQ6
You should read through the Composer guide at https://docs.coronalabs.com/guide/system/composer/index.html.
Out of curiosity, why did you rename scene as RGQ6? Scene is a short and clearly descriptive variable name, but RGQ6 is a mystery to me. If the filename is RGQ6, then alright, but you don’t need to rename the variable within the scene to that. Also, you can’t remove the scene that you are in currently, so you need to remove old scenes after you’ve moved to the next one.
Now, “show” and “hide” scenes have two phases, “will” and “did”. This means that both of those methods will run twice and so you are unnecessarily creating the three functions: kishueCAClick , kishueA1Click and kishueA2Click twice. It’s just unnecessary work for the engine. Generally, you’d want to move these functions outside of the scene methods, i.e. around the top of your code.
Still, the only clear bug that seems to be occurring in your code is that if those images don’t exist where you are trying to load them from, then the display objects can’t be created and then you’ll get crashes when you try to do something with them (since they were never created).
The image is in the folder where I load it
How can I upload my app?