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
New Developer
tubagus99
Posts: 4
Registered: ‎10-26-2010
My Device: Not Specified
Accepted Solution

try Consumer on playbook, but error when compile...

 

hai all, I have tried messaging on SDK Playbook, when i compile appears error like this

 

Error: Unable to resolve resource bundle "messaging" for locale "en_US".

Error: Unable to resolve resource bundle "logging" for locale "en_US".

Error: Unable to resolve resource bundle "collections" for locale "en_US".

 

 

my code is :

 

_consumer = new Consumer();

   _consumer.channelSet = new ChannelSet();

   _consumer.channelSet.addChannel(_streamAMF);

   _consumer.destination = "RTStream";

   _consumer.selector    = "Viewer='RT'"

   _consumer.addEventListener(MessageEvent.MESSAGE, onMessageHandler);

   _consumer.subscribe();

 

 

anyone can help me?...

Is Playbook SDK support Streaming?

 

thanks before,

 

tubagus

 

 

 

Please use plain text.
Developer
fnicollet
Posts: 85
Registered: ‎10-25-2010
My Device: Not Specified

Re: try Consumer on playbook, but error when compile...

Hi,

check the solution that i gave on this thread:

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Errors-when-switching-to-Blackber...

And mark this issue as resolved if it works for you :smileywink:

 

Thx,

Fabien

Hope this helps,
Fabien

--
1. If you liked my post or found it useful please click on the white star and provide a Kudo!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!
Please use plain text.
New Developer
tubagus99
Posts: 4
Registered: ‎10-26-2010
My Device: Not Specified

Re: try Consumer on playbook, but error when compile...

Hi Fabien, i have added -library-path+="/Applications/Adobe Flash Builder 4/sdks/blackberry-tablet-sdk-0.9.0/frameworks/locale/en_US" on my Flex Compiler but not running well  :smileysad:

 

i also tried add SWC Folder on Flex Build Path, but still same...

 

my source code is :

 

 

package

{

import flash.display.Sprite;

import flash.events.MouseEvent;

import flash.text.TextField;

import flash.text.TextFormat;

 

import mx.messaging.ChannelSet;

import mx.messaging.Consumer;

import mx.messaging.channels.StreamingAMFChannel;

import mx.messaging.events.MessageEvent;

 

import qnx.ui.buttons.Button;

 

 

 

[SWF(width="1100", height="700", backgroundColor="#cccccc", frameRate="30")] 

public class PlaybookMI extends Sprite

{

public function PlaybookMI()

{

super();

 

var myFormat:TextFormat = new TextFormat(); 

myFormat.color = 0xAA0000;    

myFormat.size = 24;   

myFormat.italic = true;   

myFormat.align = "center"

 

var text:TextField = new TextField(); 

text.text = "close"

text.setTextFormat(myFormat); 

 

 

  var b:Button = new Button();

b.addChild(text);

b.addEventListener(MouseEvent.CLICK, onCloseHandler);

addChild(b);

 

 

_consumer = new Consumer();

_consumer.channelSet = new ChannelSet();

_consumer.channelSet.addChannel(_streamAMF);

_consumer.destination = "RTStream";

_consumer.selector    = "Viewer='RT'"

_consumer.addEventListener(MessageEvent.MESSAGE, onMessageHandler);

_consumer.subscribe();

 

 

 

 

}

 

private var _consumer:Consumer;

private var _streamAMF:smileyfrustrated:treamingAMFChannel = new StreamingAMFChannel("my-streaming-amf","http://10.10.100.193:8400****");

 

private function onMessageHandler(e:MessageEvent):void{

 

    trace("done");

 

}

 

 

private function onCloseHandler(e:MouseEvent):void{

 

stage.nativeWindow.close(); 

}

 

 

}

}

 

 

 

thanks,

 

Tubagus

Please use plain text.
New Developer
tubagus99
Posts: 4
Registered: ‎10-26-2010
My Device: Not Specified

Re: try Consumer on playbook, but error when compile...

HI All, After I changed my configuration on External Tool Configuration (Run-->External Tool-->External Tool Configurations) and added -library-path+="/Applications/Adobe Flash Builder 4/sdks/blackberry-tablet-sdk-0.9.0/frameworks/locale/en_US"  is running well, :smileyhappy:

 

 

thanks Fabien, ....

 

 

Picture 1.png

Please use plain text.
Developer
fnicollet
Posts: 85
Registered: ‎10-25-2010
My Device: Not Specified

Re: try Consumer on playbook, but error when compile...

Alright, cool :smileyhappy:

I believe you can mark this issue as solved for future users (and bring me kudos if u like ahha)

 

Gd day,

Fabien

Hope this helps,
Fabien

--
1. If you liked my post or found it useful please click on the white star and provide a Kudo!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!
Please use plain text.
New Member
rrbrambley
Posts: 1
Registered: ‎10-30-2010
My Device: Not Specified

Re: try Consumer on playbook, but error when compile...

You can do this in a "cleaner" fashion by just adding a SWC folder (that points to that same directory) to your library path (right click on project > Properties > Flex Build Path > Library Path (tab) > Add SWC Folder...).

Please use plain text.