[flexcoders] Re: Multiline TreeItemRenderer

2007-03-09 Thread sergiopernas
Hi again

Well, this is the subclass. Compiles, runs and everything but the tree
elements are not multiline...

package
{
import mx.controls.treeClasses.*;

public class TIRMultiline extends TreeItemRenderer
{

public function TIRMultiline() {

super();
  
}

override protected function commitProperties():void
{
super.commitProperties();
label.multiline =true;

}
}
}

Just in case...


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

 Hi
 
 I tried to find the answer to this through the list, and, though I
 found the ubercool tree renderer with lines, I can't figure out how to
 do this, though it should be easy. (beware, first real flex app,
 severe ignorance ahead!)
 
 I have a Tree component, and I want the labels to be multiline. I
 found that the TreeItemRenderer has a protected property label, of
 class UITextField, that has a boolean multiline, that I want to set
 to true. I already have a subclass of the renderer, but I cannot
 find the  way to change the value of the property... 
 
 where in the class file should i do it? and how?
 
 (feel free to knock me in the head...)
 
 thans
 
 Sergio Pernas
 www.sysvisions.com





Re: [flexcoders] Modules at 360Flex conference

2007-03-09 Thread Tom Chiverton
On Thursday 08 Mar 2007, Alex Harui wrote:
 You can bind, I'm just not sure if the module will unload if you want to
 kick it out of memory later. 

Ok, not bothered about that as we'll mainly use Modules to bring the initial 
download size down by excluding areas most people wont use (admin views, 
reports, ...).

-- 
Tom Chiverton
Helping to vitalistically innovate open-source products
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/nhFolB/TM
~- 

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


Re: [flexcoders] Re: Mike nimmer Debug component !!

2007-03-09 Thread Tom Chiverton
On Thursday 08 Mar 2007, bobrene07 wrote:
 Is it possible to debug when your flash is not the first the page of
 your website ?

Sure.
As soon as the the Flex SWF starts up, you get the 'where's the debugger' 
prompt.

 I mean your flash is inside a portal and you want to debug after a
 portal login

A HTML portal ?
There are a few wrinkles using Modules and the debugger, but nothing you can't 
get round.

-- 
Tom Chiverton
Helping to confidentially reintermediate impactful schemas
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
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: Are other developers hesitant to extend existing classes in Flex?

2007-03-09 Thread Danko Kozar
Jason, this was an eye-opener!
Till now I didn't realize that an event listener can cancel another 
listeners. But the preventDefault() method of the Event class does 
exactly that.

This is the way I should go with a PagableGrid.

Thanks!



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

 As a follow up to the last response, take note of the
 event.preventDefault(); in the handler for HEADER_RELEASE, and the 
fact that
 I don't do a refresh on the ListCollectionView after adding the
 
 sort to it.
 
 jason
 
 
 
 
 
   -Message d'origine-
   De : flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] la
 part de Danko Kozar
   Envoyé : jeudi 8 mars 2007 11:48
   À : flexcoders@yahoogroups.com
   Objet : [flexcoders] Re: Are other developers hesitant to extend 
existing
 classes in Flex?
 
 
   Private methods and variables drive me nuts..
 
   For example, I'd like to make a simple DataGrid change: make 
headers
   clickable without refreshing the grid (just toggle a sort icon).
   (I need this behaviour because I'd like to have a paging DataGrid
   which only propagates the sort column/direction info to a record-
   feching routine on a server)
 
   So, I try to remove a collection.refresh(); line from
   the sortByColumn() function, but I can't - because it's 
private.
 
   Then, I try to make a new function called sortByColumn2 
(that's a
   copy of the first one, but without refresh stuff) and alter
   the headerReleaseHandler which calls it, but I can't - cause 
it's
   private.
 
   And finally, I am trying to add the following code to the
   constructor (yes, the constructor is public, huh.. :-))
   to neutralize the event listener:
 
   removeEventListener(DataGridEvent.HEADER_RELEASE,
   headerReleaseHandler,
   false, EventPriority.DEFAULT_HANDLER);
 
   ... but I can't cause headerReleaseHandler is private and 
can't be
   seen from a subclass!
 
   And then, I give up.. :-)
 
   My conclussion is that Flex framework classes are not extensible
   enough and I really can't see a reason.
   Copying the whole DataGrid class and it's renderer, style, etc.
   classes isn't a solution, we all agree. If not other reason - 
it's
   not the OOP way.
 
   So, I'm tempted to go to a C:\Program Files\Adobe\Flex Builder 2
   \Flex SDK 2\frameworks\source\mx\ folder and make a global 
search
   and replace on all files in this folder. You guess...
   replace private with protected... :-)
 
   --- In flexcoders@yahoogroups.com, Dana Gutride dgutride@
   wrote:
   
Recently on this list, somebody said that the Flex framework 
team
   has been
surprised at the resistance many developers have to subclassing
   and they'd
like to understand it better. I'd like to put my 2 cents into 
this
discussion because maybe we can come up with some good answers.
   
I think the ability to extend the existing framework is 
fabulous,
   but I find
that I am hesitant to subclass or extend the existing classes.
   Recently, I
spent several days trying to override the placeSortArrow 
function
   on the
datagrid. I ended up ditching my code because there were so 
many
   private
variables used by the existing placeSortArrow() function that I
   would need
to rewrite most of the datagrid.as file.
   
I've bought books and searched online for answers, but I 
haven't
   found
anything satisfactory yet. Maybe if there were more resources
   (even if we
had to pay for them), we would find more developers extending 
the
   flex
framework.
   
Dana
   





[flexcoders] FlexPrintJob problem

2007-03-09 Thread Giles Roadnight
Hi

 

I am trying to print a list of ID's from a canvas. I have the following
code:

 

private function printMovies(e:Event):void

{



var printJob:FlexPrintJob = new FlexPrintJob();



if(printJob.start()){  

var printCanvas:Canvas = new Canvas();

var txtApprovedList:Text = new Text();

txtApprovedList.width = printJob.pageWidth;

txtApprovedList.text = textstring;

code for generating string



printCanvas.addChild(txtApprovedList);

 
printCanvas.setStyle(backgroundColor,0xFF);



 
this.parentApplication.MainPanel.addChild(printCanvas); //just so I can see
it renders OK, will be removed



printJob.addObject(printCanvas);

printJob.send();

}

}

 

With the last 2 lines commented out I get the print dialogue then when I
click print the canvas appears with the text in. With the last 2 lines not
commented out I get the print dialogue but when I hit print nothing happens,
no canvas or text appears and nothing prints.

This code does work if I just add the Text Object (not the canvas) to print
but then the text has a grey background.

 

What am I doing wrong?

 

Thanks.

 

Giles Roadnight 



RE: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread Eric Guesdon
Hi to all,

 

I’m not sure we will need a database like you are talking about… 

I would prefer something like Apollo:LocalDataBase …/ something like
SharedObject (I hope to delegate security aspect to Apollo sandbox).

I have some difficulties to believe that I need standard database
capabilities… do you plan to build application that will connected to
hundred of thousand line of data? 

Personally I plan to build application that will frequently connected to the
Enterprise IS that provide off-line capabilities, so I will need to safely
store datas during 2-3 of perhaps 4 days not more due to data
confidentialities….

 

We will have to take care about synchronisation phase…., so I ‘d like to use
[managed] capabilities already exists in flex and fdms without to develop my
own synchronisation engine client side…

 

Regards

 

Eric 

 

  _  

De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Samuel R. Neff
Envoyé : jeudi 8 mars 2007 15:38
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Re: DB access in Apollo

 


 my hosting company supports sqlite. no mention of it.

Actually SQLite is included as standard in PHP5 already.

 



Re: [flexcoders] FDS services-config for CFC's

2007-03-09 Thread João Fernandes
Darren,

When you install fds (example c:\fds) you'll find a folder 
resources\config inside it.
This is where you can find an example for each file you'll have to 
configure FDS. This is a FDS configuration and not a CF one. The only 
thing you'll need to do in the cf side, is to activate the data 
management support inside the admin. Be aware that cfcs must be visibles 
to the cf instance so if you deploy them into IIS  or Apache website,  
you'll have to create a mapping so the cfusion instance can resolve the 
cfcs paths.

in services-config.xml you'll find the code you'll need to have to 
enable cf channels to comunicate with a CF instance

 services-config code 
--
!--  ColdFusion specific RTMP channel --
channel-definition id=cf-dataservice-rtmp 
class=mx.messaging.channels.RTMPChannel
endpoint uri=rtmp://{server.name}:2048 
class=flex.messaging.endpoints.RTMPEndpoint/
properties
idle-timeout-minutes20/idle-timeout-minutes
serialization
!-- This must be turned off for any CF channel --
instantiate-typesfalse/instantiate-types
/serialization
/properties
/channel-definition

!-- ColdFusion specific HTTP channel --
channel-definition id=cf-polling-amf 
class=mx.messaging.channels.AMFChannel
endpoint 
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/cfamfpolling;
 
class=flex.messaging.endpoints.AMFEndpoint/
properties
serialization
!-- This must be turned off for any CF channel --
instantiate-typesfalse/instantiate-types
/serialization
polling-enabledtrue/polling-enabled
polling-interval-seconds8/polling-interval-seconds
/properties
/channel-definition
-

in the data-management-config .xml you'll have  to use  coldfusion-dao 
adapter and use it in your cf data-management destinations and use 
cf-dataservice-rtmp and cf-polling-amf as channels, take a look at the 
last destination (cfcompany).

If you want to use flex messaging gateway, you'll find how to configure 
it in the messaging-config.xml. You'll have to use the cfgateway adapter 
definition.
At the end of the file, you'll find the ColdFusionGateway destination.

HTH,

João Fernandes






[flexcoders] Re: How to submit a bug to Adobe ? - 60 inch display is to wide

2007-03-09 Thread oneproofdk
OK so I went on to see what the limits are. Tracking mouseX I can see
that the Panel background stop at 4079, also that's where Flash stop
tracking the mouseX !!??
The weird thing is that the Tile DOES extend beyond this point as per
my screencap.

Wonder what the max height is - we are currently looking into
attaching 4 30 cinema displays to a Powermac Pro, so it will be a
resolution of 5120 by 3200 to display this program.

Does anyone have an idea how to overcome this ? Could I extend the
Panel - make my own !? Anyone ?

BTW - in the Flex documentation it states that the maxwidth of a panel
is 1 px ??
http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html#maxWidth
Or am I wrong here ?

Thanks for any help or ideas.

Thanks,
Mark



[flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Sergey Kovalyov

Hi All!

I have a DataGrid and its dataProvider property is binded to
ArrayCollection. When I first hide one column via firstColumn.visible =
false and then binding executes, that column appears again. How to prevent
this unnecessary appearance? Click Hide Middle Name and then Populate in
this example:

?xml version=1.0 encoding=utf-8?

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

creationComplete=onCreationComplete()

mx:Script

![CDATA[

*import* mx.collections.ArrayCollection;

[*Bindable*]

*protected* *var* users : ArrayCollection;

*protected* *function* onCreationComplete() : *void* {

users = *new* ArrayCollection();

users.addItem({firstName : *George*, middleName : *W*, lastName : *
Bush*});

}

*protected* *function* onPopulateButtonClick() : *void* {

users = *new* ArrayCollection();

users.addItem({firstName : *Victor*, middleName : *A*, lastName : *
Yuschenko*});

}

]]

/mx:Script

mx:DataGrid dataProvider={users}

mx:columns

mx:DataGridColumn id=firstNameDataGridColumn dataField=firstName
headerText=First Name /

mx:DataGridColumn id=middleNameDataGridColumn dataField=middleName
headerText=Middle Name /

mx:DataGridColumn id=lastNameDataGridColumn** dataField=lastName
headerText=Last Name /

/mx:columns

/mx:DataGrid

mx:Button label=Hide Middle Name** click=
middleNameDataGridColumn.visible = *false* /

mx:Button label=Populate click=onPopulateButtonClick() /

/mx:Application
Sergey.


Re: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Carlos Rovira

If I'm not wrong that is a bug in 2.0.1 (it was not in 2.0)...

2007/3/9, Sergey Kovalyov [EMAIL PROTECTED]:


  Hi All!

I have a DataGrid and its dataProvider property is binded to
ArrayCollection. When I first hide one column via firstColumn.visible =
false and then binding executes, that column appears again. How to prevent
this unnecessary appearance? Click Hide Middle Name and then Populate in
this example:

?xml version=1.0 encoding=utf-8?

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

creationComplete=onCreationComplete()


mx:Script

![CDATA[

*import* mx.collections.ArrayCollection;

[
*Bindable*]

*protected* *var* users : ArrayCollection;

*protected* *function* onCreationComplete() : * void* {

users =
*new* ArrayCollection();

users.addItem({firstName :
*George*, middleName : *W* , lastName : *Bush*});

}

*protected* *function* onPopulateButtonClick() : * void* {

users =
*new* ArrayCollection();

users.addItem({firstName :
*Victor*, middleName : *A* , lastName : *Yuschenko*});

}

]]

/mx:Script

mx:DataGrid dataProvider={users} 

mx:columns

mx:DataGridColumn id=firstNameDataGridColumn dataField= firstName
headerText=First Name /

mx:DataGridColumn id=middleNameDataGridColumn dataField= middleName
headerText=Middle Name /

mx:DataGridColumn id=lastNameDataGridColumn* * dataField=lastName
headerText=Last Name /

/mx:columns

/mx:DataGrid

mx:Button label=Hide Middle Name** click=
middleNameDataGridColumn.visible = *false* /

mx:Button label=Populate click=onPopulateButtonClick() /

/mx:Application
Sergey.

 





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


RE: [flexcoders] FlexPrintJob problem

2007-03-09 Thread Giles Roadnight
I solved this by adding a cretionComplete event listener to the canvas
object. This fired another function that did the printing.

 

Giles Roadnight

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: 09 March 2007 10:04
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FlexPrintJob problem

 

Hi

 

I am trying to print a list of ID's from a canvas. I have the following
code:

 

private function printMovies(e:Event):void

{



var printJob:FlexPrintJob = new FlexPrintJob();



if(printJob.start()){  

var printCanvas:Canvas = new Canvas();

var txtApprovedList:Text = new Text();

txtApprovedList.width = printJob.pageWidth;

txtApprovedList.text = textstring;

code for generating string



printCanvas.addChild(txtApprovedList);

 
printCanvas.setStyle(backgroundColor,0xFF);



 
this.parentApplication.MainPanel.addChild(printCanvas); //just so I can see
it renders OK, will be removed



printJob.addObject(printCanvas);

printJob.send();

}

}

 

With the last 2 lines commented out I get the print dialogue then when I
click print the canvas appears with the text in. With the last 2 lines not
commented out I get the print dialogue but when I hit print nothing happens,
no canvas or text appears and nothing prints.

This code does work if I just add the Text Object (not the canvas) to print
but then the text has a grey background.

 

What am I doing wrong?

 

Thanks.

 

Giles Roadnight 

 

attachment: image001.jpg
attachment: image002.jpg


[flexcoders] Re: DataGrid paging?

2007-03-09 Thread Danko Kozar
Indeed, a VScrollBar has really a lot of flexibility! I succeeded in 
subscribing to it's events and using the event.preventDefault() 
method cancel it's other listeners and it's actions.

Using the configureScrollBars() method, the scrollbar sizing can 
easily be configured:

override protected function configureScrollBars():void
{
setScrollBarProperties(something, something, totalRowCount, 
rowCount);
}

Where totalRowCount is your total number of records in the table 
(let's say 100) and rowCount is existing DataGrid's property 
which returns the number of currently VISIBLE rows in the grid. This 
value updates every time the grid is resized, so that's the answer 
to your question of counting rows.

(rowCount/totalRowCount makes the size of a thumb compared to a 
height of a scrollbar)

I've taken a look at your grid - you are basically extending a 
Canvas and laying out a DataGrid and indipendant VScrollBar on 
that canvas.
My goal is to extend a DataGrid and use only its features.. and till 
now it goes well. I prevented default sorting by header click and 
refreshing data on scrollbar events. So now I've got something like 
a DeadGrid :-) In which clicking headers and moving a scroller 
does nothing except raising events which trigger server-side 
procedures that fetch a fresh data based on a ScrollEvent.position 
and grid.sort. On dataProvider REFRESH event, fresh data is loaded 
into the grid..



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

 
 --- In flexcoders@yahoogroups.com, Danko Kozar danko.kozar@ 
wrote:
 
  I am testing both of this examples, thanks..
  
  Question: is there any possibility to control the DataGrids 
  scrolling thumb position and height?
  
  Because this way a page size would be fixed (rows not scrolling 
at 
  all) and the scroller would be used just for navigation through 
  pages (instead of the breadcrumbs section above the grid). It 
  would also give an info of current page / total pages.
  It would be nice if the scroller position and height could be 
set in 
  percentage (e.g. positionFromTop=20, height=10) while the loaded 
  rows count is always equal to grid rows count.
 
 yes, well probably, the VScrollBar has a lot of flexability in it's
 display.  To be honest this is the first time I've ever used one
 directly and I haven't explored it fully.  But you should be able 
to
 get it to work the way you want it too.
 
 
  
 





Re: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Sergey Kovalyov

Any known workarounds? :)

On 09 Mar 2007 02:28:17 -0800, Carlos Rovira [EMAIL PROTECTED]
wrote:


  If I'm not wrong that is a bug in 2.0.1 (it was not in 2.0)...
.





Re: [flexcoders] PDF Files

2007-03-09 Thread Ben Marchbanks
We do quite a bit of PDF work for publishers and 
digital printing. The method we use for variable 
printing uses a Flex interface which gives the 
user authoring capability via an image rendering 
of the PDF page.

Flex manages all the PDF annotations as data and 
then applies these annotations using a PDF library 
on the server-side.

Would be nice one day if Adobe decide to enable 
Flex with PDF rendering capabilites treating it 
much like any other media object. Hope that's on 
their to to list !


Greg Hesla wrote:
 Hello, all.
 
 Would anyone like to share their experience with creating some sort  
 of web-based PDF-annotation app? I realize that this may not be  
 something that I can do in Flex, but if I can kick it off from within  
 my Flex app, that would work as well.
 
 Any pointers or links that would get me off in the right direction  
 would be much appreciated.
 
 Thanks,
 Greg
 
 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into 
intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918


[flexcoders] Panel height 100% don't scroll

2007-03-09 Thread Norbert Csík
Hi!

I have a simple Flex application running in a browser directly
referencing the swf file. The application has a Panel element with
height 100%. It works fine, has the correct size, but when the window
gets too small the scroll bar appears in the Application not in the Panel.

Can you tell me why? I thought the Panel should always be 100% of its
parent container but it seems to be as big as its content.

How can I achive that if the space is too small the scroll bar would
be displayed in the Panel not in the Application?

Thanks in advance, here's my sample code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Panel title=Stuff height=100%
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem
mx:FormItem label=Type
mx:TextInput/
/mx:FormItem

mx:ControlBar id=cb
mx:Button label=save/
/mx:ControlBar
/mx:Panel
/mx:Application

nOR



[flexcoders] Unable to access UserTransaction in DataService on Java Sun Appl Server

2007-03-09 Thread lruinelli
Hello!


I'm using flex dataservice deployed in a Sun Java System Application
Server Platform Edition 9.0_01 (build b14)...but when I try to modify
some record of my dataservice application I give the Unable to access
UserTransaction in DataService error!!!
I think this error occours because my appl server hasn't a transaction
manager, isn't it?
As transaction manager It has to be used something like jotm...but
unfortunately I didn't found any documentation about how integrate it
on my application server.

Can someone please help me?

...thanks


Saluti
Lorenzo



[flexcoders] Creating a generic method for creating events from String

2007-03-09 Thread pmotzfeldt
Hi

I need som advice.

I am trying to create a generic method which will create an event of
the arguments of the method. I am able to create the rigth type of
event, but I am having trouble finding out how to be able to provide
additional attributes as text to the TextEvent etc...

private function catchEvent(event:String, eventtype:String,
attributes:Array = null):void
{
  var tempEvent:Class = getDefinitionByName(event) as Class;
  var event:* = new tempEvent(eventtype);
  //some code
}

I call it like this (only dynamically)
catchEvent(flash.events::MouseEvent, click);

This will create a MouseEvent with type click, but my problem is with
ex the TextEvent with type inputText, which needs the input text.

Is it some kind of way to be able to name the method to which I want
to give some value from a string?

Like I have a string: var methodName:String = text, and in some way
be able to call the text method to the TextEvent with the var methodName?

All in all I need a generic method to be able to create any events,
by providing the event class, type and attribute with a String.

Thank you for any advice!!







[flexcoders] Dynamically sized array collection

2007-03-09 Thread RadicalByte
Hi All,

I'm hitting my head against a brick wall trying to work this out, but
to no avail.

I would like to have an ArrayCollection which contains a variable
number of ArrayCollections.

My code looks like..

[CODE]

var arrayCollection:ArrayCollection=new ArrayCollection();
var numberOfItems:int=10;

for(var x=1;xnumberOfItems;x++)
{
  arrayCollection.addItem(new ArrayCollection());
}

[/CODE]

arrayCollection[0] will contain an array of strings
arrayCollection[x] will contain an array of numbers

Structure wise it's like a spreadsheet, where the first column
contains a title and the other columns numbers.

This collection will be mapped to a DataGrid and an BarChart - with
the x-axis mapped to the array-of-strings and each series mapped to
the numbers (this'll be dynamic, too).

My aim with the collection is to use it to hold SUM values from a
tree-structured XML transmission.  The XML transmission has a fixed
debth but the number of properties may different.  In my example
below, I have Hours and Cost to SUM but in other XML transmissions
I'll have Hours, Cost, Profit, etc etc.

[XML]

Weeks
Week id=0 name=2007-01
Tarif Name=A Hours=100 Cost=50.00/
Tarif Name=B Hours=100 Cost=50.00/
Tarif Name=C Hours=100 Cost=50.00/
/Week
Week id=1 name=2007-02
Tarif Name=A Hours=100 Cost=50.00/
Tarif Name=C Hours=100 Cost=50.00/
/Week
/Weeks

[/XML]

So, can anyone explain to me what I'm doing wrong?

Cheers,
Ryan




AW: [flexcoders] PDF Files

2007-03-09 Thread Harald Dehn
PDF rendering (when Acrobat Reader is installed on the client system) is a
fantastic idea! This would make things much easier.

 

Harald

 

 

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Ben Marchbanks
Gesendet: Freitag, 9. März 2007 12:43
An: flexcoders@yahoogroups.com
Betreff: Re: [flexcoders] PDF Files

 

We do quite a bit of PDF work for publishers and 
digital printing. The method we use for variable 
printing uses a Flex interface which gives the 
user authoring capability via an image rendering 
of the PDF page.

Flex manages all the PDF annotations as data and 
then applies these annotations using a PDF library 
on the server-side.

Would be nice one day if Adobe decide to enable 
Flex with PDF rendering capabilites treating it 
much like any other media object. Hope that's on 
their to to list !

Greg Hesla wrote:
 Hello, all.
 
 Would anyone like to share their experience with creating some sort 
 of web-based PDF-annotation app? I realize that this may not be 
 something that I can do in Flex, but if I can kick it off from within 
 my Flex app, that would work as well.
 
 Any pointers or links that would get me off in the right direction 
 would be much appreciated.
 
 Thanks,
 Greg
 
 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into 
intelligence
http://www.alQemy. http://www.alQemy.com com

::: magazooms ::: digital magazines
http://www.magazoom http://www.magazooms.com s.com

Greenville, SC
864.284.9918

 



[flexcoders] Re: Dynamically sized array collection

2007-03-09 Thread ben.clinkinbeard
What problem are you having?


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

 Hi All,
 
 I'm hitting my head against a brick wall trying to work this out, but
 to no avail.
 
 I would like to have an ArrayCollection which contains a variable
 number of ArrayCollections.
 
 My code looks like..
 
 [CODE]
 
 var arrayCollection:ArrayCollection=new ArrayCollection();
 var numberOfItems:int=10;
 
 for(var x=1;xnumberOfItems;x++)
 {
   arrayCollection.addItem(new ArrayCollection());
 }
 
 [/CODE]
 
 arrayCollection[0] will contain an array of strings
 arrayCollection[x] will contain an array of numbers
 
 Structure wise it's like a spreadsheet, where the first column
 contains a title and the other columns numbers.
 
 This collection will be mapped to a DataGrid and an BarChart - with
 the x-axis mapped to the array-of-strings and each series mapped to
 the numbers (this'll be dynamic, too).
 
 My aim with the collection is to use it to hold SUM values from a
 tree-structured XML transmission.  The XML transmission has a fixed
 debth but the number of properties may different.  In my example
 below, I have Hours and Cost to SUM but in other XML transmissions
 I'll have Hours, Cost, Profit, etc etc.
 
 [XML]
 
 Weeks
   Week id=0 name=2007-01
   Tarif Name=A Hours=100 Cost=50.00/
   Tarif Name=B Hours=100 Cost=50.00/
   Tarif Name=C Hours=100 Cost=50.00/
   /Week
   Week id=1 name=2007-02
   Tarif Name=A Hours=100 Cost=50.00/
   Tarif Name=C Hours=100 Cost=50.00/
   /Week
 /Weeks
 
 [/XML]
 
 So, can anyone explain to me what I'm doing wrong?
 
 Cheers,
 Ryan





[flexcoders] Re: Regular Expression Problem

2007-03-09 Thread alexander.marktl
Hey Gordon. Thanks for the answer.

I tried your suggestion, but it still won't work. 

I show once again what the problem is. 
I'm a novice, please keep this in mind ;-)


This one works but it's case-sensitive. (The function liveSearch is
unnecessary in this case. I know.):
-- 
public function liveSearch(searchString:String):String 
{
return searchString
}

mx:TextInput id=searchStringInput/
mx:DataGrid id=dataGrid
dataProvider={externalXML.customer.(name1.match(liveSearch(searchStringInput.text)))}

--



If I add RegExs the troubles begin. I have a label to show what's
the RegExs output and it's excatly what it should be. If the string is
empty it works just fine. If I start typing it shows nothing.
-- 
public function liveSearch(searchString:String):String 
{
if(searchString == '') {
return ''
}
else {
var regExSearchString:RegExp = new RegExp(searchString, 'i');
var searchTerm:String = regExSearchString.toString();
return searchTerm
}
}

mx:TextInput id=searchStringInput/
mx:DataGrid id=dataGrid
dataProvider={externalXML.customer.(name1.match(liveSearch(searchStringInput.text)))}

--



I also tried a static variable but this one works neither.
So, always when I trie to add RegExs over variables it causes problems.
--
public var test:RegExp = new RegExp('Stich',i);
public var test1:String = test.toString();

mx:DataGrid id=dataGrid
dataProvider={externalXML.customer.(name1.match(test1))}

--


Does anybody know what the problem could be?
Thanks for replies...








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

 If the search pattern is a variable, I think you must use a RegExp
 constructor rather than the /.../ RegExp literal notation. In other
 words, do
  
 new RegExp(searchString.text, i)
  
 instead of
  
 /searchString.text/i
  
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of alexander.marktl
 Sent: Thursday, March 08, 2007 1:33 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Regular Expression Problem
 
 
 
 Hi there.
 
 I'm trying to use regex for a search function. I want case-insensitive
 search, so I'm using the regex: /ANYTEXT/i
 
 This one does work, but I want to insert a searchString.text variable
 instead of ANYTEXT. 
 /searchString.text/i doesn't work. 
 
 How can i do this?
 
 Here's the code, if it helps:
 
 mx:TextInput id=searchString/
 mx:DataGrid
 dataProvider={externalXML.customer.(name1.match(/stich/i))}
 ...





[flexcoders] Re: PDF Files

2007-03-09 Thread Nicolas Boulet-Lavoie
I use fpdf with php to create the PDF on the server side then push to
the client. Works good. Good documentation at http://www.fpdf.org/.
Best of all, it's free, plenty of examples and it offers good
performance. We use it to create architectural house plans.
Nicolas

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

 Hello, all.
 
 Would anyone like to share their experience with creating some sort  
 of web-based PDF-annotation app? I realize that this may not be  
 something that I can do in Flex, but if I can kick it off from within  
 my Flex app, that would work as well.
 
 Any pointers or links that would get me off in the right direction  
 would be much appreciated.
 
 Thanks,
 Greg





RE: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread Merrill, Jason
How much data could Apollo store locally when offline?  I think this is
where some of the concern lies around not having an integrated database
availble in Apollo.  Does anyone know?  Shared objects at least in Flash
player 9 are pretty limited in size.  Does Apollo plan to store data
locally in a Shared Object?
 

Jason Merrill 
Bank of America  
Global Technology  Operations 
Learning  Leadership Development 
eTools  Multimedia Team 

 

 

 



Re: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Mickael RUELLAN
Sergey Kovalyov a écrit :
Any known workarounds? :)

Hi, for me the workaround is to stay in 2.0.0
What are doing Adobe for this ? Is there a way to submit bug ?

Mika


RE: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Dimitrios Gianninas
Instead of hidding/showing columns, give the DG only the columns u want to 
appear at any one time.
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sergey 
Kovalyov
Sent: Friday, March 09, 2007 5:43 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGridColumn visibility problem. It appears again 
when dataProvider is replaced



Any known workarounds? :)


On 09 Mar 2007 02:28:17 -0800, Carlos Rovira [EMAIL PROTECTED] mailto:[EMAIL 
PROTECTED]  wrote: 

If I'm not wrong that is a bug in 2.0.1 (it was not in 2.0)...

.

 

 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] DateField selectable ranges

2007-03-09 Thread Mikhail Shevchuk

I have a DateField widget in my app and a bunch of random Date objects. How
can I disable all dates in that DateField except these Dates? Is the only
way is to sort all Date objects and then set disable ranges between that
Dates?

--
A vivid and creative mind characterizes you.


Re: [flexcoders] How to send an Email with attachment

2007-03-09 Thread Tom Chiverton
On Thursday 08 Mar 2007, raz_gilad wrote:
 1) I would like to create an image of the current screen and save it to
 server side as file. is this - dsaving an image to a file - doable ?

Yeah. There's a 'submit a screenshot of this app to flickr' example on 
FlexBox.

 2) I would like to use the created file and to attach it to an email
 that the user can later on send to the world. As far as I understood
 there is a problem with adding attachments to outlook using MailTo. Is
 this true?

Your server could email the image to them.


-- 
Tom Chiverton
Helping to carefully bully holistic synergies
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/nhFolB/TM
~- 

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


Re: [flexcoders] FDS services-config for CFC's

2007-03-09 Thread Tom Chiverton
On Friday 09 Mar 2007, Darren Houle wrote:
 You don't install FDS on Coldfusion 7.0.2, it includes built in support for
 FDS with CFCs

It does ?!?
You're not confusing FDS with plain Remoting are you ?

-- 
Tom Chiverton
Helping to augmentatively restore compelling markets
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
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: copy data to clipboard using action script

2007-03-09 Thread greenfishinwater
Robert,

Thanks, that worked fine.

Andrew

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

 System.setClipboard(stringerr)
  
 
   -Original Message-
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of greenfishinwater
   Sent: Thursday, March 08, 2007 12:25 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] copy data to clipboard using action script
   
   
 
   Is it possible using AS in Flex to copy the contents of a string
 or a
   TextArea to the windows clipboard?
   
   Thanks Andrew





Re: [flexcoders] Loading Remote SWF Assets in FireFox

2007-03-09 Thread Tom Chiverton
On Friday 09 Mar 2007, Bjorn Schultheiss wrote:
 Absolute..
 I'm stumped.

Have you stuck Wireshark on the client PC and looked at what requests are 
made ?


-- 
Tom Chiverton
Helping to ambassadorially engineer real-time portals
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM
~- 

--
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: Regular Expression Problem

2007-03-09 Thread alexander.marktl
Have found the error: 

Here's the working code:
--
public function liveSearch(searchString:String):RegExp {
var regExSearchString:RegExp = new RegExp(searchString, 'i');
return regExSearchString;
}

mx:TextInput id=searchStringInput/
mx:DataGrid id=dataGrid
dataProvider={externalXML.customer.(name1.match(liveSearch(searchStringInput.text)))}
...
--


Problem was that I have to return a :RegExp not a :String for the live
search function.

Stupid, Stupid me...

What i now have is very cool: a real LiveSearch feature with just a
few lines of code.





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

 Hey Gordon. Thanks for the answer.
 
 I tried your suggestion, but it still won't work. 
 
 I show once again what the problem is. 
 I'm a novice, please keep this in mind ;-)
 
 
 This one works but it's case-sensitive. (The function liveSearch is
 unnecessary in this case. I know.):
 -- 
 public function liveSearch(searchString:String):String 
 {
 return searchString
 }
 
 mx:TextInput id=searchStringInput/
 mx:DataGrid id=dataGrid

dataProvider={externalXML.customer.(name1.match(liveSearch(searchStringInput.text)))}
 
 --
 
 
 
 If I add RegExs the troubles begin. I have a label to show what's
 the RegExs output and it's excatly what it should be. If the string is
 empty it works just fine. If I start typing it shows nothing.
 -- 
 public function liveSearch(searchString:String):String 
 {
 if(searchString == '') {
 return ''
 }
 else {
 var regExSearchString:RegExp = new RegExp(searchString, 'i');
 var searchTerm:String = regExSearchString.toString();
 return searchTerm
 }
 }
 
 mx:TextInput id=searchStringInput/
 mx:DataGrid id=dataGrid

dataProvider={externalXML.customer.(name1.match(liveSearch(searchStringInput.text)))}
 
 --
 
 
 
 I also tried a static variable but this one works neither.
 So, always when I trie to add RegExs over variables it causes problems.
 --
 public var test:RegExp = new RegExp('Stich',i);
 public var test1:String = test.toString();
 
 mx:DataGrid id=dataGrid
 dataProvider={externalXML.customer.(name1.match(test1))}
 
 --
 
 
 Does anybody know what the problem could be?
 Thanks for replies...
 
 
 
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote:
 
  If the search pattern is a variable, I think you must use a RegExp
  constructor rather than the /.../ RegExp literal notation. In other
  words, do
   
  new RegExp(searchString.text, i)
   
  instead of
   
  /searchString.text/i
   
  - Gordon
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of alexander.marktl
  Sent: Thursday, March 08, 2007 1:33 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Regular Expression Problem
  
  
  
  Hi there.
  
  I'm trying to use regex for a search function. I want case-insensitive
  search, so I'm using the regex: /ANYTEXT/i
  
  This one does work, but I want to insert a searchString.text variable
  instead of ANYTEXT. 
  /searchString.text/i doesn't work. 
  
  How can i do this?
  
  Here's the code, if it helps:
  
  mx:TextInput id=searchString/
  mx:DataGrid
  dataProvider={externalXML.customer.(name1.match(/stich/i))}
  ...
 





Re: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Tom Chiverton
On Friday 09 Mar 2007, Mickael RUELLAN wrote:
 What are doing Adobe for this ? Is there a way to submit bug ?

adobe.com/go/wish

-- 
Tom Chiverton
Helping to continually grow frictionless paradigms
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM
~- 

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


RE: [flexcoders] Anybody experience Child Objects, exceeding the bounds of it's Parent Container?

2007-03-09 Thread Mike Anderson
This hasn't happened to anybody else, ever??? 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Thursday, March 08, 2007 11:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Anybody experience Child Objects, exceeding the
bounds of it's Parent Container?

Hello All,

I posted about this a couple days ago, with no response whatsoever.  Let
me simplify the post, and ask once again:

Has anybody had a Child Object (in my case, an external SWF 2200x2000 in
size), spilling over beyond the extents of it's Parent Container (in
this case, a TitleWindow)?

Actually, here is the hierarchy of the Controls:

TitleWindow
  Canvas
UIComponent (with embedded SWF)

I have a TitleWindow, with draggable content that sits within - this
content is a Vector Lake Map, in which the user can Pan  Zoom.  The
whole point of this, is that the Window can be moved to a place on the
desktop, where it doesn't overlap any other content - but can remain
open, as a reference to the user.

This doesn't happen all the time, but at certain Zoom Levels.  Instead
of the Title Window cutting off the Map in the Lower Right-Hand corner
(which is the normal behavior of any container), it allows the remainder
of the Map to show - thus taking up the remaining lower-right extent of
the Application Window.  If I manually resize the TitleWindow, it
immediately triggers the Content to be clipped - and everything looks
fine.

Once again, the Map ONLY spills over, from 0,0 of the Title Window and
down to the Right.  It's as if the TitleWindow isn't aware that the
Content is larger than it's own size, and forgets to Clip everything
starting at the lower Right-Hand corner, and beyond.

Is there anything I can do, to prevent this from happening?

Thanks in advance for any help or advice offered.

Mike


 Yahoo! Groups Sponsor ~--
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
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: Panel height 100% don't scroll

2007-03-09 Thread Norbert Csík
Fantastic! It works. Thanks.

nOR

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

 On 3/9/07, Norbert Csík [EMAIL PROTECTED] wrote:
  Hi!
 
  I have a simple Flex application running in a browser directly
  referencing the swf file. The application has a Panel element with
  height 100%. It works fine, has the correct size, but when the window
  gets too small the scroll bar appears in the Application not in
the Panel.
 
  Can you tell me why? I thought the Panel should always be 100% of its
  parent container but it seems to be as big as its content.
 
  How can I achive that if the space is too small the scroll bar would
  be displayed in the Panel not in the Application?
 
  Thanks in advance, here's my sample code:
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Panel title=Stuff height=100%
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Type
  mx:TextInput/
  /mx:FormItem
  
  mx:ControlBar id=cb
  mx:Button label=save/
  /mx:ControlBar
  /mx:Panel
  /mx:Application
 
  nOR
 
 
 
 Hi, try adding this;
 
 mx:Panel title=Stuff height=100% minHeight=0
 
 Peace, Mike
 
 -- 
 Teoti Graphix
 http://www.teotigraphix.com
 
 Blog - Flex2Components
 http://www.flex2components.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] Re: DataGrid paging?

2007-03-09 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, Danko Kozar [EMAIL PROTECTED] wrote:

 I
 I've taken a look at your grid - you are basically extending a 
 Canvas and laying out a DataGrid and indipendant VScrollBar on 
 that canvas.

I didn't extend DataGrid because although I really am adding
functionality to it, I didn't feel that it offered enough control over
the datasource to make it work.  And since I was mostly adding visual
components to it it made more sense to leave it alone rather than try
to hack my bits onto it.

For your use case I do think that extending DataGrid makes more sense.

 My goal is to extend a DataGrid and use only its features.. and till 
 now it goes well. I prevented default sorting by header click and 
 refreshing data on scrollbar events. So now I've got something like 
 a DeadGrid :-) In which clicking headers and moving a scroller 
 does nothing except raising events which trigger server-side 
 procedures that fetch a fresh data based on a ScrollEvent.position 
 and grid.sort. On dataProvider REFRESH event, fresh data is loaded 
 into the grid..

I look forward to seeing the fruits of your labor.

Paul




[flexcoders] Re: Pagination using Flex Data Management Service

2007-03-09 Thread sid_flex
Jeff,

Thanks for your reply.

I assume that by paging from client to server you mean that the client
gets results fragment by fragment, based on the visible data. For
example, if my datagrid shows 8 rows and my paging is set to 5 rows, the
datagrid will only get the first two packages of data. In this example
10 rows. When scrolling down by one row at a time, the client retrieves
the next package as soon as we reach the 11th row. Correct?

Given the current FSD implementation and your suggestion to implement
server-side pagination using a fill parameter, the implementation using
FDS will probably the same as the implementation you would code for
RemoteObjects. Why not use RemoteObjects instaed of FDS?

Best regards,

Sieto



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

 When you have one large ArrayCollection on the client which you want
to
 load a page at a time, FDS currently only supports paging from client
to
 server.   The fill method currently must return all items from the
 database.  This is something we'd like to address in a future release.



 To implement a page at a time ArrayCollection, you can simply pass in
 the page index as a fill parameter and then code it just to return the
 number of items asked for.  One trick folks sometimes use is to return
 one more item than they display so that you can tell when you have hit
 the end of the list.



 Jeff



 

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of sid_flex
 Sent: Thursday, March 08, 2007 9:51 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Pagination using Flex Data Management Service



 Hello,

 Pagination using Flex FDS should be simple. Nevertheless i'ts hard
 finding examples of succesfull implementations using pagination with
 Flex Data Management Service.

 Configuring the destination is eaasy. For example:
 destination id=product
 adapter ref=java-dao /

 properties
 sourceflex.testdrive.store.ProductAssembler/source
 scopeapplication/scope

 metadata
 identity property=productId! /
 /metadata

 network
 session-timeout11/session-timeout
 paging enabled=true pageSize=5 /
 throttle-inbound policy=ERROR max-frequency=500/
 throttle-outbound policy=REPLACE
 max-frequency=500/
 /network
 /properties
  ! nbsp;  /destination

 But what's the ! intended way to navigate through the pages returned?
 (Or is pagination only intended for optimised network trafic and will
 the result of ds.fill() always return the full result of the fill()
 method?)

 I'm looking for the best next page, previous page, last page,
 first page solution using FDS.

 Thanks in advance for your reply.

 Best regards,

 Sieto





Re: [flexcoders] FDS services-config for CFC's

2007-03-09 Thread Darren Houle
From: Tom Chiverton [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FDS services-config for CFC's
Date: Fri, 9 Mar 2007 14:34:19 +

On Friday 09 Mar 2007, Darren Houle wrote:
  You don't install FDS on Coldfusion 7.0.2, it includes built in support 
for
  FDS with CFCs

It does ?!?
You're not confusing FDS with plain Remoting are you ?


I don't think so.

In the 7.0.2 CFIDE (CF Administrator) if you click Data  Services and 
then Flex Integration you get a page with several settings.  There are two 
checkboxes at the very top...

Enable Flash Remoting support
This enables a Flash client to connect to this ColdFusion server and invoke 
ColdFusion Components (CFCs). If you are not using this feature, it is 
recommended that it be disabled.

Enable Flex Data Management support
This enables Flex Data Services to connect to this ColdFusion server and use 
ColdFusion Components (CFCs) as the implementation for the reading and 
updating of data that supports a Flex application. If you are not using this 
feature, it is recommended that it be disabled.

and the CFIDE help file for this admin page adds this...

Enable Flash Remoting support
Specifies whether to enable Flash clients to connect to this ColdFusion 
server and invoke methods in ColdFusion components (CFCs).

Enable Flex Data Management support
Specifies whether to enable a Flex Data Services server to connect to this 
ColdFusion server and invoke methods in CFCs to fill, sync, get, or count 
records in a result set used in a Flex application.

I see fill and Flex Data Services and CFC's, so... If I'm misunderstanding 
something then someone *please* correct me.  Is FDS in there already, or 
does this just allow CF to talk to an FDS app but you still have to install 
something somewhere?

From what I understand CF is a big java app that can be installed on an 
existing instance of JRun, or else by default CF installs on a bare server 
with it's own internal JRun, so... if you wanted to install FDS express on 
CF you wouldn't use the integrated JRun version because then you'd have 
two JRun's... but you could install FDS as a J2EE app on your existing 
JRun... IF... the CFIDE didn't have those checkboxes under Flex Integration 
to confuse things.

So... I'm *assuming* I can use the Flex Builder Extensions to view RDS, 
select a database and table, click Generate CFCs, create the assembler, dao, 
and bean, drop them in my CF site, enable the FDS checkbox in CFIDE, and 
then... what?  I need to map some things in the services-config.xml file.  
Do I specify an adapter? or just the service-to-assembler cfc path?  
*Something* has to be mapped, right?

If I could just get an example / sample services-config.xml where someone is 
using FDS with CF CFCs I'd be fine.

Darren




[flexcoders] Using an embedded image at runtime, Please help.

2007-03-09 Thread Giles Roadnight
Hi

 

I am still trying to get this print job done. I have got all of the text
working fine but I can't get the logo to appear at the top, I hope someone
can help.

 

I have this code:

 

private function printMovies(e:Event):void

{

var mixiLogo:Image = new Image();

mixiLogo.load(@Embed('../assets/mixipix.swf'));

this.addChild(mixiLogo);

}

 

But I just get a broken image appearing when I fire the function.

 

With this version of the function:

 

private function printMovies(e:Event):void

{



this.printJob = new FlexPrintJob();



if(this.printJob.start()){



this.printPanel = new Panel();

var txtApprovedList:Text = new Text();

var mixLogo:Image = new Image();



mixLogo.load(assets/logo.swf);



txtApprovedList.setStyle(color,0x00);

txtApprovedList.width = printJob.pageWidth;

txtApprovedList.text =
this.txtMovieIDs.text;



this.printPanel.addChild(mixLogo);

this.printPanel.addChild(txtApprovedList);

 
this.printPanel.setStyle(borderStyle,none);



this.addChild(this.printPanel);



 
printPanel.addEventListener(FlexEvent.CREATION_COMPLETE,this.doPrintCanvas);

}

}

 

I get the panel and text appearing but no iamge at all, not even a broken
one.

 

I hope someone can help.

 

Giles Roadnight 



Re: [flexcoders] Cursor Lag

2007-03-09 Thread Daniel Freiman

First I'd check to make sure your problem isn't in how the the cursor is
set.  It's possible that you're calling functions you are not aware of:
Look into mouseEvent.updateAfterEvent() if you have functions that receive a
MouseEvent to speed things up in general.  Also I would just continue to try
to optimize your code.  Make sure cursor changes are happening on MouseOver
and Out instead of move, and make sure those events are being thrown when
you think they are.  If the itemrenderer has children they could be causing
these events to happen more often than you'd like.  You can either play with
the mouseEnabled of the children and mouseChildren property of the
itemrender or check in the event listener to make sure you've actually
entered/left the component you think you have.

If none of those things work then it is probably the graphic itself.  On
thing you can try is adding a mouseMove Listener that only calls
mouseEvent.updateAfterEvent().  That could fix the problem, but it's kinda a
workaround considering it simply forcing an update when the automatic ones
should work.

- Dan Freiman

On 08 Mar 2007 19:53:04 -0800, shuell2000 [EMAIL PROTECTED] wrote:


  In a recent project, I was asked to implement mouseover cursors in Flex
on itemrenderers in a custom list class. Setting up the assets in a
Flash 8 swf was no problem, and switching them out was simple with the
cursorManager, but the feel of the applications response after a unique
cursor was attached, fell drastically. Screen updates seemed to happen
less often, mouse movement was twitchy and mouse detection was terribly
flawed while the custom cursor graphic was applied. Has anyone else
noticed this issue and has anyone found a solution. Ive had to remove
the custom graphic for now, but the client is demanding it and wont be
satisfied with the lag that is being caused.

John Shuell

 



RE: [flexcoders] Modules at 360Flex conference

2007-03-09 Thread Kyle Quevillon
I have a 3 part series on Changing embedded True Type fonts at Runtime
in Flex Applications which you might find useful.

It demonstrates loading swfs that contain embedded fonts and applying
them to the app via:

 

1. Using loader:
http://blog.739saintlouis.com/2007/02/12/changing-embedded-true-type-fon
ts-at-runtime-in-flex-applications/

 

2. Using modules:
http://blog.739saintlouis.com/2007/02/23/using-modules-to-change-embedde
d-true-type-fonts-at-runtime-in-flex-applications/

 

3. Using Runtime CSS:
http://blog.739saintlouis.com/2007/02/23/using-runtime-css-to-change-emb
edded-true-type-fonts-at-runtime-in-flex-applications/

 

 

-Kyle

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, March 08, 2007 7:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Modules at 360Flex conference

 

Actually Roger, our friend Paul made possible a fourth solution, which
seems pretty good, which is to use Runtime CSS, as suggested by the
previous email.

 

Runtime CSS generates the appropriate Font.registerFont calls for you
and you get to use CSS syntax, which is cool.  It is basically
automation of (2).  It does mean that all modules using a particular
font name must use that one shared font definition, so subsetting
characters would be a dangerous thing to do, but I think it'll work for
most people.  I packaged up an example and posted it on my blog at

http://blogs.adobe.com/aharui/presentations/
http://blogs.adobe.com/aharui/presentations/ 

 

I think I'm actually supposed to be working on something else, so I
won't be taking on a best practice for binding in unloadable modules
right now.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Roger Gonzalez
Sent: Thursday, March 08, 2007 4:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Modules at 360Flex conference

 

There are basically three solutions right now.

 

Brute force hammer solutions:

1) Embed the font everywhere in all SWFs, so that there is never any
confusion about where to find the font, because its everywhere.

2) Use Font.registerFont to globally register a particular font name
across all SWF boundaries forever.

 

Complicated solution that I tried to automate but it was just too weird:

3) Guarantee that whenever you create a TextField using a font that the
code creating the TextField is located in the same SWF as the font.

 

You'd think that 3 sounds doable, until you mix in the fact that if it
is utility code, it cannot be code that is shared between a parent SWF
and a client SWF, because the parent's version of the code will get used
and it will look in the wrong SWF context.

 

Basically, after wrasslin' with 3 for a while (by replacing all
instances of new TextField() with a getter to a per-SWF-unique class
factory hooked off of CSS blobs that almost worked until I hit the
PopupManager case), my head asplode.

 

-rg

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of - FI / Jonas Eliasson +
Sent: Thursday, March 08, 2007 3:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Modules at 360Flex conference

Regarding the embedded font issue:

We have following solution which seems to work well. It's also a
similar solution we have used on Flash 7 and 8. 

Embed the fonts into a SWF (Flash 8 or 9) both work with Flex.
Basically put them in a clip on the stage in the Flash IDE. Lets call it
fonts.swf. 

Then you create a CSS with following tags

@font-face {

src:url(../fonts/fonts.swf) ;

fontFamily: DIN Neuzeit Grotesk Std Bold Cn ;

}

.MainHeading {

  fontFamily: DIN Neuzeit Grotesk Std Bold Cn ;

  fontSize: 22px ;

  color: #55852A ;

}

Now you use FlexBuilder and compile the CSS into a SWF. 

Then use the StyleManager to reference and load the generated
css SWF 

Then you could do [UIComponent].styleName = .MainHeading ;

Hope that helps, I might be behind you guys but this has worked
on a couple of tests we have done. I guess the font.swf will still be
loaded from each module using it but it will be returned from the
browser cache.  Not sure if Adobe have some internal caching on these
loaders. 

Cheers, 

Jonas 






From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss
Sent: den 8 mars 2007 17:13
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Modules at 360Flex conference

RG,

1  2  3 are both linked.

200 kb for a shell plus another 600 kb for RSL's in the initial
download is too nasty.


[flexcoders] Re: httpservice; ie and 2032 error

2007-03-09 Thread dantmcgowan
So I made some coding changes on the backend and the error went away.
Here is the coding change I made to the service that the httpservice
was receiving the xml from:

response.setDateHeader(Expires, System.currentTimeMillis());
response.setHeader(Pragma, cache);
response.setHeader(Cache-control, public);

Thanks,
Dan


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

 On Tuesday 06 Mar 2007, dantmcgowan wrote:
  Tom,
 Yes I am running under ssl. I did get a response back suggesting I
  take a look at the response headers, particularly for pragma: no
  cache or expires. I was also given this link for reference:
 
 And cache-control.
 The Adobe tech note is:

http://www.adobe.com/cfusion/knowledgebase/index.cfm?event=viewid=KC.fdc7b5cextid=fdc7b5cdialogID=5708881iterationID=1sessionID=48302006ea9e3b171831stateID=0+0+5714280mode=simple
 
 We used an SSL proxy on the client computer to intercept the request
and show 
 us exactly what headers IE was seeing, and adjusted the web server
and SSL 
 accelerator (you may not have one) settings so as not to send the
headers in 
 question.
 
 -- 
 Tom Chiverton
 Helping to widespreadedly generate dynamic information
 On: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.




[flexcoders] Problem accessing properties of an ItemRenderer

2007-03-09 Thread xloaferx


I have a List Component with a custom itemRenderer that has a label
and a progressBar Component.  I can update the label just fine w/ the
data property when I update the ArrayCollection that is set as the
dataProvider...

What I want to be able to do is access the progressBar directly so i
can feed it the values of a progress event while uploading files to
the site.

this is the code used to instantiate the List:
mx:List width=250 id=imageList height=250
dataProvider={acImageList} change={makeImageRemovable()}
itemRenderer=ir.imageList/

and this is the code for the itemRenderer called imageList.mxml

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=250
height=50
mx:Label text={data.title} width=100 /
mx:Spacer width=10 /
mx:ProgressBar id=pbar width=100 visible={data.showLoader} /
/mx:HBox


The as file I am using to run all the code is in the same file that
the List is instantiated.  So i was hoping to be able to address the
elementy by   imageList.row.itemRenderer.progressBar.  So far it seems
that is an impossible task, but seems like it should be something easy
to do.  I was trying to avoid updating the ArrayCollection every time
there was a progress update because it seems that would it would
update the list everytime just to show a status update.  However, if
flex is smart enough to know that I am only updating one property and
it doesn't redraw the list everytime that might also be a viable solution.



Re: [flexcoders] FDS services-config for CFC's

2007-03-09 Thread Tom Chiverton
On Friday 09 Mar 2007, Darren Houle wrote:
 Enable Flex Data Management support
 This enables Flex Data Services to connect to this ColdFusion server 

So if I don't have FDS installed, it does nothing.

-- 
Tom Chiverton
Helping to continually incentivize industry-wide markets
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

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


Re: [flexcoders] Anybody experience Child Objects, exceeding the bounds of it's Parent Container?

2007-03-09 Thread Daniel Freiman

When this happened to me the solution was a complicated and very integrated
with what I was doing.  As a general piece of advice I'd call validateNow()
and then scrollChildren() and see if that helps or gets you closer to a
solution.

- Dan Freiman

On 09 Mar 2007 06:47:17 -0800, Mike Anderson [EMAIL PROTECTED] wrote:


  This hasn't happened to anybody else, ever???


-Original Message-
From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of Mike Anderson
Sent: Thursday, March 08, 2007 11:22 AM
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: [flexcoders] Anybody experience Child Objects, exceeding the
bounds of it's Parent Container?

Hello All,

I posted about this a couple days ago, with no response whatsoever. Let
me simplify the post, and ask once again:

Has anybody had a Child Object (in my case, an external SWF 2200x2000 in
size), spilling over beyond the extents of it's Parent Container (in
this case, a TitleWindow)?

Actually, here is the hierarchy of the Controls:

TitleWindow
Canvas
UIComponent (with embedded SWF)

I have a TitleWindow, with draggable content that sits within - this
content is a Vector Lake Map, in which the user can Pan  Zoom. The
whole point of this, is that the Window can be moved to a place on the
desktop, where it doesn't overlap any other content - but can remain
open, as a reference to the user.

This doesn't happen all the time, but at certain Zoom Levels. Instead
of the Title Window cutting off the Map in the Lower Right-Hand corner
(which is the normal behavior of any container), it allows the remainder
of the Map to show - thus taking up the remaining lower-right extent of
the Application Window. If I manually resize the TitleWindow, it
immediately triggers the Content to be clipped - and everything looks
fine.

Once again, the Map ONLY spills over, from 0,0 of the Title Window and
down to the Right. It's as if the TitleWindow isn't aware that the
Content is larger than it's own size, and forgets to Clip everything
starting at the lower Right-Hand corner, and beyond.

Is there anything I can do, to prevent this from happening?

Thanks in advance for any help or advice offered.

Mike


--
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] Re: DB access in Apollo

2007-03-09 Thread . m a r c o s a u g u s t o

This should be on the TOP priority how I'm suppose to make my app
offline without a DB?

This is not a should have.. its a must have.

sqlite_count+=1;
xD


--
. m a r c o sa u g u s t o  ;

.eu vim para confundir e não para explicar!. . . - Chacrinha


RE: [flexcoders] checkbox in datagrid with vertical slider bar

2007-03-09 Thread Tracy Spratt
Here is a full example:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI
D=559

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lisa Nelson
Sent: Thursday, March 08, 2007 5:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox in datagrid with vertical slider bar

 

 

 

If I check a box in a row other than the top row, and then slide the
vertical scroll bar down so that the rows go off the top, and then slide
it back up so that the rows that went off the top come back, rows that I
did not check now show up as checked.  Does anyone know if this is a
Flex bug or is it something I'm doing wrong?

 

mx:DataGridColumn id=applyCol 

 headerText=#13;Apply 

 dataField=apply

 itemRenderer=mx.controls.CheckBox

 rendererIsEditor=true

 textAlign=center

 editable=true

 editorDataField=selected

 width=40

 /

 

 



Re: [flexcoders] FDS services-config for CFC's

2007-03-09 Thread João Fernandes
Data management option in the CF admin is just to allow CF to be 
contacted by a FDS server. No FDS is integrated with CF.

Install FDS express and look at those resources/config folder that I 
mentioned before. There is everything you'll need.

João Fernandes




RE: [flexcoders] Re: When to use Flex???

2007-03-09 Thread Jagos, Allan
Thanks, that makes sense.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kasey.mccurdy
Sent: Thursday, March 08, 2007 9:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: When to use Flex???



Hey there Allan -- i'll try to throw my 3 cents in, and by all means,
if anyone else has something to add - do so.

basicaly, flex is an application framework...stress the word
APPLICATION. our strategy on flex has been that if we can consider
it an APPLICATION, we will use flex. If youre going to do a website
for a danish death metal band, for example...you would probably use
flash, as it's gonna be pretty artistic and not really an
application...just a fancy website. however, if said danish death
metal band needed a way for their management to update their site and
add new shows, news, and other 'management' type stuff...flex would
be a great tool to use to construct a content management system, in
conjunction with PHP, java, ruby, whatever

Soreally simplythats how we use flex apps where i work. thats
not to say you cant make flex look greatbut its mainly for
APPLICATIONS :)

hows that fer redundancy? 

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

 What sites make the most sense to use Flex?
 Internets, Intranets, Extranets?
 Marketing sites about Flex aren't even usually written in Flex so it
 made me wonder what type of site makes sense.
 
 Thanks.
 
 
 Allan M. Jagos 
 Web Developer 
 
 Robinson  Cole LLP
 280 Trumbull Street
 Hartford, CT 06103-3597
 Direct (860) 275-8335 | Fax (860) 275-8299 
 [EMAIL PROTECTED] | www.rc.com http://www.rc.com/ http://www.rc.com/  
 Contact Card http://www.rc.com/documents/peopleVcard/AMJ.vcf
http://www.rc.com/documents/peopleVcard/AMJ.vcf  
 
 
 Boston New London Hartford Stamford White Plains New York
 Sarasota 
 
 __
 This transmittal may be a confidential attorney-client communication
or may otherwise be privileged or confidential. If it is not clear
that you are the intended recipient, you are hereby notified that you
have received this transmittal in error; any review, dissemination,
distribution or copying of this transmittal is strictly prohibited. If
you suspect that you have received this communication in error, please
notify us immediately by telephone at 1-860-275-8200, or e-mail at
[EMAIL PROTECTED] and immediately delete this message and all its attachments.
 __
 This email has been scanned by the MessageLabs Email Security System.




 

__
This transmittal may be a confidential attorney-client communication or may 
otherwise be privileged or confidential. If it is not clear that you are the 
intended recipient, you are hereby notified that you have received this 
transmittal in error; any review, dissemination, distribution or copying of 
this transmittal is strictly prohibited. If you suspect that you have received 
this communication in error, please notify us immediately by telephone at 
1-860-275-8200, or e-mail at [EMAIL PROTECTED] and immediately delete this 
message and all its attachments.
__
This email has been scanned by the MessageLabs Email Security System.

RE: [flexcoders] Re: Dynamically sized array collection

2007-03-09 Thread Tracy Spratt
Like Ben said.

 

I assume your posted code is not complete, since you are not building
your item arrayCollection anywhere.  Build that first, in a nested
loop, then do addAItem on the outer AC, passing the nes item ac as the
arg.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, March 09, 2007 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dynamically sized array collection

 

What problem are you having?

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

 Hi All,
 
 I'm hitting my head against a brick wall trying to work this out, but
 to no avail.
 
 I would like to have an ArrayCollection which contains a variable
 number of ArrayCollections.
 
 My code looks like..
 
 [CODE]
 
 var arrayCollection:ArrayCollection=new ArrayCollection();
 var numberOfItems:int=10;
 
 for(var x=1;xnumberOfItems;x++)
 {
 arrayCollection.addItem(new ArrayCollection());
 }
 
 [/CODE]
 
 arrayCollection[0] will contain an array of strings
 arrayCollection[x] will contain an array of numbers
 
 Structure wise it's like a spreadsheet, where the first column
 contains a title and the other columns numbers.
 
 This collection will be mapped to a DataGrid and an BarChart - with
 the x-axis mapped to the array-of-strings and each series mapped to
 the numbers (this'll be dynamic, too).
 
 My aim with the collection is to use it to hold SUM values from a
 tree-structured XML transmission. The XML transmission has a fixed
 debth but the number of properties may different. In my example
 below, I have Hours and Cost to SUM but in other XML transmissions
 I'll have Hours, Cost, Profit, etc etc.
 
 [XML]
 
 Weeks
 Week id=0 name=2007-01
 Tarif Name=A Hours=100 Cost=50.00/
 Tarif Name=B Hours=100 Cost=50.00/
 Tarif Name=C Hours=100 Cost=50.00/
 /Week
 Week id=1 name=2007-02
 Tarif Name=A Hours=100 Cost=50.00/
 Tarif Name=C Hours=100 Cost=50.00/
 /Week
 /Weeks
 
 [/XML]
 
 So, can anyone explain to me what I'm doing wrong?
 
 Cheers,
 Ryan


 



RE: [flexcoders] mx:Script error ?

2007-03-09 Thread Tracy Spratt
What happens in a new, empty application, with just the script tags?  If
that doesn't work, re-install.  If it does, then paste in code from the
broken app till it breaks.  There is the problem.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Groups Mail
Sent: Thursday, March 08, 2007 6:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mx:Script error ?

 

 

hi i have got a strange error from the flex developer plugin for
eclipse. Below the error code;
Could not resolve mx:Script to a component implementation.

 

and my code is 

 

?xml version=1.0 encoding=utf-8?

mx:Application

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

layout=

absolute 

creationComplete=startService()

 

mx:Script 

![CDATA[

import samples.flexstore.Cd http://samples.flexstore.cd/ ; 

import mx.collections.IViewCursor; 

import mx.collections.ArrayCollection; 

import mx.rpc.events.ResultEvent; 

private var catalog:ArrayCollection; 

private function startService(): void 

{

cdSrv.send();

}

private function handleGETResult(event:ResultEvent): void 

{

var cds:ArrayCollection = event.result.catalog.cd
http://event.result.catalog.cd/ ; 

var temp:ArrayCollection = new ArrayCollection(); 

var cursor:IViewCursor = cds.createCursor(); 

while(!cursor.afterLast) 

{

var cd:Cd = new Cd(); 

cd.fill(cursor.current);

temp.addItem(cd);

cursor.moveNext();

}

catalog = temp;

}

]]

/mx:Script 

mx:HTTPService id=cdSrv url= data/catalog.xml
result=handleGETResult(event)/ 

mx:Panel x=82 y=60  width=368 height=200 layout= absolute
title=Cd Album List horizontalGap=0 id= panel1 

mx:List dataProvider={catalog}  labelField=title x=174 y= 0
width=50% height=100% id= list1/mx:List 

/mx:Panel 

/mx:Application

 



RE: [flexcoders] Using an embedded image at runtime, Please help.

2007-03-09 Thread Alex Harui
@Embed is a compiler directive so you can't put it in quotes.

 

You have to declare a variable

 

[Embed('../assets/mixipix.swf');

Var mixipix:Class

 

And load that

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Friday, March 09, 2007 7:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using an embedded image at runtime, Please help.

 

Hi

 

I am still trying to get this print job done. I have got all of the text
working fine but I can't get the logo to appear at the top, I hope
someone can help.

 

I have this code:

 

private function printMovies(e:Event):void

{

var mixiLogo:Image = new Image();

mixiLogo.load(@Embed('../assets/mixipix.swf'));

this.addChild(mixiLogo);

}

 

But I just get a broken image appearing when I fire the function.

 

With this version of the function:

 

private function printMovies(e:Event):void

{



this.printJob = new FlexPrintJob();



if(this.printJob.start()){



this.printPanel = new Panel();

var txtApprovedList:Text = new Text();

var mixLogo:Image = new Image();



mixLogo.load(assets/logo.swf);



 
txtApprovedList.setStyle(color,0x00);

txtApprovedList.width =
printJob.pageWidth;

txtApprovedList.text =
this.txtMovieIDs.text;



this.printPanel.addChild(mixLogo);

 
this.printPanel.addChild(txtApprovedList);

 
this.printPanel.setStyle(borderStyle,none);



this.addChild(this.printPanel);



 
printPanel.addEventListener(FlexEvent.CREATION_COMPLETE,this.doPrintCanv
as);

}

}

 

I get the panel and text appearing but no iamge at all, not even a
broken one.

 

I hope someone can help.

 

Giles Roadnight 

 



Re: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread Tom Chiverton
On Friday 09 Mar 2007, . m a r c o s a u g u s t o wrote:
 This should be on the TOP priority how I'm suppose to make my app
 offline without a DB?

SharedObject.

-- 
Tom Chiverton
Helping to administratively revolutionize compelling design-patterns
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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



 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/nhFolB/TM
~- 

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


RE: [flexcoders] SWFLoader: WHEN can I access SystemManager.application[myContent]?

2007-03-09 Thread Tracy Spratt
applicationComplete is the perfect solution for me.  

Here's my a code snippet for anyone reading this later:

[Bindable]public var _smAppLoaded:SystemManager;

mx:SWFLoader id=myLoader width=300
complete=onCompleteMyLoader();/

  private function onCompleteMyLoader():void {
  _smAppLoaded = SystemManager(myLoader.content);
 
_smAppLoaded.addEventListener(FlexEvent.APPLICATION_COMPLETE,onLoadedApp
licationComplete)
  }
  
  private function onLoadedApplicationComplete(oEvent:Event):void
  {
Alert.show(_smAppLoaded.application[lblOne].text);
  }

Tracy


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, March 08, 2007 9:22 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] SWFLoader: WHEN can I access
SystemManager.application[myContent]?

You should get an applicationComplete when the app's ready.  It is
available earlier than that, but I don't think there's a good event for
it.  You could check on enterFrame events.
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, March 08, 2007 6:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWFLoader: WHEN can I access
SystemManager.application[myContent]?
 
In a handler on the complete event of a SWFLoader, I set an instance
variable(typed as SystemManager)  to myLoader.content.
_smAppLoaded = SystemManager(myLoader.content);
When can I access the .application property?:
Alert.show(_smAppLoaded.application[lblOne].text);
If I try it in the event handler, I get a null reference.
The same if I try it in a callLater()
But if I try it after a setInterval or timer of 5000 ms, I get a valid
reference.
And from a button in the UI, it is valid.
Is there a good way to know if it is ready?   Or should I just use a
timer loop?
Tracy
 


RE: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread Merrill, Jason
SharedObject.

You mean those little tiny 128k or whatever Shared Objects like from the
Flash player or do you mean Apollo will have a more robust  larger
Shared Object?  

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 


RE: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread Matt Chotin
Apollo has filesystem access, you can store whatever you want.  But a DB
is under consideration, no guarantees but it hasn't been ruled out.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Friday, March 09, 2007 8:49 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: DB access in Apollo



SharedObject.

You mean those little tiny 128k or whatever Shared Objects like from the
Flash player or do you mean Apollo will have a more robust  larger
Shared Object? 

Jason Merrill
Bank of America 
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team



 


RE: [flexcoders] SWFLoader: WHEN can I access SystemManager.application[myContent]?

2007-03-09 Thread Brian Holmes
I've listened for the SystemManager.applicationComplete event before to
get a valid reference to it.
 
 
b..



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, March 08, 2007 7:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWFLoader: WHEN can I access
SystemManager.application[myContent]?



In a handler on the complete event of a SWFLoader, I set an instance
variable(typed as SystemManager)  to myLoader.content.

_smAppLoaded = SystemManager(myLoader.content);

When can I access the .application property?:

Alert.show(_smAppLoaded.application[lblOne].text);

If I try it in the event handler, I get a null reference.

The same if I try it in a callLater()

But if I try it after a setInterval or timer of 5000 ms, I get a valid
reference.

And from a button in the UI, it is valid.

Is there a good way to know if it is ready?   Or should I just use a
timer loop?

Tracy

 


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


Re: [flexcoders] Re: When to use Flex???

2007-03-09 Thread Doug McCune

I'll throw in a quick opinion here and talk about how I like to think about
using Flex. Basically if you've got data you need to visualize in any
non-boring way then Flex is the way to go. What this means is that if you've
got a bunch of data that you want to show somehow other than dropping it
into a list or table, this is where Flex dominates. The plug-and-play
charting components, the SpringGraph custom component, Josh Tynjala's
TreeMap component, these are all data visualization tools.

A lot of people are using Flex for displaying tabular data, and that's all
good and cool. Flex is useful for easily sorting and analyzing tabular data.
But that stuff bores the hell out of me. If you want to take that data and
really show it off visually, now you've got the tools. Is one data item more
important than the others? Then make it bigger, make it glow, hell, make it
jump up and down and get the user's attention. Are there connections between
data items? Draw them. Drop your data into a 3D space and let the user
REALLY see how the data is connected.

Let's say you've got a table of employee records, but what you REALLY want
to see is the organizational structure of the department and the performance
metrics for each team member. Well, draw it all how it should be drawn. Draw
the team composition as an org chart and differentiate the team members by
performance. Make the underperforming employees stand out so that at a
glance you can see the team structure and problem areas. You don't have to
scan over the Performance Metric column of your data grid and try to
separate out the problems. You can glance at the screen and just know.

Flex allows you to visualize your data in entirely new ways. A grid of
tabular data might be useful, but come on, try to imagine the ideal
visualization of that data. Really think about the information you're trying
to get across. Data is no longer constrained to a HTML table.

Doug



On 09 Mar 2007 08:09:48 -0800, Jagos, Allan [EMAIL PROTECTED] wrote:


   Thanks, that makes sense.

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *kasey.mccurdy
*Sent:* Thursday, March 08, 2007 9:59 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: When to use Flex???

 Hey there Allan -- i'll try to throw my 3 cents in, and by all means,
if anyone else has something to add - do so.

basicaly, flex is an application framework...stress the word
APPLICATION. our strategy on flex has been that if we can consider
it an APPLICATION, we will use flex. If youre going to do a website
for a danish death metal band, for example...you would probably use
flash, as it's gonna be pretty artistic and not really an
application...just a fancy website. however, if said danish death
metal band needed a way for their management to update their site and
add new shows, news, and other 'management' type stuff...flex would
be a great tool to use to construct a content management system, in
conjunction with PHP, java, ruby, whatever

Soreally simplythats how we use flex apps where i work. thats
not to say you cant make flex look greatbut its mainly for
APPLICATIONS :)

hows that fer redundancy?

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

 What sites make the most sense to use Flex?
 Internets, Intranets, Extranets?
 Marketing sites about Flex aren't even usually written in Flex so it
 made me wonder what type of site makes sense.

 Thanks.


 Allan M. Jagos
 Web Developer

 Robinson  Cole LLP
 280 Trumbull Street
 Hartford, CT 06103-3597
 Direct (860) 275-8335 | Fax (860) 275-8299
 [EMAIL PROTECTED] | www.rc.com http://www.rc.com/
 Contact Card http://www.rc.com/documents/peopleVcard/AMJ.vcf


 Boston New London Hartford Stamford White Plains New York
 Sarasota

 __
 This transmittal may be a confidential attorney-client communication
or may otherwise be privileged or confidential. If it is not clear
that you are the intended recipient, you are hereby notified that you
have received this transmittal in error; any review, dissemination,
distribution or copying of this transmittal is strictly prohibited. If
you suspect that you have received this communication in error, please
notify us immediately by telephone at 1-860-275-8200, or e-mail at
[EMAIL PROTECTED] and immediately delete this message and all its attachments.
 __
 This email has been scanned by the MessageLabs Email Security System.



__
This transmittal may be a confidential attorney-client communication or
may otherwise be privileged or confidential. If it is not clear that you are
the intended recipient, you are hereby notified that you have received this
transmittal in error; any review, dissemination, distribution or copying of
this 

RE: [flexcoders] DataGridColumn visibility problem. It appears again when dataProvider is replaced

2007-03-09 Thread Alex Harui
There's been a bug filed, and an update is expected to be available
soon (hopefully a week or two).

-Alex

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Friday, March 09, 2007 6:37 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DataGridColumn visibility problem. It appears
again when dataProvider is replaced

On Friday 09 Mar 2007, Mickael RUELLAN wrote:
 What are doing Adobe for this ? Is there a way to submit bug ?

adobe.com/go/wish

-- 
Tom Chiverton
Helping to continually grow frictionless paradigms
On: http://thefalken.livejournal.com



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

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

CONFIDENTIALITY

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

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




--
Flexcoders 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] Re: DB access in Apollo

2007-03-09 Thread Eric Guesdon
I mean nothing, i just asked every one if something like SharedObject (of
course more robust and larger) should answer to the database subject.

 

What do you think about that… from my point of view a system like
sharedobject should be enough

I don’t know if you downloaded New York Times application (unfortunately
based on wpf) but they synchronized all their news each time you start the
application. 

Of course it represents a large quantity of data but I’m not sure they use a
local database for that

 

Let me know

 

Regards

 

Eric

 

  _  

De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Merrill, Jason
Envoyé : vendredi 9 mars 2007 17:54
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] Re: DB access in Apollo

 

SharedObject.

You mean those little tiny 128k or whatever Shared Objects like from the
Flash player or do you mean Apollo will have a more robust  larger
Shared Object? 

Jason Merrill
Bank of America 
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team

 



RE: [flexcoders] Re: When to use Flex???

2007-03-09 Thread Jagos, Allan
Good points.  I will use what you are saying.  Thanks.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Friday, March 09, 2007 12:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: When to use Flex???



I'll throw in a quick opinion here and talk about how I like to think
about using Flex. Basically if you've got data you need to visualize in
any non-boring way then Flex is the way to go. What this means is that
if you've got a bunch of data that you want to show somehow other than
dropping it into a list or table, this is where Flex dominates. The
plug-and-play charting components, the SpringGraph custom component,
Josh Tynjala's TreeMap component, these are all data visualization
tools. 

A lot of people are using Flex for displaying tabular data, and that's
all good and cool. Flex is useful for easily sorting and analyzing
tabular data. But that stuff bores the hell out of me. If you want to
take that data and really show it off visually, now you've got the
tools. Is one data item more important than the others? Then make it
bigger, make it glow, hell, make it jump up and down and get the user's
attention. Are there connections between data items? Draw them. Drop
your data into a 3D space and let the user REALLY see how the data is
connected. 

Let's say you've got a table of employee records, but what you REALLY
want to see is the organizational structure of the department and the
performance metrics for each team member. Well, draw it all how it
should be drawn. Draw the team composition as an org chart and
differentiate the team members by performance. Make the underperforming
employees stand out so that at a glance you can see the team structure
and problem areas. You don't have to scan over the Performance Metric
column of your data grid and try to separate out the problems. You can
glance at the screen and just know. 

Flex allows you to visualize your data in entirely new ways. A grid of
tabular data might be useful, but come on, try to imagine the ideal
visualization of that data. Really think about the information you're
trying to get across. Data is no longer constrained to a HTML table. 

Doug




On 09 Mar 2007 08:09:48 -0800, Jagos, Allan [EMAIL PROTECTED] wrote: 



Thanks, that makes sense.



From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com http://yahoogroups.com ] On Behalf
Of kasey.mccurdy
Sent: Thursday, March 08, 2007 9:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: When to use Flex???




Hey there Allan -- i'll try to throw my 3 cents in, and by all
means,
if anyone else has something to add - do so.

basicaly, flex is an application framework...stress the word
APPLICATION. our strategy on flex has been that if we can
consider
it an APPLICATION, we will use flex. If youre going to do a
website
for a danish death metal band, for example...you would probably
use
flash, as it's gonna be pretty artistic and not really an
application...just a fancy website. however, if said danish
death
metal band needed a way for their management to update their
site and
add new shows, news, and other 'management' type stuff...flex
would
be a great tool to use to construct a content management system,
in
conjunction with PHP, java, ruby, whatever

Soreally simplythats how we use flex apps where i work.
thats
not to say you cant make flex look greatbut its mainly for
APPLICATIONS :)

hows that fer redundancy? 

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

 What sites make the most sense to use Flex?
 Internets, Intranets, Extranets?
 Marketing sites about Flex aren't even usually written in Flex
so it
 made me wonder what type of site makes sense.
 
 Thanks.
 
 
 Allan M. Jagos 
 Web Developer 
 
 Robinson  Cole LLP
 280 Trumbull Street
 Hartford, CT 06103-3597
 Direct
chrome://skype_ff_toolbar_win/content/cb_transparent_l.gif
chrome://skype_ff_toolbar_win/content/famfamfam/us.gif
chrome://skype_ff_toolbar_win/content/space.gif
chrome://skype_ff_toolbar_win/content/space.gif
chrome://skype_ff_toolbar_win/content/arrow.gif
chrome://skype_ff_toolbar_win/content/space.gif
chrome://skype_ff_toolbar_win/content/space.gif
chrome://skype_ff_toolbar_win/content/space.gif
chrome://skype_ff_toolbar_win/content/space.gif
chrome://skype_ff_toolbar_win/content/space.gif
chrome://skype_ff_toolbar_win/content/space.gif
chrome://skype_ff_toolbar_win/content/space.gif (860) 275-8335

[flexcoders] ALT-GR + key not working in Firefox

2007-03-09 Thread João Fernandes
Hi there,

we're having this issue under firefox where textInput fields don't 
accept combination of Alt-Gr + Key.
We use Portuguese Keyboard Layout ( pt_PT) and we are unable to write @ 
( Alt-Gr + 2 ) or € ( Alt-Gr + E ) inside Firefox as supposed.

This works perfectly under IE.

João Fernandes



 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

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


Re: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread Mike Chambers
If you are storing data with the File API, then there is no limit.

mike chambers

[EMAIL PROTECTED]

Merrill, Jason wrote:
 
 
 How much data could Apollo store locally when offline?  I think this is 
 where some of the concern lies around not having an integrated database 
 availble in Apollo.  Does anyone know?  Shared objects at least in Flash 
 player 9 are pretty limited in size.  Does Apollo plan to store data 
 locally in a Shared Object?
  
 


Re: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread Mike Chambers
Shared Objects. File API.

mike chambers

[EMAIL PROTECTED]

. m a r c o s a u g u s t o wrote:
 
 
 This should be on the TOP priority how I'm suppose to make my app 
 offline without a DB?
 
 This is not a should have.. its a must have.
 
 sqlite_count+=1;
 xD
 


RE: [flexcoders] Using an embedded image at runtime, Please help.

2007-03-09 Thread Giles Roadnight
Many thanks for the reply but I am still having some problems.

 

I have this code:

 

[Embed(source=../assets/mixi.swf)]

[Bindable]

 private var mixiLogo:Class;

 

at the top of my class and this code:

 

private function printMovies(e:Event):void

{

var mixiLogo:Image = new Image();

mixiLogo.load({this.mixiLogo});



this.addChild(mixiLogo);

}

 

That fires when I press a button but I am still getting a broken image. When
I try to load the image into a panel that I am building to print nothing
appears.

 

Is this code correct?

 

Thanks

 

Giles Roadnight

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 09 March 2007 16:43
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using an embedded image at runtime, Please help.

 

@Embed is a compiler directive so you can't put it in quotes.

 

You have to declare a variable

 

[Embed('../assets/mixipix.swf');

Var mixipix:Class

 

And load that

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Friday, March 09, 2007 7:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using an embedded image at runtime, Please help.

 

Hi

 

I am still trying to get this print job done. I have got all of the text
working fine but I can't get the logo to appear at the top, I hope someone
can help.

 

I have this code:

 

private function printMovies(e:Event):void

{

var mixiLogo:Image = new Image();

mixiLogo.load(@Embed('../assets/mixipix.swf'));

this.addChild(mixiLogo);

}

 

But I just get a broken image appearing when I fire the function.

 

With this version of the function:

 

private function printMovies(e:Event):void

{



this.printJob = new FlexPrintJob();



if(this.printJob.start()){



this.printPanel = new Panel();

var txtApprovedList:Text = new Text();

var mixLogo:Image = new Image();



mixLogo.load(assets/logo.swf);



txtApprovedList.setStyle(color,0x00);

txtApprovedList.width = printJob.pageWidth;

txtApprovedList.text =
this.txtMovieIDs.text;



this.printPanel.addChild(mixLogo);

this.printPanel.addChild(txtApprovedList);

 
this.printPanel.setStyle(borderStyle,none);



this.addChild(this.printPanel);



 
printPanel.addEventListener(FlexEvent.CREATION_COMPLETE,this.doPrintCanvas);

}

}

 

I get the panel and text appearing but no iamge at all, not even a broken
one.

 

I hope someone can help.

 

Giles Roadnight 

 

attachment: image001.jpg
attachment: image002.jpg


[flexcoders] Re: Mouse events in non-drawn areas?

2007-03-09 Thread Reid Priedhorsky
Gordon Smith wrote:
 To make your component receive mouse events even in its transparent
 parts, fill those areas using 'graphics' with an alpha of 0. The Flash
 Player's mouse-detection logic doesn't care whether the pixels are
 opaque or transparent, it only cares that they have been drawn.

Hi guys,

Thanks for the help. :) I ended up solving it by creating a transparent 
button that covered the component and then using that as the component's 
hitArea.

Take care,

Reid



[flexcoders] Re: Drawing in a Scrollable Canvas

2007-03-09 Thread Reid Priedhorsky
mike.cantrell wrote:
 One small problem still.. 
 
 Now the lines drawn in the canvas are bleeding into other container.
 For instance, if I scroll down too far, the lines in the canvas will
 show in the parent containers (the panel that the canvas belongs to
 and the application canvas). 

I am using a similar technique, and I draw using uncorrected coordinates 
and it works fine. I believe I draw onto a UIComponent which is a child 
of the Canvas. You might try that.

Good luck,

Reid


RE: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread Merrill, Jason
Yeah, I know about those, but you're talking about creating files and
reading them back - just seems like more work - so perhaps writing
something like an XML file out and reading it back would have to do. I
was thinking of something more native that didn't require as much
serialization.
 

Jason Merrill 
Bank of America  
Global Technology  Operations 
Learning  Leadership Development 
eTools  Multimedia Team 


 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Chambers
Sent: Friday, March 09, 2007 12:36 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: DB access in Apollo



Shared Objects. File API.

mike chambers

[EMAIL PROTECTED] mailto:mesh%40adobe.com 

. m a r c o s a u g u s t o wrote:
 
 
 This should be on the TOP priority how I'm suppose to make
my app 
 offline without a DB?
 
 This is not a should have.. its a must have.
 
 sqlite_count+=1;
 xD
 


 



Re: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread Troy Gilbert

I think that if Adobe really wants to bill Apollo as taking the best-of web
technology and putting it on the desktop, then they need to seriously
consider including a DB that speaks SQL.

Personally, I think it would be *fantastic* if Apollo was essentially an
embedded webserver, i.e. stripped down Apache (or similar) where I could
choose to generate documents using PHP and have a DB backend like MySQL.
Basically Zinc + Flex + WAMP, all in one executable. Now *that* would be
cool...

Troy.


On 09 Mar 2007 08:57:58 -0800, Matt Chotin [EMAIL PROTECTED] wrote:


   Apollo has filesystem access, you can store whatever you want.  But a
DB is under consideration, no guarantees but it hasn't been ruled out.

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Merrill, Jason
*Sent:* Friday, March 09, 2007 8:49 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Re: DB access in Apollo

 SharedObject.

You mean those little tiny 128k or whatever Shared Objects like from the
Flash player or do you mean Apollo will have a more robust  larger
Shared Object?

Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team

 



RE: [flexcoders] Loading Remote SWF Assets in FireFox

2007-03-09 Thread Alex Harui
Bjorn.

 

Still stuck?  Nobody here recognizes the symptoms.  Can you send a
mini-example?

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Thursday, March 08, 2007 6:33 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Remote SWF Assets in FireFox

 

Absolute..

I'm stumped.

Does loader somehow eval the url before making the request.

I've noticed for example with FileReference.upload if the servlet
destination is a 404 an upload attempt is never made.

Is there something in the security policy that prevents the request from
even being made?

 

 

Bjorn

 

On 09/03/2007, at 1:18 PM, Alex Harui wrote:





 

Dunno.  What's the URL to the SWF?  Are you loading absolute or relative
path?  We fix up relative paths in loadContent().

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Thursday, March 08, 2007 6:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Remote SWF Assets in FireFox

 

The path is correct, registered for progress and complete but no events
are fired.

Viewing the url in loadContent through a browser shows the asset.

We use serviceCapture and this also shows no attempt at loading any of
the assets.

 

Is it perhaps a security issue that is only enforced in firefox?

 

 

thanks.

 

On 09/03/2007, at 12:52 PM, Alex Harui wrote:






 

OK, so dies in the a** means nothing shows up?

 

I would debug into SWFLoader.loadContent to make sure we fix up the path
correctly, and see if you get progress events and/or the complete event.
Maybe it got there, but is the wrong size.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:flexcoders mailto:flexcoders
@yahoogroups.com] On Behalf Of Bjorn Schultheiss
Sent: Thursday, March 08, 2007 5:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Loading Remote SWF Assets in FireFox

 

A,

 

No exceptions, Flash 8 Swfs, The image assets are basically graphics
(jpeg etc) with a swf wrapper, but we are also loading swf assets via
SWFLoader with graphics and code ( think banner ads ).

Both are showing the same behaviour, that is working in IE and not
Firefox.

 

 

thanks,

 

Bjorn

 

On 09/03/2007, at 12:25 PM, Alex Harui wrote:







 

Do you get an exception?  What kind of SWF (player 9, as code, or just
graphics, etc)?

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:flexcoders mailto:flexcoders
@yahoogroups.com] On Behalf Of Bjorn Schultheiss
Sent: Thursday, March 08, 2007 4:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading Remote SWF Assets in FireFox

 

Hi,

Are there any known issues with displaying Remote swf assets in your 
flex 2 app (container) in Firefox?

I'm loading swf assets from a remote location via mx:SWFLoader and 
mx:Image.
I have set the ContextLoader objects, Security.loadPolicyFile 
(crossdomainurl) when the app inits, every security option i can 
think of.

Everything runs fine in IE6, IE7, Safari. FireFox dies in the a**.

Can any elaborate further on this for me?

regards,

Bjorn

 

 

 

 

 

 

 

 

 

 



RE: [flexcoders] Using an embedded image at runtime, Please help.

2007-03-09 Thread Alex Harui
Like @embed, {} is a binding directive to the MXML compiler and doesn't
have the same meaning in Actionscript.

 

Note that you are also using mixiLogo twice (class and local variable
name).

 

[Embed(source=../assets/mixi.swf)]

[Bindable]

 private var mixiLogoAsset:Class;

 

at the top of my class and this code:

 

private function printMovies(e:Event):void

{

var mixiLogo:Image = new Image();

mixiLogo.load(mixiLogoAsset);



this.addChild(mixiLogo);

}

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Friday, March 09, 2007 9:39 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using an embedded image at runtime, Please
help.

 

Many thanks for the reply but I am still having some problems.

 

I have this code:

 

[Embed(source=../assets/mixi.swf)]

[Bindable]

 private var mixiLogo:Class;

 

at the top of my class and this code:

 

private function printMovies(e:Event):void

{

var mixiLogo:Image = new Image();

mixiLogo.load({this.mixiLogo});



this.addChild(mixiLogo);

}

 

That fires when I press a button but I am still getting a broken image.
When I try to load the image into a panel that I am building to print
nothing appears.

 

Is this code correct?

 

Thanks

 

Giles Roadnight

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 09 March 2007 16:43
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using an embedded image at runtime, Please
help.

 

@Embed is a compiler directive so you can't put it in quotes.

 

You have to declare a variable

 

[Embed('../assets/mixipix.swf');

Var mixipix:Class

 

And load that

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Friday, March 09, 2007 7:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using an embedded image at runtime, Please help.

 

Hi

 

I am still trying to get this print job done. I have got all of the text
working fine but I can't get the logo to appear at the top, I hope
someone can help.

 

I have this code:

 

private function printMovies(e:Event):void

{

var mixiLogo:Image = new Image();

mixiLogo.load(@Embed('../assets/mixipix.swf'));

this.addChild(mixiLogo);

}

 

But I just get a broken image appearing when I fire the function.

 

With this version of the function:

 

private function printMovies(e:Event):void

{



this.printJob = new FlexPrintJob();



if(this.printJob.start()){



this.printPanel = new Panel();

var txtApprovedList:Text = new Text();

var mixLogo:Image = new Image();



mixLogo.load(assets/logo.swf);



 
txtApprovedList.setStyle(color,0x00);

txtApprovedList.width =
printJob.pageWidth;

txtApprovedList.text =
this.txtMovieIDs.text;



this.printPanel.addChild(mixLogo);

 
this.printPanel.addChild(txtApprovedList);

 
this.printPanel.setStyle(borderStyle,none);



this.addChild(this.printPanel);



 
printPanel.addEventListener(FlexEvent.CREATION_COMPLETE,this.doPrintCanv
as);

}

}

 

I get the panel and text appearing but no iamge at all, not even a
broken one.

 

I hope someone can help.

 

Giles Roadnight 

 



RE: [flexcoders] Re: Pagination using Flex Data Management Service

2007-03-09 Thread Jeff Vroom
Yes, when you have one large ArrayCollection the paging from client to server 
works the way you describe.
 
When you are only storing one page on the client at a time (i.e. in a page 
sized ArrayCollection), remote object or FDMS work the same if your app is 
read-only.  You'd probably only use FDMS if you want to take advantage of the 
other features it offers (e.g. automatic change detection on the client, 
associations with lazy loading, etc.)
 
Jeff

 


From: flexcoders@yahoogroups.com on behalf of sid_flex
Sent: Fri 3/9/2007 7:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Pagination using Flex Data Management Service



Jeff,

Thanks for your reply.

I assume that by paging from client to server you mean that the client
gets results fragment by fragment, based on the visible data. For
example, if my datagrid shows 8 rows and my paging is set to 5 rows, the
datagrid will only get the first two packages of data. In this example
10 rows. When scrolling down by one row at a time, the client retrieves
the next package as soon as we reach the 11th row. Correct?

Given the current FSD implementation and your suggestion to implement
server-side pagination using a fill parameter, the implementation using
FDS will probably the same as the implementation you would code for
RemoteObjects. Why not use RemoteObjects instaed of FDS?

Best regards,

Sieto

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

 When you have one large ArrayCollection on the client which you want
to
 load a page at a time, FDS currently only supports paging from client
to
 server. The fill method currently must return all items from the
 database. This is something we'd like to address in a future release.



 To implement a page at a time ArrayCollection, you can simply pass in
 the page index as a fill parameter and then code it just to return the
 number of items asked for. One trick folks sometimes use is to return
 one more item than they display so that you can tell when you have hit
 the end of the list.



 Jeff



 

 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
On
 Behalf Of sid_flex
 Sent: Thursday, March 08, 2007 9:51 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Pagination using Flex Data Management Service



 Hello,

 Pagination using Flex FDS should be simple. Nevertheless i'ts hard
 finding examples of succesfull implementations using pagination with
 Flex Data Management Service.

 Configuring the destination is eaasy. For example:
 destination id=product
 adapter ref=java-dao /

 properties
 sourceflex.testdrive.store.ProductAssembler/source
 scopeapplication/scope

 metadata
 identity property=productId! /
 /metadata

 network
 session-timeout11/session-timeout
 paging enabled=true pageSize=5 /
 throttle-inbound policy=ERROR max-frequency=500/
 throttle-outbound policy=REPLACE
 max-frequency=500/
 /network
 /properties
 ! nbsp; /destination

 But what's the ! intended way to navigate through the pages returned?
 (Or is pagination only intended for optimised network trafic and will
 the result of ds.fill() always return the full result of the fill()
 method?)

 I'm looking for the best next page, previous page, last page,
 first page solution using FDS.

 Thanks in advance for your reply.

 Best regards,

 Sieto




 
winmail.dat

RE: [flexcoders] checkbox in datagrid with vertical slider bar

2007-03-09 Thread Lisa Nelson
I believe you are describing something different than what I am
describing.  The dataProvider starts off life with every element in a
false state, or unchecked.  You check one box.  Slide the bar.  And
other boxes in other rows magically check themselves.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, March 08, 2007 6:24 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] checkbox in datagrid with vertical slider bar

 

That's a common misunderstanding.  The checkbox is driven by properties
of the items in the dataprovider.  If you check a box and do not update
the dataprovider, then when the checkbox is forced to re-render after
scrolling it will not be checked.  The key is to use rendererIsEditor
and other related properties.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lisa Nelson
Sent: Thursday, March 08, 2007 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] checkbox in datagrid with vertical slider bar

 

 

 

If I check a box in a row other than the top row, and then slide the
vertical scroll bar down so that the rows go off the top, and then slide
it back up so that the rows that went off the top come back, rows that I
did not check now show up as checked.  Does anyone know if this is a
Flex bug or is it something I'm doing wrong?

 

mx:DataGridColumn id=applyCol 

 headerText=#13;Apply 

 dataField=apply

 itemRenderer=mx.controls.CheckBox

 rendererIsEditor=true

 textAlign=center

 editable=true

 editorDataField=selected

 width=40

 /

 

 



Re: [flexcoders] ALT-GR + key not working in Firefox

2007-03-09 Thread Paul J DeCoursey
There is a series of bugs related to Events in the Flash Plugin.  I 
haven't seen any reports on them yet, but I have reported them to adobe 
and verifed them on multiple machines.

João Fernandes wrote:
 Hi there,

 we're having this issue under firefox where textInput fields don't 
 accept combination of Alt-Gr + Key.
 We use Portuguese Keyboard Layout ( pt_PT) and we are unable to write @ 
 ( Alt-Gr + 2 ) or € ( Alt-Gr + E ) inside Firefox as supposed.

 This works perfectly under IE.

 João Fernandes


   



 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
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: Init Global Object Best Practice

2007-03-09 Thread Gordon Smith
Please keep the discussion on the flexcoders list. Flex engineers don't
do individual tech support, there are plenty of people on flexcoders
besides me who can help you, and any answers are valuable to other
people on the list learning about Flex.
 
I can't really tell from your description what you're trying to do. For
example, I'm not sure what you mean by an init Object. What does it
do? And a plain Object doesn't have methods that you can call.
 
Do you mean that you've written a class for storing info extracted from
the XML and that you want to call a method on it from the resultHandler
after the XML is loaded? In that case, you would do something like
 
Application
script
var myXMLInfo:MyXMLInfo;
function resultHandler(event)
{
myXMLInfo = new MyXMLInfo();
myXMLInfo.parse(event.result);
}
function doSomething()
{
// use myXMLInfo
}
/script
/Application
 
In other words, any event handler method can access any instance
variable in the same class, such as myXMLInfo. The info object is then
available to other methods as well.
 
If I guessed wrong, can you post the code for a very simple example
Application that illustrates what you are trying to do?
 
- Gordon



From: Thierry Bertossa [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 09, 2007 12:58 AM
To: Gordon Smith
Subject: Re: Init Global Object Best Practice



Thanks Gordon 

 

It's a good practice to do that with Application.application or there is
another solution...

In my case, I have create an Object for XML loading and want to call a
method in my init Object from the Xml loading resultHandler. 

I don't really Understand how to handle Event between different
Object...

If the only choice is with Application.application or if I have missed
something?

Thanks

 

Thierry 


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.8/714 - Release Date:
08.03.2007 10:58




[flexcoders] Mac style drop-down sheet

2007-03-09 Thread ashifsayani
Hi,

I'd seen a posting where someone created a mac style drop-down sheet in Flex.  
I can't seem 
to find the link anymore, does anyone remember who's blog it was on?

thanks,
Ashif



[flexcoders] Sub-folders in ContextMenu customitems?

2007-03-09 Thread scott_ruffing
I'm trying to add several folder items to the ContextMenu items, but
Flex doesn't seem to recognize them.  I thought I could do something like 

-
mainMenu = new ContextMenu();
mainMenu.hideBuiltInItems();

var item:ContextMenuItem = new ContextMenuItem(Item);
menu.customItems.push(item); 

var submenu:ContextMenu = new ContextMenu(Menu 1);
var item2:ContextMenuItem = new ContextMenuItem(Menu 1 - Item);
submenu.customItems.push(item2);

menu.customItems.push(submenu);


-

but you can't give ContextMenu a constructor.  I can't find anything
searching for sub menus on the ContextMenu.  I've seen a built-in
sub-menu for Quality with menu-items underneath as Low, Medium, and
High but can't replicate this.  

I've also tried the following but no luck...

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

mx:Script

![CDATA[
import mx.controls.*;


// Method to create an Array-based menu. 
private function createAndShow():void {
var mainMenu:ContextMenu = new ContextMenu();
mainMenu.hideBuiltInItems();

var item:ContextMenuItem = new ContextMenuItem(Item);
mainMenu.customItems.push(item); 

var myMenu:Menu = Menu.createMenu(null, menuData, true);
mainMenu.customItems.push(myMenu);

Application.application.contextMenu = mainMenu;
}

// The Array data provider
[Bindable] 
public var menuData:Array = [{label: MenuItem A, children: [
{label: SubMenuItem A-1, enabled: false},
{label: SubMenuItem A-2, type: normal} 
]}
];

]]
/mx:Script

!-- Button control to create and open the menu. --
mx:Button x=300 y=10 label=Change Menu
click=createAndShow();/
/mx:Application



Any suggestions?





RE: [flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?

2007-03-09 Thread Gordon Smith
Actually, preventDefault() does NOT prevent other listeners from executing; 
this is what stopPropagation() and stopImmediatePropagation() do.
 
preventDefault() simply sets the flag returned by isDefaultPrevented() to be 
true. However, some event-dispatching code in the Player or the framework is 
written like this (and you can do the same thing in your apps):
 
dispatchEvent(event);
if (!event.isDefaultPrevented())
doSomethingByDefault();
 
So calling preventDefault() prevents doSomethingByDefault() from being 
executed. But doSomethingByDefault() is not a listener.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Danko 
Kozar
Sent: Friday, March 09, 2007 1:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Are other developers hesitant to extend existing 
classes in Flex?



Jason, this was an eye-opener!
Till now I didn't realize that an event listener can cancel another 
listeners. But the preventDefault() method of the Event class does 
exactly that.

This is the way I should go with a PagableGrid.

Thanks!

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

 As a follow up to the last response, take note of the
 event.preventDefault(); in the handler for HEADER_RELEASE, and the 
fact that
 I don't do a refresh on the ListCollectionView after adding the
 
 sort to it.
 
 jason
 
 
 
 
 
 -Message d'origine-
 De : flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]De la
 part de Danko Kozar
 Envoyé : jeudi 8 mars 2007 11:48
 À : flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Objet : [flexcoders] Re: Are other developers hesitant to extend 
existing
 classes in Flex?
 
 
 Private methods and variables drive me nuts..
 
 For example, I'd like to make a simple DataGrid change: make 
headers
 clickable without refreshing the grid (just toggle a sort icon).
 (I need this behaviour because I'd like to have a paging DataGrid
 which only propagates the sort column/direction info to a record-
 feching routine on a server)
 
 So, I try to remove a collection.refresh(); line from
 the sortByColumn() function, but I can't - because it's 
private.
 
 Then, I try to make a new function called sortByColumn2 
(that's a
 copy of the first one, but without refresh stuff) and alter
 the headerReleaseHandler which calls it, but I can't - cause 
it's
 private.
 
 And finally, I am trying to add the following code to the
 constructor (yes, the constructor is public, huh.. :-))
 to neutralize the event listener:
 
 removeEventListener(DataGridEvent.HEADER_RELEASE,
 headerReleaseHandler,
 false, EventPriority.DEFAULT_HANDLER);
 
 ... but I can't cause headerReleaseHandler is private and 
can't be
 seen from a subclass!
 
 And then, I give up.. :-)
 
 My conclussion is that Flex framework classes are not extensible
 enough and I really can't see a reason.
 Copying the whole DataGrid class and it's renderer, style, etc.
 classes isn't a solution, we all agree. If not other reason - 
it's
 not the OOP way.
 
 So, I'm tempted to go to a C:\Program Files\Adobe\Flex Builder 2
 \Flex SDK 2\frameworks\source\mx\ folder and make a global 
search
 and replace on all files in this folder. You guess...
 replace private with protected... :-)
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 Dana Gutride dgutride@
 wrote:
 
  Recently on this list, somebody said that the Flex framework 
team
 has been
  surprised at the resistance many developers have to subclassing
 and they'd
  like to understand it better. I'd like to put my 2 cents into 
this
  discussion because maybe we can come up with some good answers.
 
  I think the ability to extend the existing framework is 
fabulous,
 but I find
  that I am hesitant to subclass or extend the existing classes.
 Recently, I
  spent several days trying to override the placeSortArrow 
function
 on the
  datagrid. I ended up ditching my code because there were so 
many
 private
  variables used by the existing placeSortArrow() function that I
 would need
  to rewrite most of the datagrid.as file.
 
  I've bought books and searched online for answers, but I 
haven't
 found
  anything satisfactory yet. Maybe if there were more resources
 (even if we
  had to pay for them), we would find more developers extending 
the
 flex
  framework.
 
  Dana
 




 


Re: [flexcoders] FDS services-config for CFC's

2007-03-09 Thread Darren Houle
Okay, but... install it how, where?  Not using the integrated JRun server, 
right, because CF is already running on an app server, right?  So where do 
you unpack the fds war file?  Into which directory under the CF Enterprise 
install?

Darren


From: João Fernandes [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FDS services-config for CFC's
Date: Fri, 09 Mar 2007 16:06:06 +

Data management option in the CF admin is just to allow CF to be
contacted by a FDS server. No FDS is integrated with CF.

Install FDS express and look at those resources/config folder that I
mentioned before. There is everything you'll need.

João Fernandes





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







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
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] VideoDisplay volume problem

2007-03-09 Thread David Gassner
Using the VideoDisplay component, it seems that setting the volume 
property doesn't have any effect.  For instance:

mx:VideoDisplay id=video volume=0/

results in playing the video, but the sound is still there.  I've also 
tried setting the volume to 0 just before playing, and even calling 
SoundMixer.stopAll(), but I can't seem to turn the sound off.

Any ideas?

Thanks,
David



[flexcoders] Re: checkbox in datagrid with vertical slider bar

2007-03-09 Thread ben.clinkinbeard
http://www.returnundefined.com/2006/10/item-renderers-in-datagrids-a-primer-for-predictable-behavior/
http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory/

HTH,
Ben


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

  
 
  
 
 If I check a box in a row other than the top row, and then slide the
 vertical scroll bar down so that the rows go off the top, and then slide
 it back up so that the rows that went off the top come back, rows that I
 did not check now show up as checked.  Does anyone know if this is a
 Flex bug or is it something I'm doing wrong?
 
  
 
 mx:DataGridColumn id=applyCol 
 
  headerText=#13;Apply 
 
  dataField=apply
 
  itemRenderer=mx.controls.CheckBox
 
  rendererIsEditor=true
 
  textAlign=center
 
  editable=true
 
  editorDataField=selected
 
  width=40
 
  /





[flexcoders] gotoAndStop from flex

2007-03-09 Thread Maikel Finck
Yo,

I'm trying to load a SWF build by others and start it from my flex code.

The files have to be started using gotoAndStop('flag'), but, how I
do to call it?

The SWF load fine, if don't need to be started by this way.

Thank you.



[flexcoders] VBox, constraint based layout not clipping content

2007-03-09 Thread scott_flex

Any particualar reason why a Vbox won't correctly clip content and show 
scrollbars when the object is using constraint based layout positioning?

I'm adding up to 50 child objects to the vbox and want the scrollbars 
to appear so the user can scroll to see them all.

If i set the height, and width everything works as expected, so i've 
manually tapped into the resize event on my parent canvas and manually 
set the height and width to get the effect of a constraint based 
layout.  Doesn't seem like i should have to do this.

If i used the top,left,right,bottom properties, my VBox just expands 
its size to include all child objects added... which then forces the 
scroll bars on it's parent container, not what i want.

Maybe i'm doing something wrong...



RE: [flexcoders] gotoAndStop from flex

2007-03-09 Thread Alex Harui
If you used SWFLoader, the .content is the root of the SWF.  If the SWF
was built for Player 9 using CS3, then you can talk to it, otherwise you
can't.  Player 8 and older swfs are essentially walled-off.  Others have
built wrapper SWFs for Player 8 that will listen for local connections
to/from Flex to then instruct the wrapper to call gotoandStop on the
actual SWF.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Maikel Finck
Sent: Friday, March 09, 2007 10:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] gotoAndStop from flex

 

Yo,

I'm trying to load a SWF build by others and start it from my flex code.

The files have to be started using gotoAndStop('flag'), but, how I
do to call it?

The SWF load fine, if don't need to be started by this way.

Thank you.

 



Re: [flexcoders] Re: DB access in Apollo

2007-03-09 Thread dorkie dork from dorktown

It is a must have IMO. I thought it was already going to be built in.

Lets say you have a client that says we don't have database support but you
can use files, XML or shared objects. How would that limit your application?
If you needed a database you would have to go online to get it defeating the
purpose of Apollo's goal of desktop development.

There are already apps in development that would use a database:

- Java Docs Generator (in dev) - documents your code, stores and updates
java docs in db
- Project management software (in dev) - keeps track of tasks, projects
- Photo management software - accesses the filesystem like Adobe Bridge,
search and sort
- Music software (already created by an Adobe engineer) - keep track and
sort mp3's (itunes, windows media player, winamp, etc use their own built in
db)
- DVD collection - keeps track of all your dvds or cds
- CD demos - pass out demos on cd of your application may need db access

Really, think of all the applications on your computer that use a database.
Apollo is a desktop application builder.

Someone may say you say you can use xml but when you add anymore than a few
collections of data, you start to rebuilt a database and try and make xml do
what a database is supposed to. It is a sloppy hack.

Here's another thing. You come out with Apollo and it doesn't have DB
support. You get Apollo adopted after a year at 50% penetration but the big
huge apps in development out there need db support. So these can't come out
yet. They end up waiting until Apollo 2 is here but also has more then 50%
adoption rate. Now its 2 years later. People are frustrated. You could do
that or you could push back your release date a month or two now. I would
rather wait. I don't care which database you choose as long as there is some
kind of database in this release.

my 2 cents,
dorkie rioting in the streets dork from dorktown

On 3/9/07, Eric Guesdon [EMAIL PROTECTED] wrote:


  I mean nothing, i just asked every one if something like SharedObject
(of course more robust and larger) should answer to the database subject.



What do you think about that… from my point of view a system like
sharedobject should be enough

I don't know if you downloaded New York Times application (unfortunately
based on wpf) but they synchronized all their news each time you start the
application.

Of course it represents a large quantity of data but I'm not sure they use
a local database for that



Let me know



Regards



Eric


 --

*De :* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *De
la part de* Merrill, Jason
*Envoy� :* vendredi 9 mars 2007 17:54
*� :* flexcoders@yahoogroups.com
*Objet :* RE: [flexcoders] Re: DB access in Apollo



SharedObject.

You mean those little tiny 128k or whatever Shared Objects like from the
Flash player or do you mean Apollo will have a more robust  larger
Shared Object?

Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team





[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread Tim Hoff

Unless you explicitly set the height and width of a container, it will
automatically measure to include all of it's children; with no scroll
bars.   This is a good thing in some situations.  If you want the scroll
bars to show up, set the dimensions.   clipContent is an entirely
different animal; and provides interesting reading in the help docs.

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office http://www.cynergysystems.comoffice/ : 866-CYNERGY

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


 Any particualar reason why a Vbox won't correctly clip content and
show
 scrollbars when the object is using constraint based layout
positioning?

 I'm adding up to 50 child objects to the vbox and want the scrollbars
 to appear so the user can scroll to see them all.

 If i set the height, and width everything works as expected, so i've
 manually tapped into the resize event on my parent canvas and manually
 set the height and width to get the effect of a constraint based
 layout. Doesn't seem like i should have to do this.

 If i used the top,left,right,bottom properties, my VBox just expands
 its size to include all child objects added... which then forces the
 scroll bars on it's parent container, not what i want.

 Maybe i'm doing something wrong...





RE: [flexcoders] Using an embedded image at runtime, Please help.

2007-03-09 Thread Stephen Gilson
There is an entire chapter in the docs on this topic that might help:
 
http://livedocs.adobe.com/flex/201/html/embed_082_1.html
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Friday, March 09, 2007 12:39 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using an embedded image at runtime, Please
help.



Many thanks for the reply but I am still having some problems.

I have this code:

[Embed(source=../assets/mixi.swf)]

[Bindable]

 private var mixiLogo:Class;

at the top of my class and this code:

private function printMovies(e:Event):void

{

var mixiLogo:Image = new Image();

mixiLogo.load({this.mixiLogo});



this.addChild(mixiLogo);

}

That fires when I press a button but I am still getting a broken image.
When I try to load the image into a panel that I am building to print
nothing appears.

Is this code correct?

Thanks

Giles Roadnight

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: 09 March 2007 16:43
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Using an embedded image at runtime, Please
help.

@Embed is a compiler directive so you can't put it in quotes.

You have to declare a variable

[Embed('../assets/mixipix.swf');

Var mixipix:Class

And load that



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Friday, March 09, 2007 7:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using an embedded image at runtime, Please help.

Hi

I am still trying to get this print job done. I have got all of the text
working fine but I can't get the logo to appear at the top, I hope
someone can help.

I have this code:

private function printMovies(e:Event):void

{

var mixiLogo:Image = new Image();

mixiLogo.load(@Embed('../assets/mixipix.swf'));

this.addChild(mixiLogo);

}

But I just get a broken image appearing when I fire the function.

With this version of the function:

private function printMovies(e:Event):void

{



this.printJob = new FlexPrintJob();



if(this.printJob.start()){



this.printPanel = new Panel();

var txtApprovedList:Text = new Text();

var mixLogo:Image = new Image();



mixLogo.load(assets/logo.swf);



 
txtApprovedList.setStyle(color,0x00);

txtApprovedList.width =
printJob.pageWidth;

txtApprovedList.text =
this.txtMovieIDs.text;



this.printPanel.addChild(mixLogo);

 
this.printPanel.addChild(txtApprovedList);

 
this.printPanel.setStyle(borderStyle,none);



this.addChild(this.printPanel);



 
printPanel.addEventListener(FlexEvent.CREATION_COMPLETE,this.doPrintCanv
as);

}

}

I get the panel and text appearing but no iamge at all, not even a
broken one.

I hope someone can help.

Giles Roadnight 

 


Re: [flexcoders] gotoAndStop from flex

2007-03-09 Thread Igor Costa

Maikel

I posted a solution about your problem into the Flex cookbook site.

See it here how you could do that.

http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailspostId=3041productId=2


Regards.


Igor Costa
www.igorcosta.org


On 09 Mar 2007 11:26:42 -0800, Maikel Finck [EMAIL PROTECTED] wrote:


  Yo,

I'm trying to load a SWF build by others and start it from my flex code.

The files have to be started using gotoAndStop('flag'), but, how I
do to call it?

The SWF load fine, if don't need to be started by this way.

Thank you.

 





--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta


Re: [flexcoders] FDS services-config for CFC's

2007-03-09 Thread João Fernandes

Darren,

if you use CF Enterprise, create a new instance, stop the instance, delete
the cfusion-ear.
Install FDS as j2ee app, then uncompress the flex.war file into
cfusion-install-dir/servers/createdInstance then start the instance.

You also can install FDS express with integrated Jrun, there is no problem
with that.

João Fernandes


On 09 Mar 2007 10:51:35 -0800, Darren Houle [EMAIL PROTECTED] wrote:


Okay, but... install it how, where?  Not using the integrated JRun server,
right, because CF is already running on an app server, right?  So where do
you unpack the fds war file?  Into which directory under the CF Enterprise
install?

Darren


From: João Fernandes [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FDS services-config for CFC's
Date: Fri, 09 Mar 2007 16:06:06 +

Data management option in the CF admin is just to allow CF to be
contacted by a FDS server. No FDS is integrated with CF.

Install FDS express and look at those resources/config folder that I
mentioned before. There is everything you'll need.

João Fernandes





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







--

João Fernandes


[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread scott_flex

Thanks, 

I do agree that the vbox automatically grows based on it's content is 
a good thing sometimes, i am making use of that default behavior for 
sure.

However, the constraint based layout is designed so i don't have to 
manually code changes for the width and height when the parent object 
is resized... so I would have never expected this behavior nor does 
it make sense (IMHO).

I'll just continue on with what i've done, it's not that complicated, 
just more work for me :).

--Scott


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

 
 Unless you explicitly set the height and width of a container, it 
will
 automatically measure to include all of it's children; with no 
scroll
 bars.   This is a good thing in some situations.  If you want the 
scroll
 bars to show up, set the dimensions.   clipContent is an entirely
 different animal; and provides interesting reading in the help docs.
 
 -TH
 __
 
 Tim Hoff
 Cynergy Systems, Inc.
 http://www.cynergysystems.com
 Office http://www.cynergysystems.comoffice/ : 866-CYNERGY
 
 --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
 
 
  Any particualar reason why a Vbox won't correctly clip content and
 show
  scrollbars when the object is using constraint based layout
 positioning?
 
  I'm adding up to 50 child objects to the vbox and want the 
scrollbars
  to appear so the user can scroll to see them all.
 
  If i set the height, and width everything works as expected, so 
i've
  manually tapped into the resize event on my parent canvas and 
manually
  set the height and width to get the effect of a constraint based
  layout. Doesn't seem like i should have to do this.
 
  If i used the top,left,right,bottom properties, my VBox just 
expands
  its size to include all child objects added... which then forces 
the
  scroll bars on it's parent container, not what i want.
 
  Maybe i'm doing something wrong...
 





[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread Tim Hoff
Well, just one more point: constraints (similar to padding) have 
nothing to do with the dimensions of a container.  They simply 
provide a mechanism for positioning. While using top, bottom, left 
and right can cause resizing, relative to the parent, they are more 
or less just a tool for placement.

-TH

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

 
 Thanks, 
 
 I do agree that the vbox automatically grows based on it's content 
is 
 a good thing sometimes, i am making use of that default behavior 
for 
 sure.
 
 However, the constraint based layout is designed so i don't have 
to 
 manually code changes for the width and height when the parent 
object 
 is resized... so I would have never expected this behavior nor 
does 
 it make sense (IMHO).
 
 I'll just continue on with what i've done, it's not that 
complicated, 
 just more work for me :).
 
 --Scott
 
 
 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
  
  Unless you explicitly set the height and width of a container, 
it 
 will
  automatically measure to include all of it's children; with no 
 scroll
  bars.   This is a good thing in some situations.  If you want 
the 
 scroll
  bars to show up, set the dimensions.   clipContent is an entirely
  different animal; and provides interesting reading in the help 
docs.
  
  -TH
  __
  
  Tim Hoff
  Cynergy Systems, Inc.
  http://www.cynergysystems.com
  Office http://www.cynergysystems.comoffice/ : 866-CYNERGY
  
  --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
  
  
   Any particualar reason why a Vbox won't correctly clip content 
and
  show
   scrollbars when the object is using constraint based layout
  positioning?
  
   I'm adding up to 50 child objects to the vbox and want the 
 scrollbars
   to appear so the user can scroll to see them all.
  
   If i set the height, and width everything works as expected, 
so 
 i've
   manually tapped into the resize event on my parent canvas and 
 manually
   set the height and width to get the effect of a constraint 
based
   layout. Doesn't seem like i should have to do this.
  
   If i used the top,left,right,bottom properties, my VBox just 
 expands
   its size to include all child objects added... which then 
forces 
 the
   scroll bars on it's parent container, not what i want.
  
   Maybe i'm doing something wrong...
  
 





[flexcoders] .NET Webservices

2007-03-09 Thread Brian Holmes
Does anyone have any examples they'd be willing to share or point me to
of connectin to .NET webservices with  or without soap headers,
preferably both.
It'll be greatly appreciated.
 
Thanks,
 
b..


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


Re: [flexcoders] Re: How to submit a bug to Adobe ? - 60 inch display is to wide

2007-03-09 Thread Clint Modien

An obvious solution would be to lower the resolution on the monitors and
resize all your flex components accordingly.



On 3/9/07, oneproofdk [EMAIL PROTECTED] wrote:


  OK so I went on to see what the limits are. Tracking mouseX I can see
that the Panel background stop at 4079, also that's where Flash stop
tracking the mouseX !!??
The weird thing is that the Tile DOES extend beyond this point as per
my screencap.

Wonder what the max height is - we are currently looking into
attaching 4 30 cinema displays to a Powermac Pro, so it will be a
resolution of 5120 by 3200 to display this program.

Does anyone have an idea how to overcome this ? Could I extend the
Panel - make my own !? Anyone ?

BTW - in the Flex documentation it states that the maxwidth of a panel
is 1 px ??

http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html#maxWidth

Or am I wrong here ?

Thanks for any help or ideas.

Thanks,
Mark

 



[flexcoders] Re: .NET Webservices

2007-03-09 Thread scott_flex

Here's how i've been calling my web services right or wrong...

private var ws:WebService = new WebService();

// handle any error for this web service instance
ws.addEventListener(fault, faultHandler); 

ws.loadWSDL(http://mywebsite.com/service.asmx?WSDL);

// MyFunction just takes one string parameter and returns a string
ws.MyFunction.addEventListener(result, serviceResult);

// actually calls the function...
ws.MyFunction(Hello Web Service);

private function serviceResult(event:ResultEvent):void 
{
// shows the string return from web services, 
// cast to whatever variable type you need to.
Alert.show(event.result.toString());
}

public function faultHandler(event:FaultEvent):void 
{
Alert.show(event.toString(), WebService Error);
{



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

 Does anyone have any examples they'd be willing to share or point 
me to
 of connectin to .NET webservices with  or without soap headers,
 preferably both.
 It'll be greatly appreciated.
  
 Thanks,
  
 b..
 
 
 ***
 The information in this e-mail is confidential and intended solely 
for the individual or entity to whom it is addressed.  If you have 
received this e-mail in error please notify the sender by return e-
mail delete this e-mail and refrain from any disclosure or action 
based on the information.
 ***





RE: [flexcoders] Re: .NET Webservices

2007-03-09 Thread Brian Holmes
Thanks Scott,
 I guess the stuff I have to call is just a lot more complicated and I
haven't quite gotten the format down. Your way was the way I've been
calling other web services. I also need to attach soap headers to every
request. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of scott_flex
Sent: Friday, March 09, 2007 2:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: .NET Webservices


Here's how i've been calling my web services right or wrong...

private var ws:WebService = new WebService();

// handle any error for this web service instance
ws.addEventListener(fault, faultHandler); 

ws.loadWSDL(http://mywebsite.com/service.asmx?WSDL);

// MyFunction just takes one string parameter and returns a string
ws.MyFunction.addEventListener(result, serviceResult);

// actually calls the function...
ws.MyFunction(Hello Web Service);

private function serviceResult(event:ResultEvent):void
{
// shows the string return from web services, 
// cast to whatever variable type you need to.
Alert.show(event.result.toString());
}

public function faultHandler(event:FaultEvent):void
{
Alert.show(event.toString(), WebService Error); {



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

 Does anyone have any examples they'd be willing to share or point 
me to
 of connectin to .NET webservices with  or without soap headers,
 preferably both.
 It'll be greatly appreciated.
  
 Thanks,
  
 b..
 
 
 ***
 The information in this e-mail is confidential and intended solely 
for the individual or entity to whom it is addressed.  If you have 
received this e-mail in error please notify the sender by return e-
mail delete this e-mail and refrain from any disclosure or action 
based on the information.
 ***






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





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


[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread scott_flex

Yes! It took me a few seconds to figure that out after you explained 
it, my brain is fragile...

When setting just one of the constraints, (left or right) or (top or 
bottom) it makes perfect sense... but setting both (top and bottom) 
or (left and right), i just figured it manually set the width or 
height behind the scenes.

I'm probably confusing constraint based layout with the 
term Docking in .Net windows development.



--Scott

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

 Well, just one more point: constraints (similar to padding) have 
 nothing to do with the dimensions of a container.  They simply 
 provide a mechanism for positioning. While using top, bottom, left 
 and right can cause resizing, relative to the parent, they are more 
 or less just a tool for placement.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
 
  
  Thanks, 
  
  I do agree that the vbox automatically grows based on it's 
content 
 is 
  a good thing sometimes, i am making use of that default behavior 
 for 
  sure.
  
  However, the constraint based layout is designed so i don't have 
 to 
  manually code changes for the width and height when the parent 
 object 
  is resized... so I would have never expected this behavior nor 
 does 
  it make sense (IMHO).
  
  I'll just continue on with what i've done, it's not that 
 complicated, 
  just more work for me :).
  
  --Scott
  
  
  --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
  
   
   Unless you explicitly set the height and width of a container, 
 it 
  will
   automatically measure to include all of it's children; with no 
  scroll
   bars.   This is a good thing in some situations.  If you want 
 the 
  scroll
   bars to show up, set the dimensions.   clipContent is an 
entirely
   different animal; and provides interesting reading in the help 
 docs.
   
   -TH
   __
   
   Tim Hoff
   Cynergy Systems, Inc.
   http://www.cynergysystems.com
   Office http://www.cynergysystems.comoffice/ : 866-CYNERGY
   
   --- In flexcoders@yahoogroups.com, scott_flex skrause@ 
wrote:
   
   
Any particualar reason why a Vbox won't correctly clip 
content 
 and
   show
scrollbars when the object is using constraint based layout
   positioning?
   
I'm adding up to 50 child objects to the vbox and want the 
  scrollbars
to appear so the user can scroll to see them all.
   
If i set the height, and width everything works as expected, 
 so 
  i've
manually tapped into the resize event on my parent canvas and 
  manually
set the height and width to get the effect of a constraint 
 based
layout. Doesn't seem like i should have to do this.
   
If i used the top,left,right,bottom properties, my VBox just 
  expands
its size to include all child objects added... which then 
 forces 
  the
scroll bars on it's parent container, not what i want.
   
Maybe i'm doing something wrong...
   
  
 





RE: [flexcoders] Re: .NET Webservices

2007-03-09 Thread Andrew Trice
Attaching headers to web service requests is pretty easy.  I have an
write-up here that you can check out (second half of the blog post):

 

http://www.cynergysystems.com/blogs/page/andrewtrice?entry=census_mashup
s_using_strikeiron_web

 

...and source code here:

http://www.cynergysystems.com/blogs/blogs/andrew.trice/strikeiron/srcvie
w/index.html 

 

I instantiated a webservice in mxml, and attached the headers onto it on
the creationComplete event of the application.   Once the headers have
been attached to your web service instance, you can make as many calls
as you want without having to reattach any headers per service call.

 

-Andy

 

_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Holmes
Sent: Friday, March 09, 2007 4:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: .NET Webservices

 

Thanks Scott,
I guess the stuff I have to call is just a lot more complicated and I
haven't quite gotten the format down. Your way was the way I've been
calling other web services. I also need to attach soap headers to every
request. 

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
Behalf Of scott_flex
Sent: Friday, March 09, 2007 2:04 PM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Re: .NET Webservices

Here's how i've been calling my web services right or wrong...

private var ws:WebService = new WebService();

// handle any error for this web service instance
ws.addEventListener(fault, faultHandler); 

ws.loadWSDL(http://mywebsite.com/service.asmx?WSDL
http://mywebsite.com/service.asmx?WSDL );

// MyFunction just takes one string parameter and returns a string
ws.MyFunction.addEventListener(result, serviceResult);

// actually calls the function...
ws.MyFunction(Hello Web Service);

private function serviceResult(event:ResultEvent):void
{
// shows the string return from web services, 
// cast to whatever variable type you need to.
Alert.show(event.result.toString());
}

public function faultHandler(event:FaultEvent):void
{
Alert.show(event.toString(), WebService Error); {

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

 Does anyone have any examples they'd be willing to share or point 
me to
 of connectin to .NET webservices with or without soap headers,
 preferably both.
 It'll be greatly appreciated.
 
 Thanks,
 
 b..
 
 
 ***
 The information in this e-mail is confidential and intended solely 
for the individual or entity to whom it is addressed. If you have 
received this e-mail in error please notify the sender by return e-
mail delete this e-mail and refrain from any disclosure or action 
based on the information.
 ***


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

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

 



RE: [flexcoders] Re: checkbox in datagrid with vertical slider bar

2007-03-09 Thread Lisa Nelson
Definitely helpful.  Thanks.  I still haven't found my way out of the
woods yet though.  I've discovered that when I slide the bar, an
itemClick event is fired.  

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, March 09, 2007 11:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: checkbox in datagrid with vertical slider bar

 

http://www.returnundefined.com/2006/10/item-renderers-in-datagrids-a-pri
mer-for-predictable-behavior/
http://www.returnundefined.com/2006/10/item-renderers-in-datagrids-a-pr
imer-for-predictable-behavior/ 
http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers
-with-classfactory/
http://www.returnundefined.com/2006/11/creating-truly-reusable-renderer
s-with-classfactory/ 

HTH,
Ben

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

 
 
 
 
 If I check a box in a row other than the top row, and then slide the
 vertical scroll bar down so that the rows go off the top, and then
slide
 it back up so that the rows that went off the top come back, rows that
I
 did not check now show up as checked. Does anyone know if this is a
 Flex bug or is it something I'm doing wrong?
 
 
 
 mx:DataGridColumn id=applyCol 
 
 headerText=#13;Apply 
 
 dataField=apply
 
 itemRenderer=mx.controls.CheckBox
 
 rendererIsEditor=true
 
 textAlign=center
 
 editable=true
 
 editorDataField=selected
 
 width=40
 
 /


 



[flexcoders] Security error accessing url

2007-03-09 Thread rzilist
How to get around this error? I've written small Flex application to 
retrieve stock info in exchange for  company symbol. I've used 
Eclipse with Flex plugin. Inside the app, I'm calling webservice on 
quote.yahoo.com website.  I can load the html page which references 
the swf file (by either running it from within Eclipse, or by 
opening it in both IE and Firefox). This works fine, and I get some 
stock data back. However, if I try serving the page from one of my 
local servers, or even copying it (along with other supporting 
files) to other location on my hard drive, loading the same page 
results in an Security error accessing url from my Adobe Flash 
Player 9. I've even tried to use a straight HTTP post instead of a 
webservice call, but to no avail.

Now, I know that in order to access the data on the domain other 
than the one my app is running on, Adobe Flash Player requires 
crossdomain.xml file to be on the data server root. Yahoo indeed 
hosts this file at http://quote.yahoo.com/crossdomain.xml, but it 
only has a few entries. I simply want to read company stock info 
from publicly exposed service, but I see no way of adding the domain 
name to their crossdomain file each time someone wants to read a 
stock info.

Any help is appreciated.

Roman



[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread Tim Hoff
Yep, it's a different mind set, but very cool and flexible.

Cheers,
-TH

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

 
 Yes! It took me a few seconds to figure that out after you 
explained 
 it, my brain is fragile...
 
 When setting just one of the constraints, (left or right) or (top 
or 
 bottom) it makes perfect sense... but setting both (top and 
bottom) 
 or (left and right), i just figured it manually set the width or 
 height behind the scenes.
 
 I'm probably confusing constraint based layout with the 
 term Docking in .Net windows development.
 
 
 
 --Scott
 
 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
  Well, just one more point: constraints (similar to padding) have 
  nothing to do with the dimensions of a container.  They simply 
  provide a mechanism for positioning. While using top, bottom, 
left 
  and right can cause resizing, relative to the parent, they are 
more 
  or less just a tool for placement.
  
  -TH
  
  --- In flexcoders@yahoogroups.com, scott_flex skrause@ wrote:
  
   
   Thanks, 
   
   I do agree that the vbox automatically grows based on it's 
 content 
  is 
   a good thing sometimes, i am making use of that default 
behavior 
  for 
   sure.
   
   However, the constraint based layout is designed so i don't 
have 
  to 
   manually code changes for the width and height when the parent 
  object 
   is resized... so I would have never expected this behavior nor 
  does 
   it make sense (IMHO).
   
   I'll just continue on with what i've done, it's not that 
  complicated, 
   just more work for me :).
   
   --Scott
   
   
   --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
   

Unless you explicitly set the height and width of a 
container, 
  it 
   will
automatically measure to include all of it's children; with 
no 
   scroll
bars.   This is a good thing in some situations.  If you 
want 
  the 
   scroll
bars to show up, set the dimensions.   clipContent is an 
 entirely
different animal; and provides interesting reading in the 
help 
  docs.

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office http://www.cynergysystems.comoffice/ : 866-CYNERGY

--- In flexcoders@yahoogroups.com, scott_flex skrause@ 
 wrote:


 Any particualar reason why a Vbox won't correctly clip 
 content 
  and
show
 scrollbars when the object is using constraint based layout
positioning?

 I'm adding up to 50 child objects to the vbox and want the 
   scrollbars
 to appear so the user can scroll to see them all.

 If i set the height, and width everything works as 
expected, 
  so 
   i've
 manually tapped into the resize event on my parent canvas 
and 
   manually
 set the height and width to get the effect of a constraint 
  based
 layout. Doesn't seem like i should have to do this.

 If i used the top,left,right,bottom properties, my VBox 
just 
   expands
 its size to include all child objects added... which then 
  forces 
   the
 scroll bars on it's parent container, not what i want.

 Maybe i'm doing something wrong...

   
  
 





[flexcoders] Re: Security error accessing url

2007-03-09 Thread Paul DeCoursey
Maybe I've been misinformed but doesn't the cross domain file need to
be one the server that serves the swf file?


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

 How to get around this error? I've written small Flex application to 
 retrieve stock info in exchange for  company symbol. I've used 
 Eclipse with Flex plugin. Inside the app, I'm calling webservice on 
 quote.yahoo.com website.  I can load the html page which references 
 the swf file (by either running it from within Eclipse, or by 
 opening it in both IE and Firefox). This works fine, and I get some 
 stock data back. However, if I try serving the page from one of my 
 local servers, or even copying it (along with other supporting 
 files) to other location on my hard drive, loading the same page 
 results in an Security error accessing url from my Adobe Flash 
 Player 9. I've even tried to use a straight HTTP post instead of a 
 webservice call, but to no avail.
 
 Now, I know that in order to access the data on the domain other 
 than the one my app is running on, Adobe Flash Player requires 
 crossdomain.xml file to be on the data server root. Yahoo indeed 
 hosts this file at http://quote.yahoo.com/crossdomain.xml, but it 
 only has a few entries. I simply want to read company stock info 
 from publicly exposed service, but I see no way of adding the domain 
 name to their crossdomain file each time someone wants to read a 
 stock info.
 
 Any help is appreciated.
 
 Roman





  1   2   >