Skip navigation
Currently Being Moderated

Unable to compile OSMF 2.0 project from OSMF source code, no mx classes?

Aug 12, 2012 10:40 PM

Tags: #flex #sdk #osmf #2.0 #compile #4.6 #mx #classes #mx.states.overridebase

hi

 

Using AFB (Adobe flash builder) 4.6

 

I've added the OSMF 2.0 to the Source path of my project (not using an SWC)

and i seem to get compiler errors for the mx.states.OverrideBase class

 

DescriptionResourcePathLocationType
1172: Definition mx.states:OverrideBase could not be found.BestEffortFetchInfo.as OSMF/org/osmf/elements/f4mClassesline 24Flex Problem

 

also for:

mx.messaging.channels.StreamingAMFChannel

 

 

these are my compiler arguments:

-locale en_US

-define CONFIG::LOGGING true

-define CONFIG::FLASH_10_1 true

-define CONFIG::MOCK false

-define CONFIG::PLATFORM true

-swf-version=11

 

 

do i need a different playerglobal.swc for the mx classes?

 

flex sdk 4.6 comes with playerglobal for version 11.1

manually added a playerglobal for version 10.3

into the directory:C:\Program Files\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\frameworks\libs\player\10.3

 

but i don't see any way to switch to this playerglobal

 

Is there any need to import OSMF 2, as a flex library first

to have no errors?

 

when commenting out these two imports, code compiles ok,

so why are they there anyway, some kind of a legacy tail?...

 

...

 
Replies
  • Currently Being Moderated
    Aug 16, 2012 1:51 PM   in reply to Syberkitten

    I'm able to successfully compile against Flash Player 11.1.0 using Flex SDK 4.6.0 from Flash Builder. But to compile from Ant I had to remove some unused import statements to avoid compile errors.  I still have those two in there so apparently they didn't cause a problem for me. Those mx includes should not be in the code so you should be safe to remove them.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points