Is Flex Label baselineshift supported on mobiles? - apache-flex

I need to create subscript text for mobile. I read at http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/Label.html that label's baselineShift property is not supported on the mobile theme. So I created a plain mobile project using the default mobile theme with a couple of test labels and in the FB 4.5 emulator the baselineshift worked fine.
Why then do they say that it's not supported? Is there anything to stop me going ahead and using it?

It doesn't sound like here is anything to prevent you from using it. When something like this isn't "supported" it generally means that Adobe is afraid of performance issues that may result in using this.

Related

Touch scrolling in durandal + phonegap

I'm new in this kind of development, so maybe this is a basic question.
I'm developing a new SPA using DurandalJS. Everything works fine in the browser, so I try to build an app using Phonegap Build service. So I install the resulting apk in my mobile and it works, but I've got not scroll at all.
First, I've tried setting css properties as overflow-y:scroll and -webkit-overflow-scrolling:touch, but it didn't help (or i don't know how to make it work...)
Next I've read about iScroll plugin. I tried to use it but I can't manage to get it work, i can't notify to the iScroll object when DOM is updated (i believe).
Is there a way to accomplish the vertical scrolling in this kind of app?
In short: Remove app.adapteToDevice if you're planning to use Durandal with phonegap.
See https://groups.google.com/forum/#!searchin/durandaljs/scrolling for more info.

CSS Editors / GUIs / Apps with all kind of nice to have features

I'm looking for a css editor which makes it possible to e.g.:
change color with a color selector (something like this or this
support for css properties e.g. the typical CTRL+SPACE complete drop down intellij thing
maybe possibility to say, group background colors from different styles together. So you change 1 value which gets reflected everywhere.
maybe support changes on the fly in the webbrowser, firebug like, but better.
more?
This can be an eclipse plugin or standalone app. It must be free.
Maybe you want to try Sublime Text 2? I'm not sure if ti can do all those things but I've seen it doing the on the fly changes with Chrome (haven't tried it myself). It's not free but the version you download will just remind you to purchase it. It will still work fine anyway.
http://www.sublimetext.com/

Air 3 for Mobile - StageText example?

Air 3 for mobile introduces a nice feature - StageText. I have seen a few videos showing what the end result looks like, but I cannot find how to actually implement it in code.
There is this page here, however, when trying to add the extra properties to the s:TextInput elements, I only get errors. Obviously, something is missing.
Anyone out there have any hints or working examples?
Thanks!
The new TextInput enhancements are part of the Flex 4.6 SDK which has not been released yet (as of 11/3/2011). If you want access to it right now, you need to sign up for the pre-release program.

CSS - to mimic iOS, Blackberry OS and AndroidOS?

I'm looking for a set of CSS or scripts which mimic the UI (only the UI) of default applications on the iPhone/iPad, Blackberry and base Android apps?
I have a client who needs the ability to preview content and form pages on the various OS', but in their desktop browser (Chrome, FF, IE(ugh)). Ofcourse, there are dozens and dozens of standalone emulators, but I cannot find any one who may have created CSS or scripts to mimic how these would look, in the browser - e.g. default button stylings, colours, etc. not the logic of the app, but just the way it could look - with the best example I can find being : http://groupaware.mobi/iphone/#_Windows
Anyone with ideas?
thanks!
For iOS:
http://code.google.com/p/iphone-universal/
and
http://www.peterhintondesign.co.uk/journal/index.php/iphone-css-template/
which is based on the first one.
I'm sorry but until now I have only been able to find templates regarding the Iphone and not the BlackBerry nor Android UI. (I've tried to find them myself before too.)
A great template for CSS (Photoshop CS4 or higher needed) based on the Iphone is:
http://www.teehanlax.com/blog/2010/06/14/iphone-gui-psd-v4/
Also the links by tomwadley, especially the prior link, are also quite useful regarding coding and framework.
There's some answers in this book: http://oreilly.com/catalog/9780596805791/ about creating CSS styles to mimic iOS stuff. Also covers phonegap etc, might be useful.
jQuery Mobile (JQM): http://jquerymobile.com is a framework which does just that. At its simplest, it renders "standard" html elements as native OS elements for platforms like iOS and Android.
You don't have to use the JQM framework, of course; you could simple take what you need from the CSS that JQM employs. Either inspect the css directly or write a simple test page which loads JQM and inspect the CSS in Firebug or Chrome developer console.
Checkout iUI..probably what you are looking for.
http://www.iui-js.org/index.html
For the android, try this implementation of Holo Light and Dark: http://vezquex.com/projects/holo-css/

Flex printing on OSX pushes image off the page. How can this be fixed?

My Flex 3 app prints pages just fine from browsers on Windows using FlexPrintJob (not the browser print function). However, on OSX, the left and top margins show up larger and the page gets pushed off the right and bottom. Basically, the scaling is screwed up, and I can't see any way to adjust the margins in code.
Has anyone seen this discrepancy in Flex printing between Windows and OSX? Are there any known workarounds? I've searched all over and I can't find any good info on this (other than 12 unresolved printing bugs in the Adobe Jira DB).
And please don't say "don't print in Flex". I know Flex sucks at printing, but I have to use it. Thanks!
Edit:
PDF Generation is one route and while its a valid solution for some folks, I need to print directly. I'd like to see stuff like using regular Flash PrintJob, monkeypatches to FlexPrintJob, or just ways I can format my DisplayObjects before sending them to FlexPrintJob. None of the scaling options in FlexPrintJob work. My Flex Component is at 1.0 scale. I'm not sure what else I can do except for mess around with regular PrintJob. I'm putting a bounty on this for answers in this domain.
Switch to PDF generation. There are two ways to do this without having to purchase server-side licenses:
Use our library of Flex components - clear.swc, a part of open source Clear Toolkit available on Sourceforge. This process is described in Ch. 11 of the book Enterprise Development with Flex currently available as rough cuts on safaribooksonline.com
Use open-source library alivePDF.
Don't print by Flex PrintJob :)

Resources