Re: [flexcoders] copyright notices in code

2009-01-20 Thread Doug McCune
> How do people add copyright notices to their code? When they create a
> new file?

I've only ever done manual copy/paste at the top of each file.

>
> What if the notice changes? Do they use ant to add it before
> compilation to each file?

There's no point in adding copright notices before compilation.
Comments are stripped from compiled code.

>
> Does compiling Flex remove the copyright notice? If so, should one
> worry about having a copyright notice in the code for if/when it is
> decompiled?

Again, all comments are stripped, so there's no point. And if someone
is decompiling your code, chances are they know that they don't own
the copyright :) they just probably don't care.

Doug


[flexcoders] using flekristal skin in flex sdk 3.0

2009-01-20 Thread Rahul Kandari
hi all,
   currently I m using Flekristal skin  flex sdk 2.0 hotfix 3. When I switch
my project to flex sdk 3.0 the Flekristal skin is not behaving properly.Is
there any workout to handle the skin in flex sdk 3.0
 thanks


Rahul Kandari


[flexcoders] Re: Applying a style GroupingFields in an AdvancedDataGrid

2009-01-20 Thread Amy
--- In flexcoders@yahoogroups.com, "Bill"  wrote:
>
> is there any way to apply a styleFunction to a Grouping Field, so 
that, 
> for instance, the row is a different color based on which level of 
> grouping it is?
> 
> For Example
> 
> Level 0  <- Red
> =>Level 1<- Green
> =>=>Level 2  <- Blue
> =>=>->Item 1 <- default style
> =>=>->Item 2 <- default style
> =>Level 1<- Green
>

You should be able to cast the dataProvider of the ADG to 
HierarchicalCollectionView and then use getNodeDepth:

private function styleFields(data:Object, 
column:AdvancedDataGridColumn):Object {
   var dataProvider:HierarchicalCollectionView = 
HierarchicalCollectionView(yourADG.dataProvider);
   var depth:int = dataProvider.getNodeDepth(data);
   switch(depth) {
  case 0:
 return {color:0xFF};
  case 1:
 return {color:0x00FF00};
  case 2:
 return {color:0xFF};
  default:
 return null;
   }
}

HTH;

Amy
  
}



[flexcoders] copyright notices in code

2009-01-20 Thread arieljake
How do people add copyright notices to their code? When they create a
new file? 

What if the notice changes? Do they use ant to add it before
compilation to each file? 

Does compiling Flex remove the copyright notice? If so, should one
worry about having a copyright notice in the code for if/when it is
decompiled?

Anyone notice that comments are removed from an MXML file when it is
edited in design mode?

Any and all responses are invited!



Re: [flexcoders] UPS shipping online tools example?

2009-01-20 Thread Paul Kukiel
If you are using Coldfusion as he backend there is this project  
available: http://cfups.riaforge.org/


Paul.


On 20/01/2009, at 10:34 PM, luvfotography wrote:


Hi, has anyone integrated the UPS online tools with FLEX??

Or is there any other easy solution to figure out
shipping charges for an online store?

thanks,







[flexcoders] UPS shipping online tools example?

2009-01-20 Thread luvfotography
Hi, has anyone integrated the UPS online tools with FLEX??

Or is there any other easy solution to figure out 
shipping charges for an online store?

thanks,




[flexcoders] Font's not loading in IE?

2009-01-20 Thread tchredeemed
I have noticed that when I embed my fonts they load fine in Mac -

Safari
Firefox

However, on a Windows machine -

IE 6/7
Google Chrome
Firefox

The fonts do not load correctly.

Anyone know why this happens?  Even in some places, the fonts look
fine, however in a lot of places they won't seem to load correctly...

Odd behavior, not sure what the cause is...



[flexcoders] RTL with FP10, Flex 3

2009-01-20 Thread Hyder
I tried reading docs on the new text layout framework but I found it 
really confusing. I'd love to get some quick tips on getting started 
with rendering text from right to left.



[flexcoders] Cocomo: transparent whiteboard

2009-01-20 Thread Hyder
Is it possible to make the whiteboard transparent so I can overlay it 
over an image or a pdf?



[flexcoders] States management framework?

2009-01-20 Thread Hyder
I need a simpler and more intuitive way of managing my view and 
component states. I presently use cairngorm but it doesn't have a 
built in state management. I use the old fashioned custom events and 
model bindings.




[flexcoders] Re: Flex Builder 3 crashes (Vista)

2009-01-20 Thread Dmitri Girski
Thank you Kevin!

I will try to do this during the next FB update. I had a gut feeling
that having just an Eclipse & FB plugin is much better due to wider
support (Java freaks :)

PS I have submitted a bug re. FlexBuilder.ini. 
https://bugs.adobe.com/jira/browse/FB-16668
Seems like it ignores standard location and get the params from some
.configuration dir instead.

Cheers,
Dmitri.

--- In flexcoders@yahoogroups.com, "Kevin Benz"  wrote:
>
> On Vista, I would search for other copies of that file in weird places.
> A synchronization folder for example. I have no experience running
> FlexBuilder(FB) on Vista as I prefer to avoid painful challenges where I
> can. 
> 
>  
> 
> Here is an idea for you (although a little off topic). 
> 
>  
> 
> We don't install the full FB IDE but rather do the follow.. It also
> makes FB a lot faster and reduces the memory overhead.. This may seem
> really strange.
> 
>  
> 
> All of our developers install the C++ version of Eclipse 3.3.2 and then
> disable the C++ plug-in. Then install the FB plug-in. There is just so
> much goo that comes in with standard FB from Java and JDT that when you
> will be surprised how quickly it boots. Downside is that those who do
> both Java and FB end up with two installs but we try to isolate Flex
> developers from IDE pain so I don't let them install many plug-ins
> anyway. 
> 
>  
> 
> The way the MXML preview component leaks memory, you have to take
> whatever shortcuts you can.
> 
>  
> 
> KFB
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Dmitri Girski
> Sent: Monday, January 19, 2009 2:56 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Flex Builder 3 crashes (Vista)
> 
>  
> 
> Hi Kevin,
> 
> Thank you very much for such detailed instructions.
> 
> First, I looked into the log - the exception I can see there is the
> following:
> !MESSAGE Error creating actionscript project for ui_login
> !STACK 1
> org.eclipse.core.runtime.CoreException: Error Loading Project
> 
> Then, I just recreated the new workspace and so far (2 days yet) have
> not got any crashes. Who-hoo!
> 
> PS Do you have any idea why FlexBuilder.ini is ignored under Vista?
> 
> Cheers,
> Dmitri.
> 
> --- In flexcoders@yahoogroups.com 
> , "Kevin Benz"  wrote:
> >
> > Been there, done that.
> > 
> > 
> > 
> > OK..
> > 
> > 
> > 
> > There are two paths for you.
> > 
> > 
> > 
> > Eclipse Errors: Eclipse makes mountains of log entries so you need to
> > isolate Flex issues from Eclipse Issues. Go through the eclipse logs
> > looking for errant components and Null Pointer Exceptions. Although
> the
> > openness of eclipse encourages the addition of all kinds of great and
> > not so great components (Java, Maven, Data Tools, JDT), I believe
> > strongly that the Flex development environment should be sandboxed and
> > kept single purpose. Yes, I have two eclipse installs. 
> > 
> > 
> > 
> > Flex: Flex issues like this, we have found to be resultant to the
> > operation of Flex and the operation of SCM and SDK upgrades. I see you
> > are using 3.0.2 which tells me your recently updated to the 3.2 SDK. I
> > am convinced that Flex cannot handle an SDK upgrade well. Let me
> > explain. We have a very large project that started during SDK 3.0 with
> > the project files being checked into Subversion as 3.0 files. Now
> there
> > are lots of argument regarding checking in project files as in most
> > cases they can become platform and developer specific, after going to
> > the 3.1 SDK we lost the ability to use the compiler options tab in the
> > project properties window with Flex complaining about the SDK string
> > value. After a few minutes the IDE becomes unstable and crashes. No
> > matter what we did, we could not recover (copy files around between
> > developers, manually fixup the SDK and locale strings). If you checked
> > out your project again, you have project files built for a different
> > SDK. 
> > 
> > 
> > 
> > In over for us to overcome this, here is what we do. 
> > 
> > 
> > 
> > 1. BACKUP EVERYTHING
> > 
> > 2. Turn off automatic build
> > 
> > 3. Find all instances of files with the .cache extension within
> > the Flex plug-in directories THAT START WITH YOUR PROJECT NAME (for
> > example myproject.cache) and remove them. They automatically come back
> > when the compiler runs. 
> > 
> > 4. Use FlexBuilder to create a new Empty Workspace. Leave the old
> > one alone if we need to get back to it. WE DO NOT MAKE ANY CHANGES TO
> > THE OLD WORKSPACE
> > 
> > 5. In FlexBuilder, create new copies of the project(s) in the new
> > workspace USING THE EXACT NAMES OF THE PRESENT PROJECTS. Leaving these
> > projects empty, in their initial state. This will create new project
> > files with the correct SDK string, locale, etc etc.
> > 
> > 6. Backup these new projects from the new workspace and put them
> > aside.
> > 
> > 7. If using SCM, checkout the project(s) i

[flexcoders] Re: local date is wrong

2009-01-20 Thread Link Mckinney
--- In flexcoders@yahoogroups.com, "Link Mckinney"  
wrote:
>
> I am just simply trying to set a simple date
> 
> var longdate:Date = new Date(2030,12,30);
> 
> this suppose to set longdate to 2030-12-30 but insead it creates
> 
> Thu Jan 30 00:00:00 GMT-500 2031
> 
> Why can't I just create a simple date based on what values I give it?
wtf
> 
> thanks Link
>


Never mind, I see my screw up month is zero based, so its 0 to 11, 11  
being december. which is kicking my year over too



Re: [flexcoders] local date is wrong

2009-01-20 Thread Nate Beck
What you are looking for is the DateFormatter.
var df:DateFormatter = new DateFormatter();
df.formatString = "-DD-MM";
trace(df.format(longdate));

HTH,
Nate

On Tue, Jan 20, 2009 at 6:00 PM, Link Mckinney  wrote:

>   I am just simply trying to set a simple date
>
> var longdate:Date = new Date(2030,12,30);
>
> this suppose to set longdate to 2030-12-30 but insead it creates
>
> Thu Jan 30 00:00:00 GMT-500 2031
>
> Why can't I just create a simple date based on what values I give it?wtf
>
> thanks Link
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] local date is wrong

2009-01-20 Thread Link Mckinney
I am just simply trying to set a simple date

var longdate:Date = new Date(2030,12,30);

this suppose to set longdate to 2030-12-30 but insead it creates

Thu Jan 30 00:00:00 GMT-500 2031

Why can't I just create a simple date based on what values I give it?wtf

thanks Link



Re: [flexcoders] Re: Add effect dynamically

2009-01-20 Thread Josh McDonald
You can use Strings, but they might need to be fully qualified when doing it
from ActionScript instead of CSS. You can also use

obj.setStyle("moveEffect", Move);

and

obj.setStyle("moveEffect", myMoveInstance);

Note that "myMoveInstance" would be an instance of mx.effects.Move, *not* an
instance of mx.effects.effectClasses.MoveInstance

-Josh

2009/1/21 oneworld95 

> Haven't tested this, but this might be a way to accomplish it:
>
> var btn:Button = new Button();
> btn.setStyle("mouseDownEffect", "glowImage");
> btn.setStyle("mouseUpEffect", "unglowEffect");
>
> Will try it in the morning. Didn't realize effects were set using styles.
>
> - Alex
>
> --- In flexcoders@yahoogroups.com, "oneworld95"  wrote:
> >
> > Is there a way to add mouseDown and mouseUp effects to a button that's
> > being added dynamically via ActionScript?
> >
> > For example, if the button were created via MXML, it would look like
> this,
> >
> >  > mouseDownEffect="{glowImage}" mouseUpEffect="{unglowImage}"
> > click="showHelp()" />
> >
> > - Alex
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


RE: [flexcoders] FMS attaching custom metadata to recorded streams

2009-01-20 Thread Ryan Graham

Ahh... nevermind this one. I accidentally had the onMetaData handler set
as private instead of public. Everything is working as expected now.

 

-Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Graham
Sent: Tuesday, January 20, 2009 4:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FMS attaching custom metadata to recorded streams

 

Hi All,

 

Can anyone point me to some resources showing how to attach custom
metadata properties to streams that are recorded via FMS? I've been
wrestling with it for a while and think I am just missing something
obvious somewhere.

 

I was trying the following sequence of events with no luck:

 

Start publishing:

 

myNetstream.publish("teststream", "record");

 

Set the metadata on the NetStream.Publish.Start or
NetStream.Record.Start events:

 

var myMetaData:Object = new Object();

myMetaData.author = "some author";

myNetstream.send("@setDataFrame", "onMetaData", myMetaData);

 

Everything records fine, and then when I playback the stream and
enumerate the metadata properties in the onMetaData callback, I only see
the default properties that FMS attaches, like duration, audiocodecid,
etc.  The author property assigned above returns as "undefined".

 

Any help is much appreciated.

 

Thanks

Ryan

This message is private and confidential. If you have received it in
error, please notify the sender and remove it from your system.

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Re: Add effect dynamically

2009-01-20 Thread oneworld95
Haven't tested this, but this might be a way to accomplish it:

var btn:Button = new Button();
btn.setStyle("mouseDownEffect", "glowImage");
btn.setStyle("mouseUpEffect", "unglowEffect");

Will try it in the morning. Didn't realize effects were set using styles.

- Alex

--- In flexcoders@yahoogroups.com, "oneworld95"  wrote:
>
> Is there a way to add mouseDown and mouseUp effects to a button that's
> being added dynamically via ActionScript?
> 
> For example, if the button were created via MXML, it would look like
this,
> 
>  mouseDownEffect="{glowImage}" mouseUpEffect="{unglowImage}"
> click="showHelp()" />
> 
> - Alex
>




Re: [flexcoders] FB debug constantly logs to console

2009-01-20 Thread John Van Horn
Yep, that was it...a bug in our code. Thanks Josh.

FlexBuilder, I take back every bad thing I said about you.well, at least
in the last hour.

On Tue, Jan 20, 2009 at 5:53 PM, Josh McDonald  wrote:

>   You're probably loading images or something along those lines using a
> SWFLoader or one of its subclasses such as Image. This is simply Player
> telling you about it decoding the results and adding them to the VM.
>
> -Josh
>
> 2009/1/21 John Van Horn 
>
>  All of a sudden a few days ago, launching a debug session in FB3, results
>> in FB (or maybe debug player) logging constantly to the console. I get about
>> 2 of these messages a second, and it doesnt stop till I terminate the debug
>> session. This does not output to flashlog.txt. It makes reading traces in FB
>> console very difficult.
>>
>> Anybody experienced this or know a solution?
>>
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 2,747 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 997 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 1,646 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 985 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 985 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 1,646 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 3,798 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 686,596 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>>
>> --
>> John Van Horn
>> jmvanh...@gmail.com
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Like the cut of my jib? Check out my Flex blog!
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: j...@gfunk007.com
> :: http://flex.joshmcdonald.info/
> :: http://twitter.com/sophistifunk
>  
>



-- 
John Van Horn
jmvanh...@gmail.com


RE: [flexcoders] Playing Mp4 audio with Sound class?

2009-01-20 Thread Ryan Graham

Sorry for the delay on this one... The closest I could find in JIRA was
FP-5, which is related mostly to the video portion of netstreams.  Does
anyone know the issue number for this one? I'd like to vote it up too.

http://bugs.adobe.com/jira/browse/FP-5

Thanks,
Ryan

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Charlie Hubbard
Sent: Thursday, January 15, 2009 2:45 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Playing Mp4 audio with Sound class?

No can do.  I'm in an AIR app so I'm trying not to rely on the server
for this type of operation.

Uggg.  Adobe...

Any chance you know what's the Jira Issue number?  I'd like to bump up
the vote on it.

Charlie

On Thu, Jan 15, 2009 at 3:46 PM, Ryan Graham 
wrote:
> I believe that is the case. You can only use extract on mp3 files with
the
> Sound object and not on  streams with Netstream - unfortunately this
feature
> didn't make it into FP10 (hopefully FP11?). Depending on your setup,
one
> option might be to use a tool like ffmpeg to convert the mp4 to an mp3
> server-side, and then load that into a Sound object to do the
extraction.
>
>
>
> HTH,
>
> Ryan
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On
> Behalf Of Charlie Hubbard
> Sent: Thursday, January 15, 2009 1:14 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Playing Mp4 audio with Sound class?
>
>
>
> So I'm trying to play Mp4 audio files with Sound, but it doesn't seem
> to work. I have gotten it working with NetStream class, but I'd
> really like to use the extract() method to get the underlying samples
> form the mp4 files just as I can with mp3. Am I correct in that Sound
> class doesn't support mp4, but only mp3?
>
> What's the deal with that? Is Sound a wrapper around NetStream? If
> so how could I get the samples?
>
> Charlie
>
> This message is private and confidential. If you have received it in
error,
> please notify the sender and remove it from your system.
>
> 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links




This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.


[flexcoders] FMS attaching custom metadata to recorded streams

2009-01-20 Thread Ryan Graham

Hi All,

 

Can anyone point me to some resources showing how to attach custom
metadata properties to streams that are recorded via FMS? I've been
wrestling with it for a while and think I am just missing something
obvious somewhere.

 

I was trying the following sequence of events with no luck:

 

Start publishing:

 

myNetstream.publish("teststream", "record");

 

Set the metadata on the NetStream.Publish.Start or
NetStream.Record.Start events:

 

var myMetaData:Object = new Object();

myMetaData.author = "some author";

myNetstream.send("@setDataFrame", "onMetaData", myMetaData);

 

Everything records fine, and then when I playback the stream and
enumerate the metadata properties in the onMetaData callback, I only see
the default properties that FMS attaches, like duration, audiocodecid,
etc.  The author property assigned above returns as "undefined".

 

Any help is much appreciated.

 

Thanks

Ryan



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Re: [flexcoders] FB debug constantly logs to console

2009-01-20 Thread Josh McDonald
You're probably loading images or something along those lines using a
SWFLoader or one of its subclasses such as Image. This is simply Player
telling you about it decoding the results and adding them to the VM.

-Josh

2009/1/21 John Van Horn 

>  All of a sudden a few days ago, launching a debug session in FB3, results
> in FB (or maybe debug player) logging constantly to the console. I get about
> 2 of these messages a second, and it doesnt stop till I terminate the debug
> session. This does not output to flashlog.txt. It makes reading traces in FB
> console very difficult.
>
> Anybody experienced this or know a solution?
>
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 2,747 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 997 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 1,646 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 985 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 985 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 1,646 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 3,798 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 686,596 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
> [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
>
> --
> John Van Horn
> jmvanh...@gmail.com
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


[flexcoders] FB debug constantly logs to console

2009-01-20 Thread John Van Horn
All of a sudden a few days ago, launching a debug session in FB3, results in
FB (or maybe debug player) logging constantly to the console. I get about 2
of these messages a second, and it doesnt stop till I terminate the debug
session. This does not output to flashlog.txt. It makes reading traces in FB
console very difficult.

Anybody experienced this or know a solution?

[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 2,747 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 997 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 1,646 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 985 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 985 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 1,646 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 3,798 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 686,596 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
[SWF] Users:jvanhorn:player.swf - 0 bytes after decompression

-- 
John Van Horn
jmvanh...@gmail.com


Re: [flexcoders] hug cell contents in one cell on a datagrid

2009-01-20 Thread dnk
Well my problem is that the itemrenderer is rendered out, and the  
renderer changes size (state, etc), and when it does so, the cell just  
adds scroll bars to it. I was hoping that the cell could not add  
scroll bars, but rather readjust it's size for the new state.

d



On 20-Jan-09, at 11:19 AM, Alex Harui wrote:

>
> Not sure I understand.  variableRowHeight will allow a row to adjust  
> to measuredHeight of a renderer.
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]  
> On Behalf Of dnk
> Sent: Monday, January 19, 2009 1:54 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] hug cell contents in one cell on a datagrid
>
>
>
>
> On 16-Jan-09, at 3:46 PM, dnk wrote:
>
> > Curious
> >
> > Is there a way to force once cell of a datagrid to resize itself to
> > hug the contents?
> >
> > I have an item renderer in a cell that changes size, and i wanted  
> the
> > datagrid cell to always resize with the contents.
> >
> > Thanks!
> >
> > d
> >
>
> In an effort to put something together for this, i have written an
> event that passes the dimensions through. Now my problem is that the
> mx:DataGridColumn does not accept a "height" attribute.
>
> There has to be someway to deal with this.
>
> Any ideas?
>
> d
>
>



RE: [flexcoders] LCDS - adding a new Item using createItem()

2009-01-20 Thread Jeff Vroom
There are actually two tokens for that operation - one returned from the 
createItem call itself.   It is actually a subclass of AsyncToken called 
ItemReference.  It has a bindable "result" value which gets set when the result 
comes in.First we'll deliver the result event for the createItem's token, 
then we deliver it for the batch itself.

The result for the commit token is not going to be the newly created item but 
the result for the createItem's token should be that item.

I'm still not sure why you are not seeing your id get set though... it should 
be set in the very same instance you pass to createItem.   The client and 
server debug logs would be the best way to track that down.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Besite - Bart
Sent: Tuesday, January 20, 2009 1:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] LCDS - adding a new Item using createItem()


Hi,

Below is some code from my test application.  I am trying to create a new 
user-object using the createItem() method of my AbstractAssembler.
I have bound an event listener to my DataService that listens for ResultEvents. 
 The  resultHandler is called twice when createItem()  is called.

The first time the resultHandler is called, I get back my user-object, but with 
id 0 and event.token.kind = undefined.  So I have two problems,
why is the id of my user 0 (when I print it out serverside the id of the 
user-object is different from 0) and why is event.token.kind undefined (instead 
of "create")...

The second time the resultHandler is called event.token.kind equals "create" 
and the result is a mx.messaging.messages.AcknowledgeMessageExt

I hope you can help me out here...

Bart

My Flex code :

private function init():void
{
ds = new DataService("user");
ds.addEventListener(ResultEvent.RESULT,resultHandler);
ds.autocommit = false;
}

private function createUser():void
{
 var user:User = new User("Jeff");
 ds.createItem(user)

 var token:AsyncToken = ds.commit();
 token.kind = "create";
}

private function resultHandler(event:ResultEvent):void
{
 if(event.token.kind == "create")
 {
...
 }
 else
 {
  
 }
}

Java code  :

UserAssembler.java

   ...

   public void createItem(Object item)
   {
  UserDAO dao = new UserDAO();

  User newUser = (User) item;

  User user = dao.createUser(newUser);

  System.out.println("UserId " + user.getId());
   }

Kind Regards
Bart


Jeff Vroom schreef:
As long as your assembler's "createItem" method populates identity property of 
the item passed in, it should be returned to the client and updated there when 
the commit response is received by the client. To help diagnose why this is 
not happening, first upgrade to 2.6.1 (on the product download page) since it 
has better diagnostics than the earlier versions.   Secondly, enable the 
server's debug log target for Service.*.In the logs, should see it calling 
your createItem method and what value gets returned for the identity property.  
If it all looks correct there, check the client  logs and make 
sure that value makes it back to the client.   It should indicate in the client 
logs that it is updating the cache and that the id property is getting updated 
there.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Besite - Bart
Sent: Sunday, January 18, 2009 5:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS - adding a new Item using createItem()


Hello,

In my Data Management Service I create a new User-object using the
createItem() function :

ds.createItem(new User("Jeff"));
var token:AsyncToken = ds.commit();
token.kind = "create";

When the commit is sent, the new User is persisted to the server... In
my database an autoincrement id is generated,
but the object returned to the Flex client has still an id equal to 0.

How do I know the unique id of the created User-object on the
client-side ? I need this unique id to do some remote calls as soon as
it is created on the server...

Any help is welcome !

Kind regards
Bart


<><>

RE: [flexcoders]TextLayoutFramework - support for graphics / swfs?

2009-01-20 Thread Jim Hayes
Forgive me for asking, Gordon, but could you give an idea of the status of 
support for tables and lists (, ,  sort of thing) ?
I appreciate you may not be able to comment, but if you are then any 
information would be most welcome.
I had a good look at the pre release on labs and came to the conclusion that I 
might be able to implement something myself,
but thought it might be better to see what came in the next preview or alpha.
Rather than attempt what for me would be quite a testing project (to say the 
least) that could be obsoleted by that release, that's to say.
Many thanks.

* regarding flowing text around images, I thought you might be able to do that 
quite nicely
 with linked containers and some existing flex layout components for a one off 
screen,
but I chickened out completely when it got to putting that into some kind of 
parse-able markup.

-Original Message-
From: flexcoders@yahoogroups.com on behalf of Gordon Smith
Sent: Tue 20/01/2009 21:51
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]TextLayoutFramework - support for graphics / swfs?
 
A1: This is under investigation, but may not make it into TLF 1.0 / Flex 4.0. 
If it gets in, what will be supported will probably be a 'float' attribute on 
the  tag, allowing a graphic within the text to be pinned to the left or 
right of the container -- but vertically positioned based on where it appears 
in the TextFlow -- with the text wrapping around it. Wrapping text around an 
absoloutely-positioned graphic will almost certainly not be supported in the 
first release.

A2: You should be able to set the 'source' of an  to a SWF. A Loader will 
get created to load the SWF. If you haven't specified the width or height, 
they'll be determined by the Loader.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dorkie dork from dorktown
Sent: Tuesday, January 20, 2009 2:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]TextLayoutFramework - support for graphics / swfs?


Q1
I saw that there is support for inline graphics but is there support for 
wrapping text around an image?

Q2
Is there support for an inline swf?



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__<>

[flexcoders] Add effect dynamically

2009-01-20 Thread oneworld95
Is there a way to add mouseDown and mouseUp effects to a button that's
being added dynamically via ActionScript?

For example, if the button were created via MXML, it would look like this,



- Alex



RE: [flexcoders]TextLayoutFramework - support for graphics / swfs?

2009-01-20 Thread Gordon Smith
A1: This is under investigation, but may not make it into TLF 1.0 / Flex 4.0. 
If it gets in, what will be supported will probably be a 'float' attribute on 
the  tag, allowing a graphic within the text to be pinned to the left or 
right of the container -- but vertically positioned based on where it appears 
in the TextFlow -- with the text wrapping around it. Wrapping text around an 
absoloutely-positioned graphic will almost certainly not be supported in the 
first release.

A2: You should be able to set the 'source' of an  to a SWF. A Loader will 
get created to load the SWF. If you haven't specified the width or height, 
they'll be determined by the Loader.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dorkie dork from dorktown
Sent: Tuesday, January 20, 2009 2:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]TextLayoutFramework - support for graphics / swfs?


Q1
I saw that there is support for inline graphics but is there support for 
wrapping text around an image?

Q2
Is there support for an inline swf?



[flexcoders] Applying a style GroupingFields in an AdvancedDataGrid

2009-01-20 Thread Bill
is there any way to apply a styleFunction to a Grouping Field, so that, 
for instance, the row is a different color based on which level of 
grouping it is?

For Example

Level 0  <- Red
=>Level 1<- Green
=>=>Level 2  <- Blue
=>=>->Item 1 <- default style
=>=>->Item 2 <- default style
=>Level 1<- Green




RE: [flexcoders] internationalization

2009-01-20 Thread Gordon Smith
Haykel is probably talking about loading a resource module. The resource 
bundles in a resource module automatically get added to the ResourceManager.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Yves Riel
Sent: Tuesday, January 20, 2009 4:16 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] internationalization

Haykel, out of curiosity, when you load them dynamically at run-time, do you 
pass them to the resource bundle manager? That's what we did but I'm curious to 
see what other did and if there are a open source libraries that do just that. 
We didn't find any at the time so we had to do it all ourselves.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Haykel BEN JEMIA
Sent: Tuesday, January 20, 2009 3:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] internationalization
Use resource bundles. If you only have 2 or 3 languages and the resources are 
not heavy in size, you can simply compile them in the application, otherwise 
load them at runtime.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com



On Tue, Jan 20, 2009 at 6:46 AM, Scott 
mailto:h...@netprof.us>> wrote:

I'm working on a project that requires multiple languages. I'm thinking
I have two choices...

1) Use an XML file to change the text to different languages
2) Create a query/remote object through coldfusion to pull the different
language.

Are those my only options? Or should I say, what is the best way to do
this? Has anyone done this or come across any articles? The articles
I've found thus far deal with changing the currency/calendar/etc..
While that is something that I need to use, it's not the whole story...

Thanks much.
Scott




[flexcoders] File download from server

2009-01-20 Thread oneworld95
I've run into an interesting situation with Flex: I've got a Java
servlet that will generate a Zip file when the user clicks a button in
Flex. But the file download dialog after the server action requires
the user to click a button. It throws this error:

Error: Error #2176: Certain actions, such as those that display a
pop-up window, may only be invoked upon user interaction, for example
by a mouse click or button press.

So how do you handle these situations? After the server responds
successfully, do you display a second button to do the actual Flex
file download? 

- Alex



Re: [flexcoders] AIR: Detecting when window resize is complete (mouse up)

2009-01-20 Thread Aaron Hardy
Lushen, thanks for the response.

Are you saying that you are able to receive MOUSE_UP events from your
application when the user lets go of the mouse button as they finish
resizing the application's window?  I don't.  On my application, I have:

addEventListener(MouseEvent.MOUSE_UP, test);

While I can click inside the application window and see the mouse_up events,
if I click the edge of the window, resize it, and let go, I don't get any
MOUSE_UP event.  I get the same results if I add the event listener to the
stage or nativeWindow as well.

If I use MOUSE_OUT or ROLL_OVER, I likewise don't receive any events because
the cursor is not inside the application bounds while it's resizing the
window.   If I used MOUSE_OVER, the user would have to make the cursor enter
the application area after resizing the window in order for the event to be
dispatched.

Any other ideas?  Thanks!

Aaron

On Thu, Jan 15, 2009 at 8:09 PM, Lushen Wu  wrote:

>I use mouseup in my application.. it seems to work for me. you coudl
> also play around with MOUSE_LEAVE and ROLL_OVER for the stage
> (activate the rollover listener for resize whenever you get a RESIZE event,
> then remove the listener when you have satisfactorily resized)
>
> Cheers,
> Lushen
>
>
>
> On 1/15/2009 3:56 PM, Aaron Hardy wrote:
>
>  Hey folks,
>
> In my project I have a component that is a percentage width of its
> containing window. When the user resizes the window, it triggers the
> component to update its display list WHILE the user is dragging the
> window resize handle. Rather than updating the component's display
> while the user is dragging, I'd like to wait until the user lets go of
> the drag to update the component's display. Is there an event I can
> capture that will tell me when the user releases the mouse button after
> a window resize? NativeWindow.resize seems to be dispatched while the
> user is resizing. While that's not what I'm looking for, I tried
> watching that event and then adding a mouse up event listener to both
> the stage and native window to detect when the user then lets go of the
> mouse button, but a mouse up event never seems to be dispatched when the
> user releases the mouse button after resizing.
>
> Does anyone know of a good way to detect this or know of a creative
> workaround? Thanks!
>
> Aaron
>
>
>  
>


[flexcoders] Re: Getting the style from CSS to apply on a styleFunction

2009-01-20 Thread João
It worked like a charm!! Thank you Amy :)



RE: [flexcoders] Roles Based UI

2009-01-20 Thread Dimitrios Gianninas
I do use binding, just forgot to mention that.
Example:
 

 
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Gregor Kiddie
Sent: Tuesday, January 20, 2009 9:58 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Roles Based UI



As someone who is currently re-working their Role Based Access Control 
mechanism, point 2 is the wrong way around.

It leaks the roles into the rest of the client and stops all your business 
logic being in one place. Incidentally, this is how we currently do it, and I 
can show how it's a pain when new roles are added.

The better solution is to bind the visibility (enabled, etc, however you deal 
with not having the correct authorization) of the UIComponent to a hasAccess( 
componentKey : String ) method on the User class.

This has benefits of meaning that all the code for deciding on access is in one 
place (and makes it very easy to alter / add / remove roles and components), 
and by binding it, if the authentication changes for any reason, the view can 
be updated quickly and cleanly.

A pitfall to watch out for is hiding pieces of UI which has unexpected 
behaviour. For example, not showing a piece of the form if the user doesn't 
have the auth to change that data, if your backend deletes any data it isn't 
sent by the client, it is easy to turn a "not authorised" into a "delete lots 
of data". So make sure your client behaviour fits the use cases defined by your 
back end.

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dimitrios Gianninas
Sent: 20 January 2009 14:33
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Roles Based UI

Pretty simple:

1) Once you app is loaded, call your server to load the user info

2) Assuming you have a User class with a method isUserInRole( role:String ); 
... then use this on various Buttons/fields/views to show/hide based on if the 
user has a particuliar role or not

Dimitrios Gianninas

RIA Developer Team Lead

Optimal Payments Inc.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Monday, January 19, 2009 1:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Roles Based UI

Hi

I am developing role based GUI. Can anybody please point to best 
practices or any flex article which can help to achieve this.

Thanks
ilikeflx

AVIS IMPORTANT

WARNING

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

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

 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient. 

[flexcoders] Re: AdvancedDataGrid itemIcons

2009-01-20 Thread Bill
--- In flexcoders@yahoogroups.com, "c_higgon" 
 wrote:
>
> 
> Look at setting the following parameters null on AdvancedDataGrid 
> object:
>   folderOpenIcon="{null}"
>   folderClosedIcon="{null}"
>   defaultLeafIcon="{null}" 
>   
> ~Chris
> 
> --- In flexcoders@yahoogroups.com, "Bill"  wrote:
> >
> > What would be the best way to remove the itemIcons from the 
> > AdvancedDataGrid?
> >
>
I was missing the defaultLeafIcon.  Thanks.

itemIcons is misleading in this regard to me.



[flexcoders] Re: Chart DataTime series - forcing the start and end points?

2009-01-20 Thread sunild999999
--- In flexcoders@yahoogroups.com, "jamiebadman"  wrote:
>
> Hi,
> 
> Is there a way to force the start and end points of the date time
> axis? I need to show exactly one month on a chart though I may not
> have a full month's worth of data to display.
> 
> Thanks in advance,
> 
> Jamie.
>

The DateTimeAxis for charts has "minimum" and "maximum" properties that
you can specify w/Date objects. 

Sunil



RE: [flexcoders] Re: Problems with POST or GET

2009-01-20 Thread Peter Farland
If you set resultFormat="text" does it work? Is it just not working for 
resultFormat="e4x"?

Have you confirmed that the request is actually making it to the server, and 
have you confirmed the nature of the response that comes back (using an HTTP 
sniffer tool, like Charles or Paros Proxy)?

Also, try adding a  tag in your MXML Application 
and then use a debugger to launch your application. Try to look for errors in 
the debug console that may not be making it through to the fault handler.


Pete

> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of markgoldin_2000
> Sent: Monday, January 19, 2009 10:17 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Problems with POST or GET
> 
> I have Alert box in a fault handler.
> Never seen it's popping.
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt" 
> wrote:
> >
> > Also, do you have a fault handler?  Have you checked to see if
> it is
> > being called?
> >
> > Tracy Spratt
> > Lariat Services
> >
> > Flex development bandwidth available
> >
> > 
> >
> > From: flexcoders@yahoogroups.com
> [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of Peter Farland
> > Sent: Monday, January 19, 2009 4:39 PM
> > To: flexcoders@yahoogroups.com
> > Subject: RE: [flexcoders] Re: Problems with POST or GET
> >
> >
> >
> > Are you POST'ing to a host on a domain that is not the same as
> the
> > domain hosting the SWF?
> >
> > Are you using HTTPS? If so, does it work when using HTTP?
> >
> > Does it happen in all browsers, or just a particular one?
> >
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
> b4cf-1e62079f6847
> Search Archives: http://www.mail-
> archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> 
> 
> 


[flexcoders] Re: FadeIn Effect not working with custom item renderers in List

2009-01-20 Thread sunild999999
I got your example to work by removing the Canvas tags from this snippet:










Sunil





[flexcoders] Re: Getting the style from CSS to apply on a styleFunction

2009-01-20 Thread Amy
--- In flexcoders@yahoogroups.com, João  wrote:
>
> Ok, I can get the CSSStyleDeclaration using:
> 
> var s2:CSSStyleDeclaration =
> StyleManager.getStyleDeclaration(".incomeValue");
> 
> The problem is that I need to return a simple object. Inspecting the
> content of the CSSStyleDeclaration class, I saw that the "overrides"
> property has the object I need, but that property is protected.
> I can extend this class, and expose the "overrides" property, but 
that
> sounds a bit "hackish". Isn't there a direct way to convert a
> CSSStyleDeclaration to a plain object?

Have you thought about approaching it slightly differently?  Maybe 
this:

private function styleValueLabel(item:Statement,
column:AdvancedDataGridColumn):Object
{
if (item.isIncome) 
return { styleName: incomeValue};
return null;
} 

would work?

HTH;

Amy




[flexcoders] Re: FadeIn Effect not working with custom item renderers in List

2009-01-20 Thread Amy
--- In flexcoders@yahoogroups.com, "tonyjobrien"  wrote:
>
> I'm trying to get the FadeIn effect to work on my List control, but
> I'm having no luck. The custom renderer stays white for the
> FadeInDuration and then appears instantly. If I switch back to using
> the default renderer, all is well. Also, if I have both a list with 
a
> custom renderer and the default at the same time, they both exhibit
> the same behaviour as the custom renderer. Here is a simple Flex app
> that shows the issue (comment out the lists as required).
> 
> FYI, I'm using Flex 3 on Windows XP with Firefox 3.

Try changing:










to









HTH;

Amy




[flexcoders] Re: Warning: CheckVisibility is not a function ?

2009-01-20 Thread Lasse Simonen
Flash Player 9.0.124 doesn't write "Warning: CheckVisibility is not a
function" in to the flashlog.txt, so it seems this is related to FP 10
(tested with 10.0.12.36).



[flexcoders] Re: AdvancedDataGrid itemIcons

2009-01-20 Thread c_higgon

Look at setting the following parameters null on AdvancedDataGrid 
object:
  folderOpenIcon="{null}"
  folderClosedIcon="{null}"
  defaultLeafIcon="{null}" 
  
~Chris

--- In flexcoders@yahoogroups.com, "Bill"  wrote:
>
> What would be the best way to remove the itemIcons from the 
> AdvancedDataGrid?
>




RE: [flexcoders] hug cell contents in one cell on a datagrid

2009-01-20 Thread Alex Harui
Not sure I understand.  variableRowHeight will allow a row to adjust to 
measuredHeight of a renderer.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dnk
Sent: Monday, January 19, 2009 1:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] hug cell contents in one cell on a datagrid


On 16-Jan-09, at 3:46 PM, dnk wrote:

> Curious
>
> Is there a way to force once cell of a datagrid to resize itself to
> hug the contents?
>
> I have an item renderer in a cell that changes size, and i wanted the
> datagrid cell to always resize with the contents.
>
> Thanks!
>
> d
>

In an effort to put something together for this, i have written an
event that passes the dimensions through. Now my problem is that the
mx:DataGridColumn does not accept a "height" attribute.

There has to be someway to deal with this.

Any ideas?

d



[flexcoders] AdvancedDataGrid itemIcons

2009-01-20 Thread Bill
What would be the best way to remove the itemIcons from the 
AdvancedDataGrid?



[flexcoders] Re: Do states and transitions behave differently depending on the context?

2009-01-20 Thread mauricen
There may well be...

It's part of a dialog for creating or editing Foos.  A Foo can be 
either red or green; green Foos also have a pressure and a temperature, 
which red Foos don't have.  When you're creating a Foo, you can select
one of two radio buttons labelled Red/Green.  You can't edit the 
colour of a Foo once it has been created.  

I'm trying to declutter the creation dialog by having it initially
appear with Red selected.  If the user selects Green, the temperature
and pressure controls slide out - that's what the transition is for.
That transition should be reversible, and repeatable.

When editing an existing Foo, the dialog should appear with Red or
Green selected as appropriate, and disabled.  If it's a green Foo
that's being edited, then the pressure and temperature controls should
be available for editing - that's the problem situation at the moment.

A general comment: transitions between states offer a huge potential
win for UI designers; they should make possible much more complex
interfaces than we would previously have dared to consider, because
they support progressive reveals, as in my example.  But if they're 
really as hard to use as this makes it seem, that win may be an
illusion.  I know they are working on a better language for states in
Gumbo - let's hope it improves the experience of programming transitions
as well.

Maurice

--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA  wrote:
>
> Why do you need the one state? Is it only to make the transition
when the
> component is created or do you have other states? What do you want to
> achieve exactly? Perhaps there is a better solution!
> 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
> 
> 
> 
> 
> On Tue, Jan 20, 2009 at 1:42 PM, mauricen wrote:
> 
> >   Thanks very much! It looks as though the transition will work -
or not -
> > depending on when it's invoked in the component creation process.
> > And invoking it at the wrong time (ie as part of initialisation, as I
> > did) prevents it from working later, as in your solution.
> >
> > Transitions seem to have a very steep learning curve. The solution
> > for the toy example /still/ doesn't work in my real application! So
> > there must be some other inexplicable glitch to be isolated...
> >
> >
> > --- In flexcoders@yahoogroups.com ,
Haykel
> > BEN JEMIA  wrote:
> > >
> > > I don't know why it's behaving like that, but it seems to work if
> > you set
> > > the state after the form item has been created, like this:
> > >
> > > http://www.adobe.com/2006/mxml";>
> > > 
> > >  > creationComplete="st.currentState='taskQueue'">
> > > 
> > > 
> > > 
> > > 
> > >
> > > Anyone has an explanation?
> > >
> > > Haykel Ben Jemia
> > >
> > > Allmas
> > > Web & RIA Development
> > > http://www.allmas-tn.com
> > >
> > >
> > >
> > >
> > > On Mon, Jan 19, 2009 at 5:59 PM, mauricen wrote:
> >
> > >
> > > > I have a component which can appear initially in one of two
> > states, and
> > > > can subsequently be switched between them. When this switch takes
> > place,
> > > > I want a transition to occur. Here's a tiny model of my component:
> > > >
> > > > http://www.adobe.com/2006/mxml";>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > If I embed this component (call it MyComp) like this:
> > > >
> > > > http://www.adobe.com/2006/mxml";>
> > > > 
> > > > 
> > > >
> > > > the transition takes place as the component appears, and
everything is
> > > > fine. But if I put it inside a FormItem, like this:
> > > >
> > > > http://www.adobe.com/2006/mxml";>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > the transition never takes place and the two labels remain
> > superimposed.
> > > >
> > > > In fact the problem is a little worse than this. In the toy
> > > > application above, you can replace FormItem by a container
like HBox
> > > > and it works again. But in my real app I can't use it inside a
Form
> > > > at all. What gives?
> > > >
> > > > Maurice
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




RE: [flexcoders] DataGrid Column Sizing issue

2009-01-20 Thread Alex Harui
When horizontalScrollPolicy="off" (default), all columns are scaled to fit 
within the width of the DG.  It makes it kind of hard to insert one column and 
get the sizing you want because existing columns get an extra attempt their 
sizes honored.  One solution is to totally reset the columns array.

If horizontalScrollPolicy="on" or "auto" columns do not get scaled but the last 
column will get stretched as necessary so we don't leave dead space at the far 
right of the scroll area.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dharmendra Chauhan
Sent: Tuesday, January 20, 2009 8:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid Column Sizing issue


Hi All,

I have designed a custom dataGrid which allows user to select
column which he wants to be visiable.Here is the issue which I have
been facing:

When user select two column to be visiable,

Lets assume Col1.with = 25 ,

Col2.with = 20 ,

Expected Result:

It should occupy 25+20 pixel space and adjust
datagrid size accordingly.

Actual Result:

Col1 is occupying correct space but col2 occupies
all rest of the space available on the right hand side i.e. col2 is
to occupying more space than it is suppose to be.

I want col2 to occupy only 20 pixel space.

datagird height and width both are 100 %

Any help would be highly appreciated.

Regards,

Dharmendra Chouhan



RE: [flexcoders] Drag And Drop Tree

2009-01-20 Thread Alex Harui
I don't have time to look into it more right now.  There is drop-in-a-folder 
logic for empty folders in Tree.  Maybe you can leverage that logic.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of claudiu ursica
Sent: Monday, January 19, 2009 1:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Drag And Drop Tree

It can be moved around but cannot be dropped into a folder (branch) unless the 
folder is open. I was adding those handlers, so that i can drop item/items 
inside a closed node... And it works for branches but not for leaf nodes ...

Setting breakpoints in drag/drop generally doesn’t work because you tend to 
release the mouse in order to dig through the debugging info and when you 
resume the drag is cancelled.

The funny thing is that the accurate data seems to be there at a certain time 
when debugged, and i tried to store it in a private member of the component and 
that works fine for branches, it seems that it just looses the data it probably 
when dragging over a branch or I don''t know, but the length is still one so I 
end up in adding an empty leaf. That also happens for the dragComplete handler. 
Still adding an empty leaf...




From: Alex Harui 
To: "flexcoders@yahoogroups.com" 
Sent: Monday, January 19, 2009 11:01:07 PM
Subject: RE: [flexcoders] Drag And Drop Tree
If I remove your handlers, I can move Sent just fine.  In your handler the 
following line is suspicious:

var xml : XML = new XML(items);

because items is an array.  Use XML.toXMLString( ) to make sure you’re trying 
to put in valid data.

From: flexcod...@yahoogro ups.com [mailto:flexcoders@ 
yahoogroups. com] On Behalf Of claudiu ursica
Sent: Monday, January 19, 2009 12:30 AM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Drag And Drop Tree

Hi Alex,
I can move simple leafs from the root under a folder with no custom handlers, 
if the folder is open. However the thing is that I need to just put (maybe just 
copy not move) the item let's say for argument sake "" 
under "Inbox" folder. I cannot do that unless the "sent" is under some folder 
and move it with the folder, because otherwise the DragSource seeems to return 
an item but I cannot get the data from that item. So I end up dropping an empty 
item. However as said before If I move/copy a folder with items around it works 
fine ... The same happends with the drag complete handler, for just one item 
the drags source traces out to blank event though the length is 1.

Claudiu


From: Alex Harui 
To: "flexcod...@yahoogro ups.com" 
Sent: Monday, January 19, 2009 7:47:53 AM
Subject: RE: [flexcoders] Drag And Drop Tree
Setting breakpoints in drag/drop generally doesn’t work because you tend to 
release the mouse in order to dig through the debugging info and when you 
resume the drag is cancelled.

Remove the custom drag event handlers and try with simple data and see if it 
works.  We definitely tested drag/drop in Tree so basic cases work.  One trick 
for Tree is that what happens on drop is different than in List.  The node is 
removed before it is added in Tree, and sometimes that is done in dragComplete 
handler instead of dragDropHandler

From: flexcod...@yahoogro ups.com [mailto:flexcoders@ 
yahoogroups. com] On Behalf Of Claudiu Ursica
Sent: Sunday, January 18, 2009 9:59 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Drag And Drop Tree


Hi I'm trying to implement the drag and drop functionality inside a
tree, dragging and dropping inside the same tree. However It seems
that I cannot drag and drop leaf nodes... When I handle enterDrag
event the item seems to be appearing only at debug time and gets lost
after that...

here is the code..


http://www.adobe. com/2006/ 
mxml"
layout="absolute">



















































so the code seems to be working when drag and dropping an folder but
not when dropping a leaf, I get a new Item with no label.
I have searched the archives for something similar and found only the
same issue posted twice by 2 different guys and no answers. So I
thought I'll have better luck...

TIA,
Claudiu





[flexcoders] FluorineFx - .NET - not converting on 2nd time ??

2009-01-20 Thread rockorgames
hello all.. thx for all the help so far, but since im a noob at flex
and such i ll be making lots of posts lol..


anyway, on my app, in the module i make a some requests to the .net
via remoteobject using the fluorine components..

it works without problems.. i have the class User both in flex and
.net, in flex i am using the [RemoteClass(alias etc.. this class User
im sending via remote to .net 

okey here is the thing.. the when the user load the module the first
time, and send the class User, the .NET method receives it and knows
that its a class User.. okey... 

but when the user unload the module (no memory leak, the module
instance are 0 in the profiler) and then load it again, when it sends
the class User to .net, .net now do not know what that is any more..

in .net the parameter that 1st was a class user, this time is a
ASObject, with keys corresponding the the properties..

since i had to deliver this project today i just did a ugly hack to
manually convert the asobject to the correspoding User class..

but my question is.. why in the 1st time .net understand that the
parameter is a User class and the second time it doesnt ??





Re: [flexcoders] Re: Roles Based UI

2009-01-20 Thread Paul Andrews
UIs implement features and Roles encapsulate features pertinent to a role.

Implement the UI in terms of permitted features and assign feature sets to a 
given role.

Paul

- Original Message - 
From: "ilikeflex" 
To: 
Sent: Tuesday, January 20, 2009 6:09 PM
Subject: [flexcoders] Re: Roles Based UI


Hi

It make sense the way you have implemented.
Then you need to store the mapping between the permissions and role.
correct and what do you do when a new role is added.

Thanks
ilikeflex

--- In flexcoders@yahoogroups.com, "Yves Riel"  wrote:
>
> In our case, we use a similar scheme except that we have roles and
permissions. It is the permission that defines the access to the
component. If the user, in his role, has the permission set to true,
then the user gain access to the component. It is very flexible as
you can create many roles will similar or different permissions. At
the end, you do not tie up the UI to a specific role but to a
permission.
>
> E.g.
>
> 
> 
> 
>
> etc...
>
> You can see here that two buttons can be displayed using the same
permission.
> 
>
> From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex
> Sent: Tuesday, January 20, 2009 12:00 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Roles Based UI
>
>
>
> Hi
>
> Do you mean to say that i should do something like this
> 
>
> In the above i am passing the id of the component.
>
> Then this means that i have to make some mapping between the
> component and Role.
>
> I think this will be more difficult to manage.
>
> Let me know as you are already implementing it. If you could some
> psuedo code then it will be great.
>
> Thanks
> ilikeflex
>
> --- In flexcoders@yahoogroups.com  , "Gregor Kiddie" 
> wrote:
> >
> > As someone who is currently re-working their Role Based Access
> Control mechanism, point 2 is the wrong way around.
> >
> > It leaks the roles into the rest of the client and stops all your
> business logic being in one place. Incidentally, this is how we
> currently do it, and I can show how it's a pain when new roles are
> added.
> >
> > The better solution is to bind the visibility (enabled, etc,
> however you deal with not having the correct authorization) of the
> UIComponent to a hasAccess( componentKey : String ) method on the
> User class.
> >
> > This has benefits of meaning that all the code for deciding on
> access is in one place (and makes it very easy to alter / add /
> remove roles and components), and by binding it, if the
> authentication changes for any reason, the view can be updated
> quickly and cleanly.
> >
> >
> >
> > A pitfall to watch out for is hiding pieces of UI which has
> unexpected behaviour. For example, not showing a piece of the form
if
> the user doesn't have the auth to change that data, if your backend
> deletes any data it isn't sent by the client, it is easy to turn
> a "not authorised" into a "delete lots of data". So make sure your
> client behaviour fits the use cases defined by your back end.
> >
> >
> >
> > Gk.
> >
> > Gregor Kiddie
> > Senior Developer
> > INPS
> >
> > Tel: 01382 564343
> >
> > Registered address: The Bread Factory, 1a Broughton Street,
London
> SW8 3QJ
> >
> > Registered Number: 1788577
> >
> > Registered in the UK
> >
> > Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/  >
> >
> > The information in this internet email is confidential and is
> intended solely for the addressee. Access, copying or re-use of
> information in it by anyone else is not authorised. Any views or
> opinions presented are solely those of the author and do not
> necessarily represent those of INPS or any of its affiliates. If
you
> are not the intended recipient please contact is.helpdesk@
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com  ] On Behalf Of Dimitrios Gianninas
> > Sent: 20 January 2009 14:33
> > To: flexcoders@yahoogroups.com 
> > Subject: RE: [flexcoders] Roles Based UI
> >
> >
> >
> > Pretty simple:
> >
> >
> >
> > 1) Once you app is loaded, call your server to load the user info
> >
> > 2) Assuming you have a User class with a method isUserInRole(
> role:String ); ... then use this on various Buttons/fields/views to
> show/hide based on if the user has a particuliar role or not
> >
> >
> >
> > Dimitrios Gianninas
> >
> > RIA Developer Team Lead
> >
> > Optimal Payments Inc.
> >
> >
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com  ] On Behalf Of ilikeflex
> > Sent: Monday, January 19, 2009 1:18 AM
> > To: flexcoders@yahoogroups.com 

[flexcoders] Re: Roles Based UI

2009-01-20 Thread ilikeflex
Hi

It make sense the way you have implemented.
Then you need to store the mapping between the permissions and role. 
correct and what do you do when a new role is added.

Thanks
ilikeflex

--- In flexcoders@yahoogroups.com, "Yves Riel"  wrote:
>
> In our case, we use a similar scheme except that we have roles and 
permissions. It is the permission that defines the access to the 
component. If the user, in his role, has the permission set to true, 
then the user gain access to the component. It is very flexible as 
you can create many roles will similar or different permissions. At 
the end, you do not tie up the UI to a specific role but to a 
permission.
>  
> E.g.
>  
> 
> 
> 
>  
> etc...
>  
> You can see here that two buttons can be displayed using the same 
permission.
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex
> Sent: Tuesday, January 20, 2009 12:00 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Roles Based UI
> 
> 
> 
> Hi
> 
> Do you mean to say that i should do something like this
> 
> 
> In the above i am passing the id of the component.
> 
> Then this means that i have to make some mapping between the 
> component and Role.
> 
> I think this will be more difficult to manage. 
> 
> Let me know as you are already implementing it. If you could some 
> psuedo code then it will be great.
> 
> Thanks
> ilikeflex
> 
> --- In flexcoders@yahoogroups.com  , "Gregor Kiddie"  
> wrote:
> >
> > As someone who is currently re-working their Role Based Access 
> Control mechanism, point 2 is the wrong way around.
> > 
> > It leaks the roles into the rest of the client and stops all your 
> business logic being in one place. Incidentally, this is how we 
> currently do it, and I can show how it's a pain when new roles are 
> added.
> > 
> > The better solution is to bind the visibility (enabled, etc, 
> however you deal with not having the correct authorization) of the 
> UIComponent to a hasAccess( componentKey : String ) method on the 
> User class.
> > 
> > This has benefits of meaning that all the code for deciding on 
> access is in one place (and makes it very easy to alter / add / 
> remove roles and components), and by binding it, if the 
> authentication changes for any reason, the view can be updated 
> quickly and cleanly.
> > 
> > 
> > 
> > A pitfall to watch out for is hiding pieces of UI which has 
> unexpected behaviour. For example, not showing a piece of the form 
if 
> the user doesn't have the auth to change that data, if your backend 
> deletes any data it isn't sent by the client, it is easy to turn 
> a "not authorised" into a "delete lots of data". So make sure your 
> client behaviour fits the use cases defined by your back end.
> > 
> > 
> > 
> > Gk.
> > 
> > Gregor Kiddie
> > Senior Developer
> > INPS
> > 
> > Tel: 01382 564343
> > 
> > Registered address: The Bread Factory, 1a Broughton Street, 
London 
> SW8 3QJ
> > 
> > Registered Number: 1788577
> > 
> > Registered in the UK
> > 
> > Visit our Internet Web site at www.inps.co.uk 
> http://www.inps.co.uk/  > 
> > 
> > The information in this internet email is confidential and is 
> intended solely for the addressee. Access, copying or re-use of 
> information in it by anyone else is not authorised. Any views or 
> opinions presented are solely those of the author and do not 
> necessarily represent those of INPS or any of its affiliates. If 
you 
> are not the intended recipient please contact is.helpdesk@
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com   
> [mailto:flexcoders@yahoogroups.com  ] On Behalf Of Dimitrios Gianninas
> > Sent: 20 January 2009 14:33
> > To: flexcoders@yahoogroups.com  
> > Subject: RE: [flexcoders] Roles Based UI
> > 
> > 
> > 
> > Pretty simple:
> > 
> > 
> > 
> > 1) Once you app is loaded, call your server to load the user info
> > 
> > 2) Assuming you have a User class with a method isUserInRole( 
> role:String ); ... then use this on various Buttons/fields/views to 
> show/hide based on if the user has a particuliar role or not
> > 
> > 
> > 
> > Dimitrios Gianninas
> > 
> > RIA Developer Team Lead
> > 
> > Optimal Payments Inc.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com   
> [mailto:flexcoders@yahoogroups.com  ] On Behalf Of ilikeflex
> > Sent: Monday, January 19, 2009 1:18 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Roles Based UI
> > 
> > Hi
> > 
> > I am developing role based GUI. Can anybody please point to best 
> > practices or any flex article which can help to achieve this.
> > 
> >

RE: [flexcoders] Re: Roles Based UI

2009-01-20 Thread Yves Riel
In our case, we use a similar scheme except that we have roles and permissions. 
It is the permission that defines the access to the component. If the user, in 
his role, has the permission set to true, then the user gain access to the 
component. It is very flexible as you can create many roles will similar or 
different permissions. At the end, you do not tie up the UI to a specific role 
but to a permission.
 
E.g.
 



 
etc...
 
You can see here that two buttons can be displayed using the same permission.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Tuesday, January 20, 2009 12:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Roles Based UI



Hi

Do you mean to say that i should do something like this


In the above i am passing the id of the component.

Then this means that i have to make some mapping between the 
component and Role.

I think this will be more difficult to manage. 

Let me know as you are already implementing it. If you could some 
psuedo code then it will be great.

Thanks
ilikeflex

--- In flexcoders@yahoogroups.com  , 
"Gregor Kiddie"  
wrote:
>
> As someone who is currently re-working their Role Based Access 
Control mechanism, point 2 is the wrong way around.
> 
> It leaks the roles into the rest of the client and stops all your 
business logic being in one place. Incidentally, this is how we 
currently do it, and I can show how it's a pain when new roles are 
added.
> 
> The better solution is to bind the visibility (enabled, etc, 
however you deal with not having the correct authorization) of the 
UIComponent to a hasAccess( componentKey : String ) method on the 
User class.
> 
> This has benefits of meaning that all the code for deciding on 
access is in one place (and makes it very easy to alter / add / 
remove roles and components), and by binding it, if the 
authentication changes for any reason, the view can be updated 
quickly and cleanly.
> 
> 
> 
> A pitfall to watch out for is hiding pieces of UI which has 
unexpected behaviour. For example, not showing a piece of the form if 
the user doesn't have the auth to change that data, if your backend 
deletes any data it isn't sent by the client, it is easy to turn 
a "not authorised" into a "delete lots of data". So make sure your 
client behaviour fits the use cases defined by your back end.
> 
> 
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel: 01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London 
SW8 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk 
http://www.inps.co.uk/  > 
> 
> The information in this internet email is confidential and is 
intended solely for the addressee. Access, copying or re-use of 
information in it by anyone else is not authorised. Any views or 
opinions presented are solely those of the author and do not 
necessarily represent those of INPS or any of its affiliates. If you 
are not the intended recipient please contact is.helpd...@...
> 
> 
> 
> From: flexcoders@yahoogroups.com   
[mailto:flexcoders@yahoogroups.com  ] On 
Behalf Of Dimitrios Gianninas
> Sent: 20 January 2009 14:33
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Roles Based UI
> 
> 
> 
> Pretty simple:
> 
> 
> 
> 1) Once you app is loaded, call your server to load the user info
> 
> 2) Assuming you have a User class with a method isUserInRole( 
role:String ); ... then use this on various Buttons/fields/views to 
show/hide based on if the user has a particuliar role or not
> 
> 
> 
> Dimitrios Gianninas
> 
> RIA Developer Team Lead
> 
> Optimal Payments Inc.
> 
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com   
[mailto:flexcoders@yahoogroups.com  ] On 
Behalf Of ilikeflex
> Sent: Monday, January 19, 2009 1:18 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Roles Based UI
> 
> Hi
> 
> I am developing role based GUI. Can anybody please point to best 
> practices or any flex article which can help to achieve this.
> 
> Thanks
> ilikeflx
> 
> AVIS IMPORTANT
> 
> WARNING
> 
> Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé. L'expéditeur original ne 
renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation. Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement d

[flexcoders] Chart DataTime series - forcing the start and end points?

2009-01-20 Thread jamiebadman
Hi,

Is there a way to force the start and end points of the date time
axis? I need to show exactly one month on a chart though I may not
have a full month's worth of data to display.

Thanks in advance,

Jamie.



[flexcoders] Return style object from a CSSStyleDeclaration

2009-01-20 Thread João
Humm... Ok, I have a custom style called ".incomeValue" defined on my
CSS file. I need to return that style as an Object on a styleFunction.
I can access that style as an instance of CSSStyleDeclaration by making 

var s2:CSSStyleDeclaration =
StyleManager.getStyleDeclaration(".incomeValue")

But I need to return it as an Object, not a CSSStyleDeclaration. There
should be a direct way to return from a CSSStyleDeclaration the object
with the structure that a styleFunction needs 



[flexcoders] Re: Roles Based UI

2009-01-20 Thread ilikeflex
Hi

Do you mean to say that i should do something like this


In the above i am passing the id of the component.

Then this means that i have to make some mapping between the 
component and Role.

I think this will be more difficult to manage. 

Let me know as you are already implementing it. If you could some 
psuedo code then it will be great.

Thanks
ilikeflex



--- In flexcoders@yahoogroups.com, "Gregor Kiddie"  
wrote:
>
> As someone who is currently re-working their Role Based Access 
Control mechanism, point 2 is the wrong way around.
> 
> It leaks the roles into the rest of the client and stops all your 
business logic being in one place. Incidentally, this is how we 
currently do it, and I can show how it's a pain when new roles are 
added.
> 
> The better solution is to bind the visibility (enabled, etc, 
however you deal with not having the correct authorization) of the 
UIComponent to a hasAccess( componentKey : String ) method on the 
User class.
> 
> This has benefits of meaning that all the code for deciding on 
access is in one place (and makes it very easy to alter / add / 
remove roles and components), and by binding it, if the 
authentication changes for any reason, the view can be updated 
quickly and cleanly.
> 
>  
> 
> A pitfall to watch out for is hiding pieces of UI which has 
unexpected behaviour. For example, not showing a piece of the form if 
the user doesn't have the auth to change that data, if your backend 
deletes any data it isn't sent by the client, it is easy to turn 
a "not authorised" into a "delete lots of data". So make sure your 
client behaviour fits the use cases defined by your back end.
> 
>  
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London 
SW8 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk 
http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is 
intended solely for the addressee. Access, copying or re-use of 
information in it by anyone else is not authorised. Any views or 
opinions presented are solely those of the author and do not 
necessarily represent those of INPS or any of its affiliates. If you 
are not the intended recipient please contact is.helpd...@...
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On Behalf Of Dimitrios Gianninas
> Sent: 20 January 2009 14:33
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Roles Based UI
> 
>  
> 
> Pretty simple:
> 
>  
> 
> 1) Once you app is loaded, call your server to load the user info
> 
> 2) Assuming you have a User class with a method isUserInRole( 
role:String ); ... then use this on various Buttons/fields/views to 
show/hide based on if the user has a particuliar role or not
> 
>  
> 
> Dimitrios Gianninas
> 
> RIA Developer Team Lead
> 
> Optimal Payments Inc.
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex
> Sent: Monday, January 19, 2009 1:18 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Roles Based UI
> 
> Hi
> 
> I am developing role based GUI. Can anybody please point to best 
> practices or any flex article which can help to achieve this.
> 
> Thanks
> ilikeflx
> 
> AVIS IMPORTANT
> 
> WARNING
> 
> Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé. L'expéditeur original ne 
renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation. Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système. La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux. Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.
> 
> This electronic message and its attachments may contain 
confidential, proprietary or legally privileged information, which is 
solely for the use of the intended recipient. No privilege or other 
rights are waived by any unintended transmission or unauthorized 
retransmission of this message. If you are not the intended recipient 
of this message, or if you have received it in error, you should 
immediately stop reading this message and delete it and all 
attachments from your system. The reading, distribution, copying or 
other use of this message or its attachments by unintended recipients 
is unauthorized and may be unlawful. If you have received this

[flexcoders] Re: Getting the style from CSS to apply on a styleFunction

2009-01-20 Thread João
Ok, I can get the CSSStyleDeclaration using:

var s2:CSSStyleDeclaration =
StyleManager.getStyleDeclaration(".incomeValue");

The problem is that I need to return a simple object. Inspecting the
content of the CSSStyleDeclaration class, I saw that the "overrides"
property has the object I need, but that property is protected.
I can extend this class, and expose the "overrides" property, but that
sounds a bit "hackish". Isn't there a direct way to convert a
CSSStyleDeclaration to a plain object?

Thanks,

João Saleiro



[flexcoders] Re: LocalConnection issue in AIR to AIR application

2009-01-20 Thread Pete Appleby
Hi, Kevin!

To answer your earlier question, yes, the error was coming from the
Send side. The error only occurs if the listening ( Connected )
application is not running and connection or if the Send(  )
specifies an incorrect name.

The problem was the difficulty of the PublisherId not being available
in the debugger for my Sending app while my real listening app was
running ( not in the debugger ).

I will try your suggestion to use the -PubId argument to ADL.

It has been painful doing deployment builds to test the code, since
there is no debugger available. I resorted to adding debug code to
write to a log file.

I now am succesfully communicating bidirectionally between my two
applications and have built the handshaking, acknowlegments, etc.
needed to make it useful.

Thanks for the help!

Pete




RE: [flexcoders] DataGrid Column Sizing issue

2009-01-20 Thread Thomas, Erik
I believe all the column widths in a data grid must equal 100% of the
grid's total client area and if they don't the grid stretches the
right-most column to fit the remainder.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dharmendra Chauhan
Sent: Tuesday, January 20, 2009 8:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid Column Sizing issue



Hi All,

I have designed a custom dataGrid which allows user to select 
column which he wants to be visiable.Here is the issue which I have 
been facing:

When user select two column to be visiable,

Lets assume Col1.with = 25 , 

Col2.with = 20 , 

Expected Result:

It should occupy 25+20 pixel space and adjust 
datagrid size accordingly.

Actual Result: 

Col1 is occupying correct space but col2 occupies 
all rest of the space available on the right hand side i.e. col2 is 
to occupying more space than it is suppose to be.

I want col2 to occupy only 20 pixel space.

datagird height and width both are 100 %

Any help would be highly appreciated.

Regards,

Dharmendra Chouhan



 


RE: [flexcoders] Re: Speex codec

2009-01-20 Thread Ryan Graham

Ah, great... Thanks for confirming!

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of steve.klee
Sent: Friday, January 16, 2009 3:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Speex codec

 



> I was reading the docs and they seem to suggest that the Speex codec
for
> streaming to a media server is a feature exclusive to AIR 1.5. Is that
> true? If I am targeting FP10, can I stream with Speex from a web-based
> flex app, or am I limited to using NellyMoser?

It is not limited to AIR, you can do this with your flex app as long
as you set the codec property on the Microphone properly AND you
compile your app for FP10. We have been doing this successfully with
out flex app that uses Adobe's Cocomo SDK.

 



This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Error when calling acceptClient on a conflict

2009-01-20 Thread taze170171
Hello!

We are using AIR and LCDS 2.6.1 and have a problem with conflict 
handling. If we trigger a conflict on the server by calling:

throw new DataSyncException(co, serverObject, changedProps);

the following exception occurs on the client when calling
conflict.acceptClient():

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at mx.data::ConflictResolver/updateMessageForAcceptClient()
[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\Confli
ctResolver.as:455]
at mx.data::ConflictResolver/acceptClientForPullConflict()
[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\Confli
ctResolver.as:314]
at mx.data::ConflictResolver/acceptClient()
[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\Confli
ctResolver.as:84]
at mx.data::Conflict/acceptClient()
[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\Confli
ct.as:228]

When a conflict event is triggered by flex itself the accepClient 
call works.

Can anyone help?

Thanks in advance,
Taze



[flexcoders] Getting the style from CSS to apply on a styleFunction

2009-01-20 Thread João
Hello,

I have and AdvancedDataGrid, where one of the columns have a custom
styleFunction. That function is currently something like: 

private function styleValueLabel(item:Statement,
column:AdvancedDataGridColumn):Object
{
   if (item.isIncome)   
 return { color: 0x00FF00 } 

   return null
}   

I have everything related with styles on a runtime css file, except
that Object being returned above. I have created on the CSS the
following style selector:

.incomeValue
{
color: #00FF00;
}

How do I change the above function so it returns the "incomeValue"
style selector ? The getStyle method only returns the style for a
property...

Thanks,

João Saleiro 



[flexcoders] DataGrid Column Sizing issue

2009-01-20 Thread Dharmendra Chauhan
Hi All,

 I have designed a custom dataGrid which allows user to select 
column which he wants to be visiable.Here is the issue which I have 
been facing:

 

When user select two column to  be visiable,

Lets assumeCol1.with = 25 , 

 Col2.with = 20 , 

 

Expected Result:

 It should occupy 25+20 pixel space and adjust 
datagrid size accordingly.

 

Actual Result: 

  Col1 is occupying correct space but col2 occupies 
all rest of the space available on the right hand side i.e. col2 is  
to occupying  more space than it is suppose to be.

 

I want col2 to occupy only 20 pixel space.

 

 datagird height and width both are 100 %

 

Any help would be highly appreciated.

 

 

Regards,

Dharmendra Chouhan





RE: [flexcoders] Re: Roles Based UI

2009-01-20 Thread Battershall, Jeff
Well there's got to be some tie-in between the user's role and the GUI - 
there's got to be some conditional logic at some level of granularity. If there 
are simply too many items to show/hide, you could have two different versions 
of a view which would be role-dependent. Modules could be a way to go there.  
That way you're not trying to make all your conditional view logic into some 
kind of spagetti-code.  The line of demarcation would be when it is too crazy 
to try to alter a single view to suit multiple roles.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Tuesday, January 20, 2009 10:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Roles Based UI


Hi 

This is one of the way to implement Role Based UI but in this we need 
to have the 



every where. Is there any better way?

I mean to say that if we have method somewhere in UI custom 
class which derives from Flex framework class which gives me the 
roles.So i do not need to 

"visible={"User.isUserInRole()" 

everywhere. As every component will derives from our custom class we 
can get rid of visible... statement.

Thanks
ilikelfex


--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" 
 wrote:
>
> Pretty simple:
>  
> 1) Once you app is loaded, call your server to load the user info
> 2) Assuming you have a User class with a method isUserInRole(
role:String ); ... then use this on various Buttons/fields/views to 
show/hide based on if the user has a particuliar role or not
>  
> Dimitrios Gianninas
> RIA Developer Team Lead
> Optimal Payments Inc.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex
> Sent: Monday, January 19, 2009 1:18 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Roles Based UI
> 
> 
> 
> Hi
> 
> I am developing role based GUI. Can anybody please point to best
> practices or any flex article which can help to achieve this.
> 
> Thanks
> ilikeflx
> 
> 
> 
>  
> 
> --
> WARNING
> ---
> This electronic message and its attachments may contain 
confidential, proprietary or legally privileged information, which is 
solely for the use of the intended recipient.  No privilege or other 
rights are waived by any unintended transmission or unauthorized 
retransmission of this message.  If you are not the intended 
recipient of this message, or if you have received it in error, you 
should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or 
other use of this message or its attachments by unintended recipients 
is unauthorized and may be unlawful.  If you have received this e- mail in 
error, please notify the sender.
> 
> AVIS IMPORTANT
> --
> Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé.  L'expéditeur original 
ne renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation.  Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux.  Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links





[flexcoders] Re: Roles Based UI

2009-01-20 Thread ilikeflex
Hi 

This is one of the way to implement Role Based UI but in this we need 
to have the 



every where. Is there any better way?

I mean to say that if we have method somewhere in UI custom 
class which derives from Flex framework class which gives me the 
roles.So i do not need to 

"visible={"User.isUserInRole()" 

everywhere. As every component will derives from our custom class we 
can get rid of visible... statement.

Thanks
ilikelfex


--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas" 
 wrote:
>
> Pretty simple:
>  
> 1) Once you app is loaded, call your server to load the user info
> 2) Assuming you have a User class with a method isUserInRole( 
role:String ); ... then use this on various Buttons/fields/views to 
show/hide based on if the user has a particuliar role or not
>  
> Dimitrios Gianninas
> RIA Developer Team Lead
> Optimal Payments Inc.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex
> Sent: Monday, January 19, 2009 1:18 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Roles Based UI
> 
> 
> 
> Hi
> 
> I am developing role based GUI. Can anybody please point to best 
> practices or any flex article which can help to achieve this.
> 
> Thanks
> ilikeflx
> 
> 
> 
>  
> 
> -- 
> WARNING
> ---
> This electronic message and its attachments may contain 
confidential, proprietary or legally privileged information, which is 
solely for the use of the intended recipient.  No privilege or other 
rights are waived by any unintended transmission or unauthorized 
retransmission of this message.  If you are not the intended 
recipient of this message, or if you have received it in error, you 
should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or 
other use of this message or its attachments by unintended recipients 
is unauthorized and may be unlawful.  If you have received this e-
mail in error, please notify the sender.
> 
> AVIS IMPORTANT
> --
> Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé.  L'expéditeur original 
ne renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation.  Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux.  Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.
>




RE: [flexcoders] Roles Based UI

2009-01-20 Thread Gregor Kiddie
As someone who is currently re-working their Role Based Access Control 
mechanism, point 2 is the wrong way around.

It leaks the roles into the rest of the client and stops all your business 
logic being in one place. Incidentally, this is how we currently do it, and I 
can show how it's a pain when new roles are added.

The better solution is to bind the visibility (enabled, etc, however you deal 
with not having the correct authorization) of the UIComponent to a hasAccess( 
componentKey : String ) method on the User class.

This has benefits of meaning that all the code for deciding on access is in one 
place (and makes it very easy to alter / add / remove roles and components), 
and by binding it, if the authentication changes for any reason, the view can 
be updated quickly and cleanly.

 

A pitfall to watch out for is hiding pieces of UI which has unexpected 
behaviour. For example, not showing a piece of the form if the user doesn't 
have the auth to change that data, if your backend deletes any data it isn't 
sent by the client, it is easy to turn a "not authorised" into a "delete lots 
of data". So make sure your client behaviour fits the use cases defined by your 
back end.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dimitrios Gianninas
Sent: 20 January 2009 14:33
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Roles Based UI

 

Pretty simple:

 

1) Once you app is loaded, call your server to load the user info

2) Assuming you have a User class with a method isUserInRole( role:String ); 
... then use this on various Buttons/fields/views to show/hide based on if the 
user has a particuliar role or not

 

Dimitrios Gianninas

RIA Developer Team Lead

Optimal Payments Inc.

 

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Monday, January 19, 2009 1:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Roles Based UI

Hi

I am developing role based GUI. Can anybody please point to best 
practices or any flex article which can help to achieve this.

Thanks
ilikeflx

AVIS IMPORTANT

WARNING

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

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

 



RE: [flexcoders] Roles Based UI

2009-01-20 Thread Dimitrios Gianninas
Pretty simple:
 
1) Once you app is loaded, call your server to load the user info
2) Assuming you have a User class with a method isUserInRole( role:String ); 
... then use this on various Buttons/fields/views to show/hide based on if the 
user has a particuliar role or not
 
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Monday, January 19, 2009 1:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Roles Based UI



Hi

I am developing role based GUI. Can anybody please point to best 
practices or any flex article which can help to achieve this.

Thanks
ilikeflx



 

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

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



Re: [flexcoders] Re: Do states and transitions behave differently depending on the context?

2009-01-20 Thread Haykel BEN JEMIA
Why do you need the one state? Is it only to make the transition when the
component is created or do you have other states? What do you want to
achieve exactly? Perhaps there is a better solution!

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Tue, Jan 20, 2009 at 1:42 PM, mauricen wrote:

>   Thanks very much! It looks as though the transition will work - or not -
> depending on when it's invoked in the component creation process.
> And invoking it at the wrong time (ie as part of initialisation, as I
> did) prevents it from working later, as in your solution.
>
> Transitions seem to have a very steep learning curve. The solution
> for the toy example /still/ doesn't work in my real application! So
> there must be some other inexplicable glitch to be isolated...
>
>
> --- In flexcoders@yahoogroups.com , Haykel
> BEN JEMIA  wrote:
> >
> > I don't know why it's behaving like that, but it seems to work if
> you set
> > the state after the form item has been created, like this:
> >
> > http://www.adobe.com/2006/mxml";>
> > 
> >  creationComplete="st.currentState='taskQueue'">
> > 
> > 
> > 
> > 
> >
> > Anyone has an explanation?
> >
> > Haykel Ben Jemia
> >
> > Allmas
> > Web & RIA Development
> > http://www.allmas-tn.com
> >
> >
> >
> >
> > On Mon, Jan 19, 2009 at 5:59 PM, mauricen wrote:
>
> >
> > > I have a component which can appear initially in one of two
> states, and
> > > can subsequently be switched between them. When this switch takes
> place,
> > > I want a transition to occur. Here's a tiny model of my component:
> > >
> > > http://www.adobe.com/2006/mxml";>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > If I embed this component (call it MyComp) like this:
> > >
> > > http://www.adobe.com/2006/mxml";>
> > > 
> > > 
> > >
> > > the transition takes place as the component appears, and everything is
> > > fine. But if I put it inside a FormItem, like this:
> > >
> > > http://www.adobe.com/2006/mxml";>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > the transition never takes place and the two labels remain
> superimposed.
> > >
> > > In fact the problem is a little worse than this. In the toy
> > > application above, you can replace FormItem by a container like HBox
> > > and it works again. But in my real app I can't use it inside a Form
> > > at all. What gives?
> > >
> > > Maurice
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Populating a Flex Container in Flash

2009-01-20 Thread specdout
Hi Tracey,

Thanks for your response.

> So you have a browser hosting the Flash Player, running a Flex app >
that contains a SWFLoader that loads a Flash SWF.
Sorry, I should have been more specific: I'm developing an AIR
application. The SWFLoader is used to hold Flash content that's used
as an animated background for the app's main window. In some cases I
do use TitleWindows as dialogs for collecting and displaying
information and in other cases I use Canvas-based components as direct
children of the main window. With respect to the problem I'm
describing here, I'm trying to display Flex content so that it appears
to be completely integrated with the Flash background.

 
> Is the Flex framework available from within the Flash SWF?
No. I do hook and receive events from the Flash SWF as well as control
various animations but that's all done from Flex.

>  Also,
> UIComponent is not a container and will not do any automatic sizing or
> layout of the content.  You will have to do that yourself.  That means
> implementing the lifecycle, layout and measurement functionality.  Say
> again why you want to do this?  I'm not saying it is bad, just trying to
> be sure you have a god reason.
One of the issues I've experienced in trying to get this to work is
runtime errors that claim the Flex content I'm trying to set on the
ContainerMovieClip (in Flash) isn't a UIComponent (or doesn't
implement IUIComponent).  As I understand it, the ContainerMovieClip
is supposed to be able to hold a single Flex child, which can then
hold additional children.  Ultimately I wouldn't use a UIComponent - I
was just trying to make sure that the ContainerMovieClip instance in
Flash didn't have a valid claim that I wasn't passing in a UIComponent ;)

> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of specdout
> Sent: Monday, January 19, 2009 12:05 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Populating a Flex Container in Flash
> 
>  
> 
> Does anyone else have any thoughts on this problem?
> 
> --- In flexcoders@yahoogroups.com 
> , "specdout"  wrote:
> >
> > Thanks for your reply, Paul.
> > 
> > --- In flexcoders@yahoogroups.com
>  , "Paul Andrews"  wrote:
> > >
> > > Does anything get added to the display list?
> > When the example code executes I do see the FlexContentHolder symbol
> > () on the display where I would expect it to be, i.e. positioned
> > where I would expect, with the dimensions I would expect, so I think
> > it's already on the DisplayList. As well, I can make it invisible if
> > I want, so it does appear to be available and active - it's just the
> > Flex content that doesn't show.
> > 
> > > 
> > > - Original Message - 
> > > From: "specdout" 
> > > To:   >
> > > Sent: Thursday, January 15, 2009 5:42 PM
> > > Subject: [flexcoders] Populating a Flex Container in Flash
> > > 
> > > 
> > > > Hi All,
> > > >
> > > > I'm currently developing a Flex application that loads a Flash
> SWF for
> > > > use as a background image. In other words, the app's main window
> has
> > > > as its first child a SWFLoader component into which I've loaded
> a SWF
> > > > developed in Flash. So far, so good.
> > > >
> > > > Now, rather than open up dialogs or create direct child windows
> of the
> > > > main window, I want to host Flex content within the Flash SWF
> itself.
> > > > I installed the Flex Component Kit in my Flash CS3 environment and
> > > > proceeded to created a MovieClip symbol that contains a
> > > > FlexContentHolder. From Flex, I can access the symbol and set Flex
> > > > content on that symbol but the Flex content never appears. An
> example
> > > > of how I've attempted to do this is as follows:
> > > >
> > > > // get a reference to the Flex Content MovieClip
> > > > var swf:MovieClip = _swfLoader.content as MovieClip;
> > > > var fc:Object = swf["flexContainer"];
> > > >
> > > > // create some Flex content to display
> > > > var button:Button = new Button();
> > > > button.width = 200;
> > > > button.height = 100;
> > > > button.label = "Click me!";
> > > >
> > > > // create a top-level container for the Flex content
> > > > var uiComponent:UIComponent = new UIComponent();
> > > > uiComponent.width = fc.width;
> > > > uiComponent.height = fc.height;
> > > > uiComponent.alpha = 1.0;
> > > > uiComponent.addChild(button);
> > > > uiComponent.visible = true;
> > > >
> > > > fc.content = uiComponent;
> > > >
> > > > Am I doing something wrong here? Conceptually, am I on the right
> > > > track? In other words, should what I'm trying to do be possible?
> I'd
> > > > appreciate any help or insight anyone might be able to offer.
> > > >
> > > >
> > > > 
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ

[flexcoders] FadeIn Effect not working with custom item renderers in List

2009-01-20 Thread tonyjobrien
I'm trying to get the FadeIn effect to work on my List control, but
I'm having no luck. The custom renderer stays white for the
FadeInDuration and then appears instantly. If I switch back to using
the default renderer, all is well. Also, if I have both a list with a
custom renderer and the default at the same time, they both exhibit
the same behaviour as the custom renderer. Here is a simple Flex app
that shows the issue (comment out the lists as required).

FYI, I'm using Flex 3 on Windows XP with Firefox 3.


http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="handleCreationComplete();">



















Re: [flexcoders]TextLayoutFramework - support for graphics / swfs?

2009-01-20 Thread Yogesh Puri
--- In flexcoders@yahoogroups.com, "dorkie dork from dorktown"
 wrote:
>
> Q1
> I saw that there is support for inline graphics but is there support for
> wrapping text around an image?
> 
> Q2
> Is there support for an inline swf?
>

Check this out

http://polygeek.com/liquid-text



Re: [flexcoders] ContextMenuItem with a checkbox ?

2009-01-20 Thread Michael Pelz-Sherman
Hi again,

I thought I'd try extending the ContextMenuItem class to provide this behavior, 
but according to the compiler, the ContextMenuItem class is declared "final" in 
the "Gumbo" Flex SDK.

I found a post from 2006 that shows ContextMenuItem being extended:

http://www.bigroom.co.uk/blog/custom-context-menu-with-keyboard-shortcuts-in-flash

Did this change recently? If so, why?

Thanks,
- Michael




From: Michael Pelz-Sherman 
To: flexcoders@yahoogroups.com
Sent: Monday, January 19, 2009 2:15:33 PM
Subject: [flexcoders] ContextMenuItem with a checkbox ?


Hi,

I'd like to create a ContextMenuItem with a checkbox that toggles some behavior.

Is this possible?

Thanks!

- Michael 

[flexcoders] Re: Do states and transitions behave differently depending on the context?

2009-01-20 Thread mauricen
Thanks very much!  It looks as though the transition will work - or not -
depending on when it's invoked in the component creation process.
And invoking it at the wrong time (ie as part of initialisation, as I 
did) prevents it from working later, as in your solution.

Transitions seem to have a very steep learning curve.  The solution
for the toy example /still/ doesn't work in my real application!  So
there must be some other inexplicable glitch to be isolated...

--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA  wrote:
>
> I don't know why it's behaving like that, but it seems to work if
you set
> the state after the form item has been created, like this:
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
> 
> Anyone has an explanation?
> 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
> 
> 
> 
> 
> On Mon, Jan 19, 2009 at 5:59 PM, mauricen wrote:
> 
> >   I have a component which can appear initially in one of two
states, and
> > can subsequently be switched between them. When this switch takes
place,
> > I want a transition to occur. Here's a tiny model of my component:
> >
> > http://www.adobe.com/2006/mxml";>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > If I embed this component (call it MyComp) like this:
> >
> > http://www.adobe.com/2006/mxml";>
> > 
> > 
> >
> > the transition takes place as the component appears, and everything is
> > fine. But if I put it inside a FormItem, like this:
> >
> > http://www.adobe.com/2006/mxml";>
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > the transition never takes place and the two labels remain
superimposed.
> >
> > In fact the problem is a little worse than this. In the toy
> > application above, you can replace FormItem by a container like HBox
> > and it works again. But in my real app I can't use it inside a Form
> > at all. What gives?
> >
> > Maurice
> >
> >  
> >
>




[flexcoders] flexstore effect

2009-01-20 Thread stinasius
hi guys how can i achieve the flex store effect when someone clicks on
a thumbnail and the thumbnails move beautifully to the right and the
details show up on the left. how can i do this with mxml and states. i
have the flexstore example but the code is so complicated.



RE: [flexcoders] internationalization

2009-01-20 Thread Yves Riel
Haykel, out of curiosity, when you load them dynamically at run-time, do
you pass them to the resource bundle manager? That's what we did but I'm
curious to see what other did and if there are a open source libraries
that do just that. We didn't find any at the time so we had to do it all
ourselves.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Haykel BEN JEMIA
Sent: Tuesday, January 20, 2009 3:33 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] internationalization



Use resource bundles. If you only have 2 or 3 languages and the
resources are not heavy in size, you can simply compile them in the
application, otherwise load them at runtime.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com  





On Tue, Jan 20, 2009 at 6:46 AM, Scott mailto:h...@netprof.us> > wrote:


I'm working on a project that requires multiple languages. I'm
thinking
I have two choices...

1) Use an XML file to change the text to different languages
2) Create a query/remote object through coldfusion to pull the
different
language.

Are those my only options? Or should I say, what is the best way
to do
this? Has anyone done this or come across any articles? The
articles
I've found thus far deal with changing the
currency/calendar/etc..
While that is something that I need to use, it's not the whole
story...

Thanks much.
Scott





 


[flexcoders]TextLayoutFramework - support for graphics / swfs?

2009-01-20 Thread dorkie dork from dorktown
Q1
I saw that there is support for inline graphics but is there support for
wrapping text around an image?

Q2
Is there support for an inline swf?


[flexcoders] Re: Warning: CheckVisibility is not a function ?

2009-01-20 Thread tom93438
Thanks Tracy and Clumpywheel (it's good to know I'm not alone..)

>Is this causing you any problems?
Only in so much as I have gone from a situation where my flashlog is
100% useful trace statements and critical errors to a situation where
it is now >90% noise (and flash tracer's "Display warnings" control
seems not to work). :(

Call me a stickler maybe, but I like my warnings to be real and
noteworthy..:) If we ignore warnings then don't we just invite future
problems? (I'm an electronic engineer by training, and fairly new to
SW, so maybe I'm taking the wrong approach?)

Most importantly: is this the sort of thing that warrants a bug report
to Adobe? If so, I'll put one in.

cheers

tom
 

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Is this causing you any problems?  Warnings can often be ignored, and 
> this sounds like an issue in the framework.  In past versions of 
> flex, I have seen dozens of warnings from internal objects, but not 
> seen any of them result in a problem for my app.
> 
> Tracy Spratt 
> Lariat Services 
> Flex development bandwidth available
> 
> 
> --- In flexcoders@yahoogroups.com, "clumpywheel"  
> wrote:
> >
> > I tried to reply to this earlier but it didn't show up.
> > 
> > I have the exact same warnings in my flashlog and it's very 
> annoying.
> >  Flex 3, Flash 10, and it happens when I hit "allow" on the 
> microphone
> > access box.
> > 
> > --- In flexcoders@yahoogroups.com, "tom93438"  wrote:
> > >
> > > Hi Erik, 
> > > 
> > > That is the problem. I don't define or call it anywhere in my 
> code (to
> > > the best of my knowledge). I have searched my entire codebase for
> > > 'CheckVisibilty' and it doesn't show up anywhere.
> > > 
> > > I know this makes it a hard problem to diagnose..
> > > 
> > > Any idea what might be wrong?
> > > 
> > > thanks
> > > 
> > > tom
> > >  
> > > 
> > > --- In flexcoders@yahoogroups.com, "Thomas, Erik"  
> wrote:
> > > >
> > > > Can you share some source code where you define/call 
> CheckVisibilty?
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> > [mailto:flexcod...@yahoogroups.com] On
> > > > Behalf Of tom93438
> > > > Sent: Friday, January 16, 2009 10:16 AM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Re: Warning: CheckVisibility is not a 
> function ?
> > > > 
> > > > 
> > > > 
> > > > A few more bits of information to add:
> > > > 
> > > > This warning starts being generated immediately after 
> the 'Adobe Flash
> > > > Player Settings' box is closed (once the user selects 'Allow' OR
> > > > 'Deny') for microphone / camera access. 
> > > > The warning is written continuously and indefinitely (or at 
> least,
> > > > until Flash Tracer reaches its warning limit). 
> > > > 
> > > > Any ideas how to make this warning go away?
> > > > 
> > > > thanks
> > > > 
> > > > tom
> > > > 
> > > > --- In flexcoders@yahoogroups.com
> > 
> > > > , tom s  wrote:
> > > > >
> > > > > Hi,
> > > > > I have an application running in Flash Debug Player 10.0 r12 
> for
> > > > Firefox.
> > > > > It keeps writing 'Warning: CheckVisibility is not a function' 
> to the
> > > > > flashlog.txt
> > > > > I am running FF 3.0.5 and Flash Switcher.
> > > > > 
> > > > > Any ideas what might be causing this?
> > > > > 
> > > > > thanks
> > > > > 
> > > > > tom
> > > > >
> > > >
> > >
> >
>




[flexcoders] swf animation library

2009-01-20 Thread tom s
Does anyone know of a library of stock swf animations that are free for
commercial use?(compiled or src)

I need an animation that is 'hour-glass-esque', e.g. something like balls
chasing each other round in a circle, to display to the user to indicate
that something is going on and that they have to wait (backed up by text
info)

I think it would be fairly simple to write in AS, but I figure if someone
else has already done that and OSd it then why bother..

thanks

tom


Re: [flexcoders] ContextMenuItem with a checkbox ?

2009-01-20 Thread Haykel BEN JEMIA
http://livedocs.adobe.com/flex/3/html/menucontrols_3.html#410684

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Mon, Jan 19, 2009 at 8:15 PM, Michael Pelz-Sherman <
mpelzsher...@gmail.com> wrote:

>   Hi,
>
> I'd like to create a ContextMenuItem with a checkbox that toggles some
> behavior.
>
> Is this possible?
>
> Thanks!
>
> - Michael
>  
>


Re: [flexcoders] Do states and transitions behave differently depending on the context?

2009-01-20 Thread Haykel BEN JEMIA
I don't know why it's behaving like that, but it seems to work if you set
the state after the form item has been created, like this:

http://www.adobe.com/2006/mxml";>







Anyone has an explanation?

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Mon, Jan 19, 2009 at 5:59 PM, mauricen wrote:

>   I have a component which can appear initially in one of two states, and
> can subsequently be switched between them. When this switch takes place,
> I want a transition to occur. Here's a tiny model of my component:
>
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> If I embed this component (call it MyComp) like this:
>
> http://www.adobe.com/2006/mxml";>
> 
> 
>
> the transition takes place as the component appears, and everything is
> fine. But if I put it inside a FormItem, like this:
>
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
>
> the transition never takes place and the two labels remain superimposed.
>
> In fact the problem is a little worse than this. In the toy
> application above, you can replace FormItem by a container like HBox
> and it works again. But in my real app I can't use it inside a Form
> at all. What gives?
>
> Maurice
>
>  
>


Re: [flexcoders] Do states and transitions behave differently depending on the context?

2009-01-20 Thread Haykel BEN JEMIA
I don't know why it's behaving like that, but it seems to work if you set
the state after the form item has been created, like this:

http://www.adobe.com/2006/mxml";>







Anyone has an explanation?

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Mon, Jan 19, 2009 at 5:59 PM, mauricen wrote:

>   I have a component which can appear initially in one of two states, and
> can subsequently be switched between them. When this switch takes place,
> I want a transition to occur. Here's a tiny model of my component:
>
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> If I embed this component (call it MyComp) like this:
>
> http://www.adobe.com/2006/mxml";>
> 
> 
>
> the transition takes place as the component appears, and everything is
> fine. But if I put it inside a FormItem, like this:
>
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
>
> the transition never takes place and the two labels remain superimposed.
>
> In fact the problem is a little worse than this. In the toy
> application above, you can replace FormItem by a container like HBox
> and it works again. But in my real app I can't use it inside a Form
> at all. What gives?
>
> Maurice
>
>  
>


Re: [flexcoders] Do states and transitions behave differently depending on the context?

2009-01-20 Thread Haykel BEN JEMIA
I don't know why it's behaving like that, but it seems to work if you set
the state after the form item has been created, like this:

http://www.adobe.com/2006/mxml";>







Anyone has an explanation?

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Mon, Jan 19, 2009 at 5:59 PM, mauricen wrote:

>   I have a component which can appear initially in one of two states, and
> can subsequently be switched between them. When this switch takes place,
> I want a transition to occur. Here's a tiny model of my component:
>
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> If I embed this component (call it MyComp) like this:
>
> http://www.adobe.com/2006/mxml";>
> 
> 
>
> the transition takes place as the component appears, and everything is
> fine. But if I put it inside a FormItem, like this:
>
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
>
> the transition never takes place and the two labels remain superimposed.
>
> In fact the problem is a little worse than this. In the toy
> application above, you can replace FormItem by a container like HBox
> and it works again. But in my real app I can't use it inside a Form
> at all. What gives?
>
> Maurice
>
>  
>


Re: [flexcoders] internationalization

2009-01-20 Thread Haykel BEN JEMIA
Use resource bundles. If you only have 2 or 3 languages and the resources
are not heavy in size, you can simply compile them in the application,
otherwise load them at runtime.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Tue, Jan 20, 2009 at 6:46 AM, Scott  wrote:

>   I'm working on a project that requires multiple languages. I'm thinking
> I have two choices...
>
> 1) Use an XML file to change the text to different languages
> 2) Create a query/remote object through coldfusion to pull the different
> language.
>
> Are those my only options? Or should I say, what is the best way to do
> this? Has anyone done this or come across any articles? The articles
> I've found thus far deal with changing the currency/calendar/etc..
> While that is something that I need to use, it's not the whole story...
>
> Thanks much.
> Scott
>  
>


Re: [flexcoders] Im new, and this is an old question

2009-01-20 Thread Haykel BEN JEMIA
RIA doesn't mean "no pages". There are situations where you have simply
different pages. How you implement them, as different apps, modules or as a
viewstack depends. But among other things, a RIA reduces page loading in
many cases. In your example, the login can be a page and the calendar
another page. But in the calendar page, if the user chooses to see the
details of an item, edit an item, add a new one or add a comment for
example, then you can do all this in one page. So I would split the app by
functionality and implement the different parts independently, then you
could put them on different pages or load them as modules.


Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Sun, Jan 18, 2009 at 7:54 PM, nycynik  wrote:

>   I am new to flex and RIA in general. I have been working with .net
> and java for a while now, and I am just starting to try to create a
> new interface for some projects of mine, and thought flex might be the
> answer, but I am having trouble wrapping my head around the idea that
> its less like a web page, and more like a desktop application, to stop
> thinking about page reloads, and start thinking about ViewStacks.
>
> So my original thought was to begin with multiple swf applications,
> and convert parts of the site over one part at a time (for instance,
> user registration, and then move on to the shared calendar, or another
> part of the site).
>
> But after doing some reading, it seems that its better to build the
> whole site as one application. Well I hope i can get some help, here
> is my question..
>
> --
> I did a lot of searching, and found a lot of posts that seem to
> disagree. The basic question is:
>
> "I am building a big application for a website, using flex/swf as a
> front end, and .net as a back end. How do I control the project so
> that its not one monster swf file?"
>
> Answers seem to range between using a single ViewStack, to using
> modules that you load in. Almost everyone wrote, to not build
> multiple swf/flex projects and try to communicate between them using
> .net or directly between swf files.
>
> --
>
> I hope that is clear enough, so i should begin by learning about
> loading and unloading modules? Is that right?
>
> Thanks,
> Mike
>
>  
>