for(i = 0; iaddJob(member.Jobs[i]);
I received an error on the addJob line:
Type enforcement failed: unable to add components. classes :: MemberJob@19107d81 is converted to components.classes.MemberJob.
I always receive this error when I load the member_profile module for the second time. I mean when I click from the profile module This module is loaded when the member’s name is used, and the module loads this name as a parameter of the submodule to load the member’s configuration file, including its job. Therefore, if I choose to view the member “X” configuration file, then load the configuration File without any error, but if I then click on the member “Y” (which will cause the submodule to reload with new parameters) then I get a type enforcement error. If I first click on “Y” and then “X” the same happens, second There was an error while loading this time.
Who can help me with this?
Edit:
Try putting the following in the main application file and see if it makes a difference:
< p>
import components.classes.MemberJob;
private var memberJob:MemberJob;
I have a main application (app. swf) load module (profiles.swf) and profile module load another module (member_profile.swf). In member_profile, I get member data from the server, which returns an object of type Member. The returned object contains an object named An array of Jobs, which contains objects of type MemberJob. In the member_profile module, there is a function that takes parameters of type MemberJob to display job details. I have a loop that goes through the returned array and calls the function for each array item, as follows Shown:
for(i = 0; iaddJob(member.Jobs[i]);
I received an error on the addJob line:
Type enforcement failed: unable to convert components.classes :: MemberJob @ 19107d81 to components.classes.MemberJob.
Who can help me with this?
Re-read the Flex help section on Module Domains and make sure that the components.classes::MemberJob class has been imported into the correct domain.
Edit:
Try putting the following in the main application file and see if it is different:
import components. classes.MemberJob;
private var memberJob:MemberJob;