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
Developer
FloPMT
Posts: 160
Registered: ‎03-12-2011
My Device: PlayBook♥
My Carrier: eplus
Accepted Solution

.swf keeps playing (Dev Alpha)

Hey guys,

 

I'm a web developer and this is my first Blackberry + AIR experiment.

I used to implement the .swf within an html file and compile it via webworks but I found out that there's another way using the AIR SDK.

 

So I followed the guides online, downloaded the SDK and created the 2 .xml files.

Then I put my .swf into the folder of my project as well.

Next I used the GraphicalAid to build the .bar file.

 

When installing I got "result::failure 881 application author does not match debug token author" which is not the case. However I just signed it then to test in on my Dev Alpha device.

 

Here's the new problem then:

The .swf shows up as it should but it just keeps playing and repeating so like there's no stop() in my actionscript. 

That does not happen in Chrome and it didn't even happen using the WebWorks method and former build of Blackberry 10.

 

Maybe there's something wrong with my xml? So here's parts of my project.xml:

 

  1. <initialWindow>
  2. <content>game.swf</content>
  3. <renderMode>gpu</renderMode>
  4. <autoOrients>false</autoOrients>
  5. <fullScreen>true</fullScreen>
  6. <visible>true</visible>
  7. <maximizable>false</maximizable>
  8. <minimizable>false</minimizable>
  9. <resizable>false</resizable>
  10. <systemChrome>standard</systemChrome>
  11. <transparent>false</transparent>
  12. </initialWindow>

 

Please help me guys, I don't know what to do.

 

Best regards

Flo

----------
Please give free Likes if I helped you out! :smileyhappy:
Please use plain text.
BlackBerry Development Advisor (Retired)
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: .swf keeps playing (Dev Alpha)

Hi,

 

I just tested a sample and it appears to be working for me without issue. Did you follow this guide?

 

http://supportforums.blackberry.com/t5/Adobe-AIR-Development/How-to-Create-a-BlackBerry-10-AIR-Appli...

 

There is a link at the bottom to download the source code.

 

There should be nothing in your XML that would cause you SWF file not to execute AS3 on your timeline. You would need to add a stop(); in your timeline if you would not like it to repeat. 

 

Regards,

Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.
Developer
FloPMT
Posts: 160
Registered: ‎03-12-2011
My Device: PlayBook♥
My Carrier: eplus

Re: .swf keeps playing (Dev Alpha)

Thank you!

Is it only working with AS3? Mine's AS2... Works fine for PlayBook under WebWorks

----------
Please give free Likes if I helped you out! :smileyhappy:
Please use plain text.
BlackBerry Development Advisor (Retired)
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: .swf keeps playing (Dev Alpha)

Yes it only works for AS3. I'll look into if this is expected behaviour. 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.
BlackBerry Development Advisor (Retired)
dmalik
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: .swf keeps playing (Dev Alpha)

I just tested on a PlayBook running 2.1 and it is the same. Only AS3 works. I will update the article.

 

Regards,

Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Please use plain text.
Developer
FloPMT
Posts: 160
Registered: ‎03-12-2011
My Device: PlayBook♥
My Carrier: eplus

Re: .swf keeps playing (Dev Alpha)

Please don't get me wrong. I used webworks sdk and it worked so I embedded a .swf in an HTML file. That works great, I have multiple applications on app world like this.
The performance with air would be a lot better so I thought I'd try it out
----------
Please give free Likes if I helped you out! :smileyhappy:
Please use plain text.