> what does the framework_rb.swc contain that's missing from the
framework.swc
"Resource bundles" -- classes containing stringswhich get localized for
different languages. There are English and Japanese versions of
framework_rb.swc.
> I presume when i create a flex project the framework_rb.swc is
automatically included
Yes. The framework classes have metadata like [ResourceBundle("core")]
and [ResourceBundle("controls")] which specify the resource bundles they
require; mxmlc uses this metadata to determine which classes from the
xxx_rb.swc files to link in.
- Gordon
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Firdosh Tangri
Sent: Wednesday, December 06, 2006 1:34 PM
To: [email protected]
Subject: Re: [flexcomponents] mx Tween class with as3 project
oh ok gotcha , so what does the framework_rb.swc contain that's missing
from the framework.swc
and I presume when i create a flex project the framework_rb.swc is
automatically included?
thanks again for all your help :)
firdosh
On 12/6/06, Deepa Subramaniam <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
Firdosh,
Try adding this line to your project's compiler options:
-include-libraries=framework_rb.swc
deepa
________________________________
From: [email protected]
<mailto:[email protected]>
[mailto:[email protected]
<mailto:[email protected]> ] On Behalf Of Firdosh Tangri
Sent: Wednesday, December 06, 2006 12:45 PM
To: [email protected]
<mailto:[email protected]>
Subject: Re: [flexcomponents] mx Tween class with as3 project
Hey Deepa
thanks for all the help, I was bel to find the that
framework_rb.swc file
which took care of the error but when I add
-include-classes core.properties.
it throws an invalid compiler option error
thanks
firdosh
On 12/6/06, Deepa Subramaniam <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
Hey Firdosh -
It looks like by referencing one (or many) Flex framework classes in
your project, you're project is inadvertently pulling in UIComponent
which is trying to load the core resource bundle. UIComponent has some
metadata that tells the mxml compiler to pull in the core resource
bundle and it looks like that bundle is not being found. To work around
this, you need to make sure that framework_rb.swc is in your library
path (framework_rb.swc lives in the locale folder) as well as forcibly
link in the core.properties class by adding the mxml compiler option:
-include-classes core.properties.
Depending on what happens next you might have to link in other missing
resource bundle classes (control.properties, etc).
Now, a warning. The Flex framework is meant to be used as a whole and
not to use framework classes in an a la carte fashion. Things are not
guaranteed to work if that approach is followed. The Application tag
handles the setup and inclusion of many important things like styles,
resource bundles, etc - which is one of the reasons you're coming across
the RTE below. You may want to think about eliminating references to the
Flex classes in your AS only project or using the Flex framework to
achieve what you desire.
Goodluck -
deepa
________________________________
From: [email protected]
<mailto:[email protected]>
[mailto:[email protected]
<mailto:[email protected]> ] On Behalf Of Firdosh Tangri
Sent: Tuesday, December 05, 2006 8:04 PM
To: [email protected]
<mailto:[email protected]>
Subject: Re: [flexcomponents] mx Tween class with as3 project
I did that but it didnt work [added all the libs ] , throws compile time
errors
Severity Description Resource In Folder Location Creation
Time Id
2 Unable to resolve a class for ResourceBundle: core.
WebSiteEffects December 5, 2006 10:58:50 PM 607
2 Unable to resolve a class for ResourceBundle: core.
WebSiteEffects December 5, 2006 10:58:50 PM 608
2 Unable to resolve a class for ResourceBundle: core.
WebSiteEffects December 5, 2006 10:58:50 PM 609
2 Unable to resolve a class for ResourceBundle: core.
WebSiteEffects December 5, 2006 10:58:50 PM 610
2 Unable to resolve a class for ResourceBundle: effects.
WebSiteEffects December 5, 2006 10:58:50 PM 611
2 Unable to resolve a class for ResourceBundle: skins.
WebSiteEffects December 5, 2006 10:58:50 PM 612
So I was like maybe this is a namespace issue so i added
import mx.core.mx_internal;
use namespace mx_internal;
And well enough the compile time errors disappeared. But I get this
runtime error
Error: Could not find resource bundle core
at
mx.resources::ResourceBundle$/getResourceBundle()[C:\dev\GMC\sdk\framewo
rks\mx\resources\ResourceBundle.as:125]
at mx.core::UIComponent$cinit()
at
global$init()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:790]
at
mx.effects::EffectInstance/startEffect()[C:\dev\GMC\sdk\frameworks\mx\ef
fects\EffectInstance.as:422]
at
mx.effects::Effect/play()[C:\dev\GMC\sdk\frameworks\mx\effects\Effect.as
:763]
at
WebSiteEffects$iinit()[C:\FlexProjects\WebSiteEffects\src\WebSiteEffects
.as:42]
hope this helps
thanks
firdosh
On 12/5/06, Deepa Subramaniam <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
By default, an AS only project does not include framework.swc which
contains all the Flex framework classes. What you can do, is create your
AS only project and add framework.swc to your library path. Then you can
compile against any of the Flex framework classes.
-Deepa Subramaniam
________________________________
From: [email protected]
<mailto:[email protected]>
[mailto:[email protected]
<mailto:[email protected]> ] On Behalf Of Firdosh Tangri
Sent: Tuesday, December 05, 2006 11:25 AM
To: [email protected]
<mailto:[email protected]>
Subject: [flexcomponents] mx Tween class with as3 project
I dont know if this question really fits here but I am trying to get the
Alex Uhlmann super cool
Distortion effects to work in a AS3 only project. I had emailed him and
he replied back saying it should
work in an AS3 only project since all the classes are AS3 but I know the
base Distortion class extends
mx.effects.effectClasses
.TweenEffectInstance;
and I was under the impression that mx classes cannot be used in an AS3
only project ?
thanks
firdosh