Do you have the TextInput and its dependencies linked in to the application somehow?  If everything is external you still need something to bring it in.  So make sure your shell has the TextInput available.

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Russell Munro
Sent: Tuesday, October 10, 2006 9:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] modular apps > trouble making swc's small and usable

 

Hi

I am trying to set up a modular Flex 2 application. I would like to
have one single shell .swf application file that load many
other .swc libraries. The shell would hold the core app files so
the .swc's would only have to contain a minimum of data.

So, to create a small library component I thought I could setting
the default libraries (framework.swc, flex.swc, rpc.swc, etc.) to
External. This would eliminate essentual data that can be found in
the shell .swf at runtime. This is what I have done for my
Cairngorm.swc as was discussed here:
http://tech.groups.yahoo.com/group/flexcoders/message/51044

I am using a simple test file, TestComp.as:
package
{
import mx.controls.TextInput;

public class TestComp extends TextInput{

public function TestComp(){
super();
this.text = "hello world";
}
}
}

Accept at runtime (with TestComp linked as an RSL in my shell .swf)
I get this error in Flash player:
VerifyError: Error #1014: Class mx.controls::TextInput could not be
found.

Is there anyway I can only include the mx.controls.TextInput class
in my Library at compile time?
Will this fix my problem?
If there is a better way can you tell me how?

PS: I using mostly Flex Builder and am only basically familiar with
the command line and its options.

Thanks,

Russell Munro

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to