mx:VDividedBox not resolved

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

mx:VDividedBox not resolved

Alex P
I have just started to move an Adobe Flex 4.6.0 to Apache Flex, but cannot
get mx:VDividedBox or mx:DividedBox to be recognized. I built the sdk by
unzipping the Apache Flex 4.16.1 SDK, and then overlaying the AIR 27 SDK.

Is there something I am missing?

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                       xmlns:s="library://ns.adobe.com/flex/spark"
                       xmlns:mx="library://ns.adobe.com/flex/mx" >
   
    <fx:Script>
       
    </fx:Script>
   
    <ns:VDividedBox direction="vertical"
                   top="205" bottom="10" left="10" right="10"
                   verticalScrollPolicy="off">
    </ns:VDividedBox>
   
</s:WindowedApplication>




--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: mx:VDividedBox not resolved

Alex Harui-2
I think you have to use <mx:VDividedBox> instead of <ns:VDividedBox>

HTH,
-Alex

On 4/9/18, 11:59 AM, "Alex P" <[hidden email]> wrote:

>I have just started to move an Adobe Flex 4.6.0 to Apache Flex, but cannot
>get mx:VDividedBox or mx:DividedBox to be recognized. I built the sdk by
>unzipping the Apache Flex 4.16.1 SDK, and then overlaying the AIR 27 SDK.
>
>Is there something I am missing?
>
><?xml version="1.0" encoding="utf-8"?>
><s:WindowedApplication
>xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2F
>ns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7Caffb24b9e6c
>e42626c7208d59f78ab35%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365902
>62982633617&sdata=5skw9Vt%2BCR%2FyByKJm21UdTR0ps%2FzCJRxqrwb2Wl0OFo%3D&res
>erved=0"
>                       xmlns:s="library://ns.adobe.com/flex/spark"
>                       xmlns:mx="library://ns.adobe.com/flex/mx" >
>    
>    <fx:Script>
>        
>    </fx:Script>
>    
>    <ns:VDividedBox direction="vertical"
>                   top="205" bottom="10" left="10" right="10"
>                   verticalScrollPolicy="off">
>    </ns:VDividedBox>
>    
></s:WindowedApplication>
>
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7Caffb2
>4b9e6ce42626c7208d59f78ab35%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36590262982633617&sdata=JT9m0eww8e1mqXrb3l%2FzVE%2Ff88oyjle3MJAS8CIetZI%3D
>&reserved=0

Reply | Threaded
Open this post in threaded view
|

Re: mx:VDividedBox not resolved

Alex P
I apologize, that should have been <mx:VDividedBox>.   I was getting
desperate and saw ns somewhere and tried it.   I didn't realize that version
was posted.    This code works great if I just switch back to Adobe Flex
4.6.  It just does not find it in the Apache version which makes me think
there is something wrong with my Apache Flex install.



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: mx:VDividedBox not resolved

Alex Harui-2
I tried it and it worked for me.

What do you mean by overlaying AIR 27?  I used Ant to install Apache Flex
4.16.1.

You can verify that your SWCs are correct by unzipping
frameworks/libs/mx.swc and seeing if VDividedBox is in catalog.xml in the
SWC.

Try building from the command-line and post the console output if it fails.

HTH,
-Alex

On 4/11/18, 11:23 AM, "Alex P" <[hidden email]> wrote:

>I apologize, that should have been <mx:VDividedBox>.   I was getting
>desperate and saw ns somewhere and tried it.   I didn't realize that
>version
>was posted.    This code works great if I just switch back to Adobe Flex
>4.6.  It just does not find it in the Apache version which makes me think
>there is something wrong with my Apache Flex install.
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7Cfd785
>8a85a4349a2d0f008d59fdb8196%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36590687483328428&sdata=VlawHPSWlNiiJv9Rn5nTyQHmchGfOoi2j8uffvIlj3M%3D&res
>erved=0

Reply | Threaded
Open this post in threaded view
|

Re: mx:VDividedBox not resolved

Alex P
Thanks for the reply Alex.

I have always downloaded the Flex SDK and the AIR SDK separately and then
combined them just by unzipping  them to the same directory according to
<<https://helpx.adobe.com/x-productkb/multi/how-overlay-air-sdk-flex-sdk.html>>  

Today I tried using the ant script as directed by Piotr, but that failed
redirecting from http:// to https://.  I did see from his instructions that
we need AIR 29, so I'm going to abort using previous versions.

I looked in the frameworks, and VDividedBox is definitely there.  

So, now I'm think that Flash Builder is not accessing the frameworks file
correctly. mx.swc is not overwritten by AIR

Alex



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: mx:VDividedBox not resolved

Alex Harui-2
I just remembered that Flash Builder projects have configurations for
being Spark-only or not.  Check to see if your project is set up for
Spark-only.  If so, that's why it doesn't see mx.swc.  I think you can
also use Project/Properties to examine the list of SWCs it will compile
against.  Make sure mx/mx.swc is in there.

-Alex

On 4/11/18, 1:00 PM, "Alex P" <[hidden email]> wrote:

>Thanks for the reply Alex.
>
>I have always downloaded the Flex SDK and the AIR SDK separately and then
>combined them just by unzipping  them to the same directory according to
><<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelpx.a
>dobe.com%2Fx-productkb%2Fmulti%2Fhow-overlay-air-sdk-flex-sdk.html&data=02
>%7C01%7Caharui%40adobe.com%7C574b0286f04d4ef4010c08d59fef37aa%7Cfa7b1b5a7b
>34438794aed2c178decee1%7C0%7C0%7C636590772168203059&sdata=F4swihKgYoQjJiwo
>j%2B5rBDFEkvbHBbMs1xb7Nb664Co%3D&reserved=0>>
>
>Today I tried using the ant script as directed by Piotr, but that failed
>redirecting from http:// to https://.  I did see from his instructions
>that
>we need AIR 29, so I'm going to abort using previous versions.
>
>I looked in the frameworks, and VDividedBox is definitely there.
>
>So, now I'm think that Flash Builder is not accessing the frameworks file
>correctly. mx.swc is not overwritten by AIR
>
>Alex
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C574b0
>286f04d4ef4010c08d59fef37aa%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36590772168213062&sdata=LQ%2B5B9pMjsRboypho0cLcB%2BPUx3IiV0OPv5CIUzv1s4%3D
>&reserved=0

Reply | Threaded
Open this post in threaded view
|

Re: mx:VDividedBox not resolved

Alex P
My component set was correct at MX+Spark

I figured it out - mainly from you pointing me to the mx.swc in the
frameworks directory, although I still have no idea why it works in Adobe
4.6 and not in Apache 1.16.

I added the frameworks\libs\mx directory to my library path and then Flash
Builder could see them. So I have one entry in the library pointing to the
SDK, and a second with a full file descriptor pointing around the SDK to the
sub-directory.  If I change the SDK, I'm going to have to change this link
as well.  Previously I think that sub-directories may have been included
automatically in the search.

Thanks for your help, awesome job with the port.





--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: mx:VDividedBox not resolved

Alex Harui-2
Take a look at your frameworks/air-config.xml.  In the binaries for Apache
4.16.1, mine has a library-path section that looks like this:

<library-path>
         <path-element>libs</path-element>
         <path-element>libs/mx</path-element>
         <path-element>libs/air</path-element>
         <path-element>libs/air</path-element>
         <path-element>locale/{locale}</path-element>
      </library-path>

It may be that the overlay approach you are using overwrites the
air-config.xml with one from the AIR SDK that doesn't have libs/mx.  In
theory, if you add libs/mx to air-config.xml and restart Flash Builder (it
might cache air-config.xml) then it should pick it up without you having
to alter your library-path in the project.


HTH,
-Alex


On 4/11/18, 4:45 PM, "Alex P" <[hidden email]> wrote:

>My component set was correct at MX+Spark
>
>I figured it out - mainly from you pointing me to the mx.swc in the
>frameworks directory, although I still have no idea why it works in Adobe
>4.6 and not in Apache 1.16.
>
>I added the frameworks\libs\mx directory to my library path and then Flash
>Builder could see them. So I have one entry in the library pointing to the
>SDK, and a second with a full file descriptor pointing around the SDK to
>the
>sub-directory.  If I change the SDK, I'm going to have to change this link
>as well.  Previously I think that sub-directories may have been included
>automatically in the search.
>
>Thanks for your help, awesome job with the port.
>
>
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7Cc7ec7
>5e6f93c474f85b108d5a03c3e6c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36591103013977317&sdata=kTxm2WOGLCX5Q7g1%2BC%2FB%2ByB86bjtm91W3LpnkG0sQK4%
>3D&reserved=0

Reply | Threaded
Open this post in threaded view
|

Re: mx:VDividedBox not resolved

Alex P
That was it.   I ended up using the air-config.xml from the Apache Flex SDK,
and making a couple of minor changes.
I am now running my original project in Apache Flex.

Thank you.



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/