Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Regular Contributor
robertsteven192
Posts: 50
Registered: ‎02-20-2011
My Device: Playbook (sim)
Accepted Solution

how do i add a slider in a mxml file??

i cant seem to add a slider to my .mxml file... when using addChild() it seems to not work and trying to manually add it to the mxml using the same method as say a button also does not work... any help?

My PlayBook Apps -------- My Apps
Please use plain text.
Developer
JRab
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: how do i add a slider in a mxml file??

hey robert,

 

this thread can probably help you out with that:

 

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/ToggleSwitch-in-Flex/m-p/797365/h...

 

good luck!

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Please use plain text.
Regular Contributor
robertsteven192
Posts: 50
Registered: ‎02-20-2011
My Device: Playbook (sim)

Re: how do i add a slider in a mxml file??

wow thanks! always reliable!

My PlayBook Apps -------- My Apps
Please use plain text.
Regular Contributor
robertsteven192
Posts: 50
Registered: ‎02-20-2011
My Device: Playbook (sim)

Re: how do i add a slider in a mxml file??

hmmm it all works except when i try to implement

 

 

 

 

private function sliderChange(event:SliderEvent):void
			{
			
			
			}

 

 

 

it gives me a 

"Type was not found or was not a compile-time constant:smileyfrustrated:liderEvent."

do u know how to make this eventhandler work?

My PlayBook Apps -------- My Apps
Please use plain text.
Developer
JRab
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: how do i add a slider in a mxml file??

hey robert,

 

did you remember to import SliderEvent class?

 

 

import qnx.ui.events.SliderEvent;

 

hope thats it. good luck!

 

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Please use plain text.
Regular Contributor
robertsteven192
Posts: 50
Registered: ‎02-20-2011
My Device: Playbook (sim)

Re: how do i add a slider in a mxml file??

wow that was it!! thanks! i had

 

import qnx.ui.events.SliderEvent.*;

 

haha oops! im so used to using .*;

My PlayBook Apps -------- My Apps
Please use plain text.