Re: iOS7 skins
Don't get me wrong - I'm using 4.15 for EVERY other project I have on the go. It's just 1 that when I tried to migrate - too much went wrong (with skins etc) and I need to allocate a sizable chunk of time to migrate over (which at the moment I can't afford to do) Thanks for your help Olaf. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/iOS7-skins-tp13507p13640.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: iOS7 skins
Great that it works now! >but am not in a position compile the project with 4.15 I notice that folks sometimes stick with old versions, especially last Adobe versions. What is the reason to stick with it? I thought that most of the time an update to the latest Apache version could be done with a passable effort? Thanks, Olaf -- View this message in context: http://apache-flex-users.246.n4.nabble.com/iOS7-skins-tp13507p13639.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: iOS7 skins
So a bit of a hack - but in the iOS7ButtonBarSkinBase.as file I just manually changed the highlightedTextColor style to white. <http://apache-flex-users.246.n4.nabble.com/file/n13634/text.png> For some reason I can't change 'highlightedTextColor' using setStyle (but I can change the non highlighted font color using the 'color' style). -- View this message in context: http://apache-flex-users.246.n4.nabble.com/iOS7-skins-tp13507p13634.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: iOS7 skins
I'm no wondering if this is the issue as to why the colours aren't coming though? <http://apache-flex-users.246.n4.nabble.com/file/n13631/Colours.png> It's not happy with the declaration xmlns="http://ns.adobe.com/fxg/2008; Any ideas why? Thanks -- View this message in context: http://apache-flex-users.246.n4.nabble.com/iOS7-skins-tp13507p13631.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: iOS7 skins
Lydecker wrote > So some weirdness with the colours. Any ideas? Do you've tested it using the simulator or a mobile device? I stumbled over this wiki article: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=50856172 I tested the origin skin with 4.15. and it only works correctly with the simulator after adding the compiler directive. Don't know if this would be work with 4.7. If the skin still doesn't work with your mobile device there's some more investigation needed. I would try to find out where the font color and the font family comes from... HTH, Olaf -- View this message in context: http://apache-flex-users.246.n4.nabble.com/iOS7-skins-tp13507p13632.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: iOS7 skins
OK - made some progress now thanks. I had everything you said already - the one sticking point I had was 'Adjusting the Imports'. However it just dawned upon me that if I moved the whole of the iOS7 skin folder from the 4.15 framework to my projects source folder location: "src/spark/skins/ios7" - it solved the import adjusting issues. The only other think I needed to do was delete references to the 3 unsupported DPIs in 4.7 framework (640, 480, 120). Now I'm there! Almost. This is what it looks like: <http://apache-flex-users.246.n4.nabble.com/file/n13624/4_7.png> But this is what it looks like when using 4.15: <http://apache-flex-users.246.n4.nabble.com/file/n13624/4_15.png> So some weirdness with the colours. Any ideas? Thanks for all your help in getting me this far! -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/iOS7-skins-tp13507p13624.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: iOS7 skins
>Thanks for this - been looking at it for a week now but still no joy. Could you specify what kind of problems do you have? >Is it possible to apply a pure AS skin directly to component? Yes, you just have to add the skin class to your component: < >Any further pointers would be much appreciated. - Download all files inside the ios7 skin package that begins with ButtonBar*, don't forget the "assets" folder [1] - Create a test project - Copy the downloaded files to your project - Adjust the "import" statements inside the downloaded files where it's needed - Create a simple test case [2] - Check if it already works - If not, you maybe have to update other dependencies to 4.15. HTH, Olaf [1] https://github.com/apache/flex-sdk/tree/eec643c453a3a1bec6ea3352b0c94ec81d36b2d6/frameworks/projects/mobiletheme/src/spark/skins/ios7 [2] Simple test case: <http://ns.adobe.com/mxml/2009; xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="160"> One Two Three Four < -- View this message in context: http://apache-flex-users.246.n4.nabble.com/iOS7-skins-tp13507p13623.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: iOS7 skins
Thanks for this - been looking at it for a week now but still no joy. In the past I've used MXML when skinning spark components. This is obviously pure AS. Is it possible to apply a pure AS skin directly to component? I can't seem to find any examples of this online. Any further pointers would be much appreciated. Many thanks. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/iOS7-skins-tp13507p13622.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: iOS7 skins
Seems to me that ButtonBarSkin [2] has these [1] direct dependencies. Maybe you could browse through the repo and put it together to make the ButtonBarSkin work. HTH, Olaf [1] ButtonBarSkin source package spark.skins.ios7 { import spark.components.ButtonBar; import spark.components.ButtonBarButton; import spark.components.DataGroup; import spark.components.supportClasses.ButtonBarHorizontalLayout; import spark.skins.mobile.supportClasses.ButtonBarButtonClassFactory; mport spark.skins.mobile.supportClasses.MobileSkin; ... } [2] ButtonBarSkin: https://github.com/apache/flex-sdk/blob/eec643c453a3a1bec6ea3352b0c94ec81d36b2d6/frameworks/projects/mobiletheme/src/spark/skins/ios7/ButtonBarSkin.as [3] Repo "spark.components" entry point: https://github.com/apache/flex-sdk/tree/release4.15.0/frameworks/projects/spark/src/spark/components [4]: Repo "spark.slins.mobile.supportClasses" entry point: https://github.com/apache/flex-sdk/tree/eec643c453a3a1bec6ea3352b0c94ec81d36b2d6/frameworks/projects/mobiletheme/src/spark/skins/mobile/supportClasses -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/iOS7-skins-tp13507p13508.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
iOS7 skins
Hi, I have a large project which was written using Flex 4.7. I would like to use the iOS7 Button Bar skin which is included with Flex 4.15 (but am not in a position compile the project with 4.15). Which files do I need to grab from 4.15 SDK and add to my 4.7 project JUST to use the iOS7 Button Bar skin please? Thanks -- View this message in context: http://apache-flex-users.246.n4.nabble.com/iOS7-skins-tp13507.html Sent from the Apache Flex Users mailing list archive at Nabble.com.