
07-04-2011, 12:37 PM
|
| | CrackBerry Master Device(s): 9850 7.1.0.402 + PlayBook 16Gb Carrier: Verizon Pin: PM me for it! | | Location: Eastern Shore of MD Join Date: Sep 2008 Posts: 1,090 Likes Received: 119
Thanked 217 Times in 126 Posts
| |
Quote:
Thanks Ross. My question was not clear enough however. I really want to trigger an event (eg. show a different wallpaper) after the screen is touched. Would the loadscene tag accomplish this? Thanks again.
Chris
| Chris,
You won't be able to directly change the wallpaper, but you could simply add your own images for the background wallpapers and just switch them as the user clicks buttons: Code:
<image id="wall1" x="0" y="0" width="360" height="480" xlink:href="wall1.png" display="inline"/>
<image id="wall2" x="0" y="0" width="360" height="480" xlink:href="wall2.png" display="none"/>
<image id="wall3" x="0" y="0" width="360" height="480" xlink:href="wall3.png" display="none"/>
<rect id="wall1hs" x="10" y="10" width="30" height="30" fill="blue"/>
<set xlink:href="#wall1" attributeName="display" to="inline" begin="wall1hs.activate"/>
<set xlink:href="#wall2" attributeName="display" to="none" begin="wall1hs.activate"/>
<set xlink:href="#wall3" attributeName="display" to="none" begin="wall1hs.activate"/>
<rect id="wall2hs" x="50" y="10" width="30" height="30" fill="blue"/>
<set xlink:href="#wall1" attributeName="display" to="none" begin="wall1hs.activate"/>
<set xlink:href="#wall2" attributeName="display" to="inline" begin="wall1hs.activate"/>
<set xlink:href="#wall3" attributeName="display" to="none" begin="wall1hs.activate"/>
<rect id="wal3hs" x="90" y="10" width="30" height="30" fill="blue"/>
<set xlink:href="#wall1" attributeName="display" to="none" begin="wall1hs.activate"/>
<set xlink:href="#wall2" attributeName="display" to="none" begin="wall1hs.activate"/>
<set xlink:href="#wall3" attributeName="display" to="inline" begin="wall1hs.activate"/>
<rect id="walluserhs" x="130" y="10" width="30" height="30" fill="blue"/>
<set xlink:href="#wall1" attributeName="display" to="none" begin="walluserhs.activate"/>
<set xlink:href="#wall2" attributeName="display" to="none" begin="walluserhs.activate"/>
<set xlink:href="#wall3" attributeName="display" to="none" begin="walluserhs.activate"/> So, basically, for wall1 through 3 you simply are displaying the relevant image and hiding the others. When the user selects the walluserhs you are hiding all three images and allowing the standard wallpaper to show.
Russ.
__________________ "If anyone would come after me, let him deny himself and take up his cross and follow me" - Matthew 16:24
Follow me on twitter: graymatteron |