[flexcoders] get cursorManger() on UICompoent is slow and even hangs the app for a brief time

2007-12-19 Thread rueter007
I realized that the HDividedBox and VDividedBox components sometimes
hang when I mouseover the divider. Upon investigation, found out that
a new method was added in Flex 3 beta 3 in UIComponent.as for get
cursorManager which has a while loop. If you have the HDividedBox in a
deep nested component, the while loop takes forever and the
application even hangs for a brief interval before the divided cursor
shows up. Has anyone else noticed this problem?



[flexcoders] Re: itemrenderer dataprovider index?

2007-12-19 Thread rueter007
How about you have an index field in your list dataProvider and call
data.index in the component.

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

 i've already tried getItemIndex and failed, i suppose that i'm 
 implementing it wrong. I've attempted a number of times similar to 
 this attempt:
 
 mx:List dataprovider=dProvider.incrementalData
 mx:itemrenderer
 mx:component
 p:custom_component dataProvider={data.element}  
 value={outerDocument.dataModel.dataVal[getItemIndex(this)]}
 /mx:component
 /mx:itemRenderer
 /mx:list
 
 thie idea is this: as each component in the itemrenderer increments, 
 it will bind to the dataModel.dataVal[index] to retrieve it's value. 
 But obviously getItemIndex in this case doesn't work. Any other 
 ideas? thx in advance -b
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  You can call getItemIndex if you want
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of bmilesp
  Sent: Tuesday, December 18, 2007 7:18 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] itemrenderer dataprovider index?
  
   
  
  greetings!
  
  I have an mx:List with an itemrenderer that renders a custom 
  component using a dataprovider. i want to get the rendered item 
 index 
  (or current dataprovider index?) of each custom component in the 
  list. 
  
  or even just an incrementing number inside of the component would 
  work. 
  
  so I wish to write something like: 
  
  p:custom_component dataProvider={data} 
  value={outerDocument.dataModel.dataVal[i]}
  
  i being the current index of the rendered item
  
  Any Clues? thanks everyone!
 





[flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-19 Thread Cosma
--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 Sorry, that is, this will NOT make it into Flex Builder 3 :) 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Peter Farland
 Sent: Tuesday, December 18, 2007 11:26 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: Debugging RemoteClass serialization
 [SOLVED]
 
 
 Unfortunately that would involve the compiler scanning all of the
 classes (source or swcs) in the project to find [RemoteClass] metadata,
 so this will make it in Flex Builder 3.
 

Uhm.. I'm a little off topic, but I don't see your point.

The compiler, right now, already has to scan *all the other* classes
to verify that a particular one is not used, in order to choose to
remove it from the SWF if it isn't needed.

Mxmlc should simply not perform this additional step when compiling
ActionScript classes that has a [RemoteClass] metadata applied. From
my point of view, there can only be a performance gain from this
behaviour..

This is true unless the compiler actually works starting with the
application (and the defined modules) and then compiling all the
dependencies it find.. in such case, the unused [RemoteClass]
classes would never be reached, right. In this scenario, Mxmlc should
at least allow to force inclusion of entire packages using its command
line switches, instead of single classes only. A sheet in the project
properties dialog to allow this configuration, a bit like the modules
dialog one, would also be fine ;)

It is really ugly to put fake references in my code only to turn off
this optimization.. and anyway, it is better to have the compiler
scanning all the sources, instead of having me doing the same job
manually and writing code to workaround this, isn't it? :)

Cosma





[flexcoders] Maintaining component state across sessions

2007-12-19 Thread Hans Omli
I need to maintain the state of a handful of components across sessions in
an AIR/Flex app.  I've written a HistoryManager, but it doesn't go down to
the level of selected item, which nodes are opened/closed, scroll position,
and so on.  The data for all components is dynamic, so I also need to check
if selected items, opened nodes, or otherwise still exist.
Anyone come up with an elegant way to accomplish this?


Re: [flexcoders] Nested rows in Datagrid Flex 2

2007-12-19 Thread Carlos Rovira
You should look for a TreeGrid Component. you can search the web for some
implementations

2007/12/19, Peeyush Tuli [EMAIL PROTECTED]:

   Hi All,
 Has anybody tried something like a nested row in a datagrid in
 flex 2, which has a collapse and restore button  with it?( Screenshot
 attached)

 Thanks,
 Peeyush
  




-- 
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://www.madeinflex.com


[flexcoders] Re: Flex JavaFX Sliverlight Flash

2007-12-19 Thread johantrax
 What is the difference between an RIA desktop application (e.g. in
Flex) and
 a standard desktop application (e.g. Swing based) ?
A RIA is an application with as primary goal (well, second to primary:
working should always be the first goal) the user-experience.
RIA-development is all about making the interface comfortable, make
your user enjoy the use of it.

As for our company, it often starts out as a project with a 'standard'
UI. Which goes up to the UI-testers, and they provide, together with
one of our designers, a list of GUI-requirements.
Once in a while this requires adding some new services to the
back-end, but mostly it doesn't.
There is NO difference in the functionality of an app, RIA or not. It
'just' is about making the user leaving the application with a nice
feeling.

 It has no reason to be a web-app so we will rather go for a desktop
 application. (Or make it a web-app and lock the browser to benefit
from all the web technologies (e.g. RSS feeds, thin client) Does that
makes sense ?)

If you are thinking about this, AIR might be worth looking at. I have
no personal experience with this, but it should be an
extension/wrapper for FlexApplications, adding support for
communicating with the OS. Do keep in mind that AIR is not yet
supported on anything but Windows/Mac.

--Johan


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

 
 Thank you johan.
 
 The back ends are based on Java webservices.
 It has no reason to be a web-app so we will rather go for a desktop
 application. (Or make it a web-app and lock the browser to benefit
from all
 the web technologies (e.g. RSS feeds, thin client) Does that makes
sense ?)
 But there is something I don't get:
 
 What is the difference between an RIA desktop application (e.g. in
Flex) and
 a standard desktop application (e.g. Swing based) ?
 
 Thank you.




Re: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-19 Thread Tom Chiverton
 The compiler, right now, already has to scan *all the other* classes
 to verify that a particular one is not used, in order to choose to
 remove it from the SWF if it isn't needed.

Uhh, I'd be surprised if it worked that way, I would expect it to only include 
classes that are referenced or imported from code.

-- 
Tom Chiverton
Helping to enthusiastically transform eligible bandwidth
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for Christmas 
 the New Year


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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

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


--
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] Re: Problem with RSL and SWFLoaders

2007-12-19 Thread Nick Durnell
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 I would try to find out what happened to the other 9?  Are they 
showing
 progress bars?  Is the app stuck?  Is CPU usage running high?

Hi Alex,

I do not see any progress bars for the applications which fail to 
start.  CPU usage is at 0% once the application has 'stuck'.  I've also 
tried with fewer widgets and get the same problem. As long as there are 
more than one being loaded at once (which share an RSL), one of them 
fails to start.

Is there anything I can do to check what Flash is doing behind the 
scenes?  Any other events on the SWFLoaders/Applications it may be 
useful to listen for?

Regards,

Nick.




[flexcoders] RichTextEditor - Default color

2007-12-19 Thread Alban Soupper
Dear all,

We have just discovered that the default text color in the
RichTextEditor is 0x0B333C and not 0x00.

Is there a way to change this?

 

Thanks by advance,

Alban.



This email and any files transmitted with it contain confidential information 
and are intended solely for the use of the individual or entity to whom they 
are addressed. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, use, or distribution of the information included 
in this message and any attachments is strictly prohibited. If you have 
received this email in error please notify the system manager at [EMAIL 
PROTECTED] or by reply email and immediately and permanently delete this 
message and any attachments. Email transmission cannot be guaranteed to be 
secure or error-free and may be susceptible to data corruption, delay, 
interception, unauthorised amendment, or contain viruses. The sender therefore 
does not accept liability for any errors, omissions or other such consequences 
which may arise as a result of this email transmission. 




Re: [flexcoders] RichTextEditor - Default color

2007-12-19 Thread Giles Roadnight
styles?

On Dec 19, 2007 10:35 AM, Alban Soupper [EMAIL PROTECTED] wrote:

Dear all,

 We have just discovered that the default text color in the RichTextEditor
 is 0x0B333C and not 0x00.

 Is there a way to change this?



 Thanks by advance,

 Alban.


 

 This email and any files transmitted with it contain confidential
 information and are intended solely for the use of the individual or entity
 to whom they are addressed. If you are not the intended recipient, you are
 hereby notified that any disclosure, copying, use, or distribution of the
 information included in this message and any attachments is strictly
 prohibited. If you have received this email in error please notify the
 system manager at [EMAIL PROTECTED] or by reply email and immediately and
 permanently delete this message and any attachments. Email transmission
 cannot be guaranteed to be secure or error-free and may be susceptible to
 data corruption, delay, interception, unauthorised amendment, or contain
 viruses. The sender therefore does not accept liability for any errors,
 omissions or other such consequences which may arise as a result of this
 email transmission.


 


  




-- 
Giles Roadnight
http://giles.roadnight.name


[flexcoders] ActionScript, Number and null values... how to?

2007-12-19 Thread Cosma
Hi

I just learned that the Number, int and uint data types in
ActionScript cannot hold a null value. How java remoting deals with this?

If I have an ActionScript class that maps to a remote Java class
(using the [RemoteClass]), I usually translate Integer or Long
properties to the Number data type.. but null Java objects are
converted to 0 (zero) values?

Cosma



RE: [flexcoders] RichTextEditor - Default color

2007-12-19 Thread Alban Soupper
Yeah :-)

 

As I extends the RichTextEditor, I can write in the creationComplete:

  textArea.setStyle(color, 0x00);

  colorPicker.selectedColor = 0x00;

 

But my boss want the text be justified by default and the code does not
the job:

  textArea.setStyle(align, justify);

  alignButtons.selectedIndex=3;

-- the button is correctly set but the text is not justified...

 

Thanks,

Alban.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: 19 December 2007 12:05
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RichTextEditor - Default color

 

styles? 

On Dec 19, 2007 10:35 AM, Alban Soupper [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Dear all,

We have just discovered that the default text color in the
RichTextEditor is 0x0B333C and not 0x00.

Is there a way to change this?

 

Thanks by advance,

Alban.




This email and any files transmitted with it contain confidential
information and are intended solely for the use of the individual or
entity to whom they are addressed. If you are not the intended
recipient, you are hereby notified that any disclosure, copying, use, or
distribution of the information included in this message and any
attachments is strictly prohibited. If you have received this email in
error please notify the system manager at [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  or by reply email and immediately and
permanently delete this message and any attachments. Email transmission
cannot be guaranteed to be secure or error-free and may be susceptible
to data corruption, delay, interception, unauthorised amendment, or
contain viruses. The sender therefore does not accept liability for any
errors, omissions or other such consequences which may arise as a result
of this email transmission. 




 




-- 
Giles Roadnight
http://giles.roadnight.name http://giles.roadnight.name  

 



This email and any files transmitted with it contain confidential information 
and are intended solely for the use of the individual or entity to whom they 
are addressed. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, use, or distribution of the information included 
in this message and any attachments is strictly prohibited. If you have 
received this email in error please notify the system manager at [EMAIL 
PROTECTED] or by reply email and immediately and permanently delete this 
message and any attachments. Email transmission cannot be guaranteed to be 
secure or error-free and may be susceptible to data corruption, delay, 
interception, unauthorised amendment, or contain viruses. The sender therefore 
does not accept liability for any errors, omissions or other such consequences 
which may arise as a result of this email transmission. 




[flexcoders] Re: ActionScript, Number and null values... how to?

2007-12-19 Thread m88e24
Write a setter which accepts an argument of type Object and convert to
Number of NaN. De getter returns a Number type.

Brgds,

Eduard

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

 Hi
 
 I just learned that the Number, int and uint data types in
 ActionScript cannot hold a null value. How java remoting deals with
this?
 
 If I have an ActionScript class that maps to a remote Java class
 (using the [RemoteClass]), I usually translate Integer or Long
 properties to the Number data type.. but null Java objects are
 converted to 0 (zero) values?
 
 Cosma





[flexcoders] Re: LCDS, FDMS, Custom serialization of lazy references

2007-12-19 Thread den.orlov
I need Externalizable since I am working with my existing Java model.
Some of this objects are immutable and don't have setters for some
properties (that properties are populated via constructor). 

That an attempt to avoid unnecessary properties copying from model
object to TO objects.

Is it possible to affect message header to be able to set/get
referencedIds?

Den

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

 You do not need to use the Externalizable interface to do lazy
 associations with DMS.   You just need to follow the normal rules for
 mapping Java to AS classes (public read-write properties must match,
 RemoteClass(alias=...) needs to be set, zero arg constructor).  
 
  
 
 We exclude the lazy=true properties from serialization... neither the
 get nor the set method will be called on those instances during
 serialization itself.Instead, in the message sent across the wire a
 separate header is used to store the referencedIds for each
 lazy=true property.  These headers are then used to repopulate those
 properties on the client.   
 
  
 
 Jeff



[flexcoders] Re: LCDS/Data Management, lazy references to child objects are replaced with ids

2007-12-19 Thread den.orlov
Get it, thanks Jeff

Den

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

 When you are returning a property of an object which is declared as an
 association in your data-management-config.xml with lazy=true, you can
 just create an instance of the referenced object and only populate its
 identity properties.   Since the referenced object also has a
 destination defined, in that destination you specify the identity
 property names used for objects of that type.  These are the only
 properties DMS will look at on the referenced object.  
 
  
 
 We do ship the source to the HibernateAssembler though it is a bit more
 complex given that hibernate has lazy fetching property of its own.   
 
  
 
 Jeff



[flexcoders] Any way to cast a string reference of a class name to its Class equivallent

2007-12-19 Thread polestar11
Hi there

I have a list of class names stored as strings in an xml file. 
Is there any way to cast them to actual class items programatically
once the file has loaded.

Eg. 
item classname=aClass/

// in code
myComponent.setStyle(icon, Class([EMAIL PROTECTED]));

Cheers
Tracy



[flexcoders] VBOX Icon

2007-12-19 Thread yourName
Hi to every 
i have following code in my action script
[Embed(crs.png)]

[Bindable]

public var crss:Class; 

and following is mxml code

mx:vbox icon=crss

/mx:vbox

i have two question how can i handle click event on this image and i want to 
put  this image  to right of text this vbox is contained in tab

plese help me thanks in advance.


[flexcoders] Re: ActionScript, Number and null values... how to?

2007-12-19 Thread Cosma
Thank you :)

Cosma



[flexcoders] locking and unlocking of the screens

2007-12-19 Thread Rahul Kandari
hi,
   I m working on the different screens in a project.
   I want if i m workin on one screen  the other screen locked 
   with a notification event.And if i had workes on that screen
   for example save then the other screen shoul get unlocked
   with notification event.this notification event should be a 
   generic one not confined to few windows only
   Can any one suggest me
 
regards
RAHUL KANDARI


[flexcoders] Flex Help

2007-12-19 Thread sk8bmx099
http://pastebin.ca/823135

Please help me out. I'm trying to make a contact form to send all the
information put on that application.



[flexcoders] FLEX Video Audio Recording Component

2007-12-19 Thread ECKOC
Is there such out of the box component exist? I want to use it with RED5.



[flexcoders] MyEclipse6.0+Flex Build3 plugIn+ liveCyde data services

2007-12-19 Thread soft_hua
now i want to try remoteObject of liveCyde data services

jdk1.5
MyEclipse6.0
Flex Build3 plugIn
liveCyde data services  

Creat Flex Project by wizard
First ,At Server technology ,I choosed the Application server type 
J2ee and use remote object access service (LiveCyde Data Services)

but at Set the build paths for the new Flex project window has a 
Server SDK Error,error picture please see 
http://www.riachina.com/attachment.aspx?attachmentid=225

In MyEclipse,i checked the SDK of flex3,
Windows-Preferences-flex  the path of SDK is correct.

I think maybe LiveCyde the Data Services occur the error,but i don't 
konw how to resolve it ,help me






[flexcoders] Multi Query HTTPService Functions Variables DataGrid. Error with 2nd URL query

2007-12-19 Thread brian_garcia81
Hi, 

Im trying to get this app working. currently Working it query's the 
database with mx:XML and populates mx:ComboBox on the selection 
is captures the user selection.  Here on out Im having issues. 

I need to pass the variables through a url so I bound the comobox 
selection to a variable and then the new URL to a variable with the 
combobox selection + added on. 

It then connects to the new Url with mx:HTTPService and populates a 
datagrid with the return XML from the Http request.


my code complies with no problems but when run it errors out
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
:childAdded()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:1553]
at mx.managers::SystemManager/initializeTopLevelWindow()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2330]
at mx.managers::SystemManager/docFrameHandler()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214]



The inital query to a URL works and populates a combox im unsure what 
is exactly wrong with my code. I have been staring at it for about 2 
days now have issues. I found this website that helped. 
http://flashmove.com/forum/showthread.php?t=30242
and this one but it confused me more then helped.
http://nwebb.co.uk/blog/?p=118



All help will be greatly welcomed.


mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical 
mx:Script
![CDATA[

private function onComboChange(event:Event):void
{

var ini:String = event.target.selectedItem;
var url:String = http://localhost/cgi-
bin/dbRecords.cgi?ini= + ini;

dbRecords.send();
}

]]
/mx:Script
mx:XML id=sqlQuerey source=http://localhost/cgi-
bin/dbtables.cgi /

mx:HTTPService id=dbRecords url=url /
mx:DataGrid id=recordDisplay 
dataProvider=dbRecords.lastResult.MasterFile.Record

/mx:DataGrid
mx:ComboBox  
id=ini 
dataProvider={sqlQuerey.name} 
rowCount=30
change=onComboChange(event)
/

/mx:Application





Re: [flexcoders] Unusual error

2007-12-19 Thread solrac

I came across another incident of Cairngorm throwing a stack overflow error.

I had a Cairngorm ModelLocator named AppModelLocator (my subclass). In it, I
declared a class variable that instantiated another class like so:

public var currentProfile : MemberProfile = new MemberProfile();



And in the MemberProfile.as class, I create a reference back to the model:

private var model :AppModelLocator = AppModelLocator.getInstance();



What this did is create an infinitely recursive loop I guess, because
AppModelLocator.as creates an instance of MemberProfile so it would try to
get an instance of itself which would instantiate MemberProfile again, ad
infinitum.

So, in AppModelLocator.as, I changed

public var currentProfile : MemberProfile = new MemberProfile();



to

public var currentProfile : MemberProfile;



And in the constructor I assigned it:

currentProfile = new MemberProfile(modelLocator);
// not shown: modelLocator is the private static var modelLocator
:AppModelLocator, standard Cairngorm usage



I still had to pass modelLocator as a parameter to MemberProfile() to avoid
using AppModelLocator.getInstance within, which would cause the inifnite
loop.


Then in MemberProfile.as:

private var model :AppModelLocator;

public function MemberProfile( modelLocator :AppModelLocator)
{
model = modelLocator;
}


So the bottom line:
You cannot use the  `private var model :AppModelLocator =
AppModelLocator.getInstance();`  convention of creating a reference to your
model inside of a class that is instantiated WITHIN the model!! It causes an
infinite loop. Instead do it as I describe above.

-Carlos Saenz-


jer_ela wrote:
 
 I am getting a stack overflow error #1023 in a place that it doesn't
 make any sense, which I can get rid of by doing things that don't
 reduce the depth of the stack.
 
-- 
View this message in context: 
http://www.nabble.com/Unusual-error-tp12261893p14413267.html
Sent from the FlexCoders mailing list archive at Nabble.com.


[flexcoders] How do I make the background fill the whole screen, not just the Application?

2007-12-19 Thread kolt_siewerts
Dear group,
coming from the Flash side of AS3-Development, I'm struggling with a small 
problem.

Here is an example (source code via right-click):
http://www.kolt-siewerts.com/flexTest/

My application has to grow with the window, so I set StageScaleMode.SHOW_ALL 
instead of 
the default NO_SCALE.
Now whenever the window has not the same aspect ratio as the Application, black 
bars 
appear.
But I want the background of my App to fill the screen no matter what ratio the 
window has. 

Thanks for any ideas or hints, I've searched the internet for a couple of days 
now and did not 
find a solution...
Regards,
kolt



[flexcoders] notification event

2007-12-19 Thread rahul_kandari2005
can anybody suggest me.I have five screens in my project
but when we are working on a screen the others should get 
locked by a notification event. And if the work in one of 
window is completed then all the screens should be unlocked.
The locking and unlocking should be a generic not bound to few
particular window...
  



Re: [flexcoders] How do I make the background fill the whole screen, not just the Application?

2007-12-19 Thread Tom Chiverton
On Wednesday 19 Dec 2007, kolt_siewerts wrote:
 Now whenever the window has not the same aspect ratio as the Application,
 black bars appear.

Do you have width and height 100% on mx:Application and the embeding HTML ?

-- 
Tom Chiverton
Helping to biannually extend innovative market-growth
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for Christmas 
 the New Year


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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

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


--
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] I could use some help with printing problems that I don't understand

2007-12-19 Thread Mark
I have a pretty basic Project Management application that shows 
projects in a datagrid then when you click on a project you get all 
the details (name, dates, descriptions, etc.)  Of course I have a 
printing script for them to print it out nice and clean, but it cuts 
off some of the text in some of the Text boxes.  I tried setting up 
the printing 2 ways but both get the same results.  In both cases 
I'm using a mx:Text box so the text will wrap and the box will 
size.  Any ideas would be great, I feel real lost right now as to 
why it would should fine in the details window but cut off in the 
prining.

Here's the printing scripts:

1st - just printing the 2 VBox's that hold all the info:

public function doDetailsWinPrint():void {
var printDJob:FlexPrintJob = new 
FlexPrintJob();
printDJob.printAsBitmap = false;
if (printDJob.start() != true) 
return;
printDJob.addObject
(details.printLeft,FlexPrintJobScaleType.NONE);
printDJob.addObject
(details.printRight,FlexPrintJobScaleType.NONE);
printDJob.send();
}

2nd - I created a new component that lines everything up within a 
single VBox, passing the details to a holder:

public function doDetailsPrint():void {
var printDJob:FlexPrintJob = new FlexPrintJob();
printDJob.printAsBitmap = false;
if (printDJob.start()) {
var printDetails:PrintDetailsView = new PrintDetailsView
();
addChild(printDetails);
printDetails.width = printDJob.pageWidth;
//***
printDetails._ADL = projCatHolder.details.radarArr;
//***
printDJob.addObject
(printDetails,FlexPrintJobScaleType.SHOW_ALL);
removeChild(printDetails);
}
printDJob.send();
}



Re: [flexcoders] Re: Looking for component to generate PDF files

2007-12-19 Thread Derrick Anderson
check out alivePDF

http://www.alivepdf.org/



On Dec 19, 2007 9:32 AM, sprezzatura1 [EMAIL PROTECTED] wrote:

   Thank you for your reply.

 I think what we need is an SWC component. As far as I understand,
 PDFlib is not available in this format.

 Allow me to elaborate. In our situation, our users will download an
 SWF from a Web page. We will not have an opportunity to install any
 software on the client machine. We need to do all the 'printing' or
 creation of the PDF file, from within our SWF.

 The SWF is hosted on a third-party system, where we cannot run a
 server-based PDF creation service.

 Thanks again.

 Pierre


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ben
 Marchbanks [EMAIL PROTECTED] wrote:
 
  I recommend PDFlib(.com) Its a robust PDF library with maturity that
 meets most
  of the requirements we have for PDF generation.
 
  Its not Open Source but worth the money - There are some open source
 options
  such as iText for Java which we used for a while until we ran into
 so issues.
 
  I have been happy with PDFlib and it runs on all OS.
 

  



Re: [flexcoders] Re: Looking for component to generate PDF files

2007-12-19 Thread Derrick Anderson
oh sorry, forgot u mentioned that already

On Dec 19, 2007 9:54 AM, Derrick Anderson [EMAIL PROTECTED]
wrote:

 check out alivePDF

 http://www.alivepdf.org/




 On Dec 19, 2007 9:32 AM, sprezzatura1 [EMAIL PROTECTED]  wrote:

Thank you for your reply.
 
  I think what we need is an SWC component. As far as I understand,
  PDFlib is not available in this format.
 
  Allow me to elaborate. In our situation, our users will download an
  SWF from a Web page. We will not have an opportunity to install any
  software on the client machine. We need to do all the 'printing' or
  creation of the PDF file, from within our SWF.
 
  The SWF is hosted on a third-party system, where we cannot run a
  server-based PDF creation service.
 
  Thanks again.
 
  Pierre
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ben
  Marchbanks [EMAIL PROTECTED] wrote:
  
   I recommend PDFlib(.com) Its a robust PDF library with maturity that
  meets most
   of the requirements we have for PDF generation.
  
   Its not Open Source but worth the money - There are some open source
  options
   such as iText for Java which we used for a while until we ran into
  so issues.
  
   I have been happy with PDFlib and it runs on all OS.
  
 
   
 




Re: [flexcoders] FLEX Video Audio Recording Component

2007-12-19 Thread Sajid Hussain
Hi , 
I guess these will work for u , if u ned assistance with video recording 
component with red5/flex  let me know maybe I could help .

http://fms.denniehoopingarner.com/

http://sziebert.net/posts/server-side-stream-recording-with-red5/


- Original Message 
From: Jeffry Houser [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 19, 2007 7:45:53 PM
Subject: Re: [flexcoders] FLEX Video  Audio Recording Component










  





  I don't know of anything currently in existence.



I would theorize that Pacifica or CoCoMo may offer this type of 

functionality.



You might also want to check out the RibbitPhone components, although 

I'm not sure what recording facilities they offer, if any.



ECKOC wrote:

 

 

 Is there such out of the box component exist? I want to use it with RED5.

 



-- 

Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 

Recording Engineer

AIM: Reboog711  | Phone: 1-203-379-0773

--

My Company: http://www.dot- com-it.com

My Podcast: http://www.theflexs how.com

My Blog: http://www.jeffryho user.com






  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#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;}
--








  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

[flexcoders] Re: tabEnabled not enabling

2007-12-19 Thread Corey Smaller

unfortunately i have to work locally as i dont have access to the work
servers right now and I had to fly home for the holidays. I can either
include the main file here and the class that is giving me fits or send
you the whole shebang in a zip via email?  SORRY!

here is the main:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 xmlns:flexlib=flexlib.scheduling.*
 verticalGap=1
 creationComplete=onCreationComplete();
 layout=absolute
 width='100%' 

!-- STYLPROCLAMATION --
 !--mx:Style source=../css/style.css /--

!-- SCRIPT INSTANTIATION--
mx:Script
![CDATA[

import flexlib.scheduling.ScheduleViewer;
import flexlib.scheduling.Timeline;
import mx.controls.LinkButton;
import mx.rpc.events.ResultEvent;
import mx.containers.TitleWindow;
 import flash.events.Event;
 import mx.managers.PopUpManager;
 import mx.managers.IFocusManager;
 import mx.core.IFlexDisplayObject;
 import flexlib.scheduling.samples.ScheduleData;
 import flexlib.scheduling.scheduleClasses.SimpleScheduleEntry;
 import flexlib.scheduling.scheduleClasses.ColoredScheduleEntry;
 import flexlib.scheduling.scheduleClasses.BackgroundItem;
 import flexlib.scheduling.scheduleClasses.LayoutScrollEvent;
 import flexlib.scheduling.util.DateUtil;
 import mx.collections.IList;

 import flash.display.InteractiveObject;

 import mx.collections.ArrayCollection;
 import mx.controls.Alert;
 import mx.events.ScrollEvent;
 import mx.events.ScrollEventDirection;
   import mx.collections.XMLListCollection;
   import flash.utils.Timer;
 import flash.events.TimerEvent;

   //variables
   [Bindable] private var menuBarCollection:XMLListCollection;
   [Bindable] private var dataXML:XMLList;
   [Bindable] private var dataArray:ArrayCollection = new
ArrayCollection();
   [Bindable] private var constantTime:Label = new Label();
   [Bindable] private var today:Date = new Date();

   [Bindable] private var iObj:DisplayObject;
 [Bindable] private var dataProvider : IList;
 [Bindable] private var iDataProvider : IList;
 [Bindable] private var rowDataProvider : IList;
 [Bindable] private var startDate : Date;
 [Bindable] private var startTime : Date;
 [Bindable] private var endDate : Date;
 [Bindable] private var zoom : Number;
 [Bindable] private var scheduleViewerWidth : Number = 2000;
 [Bindable] private var scheduleViewerHeight : Number = 400;
 private var rawArray:Array = new Array();
 private var timer:Timer;

  //once the page is created run these functions
  private function onCreationComplete() : void
  {
 setTimeframe(); //set the time frame on the top
of the list
 initBackgroundColors();  //set the bg colors
 programRequest.send();   //get the programs from the DB
 channelRequest.send();

  }

  private function setFocusOnFirstProgram():void
  {


  scheduleViewer.liveScrolling=true;
  //focusManager.setFocus(scheduleViewer.dataProvider[0]);

  }
  /* set the time frame for the top of the grid */
  private function setTimeframe() : void
  {

  var time : Date = new Date();
  startDate = DateUtil.roundTime(new Date() ,
time.getMinutes());  //round off the current time too either 00 or the
30
 endDate = getEndDate( startDate );  //limit the amt of
programs we want to display.

  }

  private function getEndDate( startDate : Date ) : Date
  {
 var duration : Number = DateUtil.HOUR_IN_MILLISECONDS * 5; 
//set the duration of the timeline to 5 hours out
 var endDate : Date = new Date( startDate.getTime() +
duration );
 return endDate;
  }


  /* @about: sets the event result to an array for displaying on
the schedule */
  private function setDataProvider(event:ResultEvent) : void
  {
 var c:Number = 0;
 ScheduleData.FocusID = [EMAIL PROTECTED];   //this is
the channel_id to focus on

 //assign the event.result XML to an object and create each
row based on the channel id
 //each channel node has its programs listed for that day
inside of it --look at the programs.xml to get a better understanding
 for each(var p:XML in event.result..channel)
 {
 var channelObj:Object = new Object();
 channelObj.ch_id = [EMAIL PROTECTED];
 channelObj.prog_id = [EMAIL PROTECTED];
 channelObj.name = p..name;
 

Re: [flexcoders] Re: DataGrid ItemRenderes HEADERS?

2007-12-19 Thread Sajid Hussain
hey . 
I want to add checkbox control in datagrid header ,I alredy render tht checkbox 
but problem is that I m not able to call function from on that click even I 
tried parentDocument.callMyfunction(); ..its giving me error but the same 
method I have applied to rows checkbox its working but header its not wroking 
...
but with application refrence I m able to calll .

ANy help 

- Original Message 
From: rueter007 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 19, 2007 10:47:05 AM
Subject: [flexcoders] Re: DataGrid ItemRenderes - How to access the {data} from 
the datagrid










  



You are doing a few things wrong here. use the following source in

your itemrenderer. mxml file



?xml version=1.0 encoding=utf- 8?

mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml

xmlns:local= * 



mx:Script

![CDATA[

import mx.events.ListEvent ;



[Bindable] private var dp:Array = [

{ symbol: ADBE, name: Adobe Systems Inc., price: 49.95, bold: true 
},

{ symbol: MACR, name: Macromedia Inc., price: 39.95, bold: false },

{ symbol: MSFT, name: Microsoft Corp., price: 25.95, bold: true },

{ symbol: IBM, name: IBM Corp., price: 42.55, bold: false }

];



private function changeHandler( event:ListEvent) :void

{

var item: Object = event.itemRenderer. data;



item.bold = !item.bold;

dg1.dataProvider. itemUpdated( item);

}



// Sets the styles to display the DataGrid Items 

private function computeStyles( data:Object, column:DataGridColu mn):Object

{

var o:Object = new Object();



var bold:String = data[bold] ;

if (bold == true)

{

o.bold = true;

} else {

o.bold = false;

}



return o;   

}



]]

/mx:Script



mx:DataGrid id=dg1 dataProvider= {dp} 

change=changeHandl er(event)  paddingTop= 0 paddingBottom= 0

verticalAlign= middle 

mx:columns

mx:DataGridColumn headerText= Name dataField=name width=140/ 

mx:DataGridColumn headerText= Symbol dataField=symbol width=60 /

local:CustomColumn stylesFunction= computeStyles headerText= Price

dataField=price itemRenderer= CustomRenderer /

/mx:columns 

/mx:DataGrid



/mx:Application



The most important issue here is that the changeHandler is modifying

the dp array which is not the same as the dataprovider of the grid.

you need to get a handle to the actual item in the grid's dataprovider

using the event.itemrenderer. data property and make changes to it. I



HTH



- venkat

http://www.venkatj. com



--- In [EMAIL PROTECTED] ups.com, m.frigge [EMAIL PROTECTED] . wrote:



 Hey Mark,

 

 I'm struggling with itemRenderers too. First of all here



http://blogs. adobe.com/ aharui/2007/ 03/thinking_ about_item_ renderers_ 1.h\

 tml  is a link to Alex's blog speaking about itemRenderers and showing

 some nice examples. In the BlinkWhenDataChange d example he is changing

 Background settings. I tried to adopt his itemRenderer and change it so

 that it checks a data value and sets the textFormat depending on what

 value the data has. This

 http://16-bits. com/ItemRenderer /ItemRenderer. html  is how far i came.

 I toggle the value on change, so when you click it the style changes. My

 only Problem is that it doesn't work anymore after sorting the dataGrid

 by one of its columns. Maybe we can work on this together :-).

 

 Cheers, Max

 

 --- In [EMAIL PROTECTED] ups.com, oneproofdk mark@ wrote:

 

  Hi.

  In a itemrenderer I'd like to access a {data} value in a Script in the

  itemrenderer. I just can't figure out how to do this.

 

  I have an ArrayCollection as the dataprovider for the DataGrid.

  In a Column, I sue a itemrenderer status

 

  Inside renderer.status. as I have a VBox, with a init() function.

  Inside init I'd like to test if data.repeating != null and if so,

  set a label to a specific value, if not null, set to another value.

 

  vboxscript /script label/ /vbox

 

  Please - can anyone help me out with an example on how to accomplish

  this, I hope, simple task.

 

  (The reason for using a VBox was that I had my hopes for setting the

  background color also, so if != null color=XX + text = XX etc.

 

  Thanks for your time

  Mark

 








  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg 

[flexcoders] Re: Looking for component to generate PDF files

2007-12-19 Thread sprezzatura1
Thank you for your reply.

I think what we need is an SWC component. As far as I understand,
PDFlib is not available in this format.

Allow me to elaborate. In our situation, our users will download an
SWF from a Web page. We will not have an opportunity to install any
software on the client machine. We need to do all the 'printing' or
creation of the PDF file, from within our SWF.

The SWF is hosted on a third-party system, where we cannot run a
server-based PDF creation service.

Thanks again.

Pierre

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

 I recommend PDFlib(.com) Its a robust PDF library with maturity that
meets most 
 of the requirements we have for PDF generation.
 
 Its not Open Source but worth the money - There are some open source
options 
 such as iText for Java which we used for a while until we ran into
so issues.
 
 I have been happy with PDFlib and it runs on all OS.
 




RE: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-19 Thread Peter Farland
Tom is correct. The compiler starts out from the root class (i.e.
typically your subclass of mx.core.Application) and resolves types as
needed. Types can be found in source path(s) or library path(s). This is
why mxmlc enforces the one public definition per file rule and also
establishes the convention of a sub-package is a sub-directory as it
makes type resolution from sources predictable. Both of these
conventions are Flex specific and not inherent to the ActionScript 3.0
language.

If it were the other way around then I guess you would have to create a
project that explicitly added each source to the configuration (if we
were to scan all sources then ActionScript include fragments would be
invalid definitions etc...). That would seem more of an effort to me...

If the tool were changed to scan all types, including non-referenced
types, for [RemoteClass] metadata then your SWF would be unnecessarily
large because you would start embedded classes that you never intended
to use.



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, December 19, 2007 5:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Debugging RemoteClass serialization
[SOLVED]

 The compiler, right now, already has to scan *all the other* classes 
 to verify that a particular one is not used, in order to choose to 
 remove it from the SWF if it isn't needed.

Uhh, I'd be surprised if it worked that way, I would expect it to only
include classes that are referenced or imported from code.

--
Tom Chiverton
Helping to enthusiastically transform eligible bandwidth
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for
Christmas  the New Year


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 Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  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
Solicitors Regulation Authority.

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

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


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





Re: [flexcoders] FLEX Video Audio Recording Component

2007-12-19 Thread Jeffry Houser

  I don't know of anything currently in existence.

  I would theorize that Pacifica or CoCoMo may offer this type of 
functionality.

  You might also want to check out the RibbitPhone components, although 
I'm not sure what recording facilities they offer, if any.


ECKOC wrote:
 
 
 Is there such out of the box component exist? I want to use it with RED5.
 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com



Re: [flexcoders] Re: DataGrid ItemRenderes HEADERS?

2007-12-19 Thread Sajid Hussain
Thanks .
Scot, actuly I m working on select all checkbox at header have u sn any 
example of tht ? right now I have button to select all and de select all . I 
hope ur solution will work out :)



- Original Message 
From: Scott Melby [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 19, 2007 8:05:56 PM
Subject: Re: [flexcoders] Re: DataGrid ItemRenderes  HEADERS?










  







I haven't done this from a custom header... so sorry if this is way off
base.  But, perhaps you could dispatch an event with bubbles = true
from the click handler rather than trying to call a method.  Just make
sure you register as a listener (on the datagrid) for the event type
that you are dispatching.  Seems the event should bubble out to you.



hth

Scott


Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlane sw.com




Sajid Hussain wrote:

  
  
  hey
. 

I want to add checkbox control in datagrid header ,I alredy render tht
checkbox but problem is that I m not able to call function from on that
click even I tried parentDocument. callMyfunction( ); ..its
giving me error but the same method I have applied to rows checkbox its
working but header its not wroking ...

but with application refrence I m able to calll .

  

ANy help 

  

  -
Original Message 

From: rueter007 [EMAIL PROTECTED] co.uk

To: [EMAIL PROTECTED] ups.com

Sent: Wednesday, December 19, 2007 10:47:05 AM

Subject: [flexcoders] Re: DataGrid ItemRenderes - How to access the
{data} from the datagrid

  

  
  You are doing a few things wrong here. use the following source in

your itemrenderer. mxml file

  

?xml version=1.0 encoding=utf- 8?

mx:Application xmlns:mx=http://www.adobe.
com/2006/ mxml

xmlns:local= * 

  

mx:Script

![CDATA[

import mx.events.ListEvent ;

  

[Bindable] private var dp:Array = [

{ symbol: ADBE, name: Adobe Systems Inc., price: 49.95, bold: true
},

{ symbol: MACR, name: Macromedia Inc., price: 39.95, bold: false },

{ symbol: MSFT, name: Microsoft Corp., price: 25.95, bold: true },

{ symbol: IBM, name: IBM Corp., price: 42.55, bold: false }

];

  

private function changeHandler( event:ListEvent) :void

{

var item: Object = event.itemRenderer. data;

  

item.bold = !item.bold;

dg1.dataProvider. itemUpdated( item);

}

  

// Sets the styles to display the DataGrid Items 

private function computeStyles( data:Object, column:DataGridColu
mn):Object

{

var o:Object = new Object();

  

var bold:String = data[bold] ; 

if (bold == true)

{

o.bold = true;

} else {

o.bold = false;

}

  

return o; 

}

  

]]

/mx:Script

  

mx:DataGrid id=dg1 dataProvider= {dp} 

change=changeHandl er(event)  paddingTop= 0 paddingBottom= 0

verticalAlign= middle 

mx:columns

mx:DataGridColumn headerText= Name dataField=name width=140/


mx:DataGridColumn headerText= Symbol dataField=symbol
width=60 /

local:CustomColumn stylesFunction= computeStyles headerText=
Price

dataField=price itemRenderer= CustomRenderer /

/mx:columns 

/mx:DataGrid

  

/mx:Application

  

The most important issue here is that the changeHandler is modifying

the dp array which is not the same as the dataprovider of the grid.

you need to get a handle to the actual item in the grid's dataprovider

using the event.itemrenderer. data property and make changes to it. I

  

HTH

  

- venkat

  http://www.venkatj. com

  

--- In [EMAIL PROTECTED] ups.com,
m.frigge [EMAIL PROTECTED] . wrote:



 Hey Mark,

 

 I'm struggling with itemRenderers too. First of all here



http://blogs.
adobe.com/ aharui/2007/ 03/thinking_ about_item_ renderers_ 1.h\

   tml is a link to Alex's blog speaking about
itemRenderers and showing

 some nice examples. In the BlinkWhenDataChange d example he is
changing

 Background settings. I tried to adopt his itemRenderer and change
it so

 that it checks a data value and sets the textFormat depending on
what

 value the data has. This

 http://16-bits.
com/ItemRenderer /ItemRenderer. html is how far i came.

 I toggle the value on change, so when you click it the style
changes. My

 only Problem is that it doesn't work anymore after sorting the
dataGrid

 by one of its columns. Maybe we can work on this together :-).

 

 Cheers, Max

 

 --- In [EMAIL PROTECTED] ups.com,
oneproofdk mark@ wrote:

 

  Hi.

  In a itemrenderer I'd like to access a {data} value in a
Script in the

  itemrenderer. I just can't figure out how to do this.

 

  I have an ArrayCollection as the dataprovider for the
DataGrid.

  In a Column, I sue a itemrenderer status

 

  Inside renderer.status. as I have a VBox, with a init()
function.

  Inside init I'd like to test if data.repeating != null and
if so,

  set a label to a specific value, if not null, set to another
value.

 

  vboxscript /script label/
/vbox

 

  Please - can anyone help me out with an example on how to
accomplish

  this, I hope, simple task.

 

  (The reason for using a VBox was that I had my 

[flexcoders] Re: DataGrid ItemRenderes HEADERS?

2007-12-19 Thread ben.clinkinbeard
http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory/

HTH,
Ben


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

 Thanks .
 Scot, actuly I m working on select all checkbox at header have u
sn any example of tht ? right now I have button to select all and
de select all . I hope ur solution will work out :)
 
 
 
 - Original Message 
 From: Scott Melby [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, December 19, 2007 8:05:56 PM
 Subject: Re: [flexcoders] Re: DataGrid ItemRenderes  HEADERS?
 
 
 
 
 
 
 
 
 
 
   
 
 
 
 
 
 
 
 I haven't done this from a custom header... so sorry if this is way off
 base.  But, perhaps you could dispatch an event with bubbles = true
 from the click handler rather than trying to call a method.  Just make
 sure you register as a listener (on the datagrid) for the event type
 that you are dispatching.  Seems the event should bubble out to you.
 
 
 
 hth
 
 Scott
 
 
 Scott Melby
 Founder, Fast Lane Software LLC
 http://www.fastlane sw.com
 
 
 
 
 Sajid Hussain wrote:
 
   
   
   hey
 . 
 
 I want to add checkbox control in datagrid header ,I alredy render tht
 checkbox but problem is that I m not able to call function from on that
 click even I tried parentDocument. callMyfunction( ); ..its
 giving me error but the same method I have applied to rows checkbox its
 working but header its not wroking ...
 
 but with application refrence I m able to calll .
 
   
 
 ANy help 
 
   
 
   -
 Original Message 
 
 From: rueter007 [EMAIL PROTECTED] co.uk
 
 To: [EMAIL PROTECTED] ups.com
 
 Sent: Wednesday, December 19, 2007 10:47:05 AM
 
 Subject: [flexcoders] Re: DataGrid ItemRenderes - How to access the
 {data} from the datagrid
 
   
 
   
   You are doing a few things wrong here. use the following source in
 
 your itemrenderer. mxml file
 
   
 
 ?xml version=1.0 encoding=utf- 8?
 
 mx:Application xmlns:mx=http://www.adobe.
 com/2006/ mxml
 
 xmlns:local= * 
 
   
 
 mx:Script
 
 ![CDATA[
 
 import mx.events.ListEvent ;
 
   
 
 [Bindable] private var dp:Array = [
 
 { symbol: ADBE, name: Adobe Systems Inc., price: 49.95, bold: true
 },
 
 { symbol: MACR, name: Macromedia Inc., price: 39.95, bold: false },
 
 { symbol: MSFT, name: Microsoft Corp., price: 25.95, bold: true },
 
 { symbol: IBM, name: IBM Corp., price: 42.55, bold: false }
 
 ];
 
   
 
 private function changeHandler( event:ListEvent) :void
 
 {
 
 var item: Object = event.itemRenderer. data;
 
   
 
 item.bold = !item.bold;
 
 dg1.dataProvider. itemUpdated( item);
 
 }
 
   
 
 // Sets the styles to display the DataGrid Items 
 
 private function computeStyles( data:Object, column:DataGridColu
 mn):Object
 
 {
 
 var o:Object = new Object();
 
   
 
 var bold:String = data[bold] ; 
 
 if (bold == true)
 
 {
 
 o.bold = true;
 
 } else {
 
 o.bold = false;
 
 }
 
   
 
 return o; 
 
 }
 
   
 
 ]]
 
 /mx:Script
 
   
 
 mx:DataGrid id=dg1 dataProvider= {dp} 
 
 change=changeHandl er(event)  paddingTop= 0 paddingBottom= 0
 
 verticalAlign= middle 
 
 mx:columns
 
 mx:DataGridColumn headerText= Name dataField=name width=140/
 
 
 mx:DataGridColumn headerText= Symbol dataField=symbol
 width=60 /
 
 local:CustomColumn stylesFunction= computeStyles headerText=
 Price
 
 dataField=price itemRenderer= CustomRenderer /
 
 /mx:columns 
 
 /mx:DataGrid
 
   
 
 /mx:Application
 
   
 
 The most important issue here is that the changeHandler is modifying
 
 the dp array which is not the same as the dataprovider of the grid.
 
 you need to get a handle to the actual item in the grid's dataprovider
 
 using the event.itemrenderer. data property and make changes to it. I
 
   
 
 HTH
 
   
 
 - venkat
 
   http://www.venkatj. com
 
   
 
 --- In [EMAIL PROTECTED] ups.com,
 m.frigge m.frigge@ . wrote:
 
 
 
  Hey Mark,
 
  
 
  I'm struggling with itemRenderers too. First of all here
 
 
 
 http://blogs.
 adobe.com/ aharui/2007/ 03/thinking_ about_item_ renderers_ 1.h\
 
tml is a link to Alex's blog speaking about
 itemRenderers and showing
 
  some nice examples. In the BlinkWhenDataChange d example he is
 changing
 
  Background settings. I tried to adopt his itemRenderer and change
 it so
 
  that it checks a data value and sets the textFormat depending on
 what
 
  value the data has. This
 
  http://16-bits.
 com/ItemRenderer /ItemRenderer. html is how far i came.
 
  I toggle the value on change, so when you click it the style
 changes. My
 
  only Problem is that it doesn't work anymore after sorting the
 dataGrid
 
  by one of its columns. Maybe we can work on this together :-).
 
  
 
  Cheers, Max
 
  
 
  --- In [EMAIL PROTECTED] ups.com,
 oneproofdk mark@ wrote:
 
  
 
   Hi.
 
   In a itemrenderer I'd like to access a {data} value in a
 Script in the
 
   itemrenderer. I just can't figure out how to do this.
 
  
 
   I have an ArrayCollection as the dataprovider for the
 

Re: [flexcoders] Odd Cairngorm Event error

2007-12-19 Thread Giles Roadnight
Aha - many thanks for the reply. That seems to have sorted it.

I've never implemented clone() before and never had any problems (except for
possibly once before). Is it best practice to implement this on all events
or just when you think you'll need it?

THanks.

On Dec 19, 2007 3:18 PM, Alistair McLeod [EMAIL PROTECTED] wrote:

   Are you dispatching the same instance a second time? If so, ensure you
 implement the clone() method on your event.

 Alistair


 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of Giles Roadnight
 Sent: 19 December 2007 15:02
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Odd Cairngorm Event error

 Hi All

 I'm setting up a session timeout handling system. The way it is suppsoed
 to work is that when a call to the back end fails a SessionTimeOutEvent
 is dispatched with the orignal event as a property (e.g. listUsers
 event).
 SessionTimeOutCommand will then popup the login dialogue with a message
 and when you've logged in it will re-dispatch the original event and
 you'll be back to where you would have been if your session hadn't timed
 out.

 This all works fine except if 2 events fail at the same time. I have set
 up an array where lost events (listUserEvent, listRolesEvent for
 example) are stored and then after a successful login are dispatched.

 However the second SessionTimeOutEvent that is dispatched causes an
 error:

 TypeError: Error #1034: Type Coercion failed: cannot convert
 flash.events::[EMAIL PROTECTED] to
 com.adobe.cairngorm.control.CairngormEvent.

 When I debug it the event is a SessionTimeOutEvent (extends cairngorm
 event) and the first SessionTimeOut Event went through no problem at
 all.

 The only thing that I think this could be is somethign to do with the
 fact that 2 of these are being dispatched at exactly the same time.
 There is no wait for the back end between the 2 calls to the same
 Command.
 I assume that each of these 2 events will generate a new instance of the
 SessionTimeOutCommand? Perhaps the first one hasn't died yet or
 somethign along those lines.

 Can anyone help?

 Hope I've been clear enough.

 Giles.

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

  




-- 
Giles Roadnight
http://giles.roadnight.name


Re: [flexcoders] Re: How do I make the background fill the whole screen, not just the Application

2007-12-19 Thread Tom Chiverton
On Wednesday 19 Dec 2007, kolt_siewerts wrote:
 cropped to the app boundaries. Is there really no property I can set to
 draw outside of the application?

I doubt it.
What are you trying to achieve ?

-- 
Tom Chiverton
Helping to biannually administrate magnetic technologies
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for Christmas 
 the New Year


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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

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


--
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] Re: How do I make the background fill the whole screen, not just the Application

2007-12-19 Thread kolt_siewerts
Thanks, but changing it to 100% does not really make it better:
http://kolt-siewerts.com/flexTest/bg100/
I also tried adding minWidth  minHeight, but that is completely ignored...
It seems I can't draw anything outside of the application. It all gets cropped 
to the app 
boundaries. Is there really no property I can set to draw outside of the 
application?

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

 On Wednesday 19 Dec 2007, kolt_siewerts wrote:
  Now whenever the window has not the same aspect ratio as the Application,
  black bars appear.
 
 Do you have width and height 100% on mx:Application and the embeding HTML ?
 
 -- 
 Tom Chiverton
 Helping to biannually extend innovative market-growth
 on: http://thefalken.livejournal.com
 
 
 Halliwells wishes all of its clients and suppliers the Very Best for 
 Christmas  the New 
Year
 
 
 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 Halliwells 
LLP, 3 
Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation 
Authority.
 
 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 
2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.




Re: [flexcoders] Re: Looking for component to generate PDF files

2007-12-19 Thread Samuel Jones
I don't know of any flex/flash components that can accomplish this, but you
may be able to workaround your server limitations. There are at least a few
free online pdf creators (such as https://www.pdfonline.com). Maybe you can
mashup with one of them and use that to create the pdf.

-Sam

On Dec 19, 2007 8:32 AM, sprezzatura1 [EMAIL PROTECTED] wrote:

   Thank you for your reply.

 I think what we need is an SWC component. As far as I understand,
 PDFlib is not available in this format.

 Allow me to elaborate. In our situation, our users will download an
 SWF from a Web page. We will not have an opportunity to install any
 software on the client machine. We need to do all the 'printing' or
 creation of the PDF file, from within our SWF.

 The SWF is hosted on a third-party system, where we cannot run a
 server-based PDF creation service.

 Thanks again.

 Pierre


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ben
 Marchbanks [EMAIL PROTECTED] wrote:
 
  I recommend PDFlib(.com) Its a robust PDF library with maturity that
 meets most
  of the requirements we have for PDF generation.
 
  Its not Open Source but worth the money - There are some open source
 options
  such as iText for Java which we used for a while until we ran into
 so issues.
 
  I have been happy with PDFlib and it runs on all OS.
 

  



Re: [flexcoders] Re: DataGrid ItemRenderes HEADERS?

2007-12-19 Thread Scott Melby
I haven't done this from a custom header... so sorry if this is way off 
base.  But, perhaps you could dispatch an event with bubbles = true from 
the click handler rather than trying to call a method.  Just make sure 
you register as a listener (on the datagrid) for the event type that you 
are dispatching.  Seems the event should bubble out to you.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



Sajid Hussain wrote:

hey .
I want to add checkbox control in datagrid header ,I alredy render tht 
checkbox but problem is that I m not able to call function from on 
that click even I tried parentDocument.callMyfunction(); ..its giving 
me error but the same method I have applied to rows checkbox its 
working but header its not wroking ...

but with application refrence I m able to calll .

ANy help

- Original Message 
From: rueter007 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, December 19, 2007 10:47:05 AM
Subject: [flexcoders] Re: DataGrid ItemRenderes - How to access the 
{data} from the datagrid


You are doing a few things wrong here. use the following source in
your itemrenderer. mxml file

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

xmlns:local= * 

mx:Script
![CDATA[
import mx.events.ListEvent ;

[Bindable] private var dp:Array = [
{ symbol: ADBE, name: Adobe Systems Inc., price: 49.95, bold: true },
{ symbol: MACR, name: Macromedia Inc., price: 39.95, bold: false },
{ symbol: MSFT, name: Microsoft Corp., price: 25.95, bold: true },
{ symbol: IBM, name: IBM Corp., price: 42.55, bold: false }
];

private function changeHandler( event:ListEvent) :void
{
var item: Object = event.itemRenderer. data;

item.bold = !item.bold;
dg1.dataProvider. itemUpdated( item);
}

// Sets the styles to display the DataGrid Items
private function computeStyles( data:Object, column:DataGridColu 
mn):Object

{
var o:Object = new Object();

var bold:String = data[bold] ;
if (bold == true)
{
o.bold = true;
} else {
o.bold = false;
}

return o;
}

]]
/mx:Script

mx:DataGrid id=dg1 dataProvider= {dp}
change=changeHandl er(event)  paddingTop= 0 paddingBottom= 0
verticalAlign= middle 
mx:columns
mx:DataGridColumn headerText= Name dataField=name width=140/ 
mx:DataGridColumn headerText= Symbol dataField=symbol width=60 /
local:CustomColumn stylesFunction= computeStyles headerText= Price
dataField=price itemRenderer= CustomRenderer /
/mx:columns
/mx:DataGrid

/mx:Application

The most important issue here is that the changeHandler is modifying
the dp array which is not the same as the dataprovider of the grid.
you need to get a handle to the actual item in the grid's dataprovider
using the event.itemrenderer. data property and make changes to it. I

HTH

- venkat
http://www.venkatj. com http://www.venkatj.com

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


 Hey Mark,

 I'm struggling with itemRenderers too. First of all here

http://blogs. adobe.com/ aharui/2007/ 03/thinking_ about_item_ 
renderers_ 1.h\
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.h 
tml is a link to Alex's blog speaking about itemRenderers and showing

 some nice examples. In the BlinkWhenDataChange d example he is changing
 Background settings. I tried to adopt his itemRenderer and change it so
 that it checks a data value and sets the textFormat depending on what
 value the data has. This
 http://16-bits. com/ItemRenderer /ItemRenderer. html 
http://16-bits.com/ItemRenderer/ItemRenderer.html is how far i came.

 I toggle the value on change, so when you click it the style changes. My
 only Problem is that it doesn't work anymore after sorting the dataGrid
 by one of its columns. Maybe we can work on this together :-).

 Cheers, Max

 --- In [EMAIL PROTECTED] ups.com 
mailto:flexcoders%40yahoogroups.com, oneproofdk mark@ wrote:

 
  Hi.
  In a itemrenderer I'd like to access a {data} value in a Script in the
  itemrenderer. I just can't figure out how to do this.
 
  I have an ArrayCollection as the dataprovider for the DataGrid.
  In a Column, I sue a itemrenderer status
 
  Inside renderer.status. as I have a VBox, with a init() function.
  Inside init I'd like to test if data.repeating != null and if so,
  set a label to a specific value, if not null, set to another value.
 
  vboxscript /script label/ /vbox
 
  Please - can anyone help me out with an example on how to accomplish
  this, I hope, simple task.
 
  (The reason for using a VBox was that I had my hopes for setting the
  background color also, so if != null color=XX + text = XX etc.
 
  Thanks for your time
  Mark
 





Looking for last minute shopping deals? Find them fast with Yahoo! 
Search. 

[flexcoders] Odd Cairngorm Event error

2007-12-19 Thread Giles Roadnight
Hi All

I'm setting up a session timeout handling system. The way it is
suppsoed to work is that when a call to the back end fails a
SessionTimeOutEvent is dispatched with the orignal event as a property
(e.g. listUsers event).
SessionTimeOutCommand will then popup the login dialogue with a
message and when you've logged in it will re-dispatch the original
event and you'll be back to where you would have been if your session
hadn't timed out.

This all works fine except if 2 events fail at the same time. I have
set up an array where lost events (listUserEvent, listRolesEvent for
example) are stored and then after a successful login are dispatched.

However the second SessionTimeOutEvent that is dispatched causes an error:

TypeError: Error #1034: Type Coercion failed: cannot convert
flash.events::[EMAIL PROTECTED] to com.adobe.cairngorm.control.CairngormEvent.

When I debug it the event is a SessionTimeOutEvent (extends cairngorm
event) and the first SessionTimeOut Event went through no problem at all.

The only thing that I think this could be is somethign to do with the
fact that 2 of these are being dispatched at exactly the same time.
There is no wait for the back end between the 2 calls to the same Command.
I assume that each of these 2 events will generate a new instance of
the SessionTimeOutCommand? Perhaps the first one hasn't died yet or
somethign along those lines.

Can anyone help?

Hope I've been clear enough.

Giles.



SPAM-LOW: Re: [flexcoders] Looking for component to generate PDF files

2007-12-19 Thread sprezzatura1
We would prefer to not use a server-based solution. We are looking for
a component that we can link into our SWF, and that would contain all
we need to generate a PDF from our app. It's a graphics app, doesn't
fit into the LiveCycle paradigm, which seems to be restricted to
business forms, text, 'rules' (horizontal  vertical lines).

We are developing our SWF using Adobe Flex Builder, MXML,
ActionScript, etc.

Right now it's seriously looking like we are going to have to write
the PDF from scratch.

Thank you.

Pierre

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

 
   Are you using this on the server side, or do you use an OEM type 
 version wrapped into a piece of software?
 
 Ben Marchbanks wrote:
  
  
  I recommend PDFlib(.com) Its a robust PDF library with maturity that 
  meets most
  of the requirements we have for PDF generation.
  
  Its not Open Source but worth the money - There are some open source 
  options
  such as iText for Java which we used for a while until we ran into so 
  issues.
  
  I have been happy with PDFlib and it runs on all OS.
  
  sprezzatura1 wrote:
   
   
Does anyone know of a component to create graphics PDF files?
We need
low-level control to create lines, curves, colors, gradients, etc.
   
This would seem to rule out AlivePDF, LiveCycle, which are
text-oriented.
   
The PDF component must run on the client, which eliminates
server-based solutions like Apache FOP.
   
It must represent the graphics as vector elements. An image of the
graphics is not acceptable as it will be coarse and pixellated when
the user zooms in.
   
Thank you.
   
   
  
  -- 
  Ben Marchbanks
  
  ::: alQemy ::: transforming information into intelligence
  http://www.alQemy.com http://www.alQemy.com
  
  ::: magazooms ::: digital magazines
  http://www.magazooms.com http://www.magazooms.com
  
  Greenville, SC
  864.284.9918
  
  
 
 -- 
 Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
 Recording Engineer
 AIM: Reboog711  | Phone: 1-203-379-0773
 --
 My Company: http://www.dot-com-it.com
 My Podcast: http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com





[flexcoders] AMFPHP 2.0 beta ?

2007-12-19 Thread Sajid Hussain
Hello , 
with cureent browse of http://amf-php.org/ , it seems amfphp working going to 
do something more abt lcds formaly FDS , it seems thy dint give amfphp 2 for 
download , 
here amf-php code developers also exist so my question is from them that how 
much effort it will took to migration from amfphp 1.9 to amfphp 2 with FDS or 
messaging ? 

sajid



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] Re: Maintaining component state across sessions

2007-12-19 Thread tomeuchre
--- In flexcoders@yahoogroups.com, Hans Omli [EMAIL PROTECTED] wrote:

 I need to maintain the state of a handful of components across 
sessions in
 an AIR/Flex app.  I've written a HistoryManager, but it doesn't go 
down to
 the level of selected item, which nodes are opened/closed, scroll 
position,
 and so on.  The data for all components is dynamic, so I also need 
to check
 if selected items, opened nodes, or otherwise still exist.
 Anyone come up with an elegant way to accomplish this?

I have a similar need. My generated Flex components will sometimes be 
embedded in a JSP IFRAME. The component can be a viewstack, with 
multiple views. When they perform an action on one, it may switch to 
another, depending on the user gesture.. When the JSP page does its 
periodic refresh, my flex component reloads and they have to start 
from square one again. I want to do whatever it takes to maintain 
state, and I haven't see examples like this, although I am sure other 
people have had this need before me...
I am using PureMVC, so if I could even set up a multiple-command 
sequence to get me back to where I was, I can do that if neccessary, 
but there has to be a better way.
Let me know if you find out.




RE: [flexcoders] Odd Cairngorm Event error

2007-12-19 Thread Alistair McLeod
Are you dispatching the same instance a second time? If so, ensure you
implement the clone() method on your event.

Alistair 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: 19 December 2007 15:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Odd Cairngorm Event error

Hi All

I'm setting up a session timeout handling system. The way it is suppsoed
to work is that when a call to the back end fails a SessionTimeOutEvent
is dispatched with the orignal event as a property (e.g. listUsers
event).
SessionTimeOutCommand will then popup the login dialogue with a message
and when you've logged in it will re-dispatch the original event and
you'll be back to where you would have been if your session hadn't timed
out.

This all works fine except if 2 events fail at the same time. I have set
up an array where lost events (listUserEvent, listRolesEvent for
example) are stored and then after a successful login are dispatched.

However the second SessionTimeOutEvent that is dispatched causes an
error:

TypeError: Error #1034: Type Coercion failed: cannot convert
flash.events::[EMAIL PROTECTED] to
com.adobe.cairngorm.control.CairngormEvent.

When I debug it the event is a SessionTimeOutEvent (extends cairngorm
event) and the first SessionTimeOut Event went through no problem at
all.

The only thing that I think this could be is somethign to do with the
fact that 2 of these are being dispatched at exactly the same time.
There is no wait for the back end between the 2 calls to the same
Command.
I assume that each of these 2 events will generate a new instance of the
SessionTimeOutCommand? Perhaps the first one hasn't died yet or
somethign along those lines.

Can anyone help?

Hope I've been clear enough.

Giles.



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





Re: [flexcoders] Maintaining component state across sessions

2007-12-19 Thread Tom Chiverton
On Wednesday 19 Dec 2007, Hans Omli wrote:
 an AIR/Flex app.  I've written a HistoryManager, but it doesn't go down to
 the level of selected item, which nodes are opened/closed, scroll position,

Flex 3's BrowserManager may or may not be what you want, failing that you 
should be able to serialise your state to a SharedObject yourself, and 
reconfigure on start if the SharedObject is present.

-- 
Tom Chiverton
Helping to augmentatively iterate essential systems
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for Christmas 
 the New Year


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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

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


--
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] Re: Vertical scrolling without horizontal scrolling? How do I make 100% == 100%

2007-12-19 Thread dave_defusion
Setting minHeight (everywhere I've already defined minWidth) doesn't
resolve the issue either.



[flexcoders] How to Activate Scrolling on Page load ???

2007-12-19 Thread tarun chandra
Hi

I have compiled my mxml file into an swf file and embedded it in a
jsp. My mxml has a datagrid inside a VBox. 

I found that when there are certain number of rows to display  a
veritcal scroll bar shows up. I have no problem with the scroll bar.
But when I roll over and try to scroll down nothing happens. Somehow
after I have to first click anywhere in the VBox (or DataGrid) that
wraps the datagrid to activate the scrolling of the datagrid. I tried
doing this on mouse over but it does not help.

 private function init():void
  {
regVBox.addEventListener(MouseEvent.MOUSE_OVER,  
  regMouseOverHandler);
regVBox.addEventListener(MouseEvent.CLICK, 
 regClickHandler);
  }

private function regMouseOverHandler(event:MouseEvent):void
{
regVBox.dispatchEvent(new
MouseEvent(MouseEvent.CLICK, true, false, 
10,10,null,false,false,false,true));
}
I have to physically CLICK in order to activate scrolling.Is there
anyway I can activate scrolling for the VBox (or datagrid)
on page load itself? 

Thank You,
Tarun



[flexcoders] Re: adding backgroundColor to Canvas retains images after removeAllChildren()?

2007-12-19 Thread Brian
I may file a bug tonight. I registered with my gmail address, which is
blocked at work so I can't complete the registration.

I'd love to share code that highlights the problem, but am not sure
what to share. It is literally as simple as

removeAllChildren();
drawMap();

This is within my component which extends Canvas. The drawMap()
function draws the new images, as determined by the data model. Those
2 lines of code are executed from 3 different events. It was working
for 2 of them, and sporadically for the 3rd. Now it appears to be
working more consistently on the one it wasn't working before. I have
no idea what changed.

If I uncover more information, I'll post it.  Thanks for your reply

Brian

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

 I can't reproduce this but I just tried a simple case. Can you share
 some code highlighting the problem (and/or file a bug at
 bugs.adobe.com)? 
 
 Thanks,
 deepa
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Brian
 Sent: Monday, December 17, 2007 8:25 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] adding backgroundColor to Canvas retains images
 after removeAllChildren()?
 
 I've run into a strange behavior with a Canvas component. I'm using a
 Canvas to do some basic GoogleMap-like functionality: I add images to
 the canvas, it's got scrollbars because the added images sometimes
 extend the size of the canvas beyond it's container size, and it's
 draggable. There are times when I need to load a new set of images. In
 those cases, I simple call removeAllChildren() and then start adding
 my new images. 
 
 It worked fine until I set the backgroundColor. Prior to this I had
 not set the bgColor so I was just using the default. The strange
 effect that has created is when I want to 'refresh' the canvas with a
 new set of images (and call removeAllChildren()), it leaves behind the
 images that are in the viewable portion of the canvas. If I drag the
 canvas around so that the old images get clipped, then they get
 'painted' over with the background color (which is simply black).
 
 I've tried calling validateNow() in between the removeAllChildren()
 and drawing my new set of images, but that didn't clear up the old
 images either. I have no other properties or styles set on the canvas
 component except for left/right/bottom/top.
 
 Any ideas what's causing this?
 
 Thanks
 
 
 
 --
 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





Re: [flexcoders] How to Activate Scrolling on Page load ???

2007-12-19 Thread Tom Chiverton
On Wednesday 19 Dec 2007, tarun chandra wrote:
 I have compiled my mxml file into an swf file and embedded it in a
 jsp. My mxml has a datagrid inside a VBox.

tc:guess
Your HTML wrapper doesn't focus the SWF. AFAIK only IE lets you do this.
/tc:guess

-- 
Tom Chiverton
Helping to competently bully advanced applications
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for Christmas 
 the New Year


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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

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


--
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] Re: How do I make the background fill the whole screen, not just the Application

2007-12-19 Thread kolt_siewerts
I want the background to fill the whole window. Without black borders as in my 
example...


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

 On Wednesday 19 Dec 2007, kolt_siewerts wrote:
  cropped to the app boundaries. Is there really no property I can set to
  draw outside of the application?
 
 I doubt it.
 What are you trying to achieve ?
 
 -- 
 Tom Chiverton
 Helping to biannually administrate magnetic technologies
 on: http://thefalken.livejournal.com
 
 
 Halliwells wishes all of its clients and suppliers the Very Best for 
 Christmas  the New 
Year
 
 
 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 Halliwells 
LLP, 3 
Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation 
Authority.
 
 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 
2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.




Re: [flexcoders] notification event

2007-12-19 Thread Jhonny Everson
You could make the application dispatch custom
events, then all windows can listen to that events, lock and unlock.

-- 
Jhonny Everson


[flexcoders] Re: DataGrid LinkButton - How to get columnIndex and rowIndex when linkButton is

2007-12-19 Thread valdhor
I am a newbie so this could be wrong.

As I understand it, itemclick can only be used for things like
datagrid cells, lists etc.

What I have done is create an itemrenderer for each cell that places a
linkbutton in a cell if the value of the cell is greater than zero.
With a linkbutton I do not get an itemclick.

Am I correct?

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

 I would use ITEM_CLICK instead of CLICK.  Did that not work for you?
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of valdhor
 Sent: Tuesday, December 18, 2007 5:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGrid LinkButton - How to get columnIndex
 and rowIndex when linkButton is
 
 
 
 Here is my itemRenderer...
 
 package customcomponents
 {
 import flash.events.*;
 import mx.controls.*;
 import mx.controls.dataGridClasses.DataGridListData;
 import mx.core.*;
 
 public class CellField extends LinkButton
 {
 public var fieldValue:String;
 
 public function CellField()
 {
 super();
 addEventListener(MouseEvent.CLICK, Application.application.cellClick);
 }
 
 override public function set data(value:Object):void
 {
 if(value != null)
 {
 super.data = value;
 
 fieldValue = value[DataGridListData(listData).dataField];
 
 if (Number(fieldValue) == 0)
 {
 label = 0;
 enabled = false;
 useHandCursor = false;
 }
 else
 {
 label = fieldValue;
 enabled = true;
 useHandCursor = true;
 setStyle(color, #FF);
 setStyle(textDecoration, underline);
 setStyle(textRollOverColor:, #CC);
 }
 }
 }
 }
 }
 
 And here is how I am using it...
 
 mx:DataGridColumn id=ConfigChangesColumn
 headerText={newline}Config{newline}Changes dataField=configchanges
 width=60 sortable=false itemRenderer=customcomponents.CellField/
 
 and here is the cellclick function...
 
 public function cellClick(event:Event):void
 {
 Alert.show(String(event.currentTarget));
 }
 
 So, now I need to know which cell was clicked.
 
 Any help would be most appreciated.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  Where are you adding the event listener? Can you use itemClick event?
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of valdhor
  Sent: Monday, December 17, 2007 12:59 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] DataGrid LinkButton - How to get columnIndex and
  rowIndex when linkButton is cli
  
  
  
  Hi
  
  I am a newbie with a problem - I have a datagrid with an itemRenderer.
  The itemRenderer is an AS class that extends LinkButton and just
  checks if the data is 0 or not. If it is 0 then disable the button.
  Then it adds an event listener:
  
  addEventListener(MouseEvent.CLICK, Application.application.cellClick);
  
  This function gets called correctly but now I need to get the
  columnIndex and rowIndex of the cell that the linkbutton was in. The
  target and currentTarget are the same (The custom ItemRenderer class).
  If I then try parentDocument, it returns the panel that holds the
  datagrid. None of the panels or datagrids have ID's as they are
  created on the fly based on a HTTPService lookup.
  
  Can anyone tell me how to go about getting the columnIndex and
  rowIndex of the clicked linkbutton?
  
  Best Regards
  
  Steve
 





[flexcoders] Search function via backend or frontend?

2007-12-19 Thread m.frigge
Hi there,

just a general question. What would you recommend as a search
function, when you already have the data loaded in Flex? To create a
filterFunction or to do a new request to the backend that returns the
result? Sounds kind of sstupid but I have got the feeling that the
filterFunction does not have the best performance, but maybe i am wrong?

Greets, Max



RE: [flexcoders] Re: itemrenderer dataprovider index?

2007-12-19 Thread Tracy Spratt
getItemIndex() is a method of  collections.  I'd advise creating a
bindable instance variable typed as a collection (XMLListCollection or
ArrayCollection), and assigning its value in a result handler.  Bind the
list to that var.  Then you can do:

value={outerDocument.acData.getItemIndex(data)

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bmilesp
Sent: Wednesday, December 19, 2007 2:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: itemrenderer dataprovider index?

 

i've already tried getItemIndex and failed, i suppose that i'm 
implementing it wrong. I've attempted a number of times similar to 
this attempt:

mx:List dataprovider=dProvider.incrementalData
mx:itemrenderer
mx:component
p:custom_component dataProvider={data.element} 
value={outerDocument.dataModel.dataVal[getItemIndex(this)]}
/mx:component
/mx:itemRenderer
/mx:list

thie idea is this: as each component in the itemrenderer increments, 
it will bind to the dataModel.dataVal[index] to retrieve it's value. 
But obviously getItemIndex in this case doesn't work. Any other 
ideas? thx in advance -b

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 You can call getItemIndex if you want
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of bmilesp
 Sent: Tuesday, December 18, 2007 7:18 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] itemrenderer dataprovider index?
 
 
 
 greetings!
 
 I have an mx:List with an itemrenderer that renders a custom 
 component using a dataprovider. i want to get the rendered item 
index 
 (or current dataprovider index?) of each custom component in the 
 list. 
 
 or even just an incrementing number inside of the component would 
 work. 
 
 so I wish to write something like: 
 
 p:custom_component dataProvider={data} 
 value={outerDocument.dataModel.dataVal[i]}
 
 i being the current index of the rendered item
 
 Any Clues? thanks everyone!


 



Re: [flexcoders] Re: How do I make the background fill the whole screen, not just the Application

2007-12-19 Thread Tom Chiverton
On Wednesday 19 Dec 2007, kolt_siewerts wrote:
 I want the background to fill the whole window. Without black borders as in
 my example...

If you've got mx:Application 100% wide, along with the bits inside it, it 
should be.
Did you try something simple i.e.
mx:Application width=100% height=100%
mx:Text width=100% height=100% text=hello world/
/mx:Application
?

Failing that you'll have to past some code.

-- 
Tom Chiverton
Helping to challengingly iterate proactive models
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for Christmas 
 the New Year


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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

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


--
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] Re: How do I make the background fill the whole screen, not just the Application

2007-12-19 Thread kolt_siewerts
Hi, 
if you right-click on the examples I've posted, you can select View Source to 
see what I 
tried: 
http://kolt-siewerts.com/flexTest/bg100/
The black border also stays there if I put the mx:Text with 100% in it :( 


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

 On Wednesday 19 Dec 2007, kolt_siewerts wrote:
  I want the background to fill the whole window. Without black borders as in
  my example...
 
 If you've got mx:Application 100% wide, along with the bits inside it, it 
 should be.
 Did you try something simple i.e.
 mx:Application width=100% height=100%
   mx:Text width=100% height=100% text=hello world/
 /mx:Application
 ?
 
 Failing that you'll have to past some code.
 
 -- 
 Tom Chiverton
 Helping to challengingly iterate proactive models
 on: http://thefalken.livejournal.com
 
 
 Halliwells wishes all of its clients and suppliers the Very Best for 
 Christmas  the New 
Year
 
 
 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 Halliwells 
LLP, 3 
Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation 
Authority.
 
 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 
2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.




RE: [flexcoders] Multi Query HTTPService Functions Variables DataGrid. Error with 2nd URL query

2007-12-19 Thread Tracy Spratt
1.  This, url=url is wrong. What are you expecting form an URL
that is the string url?  Are you attempting to bind the url property
to a variable?
2.  If so, then do url={_url}.  ( and don't use a property name
for a variable name.) But that will require the var _url be declared as
an instance variable.
3.  In your combo click handler, assign the url string to the
instance variable, not to a local variable.

 

Actually my preference would be to assign the url directly in the
handler, instead of binding:

var sURL:String = http://localhost/cgi-bin/dbRecords.cgi?ini=; + ini;

trace(sURL= + sURL);  //copy and paste this into a browser to test it.

dbRecords.url = sURL;

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of brian_garcia81
Sent: Wednesday, December 19, 2007 3:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Multi Query HTTPService Functions Variables
DataGrid. Error with 2nd URL query

 

Hi, 

Im trying to get this app working. currently Working it query's the 
database with mx:XML and populates mx:ComboBox on the selection 
is captures the user selection. Here on out Im having issues. 

I need to pass the variables through a url so I bound the comobox 
selection to a variable and then the new URL to a variable with the 
combobox selection + added on. 

It then connects to the new Url with mx:HTTPService and populates a 
datagrid with the return XML from the Http request.

my code complies with no problems but when run it errors out
at 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
http://www.adobe.com/2006/flex/mx/internal: 
:childAdded()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:1553]
at mx.managers::SystemManager/initializeTopLevelWindow()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2330]
at mx.managers::SystemManager/docFrameHandler()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\managers\SystemManager.as:2214]

The inital query to a URL works and populates a combox im unsure what 
is exactly wrong with my code. I have been staring at it for about 2 
days now have issues. I found this website that helped. 
http://flashmove.com/forum/showthread.php?t=30242
http://flashmove.com/forum/showthread.php?t=30242 
and this one but it confused me more then helped.
http://nwebb.co.uk/blog/?p=118 http://nwebb.co.uk/blog/?p=118 

All help will be greatly welcomed.

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
layout=vertical 
mx:Script
![CDATA[

private function onComboChange(event:Event):void
{

var ini:String = event.target.selectedItem;
var url:String = http://localhost/cgi- http://localhost/cgi- 
bin/dbRecords.cgi?ini= + ini;

dbRecords.send();
}

]]
/mx:Script
mx:XML id=sqlQuerey source=http://localhost/cgi-
http://localhost/cgi- 
bin/dbtables.cgi /

mx:HTTPService id=dbRecords url=url /
mx:DataGrid id=recordDisplay 
dataProvider=dbRecords.lastResult.MasterFile.Record

/mx:DataGrid
mx:ComboBox 
id=ini 
dataProvider={sqlQuerey.name} 
rowCount=30
change=onComboChange(event)
/

/mx:Application

 



Re: [flexcoders] Re: How do I make the background fill the whole screen, not just the Application

2007-12-19 Thread Tom Chiverton
On Wednesday 19 Dec 2007, kolt_siewerts wrote:
 Hi,
 if you right-click on the examples I've posted, you can select View
 Source to see what I tried:

Drop the script block.

-- 
Tom Chiverton
Helping to appropriately synthesize six-generation e-business
on: http://thefalken.livejournal.com


Halliwells wishes all of its clients and suppliers the Very Best for Christmas 
 the New Year


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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation Authority.

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

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


--
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] DragImage initial position wrong, causing jumpiness

2007-12-19 Thread danielggold
I've seen this in a few places where I'm doing custom drag and drop.
When the DragImage is initially drawn, if you just barely click and
move the mouse, the image is drawn with a Y offset that looks to be
about the height of the dragInitiators container. If you move the
mouse a few more pixels the DragImage snaps back under the mouse. This
causes some annoying flickers in my app because the place the
DragImage is initially drawn is not a valid drop zone, but then it
snaps back to a valid zone.

This doesn't seem to be something I can control in the doDrag
function, the offsets I can specify there only apply AFTER the
DragImage has snapped back to the correct position.

Any ideas?



[flexcoders] Specifying Component Height/Width Percentages via Actionscript

2007-12-19 Thread byte.sensei
Is there an easy way to specify a component height/width in percentages 
rather than pixels via Actionscript?

I have a UI that has 2 VBox components.  By default, the height of the 
top is set to 100% and the height of the bottom is 0.  However, I want 
to be able to dynamically change the heights to 85% / 15% using an 
Actionscript function.

I tried setting height/width using a formula to calculate the correct 
height in pixels, which seemed to work until I resized the browser and 
realized that Flex had changed the VBox heights to static pixels, so 
they no longer scaled as the browser window was resized (i.e. their 
heights where now static pixels instead of percentages).




[flexcoders] Default sorting in DataGrid

2007-12-19 Thread m.frigge
Hi, how can i set a default column to sort a dataGrid by? I know that
i could just sort the dataProvider, but then i don't have the
indicator that tells the user by witch column the dataGrid is sorted?!? 

Thanks, Max



[flexcoders] Re: Specifying Component Height/Width Percentages via Actionscript

2007-12-19 Thread rueter007
try using percentWidth and percentHeight properties.

- venkat
http://www.venkatj.com

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

 Is there an easy way to specify a component height/width in percentages 
 rather than pixels via Actionscript?
 
 I have a UI that has 2 VBox components.  By default, the height of the 
 top is set to 100% and the height of the bottom is 0.  However, I want 
 to be able to dynamically change the heights to 85% / 15% using an 
 Actionscript function.
 
 I tried setting height/width using a formula to calculate the correct 
 height in pixels, which seemed to work until I resized the browser and 
 realized that Flex had changed the VBox heights to static pixels, so 
 they no longer scaled as the browser window was resized (i.e. their 
 heights where now static pixels instead of percentages).





[flexcoders] Re: How do I make the background fill the whole screen, not just the Application

2007-12-19 Thread kolt_siewerts
Great, I did it and now it renders the background in the whole window.
But now how do I tell my app to scale with the window (StageScaleMode.SHOW_ALL 
instead  
of the default NO_SCALE) and to center vertically and horizontally?
Thanks,
kolt

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

 On Wednesday 19 Dec 2007, kolt_siewerts wrote:
  Hi,
  if you right-click on the examples I've posted, you can select View
  Source to see what I tried:
 
 Drop the script block.
 
 -- 
 Tom Chiverton
 Helping to appropriately synthesize six-generation e-business
 on: http://thefalken.livejournal.com
 
 
 Halliwells wishes all of its clients and suppliers the Very Best for 
 Christmas  the New 
Year
 
 
 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 Halliwells 
LLP, 3 
Hardman Square, Spinningfields, Manchester, M3 3EB.  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 Solicitors Regulation 
Authority.
 
 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 
2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.




[flexcoders] DataGrid header horizontal row seperator

2007-12-19 Thread tony.grimes57
Hi

i am having a hell of a tme finding out how to style this. Basically i 
want to add about a 10px gap between the header row of the datagrid and 
the data rows.

Looking at the DataGrid styles i have noted that:

1. HeaderSeparatorSkin - this only affects the vertical lines between 
the header columns and not the horizontal row seperator that i am 
looking to style

2. HeaderStyleName - only affects text in the datagrid header

3. There are various other styles in the documentation but they target 
the vertical and horizontal lines between the datarows and do not 
affect the line/border between the header and data rows

4. borderColor does affect the color of the header row seperator but 
none of the other border styles (borderThickness, borderSides etc) seem 
to target it. And obviously i am looking to change its thickness rather 
than color

So, it seems that this header row seperator has no styles to control 
it. Anyone any ideas how i can configure this?

many thanks



[flexcoders] Re: Search function via backend or frontend?

2007-12-19 Thread rueter007
I use the filterFunction for my project which has lots of data. I
think it is still better than going to the backend, getting the result
and repopulating the controls.

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

 Hi there,
 
 just a general question. What would you recommend as a search
 function, when you already have the data loaded in Flex? To create a
 filterFunction or to do a new request to the backend that returns the
 result? Sounds kind of sstupid but I have got the feeling that the
 filterFunction does not have the best performance, but maybe i am wrong?
 
 Greets, Max





[flexcoders] Re: DataGrid LinkButton - How to get columnIndex and rowIndex when linkButton is

2007-12-19 Thread rueter007
you will still get an itemclick event when the link button inside the
cell is clicked. did you try it?

- venkat
http://www.venkatj.com

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

 I am a newbie so this could be wrong.
 
 As I understand it, itemclick can only be used for things like
 datagrid cells, lists etc.
 
 What I have done is create an itemrenderer for each cell that places a
 linkbutton in a cell if the value of the cell is greater than zero.
 With a linkbutton I do not get an itemclick.
 
 Am I correct?
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  I would use ITEM_CLICK instead of CLICK.  Did that not work for you?
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of valdhor
  Sent: Tuesday, December 18, 2007 5:55 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: DataGrid LinkButton - How to get columnIndex
  and rowIndex when linkButton is
  
  
  
  Here is my itemRenderer...
  
  package customcomponents
  {
  import flash.events.*;
  import mx.controls.*;
  import mx.controls.dataGridClasses.DataGridListData;
  import mx.core.*;
  
  public class CellField extends LinkButton
  {
  public var fieldValue:String;
  
  public function CellField()
  {
  super();
  addEventListener(MouseEvent.CLICK, Application.application.cellClick);
  }
  
  override public function set data(value:Object):void
  {
  if(value != null)
  {
  super.data = value;
  
  fieldValue = value[DataGridListData(listData).dataField];
  
  if (Number(fieldValue) == 0)
  {
  label = 0;
  enabled = false;
  useHandCursor = false;
  }
  else
  {
  label = fieldValue;
  enabled = true;
  useHandCursor = true;
  setStyle(color, #FF);
  setStyle(textDecoration, underline);
  setStyle(textRollOverColor:, #CC);
  }
  }
  }
  }
  }
  
  And here is how I am using it...
  
  mx:DataGridColumn id=ConfigChangesColumn
  headerText={newline}Config{newline}Changes dataField=configchanges
  width=60 sortable=false
itemRenderer=customcomponents.CellField/
  
  and here is the cellclick function...
  
  public function cellClick(event:Event):void
  {
  Alert.show(String(event.currentTarget));
  }
  
  So, now I need to know which cell was clicked.
  
  Any help would be most appreciated.
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   Where are you adding the event listener? Can you use itemClick
event?
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of valdhor
   Sent: Monday, December 17, 2007 12:59 PM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] DataGrid LinkButton - How to get
columnIndex and
   rowIndex when linkButton is cli
   
   
   
   Hi
   
   I am a newbie with a problem - I have a datagrid with an
itemRenderer.
   The itemRenderer is an AS class that extends LinkButton and just
   checks if the data is 0 or not. If it is 0 then disable the button.
   Then it adds an event listener:
   
   addEventListener(MouseEvent.CLICK,
Application.application.cellClick);
   
   This function gets called correctly but now I need to get the
   columnIndex and rowIndex of the cell that the linkbutton was in. The
   target and currentTarget are the same (The custom ItemRenderer
class).
   If I then try parentDocument, it returns the panel that holds the
   datagrid. None of the panels or datagrids have ID's as they are
   created on the fly based on a HTTPService lookup.
   
   Can anyone tell me how to go about getting the columnIndex and
   rowIndex of the clicked linkbutton?
   
   Best Regards
   
   Steve
  
 





[flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-19 Thread Cosma
--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote:

 Tom is correct. The compiler starts out from the root class (i.e.
 typically your subclass of mx.core.Application) and resolves types as
 needed. Types can be found in source path(s) or library path(s). This is
 why mxmlc enforces the one public definition per file rule and also
 establishes the convention of a sub-package is a sub-directory as it
 makes type resolution from sources predictable. Both of these
 conventions are Flex specific and not inherent to the ActionScript 3.0
 language.

It is interesting to know how the flex compiler works, thank you for
the explanation.

 If it were the other way around then I guess you would have to create a
 project that explicitly added each source to the configuration (if we
 were to scan all sources then ActionScript include fragments would be
 invalid definitions etc...). That would seem more of an effort to me...
 If the tool were changed to scan all types, including non-referenced
 types, for [RemoteClass] metadata then your SWF would be unnecessarily
 large because you would start embedded classes that you never intended
 to use.

Peter, why should the size of the SWF increase unnecessarily including
all the classes marked with [RemoteClass] metadata?

I suppose that the great majority of the framework's classes don't
make use of this feature, so the only additional classes included in
the binary would be the project-specific ones, and this seems exactly
the expected behaviour to me - tipically those classes are the DTOs of
my application and I'll likely need them anyway.

I still think that referencing all the classes by hand in my code is
not really a viable solution.. even if I choose to declare a reference
for every server object I work with in my MXML components, I have also
to declare a reference for each subclass of it (my DTOs are usually
extending other ones), and this is not the level of knowledge of my
services that I want to keep in mind when coding a Flex front-end for
them. As I said in a previous post, a way to include an entire package
of classes (compiler switch/ide support) would at least allow us to
setup this when starting a new project and then to forget about it.

Anyway, I think Flex is a great product, and this is probabily the
only real issue I found until now :)

Cosma





[flexcoders] Re: DataGrid header horizontal row seperator

2007-12-19 Thread m.frigge
Hey, 

it's kind of a stupid workaround but if you don't want to create a
programmatic skin, you could set the headerHeight 10px higher and skin
it so that it looks like there is a separator. Otherwise i guess you
will have to skin it programmaticly... but not 100% on that though :-).  

HTH, Max

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

 Hi
 
 i am having a hell of a tme finding out how to style this. Basically i 
 want to add about a 10px gap between the header row of the datagrid and 
 the data rows.
 
 Looking at the DataGrid styles i have noted that:
 
 1. HeaderSeparatorSkin - this only affects the vertical lines between 
 the header columns and not the horizontal row seperator that i am 
 looking to style
 
 2. HeaderStyleName - only affects text in the datagrid header
 
 3. There are various other styles in the documentation but they target 
 the vertical and horizontal lines between the datarows and do not 
 affect the line/border between the header and data rows
 
 4. borderColor does affect the color of the header row seperator but 
 none of the other border styles (borderThickness, borderSides etc) seem 
 to target it. And obviously i am looking to change its thickness rather 
 than color
 
 So, it seems that this header row seperator has no styles to control 
 it. Anyone any ideas how i can configure this?
 
 many thanks





[flexcoders] Re: Cairngorm AMFPHP

2007-12-19 Thread JWOpitz
Hi Steve,

Thanks for the feedback.  To answer some questions and to ask more
here I go:

1. Yes I am using the RemoteClass tag however I am not using the
registerClassAlias function.  Hadn't heard anything about using it but
will look into it.  So does that work in conjunction with the Metadata
tag?  How exactly are you utilizing the import?

2. My commands do the same thing (I scrapped the whole Cairngorm
delegate thing) so I think that should be fine.

3. Nope, never did that so that might help too.


Wow, I am really surprised by the lack of documentation or rather the
wealth of misinformation.  All the examples I was looking at never
mentioned any of this.  Nor did they really pose the issue in the
framework of Flex and Cairngorm.

Thanks,
Justin

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

 I use AMFPHP no issues here... my Objects transfer just fine
 
 1.Have you registered the class alias in your UserVO.as?
 
 import flash.net.registerClassAlias;  
 [RemoteClass(alias=UserVO)]
 
 
 2.My service calls in my delegates look like this.
 
 public function getUser(vo:UserVO):void
 {
   var token:AsyncToken = this.service.getUser(vo);
   token.addResponder(this.responder);
 }
 
 3. Did you set the classMappingsPath in gateway.php?
 
 $gateway-setClassMappingsPath(my/path/to/voDir/);
 
 
 
 steve
 
 
 
 --- In flexcoders@yahoogroups.com, JWOpitz jwopitz@ wrote:
 
  an update to this:
  
  I ended up dropping the casting to the UserVO.php.  So the function
  signature looks like:
  
   function getUser ($user){}
  
  rather than 
  
   function getUser (UserVO $user){}
  
  then inside the new function I set the type to an object using:
  
   settype(user, object);
  
  this allows the php function to be able to retrieve the object
  propeties such as $user-name or $user-password since it sees it as
  an object rather than the array flex likes to send.
  
  Though this works, it doesn't sit well with me because I thought the
  whole idea of remoting was to be able to pass classes around without
  having to do these kind of work arounds.
  
  If anyone has any ideas on this, please give me a shout.
  
  Thanks,
  J
 





[flexcoders] Re: Search function via backend or frontend?

2007-12-19 Thread m.frigge
Ok, I thought so. Thanks for the quick answer. How many entries did
you have in your project if I may ask.. more than 5000? I was just
kind of stoked by some AMF Benchmark results I saw on the web.

Cheers, Max

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

 I use the filterFunction for my project which has lots of data. I
 think it is still better than going to the backend, getting the result
 and repopulating the controls.
 
 --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote:
 
  Hi there,
  
  just a general question. What would you recommend as a search
  function, when you already have the data loaded in Flex? To create a
  filterFunction or to do a new request to the backend that returns the
  result? Sounds kind of sstupid but I have got the feeling that the
  filterFunction does not have the best performance, but maybe i am
wrong?
  
  Greets, Max
 





[flexcoders] Re: Default sorting in DataGrid

2007-12-19 Thread rueter007
look at this link. it may help.

http://www.bealearts.co.uk/blog/2007/06/15/default-sorting-for-a-flex-datagrid/

- venkat
http://www.venkatj.com

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

 Hi, how can i set a default column to sort a dataGrid by? I know that
 i could just sort the dataProvider, but then i don't have the
 indicator that tells the user by witch column the dataGrid is sorted?!? 
 
 Thanks, Max





[flexcoders] Re: Search function via backend or frontend?

2007-12-19 Thread rueter007
I had anywhere between a 1000 to a couple of thousands, sometimes
beyond 1.

did you look at this link?


http://www.jamesward.org/wordpress/2007/04/30/ajax-and-flex-data-loading-benchmarks/

- venkat
http://www.venkatj.com

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

 Ok, I thought so. Thanks for the quick answer. How many entries did
 you have in your project if I may ask.. more than 5000? I was just
 kind of stoked by some AMF Benchmark results I saw on the web.
 
 Cheers, Max
 
 --- In flexcoders@yahoogroups.com, rueter007 rueter007@ wrote:
 
  I use the filterFunction for my project which has lots of data. I
  think it is still better than going to the backend, getting the result
  and repopulating the controls.
  
  --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote:
  
   Hi there,
   
   just a general question. What would you recommend as a search
   function, when you already have the data loaded in Flex? To create a
   filterFunction or to do a new request to the backend that
returns the
   result? Sounds kind of sstupid but I have got the feeling that the
   filterFunction does not have the best performance, but maybe i am
 wrong?
   
   Greets, Max
  
 





[flexcoders] Re: Looking for component to generate PDF files

2007-12-19 Thread valdhor
Take a peek at
http://brainstorm.esria.com/2007/08/24/client-side-pdf-generation-for-flashflex-and-air/


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

 Thank you for your reply.
 
 I think what we need is an SWC component. As far as I understand,
 PDFlib is not available in this format.
 
 Allow me to elaborate. In our situation, our users will download an
 SWF from a Web page. We will not have an opportunity to install any
 software on the client machine. We need to do all the 'printing' or
 creation of the PDF file, from within our SWF.
 
 The SWF is hosted on a third-party system, where we cannot run a
 server-based PDF creation service.
 
 Thanks again.
 
 Pierre
 
 --- In flexcoders@yahoogroups.com, Ben Marchbanks flex@ wrote:
 
  I recommend PDFlib(.com) Its a robust PDF library with maturity that
 meets most 
  of the requirements we have for PDF generation.
  
  Its not Open Source but worth the money - There are some open source
 options 
  such as iText for Java which we used for a while until we ran into
 so issues.
  
  I have been happy with PDFlib and it runs on all OS.
 





RE: [flexcoders] Re: Vertical scrolling without horizontal scrolling? How do I make 100% == 100%

2007-12-19 Thread Alex Harui
Do you have a small test case?  I already resolved this for someone else
earlier.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dave_defusion
Sent: Wednesday, December 19, 2007 7:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Vertical scrolling without horizontal
scrolling? How do I make 100% == 100%

 

Setting minHeight (everywhere I've already defined minWidth) doesn't
resolve the issue either.

 



RE: [flexcoders] DragImage initial position wrong, causing jumpiness

2007-12-19 Thread Alex Harui
Can you post a simple test case?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danielggold
Sent: Wednesday, December 19, 2007 8:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DragImage initial position wrong, causing
jumpiness

 

I've seen this in a few places where I'm doing custom drag and drop.
When the DragImage is initially drawn, if you just barely click and
move the mouse, the image is drawn with a Y offset that looks to be
about the height of the dragInitiators container. If you move the
mouse a few more pixels the DragImage snaps back under the mouse. This
causes some annoying flickers in my app because the place the
DragImage is initially drawn is not a valid drop zone, but then it
snaps back to a valid zone.

This doesn't seem to be something I can control in the doDrag
function, the offsets I can specify there only apply AFTER the
DragImage has snapped back to the correct position.

Any ideas?

 



RE: [flexcoders] I could use some help with printing problems that I don't understand

2007-12-19 Thread Alex Harui
Please post the renderer code.  You may not be propertly measuring the
text by relying on the explicitWidth given by the DG.  Then, if the text
takes two layouts to get it right, printing won't work because it
effectively only allows one layout

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark
Sent: Wednesday, December 19, 2007 6:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] I could use some help with printing problems that
I don't understand

 

I have a pretty basic Project Management application that shows 
projects in a datagrid then when you click on a project you get all 
the details (name, dates, descriptions, etc.) Of course I have a 
printing script for them to print it out nice and clean, but it cuts 
off some of the text in some of the Text boxes. I tried setting up 
the printing 2 ways but both get the same results. In both cases 
I'm using a mx:Text box so the text will wrap and the box will 
size. Any ideas would be great, I feel real lost right now as to 
why it would should fine in the details window but cut off in the 
prining.

Here's the printing scripts:

1st - just printing the 2 VBox's that hold all the info:

public function doDetailsWinPrint():void {
var printDJob:FlexPrintJob = new 
FlexPrintJob();
printDJob.printAsBitmap = false;
if (printDJob.start() != true) 
return;
printDJob.addObject
(details.printLeft,FlexPrintJobScaleType.NONE);
printDJob.addObject
(details.printRight,FlexPrintJobScaleType.NONE);
printDJob.send();
}

2nd - I created a new component that lines everything up within a 
single VBox, passing the details to a holder:

public function doDetailsPrint():void {
var printDJob:FlexPrintJob = new FlexPrintJob();
printDJob.printAsBitmap = false;
if (printDJob.start()) {
var printDetails:PrintDetailsView = new PrintDetailsView
();
addChild(printDetails);
printDetails.width = printDJob.pageWidth;
//***
printDetails._ADL = projCatHolder.details.radarArr;
//***
printDJob.addObject
(printDetails,FlexPrintJobScaleType.SHOW_ALL);
removeChild(printDetails);
}
printDJob.send();
}

 



RE: [flexcoders] Any way to cast a string reference of a class name to its Class equivallent

2007-12-19 Thread Alex Harui
getDefinition

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of polestar11
Sent: Wednesday, December 19, 2007 4:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Any way to cast a string reference of a class name
to its Class equivallent

 

Hi there

I have a list of class names stored as strings in an xml file. 
Is there any way to cast them to actual class items programatically
once the file has loaded.

Eg. 
item classname=aClass/

// in code
myComponent.setStyle(icon, Class([EMAIL PROTECTED]));

Cheers
Tracy

 



[flexcoders] Is there possible to enable autoSize properties for Text components?

2007-12-19 Thread flexawesome


hey there,

I uses following code in my application, and I would like to pass text
message into my text component. 

Is there a way to enable autoSize for it? so it could be set width
property.

mx:Text id=txtComp text={txtCompText}/

Have a nice day



RE: [flexcoders] Re: tabEnabled not enabling

2007-12-19 Thread Alex Harui
I took a quick look at the ScheduleViewer.  Never used it before.  It is
a ScrollControlBase so it is already a UIComponent.  I think the problem
is the SCB has an internal content area that needs to have
tabChildren=true in order to allow the children of the content to get
the tabs.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Corey Smaller
Sent: Wednesday, December 19, 2007 6:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: tabEnabled not enabling

 


unfortunately i have to work locally as i dont have access to the work
servers right now and I had to fly home for the holidays. I can either
include the main file here and the class that is giving me fits or send
you the whole shebang in a zip via email? SORRY!

here is the main:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
xmlns:flexlib=flexlib.scheduling.*
verticalGap=1
creationComplete=onCreationComplete();
layout=absolute
width='100%' 

!-- STYLPROCLAMATION --
!--mx:Style source=../css/style.css /--

!-- SCRIPT INSTANTIATION--
mx:Script
![CDATA[

import flexlib.scheduling.ScheduleViewer;
import flexlib.scheduling.Timeline;
import mx.controls.LinkButton;
import mx.rpc.events.ResultEvent;
import mx.containers.TitleWindow;
import flash.events.Event;
import mx.managers.PopUpManager;
import mx.managers.IFocusManager;
import mx.core.IFlexDisplayObject;
import flexlib.scheduling.samples.ScheduleData;
import flexlib.scheduling.scheduleClasses.SimpleScheduleEntry;
import flexlib.scheduling.scheduleClasses.ColoredScheduleEntry;
import flexlib.scheduling.scheduleClasses.BackgroundItem;
import flexlib.scheduling.scheduleClasses.LayoutScrollEvent;
import flexlib.scheduling.util.DateUtil;
import mx.collections.IList;

import flash.display.InteractiveObject;

import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.events.ScrollEvent;
import mx.events.ScrollEventDirection;
import mx.collections.XMLListCollection;
import flash.utils.Timer;
import flash.events.TimerEvent;

//variables
[Bindable] private var menuBarCollection:XMLListCollection;
[Bindable] private var dataXML:XMLList;
[Bindable] private var dataArray:ArrayCollection = new
ArrayCollection();
[Bindable] private var constantTime:Label = new Label();
[Bindable] private var today:Date = new Date();

[Bindable] private var iObj:DisplayObject;
[Bindable] private var dataProvider : IList;
[Bindable] private var iDataProvider : IList;
[Bindable] private var rowDataProvider : IList;
[Bindable] private var startDate : Date;
[Bindable] private var startTime : Date;
[Bindable] private var endDate : Date;
[Bindable] private var zoom : Number;
[Bindable] private var scheduleViewerWidth : Number = 2000;
[Bindable] private var scheduleViewerHeight : Number = 400;
private var rawArray:Array = new Array();
private var timer:Timer;

//once the page is created run these functions
private function onCreationComplete() : void
{
setTimeframe(); //set the time frame on the top
of the list
initBackgroundColors(); //set the bg colors
programRequest.send(); //get the programs from the DB
channelRequest.send();

}

private function setFocusOnFirstProgram():void
{

scheduleViewer.liveScrolling=true;
//focusManager.setFocus(scheduleViewer.dataProvider[0]);

}
/* set the time frame for the top of the grid */
private function setTimeframe() : void
{

var time : Date = new Date();
startDate = DateUtil.roundTime(new Date() ,
time.getMinutes()); //round off the current time too either 00 or the
30
endDate = getEndDate( startDate ); //limit the amt of
programs we want to display.

}

private function getEndDate( startDate : Date ) : Date
{
var duration : Number = DateUtil.HOUR_IN_MILLISECONDS * 5; 
//set the duration of the timeline to 5 hours out
var endDate : Date = new Date( startDate.getTime() +
duration );
return endDate;
}

/* @about: sets the event result to an array for displaying on
the schedule */
private function setDataProvider(event:ResultEvent) : void
{
var c:Number = 0;
ScheduleData.FocusID = [EMAIL PROTECTED]; //this is
the channel_id to focus on

//assign the event.result XML to an object and create each
row based on the channel id
//each channel node has its programs listed for that day
inside of it --look at the programs.xml to get a better understanding
for each(var p:XML in event.result..channel)
{
var channelObj:Object = new Object();
channelObj.ch_id = [EMAIL PROTECTED];
channelObj.prog_id = [EMAIL PROTECTED];
channelObj.name = p..name;
channelObj.program_length = p..program_length;
channelObj.image_name = p..image_name;
channelObj.time = p..time;
rawArray.push(channelObj);

}
dataProvider =new ScheduleData().createRowItem(rawArray);

//set the focus of the tab on the first program
setFocusOnFirstProgram();
}

/* @about: sets the channel listings on the left side of the
program based up the number of Channels returned sorted ASC
this should match 

[flexcoders] Re: Default sorting in DataGrid

2007-12-19 Thread m.frigge
You are a legend.. thanks again! That was exactly what I was looking for!

Greets, Max

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

 look at this link. it may help.
 

http://www.bealearts.co.uk/blog/2007/06/15/default-sorting-for-a-flex-datagrid/
 
 - venkat
 http://www.venkatj.com
 
 --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote:
 
  Hi, how can i set a default column to sort a dataGrid by? I know that
  i could just sort the dataProvider, but then i don't have the
  indicator that tells the user by witch column the dataGrid is
sorted?!? 
  
  Thanks, Max
 





[flexcoders] Re: Search function via backend or frontend?

2007-12-19 Thread m.frigge
Ok, perfect. I won't have more than 1. 
That was the benchmark I was talking about ;-). 

Thanks, Max

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

 I had anywhere between a 1000 to a couple of thousands, sometimes
 beyond 1.
 
 did you look at this link?
 
 

http://www.jamesward.org/wordpress/2007/04/30/ajax-and-flex-data-loading-benchmarks/
 
 - venkat
 http://www.venkatj.com
 
 --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote:
 
  Ok, I thought so. Thanks for the quick answer. How many entries did
  you have in your project if I may ask.. more than 5000? I was just
  kind of stoked by some AMF Benchmark results I saw on the web.
  
  Cheers, Max
  
  --- In flexcoders@yahoogroups.com, rueter007 rueter007@ wrote:
  
   I use the filterFunction for my project which has lots of data. I
   think it is still better than going to the backend, getting the
result
   and repopulating the controls.
   
   --- In flexcoders@yahoogroups.com, m.frigge m.frigge@ wrote:
   
Hi there,

just a general question. What would you recommend as a search
function, when you already have the data loaded in Flex? To
create a
filterFunction or to do a new request to the backend that
 returns the
result? Sounds kind of sstupid but I have got the feeling that the
filterFunction does not have the best performance, but maybe i am
  wrong?

Greets, Max
   
  
 





[flexcoders] Re: How to Activate Scrolling on Page load ???

2007-12-19 Thread tarun chandra
Thank You,

I got the html to set the focus on the SWF using onLoad in the body tag.


- 
Tarun
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Wednesday 19 Dec 2007, tarun chandra wrote:
  I have compiled my mxml file into an swf file and embedded it in a
  jsp. My mxml has a datagrid inside a VBox.
 
 tc:guess
 Your HTML wrapper doesn't focus the SWF. AFAIK only IE lets you do this.
 /tc:guess
 
 -- 
 Tom Chiverton
 Helping to competently bully advanced applications
 on: http://thefalken.livejournal.com
 
 
 Halliwells wishes all of its clients and suppliers the Very Best for
Christmas  the New Year
 
 
 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 Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  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
Solicitors Regulation Authority.
 
 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 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] FLex Bse contact Importer(Grabber)

2007-12-19 Thread Sajid Hussain
Hello ,
Friends , I developed very simple code to grab google and yahoo contacts in 
hotmail with , php and json plz have a look and appreciate me I will be happy 
:D try this it will not email to anyone its just testign app

http://www.synergyi.com/intouch/contactimporter.html

Sajid Hussain 
www.synergyi.com



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

RE: [flexcoders] Re: Debugging RemoteClass serialization [SOLVED]

2007-12-19 Thread Peter Farland

 Peter, why should the size of the SWF increase
 unnecessarily including all the classes marked
 with [RemoteClass] metadata?

[Pete] There's 4 usages of [RemoteClass] in framework.swc, 21 usages in
rpc.swc, and 15 usages in fds.swc.



 I still think that referencing all the classes
 by hand in my code is not really a viable
 solution...

 As I said in a previous post, a way to include
 an entire package of classes (compiler
 switch/ide support) would at least allow us to

[Pete] If you had your DTOs in a separate Flex Library project and
created a SWC, you should be able to use -compiler.include-libraries to
force all of the classes in the SWC to be added to the SWF.

Alternatively, if you have a tool that is code-generating the DTOs, then
getting it to also generate a simple class that has a list of static
vars in it should be all you need to introduce a dependency.


[flexcoders] Amazon S3 awss3lib Flex Library error 2038

2007-12-19 Thread Daniel Tse
Hi All,

Has anyone had any problems using the AWSS3 Library with the latest version
of FlexBuilder 3 (M4 beta 3)? I noticed that when I tried to build the
project with the library it complained that the property shouldCacheResponse
for a URLRequest object doesn't exist. I commented it out to get it to build
but when we use the s3.saveObject method we get an error 2038. Has anyone
else been successful in using the library to upload/download to their s3
account?

Here's the link to Christian Cantrell's post describing it:
http://weblogs.macromedia.com/cantrell/archives/2007/05/actionscript_li.cfm

and the google-code link to the AWSS3 :
http://code.google.com/p/as3awss3lib/

By the way, I can't find the Salsa app on the Gallery page (
http://labs.adobe.com/technologies/air/samples/ ) did it disappear?

Thanks,
-Daniel
-- 
-
e: [EMAIL PROTECTED]
w: http://DanielTse.com/
-


[flexcoders] horizontal list scroller

2007-12-19 Thread geoff
I posted most of this on the adobe forum but so far haven't received 
any ideas, so hopefully someone here will know.  I've created an AS3 
class that extends the HorizontalList.  What I'm trying to achieve is 
the ability to have 2 buttons on my application and 2 methods in my 
extended class that allow the user to scrollleft or scrollright.  In 
working with this I've found that I need to override the 
scrollHorizontally method in the HorizontalList class.  I've also found 
that the this.iterator.bookmark.getViewIndex() method gives me the left 
most item index that is visible.  What I can't figure out is how to get 
the right most visible item index to determine whether or not to scroll 
any further to the right.  I've spent about 3 hours digging through 
debug variables and livedoc pages to find something that would give me 
that info, but so far have found nothing.  Anyone have any ideas?  
Thanks.



RE: [flexcoders] Re: Problem with RSL and SWFLoaders

2007-12-19 Thread Alex Harui
I think you'd have to debug through it and see what is going on.
However, before doing that, is it possible to re-implement this set of
apps?  Do these sub-apps ever need to run on their own?  If not, you
should consider using Modules.  If that's too big an effort but those
sub-apps don't need to run on their own, you should not build them using
RSLs and simply extern all of the classes in the RSL when you build
them.  It will prevent them from even trying to load the RSL, but
they'll remain small and run fine because they'll find the classes in
the main app's applicationDomain.  This should make your sub-apps show
up even faster since they don't need to wait for the 3MB RSL load.  I
would expect this to solve your problem as well as there might be issues
when more than one loader is trying to load the same bits.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nick Durnell
Sent: Wednesday, December 19, 2007 2:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem with RSL and SWFLoaders

 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 I would try to find out what happened to the other 9? Are they 
showing
 progress bars? Is the app stuck? Is CPU usage running high?

Hi Alex,

I do not see any progress bars for the applications which fail to 
start. CPU usage is at 0% once the application has 'stuck'. I've also 
tried with fewer widgets and get the same problem. As long as there are 
more than one being loaded at once (which share an RSL), one of them 
fails to start.

Is there anything I can do to check what Flash is doing behind the 
scenes? Any other events on the SWFLoaders/Applications it may be 
useful to listen for?

Regards,

Nick.

 



[flexcoders] Re: horizontal list scroller

2007-12-19 Thread rueter007
I think the following might work. I use this in a DataGrid and it works.

// this will give the index of the lest most item that is visible
var topIndex: int = myList.horizontalScrollPosition;

// to get the number of visible items, you need to subtract the
maxHorizontalScrollPosition from the dataprovider length
var numItemsInWindow:int = ICollectionView(myList.dataProvider).length
- myList.maxHorizontalScrollPosition;

- venkat
http://www.venkatj.com

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

 I posted most of this on the adobe forum but so far haven't received 
 any ideas, so hopefully someone here will know.  I've created an AS3 
 class that extends the HorizontalList.  What I'm trying to achieve is 
 the ability to have 2 buttons on my application and 2 methods in my 
 extended class that allow the user to scrollleft or scrollright.  In 
 working with this I've found that I need to override the 
 scrollHorizontally method in the HorizontalList class.  I've also found 
 that the this.iterator.bookmark.getViewIndex() method gives me the left 
 most item index that is visible.  What I can't figure out is how to get 
 the right most visible item index to determine whether or not to scroll 
 any further to the right.  I've spent about 3 hours digging through 
 debug variables and livedoc pages to find something that would give me 
 that info, but so far have found nothing.  Anyone have any ideas?  
 Thanks.





[flexcoders] BlazeDS and Java 5 Enum Support - works only one way?

2007-12-19 Thread moonusamy

If I have a Java method that returns an Enum, it seems to be
serialized ok as a String, but if I have a Java method that takes an
Enum argument, I get the same error I used to get before with LCDS 2.5.1:

faultDetail = Types cannot be instantiated without a public, no
arguments constructor.

Java 5 Enums don't have public no-arg constructors.

Unless I am missing something, Enum support in BlazeDS works only one
way. Anyone hit this?

Vijay




[flexcoders] FlexMDI How to get DRAG_END event to fire

2007-12-19 Thread valdhor
I am using FlexMDI and would like to know when a window has been
dragged to a new position so I can save the position.

I am adding windows on the fly with...

var newWindow:MDIWindow = new MDIWindow();
MDIManager.global.add(newWindow);

I have tried...

newWindow.addEventListener(MDIWindowEvent.DRAG_END,
this.windowDragEndEventHandler);
MDIManager.global.addEventListener(MDIManagerEvent.WINDOW_DRAG_END,
this.windowDragEndEventHandler);

but these do not fire.

Anybody have any ideas?

If this is not the right forum for these questions, please let me know
where to post this. I have checked and cannot find a forum directly
related to FlexMDI.



RE: [flexcoders] BlazeDS and Java 5 Enum Support - works only one way?

2007-12-19 Thread Peter Farland
If you have an Enum argument in a Java method, you need to send it a
String. During method invocation, BlazeDS will use
Enum.valueOf(desiredClass, yourStringValue) to create an enum on your
behalf.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of moonusamy
Sent: Wednesday, December 19, 2007 3:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BlazeDS and Java 5 Enum Support - works only one
way?


If I have a Java method that returns an Enum, it seems to be serialized
ok as a String, but if I have a Java method that takes an Enum argument,
I get the same error I used to get before with LCDS 2.5.1:

faultDetail = Types cannot be instantiated without a public, no
arguments constructor.

Java 5 Enums don't have public no-arg constructors.

Unless I am missing something, Enum support in BlazeDS works only one
way. Anyone hit this?

Vijay




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





Re: [flexcoders] How do I make the background fill the whole screen, not just the Application?

2007-12-19 Thread Joseph Balderson
Your Application should stretch with the inner browser width  height by 
default, you don't need to monkey with the Stage object like you do in 
Flash.

If what you want is a background which covers the whole browser screen, 
let the Application fill up the space. Then place the rest of your 
content in another container. For instance, if you want your content to 
be centred on the stage but your content to absolutely positioned, use 
the following code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
horizontalAlign=center
 verticalAlign=middle
 backgroundColor=#00
 backgroundGradientAlphas=[1.0,1.0]
 backgroundGradientColors=[0x00, 0xAA]
 mx:Canvas
backgroundColor=#FF
width=400 height=400
mx:Button label=daButton1  top=20 left=20/
mx:Button label=daButton2  right=20 bottom=20/
 /mx:Canvas
/mx:Application

The two buttons use constrained layout positioning as opposed to 
absolute positioning, so they float a certain distance from the sides 
of the canvas container.

___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca
Writing partner, Community MX | http://www.communitymx.com
Abobe Certified Developer  Trainer


kolt_siewerts wrote:
 Dear group,
 coming from the Flash side of AS3-Development, I'm struggling with a small 
 problem.
 
 Here is an example (source code via right-click):
 http://www.kolt-siewerts.com/flexTest/
 
 My application has to grow with the window, so I set StageScaleMode.SHOW_ALL 
 instead of 
 the default NO_SCALE.
 Now whenever the window has not the same aspect ratio as the Application, 
 black bars 
 appear.
 But I want the background of my App to fill the screen no matter what ratio 
 the window has. 
 
 Thanks for any ideas or hints, I've searched the internet for a couple of 
 days now and did not 
 find a solution...
 Regards,
 kolt
 
 
 
 --
 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
 
 
 
 


[flexcoders] Re: DragImage initial position wrong, causing jumpiness

2007-12-19 Thread danielggold
I'm trying to come up with a simple test case, the one I have right
now is not exhibiting the problem, just trying to make it happen with
as little code as possible.

One thing I'm doing that might be causing problems: I've got some
custom components that dispatch a custom event CustomDragStartEvent.
They listen for mouse down on themselves and then shove in the
originating mouse event, some extra info, and then bubble that up to
whoever wants to catch it. when the parent container acts on this
event it pulls out the original mouse event and passes that in the
doDrag method. Do you think it could be a local coordinate problem
since I'm passing in a mouse event caught in a child component? I
didn't want to have to add MOUSE_DOWN listeners to all the child
elements, so I prefer to have them dispatch a custom event that
bubbles so my drag container listens for the event on itself.

Is there a better way to do this, I just know the doDrag method needs
a mouse event, so I need to find a way to give it one even though I'm
dispatching custom events.

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

 Can you post a simple test case?
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of danielggold
 Sent: Wednesday, December 19, 2007 8:45 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DragImage initial position wrong, causing
 jumpiness
 
  
 
 I've seen this in a few places where I'm doing custom drag and drop.
 When the DragImage is initially drawn, if you just barely click and
 move the mouse, the image is drawn with a Y offset that looks to be
 about the height of the dragInitiators container. If you move the
 mouse a few more pixels the DragImage snaps back under the mouse. This
 causes some annoying flickers in my app because the place the
 DragImage is initially drawn is not a valid drop zone, but then it
 snaps back to a valid zone.
 
 This doesn't seem to be something I can control in the doDrag
 function, the offsets I can specify there only apply AFTER the
 DragImage has snapped back to the correct position.
 
 Any ideas?





[flexcoders] handling 64-bit ints (java long data type)

2007-12-19 Thread andrewwestberg
I have a ByteArray that contains an 64-bit long value that originated
from Java code.  How can I read this into the Flex Number data type?

Will something like this work?  Do the bitwise operators work with the
Number type?

byteArray.position = 0;
var longNumber:Number = (Number(byteArray.readInt())  32) 
Number(byteArray.readInt())

Thanks,
Andrew



[flexcoders] java.util.Map to AS Object. Why wouldn't this work?

2007-12-19 Thread Kevin
We are having a weird problem with something that we think should be  
simple.

We are persisting an object in our database (Hibernate) as a  
java.util.Map.  From actionscript to Java things work fine and  
persist in the database as expected. However, when we pull it back  
over the wire from the java to flex it seems to appear as an empty  
obect? We have tried to trace the properties and we get nothing.

Any thought on what could be happening?  I thought Maps were by  
default supposed to come back as actionscript objects.

Thanks, Kevin


[flexcoders] Re: Looking for component to generate PDF files

2007-12-19 Thread sprezzatura1
Thanks, I was not aware of this resource. Looks like it might come in
handy in the future.

However, PDFonline are geared to receive text-type files as input
(DOC, HTML, RTF, text). Our app creates vector graphics (curves,
polygons, gradients). I don't believe PDFonline would be able to
process the graphics input. (I have sent them an inquiry).

Converting to an image (JPG, BMP) is not an option because it gets
coarse and pixellated as you zoom in. Vector remains crisp and sharp.

Pierre

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

 I don't know of any flex/flash components that can accomplish this,
but you
 may be able to workaround your server limitations. There are at
least a few
 free online pdf creators (such as https://www.pdfonline.com). Maybe
you can
 mashup with one of them and use that to create the pdf.
 
 -Sam
 
 



  1   2   >