Re: [flexcoders] Security sandbox violation: BitmapData.draw:

2008-09-19 Thread [EMAIL PROTECTED]
I made a workaround by using static images on my server, so the link 
does not make the error anymore. It works fine in this situation, but 
I'd still sure like to know what the answer to this is because I've run 
into it before.

[EMAIL PROTECTED] wrote:
> I have run into a problem with accessing youtube images. I can access 
> them once but not twice. .
> Here is the example: http://journeyblueheaven.com/index.php
>
> You can click on "Watch" once, and it loads an XML file from a youtube 
> rss, and diplays the results, including images from youtube. So far so 
> good. But then,  but if you click on anything else, it attempts to make 
> the images not visible and triggers the sandbox violation below, which 
> requires me to set a policy flag.
>
> This line triggers the error: Main.mxml:173 "mainImgBox.visible = false;"
> This is not the sandbox violation where my swf cannot access  another 
> domain. This issue is similar to the one described on this page:
> http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_around_security_sandbox_errors
>  
>
>
> Only that page loads images with mxml.
> The way I am loading the images is with actionscript
> newImage.source = xml.src;
>
> How do I set the policy file flag in this situation, or do I need to 
> load the images some other way ?
> If I try
> [Bindable]
>var loaderContext : LoaderContext;
>private function imageInit() : void
>{
>   loaderContext = new LoaderContext();
>   loaderContext.checkPolicyFile = true;
>}
> newImage.loaderContext = "{loaderContext}";
>newImage.initialize = "imageInit()" ;
>
> I get this error:
> K:\flex3\jbh\fdjbh\Main.mxml(225):  Error: Implicit coercion of a value 
> of type String to an unrelated type flash.system:LoaderContext.
> Do I have the wrong syntax, perhaps ?
>
>
>
> The code is here: http://journeyblueheaven.com/Main.mxml
>
>
> SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: 
> http://journeyblueheaven.com/fdjbh.swf cannot access 
> http://2.gvt0.com/ThumbnailServer2?app=vss&contentid=0f9a9bc1bda569e6&offsetms=60&itag=w160&hl=en&sigh=EMg47-bM9077Aklrd1oumF_zqec.
>  
> A policy file is required, but the checkPolicyFile flag was not set when 
> this media was loaded.
>at flash.display::BitmapData/draw()
>at 
> mx.effects.effectClasses::MaskEffectInstance/getVisibleBounds()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:771]
>at 
> mx.effects.effectClasses::MaskEffectInstance/initMask()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:650]
>at 
> mx.effects.effectClasses::MaskEffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:463]
>at 
> mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Effect.as:930]
>at 
> mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:716]
>at 
> mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]
>at flash.events::EventDispatcher/dispatchEventFunction()
>at flash.events::EventDispatcher/dispatchEvent()
>at 
> mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
>at 
> mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1903]
>at mx.core::UIComponent/set 
> visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1870]
>at Main/changeState()[K:\flex3\jbh\fdjbh\Main.mxml:173]
>at Main/__button1_mouseUp()[K:\flex3\jbh\fdjbh\Main.mxml:302]
>
>
>
> Tim Hoff wrote:
>  > * *
>  >
>  > *private* *function* effectEndHandler():*void* {
>  > callLater(showBox);
>  > }
>  >
>  > *private* *function* showBox():*void*{
>  > mainImgBox.visible = *true*;
>  > }
>  >
>  > -TH
>  >
>  > --- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
> wrote:
>  > >
>  > > I have this box which I want to wipe left to hide and then wipe right
>  > > to show.
>  > > It hides all right and then it called the effectEndHandler, but
>  > > mainImgBox.visible = true; does not do anything. There is no wipe right
>  > > and the box does not appear. what am I doing wrong ?
>  > >
>  > >
>  > >
>  > >  showEffect="{wipeRight}">
>  > >   > > source="@Embed(source='../media/jbh.jpg')"
>  > > />
>  > > 
>  > >
>  > >   > > effectEnd="effectEndHandler()" />
>  > > 
>  > >
>  > > private function effectEndHandler():void {
>  > >
>  > > mainImgBox.visible = true;
>  > > }
>  > >
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/a

[flexcoders] LCDS: Debug RTMP Traffic

2008-09-19 Thread Geoffrey
I'm having some issues with 2 DataServices running over RTMP.  The
first DataService loads on application startup and work fine (I get
data).  The second load later on in the application, but this one
get's no data.  It doesn't appear that it even makes the connect
request because my result and fault handlers don't get hit.

Is there a tool (like Charles, ServiceCapture, or Wireshark) that can
be used to verify that something over an RTMP channel is being sent
from the client?  Like I said, nothing seems to happen when I issue
the DataService.connect() call.

I've enabled a bunch of logging on the server(via the
services-config.xml file), but if that traffic isn't reaching the
server, all the logging in the world won't help.

BTW, if you say that Wireshark can be used, then please post the
filter you use because I couldn't figure out one that only showed RTMP
traffic.  As a matter of fact, I couldn't find anything that looked
like RTMP traffic in the log session.

I don't know if it's important or not, but the server and the client
are all running locally.

Env:
Tomcat 6.0.16
LCDS 2.6
Flex 3

Thanks,
 ~Geoff



Re: [flexcoders] How to turn a dynamically loaded swf into a popup quick?

2008-09-19 Thread Boon Chew
Genius, thanks Mike.

- boon

--- On Fri, 9/19/08, Michael Schmalle <[EMAIL PROTECTED]> wrote:
From: Michael Schmalle <[EMAIL PROTECTED]>
Subject: Re: [flexcoders] How to turn a dynamically loaded swf into a popup 
quick?
To: flexcoders@yahoogroups.com
Date: Friday, September 19, 2008, 11:08 AM











Hi,

Couldn't you just create a subclass of say TitleWindow and make the SWF loader 
a single child.

Maybe write a couple public methods to interface through the window to load 
your content.


Then use the PopUpManager to popup that subclass that holds the SWFLoader.

A thought, don't know the security issues though.

Mike

On Fri, Sep 19, 2008 at 2:02 PM, Boon Chew <[EMAIL PROTECTED] com> wrote:




















I have a swf that I am loading in via SWFLoader and I would like to treat it 
like a regular popup (like the ones created via createPopUp) , is that possible 
to do with PopUpManager? What's the alternative in order to achieve what 
PopUpManager achieves (ability to set modal/non-modal, bring to front, ability 
to move dialog around, etc.) without writing a ton of code?


- boon



  
  





















-- 
Teoti Graphix, LLC
http://www.teotigra phix.com

Teoti Graphix Blog
http://www.blog. teotigraphix. com


You can find more by solving the problem then by 'asking the question'.



  




 

















  

Re: [flexcoders] unable to use debug mode

2008-09-19 Thread ivo
Is this a new workspace? I've found that on my Mac debugging only works from 
projects I create in the original workspace. Those I create in a new workspace 
can only be compiled/debugged once and further updates & trace statements to 
the code are ignored.



- Original Message 
From: yigit <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, September 19, 2008 4:27:51 PM
Subject: Re: [flexcoders] unable to use debug mode


did you try changing your debugger? e.g. ie to ffox or vice versa

windsail05 wrote:
>
> For the past couple of months I have not been able to use debug mode
> for one of my workspaces. I am able to be in debug mode and run
> things from debug mode, but none of my breakpoints get triggered and
> none of my traces show up. I am not sure why this is happening. This
> workspace use to work in debug mode.
>
> Does anyone know of any settings that could have been changed or
> reasons for this happening?
>
> 



Re: [flexcoders] unable to use debug mode

2008-09-19 Thread Maciek Sakrejda
There is (was?) a FB bug caused by a Firefox 3 bug that had these exact
symptoms:

http://bugs.adobe.com/jira/browse/FB-13064
https://bugzilla.mozilla.org/show_bug.cgi?id=438830

The FF bug is resolved as FIXED, but I don't understand exactly when
(that is, in which release). For what it's worth, the debugger is
working again for me now (latest Firefox 3 in Ubuntu).

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: windsail05 <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] unable to use debug mode
Date: Fri, 19 Sep 2008 23:08:29 -

For the past couple of months I have not been able to use debug mode 
for one of my workspaces. I am able to be in debug mode and run 
things from debug mode, but none of my breakpoints get triggered and 
none of my traces show up. I am not sure why this is happening. This 
workspace use to work in debug mode.

Does anyone know of any settings that could have been changed or 
reasons for this happening?




 




Re: [flexcoders] unable to use debug mode

2008-09-19 Thread yigit
did you try changing your debugger? e.g. ie to ffox or vice versa

windsail05 wrote:
>
> For the past couple of months I have not been able to use debug mode
> for one of my workspaces. I am able to be in debug mode and run
> things from debug mode, but none of my breakpoints get triggered and
> none of my traces show up. I am not sure why this is happening. This
> workspace use to work in debug mode.
>
> Does anyone know of any settings that could have been changed or
> reasons for this happening?
>
>  



[flexcoders] unable to use debug mode

2008-09-19 Thread windsail05
For the past couple of months I have not been able to use debug mode 
for one of my workspaces.  I am able to be in debug mode and run 
things from debug mode, but none of my breakpoints get triggered and 
none of my traces show up.  I am not sure why this is happening.  This 
workspace use to work in debug mode.

Does anyone know of any settings that could have been changed or 
reasons for this happening?



[flexcoders] Security sandbox violation: BitmapData.draw:

2008-09-19 Thread [EMAIL PROTECTED]

I have run into a problem with accessing youtube images. I can access 
them once but not twice. .
Here is the example: http://journeyblueheaven.com/index.php

You can click on "Watch" once, and it loads an XML file from a youtube 
rss, and diplays the results, including images from youtube. So far so 
good. But then,  but if you click on anything else, it attempts to make 
the images not visible and triggers the sandbox violation below, which 
requires me to set a policy flag.

This line triggers the error: Main.mxml:173 "mainImgBox.visible = false;"
This is not the sandbox violation where my swf cannot access  another 
domain. This issue is similar to the one described on this page:
http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_around_security_sandbox_errors
 


Only that page loads images with mxml.
The way I am loading the images is with actionscript
newImage.source = xml.src;

How do I set the policy file flag in this situation, or do I need to 
load the images some other way ?
If I try
[Bindable]
   var loaderContext : LoaderContext;
   private function imageInit() : void
   {
  loaderContext = new LoaderContext();
  loaderContext.checkPolicyFile = true;
   }
newImage.loaderContext = "{loaderContext}";
   newImage.initialize = "imageInit()" ;

I get this error:
K:\flex3\jbh\fdjbh\Main.mxml(225):  Error: Implicit coercion of a value 
of type String to an unrelated type flash.system:LoaderContext.
Do I have the wrong syntax, perhaps ?



The code is here: http://journeyblueheaven.com/Main.mxml


SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: 
http://journeyblueheaven.com/fdjbh.swf cannot access 
http://2.gvt0.com/ThumbnailServer2?app=vss&contentid=0f9a9bc1bda569e6&offsetms=60&itag=w160&hl=en&sigh=EMg47-bM9077Aklrd1oumF_zqec.
 
A policy file is required, but the checkPolicyFile flag was not set when 
this media was loaded.
   at flash.display::BitmapData/draw()
   at 
mx.effects.effectClasses::MaskEffectInstance/getVisibleBounds()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:771]
   at 
mx.effects.effectClasses::MaskEffectInstance/initMask()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:650]
   at 
mx.effects.effectClasses::MaskEffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:463]
   at 
mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Effect.as:930]
   at 
mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:716]
   at 
mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at 
mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
   at 
mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1903]
   at mx.core::UIComponent/set 
visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1870]
   at Main/changeState()[K:\flex3\jbh\fdjbh\Main.mxml:173]
   at Main/__button1_mouseUp()[K:\flex3\jbh\fdjbh\Main.mxml:302]



Tim Hoff wrote:
 > * *
 >
 > *private* *function* effectEndHandler():*void* {
 > callLater(showBox);
 > }
 >
 > *private* *function* showBox():*void*{
 > mainImgBox.visible = *true*;
 > }
 >
 > -TH
 >
 > --- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
 > wrote:
 > >
 > > I have this box which I want to wipe left to hide and then wipe right
 > > to show.
 > > It hides all right and then it called the effectEndHandler, but
 > > mainImgBox.visible = true; does not do anything. There is no wipe right
 > > and the box does not appear. what am I doing wrong ?
 > >
 > >
 > >
 > > 
 > >  > source="@Embed(source='../media/jbh.jpg')"
 > > />
 > > 
 > >
 > >  > effectEnd="effectEndHandler()" />
 > > 
 > >
 > > private function effectEndHandler():void {
 > >
 > > mainImgBox.visible = true;
 > > }
 > >


RE: [flexcoders] Flex loadResourceModule and loadStyleDeclarations

2008-09-19 Thread Gordon Smith
No, sorry. We didn't design style modules and resource modules to co-exist as a 
single SWF.

- Gordon

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Guillaume Malartre
Sent: Friday, September 19, 2008 9:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex loadResourceModule and loadStyleDeclarations

Hi,

I use mxmlc to compile a style sheet and localization file

mxmlc
-locale=fr_CA
-source-path+=locale_succes_scolaire/{locale}
-allow-source-path-overlap=true
-include-resource-bundles=AppModel
-include-libraries=Assets_Succes_Scolaire.swc succes_scolaire.css

Then in Flex I would like to load the swf in one shot, the Resources and the 
Styles.

Is it possible? loadStyleDeclarations definitely does not include my resource 
in the project once completed.

Another question: Anyone know why mxmlc always give a file size starting with 
20kB of stuff?

--
Merci,
Guillaume

Guillaume Malartre
Programmeur-Analyste, Scolab
514-528-8066, 1-888-528-8066

Besoin d'aide en maths?
www.NetMaths.net



[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff

Ouch, that's ugly.  But Journey is cute. :)  Could be the
crossdomain.xml issue, but not sure either.

-TH

--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> First, you should start a new thread with a different title. :)
>
> I don't know this answer though.
>
> Mike
>
> On Fri, Sep 19, 2008 at 5:19 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
>
> >
> > Hello,
> > Thanks, that was a big help. I did have a far more convoluted method
and
> > I was really dreading having to go back to it because this.
> >
> > Now I have run into another problem with the wipe effect.
> > Here is the example: http://journeyblueheaven.com/index.php
> >
> > You can click on "Watch" once, and it loads an XML file from a
youtube
> > rss, and diplays the results, including images from youtube. So far
so
> > good. But then, but if you click on anything else, it attempts to
wipe
> > and triggers the sandbox violation below, which requires me to set a
> > policy flag.
> >
> > This line triggers the error: Main.mxml:173
> > "mainImgBox.visible = false;"
> >
> > The way I am loading the images is
> > newImage.source = xml.src;
> >
> > How do I set the policy file flag in this situation, or do I need to
> > load the images some other way ?
> >
> > The code is here: http://journeyblueheaven.com/Main.mxml
> >
> > SecurityError: Error #2122: Security sandbox violation:
BitmapData.draw:
> > http://journeyblueheaven.com/fdjbh.swf cannot access
> >
> >
http://2.gvt0.com/ThumbnailServer2?app=vss&contentid=0f9a9bc1bda569e6&of\
fsetms=60&itag=w160&hl=en&sigh=EMg47-bM9077Aklrd1oumF_zqec.
> > A policy file is required, but the checkPolicyFile flag was not set
when
> > this media was loaded.
> > at flash.display::BitmapData/draw()
> > at
> >
> >
mx.effects.effectClasses::MaskEffectInstance/getVisibleBounds()[E:\dev\3\
.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffe\
ctInstance.as:771]
> > at
> >
> >
mx.effects.effectClasses::MaskEffectInstance/initMask()[E:\dev\3.0.x\fra\
meworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstan\
ce.as:650]
> > at
> >
> >
mx.effects.effectClasses::MaskEffectInstance/startEffect()[E:\dev\3.0.x\\
frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectIns\
tance.as:463]
> > at
> >
> >
mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\
\mx\effects\Effect.as:930]
> > at
> >
> >
mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\
\projects\framework\src\mx\effects\EffectManager.as:716]
> > at
> > mx.effects::EffectManager$/
> > http://www.adobe.com/2006/flex/mx/internal::eventHandler
> >
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManag\
er.as:575]
> > at flash.events::EventDispatcher/dispatchEventFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at
> >
> >
mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\fr\
amework\src\mx\core\UIComponent.as:9051]
> > at
> >
> >
mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\frame\
work\src\mx\core\UIComponent.as:1903]
> > at mx.core::UIComponent/set
> >
> >
visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UICompo\
nent.as:1870]
> > at Main/changeState()[K:\flex3\jbh\fdjbh\Main.mxml:173]
> > at Main/__button1_mouseUp()[K:\flex3\jbh\fdjbh\Main.mxml:302]
> >
> > Tim Hoff wrote:
> > > * *
> > >
> > > *private* *function* effectEndHandler():*void* {
> >
> > > callLater(showBox);
> > > }
> > >
> > > *private* *function* showBox():*void*{
> > > mainImgBox.visible = *true*;
> > > }
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com ,
> > "info1@" info1@ wrote:
> > > >
> > > > I have this box which I want to wipe left to hide and then wipe
right
> > > > to show.
> > > > It hides all right and then it called the effectEndHandler, but
> > > > mainImgBox.visible = true; does not do anything. There is no
wipe right
> > > > and the box does not appear. what am I doing wrong ?
> > > >
> > > >
> > > >
> > > >  > > showEffect="{wipeRight}">
> > > >  > > > source="@Embed(source='../media/jbh.jpg')"
> > > > />
> > > > 
> > > >
> > > >  > > > effectEnd="effectEndHandler()" />
> > > > 
> > > >
> > > > private function effectEndHandler():void {
> > > >
> > > > mainImgBox.visible = true;
> > > > }
> > > >
> > >
> > > --
> > >
> > >
> > >
> > > Checked by AVG - http://www.avg.com
> > > Version: 8.0.169 / Virus Database: 270.7.0/1680 - Release Date:
9/19/2008
> > 8:25 AM
> > >
> > >
> >
> >
> >
>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the
question'.
>





Re: [flexcoders] DefaultListEffect issues, effects don't play on every added item

2008-09-19 Thread Michael Schmalle
Hi,

Why can't you use the as3 tween framework you want?

I know OpenFlux uses Tweener. Default out of the box factories you don't get
with Flex right now but, it's pretty easy to replace effects with some other
tween methods, in effect just creating your own factories and implementing
them.

This way, you use the flex framework's event hooks and go from there with
your preferred tween api.

Mike

On Fri, Sep 19, 2008 at 4:16 PM, djhatrick <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> I am using the defaultListEffect and I am having issues with
> animations playing on adding items, while the removeItem animations
> are playing nicely, the addItem anims are only playing every other
> time or not all.
>
> Has anyone else got better results than me? It seems the problem is
> with DefaultListEffect, it might have some issues. Is there an
> actioncsript only version of this mxml example? There's still code in
> the DefaultListEffect file that says "for this beta". hmmm?
>
> To be honest, the tween stuff in flex is really complicated. I use to
> work for an agency and we used TweenLite and it's much easier to
> leverage a simple mechanism for tweening and hella fast. I wish
> there will to be a way to implement other tween engines into flex,
> more or less a factory for them, my 2 cents. Sometimes this stuff is
> like showing up with a knife at a gun fight.
>
> Thanks, Any help on this stuff is appreciated very much.
>
> Patrick
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread Michael Schmalle
Hi,

First, you should start a new thread with a different title. :)

I don't know this answer though.

Mike

On Fri, Sep 19, 2008 at 5:19 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

>
> Hello,
> Thanks, that was a big help. I did have a far more convoluted method and
> I was really dreading having to go back to it because this.
>
> Now I have run into another problem with the wipe effect.
> Here is the example: http://journeyblueheaven.com/index.php
>
> You can click on "Watch" once, and it loads an XML file from a youtube
> rss, and diplays the results, including images from youtube. So far so
> good. But then, but if you click on anything else, it attempts to wipe
> and triggers the sandbox violation below, which requires me to set a
> policy flag.
>
> This line triggers the error: Main.mxml:173
> "mainImgBox.visible = false;"
>
> The way I am loading the images is
> newImage.source = xml.src;
>
> How do I set the policy file flag in this situation, or do I need to
> load the images some other way ?
>
> The code is here: http://journeyblueheaven.com/Main.mxml
>
> SecurityError: Error #2122: Security sandbox violation: BitmapData.draw:
> http://journeyblueheaven.com/fdjbh.swf cannot access
>
> http://2.gvt0.com/ThumbnailServer2?app=vss&contentid=0f9a9bc1bda569e6&offsetms=60&itag=w160&hl=en&sigh=EMg47-bM9077Aklrd1oumF_zqec.
> A policy file is required, but the checkPolicyFile flag was not set when
> this media was loaded.
> at flash.display::BitmapData/draw()
> at
>
> mx.effects.effectClasses::MaskEffectInstance/getVisibleBounds()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:771]
> at
>
> mx.effects.effectClasses::MaskEffectInstance/initMask()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:650]
> at
>
> mx.effects.effectClasses::MaskEffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:463]
> at
>
> mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Effect.as:930]
> at
>
> mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:716]
> at
> mx.effects::EffectManager$/
> http://www.adobe.com/2006/flex/mx/internal::eventHandler
> ()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at
>
> mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
> at
>
> mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1903]
> at mx.core::UIComponent/set
>
> visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1870]
> at Main/changeState()[K:\flex3\jbh\fdjbh\Main.mxml:173]
> at Main/__button1_mouseUp()[K:\flex3\jbh\fdjbh\Main.mxml:302]
>
> Tim Hoff wrote:
> > * *
> >
> > *private* *function* effectEndHandler():*void* {
>
> > callLater(showBox);
> > }
> >
> > *private* *function* showBox():*void*{
> > mainImgBox.visible = *true*;
> > }
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com ,
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > >
> > > I have this box which I want to wipe left to hide and then wipe right
> > > to show.
> > > It hides all right and then it called the effectEndHandler, but
> > > mainImgBox.visible = true; does not do anything. There is no wipe right
> > > and the box does not appear. what am I doing wrong ?
> > >
> > >
> > >
> > >  > showEffect="{wipeRight}">
> > >  > > source="@Embed(source='../media/jbh.jpg')"
> > > />
> > > 
> > >
> > >  > > effectEnd="effectEndHandler()" />
> > > 
> > >
> > > private function effectEndHandler():void {
> > >
> > > mainImgBox.visible = true;
> > > }
> > >
> >
> > --
> >
> >
> >
> > Checked by AVG - http://www.avg.com
> > Version: 8.0.169 / Virus Database: 270.7.0/1680 - Release Date: 9/19/2008
> 8:25 AM
> >
> >
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread [EMAIL PROTECTED]

Hello,
Thanks, that was a big help. I did have a far more convoluted method and 
I was really dreading having to go back to it because this.

Now I have run into another problem with the wipe effect.
Here is the example: http://journeyblueheaven.com/index.php

You can click on "Watch" once, and it loads an XML file from a youtube 
rss, and diplays the results, including images from youtube. So far so 
good. But then,  but if you click on anything else, it attempts to wipe 
and triggers the sandbox violation below, which requires me to set a 
policy flag.

This line triggers the error: Main.mxml:173 
"mainImgBox.visible = false;"

The way I am loading the images is
newImage.source = xml.src;

How do I set the policy file flag in this situation, or do I need to 
load the images some other way ?



The code is here: http://journeyblueheaven.com/Main.mxml


SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: 
http://journeyblueheaven.com/fdjbh.swf cannot access 
http://2.gvt0.com/ThumbnailServer2?app=vss&contentid=0f9a9bc1bda569e6&offsetms=60&itag=w160&hl=en&sigh=EMg47-bM9077Aklrd1oumF_zqec.
 
A policy file is required, but the checkPolicyFile flag was not set when 
this media was loaded.
at flash.display::BitmapData/draw()
at 
mx.effects.effectClasses::MaskEffectInstance/getVisibleBounds()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:771]
at 
mx.effects.effectClasses::MaskEffectInstance/initMask()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:650]
at 
mx.effects.effectClasses::MaskEffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\effectClasses\MaskEffectInstance.as:463]
at 
mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Effect.as:930]
at 
mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:716]
at 
mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
at 
mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1903]
at mx.core::UIComponent/set 
visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1870]
at Main/changeState()[K:\flex3\jbh\fdjbh\Main.mxml:173]
at Main/__button1_mouseUp()[K:\flex3\jbh\fdjbh\Main.mxml:302]



Tim Hoff wrote:
> * *
>
> *private* *function* effectEndHandler():*void* {
> callLater(showBox);
> }
>
> *private* *function* showBox():*void*{
> mainImgBox.visible = *true*;
> }
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
> wrote:
> >
> > I have this box which I want to wipe left to hide and then wipe right
> > to show.
> > It hides all right and then it called the effectEndHandler, but
> > mainImgBox.visible = true; does not do anything. There is no wipe right
> > and the box does not appear. what am I doing wrong ?
> >
> >
> >
> >  showEffect="{wipeRight}">
> >  > source="@Embed(source='../media/jbh.jpg')"
> > />
> > 
> >
> >  > effectEnd="effectEndHandler()" />
> > 
> >
> > private function effectEndHandler():void {
> >
> > mainImgBox.visible = true;
> > }
> >
> 
> 
>
>
>
> Checked by AVG - http://www.avg.com 
> Version: 8.0.169 / Virus Database: 270.7.0/1680 - Release Date: 9/19/2008 
> 8:25 AM
>
>   



RE: [flexcoders] Passing URLVariables from 1 Flex App to another?

2008-09-19 Thread Tracy Spratt
Use a single app with the login in a pop-up.  What is the use case for
having two apps?  

 

If you insist on keeping it like that, you will need to make your html
wrapper relay the url vars to the main app via flashvars.  Here is a
little snippet of javascript that does this:

var _sPassedUrlParms = new String(document.location).split('?')[1];
//Get any passed-in querystring parms

 

Then, pass that into the Flex app:

  AC_FL_RunContent(

  "src", "Coalesce",

  ...

  "flashvars", _sPassedUrlParms, 

  ..."

  );

 

In Main app, access the flashvars via th Application.parameters object.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of djohnson29
Sent: Friday, September 19, 2008 3:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Passing URLVariables from 1 Flex App to another?

 

I have 2 Flex Applications, Login.mxml and Main.mxml. Login.mxml
handles the use Login and upon a successful authentication (with
Spring Security), I want to load Main.mxml (Main.html which contains
Main.swf)

After a successfully logging in with spring security, from Login.mxml
I load the main app like so:

var url:URLRequest = new URLRequest(Main.html");
var uv:URLVariables = new URLVariables();
url.method = "POST";
uv.UserName = username; // string var 
navigateToURL(url,"_self");

Main.html (containing Main.swf) loads successfully, but I am unable to
extract the desired parameters. I want to pass the logged in user
info from Login to Main.

How do I access these URLVariables from the newly loaded Application?

What is the best (simplest!) way to do this?

Thanks 

 



RE: [flexcoders] How to call 2 services in a single event handler

2008-09-19 Thread Tracy Spratt
"...I have associated result handlers with both the services..."  Are
you sure you have done that correctly?  Have you put a trace or
breakpoint in each handler to veritfy the data is being returned?

 

As an aside, you can use a single service instance, and use AsyncToken
to match a result up with its call.  It is very handy to be able to
debug all data service calls with a single breakpoint.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Friday, September 19, 2008 8:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to call 2 services in a single event
handler

 

Your dispatch code looks ok to me at first glance. Have you checked to
make sure both requests are making out to the server and coming back OK?

-Josh

On Fri, Sep 19, 2008 at 8:27 PM, Tapan Ghia <[EMAIL PROTECTED]
 > wrote:


Hey.

I am trying to call 2 services from a single function. Both the services
send the request to the server and i am getting the response. I have
associated result handlers with both the services. And in these result
handlers i am trying to populate two different forms.

While doing so, inspite of getting both the responses, the second form
does
not get populated with the response for the first time, while the first
form
gets populated with the response.

Whenever the second form is clicked for the second time it gets
populated.

I want both the forms to be loaded with the response when the event is
generated.

Can someone please tell if i am doing something wrong.

This is my code:

public function handleTreeClick(event:MouseEvent):void
 {
   var nodeType:String = [EMAIL PROTECTED];
   if(nodeType == "")
   {
 var isOpen:Boolean =
assetTree.isItemOpen(event.currentTarget.selectedItem);

assetTree.expandItem(event.currentTarget.selectedItem,!isOpen,true);
   }
   if(nodeType == "ppt")
   {
 var params:Object = {};
 params["id"[EMAIL PROTECTED];
 params["action"]="getAsset";
 assetList.send(params);
   }


   if(nodeType != "" && nodeType != "folder")
   {
   var paramsForDetails:Object = new Object();
   paramsForDetails["action"] = "edit";
   paramsForDetails["resType"] = "xml";
   paramsForDetails["assetsId"] =
[EMAIL PROTECTED];
   paramsForDetails["entityId"] =
[EMAIL PROTECTED];
   selectedAssetType =
[EMAIL PROTECTED];
   assetDetailsService.send(paramsForDetails);

   }



 }

Thanks in advance..
--
View this message in context:
http://www.nabble.com/How-to-call-2-services-in-a-single-event-handler-t
p19569871p19569871.html
 
Sent from the FlexCoders mailing list archive at Nabble.com.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
 
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups
Links


   (Yahoo! ID required)

   mailto:[EMAIL PROTECTED]
 






-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

http://flex.joshmcdonald.info/  

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]  

 



RE: [flexcoders] dynamic icons while using Repeater

2008-09-19 Thread Tracy Spratt
Create a custom component and repeat that.  Pass in the entire
currentItem, via a setter function.

 

There are timing issues to keep in mind.  If you do not have repeater
set to recycleChildren, then you can use creationComplete to directly
set the source of your images to the value in the current item.  If you
do, or might use recycling, you can create a bindable var, bind the
Image source to that, and then set that var in the setter function.  The
binding should ensure that your image source property is set when it has
a value.

 

The setter function will be called before creationComplete, so you can't
directly assign the source in the setter.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gridwest
Sent: Thursday, September 18, 2008 8:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic icons while using Repeater

 

Hi,

I'm trying to use dynamic icons on a vBox inside an Accordion and am 
stuck. I want to load a specific icon based on the dynamic data i'm 
using. Has anybody got any ideas?

cheers

 



[flexcoders] strange null error on popupMenuButton

2008-09-19 Thread Andrew Wetmore
I use a ton of popupMenuButtons in my application, and they have
generally worked pretty well. Today, one set of them has started
crashing if you click on them. The error, strangely enough, refers to
"popupButton", which is a different control type.

Has anyone else run into this kind of bad behavior with
popupMenuButton? Any ways of inoculating the app against it? If not, I
will have to rewire all the susceptible controls.

Thanks.

a



RE: [flexcoders] Install Professional over Standard

2008-09-19 Thread Jonathon Stierman
The solution is to update/delete your license.properties file:

 

C:\Documents and Settings\All Users\Application
Data\Adobe\Flex\license.properties

 

Either delete the file (and you'll be prompted to enter a new one when
you open Flex Builder), or just enter your new license key (takes effect
as soon as you open Flex Builder.

 

See:

http://blogs.adobe.com/flex/2008/02/followup_on_flex_builder_3_ser.html#
comment-1394098

 

Jonathon 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of George
Sent: Friday, September 19, 2008 2:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Install Professional over Standard

 

I'm a contractor who owns a copy of FlexBuilder 3.0 Standard Edition.
My client has a license to Professional Edition, that they want me to
install on my laptop.

The problem is that even if I uninstall the Standard Edition and
install the Professional Edition, or I should say try to install the
Professional Edition. It won't let me do it. Since the Standard
Edition was already on the machine it assumes that license, and will
not let me install the Professional Edition without going through an
"Upgrade".

Anyone know a way around this? And where the heck is it getting the
license information from if I "uninstall" the Standard Edition? I
assume that it is in the registry somewhere.

The Professional Edition license is considered to be invalid when I
try to "upgrade".

 

<><>

[flexcoders] DefaultListEffect issues, effects don't play on every added item

2008-09-19 Thread djhatrick
Hi,

I am using the defaultListEffect and I am having issues with
animations playing on adding items, while the removeItem animations
are playing nicely, the addItem anims are only playing every other
time or not all.  

Has anyone else got better results than me? It seems the problem is
with DefaultListEffect, it might have some issues.  Is there an
actioncsript only version of this mxml example?  There's still code in
the DefaultListEffect file that says "for this beta".  hmmm?  

To be honest, the tween stuff in flex is really complicated.  I use to
work for an agency and we used TweenLite and it's much easier to
leverage a simple mechanism for tweening and hella fast.   I wish
there will to be a way to implement other tween engines into flex,
more or less a factory for them, my 2 cents.  Sometimes this stuff is
like showing up with a knife at a gun fight.

Thanks, Any help on this stuff is appreciated very much.

Patrick



[flexcoders] Install Professional over Standard

2008-09-19 Thread George
I'm a contractor who owns a copy of FlexBuilder 3.0 Standard Edition.
My client has a license to Professional Edition, that they want me to
install on my laptop.

The problem is that even if I uninstall the Standard Edition and
install the Professional Edition, or I should say try to install the
Professional Edition. It won't let me do it. Since the Standard
Edition was already on the machine it assumes that license, and will
not let me install the Professional Edition without going through an
"Upgrade".

Anyone know a way around this? And where the heck is it getting the
license information from if I "uninstall" the Standard Edition? I
assume that it is in the registry somewhere.

The Professional Edition license is considered to be invalid when I
try to "upgrade".



[flexcoders] Passing URLVariables from 1 Flex App to another?

2008-09-19 Thread djohnson29
I have 2 Flex Applications, Login.mxml and Main.mxml.  Login.mxml
handles the use Login and upon a successful authentication (with
Spring Security), I want to load Main.mxml (Main.html which contains
Main.swf)

After a successfully logging in with spring security, from Login.mxml
I load the main app like so:


var url:URLRequest = new URLRequest(Main.html");
var uv:URLVariables = new URLVariables();
url.method = "POST";
uv.UserName = username;  // string var 
navigateToURL(url,"_self");

Main.html (containing Main.swf) loads successfully, but I am unable to
extract the desired parameters.  I want to pass the logged in user
info from Login to Main.

How do I access these URLVariables from the newly loaded Application?

What is the best (simplest!) way to do this?

Thanks 






Re: [flexcoders] Getting multiple addedToStage events

2008-09-19 Thread Michael Schmalle
Have you checked the event.target AND event.currentTarget?

They are all the same? Why are you using that event.

ChildExistenceChangedEvent.CHILD_ADD and
ChildExistenceChangedEvent.CHILD_REMOVE are the best events in containers to
listen to child and and remove events.

You would listen to those events from the ViewStack, you will have a
event.relatedObject property that will give you the actual child instance
that was added.

Mike

On Fri, Sep 19, 2008 at 2:32 PM, ozziegt <[EMAIL PROTECTED]> wrote:

>   Hi, this is my first post to this group...hopefully someone can help
> me! :)
>
> I have an empty ViewStack to which I am programatically adding an MXML
> component which contains children. When I add the component, the MXML
> component is firing multiple onAddedToStage events. The target of the
> event is identical every time, so I am positive it is the same
> component firing the events. I have also verified that I am only
> adding the component once. Does anyone have an idea of what could be
> going on?
>
> Thanks
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Getting multiple addedToStage events

2008-09-19 Thread ozziegt
Hi, this is my first post to this group...hopefully someone can help
me! :)

I have an empty ViewStack to which I am programatically adding an MXML
component which contains children. When I add the component, the MXML
component is firing multiple onAddedToStage events. The target of the
event is identical every time, so I am positive it is the same
component firing the events. I have also verified that I am only
adding the component once. Does anyone have an idea of what could be
going on?

Thanks



[flexcoders] Re: Vertical Scrollbars without Horizontal scrollbars (solution)

2008-09-19 Thread Amy
--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Hmm, you using IE?

Yes, 6. :-)



RE: [flexcoders] BlazeDS clustering

2008-09-19 Thread Seth Hodgson
Hi Fabien,

The subscribeFromPeer() method is invoked when a subscription is added or 
removed on a peer server in the cluster that this server may need to know 
about. The NPE is happening because the destination that the subscription was 
added to or removed from doesn't exist on the current server.

Verify that your servers are both starting up correctly and that your 
destinations are fully symmetric.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
fabien.deshayes
Sent: Thursday, September 18, 2008 5:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BlazeDS clustering


Hello,

I'm trying to install a cluster with BlazeDS. After some difficulties,
I've reached a point where my 2 servers A and B know each other, and
that when a client subscribe on a destination on server A, this server
send a message to the server B.
Unfortunately, this does not work and I've got this error:


[BlazeDS]09/18/2008 [ERROR] [Service.Cluster] Error handling message
pushed from cluster: java.lang.NullPointerException
[BlazeDS]09/18/2008 [ERROR] [Service.Cluster]
Exception=java.lang.NullPointerException
at
flex.messaging.services.MessageService.subscribeFromPeer(MessageService.java:747)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
flex.messaging.cluster.JGroupsCluster$ServiceOperationHandler.handleBroadcast(JGroupsCluster.java:538)
at flex.messaging.cluster.JGroupsCluster.handle(JGroupsCluster.java:417)
at
org.jgroups.blocks.MessageDispatcher.handle(MessageDispatcher.java:577)
at
org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:624)
at
org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:533)
at
org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:365)
at
org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:736)
at org.jgroups.JChannel.up(JChannel.java:1063)
at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:325)
at org.jgroups.protocols.pbcast.GMS.up(GMS.java:722)
at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234)
at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:720)
at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:546)
at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:167)
at org.jgroups.protocols.FD.up(FD.java:322)
at org.jgroups.protocols.MERGE2.up(MERGE2.java:145)
at org.jgroups.protocols.Discovery.up(Discovery.java:220)
at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1486)
at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1440)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

[Incoming Thread,default-cluster,10.193.137.195:7800] ERROR
org.jgroups.blocks.RequestCorrelator - error invoking method
flex.messaging.cluster.ClusterException: Unable to replicate a service
operation received from a broadcast on cluster id 'default-cluster'.
at
flex.messaging.cluster.JGroupsCluster$ServiceOperationHandler.handleBroadcast(JGroupsCluster.java:552)
at flex.messaging.cluster.JGroupsCluster.handle(JGroupsCluster.java:417)
at
org.jgroups.blocks.MessageDispatcher.handle(MessageDispatcher.java:577)
at
org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:624)
at
org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:533)
at
org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:365)
at
org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:736)
at org.jgroups.JChannel.up(JChannel.java:1063)
at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:325)
at org.jgroups.protocols.pbcast.GMS.up(GMS.java:722)
at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234)
at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:720)
at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:546)
at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:167)
at org.jgroups.protocols.FD.up(FD.java:322)
at org.jgroups.protocols.MERGE2.up(MERGE2.java:145)
at org.jgroups.protocols.Discovery.up(Discovery.java:220)
at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1486)
at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1440)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


The destination is dynamically created, with these lines:


MessageService service = getService();
MessageDestination destination = (MessageDestination)
service.getDestination(destinationId);

// set the cluster config

Re: [flexcoders] How to turn a dynamically loaded swf into a popup quick?

2008-09-19 Thread Michael Schmalle
Hi,

Couldn't you just create a subclass of say TitleWindow and make the SWF
loader a single child.

Maybe write a couple public methods to interface through the window to load
your content.

Then use the PopUpManager to popup that subclass that holds the SWFLoader.

A thought, don't know the security issues though.

Mike

On Fri, Sep 19, 2008 at 2:02 PM, Boon Chew <[EMAIL PROTECTED]> wrote:

>
> I have a swf that I am loading in via SWFLoader and I would like to treat
> it like a regular popup (like the ones created via createPopUp), is that
> possible to do with PopUpManager? What's the alternative in order to achieve
> what PopUpManager achieves (ability to set modal/non-modal, bring to front,
> ability to move dialog around, etc.) without writing a ton of code?
>
> - boon
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] AdvancedDataGrid modifying cell editability etc based on another cell's value

2008-09-19 Thread nolanathomas
Hello All,

Yes I am new to this. So using an AdvancedDataGrid I would like to
change the editability of, and perhaps even change the background
color of all the editable fields, depending on a value in the row.

The deal is in one use case not all the values are required/editable.

Let me know if I should be approaching this differently.

Respectfully,

Nolan



[flexcoders] How to turn a dynamically loaded swf into a popup quick?

2008-09-19 Thread Boon Chew

I have a swf that I am loading in via SWFLoader and I would like to treat it 
like a regular popup (like the ones created via createPopUp), is that possible 
to do with PopUpManager? What's the alternative in order to achieve what 
PopUpManager achieves (ability to set modal/non-modal, bring to front, ability 
to move dialog around, etc.) without writing a ton of code?

- boon



  

[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff

That's fact Mike.  At the end of the day, you have to work with what you
have.  btw, I didn't even see your first reply before I posted.  So, no
pie intended. :)

-TH

--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Right Tim,
>
> mantra
>
> Speak Idealism, Live Reality.
>
> Mike
>
> On Fri, Sep 19, 2008 at 1:20 PM, Tim Hoff [EMAIL PROTECTED] wrote:
>
> > Ha, totally agree. But, it works for now. :-)
> >
> > -
> > .
> >
> >
> >
>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the
question'.
>





[flexcoders] link type External broken? (was Re:External linking library prject and null pntr

2008-09-19 Thread schtoo2
To summarize my understanding:

The metadata tag [Mixin], used by databinding's autogenerated 
xxxWatcherSetupUtil classes, causes a reference to added to the main 
apps SystemManager.  If I add a library project to the build path and 
choose link type "External", this reference is still added.  This 
results in a null object exception during startup.  

Is there someway to tell the compiler to ignore/not process the Mixin 
tag for classes from the library project.  Something in addition to 
link type "External"?  My library project contains a module and the 
xxxFlexModuleFactory class ensures that the xxxWatcherSetupClass is 
initialized correctly.  So all I need to do is prevent the exception 
happening during startup.








--- In flexcoders@yahoogroups.com, "schtoo2" <[EMAIL PROTECTED]> wrote:
>
> Its trying to load a class called 
> _mypackage_MyPanelSetupWatcherUtil.  This class appears to be an 
> autogenerated class from my MyPanel class in my library project.  
In 
> other words, its trying to reference a class thats part of my 
library 
> project that is not yet loaded.  
> 
> This seems like my problem:
> http://tech.groups.yahoo.com/group/flexcoders/message/50022
> 
> But I'm confused as to what the original poster did to solve the 
> problem.  How can I prevent the SystemManager from trying to init 
> that class?  
> 
> --- In flexcoders@yahoogroups.com, "Michael Schmalle" 
>  wrote:
> >
> > By the way Adobe;
> > 
> > This is a good place to put a try{} block and print the mixin 
that 
> isn't
> > being loaded. I have seen this problem a lot. It's hard to get 
this 
> deep and
> > since modules are used it might be informative for the dev.
> > 
> > Mike
> > 
> > On Thu, Sep 18, 2008 at 6:48 PM, Michael Schmalle
> > wrote:
> > 
> > > Hi,
> > >
> > > This means a mixin class has not been loaded.
> > >
> > > Put a breakpoint here;
> > >
> > > var c:Class = Class(getDefinitionByName(mixinList[i]));
> > >
> > > and see what mixinList[i] is. I have a suspicion it's drag or 
> popup.
> > >
> > > If it's a manager you use, you need to get that manager linked 
> into your
> > > application.
> > >
> > > Mike
> > >
> > >
> > > On Thu, Sep 18, 2008 at 6:29 PM, schtoo2  wrote:
> > >
> > >>   TypeError: Error #1009: Cannot access a property or method 
of 
> a null
> > >> object reference.
> > >> at
> > >> 
> 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
> > >> :docFrameHandler()
> > >> 
> 
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemMana
> > >> ger.as:2324]
> > >>
> > >> --- In flexcoders@yahoogroups.com ,
> > >> "Michael Schmalle"
> > >>  wrote:
> > >> >
> > >> > Hi,
> > >> >
> > >> > Post a stack trace for us.
> > >> >
> > >> > Mike
> > >> >
> > >> > On Thu, Sep 18, 2008 at 5:45 PM, schtoo2  wrote:
> > >> >
> > >> > > I have a library project in FB. I link that library project
> > >> into my
> > >> > > main app as "External" in the build path. I will load it at
> > >> runtime
> > >> > > during my app. But when I run my app now I get a "Cannot 
> access a
> > >> > > property/method of a null object reference".
> > >> > >
> > >> > > It appears that the SystemManager is trying to do some 
static
> > >> > > initialization of classes (xxxWatcherSetupUtil) within my 
> library
> > >> > > project. Is there a way to prevent that? How else would the
> > >> > > link "External" option be viable?
> > >> > >
> > >> > > regards,
> > >> > > -Chris
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Teoti Graphix, LLC
> > >> > http://www.teotigraphix.com
> > >> >
> > >> > Teoti Graphix Blog
> > >> > http://www.blog.teotigraphix.com
> > >> >
> > >> > You can find more by solving the problem then by 'asking the
> > >> question'.
> > >> >
> > >>
> > >>  
> > >>
> > >
> > >
> > >
> > > --
> > > Teoti Graphix, LLC
> > > http://www.teotigraphix.com
> > >
> > > Teoti Graphix Blog
> > > http://www.blog.teotigraphix.com
> > >
> > > You can find more by solving the problem then by 'asking the 
> question'.
> > >
> > 
> > 
> > 
> > -- 
> > Teoti Graphix, LLC
> > http://www.teotigraphix.com
> > 
> > Teoti Graphix Blog
> > http://www.blog.teotigraphix.com
> > 
> > You can find more by solving the problem then by 'asking the 
> question'.
> >
>




RE: [flexcoders] Check for open data service transactions before calling logout

2008-09-19 Thread Seth Hodgson
Hi Taze,

When the client disconnects, either of its own initiative in this case or due 
to a network problem out of its control, any outstanding calls are faulted and 
we let you know that their delivery to the server is in doubt. They may have 
reached the server, they may not have, we don't know. If the user really is 
logging out, they're in effect discarding any pending work so you could 
probably just ignore these faults in this case.

There aren't versions of these methods that wait for all outstanding calls to 
complete. If that's a policy you'd like to follow your app, you can track the 
AsycnTokens for all your outstanding calls (for DataService you'd probably want 
to issue explicit commits()) and if the user attempts to logout or disconnect 
while calls are still outstanding, you could just take note of that and issue a 
delayed logout/disconnect call once all pending calls return. But that could 
take awhile, so if you do something like that, put a notice up in the UI 
letting the user know what you're doing and possibly give them an escape hatch 
that just goes ahead and logouts/disconnects while pending calls are still 
outstanding if they really want to just shutdown immediately.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
taze170171
Sent: Thursday, September 18, 2008 8:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Check for open data service transactions before calling 
logout

Hi!

If the user presses the logout button and ds.disconnectAll() is called
before every dataservice call has been finished the following error
occurs:

doFault:[RPC Fault faultString="Channel disconnected"
faultCode="Client.Error.DeliveryInDoubt" faultDetail="Channel
disconnected before an acknowledgement was received"]

Is there a possibility to check for open transactions or messages which
have not been sent yet to the dataservice before calling
channelSet.disconnectAll() or channelSet.logout()? Or is there a
disconnect or logout method which waits until all data service calls
have been finished?

Thnx,
Taze



[flexcoders] Re: red 5 and flex and javer

2008-09-19 Thread sniperbe
--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "sniperbe"  wrote:
> >
> > sowwi
> > 
> > i will to pay but want to find some who can help, there other ways u
> > can make money, deletion my last post, keep this one
> 
> Just a quick tip:  real developers are unlikely to take anyone 
> seriously who says "sowwi" on a professional forum.  
> 
> I think a significant percentage of RIA developers have enough design 
> skills where they don't need someone like you if they decide they want 
> to build this sort of thing.
>
oh sorry, i am dislicie so i use short text, sorry about that, i look
to pay, i make php an html websites but i usles with felx



Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread Michael Schmalle
Right Tim,

mantra

Speak Idealism, Live Reality.

Mike

On Fri, Sep 19, 2008 at 1:20 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:

>   Ha, totally agree. But, it works for now. :-)
>
> -
> .
>
> 
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Dragging within a limited space

2008-09-19 Thread Kyle
I'm trying to figure out how to drag items with the confines of a
particular component (in this case a canvas object). I've tried a
number of different approaches including setting the bounds property
of the startDrag method to the rectangle defined by calling getRect()
on the parent, but I must still be doing something wrong.

My ultimate goal is to be able to drag and drop items from a list onto
a canvas container, have the container respond to the drop event and
add the object to its' children. Then allow for the objects to be
dragged around within the canvas, limiting their movement to the
canvas' area.

Below is a very simplified version of what I am trying to achieve.
You'll notice that when you drag the blue box, you can drag it
anywhere on the stage (not just within the canvas area). Then when you
release it, it is dropped within the canvas, the canvas' mask kicks in
(hiding the dragged object) and scrollbars are added since the object
is outside of the viewable area. 



http://www.adobe.com/2006/mxml";
layout="absolute" verticalAlign="middle" horizontalAlign="center">











THANKS!




[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff
Ha, totally agree.  But, it works for now. :-)

-TH

--- In flexcoders@yahoogroups.com, "Michael Schmalle" 
<[EMAIL PROTECTED]> wrote:
>
> For those reading, let me expand quickly,
> 
> When you listen to an effectEndHandler(), you expect the effect HAS 
ENDED IE
> things are where they need to be like visible == false. A normal 
dev as in
> the one using the public API expects this.
> 
> Having to use callLater() is a bug in the design.
> 
> Mike
> 
> On Fri, Sep 19, 2008 at 1:13 PM, Michael Schmalle
> <[EMAIL PROTECTED]>wrote:
> 
> > Nice pie on the face from Tim.
> >
> > I tell you, this is what you get for programming at the framework 
level.
> >
> > callLater() is evil...
> >
> > ;-)
> >
> > Mike
> >
> >
> > On Fri, Sep 19, 2008 at 1:06 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:
> >
> >>   *
> >>
> >> private
> >> * *function* effectEndHandler():*void* {
> >> callLater(showBox);
> >> }
> >>
> >> *private* *function* showBox():*void*{
> >> mainImgBox.visible = *true*;
> >> }
> >> -TH
> >>
> >> --- In flexcoders@yahoogroups.com, "info1@"  wrote:
> >> >
> >> > I have this box which I want to wipe left to hide and then 
wipe right
> >> > to show.
> >> > It hides all right and then it called the effectEndHandler, but
> >> > mainImgBox.visible = true; does not do anything. There is no 
wipe right
> >> > and the box does not appear. what am I doing wrong ?
> >> >
> >> >
> >> >
> >> >  >> showEffect="{wipeRight}">
> >> >  >> > source="@Embed(source='../media/jbh.jpg')"
> >> > />
> >> > 
> >> >
> >> >  >> > effectEnd="effectEndHandler()" />
> >> > 
> >> >
> >> > private function effectEndHandler():void {
> >> >
> >> > mainImgBox.visible = true;
> >> > }
> >> >
> >>  
> >>
> >
> >
> >
> > --
> > Teoti Graphix, LLC
> > http://www.teotigraphix.com
> >
> > Teoti Graphix Blog
> > http://www.blog.teotigraphix.com
> >
> > You can find more by solving the problem then by 'asking the 
question'.
> >
> 
> 
> 
> -- 
> Teoti Graphix, LLC
> http://www.teotigraphix.com
> 
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
> 
> You can find more by solving the problem then by 'asking the 
question'.
>




Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread Michael Schmalle
For those reading, let me expand quickly,

When you listen to an effectEndHandler(), you expect the effect HAS ENDED IE
things are where they need to be like visible == false. A normal dev as in
the one using the public API expects this.

Having to use callLater() is a bug in the design.

Mike

On Fri, Sep 19, 2008 at 1:13 PM, Michael Schmalle
<[EMAIL PROTECTED]>wrote:

> Nice pie on the face from Tim.
>
> I tell you, this is what you get for programming at the framework level.
>
> callLater() is evil...
>
> ;-)
>
> Mike
>
>
> On Fri, Sep 19, 2008 at 1:06 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:
>
>>   *
>>
>> private
>> * *function* effectEndHandler():*void* {
>> callLater(showBox);
>> }
>>
>> *private* *function* showBox():*void*{
>> mainImgBox.visible = *true*;
>> }
>> -TH
>>
>> --- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
>> wrote:
>> >
>> > I have this box which I want to wipe left to hide and then wipe right
>> > to show.
>> > It hides all right and then it called the effectEndHandler, but
>> > mainImgBox.visible = true; does not do anything. There is no wipe right
>> > and the box does not appear. what am I doing wrong ?
>> >
>> >
>> >
>> > > showEffect="{wipeRight}">
>> > > > source="@Embed(source='../media/jbh.jpg')"
>> > />
>> > 
>> >
>> > > > effectEnd="effectEndHandler()" />
>> > 
>> >
>> > private function effectEndHandler():void {
>> >
>> > mainImgBox.visible = true;
>> > }
>> >
>>  
>>
>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Wipe Effect

2008-09-19 Thread Michael Schmalle
Nice pie on the face from Tim.

I tell you, this is what you get for programming at the framework level.

callLater() is evil...

;-)

Mike

On Fri, Sep 19, 2008 at 1:06 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:

>   *
>
> private
> * *function* effectEndHandler():*void* {
> callLater(showBox);
> }
>
> *private* *function* showBox():*void*{
> mainImgBox.visible = *true*;
> }
> -TH
>
> --- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
> wrote:
> >
> > I have this box which I want to wipe left to hide and then wipe right
> > to show.
> > It hides all right and then it called the effectEndHandler, but
> > mainImgBox.visible = true; does not do anything. There is no wipe right
> > and the box does not appear. what am I doing wrong ?
> >
> >
> >
> >  showEffect="{wipeRight}">
> >  > source="@Embed(source='../media/jbh.jpg')"
> > />
> > 
> >
> >  > effectEnd="effectEndHandler()" />
> > 
> >
> > private function effectEndHandler():void {
> >
> > mainImgBox.visible = true;
> > }
> >
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: TileList changing items displayed after scrolling

2008-09-19 Thread Kyle
The reason I chose to go with UIComponent was actually for the exact
opposite reason, it is lighter weight, and takes up less resources,
which is definately what you want for list item renderers (if there
are going to potentially be lots of items in the list at least).

Matt: Not familiar with the -keep feature..?



[flexcoders] Re: Wipe Effect

2008-09-19 Thread Tim Hoff

private function effectEndHandler():void {
 callLater(showBox);
}



private function showBox():void{
 mainImgBox.visible = true;
}
-TH

--- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
wrote:
>
> I have this box which I want to wipe left to hide and then wipe right
> to show.
> It hides all right and then it called the effectEndHandler, but
> mainImgBox.visible = true; does not do anything. There is no wipe
right
> and the box does not appear. what am I doing wrong ?
>
>
>
> 
>  source="@Embed(source='../media/jbh.jpg')"
> />
> 
>
>  effectEnd="effectEndHandler()" />
> 
>
> private function effectEndHandler():void {
>
> mainImgBox.visible = true;
> }
>



Re: [flexcoders] Re: red 5 and flex and javer

2008-09-19 Thread Howard Fore
On Fri, Sep 19, 2008 at 12:48 PM, sniperbe <[EMAIL PROTECTED]> wrote:

>
> oh sorry, i am dislicie so i use short text, sorry about that, i look
> to pay, i make php an html websites but i usles with felx
>

Perhaps you could use the spell check to give a more professional
appearance?


-- 
Howard Fore, [EMAIL PROTECTED]
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] Wipe Effect

2008-09-19 Thread Michael Schmalle
Hi,

I tested a couple of things and tried 2 hacks. This might be a bug.

The real problem is that when the WipeLeft effect finishes, the visible
property on the VBox is still true (I debugged this).

Now, the bug is, I tried to trick that with dispatching a FlexEvent.SHOW
event from the VBox in the effect end handler. This did not work, so there
is something in the effect classes specifically the WipeRight that is not
reacting the way you would expect.

My advice is try a different approach, or effect combo. :)

Mike

On Fri, Sep 19, 2008 at 12:27 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

>   I have this box which I want to wipe left to hide and then wipe right
> to show.
> It hides all right and then it called the effectEndHandler, but
> mainImgBox.visible = true; does not do anything. There is no wipe right
> and the box does not appear. what am I doing wrong ?
>
>
> 
>  source="@Embed(source='../media/jbh.jpg')"
> />
> 
>
>  effectEnd="effectEndHandler()" />
> 
>
> private function effectEndHandler():void {
>
> mainImgBox.visible = true;
> }
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Vertical Scrollbars without Horizontal scrollbars (solution)

2008-09-19 Thread Josh McDonald
Hmm, you using IE?

On Sat, Sep 20, 2008 at 2:23 AM, Amy <[EMAIL PROTECTED]> wrote:

> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > Hey Guys,
> >
> > It's a common problem - anything anchored to the RHS of the
> container, or
> > width="100%" gives you a horizontal scrollbar as well as a vertical
> one when
> > the content becomes too tall, where HTML would simply shrink your
> content
> > horizontally and give a vertical scrollbar. Alex has explained why
> it's the
> > way it is a few times on the list, but for those of you whom this
> annoys the
> > heck out of (I'm one), here's my solution:
> >
> > Blog post:
> >
> > http://flex.joshmcdonald.info/2008/09/vertical-scrollbars-and-100-
> width.html
> >
> > Straight to the code (for those thinking "you're a jerk Josh, don't
> spam
> > your blog here"):
>
> More importantly, I just see a header and navigation down the right
> side when I click the link you posted.  "Fluff" :-)
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Flex loadResourceModule and loadStyleDeclarations

2008-09-19 Thread Guillaume Malartre
Hi,

I use mxmlc to compile a style sheet and localization file

mxmlc
-locale=fr_CA
-source-path+=locale_succes_scolaire/{locale}
-allow-source-path-overlap=true
-include-resource-bundles=AppModel
-include-libraries=Assets_Succes_Scolaire.swc succes_scolaire.css

Then in Flex I would like to load the swf in one shot, the Resources and the
Styles.

Is it possible? loadStyleDeclarations definitely does not include my
resource in the project once completed.

Another question: Anyone know why mxmlc always give a file size starting
with 20kB of stuff?

-- 
Merci,
Guillaume

Guillaume Malartre
Programmeur-Analyste, Scolab
514-528-8066, 1-888-528-8066

Besoin d'aide en maths?
www.NetMaths.net


[flexcoders] Re: Difficulty updating Grouping in Advanced DataGrid

2008-09-19 Thread Amy
--- In flexcoders@yahoogroups.com, "Tom McNeer" <[EMAIL PROTECTED]> wrote:
>
> Okay, I'm back already.
> 
> Here's what I don't understand: I'm using an ArrayCollection as the 
dp to a
> GroupingCollection -- and I know that GroupingCollection subclasses
> HierarchicalData.
> 
> Instead of subclassing HierarchicalData directly, should I subclass
> GroupingCollection, with the same overridden methods?
> 
> Here's what I'm working with:
> 
> source="{acJobsInProgress}">
> 
> 
>   
>  label="Cum Ttl" operation="SUM"/>
>   
> 
> 
>   
>  label="Cum Ttl" operation="SUM"/>
>   
> 
> 
>   
>  label="Cum. Total" operation="SUM"/>
>   
> 
> 
> 


SummaryField has a summaryFunction property that may do what you 
want, and if not, GroupingField has a groupingFunction property that 
may help.  Not sure if there are any examples that use these for 
manipulating dates, but they look like they might be useful.



[flexcoders] Re: red 5 and flex and javer

2008-09-19 Thread sniperbe
--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "sniperbe"  wrote:
> >
> > sowwi
> > 
> > i will to pay but want to find some who can help, there other ways u
> > can make money, deletion my last post, keep this one
> 
> Just a quick tip:  real developers are unlikely to take anyone 
> seriously who says "sowwi" on a professional forum.  
> 
> I think a significant percentage of RIA developers have enough design 
> skills where they don't need someone like you if they decide they want 
> to build this sort of thing.
>
oh sorry, i am dislicie so i use short text, sorry about that, i look
to pay, i make php an html websites but i usles with felx



[flexcoders] Scrolling screws up display

2008-09-19 Thread Randy Martin
This is a strange problem that only seems to happen in Flex 3 (not 2). 
I have a form that pops up in a panel that needs to scroll vertically. 
If I use the wheel or click on the scrollbar arrows, the form scrolls 
correctly. But, if I click and drag the scrollbar thumb, the display 
goes haywire. By that I mean that only parts of the display scroll and 
the rest just sits there. If you move the thumb up and down enough, 
pretty soon the entire display is just a mass of jumbled pixels.

Anyone have any idea what could be causing this?

TIA,
~randy



[flexcoders] Re: red 5 and flex and javer

2008-09-19 Thread Amy
--- In flexcoders@yahoogroups.com, "sniperbe" <[EMAIL PROTECTED]> wrote:
>
> sowwi
> 
> i will to pay but want to find some who can help, there other ways u
> can make money, deletion my last post, keep this one

Just a quick tip:  real developers are unlikely to take anyone 
seriously who says "sowwi" on a professional forum.  

I think a significant percentage of RIA developers have enough design 
skills where they don't need someone like you if they decide they want 
to build this sort of thing.



[flexcoders] Wipe Effect

2008-09-19 Thread [EMAIL PROTECTED]
I have this box which I want to wipe left to hide  and then wipe right 
to show.
It hides all right and then it called the effectEndHandler, but 
mainImgBox.visible = true; does not do anything. There is no wipe right 
and the box does not appear. what am I doing wrong ?
  


 


  
 
 
   
private function effectEndHandler():void {
 
mainImgBox.visible = true;
}


[flexcoders] Re: Vertical Scrollbars without Horizontal scrollbars (solution)

2008-09-19 Thread Amy
--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Hey Guys,
> 
> It's a common problem - anything anchored to the RHS of the 
container, or
> width="100%" gives you a horizontal scrollbar as well as a vertical 
one when
> the content becomes too tall, where HTML would simply shrink your 
content
> horizontally and give a vertical scrollbar. Alex has explained why 
it's the
> way it is a few times on the list, but for those of you whom this 
annoys the
> heck out of (I'm one), here's my solution:
> 
> Blog post:
> 
> http://flex.joshmcdonald.info/2008/09/vertical-scrollbars-and-100-
width.html
> 
> Straight to the code (for those thinking "you're a jerk Josh, don't 
spam
> your blog here"):

More importantly, I just see a header and navigation down the right 
side when I click the link you posted.  "Fluff" :-)



RE: [flexcoders] dynamic icons while using Repeater

2008-09-19 Thread Ryan Graham

Sounds like your dynamic data should be an object of some sort - you
could always just set the data property of the vbox, then override the
set data function. Inside that override add the correct icon to the
control how you see fit based on the data you passed in...
 
override public function set data(value:Object):void
{
super.data = value;
//add the icon somehow - if you provide more details of your setup
we can give better advice here
var img:Image = new Image();
img.source = super.data.imageSrc;
this.addChild(img);
}
 
HTH,
Ryan



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gridwest
Sent: Thursday, September 18, 2008 5:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic icons while using Repeater



Hi,

I'm trying to use dynamic icons on a vBox inside an Accordion and am 
stuck. I want to load a specific icon based on the dynamic data i'm 
using. Has anybody got any ideas?

cheers



 


This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Re: Refresh a Form / Views

2008-09-19 Thread Tim Hoff

Hi Eugene,

In the state tag, you can set properties.  This will happen when you
change to the state:  Something like this:


 
 
 
 


-TH

--- In flexcoders@yahoogroups.com, "Eugene Louw" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> What is the best way to reset a form in flex. The problem I'm having
is
> going from one state to the other and returning to the state and the
form is
> still the same. This is exactly what I expect it to do,
> but in this case I want the form to be reset every time you come back
to the
> state with the form inside it?
>
> Kind Regards,
>
> --
> 
> Eugene Louw
> 
>




[flexcoders] Re: FOCUS_OUT, MOUSE_OUT ...

2008-09-19 Thread Tim Hoff

Hi,

These situations are a bit tricky sometimes.  The mouseDownOutside event
is usually what I use for this.  Where it gets tricky is when there are
interactive children involved.  If the children aren't interactive, you
can simply set the children's mouseEnabled property to false and you're
done.  However if you need to click the DataGrid, the VBox's "out"
events are going to fire; because the children are layered on top of the
VBox.  So, in the mouseDownOutside handler function you can check the
parent of the event.  If it's the DataGrid, don't execute your code,
else it's actually outside.  Something like:

private function onMouseDownOutside(e:Event):void
{
  if (e.target is DataGrid) return;

 // do your thing
}

-TH

--- In flexcoders@yahoogroups.com, "dev_oue" <[EMAIL PROTECTED]> wrote:
>
> Hi all !
>
> I have a container (VBox) with a datagrid in it (and other stuff)
> I need to react when the user clicks outside my Vbox ... but I don't
> know which event to listen to.
>
> myVBox.addEventListener(FocusEvent.FOCUS_OUT,handleMyVboxFocusOut);
> Actually I tried FOCUS_OUT and MOUSE_OUT, but both of them are
> dispatched even if I click inside the datagrid (child of my VBox) !!
:( :(
>
> The listener is on the Vbox, but it would be logical that a click on
> any of the children doesn't trigger the event, or maybe I don't get it
?
>




[flexcoders] Re: Retrieving Sorted Data from DataGrid

2008-09-19 Thread Tim Hoff

Hi,

You're better off wrapping the XMLList in an XMLListCollection and use
that as the dataProvider for the DataGrid.  XMLListCollection is a
ListCollectionView for the underlying source and will retain the sort
order when you click on a DataGrid header.  Using an XMLListCollection
also gives you the added benefit of avoiding binding issues.  You can
also use a sortCompareFunction or use the XMLListCollection's sort
function on the DataGrid's headerRelease event.

-TH

--- In flexcoders@yahoogroups.com, "edlueze" <[EMAIL PROTECTED]> wrote:
>
> Thanks for the response, but my question is even more basic than that.
> I can't even find the object that contains the sorted data. And I'm
> just trying to move it into an array. I've been trying to dig into the
> DataGrid itself through it's dataProvider, but the examples seem to
> point me away from that route and have me work with the original
> XMLList (which doesn't seem to get sorted). Any more ideas?
>
> --- In flexcoders@yahoogroups.com, "Sherif Abdou" flex@ wrote:
> >
> > SharedObjects? or maybe just write it to the server and then have it
> pull that data out when the user comes back.
> > --
> > Sherif Abdou
> > http://VadexFX.com
> > http://Sherifabdou.com
> > - Original Message -
> > From: edlueze
> > To: flexcoders@yahoogroups.com
> > Sent: Thursday, September 18, 2008 7:10 PM
> > Subject: [flexcoders] Retrieving Sorted Data from DataGrid
> >
> >
> > I've loaded a DataGrid with an XMLList. When the user clicks on a
> > header to sort the DataGrid I want to save the data in the DataGrid
in
> > the order that it was sorted. How's that done?
> >
>





RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread zoltan
I am not sure if I am the innocent one but in any case Aperture for AIR to
OS (windows): http://aperture.fluorinefx.com/
 
Zoli
www.fluorinefx.com
http://blog.fluorinefx.com


  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gregor Kiddie
Sent: Friday, September 19, 2008 5:20 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Does localconnection Class works with different
Port numbers ?




There is a few old examples floating around out there. We have a closed
source version of it written in C#, and I know of at least one other person
on the list who has one (names hidden to protect the innocent). Mainly to
get around the lack of AIR to OS communication.

I'll see if we can release some of the less proprietary sections of it (its
certainly something I think should be out there). Someone kick me in a few
days if I haven't posted a yay or nay.

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at  http://www.inps.co.uk/>
www.inps.co.uk

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it by
anyone else is not authorised. Any views or opinions presented are solely
those of the author and do not necessarily represent those of INPS or any of
its affiliates. If you are not the intended recipient please contact
[EMAIL PROTECTED]'t it Player-specific stuff? How could there be
demos in other languages (except maybe haXe)?

-Josh

On Fri, Sep 19, 2008 at 11:44 PM, Jim Hayes <[EMAIL PROTECTED]
 com> wrote:

Does anyone have any localconnection samples done in other languages, by the
way? C# would be most useful for me, but anything accepted!

I'm aware that there is a brief explaination and some c++ sample code on
osFlash, but that's all I've seen.

 Apparently it's a "mutex", but being only a lowly flash guy I get a bit
confused after that!

-Original Message-
From: [EMAIL PROTECTED]  ups.com
[mailto:[EMAIL PROTECTED]  ups.com] On
Behalf Of Josh McDonald
Sent: 19 September 2008 13:26

To: [EMAIL PROTECTED]  ups.com
Subject: Re: [flexcoders] Does localconnection Class works with different
Port numbers ?

I've got to build some LocalConnection voodoo in the next couple of weeks at
work, anybody have any tips, or pitfalls I should look out for? Or is it
usually smooth sailing?

-Josh

On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie <[EMAIL PROTECTED]
 co.uk> wrote:

LocalConnection uses an in-memory file, not actual connections.

As long as both swf's are still running on the same machine, you shouldn't
have any problems.

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.  uk

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it by
anyone else is not authorised. Any views or opinions presented are solely
those of the author and do not necessarily represent those of INPS or any of
its affiliates. If you are not the intended recipient please contact
is.helpdesk@  inps.co.uk

  _  

From: [EMAIL PROTECTED]  ups.com
[mailto:[EMAIL PROTECTED]  ups.com] On
Behalf Of Bharath


Sent: 18 September 2008 06:54

To: [EMAIL PROTECTED]  ups.com


Subject: [flexcoders] Does localconnection Class works with different Port
numbers ?

Hi All,

I have two SWF file communicates with each other using localconnection
class.

Now if I place both the SWF in 

...

[Message clipped]  




-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.  joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]  com

 


Re: [flexcoders] Re: Problem consuming ActiveMQ messages from Flex client

2008-09-19 Thread Christophe Herreman
After rebuilding my app from scratch with a fresh install of Tomcat,
everything seems to work. Maybe this was caused by the fact that I was using
the BlazeDS Turnkey version that contains a preconfigured instance of
Tomcat.

BTW: This is a great tutorial:
http://mmartinsoftware.blogspot.com/2008/05/simplified-blazeds-and-jms.html


2008/9/19 Christophe Herreman <[EMAIL PROTECTED]>

> Hi George,
>
> I'll take a look at the STOMP client.
>
> However I'm still wondering why this seems to fail. Do you need to setup
> the policy only with STOMP? Is it also need when running ActiveMQ, Tomcat
> and the flex client on the same machine?
>
> 2008/9/19 George <[EMAIL PROTECTED]>
>
>   I use ActiveMQ and it works just fine. Although, I use the STOMP
>> client, and you need to make sure that you have a flash policy server
>> set up to allow the socket connection to the message server.
>>
>> --- In flexcoders@yahoogroups.com ,
>> "Christophe Herreman" <[EMAIL PROTECTED]>
>> wrote:
>>
>> >
>> > Hi,
>> >
>> > I am unable to consume messages sent via ActiveMQ from my Flex client.
>> > Sending messages via the Producer seems to work, I can also see that the
>> > Flex client is connected and subscribed via the properties on the
>> Consumer
>> > object, however the "message" event on the Consumer is never fired so it
>> > seems like the messages are not received.
>> >
>> > When I look in the ActiveMQ console, I can see the number of
>> subscribers,
>> > the number of messages sent and the number of messages received. The
>> strange
>> > thing is that the received messages counter seems to increment and
>> that I
>> > can also trace the log statements in the Tomcat console, but again no
>> > messages are received in the Flex client.
>> >
>> > Any ideas?
>> >
>> > --
>> > Christophe Herreman
>> > http://www.herrodius.com
>> > http://www.pranaframework.org
>> >
>>
>>  
>>
>
>
>
> --
> Christophe Herreman
> http://www.herrodius.com
> http://www.pranaframework.org
>



-- 
Christophe Herreman
http://www.herrodius.com
http://www.pranaframework.org


Re: [flexcoders] Difficulty updating Grouping in Advanced DataGrid

2008-09-19 Thread Tom McNeer
Okay, I'm back already.

Here's what I don't understand: I'm using an ArrayCollection as the dp to a
GroupingCollection -- and I know that GroupingCollection subclasses
HierarchicalData.

Instead of subclassing HierarchicalData directly, should I subclass
GroupingCollection, with the same overridden methods?

Here's what I'm working with:

   


  

  


  

  


  

  







-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


Re: [flexcoders] Difficulty updating Grouping in Advanced DataGrid

2008-09-19 Thread Tom McNeer
On Fri, Sep 19, 2008 at 10:22 AM, Gregor Kiddie <[EMAIL PROTECTED]>wrote:

>Glad I could help, and glad you got it sorted!
>



Well, it's not sorted yet, but at least I know how to start.

And then I'll need to move on to currency-formatting a value in a
SummaryField. (I think GroupingObjectFunction is the answer, but you'd think
a simple thing like that would have an example in the docs.)




-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


Re: [flexcoders] Excuting a function in main app which is triggered by popup window

2008-09-19 Thread Michael Schmalle
Hi,

When you create the popup and an event listener for CloseEvent.CLOSE on the
popup.

This will be dispatched when the user clicks the closeButton of the popup.

If you want another event you could listen for, the Event.REMOVED will fire
when the popup is actually about to be taken off the display list.

Mike

On Fri, Sep 19, 2008 at 10:16 AM, ghus32 <[EMAIL PROTECTED]> wrote:

>   Hello Everyone,
>
> I was wondering if it is possible to execute a function from my main
> app triggered by the closing of my popup window?
>
> Is this done by event listeners?
>
> If so, does anyone have any examples?
>
> Thanks
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Re: Grrrr. Security Sandbox

2008-09-19 Thread Douglas Knudsen
read Alex's blog :)

ok, this is sandbox related, seriously, try googling on 'ExternalInterface
security sandbox' you will see much fast.

http://www.adobetutorialz.com/articles/1785/1/Local-Sandboxes  some hlep
here looks good too

DK

On Fri, Sep 19, 2008 at 10:01 AM, George <[EMAIL PROTECTED]>wrote:

>   That makes absolutely no difference... thanks. Adobe???
>
>
> --- In flexcoders@yahoogroups.com , "Sherif
> Abdou" <[EMAIL PROTECTED]> wrote:
> >
> > Call it like this C:\Vadex\VadexFlex\bin-debug\VadexFlex.html
> Instead of file:///
> > --
>
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Jim Hayes
That would be great Greg, again in my case I'm looking at this in
relation to AIR.
Anything that gives me a least a little leg up would be an enormous
help, thanks!
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gregor Kiddie
Sent: 19 September 2008 15:20
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
There is a few old examples floating around out there. We have a closed
source version of it written in C#, and I know of at least one other
person on the list who has one (names hidden to protect the innocent).
Mainly to get around the lack of AIR to OS communication.
I'll see if we can release some of the less proprietary sections of it
(its certainly something I think should be out there). Someone kick me
in a few days if I haven't posted a yay or nay.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 
The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]'t it Player-specific stuff? How
could there be demos in other languages (except maybe haXe)?

-Josh
On Fri, Sep 19, 2008 at 11:44 PM, Jim Hayes <[EMAIL PROTECTED]
 > wrote:
Does anyone have any localconnection samples done in other languages, by
the way? C# would be most useful for me, but anything accepted!
I'm aware that there is a brief explaination and some c++ sample code on
osFlash, but that's all I've seen.
 Apparently it's a "mutex", but being only a lowly flash guy I get a bit
confused after that!
 
-Original Message-
From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Josh McDonald
Sent: 19 September 2008 13:26
To: flexcoders@yahoogroups.com  
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
I've got to build some LocalConnection voodoo in the next couple of
weeks at work, anybody have any tips, or pitfalls I should look out for?
Or is it usually smooth sailing?

-Josh
On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie <[EMAIL PROTECTED]
 > wrote:
LocalConnection uses an in-memory file, not actual connections.
As long as both swf's are still running on the same machine, you
shouldn't have any problems.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk  
The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]  


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Bharath

Sent: 18 September 2008 06:54
To: flexcoders@yahoogroups.com  

Subject: [flexcoders] Does localconnection Class works with different
Port numbers ?
 
Hi All,

I have two SWF file communicates with each other using localconnection
class.

Now if I place both the SWF in 
...

[Message clipped]  



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

http://flex.joshmcdonald.info/  

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]  
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
pers

RE: [flexcoders] Looking for examples tutorials code to learn how to draw on a canvas

2008-09-19 Thread Chet Haase
Mark,

I posted a tutorial a few months ago called TopDrawer that showed how to create 
a simple vector-drawing application. Parts 2 and 3 show the details of turning 
mouse events into drawn shapes on the canvas.


http://graphics-geek.blogspot.com/2008/03/finally-some-code-top-drawer-part-i.html
http://graphics-geek.blogspot.com/2008/03/top-drawer-part-ii.html
http://graphics-geek.blogspot.com/2008/03/top-drawer-part-iii-taking-shape.html

video versions:
http://graphics-geek.blogspot.com/2008/06/video-top-drawer-part-i.html
http://graphics-geek.blogspot.com/2008/06/video-top-drawer-parts-ii-iii.html


Chet.


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
oneproofdk
Sent: Friday, September 19, 2008 5:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Looking for examples tutorials code to learn how to draw 
on a canvas


Hi guys

I am looking to make a Flex3 app. where I can "draw" on a image.

Is there any good tutorials examples etc. out there - I havent really
been able to find any.

I found a Flash component ($199) that does the trick - but I want to
go Flex :-)


Thanks for any info you can share !

//Mark



RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Jim Hayes
For background :
 
http://osflash.org/localconnection
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: 19 September 2008 14:53
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
Isn't it Player-specific stuff? How could there be demos in other
languages (except maybe haXe)?

-Josh
On Fri, Sep 19, 2008 at 11:44 PM, Jim Hayes <[EMAIL PROTECTED]
 > wrote:
Does anyone have any localconnection samples done in other languages, by
the way? C# would be most useful for me, but anything accepted!
I'm aware that there is a brief explaination and some c++ sample code on
osFlash, but that's all I've seen.
 Apparently it's a "mutex", but being only a lowly flash guy I get a bit
confused after that!
 
-Original Message-
From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Josh McDonald
Sent: 19 September 2008 13:26
To: flexcoders@yahoogroups.com  
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
I've got to build some LocalConnection voodoo in the next couple of
weeks at work, anybody have any tips, or pitfalls I should look out for?
Or is it usually smooth sailing?

-Josh
On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie <[EMAIL PROTECTED]
 > wrote:
LocalConnection uses an in-memory file, not actual connections.
As long as both swf's are still running on the same machine, you
shouldn't have any problems.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk  
The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]  


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Bharath

Sent: 18 September 2008 06:54
To: flexcoders@yahoogroups.com  

Subject: [flexcoders] Does localconnection Class works with different
Port numbers ?
 
Hi All,

I have two SWF file communicates with each other using localconnection
class.

Now if I place both the SWF in 
...

[Message clipped]  



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

http://flex.joshmcdonald.info/  

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]  
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

Re: [flexcoders] Re: Problem consuming ActiveMQ messages from Flex client

2008-09-19 Thread Christophe Herreman
Hi George,

I'll take a look at the STOMP client.

However I'm still wondering why this seems to fail. Do you need to setup the
policy only with STOMP? Is it also need when running ActiveMQ, Tomcat and
the flex client on the same machine?

2008/9/19 George <[EMAIL PROTECTED]>

>   I use ActiveMQ and it works just fine. Although, I use the STOMP
> client, and you need to make sure that you have a flash policy server
> set up to allow the socket connection to the message server.
>
> --- In flexcoders@yahoogroups.com ,
> "Christophe Herreman" <[EMAIL PROTECTED]>
> wrote:
>
> >
> > Hi,
> >
> > I am unable to consume messages sent via ActiveMQ from my Flex client.
> > Sending messages via the Producer seems to work, I can also see that the
> > Flex client is connected and subscribed via the properties on the
> Consumer
> > object, however the "message" event on the Consumer is never fired so it
> > seems like the messages are not received.
> >
> > When I look in the ActiveMQ console, I can see the number of
> subscribers,
> > the number of messages sent and the number of messages received. The
> strange
> > thing is that the received messages counter seems to increment and
> that I
> > can also trace the log statements in the Tomcat console, but again no
> > messages are received in the Flex client.
> >
> > Any ideas?
> >
> > --
> > Christophe Herreman
> > http://www.herrodius.com
> > http://www.pranaframework.org
> >
>
>  
>



-- 
Christophe Herreman
http://www.herrodius.com
http://www.pranaframework.org


RE: [flexcoders] Difficulty updating Grouping in Advanced DataGrid

2008-09-19 Thread Gregor Kiddie
Glad I could help, and glad you got it sorted!

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom McNeer
Sent: 19 September 2008 15:07
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Difficulty updating Grouping in Advanced
DataGrid

 

Gregor,

Thanks very much for your explanation. I had Googled a lot before asking
the question, assuming that the list archives would show up. But perhaps
they were buried in other results. I should have searched here first. I
apologize.

I found your code for subclassing HierarchicalData, along with the
correction for RESET from another poster.

Thanks again for the help.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com  
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

 



[flexcoders] Re: Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?

2008-09-19 Thread nathanpdaniel
> I have a live project that uses the framework RSLs. The one issue 
that I
> 'believe' might be related is that I am getting a delay on start up 
of the
> swf.

We confirmed this with ours.  There were drastic differences in 
startup/download time when we used external RSLs.  We didn't do 
any "official" testing, but we did see enough of a difference to go 
back to one larger swf.

-Nathan D.



RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Gregor Kiddie
So you're using LocalConnection to speak from your main app to the
proxy, or from the proxy to the Flash 8 movie?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brandon Krakowsky
Sent: 19 September 2008 14:18
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?

 

I'm working with LocalConnection now and having some issues.  I'm trying
to load and control some Flash 8 movies with some success.  I'm first
loading in a proxy Flash 8 file, and then loading the movies into there.
I'm calling functions in the proxy file which basically tell the loaded
movies to go to certain frames, etc.

It seems to work most of the time but every now and again I get weird
"undefined" traces in the Flex IDE.  I have a lot more testing to do but
I'm not sure how the Flash 9 debugger tries to debug AS2 in a Flash 8
file.

Thanks,
Brandon

 



RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Gregor Kiddie
There is a few old examples floating around out there. We have a closed
source version of it written in C#, and I know of at least one other
person on the list who has one (names hidden to protect the innocent).
Mainly to get around the lack of AIR to OS communication.

I'll see if we can release some of the less proprietary sections of it
(its certainly something I think should be out there). Someone kick me
in a few days if I haven't posted a yay or nay.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]'t it Player-specific stuff? How
could there be demos in other languages (except maybe haXe)?

-Josh

On Fri, Sep 19, 2008 at 11:44 PM, Jim Hayes <[EMAIL PROTECTED]
 > wrote:

Does anyone have any localconnection samples done in other languages, by
the way? C# would be most useful for me, but anything accepted!

I'm aware that there is a brief explaination and some c++ sample code on
osFlash, but that's all I've seen.

 Apparently it's a "mutex", but being only a lowly flash guy I get a bit
confused after that!

 

-Original Message-
From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Josh McDonald
Sent: 19 September 2008 13:26

To: flexcoders@yahoogroups.com  
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?

 

I've got to build some LocalConnection voodoo in the next couple of
weeks at work, anybody have any tips, or pitfalls I should look out for?
Or is it usually smooth sailing?

-Josh

On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie <[EMAIL PROTECTED]
 > wrote:

LocalConnection uses an in-memory file, not actual connections.

As long as both swf's are still running on the same machine, you
shouldn't have any problems.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk  

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]  



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Bharath


Sent: 18 September 2008 06:54

To: flexcoders@yahoogroups.com  


Subject: [flexcoders] Does localconnection Class works with different
Port numbers ?

 

Hi All,

I have two SWF file communicates with each other using localconnection
class.

Now if I place both the SWF in 

...

[Message clipped]  




-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

http://flex.joshmcdonald.info/  

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]  

 



[flexcoders] Excuting a function in main app which is triggered by popup window

2008-09-19 Thread ghus32
Hello Everyone,

I was wondering if it is possible to execute a function from my main 
app triggered by the closing of my popup window?

Is this done by event listeners?

If so, does anyone have any examples?

Thanks



Re: [flexcoders] local connection issues (was Does localconnection Class works with different Port numbers ?)

2008-09-19 Thread Paul Andrews
- Original Message - 
  From: Brandon Krakowsky 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, September 19, 2008 2:18 PM
  Subject: Re: [flexcoders] Does localconnection Class works with different 
Port numbers ?


  I'm working with LocalConnection now and having some issues.  I'm trying to 
load and control some Flash 8 movies with some success.  I'm first loading in a 
proxy Flash 8 file, and then loading the movies into there.  I'm calling 
functions in the proxy file which basically tell the loaded movies to go to 
certain frames, etc.

I have been down this route and had good inital success but couldn't get it to 
work reliably as a Flash project. There was extensive discussion about this on 
flashcoders (this isn't specifically a Flex issue.)


  It seems to work most of the time but every now and again I get weird 
"undefined" traces in the Flex IDE.  I have a lot more testing to do but I'm 
not sure how the Flash 9 debugger tries to debug AS2 in a Flash 8 file.


One important consideration was leaving enough time for the AS2 side to settle 
down. I found that sometimes I would pass information to the AS2 side via the 
connection but the AS2 wasn't properly initalised and ready to handle it, so I 
added some delay to ensure that everything was ready on the AS2 side before the 
AS3 tried to control it.

Good luck. Eventually I rewrote the whole thing in AS2.. (because I had AS2 
swfs that I had to work with).

This should really be in your own thread..

Paul



  Thanks,
  Brandon


Snip


Re: [flexcoders] RE: Alex going offline for a while - and Gordon too!

2008-09-19 Thread Michael Schmalle
If you have threaded mail,

This thread and the one that spawned it basically shows you a nice list of
the moderators of this forum. (in no particular order of course).

;-)

Mike

On Fri, Sep 19, 2008 at 10:05 AM, Douglas Knudsen
<[EMAIL PROTECTED]>wrote:

>   please post your emergency contact information here just in case.
>
> :)
>
> DK
>
> On Fri, Sep 19, 2008 at 8:52 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
>>   *looks around guiltily*
>>
>> On Fri, Sep 19, 2008 at 10:28 AM, Matt Chotin <[EMAIL PROTECTED]> wrote:
>>
>>> I'm around, but I only send stern notes to people and don't read most of
>>> what you guys write to each other anymore :-)
>>>
>>>
>>>
>>
>>
>> --
>> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>>
>> http://flex.joshmcdonald.info/
>>
>> :: Josh 'G-Funk' McDonald
>> :: 0437 221 380 :: [EMAIL PROTECTED]
>>
>
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Re: red 5 and flex and javer

2008-09-19 Thread sniperbe
sowwi

i will to pay but want to find some who can help, there other ways u
can make money, deletion my last post, keep this one









--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Can you stop spamming this list please?
> 
> You posted this a week or two ago and people laughed at it.
> 
> There is a list Flexjobs that you could post on. But those
developers want
> REAL money for the 100's of hours of work you are asking for free.
> 
> Mike
> 
> On Fri, Sep 19, 2008 at 9:18 AM, sniperbe <[EMAIL PROTECTED]> wrote:
> 
> >   i need a programer that help me make a chatroom
> >
> > there was a chat room made on felx called goshee but shut down cus
> > apple the coder gave up on due was 2 busy
> >
> > we look for someone help us make a new one, called chill chat, i can
> > design website and market it and adviste it, there is no good
> > chatrooms sites with cam and audio and this will be the only on out
> > there , so there a big market for it, and there be ways u can make
> > money for it, all money made will got to the coder becuse he put most
> > of the work in on making the chat room,
> >
> > i got the design done, just need someone to make it work,
> >
> > chatroom
> > cams
> > audio (mics for users)
> > regester (got to join the chatroom)
> > easy interface,
> > able to couse font
> > able to have font clouor
> >
> > a admin cp
> > so a abmin can block people
> > make modraters
> > can put age limt on rooms
> > can make new rooms
> >
> > anything other you can added
> >
> > you will have ownership of the chattroom, i just be website designer
> > and bring people to chat room, all of the old goshee people will join
> > and will make admins and modraters
> >
> > the design
> > http://i7.photobucket.com/albums/y265/down16/goshenew-1.jpg
> >
> > post back or add my yahoo and talk to me if you would like to help
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix, LLC
> http://www.teotigraphix.com
> 
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
> 
> You can find more by solving the problem then by 'asking the question'.
>




[flexcoders] DateFormatter Bug?

2008-09-19 Thread kramus0
Hi all, 

is this maybe a DateFormatter bug or am I doing something wrong?

When I use a Date object that is initialized with 0 (Zero) then I
can't get that value formated (with my German environment) using the
DateFormatter.

Here is my code:

var myDateFormatter: DateFormatter = new DateFormatter();
var myDate: Date = new Date(0); //should be 1/1/1970

myDateFormatter.formatString = "JJ:NN"; //only show the time

trace(myDateFormatter.format(myDate)); // <-- returns an empty string!!!

I know I would work - if I add a day because myDate shows a timeOffset
of -60 (1 hour) - and that's before the 1/1/1970

Any suggestions?

Thanks Markus



Re: [flexcoders] Difficulty updating Grouping in Advanced DataGrid

2008-09-19 Thread Tom McNeer
Gregor,

Thanks very much for your explanation. I had Googled a lot before asking the
question, assuming that the list archives would show up. But perhaps they
were buried in other results. I should have searched here first. I
apologize.

I found your code for subclassing HierarchicalData, along with the
correction for RESET from another poster.

Thanks again for the help.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: Problem consuming ActiveMQ messages from Flex client

2008-09-19 Thread George
I use ActiveMQ and it works just fine. Although, I use the STOMP
client, and you need to make sure that you have a flash policy server
set up to allow the socket connection to the message server.

--- In flexcoders@yahoogroups.com, "Christophe Herreman" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I am unable to consume messages sent via ActiveMQ from my Flex client.
> Sending messages via the Producer seems to work, I can also see that the
> Flex client is connected and subscribed via the properties on the
Consumer
> object, however the "message" event on the Consumer is never fired so it
> seems like the messages are not received.
> 
> When I look in the ActiveMQ console, I can see the number of
subscribers,
> the number of messages sent and the number of messages received. The
strange
> thing is that the received messages counter seems to increment and
that I
> can also trace the log statements in the Tomcat console, but again no
> messages are received in the Flex client.
> 
> Any ideas?
> 
> -- 
> Christophe Herreman
> http://www.herrodius.com
> http://www.pranaframework.org
>




Re: [flexcoders] RE: Alex going offline for a while - and Gordon too!

2008-09-19 Thread Douglas Knudsen
please post your emergency contact information here just in case.

:)

DK

On Fri, Sep 19, 2008 at 8:52 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   *looks around guiltily*
>
> On Fri, Sep 19, 2008 at 10:28 AM, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
>> I'm around, but I only send stern notes to people and don't read most of
>> what you guys write to each other anymore :-)
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> http://flex.joshmcdonald.info/
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] Re: Grrrr. Security Sandbox

2008-09-19 Thread George
That makes absolutely no difference... thanks. Adobe???

--- In flexcoders@yahoogroups.com, "Sherif Abdou" <[EMAIL PROTECTED]> wrote:
>
> Call it like this C:\Vadex\VadexFlex\bin-debug\VadexFlex.html
Instead of file:///
> --




Re: [flexcoders] red 5 and flex and javer

2008-09-19 Thread Michael Schmalle
Can you stop spamming this list please?

You posted this a week or two ago and people laughed at it.

There is a list Flexjobs that you could post on. But those developers want
REAL money for the 100's of hours of work you are asking for free.

Mike

On Fri, Sep 19, 2008 at 9:18 AM, sniperbe <[EMAIL PROTECTED]> wrote:

>   i need a programer that help me make a chatroom
>
> there was a chat room made on felx called goshee but shut down cus
> apple the coder gave up on due was 2 busy
>
> we look for someone help us make a new one, called chill chat, i can
> design website and market it and adviste it, there is no good
> chatrooms sites with cam and audio and this will be the only on out
> there , so there a big market for it, and there be ways u can make
> money for it, all money made will got to the coder becuse he put most
> of the work in on making the chat room,
>
> i got the design done, just need someone to make it work,
>
> chatroom
> cams
> audio (mics for users)
> regester (got to join the chatroom)
> easy interface,
> able to couse font
> able to have font clouor
>
> a admin cp
> so a abmin can block people
> make modraters
> can put age limt on rooms
> can make new rooms
>
> anything other you can added
>
> you will have ownership of the chattroom, i just be website designer
> and bring people to chat room, all of the old goshee people will join
> and will make admins and modraters
>
> the design
> http://i7.photobucket.com/albums/y265/down16/goshenew-1.jpg
>
> post back or add my yahoo and talk to me if you would like to help
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Josh McDonald
Isn't it Player-specific stuff? How could there be demos in other languages
(except maybe haXe)?

-Josh

On Fri, Sep 19, 2008 at 11:44 PM, Jim Hayes <[EMAIL PROTECTED]> wrote:

>  Does anyone have any localconnection samples done in other languages, by
> the way? C# would be most useful for me, but anything accepted!
>
> I'm aware that there is a brief explaination and some c++ sample code on
> osFlash, but that's all I've seen.
>
>  Apparently it's a "mutex", but being only a lowly flash guy I get a bit
> confused after that!
>
>
>
> -Original Message-
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* 19 September 2008 13:26
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Does localconnection Class works with
> different Port numbers ?
>
>
>
> I've got to build some LocalConnection voodoo in the next couple of weeks
> at work, anybody have any tips, or pitfalls I should look out for? Or is it
> usually smooth sailing?
>
> -Josh
>
> On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie <[EMAIL PROTECTED]>
> wrote:
>
> LocalConnection uses an in-memory file, not actual connections.
>
> As long as both swf's are still running on the same machine, you shouldn't
> have any problems.
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:   01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> [EMAIL PROTECTED]
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Bharath
> *Sent:* 18 September 2008 06:54
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Does localconnection Class works with different
> Port numbers ?
>
>
>
> Hi All,
>
> I have two SWF file communicates with each other using localconnection
> class.
>
> Now if I place both the SWF in
> ...
>
> [Message clipped]




-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Jim Hayes
Does anyone have any localconnection samples done in other languages, by
the way? C# would be most useful for me, but anything accepted!
I'm aware that there is a brief explaination and some c++ sample code on
osFlash, but that's all I've seen.
 Apparently it's a "mutex", but being only a lowly flash guy I get a bit
confused after that!
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: 19 September 2008 13:26
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
I've got to build some LocalConnection voodoo in the next couple of
weeks at work, anybody have any tips, or pitfalls I should look out for?
Or is it usually smooth sailing?

-Josh
On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie <[EMAIL PROTECTED]
 > wrote:
LocalConnection uses an in-memory file, not actual connections.
As long as both swf's are still running on the same machine, you
shouldn't have any problems.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk
The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]  


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Bharath
Sent: 18 September 2008 06:54
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Does localconnection Class works with different
Port numbers ?
 
Hi All,

I have two SWF file communicates with each other using localconnection
class.

Now if I place both the SWF in two different Ports. Will it communicate
or not?

Thanks,

- Bharath



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

http://flex.joshmcdonald.info/  

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]  
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Re: Java or C# from Flex

2008-09-19 Thread rleuthold
If you want to use Java in an AIR Application maybe this 
http://www.merapiproject.net/ is of 
interest.

_rico

--- In flexcoders@yahoogroups.com, "zoltan" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>  
> If you are using .NET you can try FluorineFx too
>  
> Zoli
> www.fluorinefx.com
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Tracy Spratt
> Sent: Friday, September 19, 2008 1:41 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Java or C# from Flex
> 
> 
> 
> 
> One more thing. If you are more comfortable in .net/c#, look into WebOrb.
> But it's third party, and if you are comfortable in Java, then like I said
> before..
> 
> Tracy
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Tracy Spratt
> Sent: Thursday, September 18, 2008 6:36 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Java or C# from Flex
> 
> I am not a java guy, but here's my thinking til you hear from one of them.
> 
> RemoteObject is one of the RPC protocols that Flex can use to talk to stuff
> on the server.  I know it will talk to servlets, and believe it will talk to
> other stuff like "beans" and maybe even "EJB"s.  It uses a proprietary
> transport protocol, called amf, that is the fastest data transport currently
> available to Flex.
> 
> So that's your starting point. See the docs, google and search the archive
> here using the terms RemoteObject and amf, and whatever java enpoints you
> want to use.
> 
> Tracy
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Peter Cross
> Sent: Thursday, September 18, 2008 5:16 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Java or C# from Flex
> 
> Hi All,
> 
> I need pointing in the right direction. I have done some searching 
> about Flex and Java and have not got the answers I am looking for yet.
> 
> I have a conversion library that I can deploy as C# or Java for 
> converting HL7 result data and inserting that data to a database and I 
> want to be able to run that from flex. Is this possible? Where would 
> be a good place to learn more about how to do this?
> 
> Thanks
> 
> Peter Cross
>





[flexcoders] red 5 and flex and javer

2008-09-19 Thread sniperbe
i need a programer that help me make a chatroom

there was a chat room made on felx called goshee but shut down cus
apple the coder gave up on due was 2 busy 

we look for someone help us make a new one, called chill chat, i can
design website and market it and adviste it, there is no good
chatrooms sites with cam and audio and this will be the only on out
there , so there a big market for it, and there be ways u can make
money for it, all money made will got to the coder becuse he put most
of the work in on making the chat room, 

i got the design done, just need someone to make it work,

chatroom
cams
audio (mics for users)
regester (got to join the chatroom)
easy interface,
able to couse font
able to have font clouor

a admin cp
so a abmin can block people
make modraters
can put age limt on rooms
can make new rooms

anything other you can added

you will have ownership of the chattroom, i just be website designer
and bring people to chat room, all of the old goshee people will join
and will make admins and modraters 

the design
http://i7.photobucket.com/albums/y265/down16/goshenew-1.jpg

post back or add my yahoo and talk to me if you would like to help



Re: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Brandon Krakowsky
I'm working with LocalConnection now and having some issues.  I'm trying to 
load and control some Flash 8 movies with some success.  I'm first loading in a 
proxy Flash 8 file, and then loading the movies into there.  I'm calling 
functions in the proxy file which basically tell the loaded movies to go to 
certain frames, etc.

It seems to work most of the time but every now and again I get weird 
"undefined" traces in the Flex IDE.  I have a lot more testing to do but I'm 
not sure how the Flash 9 debugger tries to debug AS2 in a Flash 8 file.

Thanks,
Brandon



- Original Message 
From: Gregor Kiddie <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, September 19, 2008 8:51:17 AM
Subject: RE: [flexcoders] Does localconnection Class works with different Port 
numbers ?


Swf ß> swf is usually pretty smooth sailing, the flash player does a
good job of hiding you from a lot of the grunginess.
Swf ß> anything else is annoying as you’ll have to pretty much
redo all the fun stuff the FP hides from you.
The main pitfall is the 40k limit on the
localconnection file, if you are needing to read / write anything larger, you
need to page it and be careful about the timings.
If there’s anything specific you
want to know, hit me up off list. We’ve done a whole lot of work with the
LocalConnection recently!
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382
564343
Registered address: The Bread Factory, 1a Broughton Street, LondonSW8 3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co. uk
The information in this internet email is confidential and
is intended solely for the addressee. Access, copying or re-use of information
in it by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of INPS or
any of its affiliates. If you are not the intended recipient please contact
is.helpdesk@ inps.co.uk


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf
Of Josh McDonald
Sent: 19 September 2008 13:26
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Does
localconnection Class works with different Port numbers ?
 
I've got to build some LocalConnection voodoo in the next couple of
weeks at work, anybody have any tips, or pitfalls I should look out for? Or is
it usually smooth sailing?

-Josh


  

RE: [flexcoders] Java or C# from Flex

2008-09-19 Thread Dimitrios Gianninas
Yes it is possible, you can call Java from Flex using the RemoteObject class. 
Best place to start is to use BlazeDS as it has examples on how to call java 
from Flex...go here for details:
 
http://opensource.adobe.com/wiki/display/blazeds/BlazeDS
 
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter 
Cross
Sent: Thursday, September 18, 2008 5:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Java or C# from Flex



Hi All,

I need pointing in the right direction. I have done some searching 
about Flex and Java and have not got the answers I am looking for yet.

I have a conversion library that I can deploy as C# or Java for 
converting HL7 result data and inserting that data to a database and I 
want to be able to run that from flex. Is this possible? Where would 
be a good place to learn more about how to do this?

Thanks

Peter Cross



 

-- 
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.



[flexcoders] Problem consuming ActiveMQ messages from Flex client

2008-09-19 Thread Christophe Herreman
Hi,

I am unable to consume messages sent via ActiveMQ from my Flex client.
Sending messages via the Producer seems to work, I can also see that the
Flex client is connected and subscribed via the properties on the Consumer
object, however the "message" event on the Consumer is never fired so it
seems like the messages are not received.

When I look in the ActiveMQ console, I can see the number of subscribers,
the number of messages sent and the number of messages received. The strange
thing is that the received messages counter seems to increment and that I
can also trace the log statements in the Tomcat console, but again no
messages are received in the Flex client.

Any ideas?

-- 
Christophe Herreman
http://www.herrodius.com
http://www.pranaframework.org


Re: [flexcoders] Placing cursor inside UITextField

2008-09-19 Thread Brandon Krakowsky
Good idea.  I'll check that out.  It's strange that this is so tricky to do.  I 
can use a TextInput and use textInput.setFocus() right after creation with no 
problem, but that doesn't suit my needs.

Thanks,
Brandon



- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, September 18, 2008 9:56:51 PM
Subject: Re: [flexcoders] Placing cursor inside UITextField


This is untested and I havent tried it, I am 
guessing somewhere you can dispatch a Fake mouseDown/Click event on the 
UITextField which theortically should place a cursor.
--
Sherif Abdou
http://VadexFX. com
http://Sherifabdou. com
- Original Message - 
From: Brandon  Krakowsky 
To: [EMAIL PROTECTED] ups.com 
Sent: Thursday, September 18, 2008 8:51  PM
Subject: Re: [flexcoders] Placing cursor  inside UITextField

George, thanks, I'll have to test that.  The parent component is  certainly 
initialized.  The UITextFields are triggered by user  interaction.  You mean I 
have to test to see if the UITextField itself  has initialized?

Thanks,
Brandon



-  Original Message 
From: George <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent:  Thursday, September 18, 2008 6:44:49 PM
Subject: Re: [flexcoders] Placing  cursor inside UITextField


Usually I will begin to run set focus after component already 
initialized. If you try to get focus before that time, wouldn't work for 
sure.

George

Brandon Krakowsky wrote:
> I'm creating  some Input UITextField instances dynamically, and then 
> trying to  place the cursor inside. Can't seem to get it working.
>
> var  textField:UITextFie ld = new UITextField( );
> textField.type =  "input";
> textField.autoSize = TextFieldAutoSize. LEFT;
>  textField.multiline = true;
> textField.wordWrap = false;
>  textField.border = false;
>
> stage.focus =  textField;
>
> It seems to get the focus, but doesn't put the  cursor inside. Can't 
> just start typing. Also, textField.setFocus( )  doesn't work.
>
> Thanks,
>  Brandon





  

Re: [flexcoders] Placing cursor inside UITextField

2008-09-19 Thread Brandon Krakowsky
Yeah, the UITextField instances are created by clicking on the stage.

Thanks,
Brandon



- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: "flexcoders@yahoogroups.com" 
Sent: Friday, September 19, 2008 1:23:40 AM
Subject: RE: [flexcoders] Placing cursor inside UITextField


Don’t forget that the browser doesn’t give focus to Flash until
you click on the app.
 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Brandon
Krakowsky
Sent: Thursday, September 18, 2008 6:52 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Placing cursor inside UITextField
 
George, thanks, I'll have to test that.  The parent
component is certainly initialized.  The UITextFields are triggered by
user interaction.  You mean I have to test to see if the UITextField
itself has initialized?

Thanks,
Brandon
 
- Original Message 
From: George <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Thursday, September 18, 2008 6:44:49 PM
Subject: Re: [flexcoders] Placing cursor inside UITextField
Usually I will begin to run set focus after
component already 
initialized. If you try to get focus before that time, wouldn't work for 
sure.

George

Brandon Krakowsky wrote:
> I'm creating some Input UITextField instances dynamically, and then 
> trying to place the cursor inside. Can't seem to get it working.
>
> var textField:UITextFie ld = new UITextField( );
> textField.type = "input";
> textField.autoSize = TextFieldAutoSize. LEFT;
> textField.multiline = true;
> textField.wordWrap = false;
> textField.border = false;
>
> stage.focus = textField;
>
> It seems to get the focus, but doesn't put the cursor inside. Can't 
> just start typing. Also, textField.setFocus( ) doesn't work.
>
> Thanks,
> Brandon
  


  

Re: [flexcoders] How to call 2 services in a single event handler

2008-09-19 Thread Josh McDonald
Your dispatch code looks ok to me at first glance. Have you checked to make
sure both requests are making out to the server and coming back OK?

-Josh

On Fri, Sep 19, 2008 at 8:27 PM, Tapan Ghia <[EMAIL PROTECTED]> wrote:

>
> Hey.
>
> I am trying to call 2 services from a single function. Both the services
> send the request to the server and i am getting the response. I have
> associated result handlers with both the services. And in these result
> handlers i am trying to populate two different forms.
>
> While doing so, inspite of getting both the responses, the second form does
> not get populated with the response for the first time, while the first
> form
> gets populated with the response.
>
> Whenever the second form is clicked for the second time it gets populated.
>
> I want both the forms to be loaded with the response when the event is
> generated.
>
> Can someone please tell if i am doing something wrong.
>
> This is my code:
>
> public function handleTreeClick(event:MouseEvent):void
>  {
>var nodeType:String = [EMAIL PROTECTED];
>if(nodeType == "")
>{
>  var isOpen:Boolean =
> assetTree.isItemOpen(event.currentTarget.selectedItem);
>
> assetTree.expandItem(event.currentTarget.selectedItem,!isOpen,true);
>}
>if(nodeType == "ppt")
>{
>  var params:Object = {};
>  params["id"[EMAIL PROTECTED];
>  params["action"]="getAsset";
>  assetList.send(params);
>}
>
>
>if(nodeType != "" && nodeType != "folder")
>{
>var paramsForDetails:Object = new Object();
>paramsForDetails["action"] = "edit";
>paramsForDetails["resType"] = "xml";
>paramsForDetails["assetsId"] =
> [EMAIL PROTECTED];
>paramsForDetails["entityId"] =
> [EMAIL PROTECTED];
>selectedAssetType = [EMAIL PROTECTED];
>assetDetailsService.send(paramsForDetails);
>
>}
>
>
>
>  }
>
> Thanks in advance..
> --
> View this message in context:
> http://www.nabble.com/How-to-call-2-services-in-a-single-event-handler-tp19569871p19569871.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Need help !!!!!!!!

2008-09-19 Thread Gregor Kiddie
Before someone else jumps up and down on you...

A more descriptive subject is more likely to get an answer. A lot of
(knowledgeable) people on this list don't have time to read every post,
so the best way to get an answer is to key them in early.

 

To move onto your question, what are you actually trying to do? How have
you got everything set up? Normally BlazeDS (de)serializes AMF dates no
problem.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sreekumar4
Sent: 19 September 2008 12:23
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Need help 

 

how to pass date via value object in flex using blazeds ??

Please help

 



Re: [flexcoders] RE: Alex going offline for a while - and Gordon too!

2008-09-19 Thread Josh McDonald
*looks around guiltily*

On Fri, Sep 19, 2008 at 10:28 AM, Matt Chotin <[EMAIL PROTECTED]> wrote:

> I'm around, but I only send stern notes to people and don't read most of
> what you guys write to each other anymore :-)
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Gregor Kiddie
Swf <--> swf is usually pretty smooth sailing, the flash player does a
good job of hiding you from a lot of the grunginess.

Swf <--> anything else is annoying as you'll have to pretty much redo
all the fun stuff the FP hides from you.

The main pitfall is the 40k limit on the localconnection file, if you
are needing to read / write anything larger, you need to page it and be
careful about the timings.

If there's anything specific you want to know, hit me up off list. We've
done a whole lot of work with the LocalConnection recently!

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: 19 September 2008 13:26
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?

 

I've got to build some LocalConnection voodoo in the next couple of
weeks at work, anybody have any tips, or pitfalls I should look out for?
Or is it usually smooth sailing?

-Josh



[flexcoders] Need help !!!!!!!!

2008-09-19 Thread sreekumar4
 how to pass date via  value object in flex using blazeds ??

Please help



[flexcoders] How to call 2 services in a single event handler

2008-09-19 Thread Tapan Ghia

Hey.

I am trying to call 2 services from a single function. Both the services
send the request to the server and i am getting the response. I have
associated result handlers with both the services. And in these result
handlers i am trying to populate two different forms.

While doing so, inspite of getting both the responses, the second form does
not get populated with the response for the first time, while the first form
gets populated with the response.

Whenever the second form is clicked for the second time it gets populated.

I want both the forms to be loaded with the response when the event is
generated.

Can someone please tell if i am doing something wrong.

This is my code:

public function handleTreeClick(event:MouseEvent):void
  {
var nodeType:String = [EMAIL PROTECTED];
if(nodeType == "")
{
  var isOpen:Boolean =
assetTree.isItemOpen(event.currentTarget.selectedItem);
 
assetTree.expandItem(event.currentTarget.selectedItem,!isOpen,true);
}
if(nodeType == "ppt")
{
  var params:Object = {};
  params["id"[EMAIL PROTECTED];
  params["action"]="getAsset";
  assetList.send(params);
}


if(nodeType != "" && nodeType != "folder")
{
var paramsForDetails:Object = new Object();
paramsForDetails["action"] = "edit";
paramsForDetails["resType"] = "xml";
paramsForDetails["assetsId"] =
[EMAIL PROTECTED];
paramsForDetails["entityId"] =
[EMAIL PROTECTED];
selectedAssetType = [EMAIL PROTECTED];
assetDetailsService.send(paramsForDetails);

}
 

 
  }

Thanks in advance..
-- 
View this message in context: 
http://www.nabble.com/How-to-call-2-services-in-a-single-event-handler-tp19569871p19569871.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Please share your experiences with Flex 3 charting (visualization component)

2008-09-19 Thread Kumar Pandey
Yes it looks pretty stable. Thanks for sharing it. I'll re-visit my stuff
and share my findings.

On Thu, Sep 18, 2008 at 8:07 PM, li wenzhi <[EMAIL PROTECTED]> wrote:

>I think the problem lies in your dynamicly creating the columseries,
> for my sample, dynamic created data for a fixed number of  lineseriese chart
> running all day long does not see any memory leak.
>
> sample file attached
>
> --
> lwz7512
> Ultrapower Flex Team Leader
> www.ultrapower.com.cn
>
> - Original Message 
> From: Maciek Sakrejda <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, September 18, 2008 1:29:19 AM
> Subject: Re: [flexcoders] Please share your experiences with Flex 3
> charting (visualization component)
>
>  We use Flex for a real-time dashboard at Truviso, and we haven't run
> into any major with charts so far. For what it's worth, we're still on
> Flex 2, but with FB3, which the bug report states *should* reproduce the
> problem (which is odd--FB itself should have nothing to do with this if
> the SDK versions are identical). I also noticed from the bug description
> that this happens mostly when replacing the dataProvider/ series: we keep
> the same series/ListCollecti onView object but update the contents as new
> data comes in.
>
> We definitely depend on Flex Charting for a stable real-time dashboard,
> and the data binding paradigm makes this an ideal library for this
> purpose. It would be a shame to have to move to something else because
> of stability issues.
>
> --
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso. com 
>
> -Original Message-
> From: kumar_raj >
> Reply-To: [EMAIL PROTECTED] ups.com 
> To: [EMAIL PROTECTED] ups.com 
> Subject: [flexcoders] Please share your experiences with Flex 3 charting
> (visualization component)
> Date: Wed, 17 Sep 2008 16:44:16 -
>
> I wanted to start a thread on user experience on Flex3 charting or
> visualization component.
>
> I had been pusing back hard the last 2 years on moving out realtime
> charting from current serverside image generation to flex charting.
>
> Finally with flex 3 prof , I caved in. Hight cpu usage on servers in
> our production env is of course another motivating factor :)
>
> The state of the charting components seems to be in a bit of a sorry
> state though. Demo looks complelling when used with static data.
> Moment we start doing some realtime refesh we're hit with memory and
> cpu usage issues.
>
> Please look at bug http://bugs. adobe.com/ jira/browse/ 
> SDK-15710for
> more on this.
>
> These bugs have been filed a while and ago and doesn't seem to have
> been placed high on the priority list.
>
> So I wanted to find out if people in the industry are using flex
> charting solution in realtime dashboards. If so what are your
> experiences.
>
> My experince so far in moving our system to flex charting has been
> quite rocky. here are few issues I'm struggling with
>
> 1) With frequent chart updates (say evebry 5 sec), there is lot of
> memory leaks not easily identifiable via flex profiler.
> 2) Browsers especially IE6 do not claim back memory efficiently.
>
> 3) Bar chart frequest update has hig cpu usage
>
> Thanks
> Kumar Pandey
>
>
>  
>



-- 
Kumar Pandey
http://www.linkedin.com/in/kumarpandey


[flexcoders] Re: Retrieving Sorted Data from DataGrid

2008-09-19 Thread edlueze
Thanks for the response, but my question is even more basic than that.
I can't even find the object that contains the sorted data. And I'm
just trying to move it into an array. I've been trying to dig into the
DataGrid itself through it's dataProvider, but the examples seem to
point me away from that route and have me work with the original
XMLList (which doesn't seem to get sorted). Any more ideas?

--- In flexcoders@yahoogroups.com, "Sherif Abdou" <[EMAIL PROTECTED]> wrote:
>
> SharedObjects? or maybe just write it to the server and then have it
pull that data out when the user comes back. 
> --
> Sherif Abdou
> http://VadexFX.com
> http://Sherifabdou.com
>   - Original Message - 
>   From: edlueze 
>   To: flexcoders@yahoogroups.com 
>   Sent: Thursday, September 18, 2008 7:10 PM
>   Subject: [flexcoders] Retrieving Sorted Data from DataGrid
> 
> 
>   I've loaded a DataGrid with an XMLList. When the user clicks on a
>   header to sort the DataGrid I want to save the data in the DataGrid in
>   the order that it was sorted. How's that done?
>




RE: [flexcoders] Re: TileList changing items displayed after scrolling

2008-09-19 Thread Gregor Kiddie
You heard it here first folks! UIComponent makes you fat!

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: 19 September 2008 02:54
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: TileList changing items displayed after
scrolling

 

Explain more, Why not just use UIComponent? Does it add weight or what?

--
Sherif Abdou
http://VadexFX.com  
http://Sherifabdou.com  



RE: [flexcoders] RE: Alex going offline for a while - and Gordon too!

2008-09-19 Thread Gregor Kiddie
Aren't we all conditioned to pointing people to Alex's blog by now
anyway? I sometimes do it accidently when I'm asked for directions!

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Andrews
Sent: 19 September 2008 01:06
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: Alex going offline for a while - and
Gordon too!

 

The Sheriffs are moseying on out of town..  ..there's going to be bar
brawls and cattle rustling!

- Original Message - 

From: Gordon Smith   

To: flexcoders@yahoogroups.com
  

Sent: Thursday, September 18, 2008 10:39 PM

Subject: [flexcoders] RE: Alex going offline for a while - and
Gordon too!

 

BTW, I'm on vacation from 9/22 to 10/3. Fortunately, the
community is doing a great job of helping each other on this list!

 

Gordon Smith

Adobe Flex SDK Team

 

From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED]
On Behalf Of Alex Harui
Sent: Wednesday, September 17, 2008 9:03 PM
To: flexcoders@yahoogroups.com
 
Subject: [flexcoders] Alex going offline for a while

 

Well, the time has come for me to take a break from answering
flexcoders postings.  I'll be turning off my computer around 9pm PDT
Thursday and going on sabbatical so I won't be thinking about Flex until
October 10 or 20.  The last 10 days are "vacation" so I might check in
to start getting my brain in gear again.

 

In the meantime, I'm sure the community will eventually answer
everything I would anyway, but just in case, here are some possible
responses:

 

1)  Search the archives

2)  Google for examples

3)  Use the debugger

4)  Use the profiler

5)  Post the entire stacktrace using a debug build so you
get line numbers

6)  Item renderers recycle

7)  Read my blog

8)  Feel free to file a bug or enhancement request

9)  Yes it is probably possible, but has difficulty rating
of ___

10)   Ask Matt or Gordon.

 

See you in October

 

-Alex

 



[flexcoders] Looking for examples tutorials code to learn how to draw on a canvas

2008-09-19 Thread oneproofdk
Hi guys

I am looking to make a Flex3 app. where I can "draw" on a image. 

Is there any good tutorials examples etc. out there - I havent really
been able to find any.

I found a Flash component ($199) that does the trick - but I want to
go Flex :-)


Thanks for any info you can share !

//Mark



Re: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Josh McDonald
I've got to build some LocalConnection voodoo in the next couple of weeks at
work, anybody have any tips, or pitfalls I should look out for? Or is it
usually smooth sailing?

-Josh

On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie <[EMAIL PROTECTED]>wrote:

>  LocalConnection uses an in-memory file, not actual connections.
>
> As long as both swf's are still running on the same machine, you shouldn't
> have any problems.
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:   01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> [EMAIL PROTECTED]
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Bharath
> *Sent:* 18 September 2008 06:54
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Does localconnection Class works with different
> Port numbers ?
>
>
>
> Hi All,
>
> I have two SWF file communicates with each other using localconnection
> class.
>
> Now if I place both the SWF in two different Ports. Will it communicate
> or not?
>
> Thanks,
>
> - Bharath
>
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Vertical Scrollbars without Horizontal scrollbars (solution)

2008-09-19 Thread Josh McDonald
Hey Guys,

It's a common problem - anything anchored to the RHS of the container, or
width="100%" gives you a horizontal scrollbar as well as a vertical one when
the content becomes too tall, where HTML would simply shrink your content
horizontally and give a vertical scrollbar. Alex has explained why it's the
way it is a few times on the list, but for those of you whom this annoys the
heck out of (I'm one), here's my solution:

Blog post:

http://flex.joshmcdonald.info/2008/09/vertical-scrollbars-and-100-width.html

Straight to the code (for those thinking "you're a jerk Josh, don't spam
your blog here"):

http://snippets.gfunk007.com/?SmartVerticalScroll.as

Cheers,

-Josh

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Gregor Kiddie
LocalConnection uses an in-memory file, not actual connections.

As long as both swf's are still running on the same machine, you
shouldn't have any problems.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bharath
Sent: 18 September 2008 06:54
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Does localconnection Class works with different
Port numbers ?

 

Hi All,

I have two SWF file communicates with each other using localconnection
class.

Now if I place both the SWF in two different Ports. Will it communicate
or not?

Thanks,

- Bharath

 



  1   2   >