precompiling is the best option, your SWF will load in a split second. What you
are missing is to specify the location of the services-config.xml (portion in
red). Teh HTML wrapper shouldn't have anything to do with this. If you are
using ant, it should look like this:
<exec executable="${FLEX2_COMPILER}"
dir="${BUILD_WEB}"
vmlauncher="false"
failonerror="true">
<arg value="-incremental=true" />
<arg value="-context-root=/billing"/>
<arg value="-locale=en_US"/>
<arg value="-source-path=WEB-INF/flex/locale/en_US"/>
<arg value="-services=WEB-INF/flex/services-config.xml"/>
<arg value="billing.mxml" />
</exec>
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
haravallabhan
Sent: Wednesday, January 17, 2007 8:58 AM
To: [email protected]
Subject: [flexcoders] Precompiling with active web-tier compiler
Hi all..
I am trying to precompile the application which uses the FDS 2.0.
Precompiling doest give me any errors. But the issue is Iam using
RemoteObject in the client to access Java methods. So it need web-
tier compiler.
So when I wrote a html wrapper with the src="MyApp.swf" I get the
error "couldn't establish a connection to MyService" where MyService
is the destination I referred to in the RemoteObject call.The
destination poits to the service mentioned in the remote-config.xml.
But when I give src="MyApp.mxml" in the html wrapper the application
works fine. Is it that it nullified the precompile I did?? Does it
compile again when I specify MyApp.mxml iside the html wrapper
If so is there a way out, without compromising the precompiling
action? Can I deactivate the web-tier compiler? And which config I
may use instead of remote-config.xml. Since when remote-config.xml is
there then the web-tier compiler is activates as per the help doc.
Does anyone have an answer for me?
Thanks in advance
Regards
Hara
--- In [email protected] <mailto:flexcoders%40yahoogroups.com> ,
"haravallabhan"
<[EMAIL PROTECTED]> wrote:
>
> Thanks gr8 work clint... thanks a lot... it worked... I was
> searching for web-inf/flex/libs but it looks like it takes form the
> sdk framework
>
> thanks a lot clint.
>
> cheers
> Hara
>
>
>
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com> ,
> "Clint Modien" <cmodien@> wrote:
> >
> > Sounds like you're missing the fds.swc . It's not included in
the
> SDK.
> >
> > You can get the express version of FDS here:
> > http://www.adobe.com/go/flex_trial <http://www.adobe.com/go/flex_trial>
> >
> > On 1/12/07, haravallabhan <haravallabhan@> wrote:
> > >
> > > Thanks Clint for the links.. Was useful.
> > >
> > > I have added ant tags to compile and build the Flex application
> > > manually with precompilation.But When I tried to complie the
mxml
> > > file using the ant build file I get an error which I didnt get
> when I
> > > compile normally. The error says Interface IManaged not found
and
> the
> > > ant says the build was Failed.
> > >
> > > Whats the error mean? I am using the exec tag to use the
> mxmlc.exe in
> > > the fsdk2/bin in the Flex Builder installed directory.
> > >
> > > Thanks
> > > regards
> > > Hara
> > >
> > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> > > <flexcoders%
> 40yahoogroups.com>, "Clint
> > > Modien" <cmodien@> wrote:
> > > >
> > > > http://livedocs.flexsearch.org/index.shtml?
> > > > <http://livedocs.flexsearch.org/index.shtml?>
> cx=017079146949617508304%
<http://livedocs.flexsearch.org/index.shtml?
<http://livedocs.flexsearch.org/index.shtml?>
> cx=017079146949617508304%25>
> > > 3Amv4wpsyofxu&cof=FORID%3A9&q=mxmlc#1126
> > > >
> > > > What you really want to do is setup ant to build it for you in
> > > flexbuilder
> > > > 2.
> > > > http://www.flex2ant.org/ <http://www.flex2ant.org/>
> > > >
> > > > Or setup ant from the command line.
> > > > http://webddj.sys-con.com/read/309503.htm
> > > > <http://webddj.sys-con.com/read/309503.htm>
> > > > http://webddj.sys-con.com/read/310378.htm
> > > > <http://webddj.sys-con.com/read/310378.htm>
> > > >
> > > >
> > > > On 1/10/07, haravallabhan <haravallabhan@> wrote:
> > > > >
> > > > > Hi Rob and Mod,
> > > > > Thanks for your itme guys. Rob I use FDS and there are no
> images
> > > > > loaded initally. I directly call the application which
> initially
> > > > > shows
> > > > > Vbox--
> > > > > Hbox-a Logo-/Hbox
> > > > > applictionControlBar-- /
> > > > > viewStack
> > > > > -- first tab(visible first time) - 3 viewstack each has a
> chart
> > > > > and datagrid
> > > > > -- second tab - a tree, 2 data grid and a viewstack with a
> > > > > datagrid and a chart
> > > > > /viewstack
> > > > > /vbox
> > > > > Rob what do you mean by the controls in this context.
> > > > > Hi Mod where do I compile the files-- through FlexSDK
> folder???
> > > > >
> > > > > Thanks
> > > > > regards
> > > > > Hara
> > > > >
> > > > > --- In [email protected]
> > > > > <mailto:flexcoders%40yahoogroups.com> <flexcoders%
> 40yahoogroups.com><flexcoders%
> > > 40yahoogroups.com>, "Clint
> > > > > Modien" <cmodien@> wrote:
> > > > > >
> > > > > > Ya... precompiling would definitely help. While your
> waiting for
> > > > > that
> > > > > > minute. 90% of that time is probably compilation.
> > > > > >
> > > > > > Precompiling is in the docs...
> > > > > >
> > > > > > http://livedocs.flexsearch.org/index.shtml?
> > > > > > <http://livedocs.flexsearch.org/index.shtml?>
> > > cx=017079146949617508304%
> <http://livedocs.flexsearch.org/index.shtml?
> <http://livedocs.flexsearch.org/index.shtml?>
> > > cx=017079146949617508304%25>
> > > > > 3Amv4wpsyofxu&cof=FORID%3A9&q=precompiling#816
> > > > > >
> > > > > > Which version of Flex is this?
> > > > > >
> > > > > >
> > > > > > On 1/10/07, haravallabhan <haravallabhan@> wrote:
> > > > > > >
> > > > > > > Hi guys,
> > > > > > > How to improve the startup performance of the flex
> > > application.
> > > > > That is
> > > > > > > before the application initializes a blank screen
appears
> for
> > > > > over a
> > > > > > > minute after that a progress bar shows up.I want to
> minimize
> > > the
> > > > > time
> > > > > > > the blank page appears. I am using Tomcat server for
> running
> > > the
> > > > > > > application. Does the usage of containers play a role
on
> such
> > > > > behaviour
> > > > > > > or is that a server problem.
> > > > > > >
> > > > > > > Will I be helped if the application is precompiled??..
If
> so
> > > how
> > > > > do I
> > > > > > > precompile the application :). Or is there any other
way
> to
> > > > > improve the
> > > > > > > performance. I did try out ceratin links but they
> recommend
> > > using
> > > > > timer
> > > > > > > to check the initialization performance. But I need to
> > > improve the
> > > > > > > performance before initialization.
> > > > > > >
> > > > > > > I need to recommend flex for RIA development.But this
> thing is
> > > > > like a
> > > > > > > black mark for Flex. Can anybody help me.
> > > > > > >
> > > > > > > Thanks in advance
> > > > > > > Cheers
> > > > > > > Hara
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>
--
WARNING
-------
This electronic message and its attachments may contain confidential,
proprietary or legally privileged information, which is solely for the use of
the intended recipient. No privilege or other rights are waived by any
unintended transmission or unauthorized retransmission of this message. If you
are not the intended recipient of this message, or if you have received it in
error, you should immediately stop reading this message and delete it and all
attachments from your system. The reading, distribution, copying or other use
of this message or its attachments by unintended recipients is unauthorized and
may be unlawful. If you have received this e-mail in error, please notify the
sender.
AVIS IMPORTANT
--------------
Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au
seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
privilège ou à aucun autre droit si le présent message a été transmis
involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur,
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses
pièces jointes, de votre système. La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des personnes
autres que le destinataire visé ne sont pas autorisés et pourraient être
illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en
aviser l'expéditeur.