use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.all "moral rights" that you may have in such content have been voluntarily waived by you.you are the sole author and owner of the intellectual property rights thereto.To the extent there is any conflict between SAMSUNG's Privacy Policy and these Terms of Use, these Terms of Use shall control with respect to the CRR Service.īy submitting any content to SAMSUNG, you represent and warrant that: These Terms of Use govern your conduct associated with the Customer Ratings and Review service offered by SAMSUNG (the "CRR Service"). I have also tried to dynamically add the image using addChildAt(img,0) and also forecefully made the index to 0 by setChildIndex(img,0) but no use.CUSTOMER RATINGS AND REVIEWS TERMS OF USE I knew adding it at first lines makes it first child meaning index = 0 meaning always stays back side but surprisingly, its not just making its' children canvas invisible but also occluding the other controls which are inside the other canvas. I have added this as the first line in the problem canvas, bg is appearing and it is covering remaining children.
Q2) its actually puzzle, surprisingly the bg image is appearing to almost to the right corner (at around 4000px) when it is placed in problem canvas (in my original app, test1.mxml in dummy) but appearing properly when i moved the bg to its child (test1Child in the test app)
Q1) how to make the bg appear in the center of the parent when bg image is smaller than the container(parent/canvas) now change the FULL_GAME_SCREEN_HEIGHT to 1600 (size of the bg), bg is shown perfectly. have a dummy image of 4096x1600 and run the app you will see the bg is laid some where in the center (you can see the image if you scroll the app. Replace FULL_GAME_SCREEN_WIDTH and FULL_GAME_SCREEN_HEIGHT with 4096. * test1Child.mxml - child of child1 (no problem, but moving the bg from test1.mxml to here isnt making any difference in this test app but making diff in my originial app) Īs you can see test1 and test1Child are same size and larger (huge) than the main appĬhild2 and child3 are 100% width and height ** test1.mxml - Child component (the problem 1) * I could replicate the issue so that you can try this in your environment and see what is happening The issue seems to be with the flex trying to lay the image in the center of the canvas. Earlier it was larger than the bg (more than 2.5x). I narrowed down the issue by changing the FULL_GAME_SCREEN_HEIGHT to the actual size of the bg (1600). I have tried created a dummy app simulating the scenario with dummy code. I was assuming it adds at 0,0 but it looks like its not. It seems like the problem with how/where flex adds the bgimage. If move the bgimage to problem canvas it doesnt appear atall again. I have just modified the code, I turned on scrolling policy of main application and I have removed the bgimage from problem canvas to its child canvas whos size is also same as problem canvas and now bg appears roughly at 2x (1400) of the app screen height and slightly to the right of the screen (around 200px).
I have flex 3.5 app, I have set height and width to 648x1008 I am trying to figure out to fix the issue where the background image of a canvas is not appearing. but still there is mystical puzzle unsolved which I am thinking is related to how flex places the child. so the new question is "how to position bg image to the left top corner when the bg image is smaller than the canvas (parent). figured out that the flex tries to place the bg in the center of the container (canvas). Update1 please read the updated para below