In an AS-only project, the SWC that contains MQP is not in the
library-path.  Could that be the reason?  And it probably won't work
either, since it assumes some amount of Flex infrastructure.

On 8/16/14 2:22 PM, "jude" <[email protected]> wrote:

>It will not show up in auto complete because MediaQueryParser is an
>excluded class. IE, it has "[ExcludeClass]" at the top of the class.
>
>I think you can use import mx.utils.*;
>
>And that should let you use MediaQueryParser in your class. If all else
>fails try removing "[ExcludeClass]" from the class file.
>
>
>
>On Sat, Aug 16, 2014 at 1:26 PM, ahpijnenburg <[email protected]> wrote:
>
>> Hi All,
>>
>> I am trying to import the MediaQueryParser class (as described in the
>> Apache
>> Flex 4.12.1 Release Notes) into an Actionscript class file, inside a
>>Flex
>> mobile project, using Flash Builder 4.7, and using the most recent
>>Apache
>> Flex SDK 4.13.0.
>>
>> However, when I try to import MediaQueryParser by typing Œimport
>> mx.utils.MediaQueryParser¹, this class isn¹t found or recognized . I am
>> able
>> to import other classes of Apache Flex 4.13.0 swc¹s, but it seems to me
>> that
>> several of the mx.utils classes of the framework.swc package cannot be
>> imported.
>>
>> Does anyone know of a way to import MediaQueryParser in an Actionscript
>> class file using Flex/Flash Builder? In particular, I want to use the
>> MediaQueryParser.instance.flexDeviceDiagonal variable value in my mobile
>> app. (By the way, the link in the Apache Flex 4.12.1 API Reference ASdoc
>> files for mx.styles.CSSDimension
>> (http://flex.apache.org/asdoc/mx/styles/CSSDimension.html) results in a
>> Page
>> not found error.)
>>
>> Thanks in advance,
>>
>> Ad
>>
>>
>>
>>
>> --
>> View this message in context:
>> 
>>http://apache-flex-users.2333346.n4.nabble.com/Unable-to-import-MediaQuer
>>yParser-in-Actionscript-Flex-tp7661.html
>> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>>

Reply via email to