Select to view content in your preferred language

Time Slider problem deploying iOS Air application

766
4
Jump to solution
08-27-2012 08:51 AM
SethEllingson
Emerging Contributor
I am trying to deploy an existing flash application as an AIR application for use on an iOS device. When I include the esri TimeSlider, the application crashes immediately with the error: VerifyError: Error #1014: Class mx.controls.sliderClasses::Slider could not be found.

The exact same code works fine as a normal browser based application, but fails when run as an AIR application.

Is the timeSlider not compatible with AIR applications, or is there something that I am missing? Any help would be appreciated.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DasaPaddock
Esri Regular Contributor
Mobile projects don't include the mx.swc by default. You can manually add it to your project under the "Flex Build Path" project properties or by adding it to your libs folder. You can find it at: .../Adobe Flash Builder 4.6/sdks/4.6.0/frameworks/libs/mx/mx.swc

View solution in original post

0 Kudos
4 Replies
DasaPaddock
Esri Regular Contributor
Mobile projects don't include the mx.swc by default. You can manually add it to your project under the "Flex Build Path" project properties or by adding it to your libs folder. You can find it at: .../Adobe Flash Builder 4.6/sdks/4.6.0/frameworks/libs/mx/mx.swc
0 Kudos
SethEllingson
Emerging Contributor
Thank you for the response.  That was what I needed to do.  Although, after I had added that swc file, I got quite a few more errors, and I came across this article that resolved the resulting errors:

http://killerspaz.wordpress.com/2011/10/12/using-mx-components-on-flexair-mobile/

The application is working fine now, that you for the help!
0 Kudos
DasaPaddock
Esri Regular Contributor
Instead of updating the source path, you can also add the sparkskins.swc.
0 Kudos
SethEllingson
Emerging Contributor
That actually works better than what I did, so I used the sparkskins.swc file instead of updating the source path.  Thanks!
0 Kudos