You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by ahpijnenburg <pi...@riom.nl> on 2014/08/16 20:26:39 UTC

Unable to import MediaQueryParser in Actionscript / Flex

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-MediaQueryParser-in-Actionscript-Flex-tp7661.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Unable to import MediaQueryParser in Actionscript / Flex

Posted by OmPrakash Muppirala <bi...@gmail.com>.
OP mentioned that it was a Flex Mobile project.

Thanks,
Om


On Sat, Aug 16, 2014 at 10:09 PM, Alex Harui <ah...@adobe.com> wrote:

> 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" <fl...@gmail.com> 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 <pi...@riom.nl> 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.
> >>
>
>

Re: Unable to import MediaQueryParser in Actionscript / Flex

Posted by Alex Harui <ah...@adobe.com>.
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" <fl...@gmail.com> 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 <pi...@riom.nl> 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.
>>


Re: Unable to import MediaQueryParser in Actionscript / Flex

Posted by ahpijnenburg <pi...@riom.nl>.
jude 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.

Thanks for pointing out the [ExcludeClass] tag. After commenting out this
tag in the MediaQueryParser class definition file, I was able to import and
use MediaQueryParser in my Flex project.

Ad




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Unable-to-import-MediaQueryParser-in-Actionscript-Flex-tp7661p7667.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Unable to import MediaQueryParser in Actionscript / Flex

Posted by jude <fl...@gmail.com>.
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 <pi...@riom.nl> 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-MediaQueryParser-in-Actionscript-Flex-tp7661.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>