RE: [flexcoders] .NET web service and Data Grid

2007-03-08 Thread Steve Cox
When a single item comes back Flex converts it to an Object rather than
an ArrayCollection.
 
Do something like:
 
//where arrTable is the model (ArrayCollection) you are setting
if (!(event.result.diffgram.NewDaraSet.Table is ArrayCollection))
{
arrTable = new ArrayCollection();
arrTable.addItem(event.result.diffgram.NewDaraSet.Table);
} 
else 
{
arrTable = event.result.diffgram.NewDaraSet.Table;
}
 
HTH
Steve
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of subeesh a
Sent: 08 March 2007 10:40
To: flexcoders@yahoogroups.com
Subject: [flexcoders] .NET web service and Data Grid
 
Hi All, 
 
I am using a .NET web service to populate datagrid. I am converting the
result of the web service call to arraycollection and bind it to the
datagrid.
The issue is that when  there is only one data in the database, the data
grid is not showing up anything.
 
I have analyzed the event tree of the web service call.In the case of
more than one record, the event object is like
 
event.result.diffgram.NewDaraSet.Table[0]..
event.result.diffgram.NewDaraSet.Table[1]..
event.result.diffgram.NewDaraSet.Table[0]..
 
in the case of database with only one record, the event object is like
 
event.result.diffgram.NewDaraSet.Table
 
How can i bind the data to the datagrid in this case
 
Thanks Subeesh
 
  _  


Here's a new way to find what you're looking for - Yahoo!

Answers 
 


RE: [flexcoders] Apollo and where do we start.

2007-03-07 Thread Steve Cox
There is no public SDK as of yet. 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nboulet
Sent: 07 March 2007 13:23
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Apollo and where do we start.
 
Hi guys :)
I've been reading this mailing list since quite a bit and I have a
question. Where can I start with Apollo development? And, please,
don't send me to the Adobe Labs, there is no place to download the SDK
and no tutorials or infos. And yes, I ordered my Apollo Pocket Guide
on Amazon hehe!
Thanks.
Nicolas
 


RE: [flexcoders] how do you call the super's super?

2007-02-28 Thread Steve Cox
Could be wrong but I'm 99% sure this is not possible.
 
Steve
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anthony Lee
Sent: 27 February 2007 04:00
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how do you call the super's super?
 
Hi,

Sorry for the lame AS questions, but can anyone tell me how to call
the super method of the class I'm extending? ie. the grandparent and
not the parent.

Thanks,

tonio
 


RE: [flexcoders] Flex Socket + MSN Protocol

2007-02-23 Thread Steve Cox
Hey bud,
 
Check out the binarysocket class. XMLSocket will always terminate with a
null byte \0 - if you use binarysocket instead you'll be able to send
any characters you want!
 
HTH
Steve
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michel Scoz
Sent: 23 February 2007 11:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Socket + MSN Protocol
 
Hi all...
 
I've been reading and searching the archives about sockets but found
nothing that would "solve" my problem, so i was wondering if anyone
could give me a light =)
 
Currently I'm tryin to connect a Flex Project using Sockets to a MSN
server using MSN Protocol Version 13. 
 
The problem im runnin into is that the protocol always ends with an
"\r\n" to finish a command, pretty much like this:
">>>" stands for send commands
"<<<" stands for received commands
 
>>> VER 1 MSNP13 CVR0\r\n
<<< VER 1 MSNP13 CVR0\r\n
>>> CVR 5 0x0409 winnt 5.1 i386 MSG80BETA 8.0.0566 msmsgs [EMAIL PROTECTED]
 com\r\n
<<< CVR 5 8.0.0566 8.0.0566 8.0.0566 http://msgr.

dlservice.microsoft.com/download/4/5/b/45beb06f-5a08-4694-abd8-d6e706b06
b68/Install_Messenger_Beta.exe http://ideas. 
live.com\r\n
>>> USR 6 TWN I [EMAIL PROTECTED]  com\r\n
<<< USR 6 TWN S
lc=1033,id=507,tw=40,fs=1,ru=http%3A%2F%2Fmessenger%2Emsn%2Ecom,ct=10627
64229,kpp=1,kv=5,ver=2.1.0173.1,tpf=43f8a4c8ed940c04e3740be46c4d1619\r\n
 
See? Every command line end with an "\r\n" but I dont know how to
replicate this using Flex.
The Socket class when i send "\r\n" always finishes the send command
givin me and EOF (end of file error) in a window executing the app.
And the XMLSocket commands are always terminated by a zero (0) byte.
 
So, can someone give me some directions on how to do it?
I was able to do it with PHP with ease as I was only sending strings...
how to do it with Flex? Any help ppl?
 
Thanks in advance,
 
Michel.
 


RE: [flexcoders] flex sdk

2007-02-23 Thread Steve Cox
The free SDK is a set of classes and command-line tools. Flex Builder
can be used as an Eclipse plugin - but this is not free. I think you may
have downloaded Flex Builder in addition to the SDK
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mapper2255
Sent: 23 February 2007 16:31
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex sdk
 
Good Morning,

I have just downloaded and installed the Flex SDK 2 into Eclipse 3.1. 
We I start Eclipse I get the Flex Builder Activation box asking for my 
serial number?

I had the trial loaded at one time but it has been uninstalled can 
someone tell me why I should be asked for a serial number?

Thanks.
 


RE: [flexcoders] Re: Cannot access a property or method of a null object reference

2007-02-19 Thread Steve Cox
If (dataProvider[i].hasOwnProperty("someValue") &&
dataProvider[i].someValue != null)
{
 
}
 
HTH
Steve
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: 17 February 2007 00:48
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Cannot access a property or method of a null
object reference
 
Does anyone know? This would help me immensely. 

--- In [EMAIL PROTECTED] 
ups.com, "napearson99" <[EMAIL PROTECTED]> wrote:
>
> What if the property.someValue does not exist? How do I check if the
> reference to dataprovider[i].someValue property is null?
> 
> my dataprovider is an arraycollection and holds different objects. 
> Some objects have .someValue property and some do not. When i try to
> step through it it doesn't like it when it expects a property but it
> is not there.
> 
> "ReferenceError: Error #1069: Property Desc not found on
> DragDrop_inlineComponent1 and there is no default value."
> 
> --- In [EMAIL PROTECTED] 
ups.com, "Paul DeCoursey"  wrote:
> >
> > if (dataprovider[i].someValue == null){
> > ...
> > }
> > 
> > --- In [EMAIL PROTECTED] 
ups.com, "napearson99"  wrote:
> > >
> > > I often get this error and I "usually" know why. Does anyone
know how
> > > to check for a null reference?
> > > 
> > > i.e.
> > > 
> > > if (dataprovider[i].someValue is null){
> > > dothis();
> > > }
> > > 
> > > Where dataprovider[i] does not have a someValue property. I bet
this
> > > is pretty simple and I just don't know the syntax. Thanks in
advance!
> > >
> >
>
 


RE: [flexcoders] DG.dataProvider.length returns 0 at creationComplete time

2007-02-12 Thread Steve Cox
At your time of creationComplete the dataprovider probably isn't
populated. Thus you want the rowcount to change when the dataprovider
length changes.
 
Try binding the rowCount property of the dataprovider to the
dataprovider like:
 

 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Barbieux
Sent: 12 February 2007 14:30
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DG.dataProvider.length returns 0 at
creationComplete time
 
Hello;

I would like that the number of lines in my dataGrid is equal to the
number of data from my dataProvider.

I have found a part of solution by searching in this forum, and the code
is simple:

DG.rowCount = DG.dataProvider.length;

So, I have written this code like this:



But it doesn't work: DG.dataProvider.length return 0.

I have tried with the callLater:

private function resizeDG():void {
   var dataLength:String = DG.dataProvider.length;
   DG.rowCount = DG.dataProvider.length;
}


RE: [flexcoders] Re: How to create a fault in FDS?

2007-02-01 Thread Steve Cox
Agreed. I'm struggling to find real-world examples of using FDS + JAVA.
There's plenty of 1 datagrid - 1 form examples, but nothing more
meaningful.
 
Steve
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of benjidudu
Sent: 01 February 2007 09:01
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to create a fault in FDS?
 
Tom and Jeff, thank you very much. It works without a glitch.

Is this documented somewhere? I looked for it for a while without
finding it.
This brings me to the FDS documentation. I think the Flex
documentation is very well done and detailed. But the FDS
documentation is quite the opposite. It seems to me there is only the
minimum we need to know and everything is scattered in the Flex
documentation.
I would personally prefer a separate doc with detailed explanations on
the Java side.

Benjamin.

--- In [EMAIL PROTECTED] 
ups.com, "Jeff Vroom" <[EMAIL PROTECTED]> wrote:
>
> You can just throw a RuntimeException from your fill method (or
whatever
> server side method that FDS is calling). That turns into a fault event
> on the client. If you are using FDS's LoginCommand interface, you can
> just have your login method return a Principal that does not support
the
> roles defined by the security constraints you attach to your
> destination's configuration. This is a declarative approach when you
> simply need to ensure a user has a given role when performing an
> operation.
> 
> 
> 
> Jeff
> 
> 
> 
> 
> 
> From: [EMAIL PROTECTED] 
ups.com [mailto:[EMAIL PROTECTED]
 ups.com] On
> Behalf Of benjidudu
> Sent: Wednesday, January 31, 2007 3:23 AM
> To: [EMAIL PROTECTED]  ups.com
> Subject: [flexcoders] How to create a fault in FDS?
> 
> 
> 
> I have a fill which is called with a parameter. The user login is
> passed and I check the login in the DAO. What I would like is to
> create a fault event to return to Flex if the login does not pass my
> checks.
> 
> Is there a way to do this?
> 
> Benjamin.
>
 


[flexcoders] FDS - Design patterns?

2007-01-30 Thread Steve Cox
All,
 
I'm new to FDS and looking for examples of design patterns or FDS
examples which contain more than a couple of forms. I'm not quite sure
how I should be breaking up a very large application.
 
Thanks in advance,
 
Steve


[flexcoders] Convert ByteArray to Bitmap

2007-01-29 Thread Steve Cox
All,
 
I'm retrieving an image via remoting as a ByteArray. How can I convert
this to a Bitmap without knowing the width/height of the image? I've
seen SetPixels - but that requires me knowing the dimensions of an image
- which I don't.
 
Any ideas?


RE: [flexcoders] Organize imports

2007-01-28 Thread Steve Cox
Ctrl + shift + o
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stembert Olivier (BIL)
Sent: 26 January 2007 08:50
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Organize imports
 
Ho all,

Do you know how to organize imports in FlexBuilder?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-
 


[flexcoders] getObjectsUnderPoint Alternative?

2007-01-25 Thread Steve Cox
All,
 
I have the requirement to use mouse-over to cause a component to be
highlighted. Effectively the user will click a button activating a
'lookup'.. when they roll over a component on screen this component will
be highlighted (perhaps with a dropshadow, or glow or something). Now I
could use getObjectsUnderPoint however this is returning me components
within components - which I don't want. For example if I hover over a
button, it's the UITextField of the button that is being returned.
 
Has anyone any suggestions on how is best to approach this?
 
Steve


RE: [flexcoders] EEK CodeBehind Repeater / RadioButton issue!

2007-01-19 Thread Steve Cox
Thanks, it was a long day and I wasn't thinking. 
 
As soon as I looked at it this morning I realised I should have declared
the RadioButton as a wildcard : * 
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Igor Costa
Sent: 18 January 2007 23:49
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] EEK CodeBehind Repeater / RadioButton issue!
 
It's better to declare a boolean value to pass throw your radiobuttons
than passing as a RadioButton.

Because as the error says, it's unknowed as a type pass type. against
the convert without passing extra arguments. 


Best
On 1/18/07, Steve Cox <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> uk> wrote:
All, 

When using the code behind technique to declare the controls you will
use in the MXML I have come across an issue I cannot work out a solution
for.

Usually for controls declaring the id of the control inside the code
behind class as public you can access a control you added to mxml. So
for example you would use:

public var myRadioButton : RadioButton

Where the RadioButton in your MXML had the id of myRadioButton.
Now the issue.. What if that RadioButton is inside a Repeater? For the
code to compile the type (RadioButton) must be the same in both the MXML
and the class, however when the repeater runs it builds up an Array
called myRadioButton each containing an instance of the RadioButton!
However I cannot declare myRadioButton as an Array inside the class
because the compiler thinks it should be a repeater!

When running a repeater I get the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED]
to mx.controls.RadioButton.

What have I missed? Any ideas?

Cheers,

Steve



-- 

Igor Costa
www.igorcosta. <http://www.igorcosta.org> org
www.igorcosta. <http://www.igorcosta.com> com
skype: igorpcosta 
 


RE: [flexcoders] Annoying problem - urgent!!!

2007-01-18 Thread Steve Cox
Try clicking Project -> Clean
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: 18 January 2007 16:09
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Annoying problem - urgent!!!
 
I have a really annoying problem. If I run or debug my flex application,
it keeps on giving me a version of yesterday. Flex won't compile a new
swf.
 
Lieven Cardoen
 
Lieven Cardoen
Application developer

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 
 
 
 


[flexcoders] EEK CodeBehind Repeater / RadioButton issue!

2007-01-18 Thread Steve Cox
All, 

When using the code behind technique to declare the controls you will
use in the MXML I have come across an issue I cannot work out a solution
for.

Usually for controls declaring the id of the control inside the code
behind class as public you can access a control you added to mxml. So
for example you would use:

public var myRadioButton : RadioButton

Where the RadioButton in your MXML had the id of myRadioButton.
Now the issue.. What if that RadioButton is inside a Repeater? For the
code to compile the type (RadioButton) must be the same in both the MXML
and the class, however when the repeater runs it builds up an Array
called myRadioButton each containing an instance of the RadioButton!
However I cannot declare myRadioButton as an Array inside the class
because the compiler thinks it should be a repeater!

When running a repeater I get the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED]
to mx.controls.RadioButton.

What have I missed? Any ideas?

Cheers,

Steve




RE: [flexcoders] Total used memory

2007-01-16 Thread Steve Cox
Take a read of this: 
http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
 
There's 3 articles in the series which provide an insight into the gc.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fliabrussa
Sent: 16 January 2007 13:12
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Total used memory
 
Hello to all, 
I am fighting with a subject again that had crossed to me before, 
which I left it of side with the idea that when proved version 2.0.1 
to not it happens me, but lamentably to me it continues happening. 

It is very probable that I am confused, for that reason I go to you 
so that they give a hand me. 

My problem is the use of the memory: basically, which I see is that 
the GC does not release memory when we erased a component that 
includes a control TabNavigator or Accordion inside. 

In order to show better he arms it a small application in which we 
can instantiate "n" times the control "Simple" (that contains 2 
DataGrid) and see that the used memory becomes stabilized in 8Mb or 
10 Mb. In order to see this in the application we must make several 
times click in the button that says "Component Simple". 
Soon, to see what I call problem, we must do several times click on 
the button "Component WithNavigator", this will instantiate "n" times 
the control "WithNavigtor" (that contains 1 TabNavigator with 2 grids 
inside), is there where we will see that the memory never lowers, but 
that is increased always. By this it is that it seems to me that 
there is some problem in this type of controls. 

The Link of the application is this: 
http://www.managern

et.com.ar/MemoryNav/MemoryNavigator.html 
right click to see the source code. 

if somebody has some idea of as I can solve it or if it sees that I 
am making something bad, please help me since this the dream is 
clearing me. 

greetings to all 
Fabian 
 


RE: [flexcoders] Full Screen Projector File for Flex 2 Swf

2007-01-05 Thread Steve Cox
  http://www.multidmedia.com
 
Check out Zinc :-)
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Luis Casillas
Sent: 04 January 2007 15:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Full Screen Projector File for Flex 2 Swf
 
I developed an app in Flex 2 and need a way to turn the created swf into
an exe that automatically goes into full screen without any user
interaction. Please help.
 
Luis Casillas

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


RE: [flexcoders] Apollo

2006-12-14 Thread Steve Cox
Have you thought about using zinc? http://multidmedia.com/
 
Can't see anything you mentioned below which is not already possible
with flash/flex + zinc
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Essl, Markus
Sent: 14 December 2006 10:30
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Apollo
 
Hello!
 
I wanted to ask if there is a place for a wish list for Apollo. It is
christmas anyway!
 
First of all, our company creates Computer Based Training Modules -
which are available online (for use in an LMS) but are also available
offline on CD. These CBTs are made with Authorware, Flash or DHTML, or a
combination thereof. 
 
Currently we need an own browser (based on Mozillla) to make these
things launchable from CD (we need access to the file system because of
tracking user scores between sessions and to integrate into the desktop,
etc.; also classroom teaching (ad-hoc peer-to-peer without the need to
setup) is a thing we will address sooner or later). 
 
When I heard about Apollo I was excited (and I still am). It would mean
that we can offer part of our CBTs for download (because the current
system takes more than 20mb just for framework, plus 300kb actual
content).
 
The number #1 wish for me is this: create flash applications that run
from CD (like a Flash Projector) WITHOUT the need to install anything
(like Flash Projector, but with more rights and more access to the
system). 
 
It may sound stupid for the rest of us, but customers demand that they
do not want to install anything - they want to insert the CD, and it
should run, without EULAs, installing and without accessing the internet
or whatever, just run.
 
The number #2 wish for me is: be able to extend it with C++ code - even
if it means to loose platform compatibility. 
 
And Number #3: That it is accessible to screen readers (i have had hard
times with the flash projector - i just could not get the screen reader
to recognize the settings).
 
 
I am sorry that this might be the wrong group for that. If there is any
chance that there is an official wish list please tell me.
 
Markus
 


RE: [flexcoders] is this a BUG in dataGrid ??

2006-12-14 Thread Steve Cox
What type of object are you using for the dataprovider?
Could you post the code you are using to modify the dataprovider
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Yiðit Boyar
Sent: 14 December 2006 13:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] is this a BUG in dataGrid ??
 
i have a AS 3 Class which extends dataGrid.
i have an object data which is the dataProvider of super Class
(dataGrid)...
when i make changes on the data and call super.invalidateList() it does
not refresh the first viewed row ..
when i scroll down and go back, i see the new value of that row so i'm
sure that data is changed...
can this be a BUG ? because when i do the changes on super.dataProvider
; there is no problem...

Yigit...
 
  _  

Cheap Talk? Check
  out Yahoo! Messenger's low
PC-to-Phone call rates.
 


RE: [flexcoders] Re: Drag/Drop - Datagrid. Target is off?

2006-12-04 Thread Steve Cox
There's a bug in Flex where the application uses an
ApplicationControlBar (possibly other controls, I'm not sure) which
causes the hitarea to be inaccurate.

Several people have also come across this (myself included) however no
work-around has been offered. I'm strongly hoping this will be in the
bug fixes at the start of 07.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lostinrecursion
Sent: 03 December 2006 12:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Drag/Drop - Datagrid. Target is off?
 
I just now had a chance to try that out. That doesn't solve the 
problem unfortunately. It does accept my drops, just only below about 
the 2nd row. As if the hit area is skewed down about 50 pixels on the 
Y axis.

Driving me bananas for a month now! And the client too. (LOL)

-

--- In [EMAIL PROTECTED] 
ups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> Kenny in the target just enable the DropEnable=true
> 
> On 11/30/06, lostinrecursion <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I have a little app I built with some drag/drop functionality 
that I
> > coded in. I am not using the default and writing my own handlers.
> > Everything is working, meaning all the data gets added, etc.
> >
> > But, this is just more of annoyance really, I cannot get the 
DataGrid
> > to accept the drop at the top row. Meaning the user has to go 
below the
> > first or second row before the drop indicators pop and they can.
> >
> > Further investigation leads me to see that even the dragEnter 
event is
> > not firing.
> >
> > I am using the default dragProxyImage. In fact, the only thing I 
really
> > changed was the dragDrop handler to accept a few additional 
values.
> >
> > Any ideas?
> >
> > Thanks
> > -Kenny
> >
> > 
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.com
>
 


RE: [flexcoders] {data} current index

2006-12-01 Thread Steve Cox
rowIndex refers to the index of the item in the viewable area within the
datagrid; not as the docs say the index of the item in the dataprovider.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dustin Mercer
Sent: 30 November 2006 22:39
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] {data} current index
 
You could also look at the listData property on the renderer (if it
implements IDropInListItemRenderer, which it should).  It has the
rowIndex and columnIndex properties on it.  For some reason listData is
not bindable, but if your renderer is built in AS, you won't need the
binding, if it's mxml, then you can use the creationComplete event to
compute the itemIndex.  For a TileList it might be a bit complex though,
since you need to do a little math to find out what the item's index is.
Here is some pseudo code for that.  
 
var itemIndex : int = (listData.owner.columnCount * listData.rowIndex) +
(listData.columnIndex + 1)
 
What Lach suggested below is the easiest way and fastest way to get this
going.  If you need the index to be dynamic, for instance if you need to
do any filtering or sorting and want the index to be re-evaluated,
listData is the way to go.
 
Dustin Mercer
 
  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: Thursday, November 30, 2006 12:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] {data} current index
 
Hi Alex,
 
Item renderers aren't really aware of the wider context in which they
are show (i.e. as one item in a collection). They are only concerned
with how to render the particular data object that is passed to them. If
you want to render some kind of index number on the view, your best bet
is probably to incorporate it in the model somehow. That is, each item
in your collection should have an index property which is set to equal
its position in the collection.
 
Then you can say
 

 
Cheers,
Lach
 
 
 
On 30/11/2006, at 2:22 AM, Alex wrote:




Hi,

I have an application that uses a custom component as a renderItem in 
a TileList, retrieving a list of data from XML as the dataProvider.

How can I retrieve the current index of the item within my custom 
component? I can retrieve the data using {data}, but how would I 
retrieve the index of the item as it is being added in the actual 
TileList?
 
 


RE: [flexcoders] debug version issue

2006-11-29 Thread Steve Cox
Yes mate: 9.0.r28
 
http://www.adobe.com/support/flashplayer/downloads.html
 


 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark McCray
Sent: 29 November 2006 14:55
To: flexcoders@yahoogroups.com
Subject: [flexcoders] debug version issue
 
Hi there,
Some sites that require flash player 9 don't work with my debug 
version of the flash player. Take for instance the new Kuler app from 
adobe.
(http://kuler.  adobe.com)
It says i need to install Flash Player 9. But I have the debug 
version 9,0,18,60 installed.

And sites like myspace won't load any flash content at all and 
provides me no warning.

Adobe, what's up? Is there a newer version of the debug flash player?

Thanks,
Mark
 


RE: [flexcoders] Text instance does not calculate its height properly when in scrollable Box

2006-11-29 Thread Steve Cox
Unfortunately there seems to be a bug with text fields / labels and
htmlText. The text component seems to not take into account line
breaks/font sizing or something causing it to measure the component
inaccurately.
 
I'm yet to find a work-around.
 
Lach, to replicate the bug highlight the text at the bottom of the text
component, you will see the text scroll more beyond the scrollbars. 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: 29 November 2006 12:50
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Text instance does not calculate its height
properly when in scrollable Box
 
Hi Sergey,
 
I'm not sure what you mean by 'cut by mask'. Is the text being obscured?
When I tried your example code it performed as expected without issues.
 
Cheers,
Lach
 
 
On 27/11/2006, at 10:25 PM, Sergey Kovalyov wrote:



Hi All!

When Text instance is in scrollable Box and user scrolls vertical
scrollbar to the bottommost position, bottom edge of the Text remains
invisible (cut by mask). How to fix it? Look at the example below that
reproduces this behavior:
 
 


RE: [flexcoders] how to choose an image

2006-11-28 Thread Steve Cox
Unfortunately this isn't as straight forward as you would think.
 
FileReference, for some reason, will not allow you to access the data of
the file you have located. Therefore the only way that I am aware of to
do what you want would be to upload this file to a server first, then
load it into flex using swfloader or an image control.
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nchumbo
Sent: 28 November 2006 13:05
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to choose an image
 
hi, i'm a neewbie in flex programming.

How can i choose an image anywhere in my computer and show it in a mx
image control?

i'm trying trying to use FileReference.Browse but i only get the name
of the selected file and not the all path.

Can someone help me?

Thanks in advance
Nuno
 


RE: [flexcoders] lastResult.records.record.length=null when there's actually 1

2006-11-28 Thread Steve Cox
Try something like the following (I'm using result here instead of
lastResult, but see what works for you:
 
 
var acResults : ArrayCollection;
 
if (myListRequest.lastResult.records.record is ArrayCollection)
{
acResults = myListRequest.lastResult.records.record;
} 
else 
{
acResults = new ArrayCollection();
acResults.addItem(myListRequest.lastResult.records.record);
}
Alert.show(acResults.length.toString());
 
 
HTH,
 
Steve
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Marchbanks
Sent: 28 November 2006 11:29
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] lastResult.records.record.length=null when
there's actually 1
 
Thanks Steve for explaining exactly the root cause.

What method would you recommend to test if the 
result is an array or an object ?

Steve Cox wrote:
> When a result contains only 1 object Flex converts it to an Object not
> an ArrayCollection. Therefore your
> myListRequest.lastResult.records.record is an object and won't have
the
> .length property. When you receive more than 1 record it will be an
> ArrayCollection of objects.
> 
> You'll need to check the type of
myListRequest.lastResult.records.record
> before you do any work with it.
> 
> Hope that helps,
> 
> Steve
> 
> -Original Message-
> From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com [mailto:[EMAIL PROTECTED]
<mailto:flexcoders%40yahoogroups.com> ups.com] On
> Behalf Of Ben Marchbanks
> Sent: 27 November 2006 19:21
> To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
> Subject: Re: [flexcoders] lastResult.records.record.length=null when
> there's actually 1
> 
> myRequest.event.result.length ??
> 
> Not sure I understand how to use event.result to 
> get the count of the records returned.
> 
> Tracy Spratt wrote:
>> And avoid using lastResult except for binding. 
>>
>>
>>
>> Instead use event.result.
>>
>>
>>
>> Tracy
>>
>>
>>
>> 
>>
>> From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
> ups.com [mailto:[EMAIL PROTECTED]
> <mailto:flexcoders%40yahoogroups.com> ups.com] On
>> Behalf Of Iko Knyphausen
>> Sent: Friday, November 24, 2006 10:43 PM
>> To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
>> Subject: RE: [flexcoders] lastResult.records.record.length=null when
>> there's actually 1
>>
>>
>>
>> Does it behave the same if you use "e4x" as resultFormat?
>>
>> 
>>
>> From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
> ups.com [mailto:[EMAIL PROTECTED]
> <mailto:flexcoders%40yahoogroups.com> ups.com] On
>> Behalf Of pdflibpilot
>> Sent: Friday, November 24, 2006 5:35 PM
>> To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
>> Subject: [flexcoders] lastResult.records.record.length=null when
> there's
>> actually 1
>>
>>
>>
>> I use the following to get a count of the records returned by
>> HTTPService request.
>>
>> myListRequest.lastResult.records.record.length;
>>
>> When theres only 1 the result is null ? Otherwise the count is fine
>> whenever it is 2 or more. Is this the expected result ??
>>
>>
>>
>>
> 
> 
 


[flexcoders] Cursor Position in RichTextEditor (textarea)

2006-11-28 Thread Steve Cox
All,
 
For the life of me I cannot seem to find the property/method to get the
caret / cursor position in a textarea component via a RTE. 
Basically I need to be able tod rag a custom control onto the RTE and it
insert some text at the current(previous before focus changed) cursor
position. 
I can get it working fine if I just want to add the text onto the end,
however I want to insert it at the current position.
 
Any ideas?
 
Ta, Steve


RE: [flexcoders] lastResult.records.record.length=null when there's actually 1

2006-11-28 Thread Steve Cox
When a result contains only 1 object Flex converts it to an Object not
an ArrayCollection. Therefore your
myListRequest.lastResult.records.record is an object and won't have the
.length property. When you receive more than 1 record it will be an
ArrayCollection of objects.
 
You'll need to check the type of myListRequest.lastResult.records.record
before you do any work with it.
 
Hope that helps,
 
Steve
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Marchbanks
Sent: 27 November 2006 19:21
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] lastResult.records.record.length=null when
there's actually 1
 
myRequest.event.result.length ??

Not sure I understand how to use event.result to 
get the count of the records returned.

Tracy Spratt wrote:
> And avoid using lastResult except for binding. 
> 
> 
> 
> Instead use event.result.
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: [EMAIL PROTECTED] 
ups.com [mailto:[EMAIL PROTECTED]
 ups.com] On
> Behalf Of Iko Knyphausen
> Sent: Friday, November 24, 2006 10:43 PM
> To: [EMAIL PROTECTED]  ups.com
> Subject: RE: [flexcoders] lastResult.records.record.length=null when
> there's actually 1
> 
> 
> 
> Does it behave the same if you use "e4x" as resultFormat?
> 
> 
> 
> From: [EMAIL PROTECTED] 
ups.com [mailto:[EMAIL PROTECTED]
 ups.com] On
> Behalf Of pdflibpilot
> Sent: Friday, November 24, 2006 5:35 PM
> To: [EMAIL PROTECTED]  ups.com
> Subject: [flexcoders] lastResult.records.record.length=null when
there's
> actually 1
> 
> 
> 
> I use the following to get a count of the records returned by
> HTTPService request.
> 
> myListRequest.lastResult.records.record.length;
> 
> When theres only 1 the result is null ? Otherwise the count is fine
> whenever it is 2 or more. Is this the expected result ??
> 
> 
> 
> 
 


RE: [flexcoders] Re: Auto incrementing values for datagrid

2006-11-17 Thread Steve Cox
Sorry to jump into the thread but unfortunately rowIndex doesn't do what
it says on the tin. It's documented to return the index of the item in
the dataprovider, however in actual fact it returns the index of the row
in the list/datagrid. 

For example if you have a dataprovider with 100 records displaying in a
datagrid with 10 rows and you scroll to the bottom of the datagrid and
select the last row rowIndex would return 10; not the 100 you would
expect. 
 
AFAIK there is no simple way of simply returning the index of the item
in the dataprovider rather than the datagrid. I hope someone can pick me
up on this point?
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: 17 November 2006 16:14
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Auto incrementing values for datagrid
 
> this field should re-paint itself on sorting of any other fields.
Do you mean that the first row in the grid should always say "1",
regardless of how the list is sorted? If that is the case, you'll want
to create an itemRenderer that implements IDropInListItemRenderer, and
then displays the rowIndex property of BaseListData. This is probably
a good starting point:

http://jessewarden.

com/archives/2006/10/checkbox_item_r.html

HTH,
Ben

--- In [EMAIL PROTECTED] 
ups.com, "flxcoder" <[EMAIL PROTECTED]> wrote:
>
> --- In [EMAIL PROTECTED] 
ups.com, "flxcoder"  wrote:
> >
> > I want to have a serial number field in my datagrid that increases
or
> > auto increments with each row. Is this possible? this field should
> > re-paint itself on sorting of any other fields.
> >
> any ideas here? surely, flex has a way to have a serial number auto
> incrementing column value for the datagrid...
>
 


[flexcoders] Label /Text Html font size bug

2006-11-17 Thread Steve Cox
There appears to be a bug with html text inside label/font controls. The
controls do not resize properly to take into account Html font sizes,
thus measuring the field too small.
 
Has anyone come across a workaround or re-written the controls to fix
this? I don't want to start doing so if it's already been done.
 
Setting the controls fotnSize property does fix this issue, however it
then overrides any font sizes the html specifies and thus kinda defeats
the object.
 
Cheers,
 
Steve


[flexcoders] Gradient Mask?

2006-11-07 Thread Steve Cox










I’ve
been playing about with creating masks for display objects however have not yet
been able to get one working with a gradient alpha.

Has
anyone managed to get this working?

Thanks
Steve

 




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___





[flexcoders] repost: FW: Radiobutton bug in Repeater

2006-07-25 Thread Steve Cox










Sorry
for the repost but I never saw this appear on the list 

 

All,

 

I’ve been experiencing
several issues with the radiobutton when in a repeater – the main problem
at the moment is this error:

 

TypeError: Error #1009: Cannot access a property or
method of a null object reference.

    at
mx.controls::RadioButton/mx.controls:RadioButton::addToGroup()[C:\dev\GMC\sdk\frameworks\mx\controls\RadioButton.as:454]

 

Debugging the code it would
appear that the “document” property in the RadioButton.as is
returning null, as a result “group” is also returning null even
though I have set group to equal a radiobutton group in the component.

 

This error doesn’t
happen all the time, but it is a show stopper when it does pop up!!

 

Any ideas?

 

Cheers

 

Steve




__._,_.___





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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





[flexcoders] Radiobutton bug in Repeater

2006-07-21 Thread Steve Cox










All,

 

I’ve been experiencing
several issues with the radiobutton when in a
repeater – the main problem at the moment is this error:

 

TypeError: Error #1009: Cannot access a property or method of
a null object reference.

    at mx.controls::RadioButton/mx.controls:RadioButton::addToGroup()[C:\dev\GMC\sdk\frameworks\mx\controls\RadioButton.as:454]

 

Debugging the code it would
appear that the “document” property in the RadioButton.as
is returning null, as a result “group” is also returning null even
though I have set group to equal a radiobutton group
in the component.

 

This error doesn’t
happen all the time, but it is a show stopper when it does pop up!!

 

Any ideas?

 

Cheers

 

Steve




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





[flexcoders] repeaterIndices Bug?!

2006-07-19 Thread Steve Cox










All,

 

When I try to access the repeaterIndices
of a component during debug mode, the flash player will always crash taking IE
or firefox with it.

 

I’ve the following code, the
player will always crash on the 2nd line. “event.target.repeaterIndices”
appears fine in the _expression_ watcher but as soon as I try to access it
through AS I get bombed out. There’s definitely values
there – I just cannot get to them!?

 

var selected :
Boolean = event.target.selected;

var arr : Array = event.target.repeaterIndices;

var indexField : Number = arr[0];

var indexItem : Number = arr[1];

 

 

In non-debug mode I’m getting the following error: 

TypeError: Error
#1010: A term is undefined and has no properties.

 

 

Has anyone seen this?!

 

Steve

  

 

 




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





[flexcoders] Repeater problem

2006-07-18 Thread Steve Cox










All,

 

I’ve a little problem I’m struggling to get my
head around. Basically I have an ArrayCollection
containing a ‘CustomField’ object. This
object contains various fields in addition to an ArrayCollection
called CustomFieldItems which contains further objects.
These CustomFieldObjects don’t exist at start, they are populated using a webservice
call.

 

Now the issue I have is the need to display them using a
repeater like so:

 



    

    

    

    

    

        

    mx:Repeater>

    mx:VBox>

    mx:ViewStack>

    mx:FormItem>

    mx:Repeater>

mx:Form>

 

Upon first view this works fine, however subsequent views are
causing the following error:

 

Error: Repeater is not executing. I believe this is due to the
binding on: 

 

My question is, how would you go about
doing something like the above?

 

Thanks,

 

Steve

  

Quba's e-mail disclaimer

The information contained in this email and any attachments
is intended only for the use of the individual to whom it is addressed and may
contain information that is privileged and confidential, the disclosure of
which is strictly prohibited by law.If you have received this e-mail in error,
please notify the sender immediately and delete this e-mail.

Any views expressed in this e-mail are those of the
individual sender. This email message and any attached files have been scanned
for the presence of computer viruses. However, you are advised that you open
any attachments at your own risk. We thank you for your co-operation.

Quba New Media Ltd
Registered in England & Wales No. 4038459
Registered Address: The Maltings, 81 Burton Road, Sheffield, South Yorkshire, S3 8BX

 




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





[flexcoders] listData rowIndex ) [f2 final]

2006-07-04 Thread Steve Cox










I’m hoping I’m
making a stupid mistake somewhere regarding rowIndex
from within an item Renderer.

 

The docs
state: 

rowIndex : int

The index of the item in the data provider.

 

However in practice the rowIndex I’m actually getting is the rowIndex of the DataGrid itself,
not the dataProvider. So for example if I were to
click onto an item it’s rowIndex may be 7, but
scrolling down a little the rowIndex changes. This is
obviously not the rowIndex of the provider, but the datagrid.

 

I’m using the following
code: 

 

var evt:DataGridItemEvent = new DataGridItemEvent("editItem");

evt.rowIndex = listData["rowIndex"];

var owner:DataGrid = listData["owner"];

owner.dispatchEvent(evt);

 

Where DataGridItemEvent is a simple custom event. 

 

Any clues?

 

Cheers, Steve




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





[flexcoders] Flex 2 - Local File System Solutions

2006-03-24 Thread Steve Cox











All,

 

We’ve a potential
project coming up which will require the use of a Flex app online and offline (via
CD). The offline version will need to be able to download a catalogue and store
locally (by way of syncing). 

 

Currently with 1.5 there are a
number of tools available such as Zinc which will enable local file system
access (read and write).

 

The app needs to be available
for both PC and MAC. 

 

We’ll be using Flex 2
for this project, is anyone aware of a way of reading and writing to the local
file system (MAC AND PC) with any 3rd party apps?

 

Thanks,

 

Steve












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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









[flexcoders] Catching ChangeEvent 1.5

2006-03-03 Thread Steve Cox










All,

 

I’m passing through
several arrays to a custom component. 

 

Ideally what I’d like to
do is call a function inside the component  when one of these arrays changes. How
do I capture the change event ?

 

Cheers,

 

Ste









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Web services: Question about array serialization

2005-12-14 Thread Steve Cox










Flex won’t really allow you to send
anything that .NET will accept as a dataset. Information can be sent from .NET
TO flex as a dataset, and flex get the info out, but not the other way around I’m
afraid. 

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of fc989898
Sent: 14 December 2005 14:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Web
services: Question about array serialization

 

Some more details: it's a
.NET web service which expects a DataSet as 
input parameter. 

Since the array of MyClass objects is serialized
by Flex as  
elements, the resulting DataSet contains a
DataTable named "item", 
whereas it should be named "MyClass".

Any help is much appreciated











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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex - Mac - Database (Semi OT)

2005-12-14 Thread Steve Cox










Thanks guys.

 

Zinc does that for windows, which is
great, but doesn’t offer the same features for mac
unfortunately. 

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of John C. Bland II
Sent: 14 December 2005 00:21
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex -
Mac - Database (Semi OT)

 

Zinc actually connects to more than just MySQL. 

"Zinc™ v2.5 can connect to Microsoft Access* and MySQL Databases, and with
added ADO support, you can practically connect to any Database Type! Zinc™ v2.5
supports SQL statements which means that you can execute all INSERT, UPDATE,
DELETE and SELECT commands on your database connections. There's no need for
server side scripts such as PHP, ASP or CGI as Zinc™ v2.5 creates a direct
connection with the Database."



On 12/13/05, Tom Ortega <[EMAIL PROTECTED]> wrote:



Zinc provides a way to
talk to mySQL directly with no need for a middle tier.  Of course, you'd
have to precompile your swf to have Zinc compile it.  Mixing MDMScript in
with your flex code, asp, etc. might prove a bit time-consuming though. 
You'd have to include the MDMScript in the flex file, compile the flex file
into a swf, take the swf and wrap it up in Zinc, and then finally test. 
If you found a mistake, you'd have to do it all over again. 





 





Possible, in
theory.  Practical, I'm not to sure of.





 





-Tom

 







On 12/13/05, Steve Cox <[EMAIL PROTECTED]>
wrote: 



All,

 

I'm currently
looking at ways in which we could create a standalone app using flex and a
database, for Mac OSX and PC.

 

Basically we're
looking at creating a cd/dvd with a mac/pc installer which will provide a
client with a desktop app and database. The flex-based desktop app would be
wrapped using something like 'Zinc' to provide the flash player etc. 

 

The issue I'm
having is working out how I'm going to do the database on a mac. On a PC we
could simply bundle a database and perhaps an ASP tier which could do the
interaction. 

 

However I'm at a
total loss with a mac, I don't even use the things. Has anyone done anything
similar?

 

My initial research
would suggest a flex app, a java layer and perhaps a database such as SQLite.
However I'm not a JAVA programmer, I'm usually .NET and Flex. 

 

Has anyone any
suggestions?

 

Cheers,

 

Steve

 





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







SPONSORED LINKS 




 
  
  Web
  site design development 
  
  
  Computer
  software development 
  
  
  Software
  design and development 
  
 
 
  
  Macromedia
  flex 
  
  
  Software
  development best practice 
  
  
   
  
 


 







YAHOO! GROUPS LINKS 

 

§
 Visit your group "flexcoders" on
the web.
 

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

§
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 












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

 

§
 Visit your group "flexcoders" on
the web.
  

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

§
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.

 














-- 
John C. Bland II
"I do what I can do when I can do it." - Chris Tucker, Money Talks

http://www.gotoandstop.org - Home of
FMUG.az 







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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Flex - Mac - Database (Semi OT)

2005-12-13 Thread Steve Cox










All,

 

I’m currently looking at
ways in which we could create a standalone app using flex and a database, for
Mac OSX and PC.

 

Basically we’re looking
at creating a cd/dvd with a mac/pc
installer which will provide a client with a desktop
app and database. The flex-based desktop app would be wrapped using something
like ‘Zinc’ to provide the flash player etc. 

 

The issue I’m having is
working out how I’m going to do the database on a mac.
On a PC we could simply bundle a database and perhaps an ASP tier which could
do the interaction.

 

However I’m at a total
loss with a mac, I don’t even use the things. Has
anyone done anything similar?

 

My initial research would
suggest a flex app, a java layer and perhaps a database such as SQLite. However I’m not a JAVA programmer, I’m
usually .NET and Flex.

 

Has anyone any suggestions?

 

Cheers,

 

Steve

 









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Cross Server Socket Connection (NOT XMLSocket)

2005-12-01 Thread Steve Cox










With XML sockets you could send a policy
file over the wire through the socket itself, however as you’re not going
to be able to do this with a telnet server I’m not sure you have any
options.

 

Only work around I can think of is to
write a bounce app that runs on your webserver and relays messages to/from the
telnet server. This could have security issues for you however.

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Ralf Rottmann
Sent: 01 December 2005 15:33
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cross
Server Socket Connection (NOT XMLSocket)

 

You’re
right, Scott. The policy file needs to be on the *destination* server – and that causes the problem. In a
socket world the destination server might not even be a web server. E.g. the
server could be a simple echo server which just sends back all text received on
a specific port. You could e.g. telnet the server:

 

telnet
10.1.1.10

>helo
>echo: helo
>i send this command
>echo: i send this command
>exit
>echo: bye

 

So
the server waiting for a socket connection does not even know anything about
policy files including not how to server them back to a flash client.

 

The
question remains: Can a flash player open socket connections to *non web servers*. If not, this would
mean  a no go for a whole set of RIAs.

 



Ralf Rottmann 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox
Sent: Donnerstag, 1. Dezember 2005
16:26
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cross
Server Socket Connection (NOT XMLSocket)



 

IIRC you need a policy on
the webserver at the domain you are connecting. This was certainly the case for
XMLSocket, not sure about binary, but I’ve not heard it’s any
different. (Doesn’t mean it’s not different though).

 

Ie if you are connecting
to myserver.com port 7000 you’d need a policy file at http://myserver.com 

 

Again, I’m not 100%
sure on binary socket, but xmlsocket certainly acted like this.

 

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1623.html

 

 

 

 

 

-Original
Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Ralf Rottmann
Sent: 01 December 2005 15:17
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cross
Server Socket Connection (NOT XMLSocket)

 

Any idea how that should
work?

 

You call the Socket.connect(server,
port) class to establish a connection (and that connection GETS established
even without any policy files). On the “other side” there is a
simple echo server. Who and how should the policy file get served via the
socket? Where should it be placed on the simple echo server? I doubt that it
works with policy files.

 

Any ideas?

 



Ralf Rottmann 















From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox
Sent: Donnerstag, 1. Dezember 2005
16:09
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cross
Server Socket Connection (NOT XMLSocket)



 

Policy files are also
applicable to socket connections afaik

 

-Original
Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Ralf Rottmann
Sent: 01 December 2005 15:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cross Server
Socket Connection (NOT XMLSocket)

 

Hi there,

 

Is there any known way of
allowing a flex/flash movie to establish socket connects cross server?

E.g.: If I want to create
a simple telnet client, host it on my private web page and want that telnet
flash movie to connect to whatever server out there. Obviously policy files do
not work as socket does not attempt an HTTP connect.

 

Regards

 

Ralf Rottmann 

 













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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Cross Server Socket Connection (NOT XMLSocket)

2005-12-01 Thread Steve Cox










IIRC you need a policy on the webserver at
the domain you are connecting. This was certainly the case for XMLSocket, not
sure about binary, but I’ve not heard it’s any different. (Doesn’t
mean it’s not different though).

 

Ie if you are connecting to myserver.com
port 7000 you’d need a policy file at http://myserver.com


 

Again, I’m not 100% sure on binary
socket, but xmlsocket certainly acted like this.

 

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1623.html

 

 

 

 

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Ralf Rottmann
Sent: 01 December 2005 15:17
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cross
Server Socket Connection (NOT XMLSocket)

 

Any
idea how that should work?

 

You
call the Socket.connect(server, port) class to establish a connection (and that
connection GETS established even without any policy files). On the “other
side” there is a simple echo server. Who and how should the policy file
get served via the socket? Where should it be placed on the simple echo server?
I doubt that it works with policy files.

 

Any
ideas?

 



Ralf Rottmann 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox
Sent: Donnerstag, 1. Dezember 2005
16:09
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Cross
Server Socket Connection (NOT XMLSocket)



 

Policy files are also
applicable to socket connections afaik

 

-Original
Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Ralf Rottmann
Sent: 01 December 2005 15:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cross Server
Socket Connection (NOT XMLSocket)

 

Hi there,

 

Is there any known way of
allowing a flex/flash movie to establish socket connects cross server?

E.g.: If I want to create
a simple telnet client, host it on my private web page and want that telnet
flash movie to connect to whatever server out there. Obviously policy files do
not work as socket does not attempt an HTTP connect.

 

Regards

 

Ralf Rottmann 

 











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Cross Server Socket Connection (NOT XMLSocket)

2005-12-01 Thread Steve Cox










Policy files are also applicable to socket
connections afaik

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Ralf Rottmann
Sent: 01 December 2005 15:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cross Server
Socket Connection (NOT XMLSocket)

 

Hi there,

 

Is there any known way of allowing a
flex/flash movie to establish socket connects cross server?

E.g.: If I want to create a simple
telnet client, host it on my private web page and want that telnet flash movie
to connect to whatever server out there. Obviously policy files do not work as
socket does not attempt an HTTP connect.

 

Regards

 

Ralf Rottmann 

 









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Spanish letters from external XML

2005-11-25 Thread Steve Cox










Guys,

 

Bit of a critical issue. We’ve
built a flex app (1.5) which imports strings from an xml file to display the
relevant language string. Each translation is saved as a separate XML file. The
encoding we’re using for English UTF-8, Chinese UTF-8 etc and these work
as expected. However the Latin encoding iso-8859-1 does not work properly. Any Spanish
characters are simply ignored by flex. I’ve tried UTF-8 on this XML file
also, but still no joy. Flex just ignores the characters.

 

When viewing the XML file via
browser using the iso-8859-1 charset the Spanish characters
are displayed, but not through flex.

 

Any Ideas?

 

Cheers,

 

Steve









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex / Jrun Instability? [SOLVED]

2005-11-17 Thread Steve Cox











Rawdy + anyone else interested:

 

Finally found the problem, IIS had ‘http-keep-alive’
option selected, which seemed to cause IE only to screw up.

 

Removing this sorted the problem, now all
is working as expected. Yippeee

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Steve Cox
Sent: 16 November 2005 08:55
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex /
Jrun Instability?

 

Thanks
for the links I’ll have a look through them.

 

I found
the IIS setup appauling if I’m honest. The fact we’ve spent such a
large amount of money on the app, yet the IIS connector appears
to be unreliable is just not on. With a mixture of fiddling and luck we got it
working for the majority of the time, just not 100% of the time, especially if
a user is using IE and refreshes. Unless it’s 100% it just cannot go
live.

 

If
anyone else has any similar experiences or fixes I’d appreciate them.
I’ve emailed macromedia using the support package we have, but as yet (20
hours later) heard nothing. Will let you know if I find anything out.

 

Ta

 

Steve

 

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Rawdyn
Sent: 15 November 2005 21:25
To: flexcoders@yahoogroups.com
Subject: FW: [flexcoders] Flex /
Jrun Instability?

 

Hi Steve,

 

I have come across this in my own
setup (using JRun4, ColdFusioin and IIS).

 

Here is a post from the MACR forum
about the lc_id

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=346&threadid=1056843

If you search the forums
(particularly the CF one) there are more threads.

 

I can't guarantee the info is 100%
so if anyone has more on the subject lets hear it.

 

Steve, how did you go with the IIS
setup at large? At the time I was doing mine I had enormous trouble (and indeed
couldn't) get it to what I considered a production level. See thread below.

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=346&threadid=1065342

 

If anyone has any good articles on
configuring JRun4 and IIS I'd be glad to read them.

 

 



Rawdy





 





 





 





 















From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox
Sent: Tuesday, 15 November 2005 11:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex / Jrun
Instability?

Guys & Girls,

Seem to be having an odd problem with getting and keeping a
Jrun server stable.

The Jrun server is installed, flex installed on it and IIS is connected. Now this works fine (took a while to get it working, but it’s now working right). However when uploading changes to the app, sometimes the page will hang. What’s strange is we also get a _javascript_ error when this happens. The html source is published to the page but no swf is then viewable. The _javascript_ error says the following variable is underfined: lc_id . Looking at the source code the following line is obviously pulling in some _javascript_:<script language='_javascript_' charset='utf-8' src='/Symph/flex-internal?action="">>script> Now the _javascript_ error I’m getting suggests this file is not loaded. Has anyone come across the situation where jrun stops serving pages? Restarting it twice seems to wake it back up. Ta Steve

 

 








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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex / Jrun Instability?

2005-11-16 Thread Steve Cox











Thanks for the links I’ll have a
look through them.

 

I found the IIS setup appauling if I’m
honest. The fact we’ve spent such a large amount of money on the app, yet
the IIS connector appears to be unreliable is just
not on. With a mixture of fiddling and luck we got it working for the majority
of the time, just not 100% of the time, especially if a user is using IE and
refreshes. Unless it’s 100% it just cannot go live.

 

If anyone else has any similar experiences
or fixes I’d appreciate them. I’ve emailed macromedia using the
support package we have, but as yet (20 hours later) heard nothing. Will let
you know if I find anything out.

 

Ta

 

Steve

 

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Rawdyn
Sent: 15 November 2005 21:25
To: flexcoders@yahoogroups.com
Subject: FW: [flexcoders] Flex /
Jrun Instability?

 

Hi Steve,

 

I have come across this in my own
setup (using JRun4, ColdFusioin and IIS).

 

Here is a post from the MACR forum
about the lc_id

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=346&threadid=1056843

If you search the forums
(particularly the CF one) there are more threads.

 

I can't guarantee the info is 100%
so if anyone has more on the subject lets hear it.

 

Steve, how did you go with the IIS
setup at large? At the time I was doing mine I had enormous trouble (and indeed
couldn't) get it to what I considered a production level. See thread below.

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=346&threadid=1065342

 

If anyone has any good articles on
configuring JRun4 and IIS I'd be glad to read them.

 

 



Rawdy





 





 





 





 











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox
Sent: Tuesday, 15 November 2005 11:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex / Jrun
Instability?

Guys & Girls,

Seem to be having an odd problem with getting and keeping a
Jrun server stable.

The Jrun server is installed, flex installed on it and IIS is connected. Now this works fine (took a while to get it working, but it’s now working right). However when uploading changes to the app, sometimes the page will hang. What’s strange is we also get a _javascript_ error when this happens. The html source is published to the page but no swf is then viewable. The _javascript_ error says the following variable is underfined: lc_id . Looking at the source code the following line is obviously pulling in some _javascript_:<script language='_javascript_' charset='utf-8' src='/Symph/flex-internal?action="">>script> Now the _javascript_ error I’m getting suggests this file is not loaded. Has anyone come across the situation where jrun stops serving pages? Restarting it twice seems to wake it back up. Ta Steve

 

 








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: FW: [flexcoders] Flex / Jrun Instability?

2005-11-16 Thread Steve Cox











Thanks, will try that.

 

Is there any reason why it would only
error sometimes. I would have expected if this needed
setting in IIS then it would either work all the time, or not work any of the
time? 

 

Will give it a shot and post back anyway.


Thanks for your suggestion,

 

Steve

 

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Tariq Ahmed
Sent: 15 November 2005 23:01
To: flexcoders@yahoogroups.com
Subject: Re: FW: [flexcoders] Flex
/ Jrun Instability?

 

Oh for the lc_id stuff, I
believe that's a result of an IIS setting where you set the execute permission
to Scripts only. Change it to Scripts & Executables.


Rawdyn wrote: 



 





 





 





 











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Steve Cox
Sent: Tuesday, 15 November 2005
11:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex / Jrun
Instability?

Guys
& Girls,

Seem
to be having an odd problem with getting and keeping a Jrun server stable.

The Jrun server is installed, flex installed on it and IIS is connected. Now this works fine (took a while to get it working, but it’s now working right). However when uploading changes to the app, sometimes the page will hang. What’s strange is we also get a _javascript_ error when this happens. The html source is published to the page but no swf is then viewable. The _javascript_ error says the following variable is underfined: lc_id . Looking at the source code the following line is obviously pulling in some _javascript_:<script language='_javascript_' charset='utf-8' src='/Symph/flex-internal?action="">>script> Now the _javascript_ error I’m getting suggests this file is not loaded. Has anyone come across the situation where jrun stops serving pages? Restarting it twice seems to wake it back up. Ta Steve

 












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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Flex / Jrun Instability?

2005-11-15 Thread Steve Cox











Thanks for that.

 

Ok so it gets even more confusing.

 

When refreshing or making a request with
IE, sometimes it’s sending 2 GET requests in the same header. EG:

 

GET /Symph/Symphony.mxml
HTTP/1.1



Accept: */*



Accept-Language: en-gb



Accept-Encoding: gzip,
deflate



If-Modified-Since: Tue, 15 Nov 2005 15:38:53 GMT



User-Agent: Mozilla/4.0 (compatible; MSIE
5.5; Windows NT 5.1; SV1; .NET CLR 1.1.4322)



Host: dev



Connection: Keep-Alive



 

 

GET /Symph/flex-internal?action=history_js HTTP/1.1



Accept: */*



Referer: http://localhost:9000/Symph/Symphony.mxml



Accept-Language: en-gb



Accept-Encoding: gzip,
deflate



User-Agent: Mozilla/4.0 (compatible; MSIE
5.5; Windows NT 5.1; SV1; .NET CLR 1.1.4322)



Host: localhost:9000



Connection: Keep-Alive





IIS/ JRUN is then
only sending back the result for the first request. There-on-in it does nothing
else. Now at frist I suspected some dodgy IE bug, but
connecting directly to Jrun’s app port it runs
100% every time.

 

Any ideas? 

 

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Matt Horn
Sent: 15 November 2005 15:06
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex /
Jrun Instability?

 

You can
use the sniffer tool to find out if the history code is being returned
properly. (It's in the bin directory.)

 

That
request (/flex/flex-internal?action="" should return something that
looks like this:

 

 

--begin

HTTP/1.0
200 OK



 



Date: Tue, 15 Nov 2005 15:03:36 GMT



 



Expires:
Thu, 01 Jan 1970 00:00:01 GMT



 



Content-Type:
application/x-_javascript_



 



Content-Length:
1244



 



Server:
JRun Web Server



 



 



 



//
$Revision: 1.49 $
// Vars
Vars = function(qStr) {
 this.numVars = 0;
 if(qStr != null) {
  var nameValue, name;
  var pairs = qStr.split('&');
  var pairLen = pairs.length;
  for(var i = 0; i < pairLen; i++) {
   var pair = pairs[i];
   if( (pair.indexOf('=')!= -1) && (pair.length > 3)
) {
var nameValue = pair.split('=');
var name = nameValue[0];
var value = nameValue[1];
if(this[name] == null && name.length > 0
&& value.length > 0) { 
 this[name] = value;
 this.numVars++;
}
   }
  } 
 }
}
Vars.prototype.toString = function(pre) {
 var result = '';
 if(pre == null) { pre = ''; }
 for(var i in this) {
  if(this[i] != null && typeof(this[i]) != 'object'
&& typeof(this[i]) != 'function' && i != 'numVars') {
   result += pre + i + '=' + this[i] + '&';
  }
 }
 if(result.length > 0) result = result.substr(0, result.length-1);
 return result;
}
function getSearch(wRef) {
 var searchStr = '';
 if(wRef.location.search.length > 1) {
  searchStr = new String(wRef.location.search);
  searchStr = searchStr.substring(1, searchStr.length);
 }
 return searchStr;
}
var lc_id = Math.floor(Math.random() * 100000).toString(16);
if (this != top)
{
 top.Vars = Vars;
 top.getSearch = getSearch;
 top.lc_id = lc_id;
}



 







From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox
Sent: Tuesday, November 15, 2005 7:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex / Jrun
Instability?

Guys & Girls,

Seem to be having an odd problem with getting and keeping a
Jrun server stable.

The Jrun server is installed, flex installed on it and IIS is connected. Now this works fine (took a while to get it working, but it’s now working right). However when uploading changes to the app, sometimes the page will hang. What’s strange is we also get a _javascript_ error when this happens. The html source is published to the page but no swf is then viewable. The _javascript_ error says the following variable is underfined: lc_id . Looking at the source code the following line is obviously pulling in some _javascript_:<script language='_javascript_' charset='utf-8' src='/Symph/flex-internal?action="">>script> Now the _javascript_ error I’m getting suggests this file is not loaded. Has anyone come across the situation where jrun stops serving pages? Restarting it twice seems to wake it back up. Ta Steve

 

 








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



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Flex / Jrun Instability?

2005-11-15 Thread Steve Cox










Guys &
Girls,

Seem to be
having an odd problem with getting and keeping a Jrun server stable.

The Jrun server is installed, flex installed on it and IIS is connected. Now this works fine (took a while to get it working, but it’s now working right). However when uploading changes to the app, sometimes the page will hang. What’s strange is we also get a _javascript_ error when this happens. The html source is published to the page but no swf is then viewable. The _javascript_ error says the following variable is underfined: lc_id . Looking at the source code the following line is obviously pulling in some _javascript_: