[flexcoders] playerProductInstall.swf file

2007-04-26 Thread Jim Pickering
I just built a flex-based registration form for my usergroup site.
People are telling me that it makes them download FlashPlayer 9 when
they already have it. Is that normal behavior? If I remove
playerProductInstall.swf, then my app simply doesn't load, so there
doesn't seem to be an alternative. Yet other flex apps seems to run
fine without requiring a download. Can anyone offer some info on this
topic? Is there something I can do to get my app to work with the FP 9
that is already loaded on a user's machine?

Thanks,

Jim Pickering
KCDevCore Manager



[flexcoders] Customizing datatips

2007-04-26 Thread Jaganathan.K
Is it possible to remove only the datatips in the chart, keeping the 
datapoints visible?

Like in google finance


Any help would be greatly appreciated.

Thanks

Regards
JAga



[flexcoders] Re: yahoomaps POI marker click event, htmltext asfunction

2007-04-26 Thread anupam_111181
Hi All,
Yeah its pretty intresting to attach ur custom event to the yahoo map
componenet. I will definately like to try and digg in to this.
I will post it here or on my blog at

http://digitallyinsane.wordpress.com

Thanks Michael for inspiring me to work on this...

Cheers!
Anupam


--- In flexcoders@yahoogroups.com, Michael Wills [EMAIL PROTECTED] wrote:



 One more tidbit, using the XPanel logger, logging this from the map, 
 getting it's path (_root.mapClip in this case) I can now call functions 
 from the map itself from within the marker.
 
 However I am not yet able to register a new event. I may just hijack
one 
 of the current ones and pass a new fake object that will let my Flex
app 
 know it's my custom call.
 
 So, any takers on registering a new event with the yahoomap
component? :-)
 
 If that works, then it's a hack, but a usable hack. Eventually true AS3 
 map components will be available so this kind of thing won't be as 
 necessary... keeping fingers crossed. :-)
 
 Thanks for the inspiration all,
 
 Michael
 
 Michael Wills wrote:
  Yeah the POI marker click event is fine and quite useful. I think
it was 
  after reading your post Anupam. :-) However after that, I can't
trigger 
  anything in the Cairngorm app. I even tried to make a function
with the 
  original as2map.fla that would simply trigger a new POIMarkerClick
event 
  with data passed from the asfunction call within the marker. That
hasn't 
  worked yet either.
 
  I also tried to use FlashInterface which, by itself, should work. 
  However it blocks the communication of the YahooMap communication
kit as is.
 
  Basically, similar to Anupam's change to the code, I'd like to add an 
  htmlTextClick function which can be can be called via asfunction. 
  Something like:
 
  function onHTMLLinkClick(ev:Object) {
  var rtnObj:String = new String();
  EIBuffer.addCall({method:swfDomId + .onHTMLLinkClick + id,
data:rtnObj});
  }
 
  and where it sets up listeners in the mapClip object
 
  myMap.addEventListener('onHTMLLinkClick', onHTMLLinkClick);
 
  and then in the description of a POI Marker have
 
  description:a href=\'asfunction:onHTMLLinkClick,someString\'Click 
  me.../a
 
  or would this have to be:
 
  description:a 
  href=\'asfunction:_parent.onHTMLLinkClick,someString\'Click
me.../a
 
  and in the Flex project
 
  mapEventDispather.addEventListener('onHTMLLinkClick',
htmlLinkClickHandler);
 
  So the link would trigger the new event which would call the
function in 
  the loaded as2map.swf which would then trigger the new event which
would 
  be picked up by Flex, etc.
 
  So is this possible? Since this function isn't in the original
API, is 
  it possible to add it this way? It looks like the .addCall would
add it 
  to the methodQueue array in the ExternalInterfaceBuffer.as file.
Here's 
  to hoping...
 
  And Benoit, thanks for the tip about adding the setMapSize snippet in 
  the MapController.as. It sized fine when first loading but that
could be 
  VERY useful when dynamically resizing.
 
  Thank you to you both. I'll give these a shot and see if there is any 
  progress with it.
 
  Michael
 
  Benoit Hediard wrote:

  Are you sure you can catch events generated by an href link in the 
  description htmlText?
 
  I think we've tried to play around with the POIMarkerClick event.
 
  But it was only dispatched when you first click on the marker to
open it.
 
  Further click on a link in the htmlText description was not
generating 
  any POIMarkerClick events, so we could not catch anything.
 
  But may be, we did something wrong, we have to check it out again…
 
  Benoit Hediard
 
  #affinitiz.com
 
  *De :* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
  *De la part de* anupam_81
  *Envoyé :* mercredi 25 avril 2007 09:27
  *À :* flexcoders@yahoogroups.com
  *Objet :* [flexcoders] Re: yahoomaps POI marker click event,
htmltext 
  asfunction
 
  Hi michael,
  I have done this and its pretty easy,
  You can call any flex event on the click of the marker click
  there is one event called onPOIMarkerClick in the Yahoo map
component.
  You should have the latest code because this event handler was not
  there in the previous versions.
 
  I have written a blog entry on this...
  Check it out..
 
http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/

 
http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/
 
  Cheeers!
  Anupam
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, Michael Wills michael@
wrote:
  
  For clarification, the idea is simply to allow a marker to be

  clicked to
  
  open it, but then trigger an event/call a function in the
cairngorm app
  when clicking on a link in the description.
 
  Thanks,
 
  Michael
 
  Michael Wills wrote:

  Hello all,
 
  Just wondering if it's possible to use asfunction to call a
function
  in a cairngorm app from the htmltext in the 

[flexcoders] Hibernate MiddlegenIDE Plugin Install

2007-04-26 Thread Kevin
Has anyone used 'middlegenide' with Ecplise to generate Hibernate  
Mapping files?

http://sourceforge.net/project/showfiles.php?group_id=36044

Seems like this would be an easy way to map an existing database to  
Hibernate for use in FDS.  Seems better than Hibernate-tools which  
doesn't support reverse engineering of foreign keys.

However, I can't for the life of me figure out how to install this  
plug-in!  I have never installed a plug-in in Eclipse without using  
the Find  Install feature.

Anyone know how to install this?

- Kevin


[flexcoders] wsdl path error

2007-04-26 Thread slash_n_rose
Hi,
When I access data from server using webservice I have to specify the
path of wsdl. There is a problem with that
For example If I give the path as
http://www.abc.com/service.asmx?WSDL, I cant access the html page
containing that swf movie with out using www infront of the url. If
I access the html page just like http://abc.com/test.html its throwing
an error.

The vice versa is also making problem..

If the service is in the same domain I can give relative path to avoid
this problem, but how can we solve this problem if the service is in a
different domain?

Please help
Jerry



[flexcoders] Re: submenu can't show completely

2007-04-26 Thread kkinaru
Thankyou all... I have a solution:

Sadly, Menu implementation controls menu-out-of-bounds, with the
code posted upper:

from mx.controls.Menu.show(... , ...)
[CODE]
// Adjust for menus that extend out of bounds
if (this != getRootMenu())
{
var shift:Number = x + width - screen.width;
if (shift  0)
x = Math.max(x - shift, 0);
}

[/CODE]

As you can see, This piece of code can only control the right edge of
the screen... so it can result useless.

Thanks to you, now, I use onShow event and callLater to play a custom
animation.

Here is my code:

[CODE]
//this function is called in the eventListener(onShow)
private function processAfter(event: MenuEvent): void {
//root menu is an exception in my schema.
if (event.menu.parentMenu != null){
var current_menu: Menu = event.menu;
var menu_height: int = current_menu.height;
var menu_width: int = current_menu.width;

/*system execute the show function before the menu can be in
its correct place, I use these two lines to avoid menu can be
visualized (perhaps, it is not necessary) */
current_menu.height = 0;
current_menu.width = 0;
this.callLater(this.moveSubmenu, [current_menu, menu_height,
menu_width]);
}
}
/***/

private function moveSubmenu(current_menu: Menu, menu_height: int,
menu_width: int): void {
var bottom_edge_menu: int = this.rootMenu.y+this.rootMenu.height;
var submenu_edge: int = current_menu.y + menu_height;
var pixels_upper: int = 0;

if (limite_inferior_menu  limite_menu) {
pixels_upper= (submenu_edge - bottom_edge_menu);
}

/*restoring menu height and width*/
current_menu.height = menu_height;
current_menu.width = menu_width;

var animate_menu: Sequence = new Sequence();
/* here comes animation sequence creation, using pixels_upper to
move up current_menu.y position*/

animate_menu.play([current_menu]);
}

[/CODE]


I will continue looking for new solutions for this problem.

Thankyou very much for this help.


J Pablo




[flexcoders] Re: Cairngorm, is this suitable as Cairngorm event

2007-04-26 Thread bnsmeets
Nice, tnx guys. Great replies. Gonna print them out and see if i can
get it clear for myself. 



RE: [flexcoders] Customizing datatips

2007-04-26 Thread Sunil Bannur
The correct way of doing this would be to have a custom datatip renderer
and assign it to dataTipItemRenderer,

As a workaround, you could do this.

 

lineChart.setStyle(dataTipRenderer,UIComponent); or for that matter a
dummy programmaticskin, It would give you the same effect as google
finance.

 

-Sunil

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jaganathan.K
Sent: Thursday, April 26, 2007 11:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Customizing datatips

 

Is it possible to remove only the datatips in the chart, keeping the 
datapoints visible?

Like in google finance

Any help would be greatly appreciated.

Thanks

Regards
JAga

 



[flexcoders] Open source Flex (incl. compiler)

2007-04-26 Thread Tom Chiverton
(http://labs.adobe.com/wiki/index.php/Flex:Open_Source)
By the end of the year.

Wow.

That *is* a surprise !
-- 
Tom Chiverton
Helping to heterogeneously implement integrated infomediaries
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



[flexcoders] Re: OT: SVNSubclipseFlex/CF/MySQL

2007-04-26 Thread shawn.gibson
Hi Kevin, thanks very much, it sounds better now:) I'll give this a go
and see what happens. The online service looks like a good way to
start too, and then after learning the ropes I  can decide if I want
to 'bring it all home' or not.

Thanks a lot for your help, I'll get cracking on it after work...

Shawn



[flexcoders] Validating custom component - how to get error to display next to field

2007-04-26 Thread John Menke
How do i get validation errors to appear next to corresponding fields
in a component that i have on an .mxml page?

I have a custom component that contains text fields.  I can validate
the component with a custom validator but i cannot get the error to
display next to the field.  

Any suggestions?





Re: [flexcoders] wsdl path error

2007-04-26 Thread Muzak
Read up on Flash Player Security.

http://labs.adobe.com/wiki/index.php/Flex:Accessing_Data
http://livedocs.adobe.com/flex/2/docs/1950.html

regards,
Muzak

- Original Message - 
From: slash_n_rose [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, April 26, 2007 9:29 AM
Subject: [flexcoders] wsdl path error


Hi,
When I access data from server using webservice I have to specify the
path of wsdl. There is a problem with that
For example If I give the path as
http://www.abc.com/service.asmx?WSDL, I cant access the html page
containing that swf movie with out using www infront of the url. If
I access the html page just like http://abc.com/test.html its throwing
an error.

The vice versa is also making problem..

If the service is in the same domain I can give relative path to avoid
this problem, but how can we solve this problem if the service is in a
different domain?

Please help
Jerry





Re: [flexcoders] Validating custom component - how to get error to display next to field

2007-04-26 Thread Roman Protsiuk

Is Validator you use required=true?

R.

On 4/26/07, John Menke [EMAIL PROTECTED] wrote:


  How do i get validation errors to appear next to corresponding fields
in a component that i have on an .mxml page?

I have a custom component that contains text fields. I can validate
the component with a custom validator but i cannot get the error to
display next to the field.

Any suggestions?

 



Re: [flexcoders] Validating custom component - how to get error to display next to field

2007-04-26 Thread Roman Protsiuk

Hi, John.
My previous message wasn't any good. Sorry. :)
The error box is one of components rawChilds. I guess what you need to check
is UIComponents validationResultHandler() method.

validationResultHandler()method   public function
validationResultHandler(event:ValidationResultEventhttp://livedocs.adobe.com/flex/2/langref/mx/events/ValidationResultEvent.html
):void http://livedocs.adobe.com/flex/2/langref/specialTypes.html#void

Handles both the valid and invalid events from a validator assigned to this
component.

You typically handle the valid and invalid events dispatched by a validator
by assigning event listeners to the validators. If you want to handle
validation events directly in the component that is being validated, you can
override this method to handle the valid and invalid events. You typically
call super.validationResultHandler(event) in your override.
R.

On 4/26/07, Roman Protsiuk [EMAIL PROTECTED] wrote:


Is Validator you use required=true?

R.

On 4/26/07, John Menke [EMAIL PROTECTED] wrote:

   How do i get validation errors to appear next to corresponding fields
 in a component that i have on an .mxml page?

 I have a custom component that contains text fields. I can validate
 the component with a custom validator but i cannot get the error to
 display next to the field.

 Any suggestions?

  






RE: [flexcoders] One Singleton many application

2007-04-26 Thread Brian Holmes
If you have two applications that need to share the same variable, look
into creating a RSL where the singleton can exist safely and everyone
knows where to go get it. 

 

If you're using an application shell and loading modules you can create
a static class or variable to house the singleton. 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Wednesday, April 25, 2007 3:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] One Singleton many application

 

Why, this works perfectly well in flex 2.0. I don't remember if
something changed in flex 2.01 but I don't think so.

What does your getInstance() look like?

On 4/25/07, nxzone [EMAIL PROTECTED] mailto:nxzone%40yahoo.ca  wrote:
 How can i have only one Singleton if i have two applications. I want
 share the same singleton from the parent application

 Application1
 {
 var singleton:ShareThis = ShareThis.getInstance()

 function init(){
 singleton.name=test
 SWFLoader.source=application2.swf
 }

 }
 -
 Application2
 {
 var singleton:ShareThis = ShareThis.getInstance()

 function init(){
 trace(singleton.name) // give null
 }

 }






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





 



***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


[flexcoders] Mimicking the Apple Finder column view

2007-04-26 Thread Jason Wehling
I'm curious if anyone has either implemented or considered trying to  
mimic the functionality of the Apple Finder column view. This would  
be a component capable of traversing a large data set (like a file  
system), and loading the data one layer at a time. Maybe combining a  
single-column datagrid inside a repeater? Any thoughts or guidance is  
greatly appreciated. Thanks,

Jason


Re: [flexcoders] Alert Control Crashing App

2007-04-26 Thread rml__
Update your flash player version, i had the same problem in IE, it was solved 
updating the flash player.

rml

- Mensaje original 
De: Manish Jethani [EMAIL PROTECTED]
Para: flexcoders@yahoogroups.com
Enviado: miércoles, 25 de abril, 2007 5:33:04
Asunto: Re: [flexcoders] Alert Control Crashing App









  



Perhaps you can post a working example somewhere or at least a stack

trace? That'll make it easier to follow.



On 4/25/07, Troy A. Binford troy.binford@ gmail.com wrote:

 This is a little complex, but I'll try to describe what's going on to

 the best of my ability.



 1. Create a new Flex Application.

 2. Add a Canvas or whatever and give it an id.

 3. Create a new Custom Control that is a DataGrid.

 4. Make the DataGrid editable and give it a dataProvider and at least

 one column.

 5. Add itemEditEnd event.

 6. Have the listener method fire an Alert.show( test)

 7. close the Custom Control.

 8. Create a mx:Script section in the main app.

 9. create a private var (x) that is an instance of the Custom Control.

 10. Add initialize event.

 11. Have the listener assign x = new Custom Control Name()

 12. addChild(x)



 Run the program and edit a column (making itemEditEnd fire). If done

 correctly, the Alert.show() will result in a large stack dump and an

 undefined error.



 My question is: Is this my fault? What did I do wrong?







 --

 Flexcoders Mailing List

 FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt

 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. com

 Yahoo! Groups Links












  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a {
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc {
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--







__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 

Re: [flexcoders] addChild problems

2007-04-26 Thread Jason C Reynolds
Does not work just means it isn't showing up on screen - something is wrong 
with how I am adding stuff to the display list.

MainApp has the canvas object, and the content object - creates an instance of 
any class that extends my ContentTemplate class.
I don't see why canvas.addChild(contentObject) does not work.
Passing a reference of that canvas to the constructor, then 
canvasReference.addChild(anyObject) works.

So in MainApp I have something like this:

contentHolder = new Canvas();
this.addChild(contentHolder);
contentScreen = new SampleScreen(contentHolder);
// SampleScreen extends a template class that extends UIComponent

Inside SampleScreen:
question = new Text();
question.text = some text;
contentHolder.addChild(question);

All this works

But, with all these classes that are going to extend SampleScreen I really 
don't want to pass that reference to contentHolder around.
What is confusing me, is why I couldn't do this:

MainApp
contentHolder = new Canvas();
this.addChild(contentHolder);
contentScreen =  new SampleScreen();
contentHolder.addChild(contentScreen); // HERE is what I want to work, 
contentScreen extends UIComponent - so in my mind it should work (show up on 
screen).

SampleScreen
question = new Text();
question.text = some text;
this.addChild(question); // HERE is the other change from the working version. 
Since SampleScreen extends UIComponent, and above I have added it to the 
canvas' display list, why is it not showing up?


Thanks much for looking... Jason





  - Original Message - 
  From: Manish Jethani 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, April 25, 2007 4:11 PM
  Subject: Re: [flexcoders] addChild problems


  If you can show the heirarchy of your objects and which one you're
  trying to add that's failing, that'll help. Also explain what does
  not work means (do you get an error?).

  On 4/26/07, Jason C Reynolds [EMAIL PROTECTED] wrote:
  
  
   Sorry for the vauge subject... here's what I'm trying to do that does not
   work.
  
   I am creating a MainApp class instance in my mxml project file. I want to
   use this to control the basic common stuff throughout the application, and I
   have made an instance of a Canvas object that I will be using as a container
   to the constantly changing part of the screen. I made a ContentTemplate
   class that extends UIComponent (I had problems with addChild in actionscript
   before I realized if it's not pure as3 it needs to be a UIComponent to
   work). From this ContentTemplate class, I have created several classes that
   extend it and want to use addChild/removeChild to change that canvas part of
   the program.
  
   So, in MainApp I have a variable contentScreen of type ContentTemplate. Lets
   just say all ContentTemplate is doing is making a new text control. I tried
   to make this text control in the ContentTemplate, and since it is extending
   UIComponent - I thought just a this.addChild would work... Then in mainApp
   just add it to the display list of the Canvas object. This does not work.
  
   If I pass a reference to that canvas object in the constructor, then
   addChild from there it works.
  
   Hopefully I somewhat clear what I'm trying to do - and anyone have any
   suggestions why this would not work?
  
   Thanks for any response, Jason
  
  
  
   


   

[flexcoders] ArrayCollections as source for charting

2007-04-26 Thread klar1ty
I am writing a flex application that stores a dataset in an
arrayCollection called stats. Through use of the application, the
stats:ArrayCollection is updated.

One particular state of the application has 3 charts covering stats
for thisWeek, thisMonth and thisQuarter. 

Right now, I have a single chart working and want to add in the other
two. Since the base data for each chart is stored in
stats:ArrayCollection what should I use as the dataProvider for each
chart?

Since all the data is inside one ArrayCollection, should I keep a
single array collection then simply make a function for each period
and use the function as the dataProvider? If I do it this way, will
the charts update when the base arrayCollection is changed?


My original thought was to store 3 additional arrayCollection objects,
one for each period and update the correct object when the data
changes. This doesn't seem like the most elegant manner to handle the
situation.



Any advice is appreciated.





Dan Wilson



RE: [flexcoders] Re: NetConnection.Connect.Failed

2007-04-26 Thread Peter Farland
Can you give me the URL to that specific FMS example?
 
That nc.connect URL looks a little odd. Is your server name really
tutorial_hello, or did you just remove this information for the purposes
of posting to this forum? 
 
Typically, I'd expect an RTMP URL to look more like this:
rtmp://myserver:1935/myapplicaton/myroom
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of arokyzxc
Sent: Wednesday, April 25, 2007 3:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: NetConnection.Connect.Failed



I download fms example from adobe site, it works fine that sucessfully
connected FMS server.but it didn't work that i wrote my codes followed
exmaple tutorial, it always reports connect failed .I can see connects
number was increased when i run my app in admin console.
I wrote codes in Flex Builder, named HelloFms.mxml.But i wondering
whether i should write fla file,instead of mxml file ? The error
(NetConnection.Connect.Failed) does matter with this ?? how can i
establish my work environment ???
here is my client-side codes: helloFms.mxml

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute
mx:Script
![CDATA[
import flash.events.NetStatusEvent;
import flash.events.SecurityErrorEvent;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.events.Event;

var nc :NetConnection;
public function connection():void{
if (Connect_btn.label == Connect ){
nc.connect(rtmp:/tutorial_hello/room_01,test);
nc.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler);
nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, 
securityErrorHandler);
}else{
nc.close();
}

}
private function netStatusHandler(event:NetStatusEvent):void {
var status :String = event.info.code;
switch (status) {
case NetConnection.Connect.Success:
/* connectStream(); */
break;
case NetStream.Play.StreamNotFound:
result.text = Stream not found;
break;
}
}

private function
securityErrorHandler(event:SecurityErrorEvent):void {
result.text = securityErrorHandler:  + event;
}

]]
/mx:Script

mx:Button x=331 y=91 label=Connect id=Connect_btn
click=connection()/
mx:TextArea x=118 y=164 id=result/

/mx:Application

here is server-side codes: main.asc
application.onConnect = function(p_client,text) {
application.acceptConnection(p_client);
//text handler
}
Any help would be appreciate .



 


[flexcoders] Slider with mutlitple highlighted areas

2007-04-26 Thread geoffreymina
I am trying to make an HSlider with 6 thumbs.  I would like highlights 
between 1-2,  3-4, and 5-6 with no highlight between 2-3 and 4-5.  Is 
this possible with styles or do I need to start building my own custom 
component?

Thanks,
Geoff



[flexcoders] Re: PopUpManager Memory Leak 10 children???

2007-04-26 Thread geoffreymina
The question I have is why doesn't the garbage collector reclaim _any_ 
of the memory?  It is probably more of a bug with the flash runtime as 
opposed to flex.  I am not going to file a bug report as this is 
something that will most likely never happen in a real world 
situation.  

Thanks,
geoff



[flexcoders] Re: SWF not loading on SSL web page

2007-04-26 Thread marc_watts1
Thanks that was it exactly.
Any idea why it behaves like that?

--- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote:

 
 Response Headers maybe... Make sure the web server that serves the 
SWF
 does not create a CacheControl=No-cache header. See other posts
 regarding SSL... Good luck. Iko
 
 
 --- In flexcoders@yahoogroups.com, marc_watts1 marc_watts1@
 wrote:
 
  I am trying to load a SWF file on an SSL secured page.
  The SWF will not load if the page is called via https://
  The SWF will load if the page is called via http://
  This happens if the SWF is calling web services or is simple and 
just
  draws a square.
  My SSL certificate is valid and works fine.
  To keep it simple I was using the object tag below for loading the
  SWF. I have tried just about every combination of https and http I
  can think of to get any SWF to load. Anybody have any ideas?
 
 
  object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354
  
codebase=https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/s
  wflash.cab#version=8,0,0,0 width=550 height=400 id=untitled-
1
  align=middle
  param name=allowScriptAccess value=sameDomain /
  param name=movie value=untitled-1.swf /
  param name=quality value=high /
  param name=bgcolor value=#0 /
  embed src=https://server01/ssl/untitled-1.swf; quality=high
  bgcolor=#ff width=550 height=400 name=untitled-1
  align=middle allowScriptAccess=sameDomain type=application/x-
  shockwave-flash
  pluginspage=https://www.macromedia.com/go/getflashplayer; /
  /object
 





[flexcoders] Re: Inline MXML event handlers - weak reference?

2007-04-26 Thread geoffreymina
Thanks for the info.  I too think this should end up somewhere in the 
docs... it is very useful.

Thanks,
Geoff



Re: [flexcoders] Re: yahoomaps POI marker click event, htmltext asfunction

2007-04-26 Thread Michael Wills
Yeah the POI marker click event is fine and quite useful. I think it was 
after reading your post Anupam. :-) However after that, I can't trigger 
anything in the Cairngorm app. I even tried to make a function with the 
original as2map.fla that would simply trigger a new POIMarkerClick event 
with data passed from the asfunction call within the marker. That hasn't 
worked yet either.


I also tried to use FlashInterface which, by itself, should work. 
However it blocks the communication of the YahooMap communication kit as is.


Basically, similar to Anupam's change to the code, I'd like to add an 
htmlTextClick function which can be can be called via asfunction. 
Something like:


function onHTMLLinkClick(ev:Object) {
   var rtnObj:String = new String();
   EIBuffer.addCall({method:swfDomId + .onHTMLLinkClick + id, 
data:rtnObj});

}

and where it sets up listeners in the mapClip object

   myMap.addEventListener('onHTMLLinkClick', onHTMLLinkClick);

and then in the description of a POI Marker have

description:a href=\'asfunction:onHTMLLinkClick,someString\'Click 
me.../a


or would this have to be:

description:a 
href=\'asfunction:_parent.onHTMLLinkClick,someString\'Click me.../a


and in the Flex project

mapEventDispather.addEventListener('onHTMLLinkClick', htmlLinkClickHandler);

So the link would trigger the new event which would call the function in 
the loaded as2map.swf which would then trigger the new event which would 
be picked up by Flex, etc.


So is this possible? Since this function isn't in the original API, is 
it possible to add it this way? It looks like the .addCall would add it 
to the methodQueue array in the ExternalInterfaceBuffer.as file. Here's 
to hoping...


And Benoit, thanks for the tip about adding the setMapSize snippet in 
the MapController.as. It sized fine when first loading but that could be 
VERY useful when dynamically resizing.


Thank you to you both. I'll give these a shot and see if there is any 
progress with it.


Michael

Benoit Hediard wrote:


Are you sure you can catch events generated by an href link in the 
description htmlText?


 


I think we've tried to play around with the POIMarkerClick event.

But it was only dispatched when you first click on the marker to open it.

Further click on a link in the htmlText description was not generating 
any POIMarkerClick events, so we could not catch anything.


 


But may be, we did something wrong, we have to check it out again...

 


Benoit Hediard

#affinitiz.com

 

*De :* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*De la part de* anupam_81

*Envoyé :* mercredi 25 avril 2007 09:27
*À :* flexcoders@yahoogroups.com
*Objet :* [flexcoders] Re: yahoomaps POI marker click event, htmltext 
asfunction


 


Hi michael,
I have done this and its pretty easy,
You can call any flex event on the click of the marker click
there is one event called onPOIMarkerClick in the Yahoo map component.
You should have the latest code because this event handler was not
there in the previous versions.

I have written a blog entry on this...
Check it out..
http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/ 
http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/


Cheeers!
Anupam
--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Michael Wills [EMAIL PROTECTED] wrote:


 For clarification, the idea is simply to allow a marker to be
clicked to
 open it, but then trigger an event/call a function in the cairngorm app
 when clicking on a link in the description.

 Thanks,

 Michael

 Michael Wills wrote:
 
  Hello all,
 
  Just wondering if it's possible to use asfunction to call a function
  in a cairngorm app from the htmltext in the description of a POI
  marker within a Yahoomap in a Flex 2 app without making modification
  to the as2map.fla file.
 
  It's a long shot, but I was just wondering if it's been done, and
  eagerly anticipating a true AS3 map component.
 
  The new AS3 event: protocol of course isn't recognized by the Flash
  8 interpreter and so it's not available.
 
  So I was hoping it would be something like:
 
  markerDesction = a asfunction:doNotKnowWhatGoesHere.myFunction/
 
  Is that a possibility at all?
 
  Thanks,
 
  Michael
 
 


 


[flexcoders] RE: Updating progress bar in datagrid when uploading files

2007-04-26 Thread Mark Ingram
Hi, I only joined yesterday, not sure if the email got received or not.

 

I am basically just trying to hook up the ProgressBar.source property
with a property stored on the data provider
(m_uploadFileList[i].FileReference). 

 

Thanks,

Mark

 

 



From: Mark Ingram 
Sent: 25 April 2007 13:43
To: FlexCoders (flexcoders@yahoogroups.com)
Subject: Updating progress bar in datagrid when uploading files

 

Hi, I have a standard data grid with a progress bar in the 3rd column:

 

mx:DataGrid id=filesDataGrid
dataProvider={m_uploadFileList} editable=false

mx:columns

mx:DataGridColumn
headerText=File Name dataField=label /

mx:DataGridColumn
headerText=Size dataField=size labelFunction=displaySizeLabel /

mx:DataGridColumn
headerText=Upload Progress sortable=false

 
mx:itemRenderer

 
mx:Component

 
mx:VBox horizontalAlign=center

 
mx:ProgressBar id=progressBar labelPlacement=center label=%3%%
mode=manual width=80% height=100% /

 
/mx:VBox

 
/mx:Component

 
/mx:itemRenderer

/mx:DataGridColumn

/mx:columns

/mx:DataGrid

 

m_uploadFileList is an array collection of FileReference objects. How
can I hook up the progress of each file upload (done via FileReference)
to the progress bar on each line? I understand each file must be done in
turn.

 

Any pointers on this will be gratefully received!

 

Thanks,

 

Mark

 

 

 



[flexcoders] XML and Button

2007-04-26 Thread Dur-E-Wahab Khan
Hi,
   
  How are all of you. Well I am new to Flex. But I have started building simple 
applications. One of the top most problem I am facing is working with XML and 
Button. Can  you please assist me in this. I am explaining my problem:
   
  I have an external XML file like this:
  Menu
  button
 idnt0/idnt
 labelGeneral Health/label
 textGeneral Health pages is currently under construction/text
  /button
  button
 idnt1/idnt
 labelMental Health/label
 textMental Health pages is currently under construction/text
  /button
  /Menu
   
  Now I want to generate Buttons Dynamically from this XML. And the second 
thing which is the most problematic is that how I code it so that when I press 
the Button labled General Health, it will show the same text as in the XML 
tag coresponding to tag labelGeneral Health/label ?
  I badly need this. I am realy confused on this. Kindly help me.
   
  Regards
  ..::DeX

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.

[flexcoders] Error #1034: Type Coercion failed

2007-04-26 Thread rdeijkers
I'm trying to fill a Tile with the contents of an xml file. This is my
mxml code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute width=100% height=100% backgroundAlpha=0
applicationComplete=srv.send(); horizontalScrollPolicy=off
verticalScrollPolicy=off
mx:Script
![CDATA[
private function xmlLoaded():void {
categorienAC = srv.lastResult.categorien.categorie;
}   
]]
/mx:Script

mx:Model id=categorienAC/
mx:HTTPService id=srv url=categorien.xml useProxy=false
result=xmlLoaded(); /
mx:Tile label=categorienTile width=945 height=100%
backgroundColor=#FF
mx:Repeater id=list dataProvider={categorienAC}
mx:VBox backgroundColor=#00
mx:Image source={list.currentItem.foto} 
width=75 height=70/
mx:Label text={list.currentItem.naam}/
/mx:VBox
/mx:Repeater
/mx:Tile
/mx:Application

My XML looks like this:

categorien
categorie id=19
naam/naam
omschrijvingtest/omschrijving
foto/foto
/categoriecategorie id=1
naamArizona/naam

omschrijvingtest/omschrijving
foto/foto
/categoriecategorie id=36
naamARIZONA / GREY/naam
omschrijving/omschrijving
foto/foto
/categoriecategorie id=20

naamAtrium/naam
omschrijvingtest/omschrijving
foto/foto
/categoriecategorie id=59
naamAvant Garde/naam
omschrijvingtest/omschrijving
foto/foto

/categorie
/categorien

I'm receiving the following error when I try to execute my code :

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.collections::[EMAIL PROTECTED] to mx.utils.ObjectProxy.
at categorie/categorie::xmlLoaded()[Z:\project\categorie.mxml:6]

Anybody an idea what's going wrong ?

Anyhelp would be greatly appreciated.

Thanks

Regards

Ries



RE: [flexcoders] ArrayCollections as source for charting

2007-04-26 Thread Sunil Bannur
Answer to First question: Just assign the same arraycollection as
dataprovider to all charts

Answer to Second question: The charts will update, when the base
arraycollection is changed.

 

-Sunil

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of klar1ty
Sent: Wednesday, April 25, 2007 11:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollections as source for charting

 

I am writing a flex application that stores a dataset in an
arrayCollection called stats. Through use of the application, the
stats:ArrayCollection is updated.

One particular state of the application has 3 charts covering stats
for thisWeek, thisMonth and thisQuarter. 

Right now, I have a single chart working and want to add in the other
two. Since the base data for each chart is stored in
stats:ArrayCollection what should I use as the dataProvider for each
chart?

Since all the data is inside one ArrayCollection, should I keep a
single array collection then simply make a function for each period
and use the function as the dataProvider? If I do it this way, will
the charts update when the base arrayCollection is changed?

My original thought was to store 3 additional arrayCollection objects,
one for each period and update the correct object when the data
changes. This doesn't seem like the most elegant manner to handle the
situation.

Any advice is appreciated.

Dan Wilson

 



RE: [flexcoders] Re: Code Behind Woes

2007-04-26 Thread Jim Grinsfelder
 

The mistake I made that vexed me yesterday was failing to place the
over-riding class file into a sub-directory (folder) with the package name
beneath the project in the navigator tree, so Flex couldn't find it.  Once I
did that, it worked fine.

 

I have to remember to put package files in a folder of the same name.

I have to remember to put package files in a folder of the same name.

I have to remember to put package files in a folder of the same name.

:

:

I have to remember to put package files in a folder of the same name.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug Lowder
Sent: Wednesday, April 25, 2007 5:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Code Behind Woes

 

Tracy, I'm assuming you have class MIPApplication defined in a file 
named MIPApplication.as. The original poster was defining class 
myClass in file myClassBase.as, which I don't think will compile; 
correct?

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt [EMAIL PROTECTED] wrote:

 you cannot extend Application , no, you can defintely do this. 
The
 limitation is that the subclass can only appear at the root of an 
mxml
 file.
 
 I don't see what is wrong in the posted code. This is an example 
tht is
 very similar and is working for me:
 
 ?xml version=1.0 encoding=utf-8?
 mipc:MIPApplication 
 xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml
com/2006/mxml
 xmlns:mipc=MIPContainers.* 
 app={this} 
 mx:Style source=mip.css /
 /mipc:MIPApplication
 
 And MIPApplication.as starts off like this:
 package MIPContainers
 {
 import mx.core.Application;
 ...
 public class MIPApplication extends le_MIP
 {
 le_MIP is an mxml application. Hmm, I am always extending an mxml
 application, not the Application class, I wonder if that is the
 difference?
 Tracy
 
 -Original Message-
 From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com 
[mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of Dimitrios Gianninas
 Sent: Tuesday, April 24, 2007 11:47 PM
 To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com
 Subject: RE: [flexcoders] Re: Code Behind Woes
 
 I believe Doug is right, you will have to make sure the name of your
 MXML component and AS class are different. But even at that, you 
cannot
 extend Application because by doing so it will not generate the
 appropriate hidden code at compile time to make your app work. What 
u
 should do is extends Box, Panel, etc... and then drop those into 
your
 app.
 
 Dimitrios Gianninas
 Optimal Payments Inc.
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com on
behalf of Doug Lowder
 Sent: Tue 4/24/2007 5:37 PM
 To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: Code Behind Woes
 
 File name/class name mismatch? I think you'll need to either 
change 
 your class name to myClassBase, or change the filename 
 to myClass.as.
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
Jim Grinsfelder jim@ wrote:
 
  I'm confused again. I read Ted's thing on Code Behind and got 
all 
 excited.
  
  
  
  
  Now I'm getting Unable to locate specified base 
 class 'app.myClass' for
  component class 'myClass' when I build the following:
  
  
  
  
  
  [file: myClassBase.as]
  
  package app
  
  {
  
  import mx.core.Application;
  
  
  
  public class myClass extends Application
  
  {
  
  }
  
  }
  
  
  
  
  
  [file: myclass.mxml]
  
  ?xml version=1.0 encoding=utf-8?
  
  app:myClass xmlns:app=app.* 
 xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml
com/2006/mxml
  layout=absolute
  
  
  
  /app:myClass
  
  
  
  
  
  What did I neglect to do?
 


 



[flexcoders] Flex 1.5/Flash Remoting Gateway Problem

2007-04-26 Thread oiland_barry
Hi,

It's been a while since I posted on the group, I've been lucky
enough to not have many big problems while developing with Flex in the
past 6 months!

But last week whilst testing a significant section of my flex
application, it was discovered that the flash client was having problems
receiving a result from the flash remoting gateway on certain occasions.

This is a BIG problem, especially as I am coming to the end of the
contract with my employer, and I'm trying to get the project wrapped up
for next week!

I am developing in Flex 1.5 (using remote objects to consume the
Coldfusion CFCs), with Coldfusion MX 7.0.2 running in the back end, and
MS SQL 2005 (although i dont think the databse is anything to do with
the problem), on a Windows Server 2003 SP2 server.

I have ruled out a number of issues that I believe could be the problem,
including:

   Network connections (the flash client can communicate with the server
no problem, initially!)

   Coldfusion (the CFC method is being invoked successfully, and
returning the result to - I dump the result to a html log file)

   Flash Remoting Gateway (The log files confirm that the gateway
completes sending the result back to the )

   Flash Client (I have tried replicating the steps followed on a number
of different client machines, all fail at the same point)

When the Flex application initially loads, it invokes 23 methods in the
Coldfusion CFC, which returns all the results with no problem.

The user then adds some data to the form on the flash client (the Flex
application).  The form contains a combo box that the user selects a
category from.  When the category changes, a CFC method is invoked (one
of the 23 that was invoked only moments earlier), which returns a
Boolean value, to check if the category has any sub categories.

From time to time (and more often than not) when this method is invoked,
the flash client just sits idle with the timer icon spinning around (it
is waiting for a response from the flash remoting gateway).

I have checked the flash remoting gateway log files, and the result is
being returned by the gateway.  It seems that the flash client is not
receiving the response.

There are many other sections in the application where flex/flash
clients consume Coldfusion CFC's, again they can be temperamental and
hang, waiting for a response indefinitely!

I believe my Flex application is ok, as it successfully invokes the CFC
method without any problems; it just seems to hang on certain occasions.
Maybe the flash remoting gateway is not correctly configured?

I also thought it might be a http connection issue with the server, but
as far as i know, the CFCs are invoked, the result is sent back, and the
http connection is closed.

I also thought it might have been a session-based issue with the
Coldfusion CFCs, but i think i have ruled that out.

If anyone could help me I would be in serious debt to them!  As I said I
am coming to the end of this project and I don't need this problem
right now.  I have tired ruling out every possibility, but to no end can
I find the source of the problem.

Regards,

Barry

p.s. here is a dump of the flash remoting gateway log when the flex
application is first loaded in the browser, and the result of the first
CFC method invocation...

4/26 12:22:41 [INFO] RemoteObject_AMF: Creating Service for
remoting.plants
4/26 12:22:41 [INFO] RemoteObject_AMF: Creating gateway connection for
http://carndevserver:8500/flashservices/gateway
4/26 12:22:41 [INFO] RemoteObject_AMF: Successfully created Service
4/26 12:22:41 [INFO] RemoteObject_AMF: Creating Service for
remoting.miscTables
4/26 12:22:41 [INFO] RemoteObject_AMF: Successfully created Service
ERROR: ComboBox dataProvider must be instance of Array, ResultSet, or
implement the DataProvider methods
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetSoilTypes on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetDurabilities on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetGenusNames on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetSpeciesNames on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetCategories on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetColours on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetHardiness on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetComposts on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetGrowthHabits on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetToxicities on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetCommonNames on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetLightLevels on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetPositions on
remoting.miscTables
4/26 12:22:42 [INFO] RemoteObject_AMF: Invoking rgetSeasons on

Re: [flexcoders] Flex Goes Open Source

2007-04-26 Thread Brian Lesser
LOL, I hope not... world domination seems a little extreme for a 
compiler, debugger, component framework and the other bits and pieces...

The discussion has been interesting though. I really like the idea that 
developers could weave their own components into the framework:

See Ryan Stewart: http://blogs.zdnet.com/Stewart/?p=353

But what interests me most is how Adobe will go open source but still 
retain control as they gradually allow people outside the company to run 
with sub projects within the Flex system. (Again see Ryan's article.)

I hope taking Flex open source is a huge success because I'd like to see 
Adobe do something similar with the player. (To RULE THE WORLD in 
Greg's terms?) My guess (and I really don't know) is that many people in 
Adobe can't imagine how they would take the player open source in a 
meaningful way. It is a highly optimized and size-constrained piece of 
code. For example one question would be how could Adobe begin to provide 
the community with a way to own sub projects?

One tantalizing possible answer is for Adobe to look at re-engineering 
the player to adopt an extension mechanism of some type. The strategy is 
risky because no one wants an Acrobat player experience for Flash but it 
could solve a lot of problems. There was a fitc session that I couldn't 
attend where I understand the Flash player group asked for comments on 
what to put into the player in the future. I imagine there were all 
sorts of requests like hardware accelerated 3D, screen sharing, and 
better video codecs. It's hard for Adobe to add those sorts of things 
quickly without a player extension mechanism. It's probably impossible 
for them to keep the player size small and add many of the big important 
things designers and developers want.

So it seems there are a lot of good drivers for going with introducing a 
more extensible/modular architecture for the player:

1.it provides an opportunity for real participation in an eventual 
open source initiative for the player
2.the player becomes more agile (and therefore competitive) with 
smaller extensions coming out in-between major player upgrade cycles
3.Adobe can add newer more powerful features to the player without 
bloating the initial download size much more. Extensions would have to 
download once as needed.

There are probably a lot of reasons folks inside Adobe know about for 
not doing this that I'm not aware of. For example another thing no one 
wants to see is a Windows Media Player experience where the player 
announces it can't find the right codec to play your video. But if those 
things could be overcome this note is my personal request to Adobe to 
continue the process you started with AS3 and make it happen for the 
player too.

Cheers,
-Brian

greg h wrote:

 TRULY, NOW, FLEX WILL RULE THE WORLD!!!

 Oh, and now I better understand why the name change on Flex Data 
 Services to LiveCycle Data Services.

 g



-- 
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__



[flexcoders] using remoteObject with a parameter array

2007-04-26 Thread hank williams

 I am trying to figure out how to use remoteObject in such a way that the
parameters passed to the remote function come from an argument array as
shown below. What is the appropriate way to do this?

Hank

 function asynchGet(type:String,
  destination:String,
  funcName:String,
  resultHandler:Function,
  faultHandler:Function,
  argArray:Array):void{

   var ro:RemoteObject = new RemoteObject();
   ro.destination = destination;

  // can I do this below line?
   ro[funcName].addEventListener(result,resultHandler);

   ro.addEventListener(fault, faultHandler);

  // I know the below line isnt right but am trying to
figure out what is
ro[funcName].apply(argArray);
   }


Re: [flexcoders] Flex Goes Open Source

2007-04-26 Thread Christian Gruber
This is great, however, because even if it won't rule the world,  
it'll be a LOT easier to implement the flex2 maven plugin with an  
open source compiler.  We should be able to make something that  
builds flex without having to pre-install the flex system.  The  
current approach is fine, but annoying for setup.

Christian.


On Apr 26, 2007, at 8:47 AM, Brian Lesser wrote:

 LOL, I hope not... world domination seems a little extreme for a
 compiler, debugger, component framework and the other bits and  
 pieces...


christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob  
416.998.6023
process coach and architect + ISRÁFÍL CONSULTING SERVICES




[flexcoders] Re: yahoomaps POI marker click event, htmltext asfunction

2007-04-26 Thread anupam_111181
Hi All,
I was just googleing the asfunction and found this link

http://livedocs.adobe.com/flex/2/langref/migration.html

See that asfunction is not supported in Action Script 3.0 and the Flex
2.0 is using Flash 9 which in turn using AS3 so i think its not that
straight forward to write asfunction and handling the event..

Although yahoo map component is written in as2 but we are consuming it
in as3.. My instinct says that there will be some other way that we
can handle the link click event..
Working on it..
Keep u posted
Cheers!
Anupam
--- In flexcoders@yahoogroups.com, Michael Wills [EMAIL PROTECTED] wrote:

 Yeah the POI marker click event is fine and quite useful. I think it
was 
 after reading your post Anupam. :-) However after that, I can't trigger 
 anything in the Cairngorm app. I even tried to make a function with the 
 original as2map.fla that would simply trigger a new POIMarkerClick
event 
 with data passed from the asfunction call within the marker. That
hasn't 
 worked yet either.
 
 I also tried to use FlashInterface which, by itself, should work. 
 However it blocks the communication of the YahooMap communication
kit as is.
 
 Basically, similar to Anupam's change to the code, I'd like to add an 
 htmlTextClick function which can be can be called via asfunction. 
 Something like:
 
 function onHTMLLinkClick(ev:Object) {
 var rtnObj:String = new String();
 EIBuffer.addCall({method:swfDomId + .onHTMLLinkClick + id, 
 data:rtnObj});
 }
 
 and where it sets up listeners in the mapClip object
 
 myMap.addEventListener('onHTMLLinkClick', onHTMLLinkClick);
 
 and then in the description of a POI Marker have
 
 description:a href=\'asfunction:onHTMLLinkClick,someString\'Click 
 me.../a
 
 or would this have to be:
 
 description:a 
 href=\'asfunction:_parent.onHTMLLinkClick,someString\'Click me.../a
 
 and in the Flex project
 
 mapEventDispather.addEventListener('onHTMLLinkClick',
htmlLinkClickHandler);
 
 So the link would trigger the new event which would call the
function in 
 the loaded as2map.swf which would then trigger the new event which
would 
 be picked up by Flex, etc.
 
 So is this possible? Since this function isn't in the original API, is 
 it possible to add it this way? It looks like the .addCall would add it 
 to the methodQueue array in the ExternalInterfaceBuffer.as file. Here's 
 to hoping...
 
 And Benoit, thanks for the tip about adding the setMapSize snippet in 
 the MapController.as. It sized fine when first loading but that
could be 
 VERY useful when dynamically resizing.
 
 Thank you to you both. I'll give these a shot and see if there is any 
 progress with it.
 
 Michael
 
 Benoit Hediard wrote:
 
  Are you sure you can catch events generated by an href link in the 
  description htmlText?
 
   
 
  I think we've tried to play around with the POIMarkerClick event.
 
  But it was only dispatched when you first click on the marker to
open it.
 
  Further click on a link in the htmlText description was not
generating 
  any POIMarkerClick events, so we could not catch anything.
 
   
 
  But may be, we did something wrong, we have to check it out again...
 
   
 
  Benoit Hediard
 
  #affinitiz.com
 
   
 
  *De :* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  *De la part de* anupam_81
  *Envoyé :* mercredi 25 avril 2007 09:27
  *À :* flexcoders@yahoogroups.com
  *Objet :* [flexcoders] Re: yahoomaps POI marker click event, htmltext 
  asfunction
 
   
 
  Hi michael,
  I have done this and its pretty easy,
  You can call any flex event on the click of the marker click
  there is one event called onPOIMarkerClick in the Yahoo map component.
  You should have the latest code because this event handler was not
  there in the previous versions.
 
  I have written a blog entry on this...
  Check it out..
 
http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/

 
http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/
 
  Cheeers!
  Anupam
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, Michael Wills michael@ wrote:
  
   For clarification, the idea is simply to allow a marker to be
  clicked to
   open it, but then trigger an event/call a function in the
cairngorm app
   when clicking on a link in the description.
  
   Thanks,
  
   Michael
  
   Michael Wills wrote:
   
Hello all,
   
Just wondering if it's possible to use asfunction to call a
function
in a cairngorm app from the htmltext in the description of a POI
marker within a Yahoomap in a Flex 2 app without making
modification
to the as2map.fla file.
   
It's a long shot, but I was just wondering if it's been done, and
eagerly anticipating a true AS3 map component.
   
The new AS3 event: protocol of course isn't recognized by
the Flash
8 interpreter and so it's not available.
   
So I was hoping it would be something like:
   
markerDesction = a

RE: [flexcoders] Flex Goes Open Source

2007-04-26 Thread Jim Grinsfelder
So, will Adobe still make/sell Flex 3?



[flexcoders] How can I do the kind of DRM in Adobe Media Player in my own app

2007-04-26 Thread hank williams

Is this possible? are there special API's for the DRM related stuff in
Apollo? Can I do this kind of thing with audio only (mp3) instead of FLV?

Thanks
Hank


Re: [flexcoders] Re: yahoomaps POI marker click event, htmltext asfunction

2007-04-26 Thread Michael Wills
Hi there Anupam,

Actually I figured out a way yesterday. The asfunction link calls a 
function in the map which then triggers an event in the AS2 map which is 
passed through a new EIBuffer.addCall which is received by a new event 
handler in MapEventDispatcher.as. The string parameter of the asfunction 
is passed through as a data object and used in Flex and every thing is 
dandy. The only limitation I ran into was the length of text usable with 
asfunction. I believe I saw somewhere that it was 116 characters as a 
limit because of hrefs in general, but it's OK. It works now. :-P

Many thanks!

Michael

anupam_81 wrote:

 Hi All,
 I was just googleing the asfunction and found this link

 http://livedocs.adobe.com/flex/2/langref/migration.html 
 http://livedocs.adobe.com/flex/2/langref/migration.html

 See that asfunction is not supported in Action Script 3.0 and the Flex
 2.0 is using Flash 9 which in turn using AS3 so i think its not that
 straight forward to write asfunction and handling the event..

 Although yahoo map component is written in as2 but we are consuming it
 in as3.. My instinct says that there will be some other way that we
 can handle the link click event..
 Working on it..
 Keep u posted
 Cheers!
 Anupam
 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, Michael Wills [EMAIL PROTECTED] 
 wrote:
 
  Yeah the POI marker click event is fine and quite useful. I think it
 was
  after reading your post Anupam. :-) However after that, I can't trigger
  anything in the Cairngorm app. I even tried to make a function with the
  original as2map.fla that would simply trigger a new POIMarkerClick
 event
  with data passed from the asfunction call within the marker. That
 hasn't
  worked yet either.
 
  I also tried to use FlashInterface which, by itself, should work.
  However it blocks the communication of the YahooMap communication
 kit as is.
 
  Basically, similar to Anupam's change to the code, I'd like to add an
  htmlTextClick function which can be can be called via asfunction.
  Something like:
 
  function onHTMLLinkClick(ev:Object) {
  var rtnObj:String = new String();
  EIBuffer.addCall({method:swfDomId + .onHTMLLinkClick + id,
  data:rtnObj});
  }
 
  and where it sets up listeners in the mapClip object
 
  myMap.addEventListener('onHTMLLinkClick', onHTMLLinkClick);
 
  and then in the description of a POI Marker have
 
  description:a href=\'asfunction:onHTMLLinkClick,someString\'Click
  me.../a
 
  or would this have to be:
 
  description:a
  href=\'asfunction:_parent.onHTMLLinkClick,someString\'Click me.../a
 
  and in the Flex project
 
  mapEventDispather.addEventListener('onHTMLLinkClick',
 htmlLinkClickHandler);
 
  So the link would trigger the new event which would call the
 function in
  the loaded as2map.swf which would then trigger the new event which
 would
  be picked up by Flex, etc.
 
  So is this possible? Since this function isn't in the original API, is
  it possible to add it this way? It looks like the .addCall would add it
  to the methodQueue array in the ExternalInterfaceBuffer.as file. Here's
  to hoping...
 
  And Benoit, thanks for the tip about adding the setMapSize snippet in
  the MapController.as. It sized fine when first loading but that
 could be
  VERY useful when dynamically resizing.
 
  Thank you to you both. I'll give these a shot and see if there is any
  progress with it.
 
  Michael
 
  Benoit Hediard wrote:
  
   Are you sure you can catch events generated by an href link in the
   description htmlText?
  
  
  
   I think we've tried to play around with the POIMarkerClick event.
  
   But it was only dispatched when you first click on the marker to
 open it.
  
   Further click on a link in the htmlText description was not
 generating
   any POIMarkerClick events, so we could not catch anything.
  
  
  
   But may be, we did something wrong, we have to check it out again...
  
  
  
   Benoit Hediard
  
   #affinitiz.com
  
  
  
   *De :* flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com]
   *De la part de* anupam_81
   *Envoyé :* mercredi 25 avril 2007 09:27
   *À :* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
   *Objet :* [flexcoders] Re: yahoomaps POI marker click event, htmltext
   asfunction
  
  
  
   Hi michael,
   I have done this and its pretty easy,
   You can call any flex event on the click of the marker click
   there is one event called onPOIMarkerClick in the Yahoo map component.
   You should have the latest code because this event handler was not
   there in the previous versions.
  
   I have written a blog entry on this...
   Check it out..
  
 http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/
  
 http://digitallyinsane.wordpress.com/2007/03/13/yahoo-maps-as3-communication-tool-kit/

  
 

[flexcoders] Combo Box in Grid -- Is there a better way?

2007-04-26 Thread boy_trike
Following is the snippet of my code to embedd a combo box in a
dataGrid.  Is there a better way to do this?

Thanks

Bruce


  mx:itemRenderer
mx:Component
mx:Canvas
mx:Script

![CDATA[
override public 
function set data(data:Object) : void {
if 
(data != null) myComboBox.text = cbData.(@data ==
data.per)[EMAIL PROTECTED];
}

private function handleClose( event : 
Event)
: void {
trace('The per Value is ' + 
cbData.(@label
== event.target.selectedLabel)[EMAIL PROTECTED]);
}

]]
/mx:Script

mx:XMLList id=cbData
menu label=E 
data=1 /
menu label=X 
data=10 /
menu label=D 
 data=12 /
menu label=C 
data=100 /   
menu label=M 
data=1000 /  
/mx:XMLList

mx:ComboBox  id=myComboBox
dataProvider={cbData} labelField=@label close=handleClose( event )/
/mx:Canvas
/mx:Component
/mx:itemRenderer



[flexcoders] KeyBoardEvents - Flex can't hide control key sequences from Internet Explorer

2007-04-26 Thread fuad_kamal
If anyone has a solution that doesn't involve JavaScript in the html
wrapper I'd love to hear it...


The problem is, Internet Explorer interprets control-key sequences
(such as ctrl-r which reloads the browser window) regardless of
whether your flex app captures the keystrokes or not, regardless of
whether you setFocus() or not.  The keystrokes still bubble to the
browser.  I have tested this both in Firefox and IE7, in Firefox the
swf captures the control sequences without disturbing the browser, in
IE7 the swf also captures the control sequences, but the browser also
reacts to them which can be disastrous from the perspective of the
application.

This note from Adobe makes me think they have not come up with a
simple fix for this yet:
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=events_054_21.html

The only solution right now seems to be using JS in the wrapper to
modify the browser behavior.  Here are the related leads I've found so
far:

http://santrajan.blogspot.com/2007/03/cross-browser-keyboard-handler.html

http://www.colettas.org/?p=69

I'd be happy to hear if anyone else has a better solution.

--- In flexcoders@yahoogroups.com, Michael Klishin [EMAIL PROTECTED] wrote:

 From my experience setFocus helps in your case, just use it in
 creationComplete handler of parent container (whatever it is) or
component
 root tag (which happens to be parent container as well)
 
 On 11/01/07, Lieven Cardoen [EMAIL PROTECTED] wrote:
 
   In Application is seems to work once with this.setFocus(), but
then it
  doesn't work anymore. Is there a way to catch the keys at all time???
 
 
 
  I think I'm missing something here. I have an application with some
  layoutContainers and in one of the containers a user can draw a
groundPlan.
 
  When rubberBand is enabled, I want a user to be able to press CTRL and
  click with mouse so that rubberband disappears.
 
 
 
  This Container where the drawing happens is called GroundPlan.as
(extends
  Container).
 
 
 
  In here I create sprites, … and in here I should be able to catch
  KeyEvents…
 
 
 
  Thx, Lieven Cardoen, IndieGroup
 
 
   --
 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Lieven Cardoen
  *Sent:* donderdag 11 januari 2007 12:32
  *To:* flexcoders@yahoogroups.com
  *Subject:* RE: [flexcoders] KeyBoardEvents
 
 
 
  Strange, because I click with mouse in the Container...
 
 
   --
 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Jason Hawryluk
  *Sent:* donderdag 11 januari 2007 11:08
  *To:* flexcoders@yahoogroups.com
  *Subject:* RE: [flexcoders] KeyBoardEvents
 
 
 
  You need to make sure your container has the focus
 
 
 
  //from the parent of the container
 
  GroundPlan.setFocus();
 
 
 
 
 
  //or try this after you have set the listeners.
 
  setFocus();
 
 
 
 
 
 
 
  jason
 
 
 
 
 
  -Message d'origine-
  *De :* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
  la part de* Lieven Cardoen
  *Envoy� :* jeudi 11 janvier 2007 10:58
  *� :* flexcoders@yahoogroups.com
  *Objet :* [flexcoders] KeyBoardEvents
 
  Why are my KeyboardEvents not working?
 
  GroundPlan is a chilc of a Canvas…
 
  I also tried catching keyboard events in my
Application.application but it
  doesn't work neither…
 
  I'm testing in Internet Explorer and my application has focus…  thx.
 
  *public* *class* GroundPlan *extends* Container
 
  {...
 
  *public* *function* addEventListeners():*void*{
 
*this*.addEventListener(MouseEvent.MOUSE_MOVE,
mouseMoveHandler);
 
*this*.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
 
*this*.addEventListener(KeyboardEvent.KEY_DOWN,
myKeyDownHandler);
 
*this*.addEventListener(KeyboardEvent.KEY_UP, myKeyUpHandler);
 
  }
 
  /**
 
  *
 
   */
 
  *private* *function* myKeyDownHandler(event:KeyboardEvent):*void* {
 
*trace*(*myKeyDownHandler(* + event + *)*);
 
*if*(event.keyCode == Keyboard.CONTROL){
 
  *this*.controlKeyDown = *true*;
 
}
 
  }
 
  /**
 
   *
 
   */
 
  *private* *function* myKeyUpHandler(event:KeyboardEvent):*void*{
 
*trace*(*myKeyUpHandler(* + event + *)*);
 
*if*(event.keyCode == Keyboard.CONTROL){
 
  *this*.controlKeyDown = *false*;
 
}
 
  }
 
  *Lieven Cardoen
  **Application developer
  **
  **indie**group**
  **interactive digital experience**
  **engelse wandeling 2 k18
  b8500 kortrijk *
 
 
 
 
 
 
 -- 
 This was freedom. Losing all hope was freedom.
 
 Flex wiki (russian): flexwiki.novemberain.com
 Red5 bug track: jira.red5.org
 Red5 wiki: wiki.red5.org [use JIRA account]
 
 Chasing the beauty in programming:
 www.ruby-lang.org | www.rubyonrails.org





Re: [flexcoders] Flex Goes Open Source

2007-04-26 Thread Dave Carabetta

Most definitely. In fact, outside of the bug base being made public in the
June timeframe along with some other infrastructure enhancements, you're
probably not going to be a whole lot change until after Flex 3 (aka Moxie)
is released in the second half of this year. I say that because Adobe
employees will still be the sole committers of any changes to the SDK
through the end of the Flex 3 release cycle, so while you'll be able to
contribute before then, it's not guaranteed to make it into the Flex 3
release.

Definitely take some time and read the links below, as it's going to be
really easy for one slight mis-statement on these types of forums to skew
the reality of this announcement (including any made by me!):

http://labs.adobe.com/wiki/index.php/Flex:Open_Source

http://labs.adobe.com/wiki/index.php/Flex_Open_Source_FAQ

http://groups.google.com/group/flex-open-source   -- Adobe employees are
answering specific questions here, I see.


Regards,
Dave.
Cynergy Systems, Inc.


On 4/26/07, Jim Grinsfelder [EMAIL PROTECTED] wrote:


   So, will Adobe still make/sell Flex 3?

 



[flexcoders] Re: QTP 9.2 Eval version and Flex

2007-04-26 Thread Scott Hoff
Does open source = free going forward?



[flexcoders] Re: ZLIB compression standard within Flex (Flash)??

2007-04-26 Thread Matthew OMeara
It took a day for this post to show up on Yahoo, and in the meantime 
I have resolved the issue.  Turns out that I was passing a WideString 
from a windows server to Flex (also on Windows).  But the char sets 
must have been different (utf-8 vs ASCII), so the compressed string 
was misunderstood at trhe client (Flex app).

I pass the string as HexString now and it works fine, will switch to 
Byte Stream soon.

best,

Matthew


--- In flexcoders@yahoogroups.com, Matthew OMeara [EMAIL PROTECTED] 
wrote:

 I have been spinning cycles trying to get the uncompress function 
of 
 ByteArray to process a zipped xml string that I am sending from a 
 custom web server.  I have read up on the process and understand 
that 
 Flex ByteArrays support zlib compression and I believe they expect 
to 
 find an Adler checksum within the zipped string as well.
 
 Problem is that there are 31 flavors of compression to choose from 
 server side and I can not get any to match what Flex ByteArray 
 decompress expects???
 
 For example, there are these options of compession within zlib...
 
   CompressionLevel = (
 zcNone,
 zcFastest,
 zcDefault,
 zcMax,
 zcLevel1,
 zcLevel2,
 zcLevel3,
 zcLevel4,
 zcLevel5,
 zcLevel6,
 zcLevel7,
 zcLevel8,
 zcLevel9
   );
 
   Strategy = (
 zsDefault,
 zsFiltered,
 zsHuffman,
 zsRLE,
 zsFixed
   );
 
 ~
 
 The ultimate goal here is to grab 5mb xml files that are first 
 zipped, then encrypted that have been cached on the server.  I have 
 flex unencrypting data successfully, but I can not get Flex to 
 recognize and unzip any flavor of Zip that I send to it.
 
 Any thoughts?
 
 Thanks
 
 Matthew





RE: [flexcoders] Cairngorm, is this suitable as Cairngorm event

2007-04-26 Thread Dimitrios Gianninas
Imay be a little late here, but no, its not only for calling backend. Anytime 
you want encapsulate some UI logic, put it in a command. Even if it just to 
manipulate data, update the view or to call the server-side.
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bnsmeets
Sent: Wednesday, April 25, 2007 5:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm, is this suitable as Cairngorm event



Hi all,

Wondering if the Cairngorm events are supposed to be only events that
need backend comunication.

Situation now is that I have a Model, which contains e.g.
SelectedObject. I use this var to store the selected object by users
in the interface.

No problems so far. But now I want to be able to let the user clear
that selectedobject. I am tempted to just use
AppModel.SelectedObject=null in a view. But the thought is running in
my head that it might be neater to create a
SelectedObjectClearedEvent and attach a command to that which
contains the logic if it is possible to clear it.

Question in the bigger picture is this: Are cairngorm events as is
supposed to be used only when there is a I want to call backend-
event? Or are View related events (or any other events in that matter)
supposed to be Cairngorm events too?

And on top of that, how do you (Cairngorm users out there) give your
other events a place in your structure?

For example, my model also dispatches a custom event which has nothing
to do with the backend. I use it to listen to any changes in a
Collection (Default ArrayCollection events didn't do the trick).

Tx in advance,
Ben



 

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



RE: [flexcoders] RE: Updating progress bar in datagrid when uploading files

2007-04-26 Thread Mark Ingram
I've managed to find the answer myself, it was on this page:

 

http://www.adobe.com/devnet/flex/quickstart/using_item_renderers/

 

It doesn't involve progress bars, but the idea is the same.

 

Cheers,

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 26 April 2007 11:35
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: Updating progress bar in datagrid when
uploading files

 

Hi, I only joined yesterday, not sure if the email got received or not.

 

I am basically just trying to hook up the ProgressBar.source property
with a property stored on the data provider
(m_uploadFileList[i].FileReference). 

 

Thanks,

Mark

 

 



From: Mark Ingram 
Sent: 25 April 2007 13:43
To: FlexCoders (flexcoders@yahoogroups.com)
Subject: Updating progress bar in datagrid when uploading files

 

Hi, I have a standard data grid with a progress bar in the 3rd column:

 

mx:DataGrid id=filesDataGrid
dataProvider={m_uploadFileList} editable=false

mx:columns

mx:DataGridColumn
headerText=File Name dataField=label /

mx:DataGridColumn
headerText=Size dataField=size labelFunction=displaySizeLabel /

mx:DataGridColumn
headerText=Upload Progress sortable=false

 
mx:itemRenderer

 
mx:Component

 
mx:VBox horizontalAlign=center

 
mx:ProgressBar id=progressBar labelPlacement=center label=%3%%
mode=manual width=80% height=100% /

 
/mx:VBox

 
/mx:Component

 
/mx:itemRenderer

/mx:DataGridColumn

/mx:columns

/mx:DataGrid

 

m_uploadFileList is an array collection of FileReference objects. How
can I hook up the progress of each file upload (done via FileReference)
to the progress bar on each line? I understand each file must be done in
turn.

 

Any pointers on this will be gratefully received!

 

Thanks,

 

Mark

 

 

 

 



[flexcoders] Re: ListBase ScrollVertically error #1010

2007-04-26 Thread confined_to_death666
I don't have the error anymore. I'm now using a vbox with a repeater
and my custom item renderer instead. With some tweaking
(recyclechildren, etc) it works just as good as the list component but
it doesn't give me the error. Thnx everyone who replied on my problem
before.




[flexcoders] Flickr and Flex Implementation

2007-04-26 Thread Jurgen Beck
I am working on a photo gallery app that is supposed to access private 
images from a Flickr account. While it's pretty straight forward 
accessing publicly viewable images from a Flickr user or account, there 
seems to be a big problem with accessing private images AND keep 
everything user friendly.

Here is what I am finding:

When using the Flex Flickr API, I get stuck with displaying a separate 
window to authorize the Flex application to access the private images. 
That's not the fault of the API, but rather a way Flickr is implementing 
their authorization scheme.

 From a user's perspective, this of course is silly for two reasons: 
Number one, why having a RIA that keeps everything integrated and then 
going outside of the web application to authorize access, and secondly, 
this exposes the Flickr account in the secondary browser window, which I 
definitely don't want.

I thought I had found a workaround by simply just calling the 
authorization URL in a URLLoader like this:

var auth_url:String = flickrService.getLoginURL( 
frob, AuthPerm.READ );
   
 var loginLoader:URLLoader = new URLLoader();
var loginRequest:URLRequest = new URLRequest(auth_url);
   

loginLoader.addEventListener(Event.COMPLETE,loginRequestComplete);

loginLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,loginSecurityError);

   

In the loginRequestComplete method I then proceed to getting the frob.

This works PERFECT on my local machine. I don't have to pop up a 
separate browser window to authorize the application with Flickr and 
everything proceeds to load the private images in the Flex application.

However, moving this to the web site, I get the dreaded security error 
that states that the application cannot access data from the Flickr URL.

I looked at the URLs. Here is what I find:

auth_url in the above code snippet will start with 
http://api.flickr.com/services/auth/?api_key=..., targeting the 
api.flickr.com, for which Flickr has set up a crossdomain.xml file. 
However, to check what's happening with the authorization process I use 
the auth_url n a browser window and find that there is a redirect that 
happens back to a URL of http://www.flickr.com/services/auth/?api_key=...

This means that my security error is triggered, because we are getting a 
response back from the flickr.com domain and not the api.flickr.com 
domain, at least that's what I assume is happening.

So, long write up and short question:

Has anyone made this work? What I am essentially after is a way to get 
to the private images through the Flex Flickr API without having to 
display the Flickr authorization window.

Thanks for any suggestions!

Jurgen


[flexcoders] Problem using a subclass of ComboBox in actionscript

2007-04-26 Thread johnknyc
Hi all,

I created a AS subclass of ComboBox. I can use the subclass in MXML,
however when I try to instantiate the subclass in AS, it comes up
blank when I run the app.

I tried running a trace in the subclass's constructor, and it seems
the constructor is not even being called.

Any ideas?







RE: [flexcoders] Flex Goes Open Source

2007-04-26 Thread David Mendels
YES!
 
This is going to be part of Flex 3.  We are hard at work on Flex 3--code
named Moxie.  Expect a public beta this summer.  The change is that
for the SDK (which is free already), it will be open source, with a
public bugbase and the ability for folks outside Adobe to participate in
the process. 
 
Flex Builder 3 and Data Services remain commercial products.  No change
there.
 
We are doubling down on our investment and committment to Flex.
 
-David



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Grinsfelder
Sent: Thursday, April 26, 2007 6:31 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex Goes Open Source



So, will Adobe still make/sell Flex 3?

 


[flexcoders] Replacement of Resize Effect

2007-04-26 Thread Matt
After dealing with the frustrations of the Resize effect for too long
I decided to write my own replacement to it that works the way I would
expect Resize should.

Major distinctions are support for resizing with percentages and
supports the ability to resize one direction (width or height) with a
different type (pixel or percentage) than the other.

Here's the code:

package jsl {
import mx.effects.IEffectInstance;
import mx.effects.TweenEffect;

public class Resize extends TweenEffect {
public function Resize(target:Object = null) {
super(target);
instanceClass = ResizeInstance;
}

[Inspectable(defaultValue=null)]
public var widthFrom:Number;

[Inspectable(defaultValue=null)]
public var heightFrom:Number;

[Inspectable(defaultValue=null)]
public var widthTo:Number;

[Inspectable(defaultValue=null)]
public var heightTo:Number;

[Inspectable(defaultValue=null)]
public var widthType:String;

[Inspectable(defaultValue=null)]
public var heightType:String;

override protected function
initInstance(instance:IEffectInstance):void {
super.initInstance(instance);
var effectInstance:ResizeInstance = 
ResizeInstance(instance);
effectInstance.widthFrom = widthFrom;
effectInstance.heightFrom = heightFrom;
effectInstance.widthTo = widthTo;
effectInstance.heightTo = heightTo;
effectInstance.widthType = widthType;
effectInstance.heightType = heightType;
}
}
}

package jsl {
import mx.effects.effectClasses.AnimatePropertyInstance;
import mx.effects.effectClasses.TweenEffectInstance;

public class ResizeInstance extends TweenEffectInstance {
public var widthFrom:Number;
public var heightFrom:Number;
public var widthTo:Number;
public var heightTo:Number;
public var widthType:String;
public var heightType:String;

private var widthEffect:AnimatePropertyInstance;
private var heightEffect:AnimatePropertyInstance;

public function ResizeInstance(target:Object) {
super(target);
}

override public function play():void {
super.play();
initializeProperties();
if (widthEffect != null) widthEffect.play();
if (heightEffect != null) heightEffect.play();
}

protected function initializeProperties():void {
if ((!isNaN(widthTo))  (widthType != 'auto')) {
widthEffect = new 
AnimatePropertyInstance(target);
widthEffect.duration = duration;
widthEffect.repeatCount = repeatCount;
widthEffect.repeatDelay = repeatDelay;
widthEffect.startDelay = startDelay;
widthEffect.easingFunction = easingFunction;
if (widthType == 'pixel') {
widthEffect.property = 'width';
} else if (widthType == 'percentage') {
widthEffect.property = 'percentWidth';
} else {
Logger.log('Unknown Width Property: ' + 
widthType);
}
if (!isNaN(widthFrom)) {
widthEffect.fromValue = widthFrom;
} else if ((widthType == 'percentage') 
(isNaN(target['percentWidth']))) {
// Trying to change percentage but a 
percentage is not currently
determined
var pW:Object = target['parent'];
if (pW != null) {
widthEffect.fromValue = 
(target['width'] / pW['width']) * 100;
}
}
widthEffect.toValue = widthTo;
}
if ((!isNaN(heightTo))  (heightType != 'auto')) {

RE: [flexcoders] XML and Button

2007-04-26 Thread Gordon Smith
This list works best when people ask specific questions. Can you be more
explicit about what you don't understand?
 
Getting the external XML file into your app? Use mx:XML source=
Looping over the button elements? Look at some E4X examples.
Extracting the label and text for a particular button? Look at
some E4X examples.
Creating components dynamically? b = new Button()
Setting the label of a Button dynamically? b.label = ...
Setting the click handler of a Button dynamically?
b.addEventListener(MouseEvent.CLICK, ...)
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dur-E-Wahab Khan
Sent: Thursday, April 26, 2007 2:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML and Button



Hi,
 
How are all of you. Well I am new to Flex. But I have started building
simple applications. One of the top most problem I am facing is working
with XML and Button. Can  you please assist me in this. I am explaining
my problem:
 
I have an external XML file like this:
Menu
button
   idnt0/idnt
   labelGeneral Health/label
   textGeneral Health pages is currently under construction/text
/button
button
   idnt1/idnt
   labelMental Health/label
   textMental Health pages is currently under construction/text
/button
/Menu
 
Now I want to generate Buttons Dynamically from this XML. And the second
thing which is the most problematic is that how I code it so that when I
press the Button labled General Health, it will show the same text as
in the XML tag coresponding to tag labelGeneral Health/label ?
I badly need this. I am realy confused on this. Kindly help me.
 
Regards
..::DeX



Ahhh...imagining that irresistible new car smell?
Check out new cars at Yahoo! Autos.
http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;
_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM
-  

 


[flexcoders] Question on Ely's SuperImage Component

2007-04-26 Thread Mike Anderson
Hello All,

I know there are lots of people using this, so I wanted to ask if this
component can perform some functions that the standard Image Component
can do.

With the standard Flex Image Component, I can move the Content around
inside the container, independent of the container itself.  I do this
quite often, if I have an Image that is quite large - and has a lot of
extraneous background stuff that I don't want to be displayed.

With the Flex Image, I size  place the container where I need it to be
- then I move  scale the Content around within the container - in order
to show only the parts that I want.

The SuperImage Component doesn't have a Content Property - so this leads
me to believe, that I can't perform the same functions as the Image.

Is this the right assumption to make?  If so, does anybody have any
further ideas, on how I can get more control over the content when using
the SuperImage?

Thanks in advance, for any information offered on this topic.

Mike


RE: [flexcoders] Question on Ely's SuperImage Component

2007-04-26 Thread Ely Greenfield
 

 

Hi Mike. There is a _content property in the SuperImage, which is
essentially the same as the Image.content property. However, the
SuperImage actively maintains the size and position of the content, so I
don't think you can guarantee that changes you make to its position will
stick.  

 

So, two options:

 

1)  Grab the source, and make the modifications you need. An
'offset' might be a nice property to add, and something we could
integrate back into the main source.

2)  Wrap the Super Image in a Canvas. And move the SUperImage around
inside the canvas instead.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Thursday, April 26, 2007 10:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question on Ely's SuperImage Component

 

Hello All,

I know there are lots of people using this, so I wanted to ask if this
component can perform some functions that the standard Image Component
can do.

With the standard Flex Image Component, I can move the Content around
inside the container, independent of the container itself. I do this
quite often, if I have an Image that is quite large - and has a lot of
extraneous background stuff that I don't want to be displayed.

With the Flex Image, I size  place the container where I need it to be
- then I move  scale the Content around within the container - in order
to show only the parts that I want.

The SuperImage Component doesn't have a Content Property - so this leads
me to believe, that I can't perform the same functions as the Image.

Is this the right assumption to make? If so, does anybody have any
further ideas, on how I can get more control over the content when using
the SuperImage?

Thanks in advance, for any information offered on this topic.

Mike

 

attachment: image001.jpg
attachment: image002.jpg


[flexcoders] Re: datagrid cell renderers

2007-04-26 Thread blc187
thanks for the suggestion manish
do you have an example of this working?

from what i can figure, it looks as though the sprite is just a 
template for the row to fill a shape the same shape as whatever the 
sprite is.
it looks like the same one gets reused for each row and just shifted 
down, as when i attach anything to it, they just get shifted down as 
the grid draws more rows and everything is attached to the same sprite.



RE: [flexcoders] Re: QTP 9.2 Eval version and Flex

2007-04-26 Thread Matt Chotin
The SDK was already free.  The QTP plugin is not considered part of the
move to open source at this time.
 
Matt



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Hoff
Sent: Thursday, April 26, 2007 7:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: QTP 9.2 Eval version and Flex



Does open source = free going forward?



 


RE: [flexcoders] Question on Ely's SuperImage Component

2007-04-26 Thread Mike Anderson
Thanks Ely!
 
My thoughts exactly :)
 
I just wanted to ask you first, before investing time into an alternate
solution.
 
That xOffset and yOffset would be a pretty cool addition to your future
versions of SuperImage.
 
Either way, you did a WONDERFUL job on this component. Just adding the
Border and DropShadow properties, you increased the value of SuperImage
versus the standard Image Component, by 10-fold...
 
Thank you for sharing this component with the community, as well as
everything else you've put out there.  You are a very good programmer -
I can tell just by examining your source-code - it's well thought out,
clean, easy to read and most important, quite functional.
 
Take care and thank you :)
 
Mike



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Thursday, April 26, 2007 10:50 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Question on Ely's SuperImage Component



 

 

Hi Mike. There is a _content property in the SuperImage, which is
essentially the same as the Image.content property. However, the
SuperImage actively maintains the size and position of the content, so I
don't think you can guarantee that changes you make to its position will
stick.  

 

So, two options:

 

1)  Grab the source, and make the modifications you need. An
'offset' might be a nice property to add, and something we could
integrate back into the main source.

2)  Wrap the Super Image in a Canvas. And move the SUperImage around
inside the canvas instead.

 

Ely.

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Thursday, April 26, 2007 10:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question on Ely's SuperImage Component

 

Hello All,

I know there are lots of people using this, so I wanted to ask if this
component can perform some functions that the standard Image Component
can do.

With the standard Flex Image Component, I can move the Content around
inside the container, independent of the container itself. I do this
quite often, if I have an Image that is quite large - and has a lot of
extraneous background stuff that I don't want to be displayed.

With the Flex Image, I size  place the container where I need it to be
- then I move  scale the Content around within the container - in order
to show only the parts that I want.

The SuperImage Component doesn't have a Content Property - so this leads
me to believe, that I can't perform the same functions as the Image.

Is this the right assumption to make? If so, does anybody have any
further ideas, on how I can get more control over the content when using
the SuperImage?

Thanks in advance, for any information offered on this topic.

Mike

 


[flexcoders] Round corners with Tab Navigator

2007-04-26 Thread iko_knyphausen

Hello,

I am trying to use rounded corners (cornerRadius) on a tab navigator.
Unfortunately it also rounds the upper left corner of the first canvas
which makes it unsightly. One could use paddingLeft to move the tabs a
little to the right, but that doesn't look to great either. One could
underlay the tab navigator at the upper left corner with a
mini-canvas, but that only works, if you have no border. I need a solid
border...

Has anyone come up with a good solution for this?

Thanks a mill..




[flexcoders] Disallowing selection of certain items in datagrid vs. shift-click multi-select

2007-04-26 Thread tsiesser
I have a datagrid where allowMutipleSelection is true. I'm trying to
disallow selection of certain rows in the grid. I tried hooking into
the ListEvent.CHANGE event and removing disallowed items from the
selectedItems array:

addEventListener(ListEvent.CHANGE, selectionChangeHandler);

private function selectionChangeHandler(event:ListEvent):void
{
var items:Array = new Array();
for each (var item:Object in selectedItems)
{
if (itemIsSelectable(item))
items.push(item);
}
selectedItems = items;
}

private function itemIsSelectable(item:Object):Boolean
{
// determine whether item is selectable...
:
}

This works fine for single-click and ctrl-click selection, but somehow
the very existence of code inside selectionChangeHandler breaks
shift-click selection. What I mean is that if I include the code
above, then if you try to multi-select via shift-click, by the time
you get into selectionChangeHandler, selectedItems contains only a
single item (the starting item). This is before my code has even run!
Yet if you comment out the code inside the handler, shift-click works
normally. 

I *think* this looks like a timing issue since if I run in debug mode
and single-step all the way through mouseDownHandler (all the way up
the superclass chain to ListBase), then shift-click is okay.

Does anyone have any ideas on how I can make this work? Or
alternatively, another way to disallow selection of particular items?

Thanks!



[flexcoders] Re: Open source Flex (incl. compiler)

2007-04-26 Thread kyle.vanvranken
To be honest I am not surprised that flex is going open source and was
just talking about this with a friend of mine a day or so ago. I
figured it was only a matter of time. Logically it makes sense and I
think it's a smart move on Adobe's part. In doing so they open up the
doors to developers from all walks to jump in and get their hands
dirty with flex and effectively ramp up development on Flex. This in
turn leads to better adoption of the platform, better components,
integration etc etc. Plus from a business standpoint they're still
making money with FDS and going to increase the demand for said
product with greater adoption of Flex.

All the same kudos and thank you to Adobe!

- Kyle VanVranken



[flexcoders] Setting the $title field in index .template.html

2007-04-26 Thread simonjpalmer
where do I set the field $title which is referred to at the top of the
template filed used to generate index.html?



[flexcoders] BP=?: 1 ArrayCollection, different selection criteria, same time

2007-04-26 Thread Peter Demling
I have one ArrayCollection that holds all of the data I've retrieved
from my (RemoteObject) data service, and I need to display it in 2 UI
components, but with different filter conditions at the same time
(e.g., imagine an ArrayCollection of SnackItems, where one DataGrid is
showing you the CandyBars, and the other is showing you the FruitCups
at the same time).

I know I can accomplish this by creating a separate ArrayCollection
for each UI component, and assigning them different filter functions -
but is this best practice?  It seems like I should be able to avoid
copying my data in order to view it in different ways simultaneously.
 Could this involve creating multiple ViewCursors on the same
ArrayCollection?  Or am I overestimating the (performance/memory) cost
of creating multiple ArrayCollections of the same source data?

Thanks for any suggestions!

-Peter Demling
 Lexington, MA



[flexcoders] Re: Alert Control Crashing App

2007-04-26 Thread Troy A. Binford
I updated to version 9.0.45.0 that was released april 12. The code
still crashes to a large stack dump and an undefined error. Thanks
for the suggestion, but this didn't seem to fix my problem. Anyone
else have any suggestions? It would be much appreciated.

Thanks,

Troy

--- In flexcoders@yahoogroups.com, rml__ [EMAIL PROTECTED] wrote:

 Update your flash player version, i had the same problem in IE, it
was solved updating the flash player.
 
 rml
 
 - Mensaje original 
 De: Manish Jethani [EMAIL PROTECTED]
 Para: flexcoders@yahoogroups.com
 Enviado: miércoles, 25 de abril, 2007 5:33:04
 Asunto: Re: [flexcoders] Alert Control Crashing App
 
 
 
 
 
 
 
 
 
   
 
 
 
 Perhaps you can post a working example somewhere or at
least a stack
 
 trace? That'll make it easier to follow.
 
 
 
 On 4/25/07, Troy A. Binford troy.binford@ gmail.com wrote:
 
  This is a little complex, but I'll try to describe what's going on to
 
  the best of my ability.
 
 
 
  1. Create a new Flex Application.
 
  2. Add a Canvas or whatever and give it an id.
 
  3. Create a new Custom Control that is a DataGrid.
 
  4. Make the DataGrid editable and give it a dataProvider and at least
 
  one column.
 
  5. Add itemEditEnd event.
 
  6. Have the listener method fire an Alert.show( test)
 
  7. close the Custom Control.
 
  8. Create a mx:Script section in the main app.
 
  9. create a private var (x) that is an instance of the Custom Control.
 
  10. Add initialize event.
 
  11. Have the listener assign x = new Custom Control Name()
 
  12. addChild(x)
 
 
 
  Run the program and edit a column (making itemEditEnd fire). If done
 
  correctly, the Alert.show() will result in a large stack dump and an
 
  undefined error.
 
 
 
  My question is: Is this my fault? What did I do wrong?
 
 
 
 
 
 
 
  --
 
  Flexcoders Mailing List
 
  FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
sFAQ.txt
 
  Search Archives: http://www.mail- archive.com/ flexcoders%
40yahoogroups. com
 
  Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 
 
   
 
 
 
 
 
 
 
 !--
 
 #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean,
sans-serif;}
 #ygrp-mlmsg table {font-size:inherit;font:100%;}
 #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica,
clean, sans-serif;}
 #ygrp-mlmsg pre, code {font:115% monospace;}
 #ygrp-mlmsg * {line-height:1.22em;}
 #ygrp-text{
 font-family:Georgia;
 }
 #ygrp-text p{
 margin:0 0 1em 0;}
 #ygrp-tpmsgs{
 font-family:Arial;
 clear:both;}
 #ygrp-vitnav{
 padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
 #ygrp-vitnav a{
 padding:0 1px;}
 #ygrp-actbar{
 clear:both;margin:25px
0;white-space:nowrap;color:#666;text-align:right;}
 #ygrp-actbar .left{
 float:left;white-space:nowrap;}
 .bld{font-weight:bold;}
 #ygrp-grft{
 font-family:Verdana;font-size:77%;padding:15px 0;}
 #ygrp-ft{
 font-family:verdana;font-size:77%;border-top:1px solid #666;
 padding:5px 0;
 }
 #ygrp-mlmsg #logo{
 padding-bottom:10px;}
 
 #ygrp-vital{
 background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
 #ygrp-vital #vithd{

font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
 #ygrp-vital ul{
 padding:0;margin:2px 0;}
 #ygrp-vital ul li{
 list-style-type:none;clear:both;border:1px solid #e0ecee;
 }
 #ygrp-vital ul li .ct{

font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
 #ygrp-vital ul li .cat{
 font-weight:bold;}
 #ygrp-vital a {
 text-decoration:none;}
 
 #ygrp-vital a:hover{
 text-decoration:underline;}
 
 #ygrp-sponsor #hd{
 color:#999;font-size:77%;}
 #ygrp-sponsor #ov{
 padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
 #ygrp-sponsor #ov ul{
 padding:0 0 0 8px;margin:0;}
 #ygrp-sponsor #ov li{
 list-style-type:square;padding:6px 0;font-size:77%;}
 #ygrp-sponsor #ov li a{
 text-decoration:none;font-size:130%;}
 #ygrp-sponsor #nc {
 background-color:#eee;margin-bottom:20px;padding:0 8px;}
 #ygrp-sponsor .ad{
 padding:8px 0;}
 #ygrp-sponsor .ad #hd1{

font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
 #ygrp-sponsor .ad a{
 text-decoration:none;}
 #ygrp-sponsor .ad a:hover{
 text-decoration:underline;}
 #ygrp-sponsor .ad p{
 margin:0;}
 o {font-size:0;}
 .MsoNormal {
 margin:0 0 0 0;}
 #ygrp-text tt{
 font-size:120%;}
 blockquote{margin:0 0 0 4px;}
 .replbq {margin:4;}
 --
 
 
 
 
 
 
 
 __
 Correo Yahoo!
 Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
 Regístrate ya - http://correo.yahoo.com.mx/





[flexcoders] Re: Module GC question

2007-04-26 Thread kyle.vanvranken
UPDATE: So it would seem the hack method of forcing garbage collection
for my test was actually causing the trouble.

-
try {
  new LocalConnection().connect('foo');
  new LocalConnection().connect('foo');
} catch (e:*) {}
-

Without that code it seems to be working nicely now. I've had a test
app running on my machine now for a bit with a timer every couple
seconds reloading the simple module and it appears to be working as
intended now. I don't really understand why forcing GC was causing it
to eat up more memory then not forcing, but I am sufficiently
satisfied that it seems to be working.



[flexcoders] FileReferenceList

2007-04-26 Thread kanu kukreja
Hello everyone,
  being new to flex i have so many queries in this.
   
  1. how to trace values in console panel?
  2. I have to create flv palyer in Apollo.
   
 I'm getting problem in storing path of files which are selected by user in 
an array so that i can play them one by one.
   
  till selection of files i'm done but storing path is an issue.
   
  I hope you all help me out in this ASAP.


Best Regards
  Kanu Kukreja

   
-
Ahhh...imagining that irresistible new car smell?
 Check outnew cars at Yahoo! Autos.

[flexcoders] Re: Module Interface Problems

2007-04-26 Thread Viktor Yarmak
Hi!

Got the same problem and solution seems to be simple (as mentioned by
Alex Harui):

before loading module you must set applicationDomain for ModuleLoader
(example: moduleTwo.applicationDomain = ApplicationDomain.currentDomain;)

Full example is here http://www.yarmak.info/flex/module-to-module.zip

Regards,
Viktor



Re: [flexcoders] DataGridColumn sortDescending property doesn't change after first two clicks on header

2007-04-26 Thread Sergey Kovalyov

Thanks! Though everything works even when I postpone calculation to
commitProperties(). :)

On 4/26/07, Manish Jethani [EMAIL PROTECTED] wrote:


  I assume you're cancelling the default sort, which is why the column's
sortDescending is never updated.

You'll have to get the actual sort order from the collection itself.

var descending:Boolean = false;
var s:Sort = collection.sort;
var fields:Array = s.fields;
for (var i = 0; i  fields.length; i++)
if (fields[i].name == dataField)
descending = fields[i].descending

// now you have the value

On 4/25/07, Sergey Kovalyov [EMAIL 
PROTECTED]skovalyov.flexcoders%40gmail.com
wrote:

 Hi All!

 I have defined my own handler for the headerRelease event in order to
 perform custom server-side sorting, since my DataGrid is pagable. In
order
 to do that I get the field from event.dataField and and order from
 DataGridColumn(DataGrid(event.target).columns[event.columnIndex
]).sortDescending,
 though sortDescending is false after first and second clicks. Why?

 Sergey.





Re: [flexcoders] FileReferenceList

2007-04-26 Thread Abdul Qabiz


1. how to trace values in console panel?



Use trace (..) statement. You might need to  configure/create mm.cfg on your
machine. Check this link:

http://livedocs.adobe.com/flex/201/html/logging_125_04.html

2. I have to create flv palyer in Apollo.


Read the documentation and write it. Check out how other folks have done:

http://theflexblog.com/?p=21

It's pretty simple but depends what all functionalities you are looking.


I'm getting problem in storing path of files which are selected by user in

an array so that i can play them one by one.



You need to read more and learn fundamentals and keep trying.

-abdul






On 4/26/07, kanu kukreja [EMAIL PROTECTED] wrote:


  Hello everyone,
being new to flex i have so many queries in this.

1. how to trace values in console panel?
2. I have to create flv palyer in Apollo.

   I'm getting problem in storing path of files which are selected by user
in an array so that i can play them one by one.

till selection of files i'm done but storing path is an issue.

I hope you all help me out in this ASAP.


*Best Regards*
*Kanu Kukreja*

--
Ahhh...imagining that irresistible new car smell?
Check out new cars at Yahoo! 
Autos.http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-

 



[flexcoders] Is it possible to buile a parameter list programatically

2007-04-26 Thread hank williams

I want to call a function, call it foo in a circumstance where, at compile
time, I dont know what the parameters to foo are going to be. In the past
perhaps I could have used something like Eval to construct the call, but
that is no longer available.

As an example, in one circumstance I might want to call:

foo(a);

and in another circumstance I would want to call

foo(a,b)

but in each case the exact number of parameters is indeterminate and must be
constructed on the fly. Unfortunately, I cannot pass an array into foo, I
must actually have an independent parameter for each passed value.

Any ideas?

Thanks,
Hank


Re: [flexcoders] Problem using a subclass of ComboBox in actionscript

2007-04-26 Thread Abdul Qabiz

Can you share the code? That helps understanding whats wrong..

It might be something with subclass code or the way you are trying to
instantiate.

-abdul

On 4/26/07, johnknyc [EMAIL PROTECTED] wrote:


  Hi all,

I created a AS subclass of ComboBox. I can use the subclass in MXML,
however when I try to instantiate the subclass in AS, it comes up
blank when I run the app.

I tried running a trace in the subclass's constructor, and it seems
the constructor is not even being called.

Any ideas?

 



[flexcoders] Re: Is it possible to buile a parameter list programatically

2007-04-26 Thread Doug Lowder
Sounds like you may be able to use ...rest for that.
http://livedocs.adobe.com/flex/201/langref/statements.html#..._(rest)
_parameter


--- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] 
wrote:

 I want to call a function, call it foo in a circumstance where, 
at compile
 time, I dont know what the parameters to foo are going to be. In 
the past
 perhaps I could have used something like Eval to construct the 
call, but
 that is no longer available.
 
 As an example, in one circumstance I might want to call:
 
 foo(a);
 
 and in another circumstance I would want to call
 
 foo(a,b)
 
 but in each case the exact number of parameters is indeterminate 
and must be
 constructed on the fly. Unfortunately, I cannot pass an array into 
foo, I
 must actually have an independent parameter for each passed value.
 
 Any ideas?
 
 Thanks,
 Hank





[flexcoders] Re: Setting the $title field in index .template.html

2007-04-26 Thread Doug Lowder
You can set it via the pageTitle property of the Application tag.  Are 
you specifically looking for something other than that?


--- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED] 
wrote:

 where do I set the field $title which is referred to at the top of the
 template filed used to generate index.html?





[flexcoders] Different webservice results in IE and Firefox

2007-04-26 Thread manfred.maierhofer
Hey guys,
I have a really strange problem.

I use SOAP webservices to access data from a SAP server. The problem
is, I get different resultsets in IE and Firefox.

There are no error messages or anything comparable.

I use an event handler to read the data form the webservice result
event into a internal model variable. If I debug and set a breakpoint
to read the data directly from the result event the tables have
different entrys. In one column in Firefox a few row items are just
cleared instead of filled with text as in IE.

Has anybody already seen comparable problems??

Thanks for any suggestion, I am really confused.

Greets,
Mane



[flexcoders] expand tree when selectedItem is changed (Cairngorm)

2007-04-26 Thread Sebastian Feher
I have an explorer view with a tree on the left hand side and a list on 
the right. While navigating across the tree (can be done from both 
views) when changing the location on the right I select(synchronize) 
the new location in the tree through databinding by setting the 
selectedItem. 

Here's where I'm stuck: how do I expand the tree so the new selection 
is visible? Can I somehow listen for an itemSelected event?

The views do not communicate other than by sending events (event-model-
view).

Any ideas?

Sebi




Re: [flexcoders] Re: Is it possible to buile a parameter list programatically

2007-04-26 Thread Troy Gilbert

Look up the Function class in your favorite API reference, and check out its
apply method... it'll let you call a function with an array of arguments.

Troy.


On 4/26/07, Doug Lowder [EMAIL PROTECTED] wrote:


  Sounds like you may be able to use ...rest for that.
http://livedocs.adobe.com/flex/201/langref/statements.html#..._(rest)
_parameter

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, hank
williams [EMAIL PROTECTED]
wrote:

 I want to call a function, call it foo in a circumstance where,
at compile
 time, I dont know what the parameters to foo are going to be. In
the past
 perhaps I could have used something like Eval to construct the
call, but
 that is no longer available.

 As an example, in one circumstance I might want to call:

 foo(a);

 and in another circumstance I would want to call

 foo(a,b)

 but in each case the exact number of parameters is indeterminate
and must be
 constructed on the fly. Unfortunately, I cannot pass an array into
foo, I
 must actually have an independent parameter for each passed value.

 Any ideas?

 Thanks,
 Hank


 



Re: [flexcoders] Different webservice results in IE and Firefox

2007-04-26 Thread Abdul Qabiz

hmm...I have never seen such problem?

What do you see if you look at HTTP traffic using firebug or
livehttpheaders?

Do you recieve same or different data before it goes to Flash Player?

-abdul

On 4/27/07, manfred.maierhofer [EMAIL PROTECTED] wrote:


  Hey guys,
I have a really strange problem.

I use SOAP webservices to access data from a SAP server. The problem
is, I get different resultsets in IE and Firefox.

There are no error messages or anything comparable.

I use an event handler to read the data form the webservice result
event into a internal model variable. If I debug and set a breakpoint
to read the data directly from the result event the tables have
different entrys. In one column in Firefox a few row items are just
cleared instead of filled with text as in IE.

Has anybody already seen comparable problems??

Thanks for any suggestion, I am really confused.

Greets,
Mane

 



Re: [flexcoders] Re: Module GC question

2007-04-26 Thread Erik Price
On 4/26/07, kyle.vanvranken [EMAIL PROTECTED] wrote:
 UPDATE: So it would seem the hack method of forcing garbage collection
 for my test was actually causing the trouble.

 -
 try {
   new LocalConnection().connect('foo');
   new LocalConnection().connect('foo');
 } catch (e:*) {}
 -

 Without that code it seems to be working nicely now. I've had a test
 app running on my machine now for a bit with a timer every couple
 seconds reloading the simple module and it appears to be working as
 intended now. I don't really understand why forcing GC was causing it
 to eat up more memory then not forcing, but I am sufficiently
 satisfied that it seems to be working.

How are you sure that the hack was actually causing GC?  Is that
documented anywhere?

e


Re: [flexcoders] Re: Is it possible to buile a parameter list programatically

2007-04-26 Thread hank williams

I should have explained that I cant use apply because it is a proxyed
function so it doesnt really exist. I am trying to do this with remoteObject
so the actual function I am calling is not real but is handled by an
overridden callProperty function.

Hank

On 4/26/07, Troy Gilbert [EMAIL PROTECTED] wrote:


  Look up the Function class in your favorite API reference, and check out
its apply method... it'll let you call a function with an array of
arguments.

Troy.



On 4/26/07, Doug Lowder [EMAIL PROTECTED] wrote:

   Sounds like you may be able to use ...rest for that.
 http://livedocs.adobe.com/flex/201/langref/statements.html#..._(rest)
 _parameter

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, hank
 williams [EMAIL PROTECTED]
 wrote:
 
  I want to call a function, call it foo in a circumstance where,
 at compile
  time, I dont know what the parameters to foo are going to be. In
 the past
  perhaps I could have used something like Eval to construct the
 call, but
  that is no longer available.
 
  As an example, in one circumstance I might want to call:
 
  foo(a);
 
  and in another circumstance I would want to call
 
  foo(a,b)
 
  but in each case the exact number of parameters is indeterminate
 and must be
  constructed on the fly. Unfortunately, I cannot pass an array into
 foo, I
  must actually have an independent parameter for each passed value.
 
  Any ideas?
 
  Thanks,
  Hank
 


 



[flexcoders] mx:Model to VO

2007-04-26 Thread targetplanet
I read a tutorial last week about linking an mx:Model tag to a AS
Value Object class, and I can not find that tutorial again for the
life of me...
So does anyone know how this is done, or know where the tut is?
Thanks 
Russ



[flexcoders] mx:Model to VO

2007-04-26 Thread Russell Sprague
I read a tutorial last week about connecting a mx:Model tag to an AS 
Value Object.  I can't for the life of me find that tut again.
Does any one know how to do this, or know of a/the tutorial?

Thanks
Russ


[flexcoders] Will ECMAScript ever support abstract classes?

2007-04-26 Thread ben.clinkinbeard
I've found myself wishing we had them on multiple occasions, so I am
just wondering if anyone in the know can tell me if its been
proposed/considered/denied.

Thanks,
Ben



[flexcoders] Re: expand tree when selectedItem is changed (Cairngorm)

2007-04-26 Thread Sebastian Feher
--- In flexcoders@yahoogroups.com, Sebastian Feher [EMAIL PROTECTED] 
wrote:

 I have an explorer view with a tree on the left hand side and a 
list on 
 the right. While navigating across the tree (can be done from both 
 views) when changing the location on the right I select
(synchronize) 
 the new location in the tree through databinding by setting the 
 selectedItem. 
 
 Here's where I'm stuck: how do I expand the tree so the new 
selection 
 is visible? Can I somehow listen for an itemSelected event?
 
 The views do not communicate other than by sending events (event-
model-
 view).
 
 Any ideas?
 
 Sebi


Not sure if this is good practice .. but ChangeWatcher.watch() seems 
to do the trick.



[flexcoders] accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread hank williams

Does anybody have any example on how to access amf3 remote services, which
need to deal with new concepts like destination, using a netConnection
call? I am finding that remoteObject doesnt do everything I need.

Thanks
Hank


[flexcoders] Re: Round corners with Tab Navigator

2007-04-26 Thread scalenine
Try this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:TabNavigator horizontalCenter=0 verticalCenter=0
resizeToContent=true cornerRadius=10 paddingTop=0
paddingRight=10 paddingBottom=10
mx:Canvas label=Tab 1 width=300 height=300
backgroundColor=#ff/
mx:Canvas label=Tab 2 width=300 height=200
backgroundColor=#ff/
mx:Canvas label=Tab 3 width=300 height=100
backgroundColor=#ff/
mx:Canvas label=Tab 4 width=300 height=50
backgroundColor=#ff/
/mx:TabNavigator
/mx:Application

I just added a white fill color and some padding to the bottom and top
of the tab navigator. The only thing is a small gap in the border on
the left where the TabNav corner curves.

The other thing you could do is create an image to use as the
background with some 9-slice proerties on it that has 3 rounded
corners and one not.

Or check out some custom border components out there that might help
you get the effect your looking for.

Juan
scalenine.com

--- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote:

 
 Hello,
 
 I am trying to use rounded corners (cornerRadius) on a tab navigator.
 Unfortunately it also rounds the upper left corner of the first canvas
 which makes it unsightly. One could use paddingLeft to move the tabs a
 little to the right, but that doesn't look to great either. One could
 underlay the tab navigator at the upper left corner with a
 mini-canvas, but that only works, if you have no border. I need a solid
 border...
 
 Has anyone come up with a good solution for this?
 
 Thanks a mill..





Re: [flexcoders] Will ECMAScript ever support abstract classes?

2007-04-26 Thread Yiðit Boyar
and function overloading (like in c++) ??

- Original Message 
From: ben.clinkinbeard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, April 26, 2007 11:30:31 PM
Subject: [flexcoders] Will ECMAScript ever support abstract classes?









  



I've found myself wishing we had them on multiple occasions, so I am

just wondering if anyone in the know can tell me if its been

proposed/considered /denied.



Thanks,

Ben






  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a {
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc {
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--







__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: [flexcoders] accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread Samuel R. Neff
 
It's not well documented, but basically you create a NetConnection, set the
encoding, and run NetConnection.call() where the first param is the fully
qualified class and method name and remaining params are the params to pass
on to the server side method.
 
See classes below (watch wrapping).
 
HTH,
 
Sam
 

---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
  

 package com.atellis.rpc
{
import flash.net.*;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.AsyncToken;
import mx.rpc.events.ResultEvent;

public class RemotingServiceBase extends EventDispatcher
{
private var _connection:NetConnection;
private var _remoteClassName:String;

public function RemotingServiceBase(remoteClassName:String,
encoding:uint = 3) {

_remoteClassName = remoteClassName;

_connection = new NetConnection();
_connection.objectEncoding = encoding;
_connection.connect(URLInfo.instance.gatewayUrl);
}

protected function callService(method:String,
eventPrefix:String, responder:Function, fault:Function, ... rest):AsyncToken
{

var token:AsyncToken = new AsyncToken(null);

var r:DispatchingResponder = new
DispatchingResponder(

this,

eventPrefix,

token,

responder,

fault);


var a:Array = new Array(rest.length + 2);
a[0] = _remoteClassName + . + method;
a[1] = r;
var i:uint = 2;
for each(var o:Object in rest) {
a[i++] = o;
}
_connection.call.apply(_connection, a);
return token;
}

}
}




package com.atellis.rpc
{
import flash.net.Responder;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.events.ResultEvent;
import mx.rpc.AsyncToken;
import mx.rpc.events.FaultEvent;
import mx.rpc.Fault;

public class DispatchingResponder extends Responder
{
private var _eventDispatcher:EventDispatcher;
private var _eventPrefix:String;
private var _token:AsyncToken;
private var _responder:Function;
private var _fault:Function;

public function DispatchingResponder(

eventDispatcher:EventDispatcher, 

eventPrefix:String, 

token:AsyncToken,

responder:Function, 

fault:Function) {
super(doRelay, doFault);
_eventDispatcher = eventDispatcher;
_eventPrefix = eventPrefix;
_responder = responder;
_fault = fault;
_token = token;
}

private function doRelay(... rest):void {
var event:ResultEvent = new ResultEvent(

_eventPrefix + Result, 

false, 

false, 

rest == null || rest.length != 1 ? rest : rest[0],

_token, 

null);


_eventDispatcher.dispatchEvent(event);
if (_responder != null) {
_responder(event);
}
}

private function doFault(netFault:Object):void {
var f:Fault;

if(netFault) {
var typ:Array = netFault.type.split(.);

f = new Fault(typ[typ.length - 1],
netFault.description, netFault.details);
} else {
f = new Fault(Unkown, An error occurred
and no fault details are available, Unknown);
}
var event:FaultEvent = new FaultEvent(_eventPrefix +
Fault, false, false, f, _token, null);
_eventDispatcher.dispatchEvent(event);
if (_fault != null) {
_fault(event);
}
}
}
}







From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hank williams
Sent: Thursday, April 26, 2007 4:38 PM
To: 

Re: [flexcoders] accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread hank williams

Thanks Sam!

One question. Is there any way to use the destination concept since I
already have all of that defined on the FDS/Server side of things?

Thanks
Hank

On 4/26/07, Samuel R. Neff [EMAIL PROTECTED] wrote:



It's not well documented, but basically you create a NetConnection, set
the
encoding, and run NetConnection.call() where the first param is the fully
qualified class and method name and remaining params are the params to
pass
on to the server side method.

See classes below (watch wrapping).

HTH,

Sam


---
We're Hiring! Seeking a passionate developer to join our team building
Flex
based products. Position is in the Washington D.C. metro area. If
interested
contact [EMAIL PROTECTED] careers%40blinemedical.com


package com.atellis.rpc
{
import flash.net.*;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.AsyncToken;
import mx.rpc.events.ResultEvent;

public class RemotingServiceBase extends EventDispatcher
{
private var _connection:NetConnection;
private var _remoteClassName:String;

public function RemotingServiceBase(remoteClassName:String,
encoding:uint = 3) {

_remoteClassName = remoteClassName;

_connection = new NetConnection();
_connection.objectEncoding = encoding;
_connection.connect(URLInfo.instance.gatewayUrl);
}

protected function callService(method:String,
eventPrefix:String, responder:Function, fault:Function, ...
rest):AsyncToken
{

var token:AsyncToken = new AsyncToken(null);

var r:DispatchingResponder = new
DispatchingResponder(

this,

eventPrefix,

token,

responder,

fault);


var a:Array = new Array(rest.length + 2);
a[0] = _remoteClassName + . + method;
a[1] = r;
var i:uint = 2;
for each(var o:Object in rest) {
a[i++] = o;
}
_connection.call.apply(_connection, a);
return token;
}

}
}

package com.atellis.rpc
{
import flash.net.Responder;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.events.ResultEvent;
import mx.rpc.AsyncToken;
import mx.rpc.events.FaultEvent;
import mx.rpc.Fault;

public class DispatchingResponder extends Responder
{
private var _eventDispatcher:EventDispatcher;
private var _eventPrefix:String;
private var _token:AsyncToken;
private var _responder:Function;
private var _fault:Function;

public function DispatchingResponder(

eventDispatcher:EventDispatcher,

eventPrefix:String,

token:AsyncToken,

responder:Function,

fault:Function) {
super(doRelay, doFault);
_eventDispatcher = eventDispatcher;
_eventPrefix = eventPrefix;
_responder = responder;
_fault = fault;
_token = token;
}

private function doRelay(... rest):void {
var event:ResultEvent = new ResultEvent(

_eventPrefix + Result,

false,

false,

rest == null || rest.length != 1 ? rest : rest[0],

_token,

null);


_eventDispatcher.dispatchEvent(event);
if (_responder != null) {
_responder(event);
}
}

private function doFault(netFault:Object):void {
var f:Fault;

if(netFault) {
var typ:Array = netFault.type.split(.);

f = new Fault(typ[typ.length - 1],
netFault.description, netFault.details);
} else {
f = new Fault(Unkown, An error occurred
and no fault details are available, Unknown);
}
var event:FaultEvent = new FaultEvent(_eventPrefix +
Fault, false, false, f, _token, null);
_eventDispatcher.dispatchEvent(event);
if (_fault != null) {
_fault(event);
}
}
}
}



From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of hank williams
Sent: Thursday, April 26, 2007 4:38 PM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] accessing amf3 remote services using netConnection
instead of removteObject


Does anybody have any example on how to access amf3 remote services, which
need to deal with new concepts like destination, using a netConnection
call? I am finding that remoteObject doesnt do everything I need.

Thanks
Hank

 



[flexcoders] FF and Java sessions

2007-04-26 Thread Dimitrios Gianninas
As some of you may already know, when performing a file upload with Flex to a 
Java servlet, a new session is created not matching the existing session the 
user has with the server when their Flex app actually loads. 
 
I've read some posts and see that ppl are appending the JSESSIONID to the url 
to get the same session to be used by the server when an upload request is sent 
by a Flex app. By doing:
 
var req:URLRequest = new URLRequest(/billing/servlet/FileSvlt;JSESSIONID= + 
jSessionId);
 
But this doesnt work for me any reason why? something I am doing wrong?
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 

-- 
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] Re: accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread Mark Piller
Hi Hank,

Is the end goal to route the invocation via RTMP? 

Cheers,
Mark

--- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] wrote:

 Thanks Sam!
 
 One question. Is there any way to use the destination concept since I
 already have all of that defined on the FDS/Server side of things?
 
 Thanks
 Hank
 
 On 4/26/07, Samuel R. Neff [EMAIL PROTECTED] wrote:
 
 
  It's not well documented, but basically you create a
NetConnection, set
  the
  encoding, and run NetConnection.call() where the first param is
the fully
  qualified class and method name and remaining params are the params to
  pass
  on to the server side method.
 
  See classes below (watch wrapping).
 
  HTH,
 
  Sam
 
 
  ---
  We're Hiring! Seeking a passionate developer to join our team building
  Flex
  based products. Position is in the Washington D.C. metro area. If
  interested
  contact [EMAIL PROTECTED] careers%40blinemedical.com
 
 
  package com.atellis.rpc
  {
  import flash.net.*;
  import flash.events.EventDispatcher;
  import flash.events.Event;
  import mx.rpc.AsyncToken;
  import mx.rpc.events.ResultEvent;
 
  public class RemotingServiceBase extends EventDispatcher
  {
  private var _connection:NetConnection;
  private var _remoteClassName:String;
 
  public function RemotingServiceBase(remoteClassName:String,
  encoding:uint = 3) {
 
  _remoteClassName = remoteClassName;
 
  _connection = new NetConnection();
  _connection.objectEncoding = encoding;
  _connection.connect(URLInfo.instance.gatewayUrl);
  }
 
  protected function callService(method:String,
  eventPrefix:String, responder:Function, fault:Function, ...
  rest):AsyncToken
  {
 
  var token:AsyncToken = new AsyncToken(null);
 
  var r:DispatchingResponder = new
  DispatchingResponder(
 
  this,
 
  eventPrefix,
 
  token,
 
  responder,
 
  fault);
 
 
  var a:Array = new Array(rest.length + 2);
  a[0] = _remoteClassName + . + method;
  a[1] = r;
  var i:uint = 2;
  for each(var o:Object in rest) {
  a[i++] = o;
  }
  _connection.call.apply(_connection, a);
  return token;
  }
 
  }
  }
 
  package com.atellis.rpc
  {
  import flash.net.Responder;
  import flash.events.EventDispatcher;
  import flash.events.Event;
  import mx.rpc.events.ResultEvent;
  import mx.rpc.AsyncToken;
  import mx.rpc.events.FaultEvent;
  import mx.rpc.Fault;
 
  public class DispatchingResponder extends Responder
  {
  private var _eventDispatcher:EventDispatcher;
  private var _eventPrefix:String;
  private var _token:AsyncToken;
  private var _responder:Function;
  private var _fault:Function;
 
  public function DispatchingResponder(
 
  eventDispatcher:EventDispatcher,
 
  eventPrefix:String,
 
  token:AsyncToken,
 
  responder:Function,
 
  fault:Function) {
  super(doRelay, doFault);
  _eventDispatcher = eventDispatcher;
  _eventPrefix = eventPrefix;
  _responder = responder;
  _fault = fault;
  _token = token;
  }
 
  private function doRelay(... rest):void {
  var event:ResultEvent = new ResultEvent(
 
  _eventPrefix + Result,
 
  false,
 
  false,
 
  rest == null || rest.length != 1 ? rest : rest[0],
 
  _token,
 
  null);
 
 
  _eventDispatcher.dispatchEvent(event);
  if (_responder != null) {
  _responder(event);
  }
  }
 
  private function doFault(netFault:Object):void {
  var f:Fault;
 
  if(netFault) {
  var typ:Array = netFault.type.split(.);
 
  f = new Fault(typ[typ.length - 1],
  netFault.description, netFault.details);
  } else {
  f = new Fault(Unkown, An error occurred
  and no fault details are available, Unknown);
  }
  var event:FaultEvent = new FaultEvent(_eventPrefix +
  Fault, false, false, f, _token, null);
  _eventDispatcher.dispatchEvent(event);
  if (_fault != null) {
  _fault(event);
  }
  }
  }
  }
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
[mailto:
  flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of hank williams
  Sent: Thursday, April 26, 2007 4:38 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] accessing amf3 remote services using
netConnection
  instead of removteObject
 
 
  Does anybody have any example on how to access amf3 remote
services, which
  need to deal with new concepts like destination, using a
netConnection
  call? I am finding that remoteObject doesnt do everything I need.
 
  Thanks
  Hank
 
   
 





RE: [flexcoders] Will ECMAScript ever support abstract classes?

2007-04-26 Thread Matt Chotin
You can see an export of the Wiki which contains a lot of these
discussions here: http://developer.mozilla.org/es4/
 
Both overloading and abstract :-)



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Thursday, April 26, 2007 1:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Will ECMAScript ever support abstract classes?



I've found myself wishing we had them on multiple occasions, so I am
just wondering if anyone in the know can tell me if its been
proposed/considered/denied.

Thanks,
Ben



 


Re: [flexcoders] Re: accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread hank williams

Hey Mark,

No I am really just trying to create a very compact replacement for
remoteObject. I want to create a single function that can do everything that
remoteObject does with instantiation setting destinations and listeners etc.
The problem is that actually invoking the remote function cant be done with
an args array with remote object.

The reason I want to do all of this is to bottleneck all remoting calls in
this library I am building in one place. It is being ported to an alternate
platform and device and all the remoting stuff is going to have to be
swapped out so I want to have it exist in one place and have all the pieces
of the code that need it to use this one routine. Because of the args issue
above remoteObject doesnt lend itself to this strategy.

Hank

On 4/26/07, Mark Piller [EMAIL PROTECTED] wrote:


  Hi Hank,

Is the end goal to route the invocation via RTMP?

Cheers,
Mark

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, hank
williams [EMAIL PROTECTED] wrote:

 Thanks Sam!

 One question. Is there any way to use the destination concept since I
 already have all of that defined on the FDS/Server side of things?

 Thanks
 Hank

 On 4/26/07, Samuel R. Neff [EMAIL PROTECTED] wrote:
 
 
  It's not well documented, but basically you create a
NetConnection, set
  the
  encoding, and run NetConnection.call() where the first param is
the fully
  qualified class and method name and remaining params are the params to
  pass
  on to the server side method.
 
  See classes below (watch wrapping).
 
  HTH,
 
  Sam
 
 
  ---
  We're Hiring! Seeking a passionate developer to join our team building
  Flex
  based products. Position is in the Washington D.C. metro area. If
  interested
  contact [EMAIL PROTECTED] careers%40blinemedical.com

 
 
  package com.atellis.rpc
  {
  import flash.net.*;
  import flash.events.EventDispatcher;
  import flash.events.Event;
  import mx.rpc.AsyncToken;
  import mx.rpc.events.ResultEvent;
 
  public class RemotingServiceBase extends EventDispatcher
  {
  private var _connection:NetConnection;
  private var _remoteClassName:String;
 
  public function RemotingServiceBase(remoteClassName:String,
  encoding:uint = 3) {
 
  _remoteClassName = remoteClassName;
 
  _connection = new NetConnection();
  _connection.objectEncoding = encoding;
  _connection.connect(URLInfo.instance.gatewayUrl);
  }
 
  protected function callService(method:String,
  eventPrefix:String, responder:Function, fault:Function, ...
  rest):AsyncToken
  {
 
  var token:AsyncToken = new AsyncToken(null);
 
  var r:DispatchingResponder = new
  DispatchingResponder(
 
  this,
 
  eventPrefix,
 
  token,
 
  responder,
 
  fault);
 
 
  var a:Array = new Array(rest.length + 2);
  a[0] = _remoteClassName + . + method;
  a[1] = r;
  var i:uint = 2;
  for each(var o:Object in rest) {
  a[i++] = o;
  }
  _connection.call.apply(_connection, a);
  return token;
  }
 
  }
  }
 
  package com.atellis.rpc
  {
  import flash.net.Responder;
  import flash.events.EventDispatcher;
  import flash.events.Event;
  import mx.rpc.events.ResultEvent;
  import mx.rpc.AsyncToken;
  import mx.rpc.events.FaultEvent;
  import mx.rpc.Fault;
 
  public class DispatchingResponder extends Responder
  {
  private var _eventDispatcher:EventDispatcher;
  private var _eventPrefix:String;
  private var _token:AsyncToken;
  private var _responder:Function;
  private var _fault:Function;
 
  public function DispatchingResponder(
 
  eventDispatcher:EventDispatcher,
 
  eventPrefix:String,
 
  token:AsyncToken,
 
  responder:Function,
 
  fault:Function) {
  super(doRelay, doFault);
  _eventDispatcher = eventDispatcher;
  _eventPrefix = eventPrefix;
  _responder = responder;
  _fault = fault;
  _token = token;
  }
 
  private function doRelay(... rest):void {
  var event:ResultEvent = new ResultEvent(
 
  _eventPrefix + Result,
 
  false,
 
  false,
 
  rest == null || rest.length != 1 ? rest : rest[0],
 
  _token,
 
  null);
 
 
  _eventDispatcher.dispatchEvent(event);
  if (_responder != null) {
  _responder(event);
  }
  }
 
  private function doFault(netFault:Object):void {
  var f:Fault;
 
  if(netFault) {
  var typ:Array = netFault.type.split(.);
 
  f = new Fault(typ[typ.length - 1],
  netFault.description, netFault.details);
  } else {
  f = new Fault(Unkown, An error occurred
  and no fault details are available, Unknown);
  }
  var event:FaultEvent = new FaultEvent(_eventPrefix +
  Fault, false, false, f, _token, null);
  _eventDispatcher.dispatchEvent(event);
  if (_fault != null) {
  _fault(event);
  }
  }
  }
  }
 
  
 
  From: flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
[mailto:
  flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com] On
  Behalf Of hank williams
  Sent: Thursday, April 26, 2007 4:38 PM
  To: flexcoders@yahoogroups.com 

[flexcoders] How do I load variables from a loaded swf?

2007-04-26 Thread Johannes Boyne
Hey,

my problem is this:

I have loaded a SWF(Flash9)-File in to my Flex App.
Now I want to load some variables out of the SWF-File, but I 
haven't the faintest idea how to do this on an elegant and 
performance full way.

Thanks!

Johannes


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Click through a Container

2007-04-26 Thread Claudia Barnal
Hi,

How can I click through a Container (Canvas in my case) that has a
backgroundColor set and a 0.2 backgroundAlpha.

I want to be able to interact with a button that is under the Container.

Thanks,
Claudia


Re: [flexcoders] Re: Module GC question

2007-04-26 Thread jake247
Could you elaborate a bit more on why you think the GC hack was causing 
problems?  We're considering using it for a significant memory leak problem 
we're having ...

Thanks,

  -- Jeff Hindman

 kyle.vanvranken [EMAIL PROTECTED] wrote: 
 UPDATE: So it would seem the hack method of forcing garbage collection
 for my test was actually causing the trouble.
 
 -
 try {
   new LocalConnection().connect('foo');
   new LocalConnection().connect('foo');
 } catch (e:*) {}
 -
 
 Without that code it seems to be working nicely now. I've had a test
 app running on my machine now for a bit with a timer every couple
 seconds reloading the simple module and it appears to be working as
 intended now. I don't really understand why forcing GC was causing it
 to eat up more memory then not forcing, but I am sufficiently
 satisfied that it seems to be working.
 



RE: [flexcoders] Click through a Container

2007-04-26 Thread Gordon Smith
I don't think this is easy to do. How much interactivity with the Button
do you actually need? When you roll over the button, do you need it to
highlight? When you click, do you need the button to depress? Or do you
just need the button's click handler to execute?
 
And I'm curious... why do you need to have a translucent Canvas over a
Button?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudia Barnal
Sent: Thursday, April 26, 2007 3:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Click through a Container



Hi,

How can I click through a Container (Canvas in my case) that has a
backgroundColor set and a 0.2 backgroundAlpha.

I want to be able to interact with a button that is under the Container.

Thanks,
Claudia


 


[flexcoders] Re: accessing amf3 remote services using netConnection instead of removteObject

2007-04-26 Thread Mark Piller
Hey Hank,

I know you can invoke a remote object and pass the args in an array.
We just did this very thing in our data management implementation.
Here's some reference code:

// create remote object. 
// notice the placeholder for the DESTINATION_NAME
var channelSet:ChannelSet = new ChannelSet();
var channel:Channel = ServerConfig.getChannel( my-amf );
channelSet.addChannel(channel);
var remoteObject:RemoteObject = new RemoteObject( DESTINATION_NAME );
 
remoteObject.channelSet = channelSet;

var remoteMethod:AbstractOperation;
// get a reference to the operation. 
remoteMethod=remoteObject.getOperation( METHOD_YOU_NEED_TO_INVOKE );
// set the arguments. Notice it is an array
remoteMethod.arguments = args;
// invoke the function, get asyncToken
var asyncToken:AsyncToken = remoteMethod.send();

Hope this helps. Let me know if I am not answering your question :)

Thanks,
Mark


--- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] wrote:

 Hey Mark,
 
 No I am really just trying to create a very compact replacement for
 remoteObject. I want to create a single function that can do
everything that
 remoteObject does with instantiation setting destinations and
listeners etc.
 The problem is that actually invoking the remote function cant be
done with
 an args array with remote object.
 
 The reason I want to do all of this is to bottleneck all remoting
calls in
 this library I am building in one place. It is being ported to an
alternate
 platform and device and all the remoting stuff is going to have to be
 swapped out so I want to have it exist in one place and have all the
pieces
 of the code that need it to use this one routine. Because of the
args issue
 above remoteObject doesnt lend itself to this strategy.
 
 Hank
 
 On 4/26/07, Mark Piller [EMAIL PROTECTED] wrote:
 
Hi Hank,
 
  Is the end goal to route the invocation via RTMP?
 
  Cheers,
  Mark
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
hank
  williams hank777@ wrote:
  
   Thanks Sam!
  
   One question. Is there any way to use the destination concept
since I
   already have all of that defined on the FDS/Server side of things?
  
   Thanks
   Hank
  
   On 4/26/07, Samuel R. Neff srneff.lists@ wrote:
   
   
It's not well documented, but basically you create a
  NetConnection, set
the
encoding, and run NetConnection.call() where the first param is
  the fully
qualified class and method name and remaining params are the
params to
pass
on to the server side method.
   
See classes below (watch wrapping).
   
HTH,
   
Sam
   
   
---
We're Hiring! Seeking a passionate developer to join our team
building
Flex
based products. Position is in the Washington D.C. metro area. If
interested
contact careers@ careers%40blinemedical.com
 
   
   
package com.atellis.rpc
{
import flash.net.*;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.AsyncToken;
import mx.rpc.events.ResultEvent;
   
public class RemotingServiceBase extends EventDispatcher
{
private var _connection:NetConnection;
private var _remoteClassName:String;
   
public function RemotingServiceBase(remoteClassName:String,
encoding:uint = 3) {
   
_remoteClassName = remoteClassName;
   
_connection = new NetConnection();
_connection.objectEncoding = encoding;
_connection.connect(URLInfo.instance.gatewayUrl);
}
   
protected function callService(method:String,
eventPrefix:String, responder:Function, fault:Function, ...
rest):AsyncToken
{
   
var token:AsyncToken = new AsyncToken(null);
   
var r:DispatchingResponder = new
DispatchingResponder(
   
this,
   
eventPrefix,
   
token,
   
responder,
   
fault);
   
   
var a:Array = new Array(rest.length + 2);
a[0] = _remoteClassName + . + method;
a[1] = r;
var i:uint = 2;
for each(var o:Object in rest) {
a[i++] = o;
}
_connection.call.apply(_connection, a);
return token;
}
   
}
}
   
package com.atellis.rpc
{
import flash.net.Responder;
import flash.events.EventDispatcher;
import flash.events.Event;
import mx.rpc.events.ResultEvent;
import mx.rpc.AsyncToken;
import mx.rpc.events.FaultEvent;
import mx.rpc.Fault;
   
public class DispatchingResponder extends Responder
{
private var _eventDispatcher:EventDispatcher;
private var _eventPrefix:String;
private var _token:AsyncToken;
private var _responder:Function;
private var _fault:Function;
   
public function DispatchingResponder(
   
eventDispatcher:EventDispatcher,
   
eventPrefix:String,
   
token:AsyncToken,
   
responder:Function,
   
fault:Function) {
super(doRelay, doFault);
_eventDispatcher = eventDispatcher;
_eventPrefix = eventPrefix;
_responder = 

Re: [flexcoders] Click through a Container

2007-04-26 Thread Claudia Barnal

Hi Gordon,

I do need as much interactivity as possible :)

Isn't there something like turn shield on or off? I noticed that if you
don't define a background color or alpha, you can interact with the button.

As for the actual WHY question... the answer is: The designer wants it.
It is really not just one button under the translucent piece... it is a part
of the application, and the button and other controls happens to be right
there.

Thanks,
Claudia

On 4/26/07, Gordon Smith [EMAIL PROTECTED] wrote:


   I don't think this is easy to do. How much interactivity with the
Button do you actually need? When you roll over the button, do you need it
to highlight? When you click, do you need the button to depress? Or do you
just need the button's click handler to execute?

And I'm curious... why do you need to have a translucent Canvas over a
Button?

- Gordon

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Claudia Barnal
*Sent:* Thursday, April 26, 2007 3:30 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Click through a Container

 Hi,

How can I click through a Container (Canvas in my case) that has a
backgroundColor set and a 0.2 backgroundAlpha.

I want to be able to interact with a button that is under the Container.

Thanks,
Claudia

 



Re: [flexcoders] Error #1034: Type Coercion failed

2007-04-26 Thread Michael Wills
Would it help to make your HTTPService resultFormat e4x and not use 
mx:Model for categorienAC, but rather use an XMLList?


mx:Script
![CDATA[
*  var **categorienAC  : XMLList = new XMLList();*
 private function xmlLoaded():void {
   categorienAC = srv.lastResult.categorien.categorie;
 }
]]
/mx:Script

mx:HTTPService id=srv url=categorien.xml useProxy=false
result=xmlLoaded(); *resultFormat=e4x*/

Hope that helps,

Michael

rdeijkers wrote:


I'm trying to fill a Tile with the contents of an xml file. This is my
mxml code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml

layout=absolute width=100% height=100% backgroundAlpha=0
applicationComplete=srv.send(); horizontalScrollPolicy=off
verticalScrollPolicy=off
mx:Script
![CDATA[
private function xmlLoaded():void {
categorienAC = srv.lastResult.categorien.categorie;
}
]]
/mx:Script

mx:Model id=categorienAC/
mx:HTTPService id=srv url=categorien.xml useProxy=false
result=xmlLoaded(); /
mx:Tile label=categorienTile width=945 height=100%
backgroundColor=#FF
mx:Repeater id=list dataProvider={categorienAC}
mx:VBox backgroundColor=#00
mx:Image source={list.currentItem.foto} width=75 height=70/
mx:Label text={list.currentItem.naam}/
/mx:VBox
/mx:Repeater
/mx:Tile
/mx:Application

My XML looks like this:

categorien
categorie id=19
naam/naam
omschrijvingtest/omschrijving
foto/foto
/categorie categorie id=1
naamArizona/naam

omschrijvingtest/omschrijving
foto/foto
/categorie categorie id=36
naamARIZONA / GREY/naam
omschrijving/omschrijving
foto/foto
/categorie categorie id=20

naamAtrium/naam
omschrijvingtest/omschrijving
foto/foto
/categorie categorie id=59
naamAvant Garde/naam
omschrijvingtest/omschrijving
foto/foto

/categorie
/categorien

I'm receiving the following error when I try to execute my code :

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.collections::[EMAIL PROTECTED] to mx.utils.ObjectProxy.
at categorie/categorie::xmlLoaded()[Z:\project\categorie.mxml:6]

Anybody an idea what's going wrong ?

Anyhelp would be greatly appreciated.

Thanks

Regards

Ries

 


[flexcoders] Re: Round corners with Tab Navigator

2007-04-26 Thread iko_knyphausen

Thanks this was very helpful. I got rid of the tiny gap, by setting the
tab navigators bordercolor and the tabDetails bordercolor to the same as
the background color of the container... looks perfect. Thanks again -
Iko


--- In flexcoders@yahoogroups.com, scalenine [EMAIL PROTECTED] wrote:

 Try this:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 mx:TabNavigator horizontalCenter=0 verticalCenter=0
 resizeToContent=true cornerRadius=10 paddingTop=0
 paddingRight=10 paddingBottom=10
 mx:Canvas label=Tab 1 width=300 height=300
 backgroundColor=#ff/
 mx:Canvas label=Tab 2 width=300 height=200
 backgroundColor=#ff/
 mx:Canvas label=Tab 3 width=300 height=100
 backgroundColor=#ff/
 mx:Canvas label=Tab 4 width=300 height=50
 backgroundColor=#ff/
 /mx:TabNavigator
 /mx:Application

 I just added a white fill color and some padding to the bottom and top
 of the tab navigator. The only thing is a small gap in the border on
 the left where the TabNav corner curves.

 The other thing you could do is create an image to use as the
 background with some 9-slice proerties on it that has 3 rounded
 corners and one not.

 Or check out some custom border components out there that might help
 you get the effect your looking for.

 Juan
 scalenine.com

 --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote:
 
 
  Hello,
 
  I am trying to use rounded corners (cornerRadius) on a tab
navigator.
  Unfortunately it also rounds the upper left corner of the first
canvas
  which makes it unsightly. One could use paddingLeft to move the tabs
a
  little to the right, but that doesn't look to great either. One
could
  underlay the tab navigator at the upper left corner with a
  mini-canvas, but that only works, if you have no border. I need a
solid
  border...
 
  Has anyone come up with a good solution for this?
 
  Thanks a mill..
 






[flexcoders] Re: Round corners with Tab Navigator

2007-04-26 Thread iko_knyphausen

Just went to your site... nice! Your Obsidian theme would benefit from
the background border color... Cheers

--- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote:


 Thanks this was very helpful. I got rid of the tiny gap, by setting
the
 tab navigators bordercolor and the tabDetails bordercolor to the same
as
 the background color of the container... looks perfect. Thanks again -
 Iko


 --- In flexcoders@yahoogroups.com, scalenine juan@ wrote:
 
  Try this:
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
  mx:TabNavigator horizontalCenter=0 verticalCenter=0
  resizeToContent=true cornerRadius=10 paddingTop=0
  paddingRight=10 paddingBottom=10
  mx:Canvas label=Tab 1 width=300 height=300
  backgroundColor=#ff/
  mx:Canvas label=Tab 2 width=300 height=200
  backgroundColor=#ff/
  mx:Canvas label=Tab 3 width=300 height=100
  backgroundColor=#ff/
  mx:Canvas label=Tab 4 width=300 height=50
  backgroundColor=#ff/
  /mx:TabNavigator
  /mx:Application
 
  I just added a white fill color and some padding to the bottom and
top
  of the tab navigator. The only thing is a small gap in the border on
  the left where the TabNav corner curves.
 
  The other thing you could do is create an image to use as the
  background with some 9-slice proerties on it that has 3 rounded
  corners and one not.
 
  Or check out some custom border components out there that might help
  you get the effect your looking for.
 
  Juan
  scalenine.com
 
  --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote:
  
  
   Hello,
  
   I am trying to use rounded corners (cornerRadius) on a tab
 navigator.
   Unfortunately it also rounds the upper left corner of the first
 canvas
   which makes it unsightly. One could use paddingLeft to move the
tabs
 a
   little to the right, but that doesn't look to great either. One
 could
   underlay the tab navigator at the upper left corner with a
   mini-canvas, but that only works, if you have no border. I need a
 solid
   border...
  
   Has anyone come up with a good solution for this?
  
   Thanks a mill..
  
 






[flexcoders] problems with repeater

2007-04-26 Thread Tadas Ziemys
Hello!

I'm trying to create forum, and the best solution i could think of was
a repeater function. But i stuck with a little problem:
When i create dynamically for example Accordions canvas and in it
DataGrid i cant think of a way to assign every different DataGrid
different dataProvider. Is it somehow possible?
I can think a different solution to this problem:
To have one source for all datagrids, but to form it every time i
change Accordions canvas, but i dont know how to know which one is
selected?

Any tips or suggestions? :)

Sincerely,
Tadas


  1   2   >