Does anyone know why the getDefinitionByName function works with “com.foo.Bar” and gives error with “com.foo.Rab”?
My only clue is that the class com.foo.Bar was created before importing the project to Flash Builder 4.5 for PHP (4.5.1 namely).
My question is very specific, in fact you could try for yourself if you had FB4.5.1, a prior version of the same program, and a lot of time. Obviously I’m hoping to find someone who have experienced this particular issue or any related issue with similar functions.
getDefinitionByName can only import classes that are already present in the current ApplicationDomain. Your app must import com.foo.Rab in the normal fashion earlier in the execution or it will not work.