RE: [flexcoders] Re: scrollRect ???

2009-09-24 Thread Alex Harui
I don't know of any example code.  Are you trying to do anything different from 
the other map applications out there?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Thursday, September 24, 2009 10:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: scrollRect ???



Alex, thanks. Do you happen to know of any articles or examples on creating a 
satellite view pan/zoom control?

Jason

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> I'm pretty sure scrollrects are always positioned at 0,0. It essentially 
> creates a mask of a certain size, positions it at 0,0, then only shows the 
> pixels that would otherwise be displayed at x,y at 0,0
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of flexaustin
> Sent: Wednesday, September 23, 2009 10:35 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] scrollRect ???
>
>
>
> Wondering if anyone knows how to get the difference between the scrollRect x 
> position relative to the components edges?
>
> I am building a pancontrol, similar to the ones found Google Maps or Yahoo 
> Maps, for quick navigation.
>
> In order to setup my pancontrol I need to find out the following given this 
> code:
>
>  ..
>
>  horizontalScrollPolicy="off" verticalScrollPolicy="off" >
>  width="100%" height="100%"
> horizontalScrollPolicy="off" verticalScrollPolicy="off"
> backgroundAlpha="0"
> scrollRect="{rec}"
> cacheAsBitmap="true"
> mouseUp="handleVisMouseUp()"
> />
> 
>
> I need to find the distance or gap between the vis.scrollRect x&y position 
> relative to the vis x&y position. My application width & height are 600 x 
> 600. Vis width and height are 3000 x 900 so they extend off screen. I am 
> using the scrollRect to limit what is viewable. But in order build my 
> pancontrol I need to find the diff between the X & Y of the scrollRect in 
> relation to the X&Y of the Vis. So how far off left, right, bottom, and top 
> of the visible area does Vis extend. I need those numbers in pixels.
>
> TIA, J
>



RE: [flexcoders] e4x Filtering Success

2009-09-24 Thread Tracy Spratt
Don't do that much code in-line, declare a Bindable instance level
XMLListCollection variable and create that in a creationComplete handler.
That way you can debug your e4x expression using toXMLString();  It will be
nearly impossible to debug the inline binding.

Tracy Spratt,
Lariat Services, development services available

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim Hayes
Sent: Thursday, September 24, 2009 2:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] e4x Filtering Success

the & needs to be the correct xml entity, I believe.

try using && in your mxml rather than &&

It's trying to tell you that, but it took me a few head scratches to work it
out, I must admit.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of AJC2357
Sent: Thu 9/24/2009 12:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] e4x Filtering Success
 
(partially...)

I was able to filter through e4x via mx:XML and the dataProvider as
follows...




How can I add an additional filter argument from here?  Using the &&
technique gave me error that "entity name must immediately follow &"

I want to filter something like: region = Asia AND GDP/capita = 1  

Thanks!


__
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: scrollRect ???

2009-09-24 Thread flexaustin
Alex, thanks. Do you happen to know of any articles or examples on creating a 
satellite view pan/zoom control?

Jason


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I'm pretty sure scrollrects are always positioned at 0,0.  It essentially 
> creates a mask of a certain size, positions it at 0,0, then only shows the 
> pixels that would otherwise be displayed at x,y at 0,0
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of flexaustin
> Sent: Wednesday, September 23, 2009 10:35 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] scrollRect ???
> 
> 
> 
> Wondering if anyone knows how to get the difference between the scrollRect x 
> position relative to the components edges?
> 
> I am building a pancontrol, similar to the ones found Google Maps or Yahoo 
> Maps, for quick navigation.
> 
> In order to setup my pancontrol I need to find out the following given this 
> code:
> 
>  ..
> 
>  horizontalScrollPolicy="off" verticalScrollPolicy="off" >
>  width="100%" height="100%"
> horizontalScrollPolicy="off" verticalScrollPolicy="off"
> backgroundAlpha="0"
> scrollRect="{rec}"
> cacheAsBitmap="true"
> mouseUp="handleVisMouseUp()"
> />
> 
> 
> I need to find the distance or gap between the vis.scrollRect x&y position 
> relative to the vis x&y position. My application width & height are 600 x 
> 600. Vis width and height are 3000 x 900 so they extend off screen. I am 
> using the scrollRect to limit what is viewable. But in order build my 
> pancontrol I need to find the diff between the X & Y of the scrollRect in 
> relation to the X&Y of the Vis. So how far off left, right, bottom, and top 
> of the visible area does Vis extend. I need those numbers in pixels.
> 
> TIA, J
>




RE: [flexcoders] ToolTipManager problem

2009-09-24 Thread Gordon Smith
> Is there any other way I can get the tooltip to die after 2 seconds 
> regardless of what mouse movements take place...?

Use a Timer to call destroyToolTip(). I believe that hideDelay only affects 
tooltips that are automatically shown, not ones that you show with 
createToolTip().

- Gordon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Thursday, September 24, 2009 4:03 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ToolTipManager problem


I think if the tooltip shows up under the mouse you may not get an itemRollOut 
and clean up the old one.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of luketvanderfluit
Sent: Thursday, September 24, 2009 3:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ToolTipManager problem



Hi.

Here I have a component.

Problem is that itemRollOver, itemRollout and change doesnt always close the 
tooltip. Then Im stuck with an open tooltip that can only be removed by 
reloading the application...

I want to use ToolTipManager.hideDelay to automatically hide the tooltip after 
2 seconds but
Putting ToolTipManager.hideDelay = 2000 in an init method doesnt do it...

Is there any other way I can get the tooltip to die after 2 seconds regardless 
of what mouse movements take place...?

Thanks for any help...

Kr.
Luke Vanderfluit


http://www.adobe.com/2006/mxml";
openDuration="250"
closeDuration="250"
selectionDuration="250"
fontSize="8"
prompt="Risk Consequence"
dataProvider="{rcAC}" itemRollOver="toolTipIn(event)"
itemRollOut="toolTipOut(event)" change="toolTipOut(event)">
















RE: [flexcoders] ToolTipManager problem

2009-09-24 Thread Alex Harui
I think if the tooltip shows up under the mouse you may not get an itemRollOut 
and clean up the old one.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of luketvanderfluit
Sent: Thursday, September 24, 2009 3:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ToolTipManager problem



Hi.

Here I have a component.

Problem is that itemRollOver, itemRollout and change doesnt always close the 
tooltip. Then Im stuck with an open tooltip that can only be removed by 
reloading the application...

I want to use ToolTipManager.hideDelay to automatically hide the tooltip after 
2 seconds but
Putting ToolTipManager.hideDelay = 2000 in an init method doesnt do it...

Is there any other way I can get the tooltip to die after 2 seconds regardless 
of what mouse movements take place...?

Thanks for any help...

Kr.
Luke Vanderfluit


http://www.adobe.com/2006/mxml";
openDuration="250"
closeDuration="250"
selectionDuration="250"
fontSize="8"
prompt="Risk Consequence"
dataProvider="{rcAC}" itemRollOver="toolTipIn(event)"
itemRollOut="toolTipOut(event)" change="toolTipOut(event)">
















[flexcoders] ToolTipManager problem

2009-09-24 Thread luketvanderfluit
Hi.

Here I have a component.

Problem is that itemRollOver, itemRollout and change doesnt always close the 
tooltip. Then Im stuck with an open tooltip that can only be removed by 
reloading the application...

I want to use ToolTipManager.hideDelay to automatically hide the tooltip after 
2 seconds but
Putting ToolTipManager.hideDelay = 2000 in an init method doesnt do it...
 
Is there any other way I can get the tooltip to die after 2 seconds regardless 
of what mouse movements take place...?

Thanks for any help...

Kr.
Luke Vanderfluit




http://www.adobe.com/2006/mxml";
openDuration="250"
closeDuration="250"
selectionDuration="250"
fontSize="8"
prompt="Risk Consequence"
dataProvider="{rcAC}" itemRollOver="toolTipIn(event)"
itemRollOut="toolTipOut(event)" 
change="toolTipOut(event)">
















Re: [flexcoders] Re: JavaScript can't call Flex

2009-09-24 Thread Paul Andrews
bgamblin wrote:
> Ah Ha! Found it. The problem was in my flex code, in the callback. I defined 
> it as taking one parameter, an event. Just to make sure that wasn't the 
> problem, I put in a default value of "null" for the parameter, but that's not 
> the same as having no parameter at all. So, when JavaScript called it with no 
> parameters, Flex didn't recognize the same signature, and stopped (if I could 
> run this through the debugger, I probably would have found that).
>
> So, note to self. Setting a default parameter as null is not the same, 
> signature-wise, as sending no parameters.
>
> Thanks to Paul Anderson for his help.
>
> -Brand
>   
Excellent. I checked through my own example and couldn't see the 
problem. Glad you found it.

Paul
> --- In flexcoders@yahoogroups.com, "bgamblin"  wrote:
>   
>> There are many things that the user has to do to get to the menu where this 
>> call is made. So, the Flash would have to be ready, or else it wouldn't have 
>> been responding to state changes, button presses, and all the other things 
>> necessary to get to that point.
>>
>> I do know, for instance, that this occurs after the creationComplete event 
>> is called, and after several interactions with the backend.
>>
>> I think that, if I could find out what was going on in the JavaScript (by 
>> getting an error code or determining whether that function was available on 
>> that object, or something), it would give me a better idea of what I was 
>> looking at.
>>
>>
>> --- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
>> 
>>> bgamblin wrote:
>>>   
 I appreciate the quick response. Unfortunately, the call comes long after 
 the SWF is loaded. 

 This is part of my attempt to upload a file using a self signed-SSL 
 connection (notoriously difficult in Flex). So this call comes after the 
 backend has already loaded the file,
 
>>> How do you know? Unless you let Flex tell you when it's ready to go, 
>>> Javascript won't know when enough of the SWF has been loaded.
>>>
>>> Paul
>>>
>>>   
  and it's just returning a response through the JavaScript.

 Do you know if there's any way to log this? In case it's calling the 
 function but getting an error back?


 --- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
   
 
> I suspect you're calling the function before the SWF is properly loaded. 
> Get the Flex app to call a javascript function to say when it's ready to 
> run, only then call any functions in the SWF.
>
> Paul
>
> 
>   

 

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





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



[flexcoders] Re: JavaScript can't call Flex

2009-09-24 Thread bgamblin
Ah Ha! Found it. The problem was in my flex code, in the callback. I defined it 
as taking one parameter, an event. Just to make sure that wasn't the problem, I 
put in a default value of "null" for the parameter, but that's not the same as 
having no parameter at all. So, when JavaScript called it with no parameters, 
Flex didn't recognize the same signature, and stopped (if I could run this 
through the debugger, I probably would have found that).

So, note to self. Setting a default parameter as null is not the same, 
signature-wise, as sending no parameters.

Thanks to Paul Anderson for his help.

-Brand




--- In flexcoders@yahoogroups.com, "bgamblin"  wrote:
>
> There are many things that the user has to do to get to the menu where this 
> call is made. So, the Flash would have to be ready, or else it wouldn't have 
> been responding to state changes, button presses, and all the other things 
> necessary to get to that point.
> 
> I do know, for instance, that this occurs after the creationComplete event is 
> called, and after several interactions with the backend.
> 
> I think that, if I could find out what was going on in the JavaScript (by 
> getting an error code or determining whether that function was available on 
> that object, or something), it would give me a better idea of what I was 
> looking at.
> 
> 
> --- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
> >
> > bgamblin wrote:
> > > I appreciate the quick response. Unfortunately, the call comes long after 
> > > the SWF is loaded. 
> > >
> > > This is part of my attempt to upload a file using a self signed-SSL 
> > > connection (notoriously difficult in Flex). So this call comes after the 
> > > backend has already loaded the file,
> > How do you know? Unless you let Flex tell you when it's ready to go, 
> > Javascript won't know when enough of the SWF has been loaded.
> > 
> > Paul
> > 
> > >  and it's just returning a response through the JavaScript.
> > >
> > > Do you know if there's any way to log this? In case it's calling the 
> > > function but getting an error back?
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
> > >   
> > >> I suspect you're calling the function before the SWF is properly loaded. 
> > >> Get the Flex app to call a javascript function to say when it's ready to 
> > >> run, only then call any functions in the SWF.
> > >>
> > >> Paul
> > >>
> > >> 
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > 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
> > >
> > >
> > >
> > >
> > >
> >
>




[flexcoders] Re: JavaScript can't call Flex

2009-09-24 Thread bgamblin
There are many things that the user has to do to get to the menu where this 
call is made. So, the Flash would have to be ready, or else it wouldn't have 
been responding to state changes, button presses, and all the other things 
necessary to get to that point.

I do know, for instance, that this occurs after the creationComplete event is 
called, and after several interactions with the backend.

I think that, if I could find out what was going on in the JavaScript (by 
getting an error code or determining whether that function was available on 
that object, or something), it would give me a better idea of what I was 
looking at.


--- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
>
> bgamblin wrote:
> > I appreciate the quick response. Unfortunately, the call comes long after 
> > the SWF is loaded. 
> >
> > This is part of my attempt to upload a file using a self signed-SSL 
> > connection (notoriously difficult in Flex). So this call comes after the 
> > backend has already loaded the file,
> How do you know? Unless you let Flex tell you when it's ready to go, 
> Javascript won't know when enough of the SWF has been loaded.
> 
> Paul
> 
> >  and it's just returning a response through the JavaScript.
> >
> > Do you know if there's any way to log this? In case it's calling the 
> > function but getting an error back?
> >
> >
> > --- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
> >   
> >> I suspect you're calling the function before the SWF is properly loaded. 
> >> Get the Flex app to call a javascript function to say when it's ready to 
> >> run, only then call any functions in the SWF.
> >>
> >> Paul
> >>
> >> 
> >
> >
> >
> > 
> >
> > --
> > 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
> >
> >
> >
> >
> >
>




Re: [flexcoders] Re: JavaScript can't call Flex

2009-09-24 Thread Paul Andrews
bgamblin wrote:
> I appreciate the quick response. Unfortunately, the call comes long after the 
> SWF is loaded. 
>
> This is part of my attempt to upload a file using a self signed-SSL 
> connection (notoriously difficult in Flex). So this call comes after the 
> backend has already loaded the file,
How do you know? Unless you let Flex tell you when it's ready to go, 
Javascript won't know when enough of the SWF has been loaded.

Paul

>  and it's just returning a response through the JavaScript.
>
> Do you know if there's any way to log this? In case it's calling the function 
> but getting an error back?
>
>
> --- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
>   
>> I suspect you're calling the function before the SWF is properly loaded. 
>> Get the Flex app to call a javascript function to say when it's ready to 
>> run, only then call any functions in the SWF.
>>
>> Paul
>>
>> 
>
>
>
> 
>
> --
> 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
>
>
>
>
>   



[flexcoders] Re: JavaScript can't call Flex

2009-09-24 Thread bgamblin
I appreciate the quick response. Unfortunately, the call comes long after the 
SWF is loaded. 

This is part of my attempt to upload a file using a self signed-SSL connection 
(notoriously difficult in Flex). So this call comes after the backend has 
already loaded the file, and it's just returning a response through the 
JavaScript.

Do you know if there's any way to log this? In case it's calling the function 
but getting an error back?


--- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
>
> I suspect you're calling the function before the SWF is properly loaded. 
> Get the Flex app to call a javascript function to say when it's ready to 
> run, only then call any functions in the SWF.
> 
> Paul
> 



[flexcoders] Re: SDK 3.2 upgrade to 3.4 issue

2009-09-24 Thread djhatrick
I use this template here for my html template... under 3.3 sdk is this still 
affected?

SWFObject flex template

http://www.robgonda.com/blog/index.cfm/2008/7/15/SWF-Object-21-Flex-Template

--- In flexcoders@yahoogroups.com, Jim Cheng  wrote:
>
> If you do hang back with 3.3 _AND_ are using Flex Builder's 
> automatically generated HTML wrapper, you should be aware that there was 
> a bug discovered in the express-install template files that can expose 
> you to a cross-site-scripting (XSS) attack.  Adobe fixed this in 3.4, 
> but with that revision, also introduced the nasty bug with HTTPService 
> responders getting called twice.
> 
> If you are using the vanilla express-install templates to generate HTML 
> for you, you might want to patch your 3.3 SDK while you wait for 3.5.
> 
> Here's the relevant links:
> 
> http://www.adobe.com/support/security/bulletins/apsb09-13.html
> 
> http://kb2.adobe.com/cps/495/cpsid_49530.html
> 
> Hope this helps,
> 
> Jim Cheng
> EffectiveUI
> 
> Jake Churchill wrote:
> >  
> > 
> > Thanks for the info. I was just upgrading to stay current, no particular
> > reason so I'll hang back on 3.3 for a while until 3.5 is released.
>




[flexcoders] Re:Flex with Sharepoint

2009-09-24 Thread Merrill, Jason
Sharepoint servers have all kinds of Webservices established you can
connect to and call from Flex.  You'd have to do some hunting around on
some Sharepoint forums or documentation to find what you're specifically
looking for though.


Jason Merrill 

Bank of  America  <>   Global
Learning 
Learning & Performance Soluions

Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community

(note: this is for Bank of America employees only)





<>

Re: [flexcoders] JavaScript can't call Flex

2009-09-24 Thread Paul Andrews
bgamblin wrote:
> I've got a SWF, embedded in an object, just like the standard Flex HTML. In 
> another section of the same HTML, I have JavaScript that calls a function in 
> the SWF. However, when the call is made, everything stops. That is to say, 
> all code written after that call is ignored, and the function itself doesn't 
> execute.
>
> // In the HTML
> function JavaCall()
> {
>getFlexApp('SWFName').callFlexFunc();
> }
>
> function getFlexApp(appName) 
> {
>if (navigator.appName.indexOf ("Microsoft") !=-1)  return window[appName];
>else return document[appName]; 
> }
>
>
> // inside app creation function
> ExternalInterface.addCallback("callFlexFunc", calledFunc);
>
> // outside creation function
> public function calledFunc(event:Event = null):void
> {
>// Execution doesn't get this far
> }
>
> I should note that the object and embed that hold the SWF are set to 
> allowScriptAccess="always". It's not something I intend to ship with, but I'm 
> grasping at straws at this point.
>
> Every tutorial I've seen on the subject seems to indicate that I'm doing just 
> what I should be doing. So I have no idea what could be wrong. Any help would 
> be appreciated.
>   
I suspect you're calling the function before the SWF is properly loaded. 
Get the Flex app to call a javascript function to say when it's ready to 
run, only then call any functions in the SWF.

Paul

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



[flexcoders] JavaScript can't call Flex

2009-09-24 Thread bgamblin
I've got a SWF, embedded in an object, just like the standard Flex HTML. In 
another section of the same HTML, I have JavaScript that calls a function in 
the SWF. However, when the call is made, everything stops. That is to say, all 
code written after that call is ignored, and the function itself doesn't 
execute.

// In the HTML
function JavaCall()
{
   getFlexApp('SWFName').callFlexFunc();
}

function getFlexApp(appName) 
{
   if (navigator.appName.indexOf ("Microsoft") !=-1)  return window[appName];
   else return document[appName]; 
}


// inside app creation function
ExternalInterface.addCallback("callFlexFunc", calledFunc);

// outside creation function
public function calledFunc(event:Event = null):void
{
   // Execution doesn't get this far
}

I should note that the object and embed that hold the SWF are set to 
allowScriptAccess="always". It's not something I intend to ship with, but I'm 
grasping at straws at this point.

Every tutorial I've seen on the subject seems to indicate that I'm doing just 
what I should be doing. So I have no idea what could be wrong. Any help would 
be appreciated.

-Brand



RE: [flexcoders] e4x Filtering Success

2009-09-24 Thread Jim Hayes
the & needs to be the correct xml entity, I believe.

try using && in your mxml rather than &&

It's trying to tell you that, but it took me a few head scratches to work it 
out, I must admit.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of AJC2357
Sent: Thu 9/24/2009 12:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] e4x Filtering Success
 
(partially...)

I was able to filter through e4x via mx:XML and the dataProvider as follows...




How can I add an additional filter argument from here?  Using the && technique 
gave me error that "entity name must immediately follow &"

I want to filter something like: region = Asia AND GDP/capita = 1  

Thanks!



__
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] scrollRect ???

2009-09-24 Thread Alex Harui
I'm pretty sure scrollrects are always positioned at 0,0.  It essentially 
creates a mask of a certain size, positions it at 0,0, then only shows the 
pixels that would otherwise be displayed at x,y at 0,0

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Wednesday, September 23, 2009 10:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] scrollRect ???



Wondering if anyone knows how to get the difference between the scrollRect x 
position relative to the components edges?

I am building a pancontrol, similar to the ones found Google Maps or Yahoo 
Maps, for quick navigation.

In order to setup my pancontrol I need to find out the following given this 
code:





I need to find the distance or gap between the vis.scrollRect x&y position 
relative to the vis x&y position. My application width & height are 600 x 600. 
Vis width and height are 3000 x 900 so they extend off screen. I am using the 
scrollRect to limit what is viewable. But in order build my pancontrol I need 
to find the diff between the X & Y of the scrollRect in relation to the X&Y of 
the Vis. So how far off left, right, bottom, and top of the visible area does 
Vis extend. I need those numbers in pixels.

TIA, J



[flexcoders] Dropdown won't show (combobox, Menus)

2009-09-24 Thread Michelle's Transition
Hi Everyone,
I have a problem that's getting on my nerve just a bit. I'm working on a EMR 
app and would like to display a PDF file in my Flex app. I'm using the HTML 
component to display it which works good so far, but my current version of the 
screen is using a PopUpMenuButton to allow selection of a PDF file. My issue is 
that once a selection is made and the PDF is loaded, if I try and select a 
option from the menu again, the dropdown won't display (or its getting covered 
up my the HTML control). I have 3 versions of this form and each have a simular 
problem. THe first version follows:
http://www.adobe.com/2006/mxml"; 
layout="absolute" resize="resizeWindowContents()">


  



   
   
   



  
  
  




Note: Scripts not shown
In the version above when the form first loads (without a PDF file) the 
Dropdown on the combobox is visable. Once I select a option and a PDF is loaded 
the dropdown no longer displays in full, meaning it appears that the dropdown 
gets trapped inside the ApplicationControlBar.

The last version follows:
http://www.adobe.com/2006/mxml"; 
layout="absolute">








Question, How do I keep the dropdown on top of all other control on the form? 
Thanks for any help.
Michael

 



[flexcoders] How can I view internet traffic for an Air App?

2009-09-24 Thread luvfotography
To view internet traffic while using a Flex app, I just use Safari and go to 
the menu bar and go to Window/Activity.

Is there an equivalent tool to see internet traffic to and from an Air app???

(while not in Debug mode)
thanks,




[flexcoders] AdvancedDataGrid Groups and leafs

2009-09-24 Thread Ivan B
I'd like to display items in AdvancedDataGrid that at root level contain 
both grouped items and leafs (think file system).

Is this possible?

Regards


[flexcoders] Re: How to stop a button click from changing focus

2009-09-24 Thread reflexactions
I have that set already and it seems to have no impact on this.

I think thats becuase the SystemManager is capturing the MouseDown at 
SystemManager level so it sees the mouse down event which is not really 
effected by mouseFocusEnabled setting on the button. 

Once it sees the mouse down it runs the activate/deactivate code regardless of 
any focus enabled prop.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> mouseFocusEnabled=false
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of reflexactions
> Sent: Thursday, September 24, 2009 8:47 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: How to stop a button click from changing focus
> 
> 
> 
> Yes I want to be able to click in the main form because that is where the 
> button is, this is why using modal or disabling the main app won't work.
> 
> If it is easier to understand think of a toolbar that lives in the main form 
> with several non-modal popup windows. Clicking the toolbar will do something 
> to the active popup.
> 
> So when you click a button in the toolbar I dont want it to remove focus from 
> the active popup, becuase otherwise by the time the button's click fires 
> focus has been moved to the main app.
> 
> So far a hack that works is to have my own mouseDown handler that runs ahead 
> of the SystemManager and stops the event propagating if the target is my 
> button but I am not currently sure of the consequences of this.
> 
> --- In flexcoders@yahoogroups.com, Tom 
> McNeer  wrote:
> >
> > First question would be: do you *want* them to be able to click in the main
> > form?
> >
> > If not, you could simply set the "modal" property of the popup to "true"
> > when you create it.
> >
> >
> >
> >
> > --
> > Thanks,
> >
> > Tom
> >
> > Tom McNeer
> > MediumCool
> > http://www.mediumcool.com
> > 1735 Johnson Road NE
> > Atlanta, GA 30306
> > 404.589.0560
> >
>




RE: [flexcoders] Re: How to stop a button click from changing focus

2009-09-24 Thread Alex Harui
mouseFocusEnabled=false

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of reflexactions
Sent: Thursday, September 24, 2009 8:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to stop a button click from changing focus



Yes I want to be able to click in the main form because that is where the 
button is, this is why using modal or disabling the main app won't work.

If it is easier to understand think of a toolbar that lives in the main form 
with several non-modal popup windows. Clicking the toolbar will do something to 
the active popup.

So when you click a button in the toolbar I dont want it to remove focus from 
the active popup, becuase otherwise by the time the button's click fires focus 
has been moved to the main app.

So far a hack that works is to have my own mouseDown handler that runs ahead of 
the SystemManager and stops the event propagating if the target is my button 
but I am not currently sure of the consequences of this.

--- In flexcoders@yahoogroups.com, Tom 
McNeer  wrote:
>
> First question would be: do you *want* them to be able to click in the main
> form?
>
> If not, you could simply set the "modal" property of the popup to "true"
> when you create it.
>
>
>
>
> --
> Thanks,
>
> Tom
>
> Tom McNeer
> MediumCool
> http://www.mediumcool.com
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560
>



[flexcoders] How to make the effect smooth

2009-09-24 Thread ilikeflex
Hi

I am using the below sample to increase the width and height but i want that 
the text should also transit smoothly. 

Any pointers???




http://www.adobe.com/2006/mxml";>







 



















Thanks
ilikeflex



[flexcoders] Re: How to stop a button click from changing focus

2009-09-24 Thread reflexactions
Yes I want to be able to click in the main form because that is where the 
button is, this is why using modal or disabling the main app won't work.

If it is easier to understand think of a toolbar that lives in the main form 
with several non-modal popup windows. Clicking the toolbar will do something to 
the active popup.

So when you click a button in the toolbar I dont want it to remove focus from 
the active popup, becuase otherwise by the time the button's click fires focus 
has been moved to the main app.

So far a hack that works is to have my own mouseDown handler that runs ahead of 
the SystemManager and stops the event propagating if the target is my button 
but I am not currently sure of the consequences of this.


--- In flexcoders@yahoogroups.com, Tom McNeer  wrote:
>
> First question would be: do you *want* them to be able to click in the main
> form?
> 
> If not, you could simply set the "modal" property of the popup to "true"
> when you create it.
> 
> 
> 
> 
> -- 
> Thanks,
> 
> Tom
> 
> Tom McNeer
> MediumCool
> http://www.mediumcool.com
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560
>




Re: [flexcoders] Re: How to stop a button click from changing focus

2009-09-24 Thread Tom McNeer
First question would be: do you *want* them to be able to click in the main
form?

If not, you could simply set the "modal" property of the popup to "true"
when you create it.




-- 
Thanks,

Tom

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


[flexcoders] Re: Frame around image

2009-09-24 Thread reygeek
Just put it in a Box (or HBox or VBox) or a canvas or any other container and 
style it.

--- In flexcoders@yahoogroups.com, "Christophe"  
wrote:
>
> Hello, 
> 
> How to make a frame around an mx:image ? 
> 
> Thank you,
> Christophe,
>




RE: [flexcoders] Re: How to stop a button click from changing focus

2009-09-24 Thread Jake Churchill
Look into the PopupManager.createPopup method

 

http://livedocs.adobe.com/flex/3/langref/mx/managers/PopUpManager.html 

 

There is a modal attribute which is false by default.  I believe if you set
that to true, you'll get your desired result.

 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
  http://www.cfwebtools.com
402-408-3733 x103

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: Thursday, September 24, 2009 9:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to stop a button click from changing focus

 

  

Disable the application?

Application.application.enabled = false;

--- In flexcoders@yahoogroups.com  ,
"reflexactions"  wrote:
>
> If I have a popup window which has focus and I then click a button that is
in the application main form the SystemManager's mouseDown handler
automatically activates the main app and deactivates the popup.
> 
> How can I stop that from happening.
>



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.112/2392 - Release Date: 09/24/09
05:52:00



[flexcoders] Receiving AIR LocalConnection Slows App

2009-09-24 Thread michaelisraelcaplan
Hi,

I'm working through a really strange issue with my Flex 4 AIR app.  I've lost 
days of sleep, hair, and numerous brain cells trying to get to the source of 
the issue with no luck.  The scenario is as follows:

 - AIR app with initialized receiving and sending localConnection objects.

 - Browser with an initialized receiving and sending localConnection objects.

 - The AIR app receiving localConnection object is triggered by the browser, 
resulting in a new instance of a spark window.

 - Form elements in the window (DropDownList in particular) become _slow_.  For 
example, to open up the dropDownList I need to click and hold for 3-5 seconds.


The reason I believe that this is a issue with the AIR receiving 
localConnection is if I open a new instance of the spark window from the AIR 
app directly it works fine.  As soon as I open a new instance from the 
receiving localConnection method, that instance slows.  Also, any future 
instances opened (from the AIR app directly) are also slow until I restart the 
application.

I'm looking for some tips on how to solve this issue.  Or, if you have ideas 
how I can better troubleshoot this, that would be great too.

Thanks,

Mike



[flexcoders] Frame around image

2009-09-24 Thread Christophe
Hello, 

How to make a frame around an mx:image ? 

Thank you,
Christophe, 



[flexcoders] Flex with Sharepoint

2009-09-24 Thread Netaman
Does anyone have a better way of integrating Flex with Sharepoint then with a 
ColdFusion remote call to a C# app;

C# code here 

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Net;
using System.Text;

namespace pathBugLibrary1
{
public class pathBug1
{
public String getURLData(string urlName,string username, string 
password)
{
CookieContainer Cookies = new CookieContainer();

WebRequest request = WebRequest.Create(urlName);
request.Credentials = new NetworkCredential(username, password);
request.Method = "GET";

WebResponse response = request.GetResponse();
//string responseFromServer = 
(((HttpWebResponse)response).StatusDescription);
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
reader.Close();
response.Close();
return (responseFromServer);
}
}
}

I am doing a screen scrape from Sharepoint in ColdFusion and returning all the 
pertenient data back to Flex for display and user interaction.

ColdFusion 8 code here for .Net 

http://serveraddress/PATH/webpagename","username","password";)>  

then you can parse foo for specifics, and return any data you need back to flex

I am looking for a better way to use the sharepoint data with a flex frontend, 
the code above works, just alot of web data parsing on my end

Randy


 




[flexcoders] Re: How to stop a button click from changing focus

2009-09-24 Thread valdhor
Disable the application?

Application.application.enabled = false;


--- In flexcoders@yahoogroups.com, "reflexactions"  wrote:
>
> If I have a popup window which has focus and I then click a button that is in 
> the application main form the SystemManager's mouseDown handler automatically 
> activates the main app and deactivates the popup.
> 
> How can I stop that from happening.
>




[flexcoders] How to stop a button click from changing focus

2009-09-24 Thread reflexactions
If I have a popup window which has focus and I then click a button that is in 
the application main form the SystemManager's mouseDown handler automatically 
activates the main app and deactivates the popup.

How can I stop that from happening.



Re: [flexcoders] Help with comboBox selectedItem

2009-09-24 Thread abhijit chore
selected Item always give you the object.You have to typecast it into String
or use Selected Label.

Kind Regards
Abhijit


On Thu, Sep 24, 2009 at 8:45 AM, funandlearning3
wrote:

>
>
> Hi,
>
> I have a combobox which is populated with query on backend. when I am
> trying to display a alert box with the selectedItem, I get the following
> error:
>
> Multiple markers at this line:Implicit coercion of a value with static type
> object to a possibly unrelated type string:
>
> Here is my code snippet
>
> private function checkAdvisor(event:Event):void{
>
> Alert.show(populateAdvisors.selectedItem);
> }
>
> MXML code:
>
> 
>  change="checkAdvisor(event)"/>
> 
>
> Can anyone tell me where the mistake is?
>
> Thanks
>
>  
>



-- 
I may be miles away... but I am just a mail away so keep mailing...

Cheers,
Abhijit


[flexcoders] Help with comboBox selectedItem

2009-09-24 Thread funandlearning3
Hi,

I have a combobox which is populated with query on backend. when I am trying to 
display a alert box with the selectedItem, I get the following error:

Multiple markers at this line:Implicit coercion of a value with static type 
object  to a possibly unrelated type string:

Here is my code snippet

  private function checkAdvisor(event:Event):void{

Alert.show(populateAdvisors.selectedItem);
}
   
 MXML code:





Can anyone tell me where the mistake is?

Thanks



[flexcoders] Re: Potomac - Flex Modularity Framework (like OSGi / Eclipse RCP)

2009-09-24 Thread schtoo2
Yes.  Theres an example application with source (2 modules and one application) 
included with the download.

-Chris

--- In flexcoders@yahoogroups.com, primo411  wrote:
>
> Is there a sample application with sources anywhere ?
> 
> Regards
> 
> 2009/9/23 schtoo2 
> 
> >
> >
> > Hi flexcoders,
> >
> > I wanted to drop by and announce our new Flex framework. I've seen a few
> > messages here over time where people are looking for a framework like the
> > Eclipse RCP that includes a deep modular approach. We've just released on
> > thats just for those applications.
> >
> > Potomac brings OSGI-like modularity to Flex.
> >
> > Check it out:
> >
> > http://www.potomacframework.org
> >
> > thanks,
> > -Chris
> >
> > p.s. I know - not another Flex framework. But this one is different...
> > really... I promise :)
> >
> >  
> >
>




Re: [flexcoders] Potomac - Flex Modularity Framework (like OSGi / Eclipse RCP)

2009-09-24 Thread Pedro Sena
Interesting,

I was looking for something like that for a while.

@primo411:

Take a look at
http://www.potomacframework.org/documentation/getting-started/

Regards

On Thu, Sep 24, 2009 at 8:18 AM, primo411  wrote:

>
>
> Is there a sample application with sources anywhere ?
>
> Regards
>
> 2009/9/23 schtoo2 
>
>>
>>
>> Hi flexcoders,
>>
>> I wanted to drop by and announce our new Flex framework. I've seen a few
>> messages here over time where people are looking for a framework like the
>> Eclipse RCP that includes a deep modular approach. We've just released on
>> thats just for those applications.
>>
>> Potomac brings OSGI-like modularity to Flex.
>>
>> Check it out:
>>
>> http://www.potomacframework.org
>>
>> thanks,
>> -Chris
>>
>> p.s. I know - not another Flex framework. But this one is different...
>> really... I promise :)
>>
>>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


Re: [flexcoders] Logic diagram library for Flex

2009-09-24 Thread primo411
Maybe Degrafa ( http://www.degrafa.org/ ) ?

Their "Process Map" example seems very similar to what you are looking for:
http://www.finflex.fi/projects/degrafaProcessMap/

Regards,
Julien Nicoulaud

2009/9/19 twcrone70 

>
>
> Anyone know of any Flex libraries for creating logic diagrams or the like?
> Basically something that facilitates dragging 'items' on to a canvas and
> connecting with logical operations to create 'flows' with branching.
>
> Thanks,
>
> - Todd
>
>  
>


Re: [flexcoders] Potomac - Flex Modularity Framework (like OSGi / Eclipse RCP)

2009-09-24 Thread primo411
Is there a sample application with sources anywhere ?

Regards

2009/9/23 schtoo2 

>
>
> Hi flexcoders,
>
> I wanted to drop by and announce our new Flex framework. I've seen a few
> messages here over time where people are looking for a framework like the
> Eclipse RCP that includes a deep modular approach. We've just released on
> thats just for those applications.
>
> Potomac brings OSGI-like modularity to Flex.
>
> Check it out:
>
> http://www.potomacframework.org
>
> thanks,
> -Chris
>
> p.s. I know - not another Flex framework. But this one is different...
> really... I promise :)
>
>  
>