hi,
i am trying to show a progress bar in my app… i have sprites showing the various stages of the progress bar…but when i show the sprite in the stage/canvas, it appears as very small…
i used the SET sprite’s HEIGHT block and SET sprite’s WIDTH block, but still the size is not changing …please help
is it impossible to fill the entire canvas with the sprite?..when i try to set sprite’s height and width to the height and width of the canvas, its not even visible!..what should i do to fill the canvas with the sprite?
yes @domhnallohanlon , i am updating the progress bar with timer countdown…
but before that, i am first trying to show it in the canvas…The FixCanvas function is being called in Screen-Opens-event…the canvas is only in a small portion of the top part of the screen…canvas is not filling the entire screen as shown in available tutorials …but when i try to show a sprite its not visible…
the variables cxRegress, cyRegress are calculated by getting device-width and then calculating the percentage of width and height of the column, containing the canvas
If this is the first attempt to use sprites, i advise to start with a canvas that is the size of the screen and provide x and y coordinates that you know are in the visible area of the screen to see your code in action.
Having done this successfully, start to implement your requires code step by step to know where it fails,
You are showing only a function which is part of your code and design which makes it difficult to suggest anything at the moment.
this is a great idea…thanks @domhnallohanlon …but in my progress bar i have logo-picture as the moving tip of the progress bar…its like pointer in a slider…thats why i am left with only option to use canvas…i will create a project and post the link here…