[flexcoders] Setting fontWeight on a DataGrid Row

2005-08-24 Thread Tim Blair
Hello,

Is there a nice easy way to set the font weight of each cell in a
DataGrid *row* (not column)?  I can set (e.g.) the backgroundColor by
using something like:

dg.setPropertiesAt(1, {backgroundColor:0xFF})

But setting fontWeight has no effect.  I could loop through each cell
individually within the row an set the fontWeight on that, but this
seems like a long-winded way of doing it.

Any suggestions?

Thanks,

Tim.

 
--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hnpdflp/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124900958/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!.
~-> 

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

<*> 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] DataGrid Editable Header Renderer

2005-07-26 Thread Tim Blair
Hello,

I'm attempting to create a custom headerRenderer for a DataGrid which
will allow the user to edit the column name (headerText) in exactly the
same way as the standard editable DataGrid cellRenderer.

Before I spend any more time on it, does anyone have an example of such
a thing hanging around, or can point me in the right direction?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


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

<*> 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] Styling individual tabs in a TabNavigator

2005-06-07 Thread Tim Blair
Thanks Abdul,

> But I can think of another way, which is not a good if you 
> have lots of tabs...However, it might give you some idea. I 
> am using TabBar with ViewStack, instead of TabNavigator. That 
> ways I can get the reference of individual tabs.

I'd already thought about doing something like this but wasn't sure
about spending the time doing it.  But your suggestion gave me an idea:
instead of using a separate TabBar, I have extended the TabNavigator and
provided public dynamic variable access to the private "tabBar" instance
held within the TabNavigator.  Simple, slightly hacky, but it works
nicely.  :)

Cheers,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Styling individual tabs in a TabNavigator

2005-06-07 Thread Tim Blair
Hello,

Is it possible to style the colours of individual tabs in a tab
navigator?  For example, in the following code I'm attempting create a
TabNavigator with three tabs, each of a different colour, but having no
joy...  I can style all tabs by using the Tab{} declaration, but I'm
looking for a way to style each tab seperatly.


http://www.macromedia.com/2003/mxml";>
  
.tab1 {
  fill-colors: #99cc00, #ccff66;
  selected-fill-colors: #00cc00, #66ff66;
}
.tab2 {
  fill-colors: #FFF04B, #CC;
  selected-fill-colors: #E9C414, #CC;
}
.tab3 {
  fill-colors: #8AC7D2, #CBEEF1;
  selected-fill-colors: #00A3B2, #CBEEF1;
}
  
  



  


Any suggestions/solutions?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Auto-scroll on TileList

2005-06-07 Thread Tim Blair

> > How can I get [the TileList] to scroll to the position that
> > the new item has been added?
> 
> Set the 'vPosition' to the index to which you want to scroll 
> to (the one where you added the new item).

Excellent, thanks Manish!  I knew I had to be missing something
simple...  :)

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Auto-scroll on TileList

2005-06-06 Thread Tim Blair

Hello,

I have a TileList component which I add items to via a drag/drop
operation; this is all working fine.  The problem I'm having is that
when the item has been dropped onto the TileList, it appears the
resetScrollPositions() function is automatically called and the TileList
automatically scrolls back to the beginning.  How can I get this to
scroll to the position that the new item has been added?

Thanks,

Tim.


--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Resizing SWFs in mx:Loader

2005-05-27 Thread Tim Blair
Hello,

I'm having trouble when loading SWFs in to a Flex app using .
Basically, the SWF isn't being resized to the Loader, no matter what I
do.  Simple test case:


http://www.macromedia.com/2003/mxml";>
  
http://localhost/europe.swf";
  id="preview"
  scaleContent="true"
  maintainAspectRatio="true"
  width="100%" height="100%" />
  


The SWF I'm trying to load here can be seen here:
http://kryten.rawnet.com/flex/europe.swf
And what I get with the above code is here:
http://kryten.rawnet.com/flex/europe.jpg

I've been pointed in the direction of the following message, but this
hasn't helped either:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg06839.html

Any suggestions?

Cheers,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Serious corruption in Flex-generated SWF

2005-05-18 Thread Tim Blair

> If this is not a compile-time problem but rather a runtime 
> problem, as it is for other people in the thread, then this 
> setting won't help and unfortunately I don't know the 
> solution.  -Brian

Thanks Brian, but unfortunately it's a runtime issue.

The problem only seems to occur on components that have not already been
created, so I've added a couple of creationPolicy="all" parameters to
the containers which seems to have aleviated the issue for now.

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Disappearing images in custom cell renderer

2005-05-18 Thread Tim Blair
Manish,

> What happens if you set 'source' directly instead of using 
> binding?  Try it.

Unfortunately, because of the way the data is fetched from the server,
the data required (i.e. the thumbnail URL) may not be back before the
component is initialised, hence the binding.  But your suggestion did
point me in the direction of a fix...

It seems that there was a problem initially setting the source as
effectively a non-existant image and then overwriting that when the
"proper" URL was actually retrieved.  What I ended up doing was not
initially specifying a source for the  tag, but then when the
appropriate asset data had been retrieved from the server, using an
explicit img.load() call to load the thumbnail.

So now the image source gets (re)set when and only when the effective
"source" is both a non-empty string and is different to the current
source.  Seems to be doing the job!

Cheers,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Image not being resized in mx:Image tag

2005-05-17 Thread Tim Blair

> See if this helps:
> http://www.mail-archive.com/flexcoders@yahoogroups.com/msg06839.html

Hmm, stragely that seems to have worked on the live server but not on my
dev server...  How strange?  Anyway, thanks Manish, I shall dig
deeper...

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Serious corruption in Flex-generated SWF

2005-05-17 Thread Tim Blair

> Are you using an event to redraw/reposition elements in the
> containers of the Accordion?

On some of the views that are effected I'm using events to clear out
what's shown, but others are simply displayed.  I'm also having the same
problem with components in a TabNavigator component, so it's not just
the Accordian.

> Yes, actually, I get this behavior every week or so, and it 
> is also with an accordion container and standard VBox and 
> HBoxes.  I don't have any idea what causes it however.  For 
> me, simply refreshing the app corrects the problem so mine is 
> a rendereing issue and not a compile issue.

This is the same thing: a render issue, not compile issue.  Sometimes it
works, sometimes it doesn't but I have no clue what triggers it!

Hmm, this is getting very annoying...

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Disappearing images in custom cell renderer

2005-05-17 Thread Tim Blair
What is it with me and images at the moment...?

Anyway, I'm having trouble with displaying thumbnails in a custom cell
renderer within a TileList component.  The code for the cell renderer is
displayed below (AssetThumbnail.mxml) and the line that defines the
TileList is also shown (ThumbnailView.mxml).

When the user clicks on a given item, a search is performed which
populates the aAssetSearch array with the appropriate Asset instances to
display thumbnails for; this is then bound to the TileList as the
dataProvider.  When the list of images are displayed, one of the
following happens:

 1. the thumbnail displays correctly;
 2. displays correctly, then after a second or so vanishes;
 3. nothing is displayed.

My guess is that #3 is actually #2 happening very quickly so the "in
between" redraw doesn't actually happen.  I can often get the missing
images to redisplay by performing a new search and then going back to
the original, at which point the original search's assets have already
been pulled back from the database and cached.  Sometimes this can be
achieved by scrolling the TileList up and down to redraw the appropriate
cells.  Neither of these two methods either works 100% of the time, and
quite often the cells remain blank.

This pointed me towards the thought that there was something strange
going on with the Asset instances that meant they weren't returning the
appropriate URL for the image, or it was being returned and then reset.
However, I tried adding a trace into the dynamic "get" function for the
thumbnail URL (see code for Asset.as below) and all looks fine (i.e. it
returned the URL correctly).

Has anyone got any idea why this may be happening?

Thanks,

Tim.


ThumbnailView.mxml:
---





AssetThumbnail.mxml:



http://www.macromedia.com/2003/mxml";
 width="100%" height="100%" horizontalAlign="center"
 verticalAlign="middle" toolTip="{asset.title}">

  
  
  

  
  
  




Asset.as


[ChangeEvent("thumbURLChanged")]
public function get thumbURL(): String {
return AssetManager.getInstance().getAssetPath(_thumbfile,
   true,
   "thumb");
}
public function set thumbURL(sURL: String): Void {
dispatchEvent( {type:"thumbURLChanged"} );
}


--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Image not being resized in mx:Image tag

2005-05-17 Thread Tim Blair
Hello,

I'm having trouble with images not resizing to fit the  tag
specfied (and also with SWFs not resizing to fit the appropriate
).  An example can be seen at the following URL, where the
image (green boxes) *should* be contained within the grey box top right:

http://kryten.rawnet.com/flex/flex-corrupt.html#lgimage

The MXML to output the image is as follows:



Extra information:
 - "assetURL" is a simple string like http://server/path/
 - "asset" is an instance of an AS class
 - "asset.assetURL" is a dynamic property of the "asset" instance,
   with an appropriate changeEvent defined

Any idea why this should be the case?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Serious corruption in Flex-generated SWF

2005-05-17 Thread Tim Blair
Morning all,

We're having severe issues with components within a Flex-generated SWF
being displayed corrupt.  The problem is that this doesn't happen all
the time, and I can't seem to find a reproducable method of "forcing"
the corruption.

Examples of the sort of thing we're seeing can be seen here:
http://kryten.rawnet.com/flex/flex-corrupt.html

All corruption occurs at the same time (i.e. when one thing goes, they
all go), but not all components are affected.  The problem only seems to
affect components displayed within an accordian, but again not all
contained components are effected.  If you look at example 1 on the page
above, the items under "edit existing..." are corrupt, whereas those
under the "create new..." heading are displayed fine.

Does anyone have any idea what's going on here?  Has anyone seen this
before?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Flex Server Specification

2005-05-13 Thread Tim Blair
Thanks Dave,

> Even if there will be other apps/instances, I'd keep it at 1 
> GB and simply add more RAM to the box (it's so cheap 
> nowadays, it's a no-brainer).

We're actually going for 2Gb -- we will be adding separate instances in
the near future and it makes sense to go for this straight away.

What CPU setup do you have/recommend?

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Flex Server Specification

2005-05-13 Thread Tim Blair

> Could anyone advise on the required (or recommended) server 
> specs for running Flex?  There'll be nothing else running on 
> the box and we're looking at a Linux server.  I get the 
> feeling that the info here[1] is over-simplifying things a bit...
> 
> [1] http://www.macromedia.com/software/flex/productinfo/systemreqs/

Following up on this:

Macromedia specify that RedHat AS 2.1/3.0 must be used for Flex -- would
there be any problem installing it on ES 3.0?

Cheers,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Flex Server Specification

2005-05-13 Thread Tim Blair

Morning all,

Could anyone advise on the required (or recommended) server specs for
running Flex?  There'll be nothing else running on the box and we're
looking at a Linux server.  I get the feeling that the info here[1] is
over-simplifying things a bit...

Cheers,

Tim.

[1] http://www.macromedia.com/software/flex/productinfo/systemreqs/

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Dynamically poplulating an editable DataGrid

2005-05-10 Thread Tim Blair
Jim,

> Your approach for adding a new row to the grid is slightly incorrect:
> you're pushing the new object onto the data provider of the grid.
> Instead, you should use the addItem method of the grid / dataProvider.
...
> I forgot to address the editing / not showing up issue.
> Try using undefined instead of empty string.

Ah, excellent!  Thanks, I knew there had to be something I was missing
:)

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Pre-selecting Tree nodes

2005-05-09 Thread Tim Blair
Hello,

Does anyone have an example of pre-selecting nodes in a Tree component
based on the data item associated with that node?  I'm tearing my hair
out here...

Example: I have the following files (tree.xml and tree.mxml) -- on
initialisation (or button click etc) I would like the nodes with the
data value of 39, 40 and 47 ("Collections", "Kettles" and "Juicers") to
be selected, and the tree open at the appropriate places.  I've pasted
the test code I have in place.

What happens with the test code below is that on the first click of the
"populate" button (without manually expanding any of the tree nodes
first), nothing happens.  If I then expand both the root ("Assets") node
and the "Brand" node below it, click the button again will open up the
correct nodes but will mark the root node as selected.  After these
nodes have been displayed, I can close all nodes and then the populate()
works as expected in opening the correct nodes, but again selects on the
root node.

Any help greatly appreciated!

Cheers,

Tim.


tree.xml:
=


  

  




  
  



  
  



  

  



tree.mxml:
==

http://www.macromedia.com/2003/mxml";>

















--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Dynamically poplulating an editable DataGrid

2005-05-09 Thread Tim Blair
Matt,

> Clearly it seems like a bug so I'd file it at 
> http://www.macromedia.com/go/wish

Cheers, will do.

> But there should be a simpler workaround I'd hope.
> What about calling invalidate() on the DataGrid?

I tried that, but nothing doing unfortunately :o\

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
--- 

 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
Sent: 09 May 2005 04:07
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Dynamically poplulating an editable
DataGrid



Clearly it seems like a bug so I'd file it at
http://www.macromedia.com/go/wish.  But there should be a simpler
workaround I'd hope.  What about calling invalidate() on the DataGrid?

 



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Blair
Sent: Sunday, May 08, 2005 6:28 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Dynamically poplulating an editable
DataGrid

 

Matt/Manish,

Matt wrote:
> When you add a new object to the dataProvider any chance you
> can add it with empty fields for the columns that do exist?
> I'd imagine that it not having any values whatsoever could
> cause something like this.

Manish wrote:
> I don't know why this might be happening, but I found that
> setting the initial value to " " (single space) instead of ""
> (blank string) fixes the issue.  Does that work for you?

Even when setting the value of the cells in each new row to
something
other than "" I still couldn't edit the cells without first
creating a
new column.  Additionally, the value of the cells wasn't
displayed until
after the new row had been added.

In the end I had to do two things to get it to work, the first
of which
is a temendous hack that I really don't like.  Because I
couldn't edit
cell information until after a new columnn had been created,
when adding
a new row I forced creation and then immediate deletion of a new
column:

// new "row" added to the patta provider in the lines above
myDataGrid.addColumn(new DataGridColumn("temp"));
myDataGrid.removeColumnAt(myDataGrid.columnCount-1);

Additionally, as Manish suggested, I had to give the initial
value of
each cell a non-empty string value (a single space) or even
after
editing the field, the label wouldn't be shown until after a new
row is
created.

As I said, hacky and not nice, but at least I have it working
they way I
expected it should!  So the question is -- what's going on here?
Bug?

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those 

RE: [flexcoders] Dynamically poplulating an editable DataGrid

2005-05-08 Thread Tim Blair
Matt/Manish,

Matt wrote:
> When you add a new object to the dataProvider any chance you
> can add it with empty fields for the columns that do exist?
> I'd imagine that it not having any values whatsoever could
> cause something like this.

Manish wrote:
> I don't know why this might be happening, but I found that
> setting the initial value to " " (single space) instead of ""
> (blank string) fixes the issue.  Does that work for you?

Even when setting the value of the cells in each new row to something
other than "" I still couldn't edit the cells without first creating a
new column.  Additionally, the value of the cells wasn't displayed until
after the new row had been added.

In the end I had to do two things to get it to work, the first of which
is a temendous hack that I really don't like.  Because I couldn't edit
cell information until after a new columnn had been created, when adding
a new row I forced creation and then immediate deletion of a new column:

// new "row" added to the patta provider in the lines above
myDataGrid.addColumn(new DataGridColumn("temp"));
myDataGrid.removeColumnAt(myDataGrid.columnCount-1);

Additionally, as Manish suggested, I had to give the initial value of
each cell a non-empty string value (a single space) or even after
editing the field, the label wouldn't be shown until after a new row is
created.

As I said, hacky and not nice, but at least I have it working they way I
expected it should!  So the question is -- what's going on here?  Bug?

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Dynamically poplulating an editable DataGrid

2005-05-07 Thread Tim Blair
Evening all,

I'm having some issues with an editable data grid.  Basically it starts
of as an empty grid and the user can populate it by adding columns and
rows, but it doesn't appear to be working as I expect it to.

I can add columns using dg.addColumn() absolutely fine, and they are
displayed as expected.  However, when I add a new row (by adding a new
Object to the dataProvier array), I can't actually edit the field until
I've added another column.  Once I've done this, the new row can be
edited normally.  I can also "force" the row to be editable by tabbing
from one (already editable) row to a newly created one.

Additionally, after editing a cell, it appears that sometimes the
underlying data model is updated but the display is not updated.  For
example, using the code below, if I edit the one and only cell that's
automatically created and the move the focus somewhere else, the new
value isn't displayed (although I can get it back by re-editing the
cell).

Can anyone shed some light on this situation, or recommend another way
of going about things?

Thanks,

Tim.

PS. The code I'm testing with is as below:


http://www.macromedia.com/2003/mxml";>










   
  
 
  
   
















--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Handling "status" event types with Remoting/CFCs

2005-04-28 Thread Tim Blair
Dirk,

> that's strange - "SERVER.PROCESSING" messages should 
> definitely trigger your fault handler. Basically, they are 
> just Exceptions caught by the Remoting gateway.

That's what I thought.  Anyway, I've worked out what was wrong -- sport
the deliberate (?!) mistake:

MXML:


AS:
call.faultHandler = Delegate.create(this, getSlideFault);

Yes, it's the old casing coming back to bite my in the bum
(faultHandler/faulthandler)!

Cheers anyway,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Disappearing struct from CFC using RemoteObject

2005-04-28 Thread Tim Blair
Pete,

> I believe ColdFusion structs are seen by Flash Remoting as 
> java.util.Map instances, so that means they're going to the
> client as ECMA Arrays, not Objects. Thankfully (for now) you
> can use the following ActionScript syntax to get named keys
> from arrays as well as object properties:

Excellent!  Just what I was after :)

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Handling "status" event types with Remoting/CFCs

2005-04-28 Thread Tim Blair
Afternoon,

I have a number of CFCs which I'm accessing through RemoteObject calls.
I've noticed that if CodlFusion throws an error (built-in or custom)
then the reponse comes back with an event type of "Status", which isn't
handled by either the result or fault handlers specified for the
callback.

I'm using the following to set up the remote call:





And then this ActionScript to call it:

function getSlideResult(event:Object) { ... }
function getSlideFault(event:Object) { ... }
Function getSlide(slideid:Number) {
var call = rSlide.getSlide({slideid:slideid});
call.resultHandler = Delegate.create(this, getSlideResult);
call.faultHandler = Delegate.create(this, getSlideFault);
}

If an error occurs (in this case, the item we're trying to get doesn't
exist so a custom error is thrown) then neither getSlideResult or
getSlideFault fire.  I get the following information back from the
NetConn debugger:

DebugId: 0
EventType: "Status"
MovieUrl: "http://localhost:8700/flex/remote.mxml.swf";
Protocol: "http"
Source: "Client"
Time: 1114687271399
Date (object #1)
."Thu Apr 28 12:21:11 GMT+0100 2005"
Status (object #2)
.code: "SERVER.PROCESSING"
.description: "Service threw an exception during method invocation:
[Slide.GetSlide.SlideNotFound] The requested slide (ID 6) cannot be
found."
.details: "coldfusion.runtime.CustomException:
[Slide.GetSlide.SlideNotFound] The requested slide (ID 6) cannot be
found." [long error report snipped]

Is there any way of specifying a handler for these "status" events?

Cheers,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Disappearing struct from CFC using RemoteObject

2005-04-26 Thread Tim Blair

David,

> out of curiosity what version of CF are you using? 

I'm still on MX6.1.

> I had a similar mind-loosing experience recently, though the 
> structs were disappearing only when I was trying to retrieve 
> an array of structs.

I seem to get the same issue when I'm grabbing arrays of structs too:
the array itself is fine, but the structures just vanish (although
again, not according to the net conn debugger).

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

<*> 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] Disappearing struct from CFC using RemoteObject

2005-04-26 Thread Tim Blair

Hello,

I'm slowly going crazy here.  I'm trying to make a simple RemoteObject
call to a ColdFusion CFC using Flash Remoting.  Nothing exciting -- pass
a couple of vars, get a structure containing user data back.

Whenever I try and return a type of struct (and only struct, as far as I
can see) from the CFC, things go a little strange and I don't get the
results I expect back (an object containing thye keys: sessionid, userid
and valid).  In the net conection debugger I get back the following,
which looks correct to me:

DebugId: 0
EventType: "Result"
MovieUrl: "http://localhost:/flex/test.mxml.swf";
Protocol: "http"
Source: "Client"
Time: 1114533397451
Date (object #1)
."Tue Apr 26 17:36:37 GMT+0100 2005"
Result (object #2)
.SESSIONID: "7F3D91BB-8A11-29EE-1B5963898741A372"
.USERID: 1
.VALID: "TRUE"

However, the network monitor only shows this:

[array] : 
length[Number] : 0

>From some further poking, when checking the return data, event.result is
undefined;  the private member data __result *does* contain the correct
data, but I can't access this using event.result.

Does anyone have an idea what's going on here?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

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