Re: extend RuntimeDPIProvider

2014-02-06 Thread Frank Dahmen
it is set to 240 (screenDPI of my device) it also looks good on other devices like a samsung note tablet and a very old samsung ixyzxyz phone e.g. it is just the new device of my customer (for now...) but i will try to return 320 as runtimeDPI on that device ( just found a good class to identif

Re: extend RuntimeDPIProvider

2014-02-06 Thread Justin Mclean
Hi, What is applicationDPI set to? In my experience I found it best not to set this but with seeing you application or it's code it's hard to know what advice to give. Justin

Re: extend RuntimeDPIProvider

2014-02-06 Thread Frank Dahmen
hi, this is what I'm doing but as the real dpi is 373 i have to return 320 for that device (instead of 480, which would be without own provider) but still 373 and 320 is a not to small difference Am 06.02.2014 23:59, schrieb Justin Mclean: Hi, One way around this issue is to provide you ow

Re: Flex iOs project compiling in a Mac VM under VirtualBox ?

2014-02-06 Thread Greg Dove
I think the distinction needs to be made between creating (or updating native code in) iOS ANEs for use in a flex/air project and compiling/packaging a flex/air app that uses a precompiled ANE (with iOS support). You need Mac OS for the former, but windows alone is fine for the latter. On Fri,

Re: extend RuntimeDPIProvider

2014-02-06 Thread Justin Mclean
Hi, One way around this issue is to provide you own runtime DPI provider. [1] Just make sure it returns one of the known DPI buckets. Justin 1. http://help.adobe.com/en_US/flex/mobileapps/WS19f279b149e7481c682e5a9412cf5976c17-8000.html#WS19f279b149e7481c-2a25e9b212d622ff5e8-8000

Re: extend RuntimeDPIProvider

2014-02-06 Thread Frank Dahmen
Ok, thanks, this is what i thought. too bad that 373 is far away from 320 and 480 as the App has an applicationDPI set (no fluid layout etc.) is there any other option than to adjust everything for that device (as it's the main customers one)? Am 06.02.2014 23:42, schrieb Justin Mclean: H

Re: extend RuntimeDPIProvider

2014-02-06 Thread Justin Mclean
Hi, Capabillities.screenDPI should be a number close to the actually DPI (but some devices it may be wrong) not one of the dpi buckets. The runtimeDPI method MUST return one of the DPI buckets not the actual dpii or all sort of odd things can occur. Justin

Re: Flex iOs project compiling in a Mac VM under VirtualBox ?

2014-02-06 Thread Mark Line
Sorry I have no idea i've not compiled iOS ane myself. You should be able to compile via the command line using: mxmlc +configname=airmobile Main.mxml Maybe it takes so long as you are virtualizing OS X? leave it on over night and see if it finishes, could just be really really slow On 6 Februa

Re: extend RuntimeDPIProvider

2014-02-06 Thread Frank Dahmen
the htc one max is reporting 480 as Capabillities.screenDPI but pixel density is 373ppi (as read in the web) it's not my device but a customer's one on my own device the Capabillities.screenDPI reports 240 which is correct but to test, when i return a random number like 532 from public function g

RE: Problems openning PDF file using navigateToURL

2014-02-06 Thread Pedro Serralha
I've done some tests, based on the findings that you guys did, and for example disabling the pdf plugin of the chrome and activating the Fox It Reader viewer and checked that it doesn't support the unencoded url... Based on this and on your findings it's better to assume that using this method to p

Re: extend RuntimeDPIProvider

2014-02-06 Thread Justin Mclean
Hi, Capabilities.screenDPI is passed to classifyDPI to work out what DPI bucket you are in. I check if Capabilities.screenDPI is returning what you expect. I expect 373 to be placed in the 320 bucket. mx_internal static function classifyDPI(dpi:Number):Number { if (dpi <= 140

Re: extend RuntimeDPIProvider

2014-02-06 Thread Lee Burrows
Hi The runtimeDPIProvider rounds the true DPI number up/down so it matches one of 120,160...640 However, if your device is 373 (and not a typo), i would expect the result to be 320, not 480 (as 320 is closest to the true value). You could override the class to return the true value, but the

extend RuntimeDPIProvider

2014-02-06 Thread Frank Dahmen
Hi, when extending mx.core.RuntimeDPIProvider and overriding public function get runtimeDPI():Number it seems that is has to return one of the DPIClassification constants, any other number than 120,160,240,320,480,640 is ignored is that true? the thing is that the htc one max is reporting 480

Re: Problems openning PDF file using navigateToURL

2014-02-06 Thread Marcus Fritze
I see PDFs in Chrome here on my mac. Have you disabled Chrome PDF Viewer in chrome://plugins/ ? The URL is working when the URL has the Space and NOT the %20 in the URL. Actually, when I clear my Browser cache, Chrome shows only the first page. But when I load it the second time, it jumps to p

Re: Problems openning PDF file using navigateToURL

2014-02-06 Thread Julio Carneiro
I just tried that url here in Safari and the URL does get escaped by Safari, turning it into: http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIMSChangeLog.pdf#pagemode=bookmarks&nameddest=Alterações%20no%20Portal But, although Safari, IE and Firefox do display the PDF, neithe

Re: Problems openning PDF file using navigateToURL

2014-02-06 Thread Marcus Fritze
This example works without any problems for me and it shows me the PDF on page 7 (Altera... no Portal): http://ns.adobe.com/mxml/2009"; xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" mi

RE: Flex iOs project compiling in a Mac VM under VirtualBox ?

2014-02-06 Thread Claude BERNARDINI
Flash Builder in the MacOS VM works fine except compiling iOs project... This same project compiles good on Flash Builder PC when I deactivate ANEs, but I want to compile in a Mac in order to activate these ANEs. Nothing in the Error Log view. Could you give me the command line for comiling i

Re: Problems openning PDF file using navigateToURL

2014-02-06 Thread Julio Carneiro
Pedro, Have you tried to monitor the network traffic to view the actual request being sent out by navigateToURL? Use your browser developer tools/web inspector/firebug/fiddler or whatever it is called in your browser. Try to monitor both, when you type in the url in your browser and the actual

RE: Problems openning PDF file using navigateToURL

2014-02-06 Thread Pedro Serralha
I'm not at the PC right now, so I'll try both things later. But I've remembered one thing the url field on urlrequest, mantains the correct URL, so it doesn't encodes it. Pedro Serralha No dia 6 de Fev de 2014 16:43, "Pedro Serralha" < pedro.serra...@elegedata.com> escreveu: > My code > >

Re: Problems openning PDF file using navigateToURL

2014-02-06 Thread Alex Harui
Is this a web app or AIR app? If web app, what happens if you try to open the PDF from JavaScript? On 2/6/14 8:43 AM, "Pedro Serralha" wrote: >My code > > var strURL:String = >"http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIMSC >ha >ngeLog.pdf#pagemode=bookm

RE: Problems openning PDF file using navigateToURL

2014-02-06 Thread Miguel Ferreira
Hi, What is the browser that you are using? In chrome to download/open a file i get some issues to. Miguel > From: pedro.serra...@elegedata.com > To: users@flex.apache.org > Subject: RE: Problems openning PDF file using navigateToURL > Date: Thu, 6 Feb 2014 16:43:48 + > > My code > >

RE: Problems openning PDF file using navigateToURL

2014-02-06 Thread Pedro Serralha
My code var strURL:String = "http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt_PT/BeelogicIMSCha ngeLog.pdf#pagemode=bookmarks&nameddest=Alterações no Portal" var urlReq:URLRequest= new URLRequest(strURL)

Re: Problems openning PDF file using navigateToURL

2014-02-06 Thread Alex Harui
What are you actually passing into the URLRequest parameter? On 2/6/14 8:07 AM, "Pedro Serralha" wrote: >Marcus thank you for replying. > >But for what I understood, on both links you've sent. They tell how to >encode parameters on URL and the escape() is to convert a string to a >URL-encoded fo

RE: Problems openning PDF file using navigateToURL

2014-02-06 Thread Pedro Serralha
Marcus thank you for replying. But for what I understood, on both links you've sent. They tell how to encode parameters on URL and the escape() is to convert a string to a URL-encoded format, which is what I don't want. As you can see http://portal.beelogicsoftware.com/BeelogicIMS/manuals/pt

Re: Can I Bind a SolidColor Fill Value?

2014-02-06 Thread Martin Miko
Hi Chris, yes, basically the presenter variable defined in the thumb skin is done like this: you add these 3 lines, and then use the presenter.buttonColour in the component where you want to use it. BR, Martin Miko On Thu, Feb 6, 2014 at 10:28 AM, Tintin <1955.mille.mig...@

RE: Flex iOs project compiling in a Mac VM under VirtualBox ?

2014-02-06 Thread Mark Line
Well it isn't something I've ever tried. Can you compile anything via Flash Builder? (you said it works fine but does that include compiling?) Have you tried compiling via the command line? Maybe if you posted the logs? Have you looked at the error view in Flash builder: Window -> Show View ->

Re: Flex iOs project compiling in a Mac VM under VirtualBox ?

2014-02-06 Thread Claude BERNARDINI
Hi, Nobody can help ? Thanks Le 2014-02-05 22:57, Claude BERNARDINI a écrit : Hi, I try to compile a iOs flex Project (with ane)on a iAktos Mac OS 10.7 VM under VirtualBox. All seems good : - Flash Builder 4.7 works well - XCode is installed But the compilation freezes under Flash Builder.

Re: Problems openning PDF file using navigateToURL

2014-02-06 Thread Marcus Fritze
or maybe easier this: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/package.html#escape() Am 06.02.2014 um 13:24 schrieb Pedro Serralha : > Greetings my friends > > > > In our Webapplication we have some buttons that open an PDF file. > > We are using the navigateToURL m

Re: Problems openning PDF file using navigateToURL

2014-02-06 Thread Marcus Fritze
This may help you: http://stackoverflow.com/questions/3487479/url-encode-variable-in-as3 Am 06.02.2014 um 13:24 schrieb Pedro Serralha : > Greetings my friends > > > > In our Webapplication we have some buttons that open an PDF file. > > We are using the navigateToURL method. > > > > The

Problems openning PDF file using navigateToURL

2014-02-06 Thread Pedro Serralha
Greetings my friends In our Webapplication we have some buttons that open an PDF file. We are using the navigateToURL method. The problem is that we are using bookmarks within the pdf and to open an link and point to an bookmark the URL used is something like http://portal.beelogicsoft

Re: Can I Bind a SolidColor Fill Value?

2014-02-06 Thread Tintin
Hi Martin Would you please explain one last point which I can't quite see. You use the following code in the custom HSlider: // injecting the presenter public function set presenter(p:SliderView_Presenter):void { _presenter = p; if (thumbInst)