Re: [flexcoders] Re: Question for Amfphp and Flex RemoteObject ?

2009-03-30 Thread jitendra jain
When you import flex.war in the eclipse or Flex Builder, you will see all those 
configuration files.

Thanks,

with Regards,
Jitendra Jain


--- On Sun, 29/3/09, Amy amyblankens...@bellsouth.net wrote:


From: Amy amyblankens...@bellsouth.net
Subject: [flexcoders] Re: Question for Amfphp and Flex RemoteObject ?
To: flexcoders@yahoogroups.com
Date: Sunday, 29 March, 2009, 7:42 PM






--- In flexcod...@yahoogro ups.com, markflex2007 markflex2007@ ... wrote:

 Hi,
 
 I take a look the Amfphp server code and structure. I do not see 
 service-config. xml and remoting-config. xml file.
 
 I need set connection with the two files in server if I use Flex remoteobject.
 
 service-config. xml is used for endpoint setting and remoting-config. xml is 
 used for destination/ source setting.
 

I never could figure out where those files were supposed to come from, either. 
I think that they get created when you use the wizard to generate the code for 
you.

I do my remote objects like this:

http://flexdiary. blogspot. com/2009/ 01/lazy-loading- tree-example- 
file-posted. html

HTH;

Amy

















  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Re: TextArea textHeight with HTMl text?

2009-03-30 Thread jitendra jain
Look at this link, it will be quite helpful
 
http://livedocs.adobe.com/flex/2/langref/flash/text/TextLineMetrics.html


Thanks,

with Regards,
Jitendra Jain


--- On Sun, 29/3/09, Nicolas Noben nicolas.no...@gmail.com wrote:


From: Nicolas Noben nicolas.no...@gmail.com
Subject: [flexcoders] Re: TextArea textHeight with HTMl text?
To: flexcoders@yahoogroups.com
Date: Sunday, 29 March, 2009, 2:13 PM






--- In flexcod...@yahoogro ups.com, Sascha sbal...@...  wrote:

 I assume this is not supported by Flex but is there a method to get the
 correct text height from a TextArea that uses HTML text? If I try this I
 never get the correct height to fit the TextArea's height to it's text
 content, i.e. the TextArea is always smaller.


I have tried to answer this before. It's not 100% rock solid but it worked for 
us.

http://idletogether .com/automatical ly-resize- texttextarea- based-on- 
content-autosize -in-flex/

















  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

[flexcoders] Fortify Scan on my Application.

2009-03-30 Thread Parkash
Hello All, 

 

I ran fortify scan on my application and getting the three hot issues on
history.js and historyFrame.html.

How can I eliminate the problems from these files?

 

Do I really need these files can I delete these files can any one tell me
the purpose of these files.

 

The hot issues are listed below.

 

 

Issue # 1:

 

ABSTRACT:

The method addHistoryEntry() in history.js sends unvalidated data to a web
browser on line 207, which can result in the browser executing malicious
code.

 

EXPLANATION:

 

Cross-site scripting (XSS) vulnerabilities occur when:

 

1. Data enters a web application through an untrusted source, most
frequently a web request or database.

 

2. The data is included in dynamic content that is sent to a web user
without being validated for malicious code. 

 

The malicious content sent to the web browser often takes the form of a
segment of JavaScript, but may also include HTML, Flash or any other type of
code that the browser may execute. The variety of attacks based on XSS is
almost limitless, but they commonly include transmitting private data like
cookies or other session information to the attacker, redirecting the victim
to web content controlled by the attacker, or performing other malicious
operations on the user's machine under the guise of the vulnerable site.

 

 

 

Issue # 2:

 

 

ABSTRACT:

The method checkForUrlChange() in history.js sends unvalidated data to a web
browser on line 283, which can result in the browser executing malicious
code.

 

EXPLANATION:

 

Cross-site scripting (XSS) vulnerabilities occur when:

 

1. Data enters a web application through an untrusted source, most
frequently a web request or database.

 

2. The data is included in dynamic content that is sent to a web user
without being validated for malicious code. 

 

The malicious content sent to the web browser often takes the form of a
segment of JavaScript, but may also include HTML, Flash or any other type of
code that the browser may execute. The variety of attacks based on XSS is
almost limitless, but they commonly include transmitting private data like
cookies or other session information to the attacker, redirecting the victim
to web content controlled by the attacker, or performing other malicious
operations on the user's machine under the guise of the vulnerable site.

 

 

Issue # 3:

 

ABSTRACT:

The method lambda() in history.js sends unvalidated data to a web browser on
line 509, which can result in the browser executing malicious code.

 

EXPLANATION:

 

Cross-site scripting (XSS) vulnerabilities occur when:

 

1. Data enters a web application through an untrusted source, most
frequently a web request or database.

 

2. The data is included in dynamic content that is sent to a web user
without being validated for malicious code. 

 

The malicious content sent to the web browser often takes the form of a
segment of JavaScript, but may also include HTML, Flash or any other type of
code that the browser may execute. The variety of attacks based on XSS is
almost limitless, but they commonly include transmitting private data like
cookies or other session information to the attacker, redirecting the victim
to web content controlled by the attacker, or performing other malicious
operations on the user's machine under the guise of the vulnerable site.

 

 

Issue # 4:

 

ABSTRACT:

The method ~file_function() in historyFrame.html sends unvalidated data to a
web browser on line 25, which can result in the browser executing malicious
code.

 

EXPLANATION:

 

Cross-site scripting (XSS) vulnerabilities occur when:

 

1. Data enters a web application through an untrusted source, most
frequently a web request or database.

 

2. The data is included in dynamic content that is sent to a web user
without being validated for malicious code. 

 

In this case the data is sent at write() in historyFrame.html at line 25.

 

The malicious content sent to the web browser often takes the form of a
segment of JavaScript, but may also include HTML, Flash or any other type of
code that the browser may execute. The variety of attacks based on XSS is
almost limitless, but they commonly include transmitting private data like
cookies or other session information to the attacker, redirecting the victim
to web content controlled by the attacker, or performing other malicious
operations on the user's machine under the guise of the vulnerable site.

 

 

 

 

Thanks

 

Parkash



[flexcoders] Rowcount in Advanceddatagrid

2009-03-30 Thread venkat eswar
How to get the actual row count of an advanceddatagrid with Open nodes and 
closed nodes



  

[flexcoders] playerProductInstall calling for v10

2009-03-30 Thread tom s
I'm using the playerProductInstall supplied with FB 3 to make sure my users
have the correct version of flash player.
I'm using the JS supplied with FB 3 to detect the player version and prompt
as neccessary.
It is correctly identifying when the player is v 9.0.124 and when it is not.


However, whenever the player is  9.0.124 the playerProductInstall displays
the message:

This content requires Adobe Flash Player 10...

Which isnt strictly true.
Can I control it so that it says ..Flash Player 9..?
Is this happening because of a setting I have incorrectly set (I was
previously working with FP 10), or is this a tactic by Adobe to get FP 10
out in the wild?

thanks

tom


Re: [flexcoders] Rowcount in Advanceddatagrid

2009-03-30 Thread Adrian Williams

Hi Venkat,

   Would taking the adg.dataProvider.length work for you?

Adrian

venkat eswar wrote:


How to get the actual row count of an advanceddatagrid with Open nodes 
and closed nodes






[flexcoders] Re: I want to use Flex Builder 3 to develop Flash Games

2009-03-30 Thread Amy
--- In flexcoders@yahoogroups.com, Axonn theax...@... wrote:

 
 Hm, I think I didn't ask the right question, because somebody told me that it
 *is* possible.
 
 What I want is this:
 
 - Create a FLA file in Flash.
 - Draw 2 rectangles.
 - Create an AS file in Flex 3.
 - Attach it to the Flash.
 - Export as SWF.
 - Continue development in Flex 3. When hit debug, my Flash-created SWF
 starts but the debug code is attached to Flex 3, because I am in Flex 3. But
 you know Flex 3 creates that default SWF. I don't want that. I want to use
 the Flash SWF, which *DOES* have my AS class from Flex in it.
 - DO modifications to the AS but DON'T START FLASH AGAIN until I need to
 modify graphics and such.

I use FlashDevelop for this kind of work.  It has code completion and all kinds 
of handy features (such as autogenerating getters and setters from private 
variables or event listener functions from an addEventListener statement).

Essentially, you write your code in FlashDevelop, and when you debug 
FlashDevelop will launch Flash to create the swf and you'll see your break 
points in the Flash IDE.

This may not be what you're looking for, but it's a work flow that works for me.

HTH;

Amy



[flexcoders] Connecting an AIR application to FCF through Webservices.

2009-03-30 Thread smccran
Hi all,
I am trying to connect an AIR app to a coldfusion back end webservice (CFC), 
but am getting an error message:

Code:

mx:WebService id=popData 
wsdl=http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl; 
showBusyCursor=true useProxy=true

mx:operation name=getData resultFormat=object fault=faultHandler(event) 
result=resultsHandler(event) /

/mx:WebService

Error:

[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend 
faultDetail=Unable to load WSDL. If currently online, please verify the URI 
and/or format of the WSDL 
(http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl)]
at 
mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:98]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:222]
at 
mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at 
mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at 
mx.messaging::ChannelSet/faultPendingSends()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1482]
at 
mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:975]
at flash.events::EventDispatcher/dispatchEventFunction()

Does anyone have any ideas why I cannot connect to a remote server?

Thanks
Shaun



Re: [flexcoders] Re: I want to use Flex Builder 3 to develop Flash Games

2009-03-30 Thread mark . jonkman
Hi 

My workflow for working with Flash and Flex has turned into this: 

Take one of two branches: 
Flex project 
or 
ActionScript project. 

I mostly start with a Flex project *but* I don't bother to use the Flex 
framework. I let it generate its usual main.mxml file that extends application. 
I then create my normal package structure in the src folder: 

com/[companyname]/[project]/ 

I create a class there that is the root class for my project - the class *must* 
extend Sprite or MovieClip. 

I then go back to the main.mxml and do the following change the mx namespace 
to: 

xmlns:[project]=com.[companyname].[project].[MainClass] 

change the mx:Application tags to be [project]:[MainClass] 

remove any references like: layout=absolute and so forth so your app tag is 
just [project]:[MainClass] xmlns=.. 

Now you have a Flex project that doesn't use the Flex framework but still has 
a single MXML file so the Flex compiler is happy. The MXML is non-graphical, 
can't use the design view with it and I don't add anything else to the MXML. 
Everything else happens in the as [MainClass] file. 

Once that is setup I create another folder: 

fla and if I don't already have a libs folder I create that and put in the 
appropriate references under Properties - Flex Build Path - Library Path. If 
the libs folder wasn't created by default, create it and use Add SWC Folder and 
point it to the libs folder. I make sure the libs folder is set to merge into 
code. 

Next I create one or more FLAs that will contain assets that I'll use in my 
final project. I make sure that I add the location of the src folder ../src/ in 
the class path for the FLA. I then create the appropriate Movie Clips and 
classes and associate them all together as needed and publish the FLA as both 
swf and as swc into the lib folder. I ignore the swf (it basically comes along 
for the ride). 

Now all the classes you created as MovieClips in Flash are available as classes 
in your flex project. The nice part is that when you compile in Flex, it will 
pull in the MovieClip class from the swc but it picks up the base class from 
your src folder so you never need to republish the swc except if the MovieClip 
symbol changes. 

Sometimes I need a library of symbols that I may or may not have actual code 
references to. Then I'll do one of two things: 

a) Create a class and list all the symbols as private static properties and 
then make a reference to that class in the [MainClass]. Keeping all the 
references neatly outside of my main class keeps things cleaner. 

b) I create a Flex Library project that I will treat as an RSL. This gets a bit 
interesting. Because the lack of the use of the Flex Framework means that any 
RSLs linked to the project will not automatically get loaded. You can solve 
that by loading them manually, or looking at the Flex SimpleApplication or 
Application classes and digging down and copying the RSL load scenerio. I do 
manually using XML config files to tell me what to load. The nice part is that 
you can still set them to auto-extract to deployment path and Flex will 
recompile the RSL and then extract the swf from it in debug or release form 
automatically for you. But again, you can't just point to the classes in the 
swc to include in the library, you have to create one class that lists all the 
MovieClips as static variables. 

So for example in both a) and b) you would do something like: 

import com.[companyname].[projectname].[SymbolName]; 
 
private static var _symbol1:Class = [SymbolName]; 

Flex will create the appropriate import statement and will show the swc classes 
in the prompts as you type so you can just do the last line and let Flex create 
the import statement for ya. Yes I actually create my symbol classes in package 
structure vs just [SymbolName] as the class in Flash. Sometimes I divide things 
up like: 

com.[companyname].[projectname].symbols.[SymbolName] (class associated with 
symbol in Flash) 
and 
com.[companyname].[projectname].[package].[BaseClass] (base class for MovieClip 
in Flash) 

Try not to name the two with identical names ie. try not creating a symbol 
called: 

CheckBox 
and a base class called 
CheckBox 

take it from me, this will drive you to drinking. 

I also load my RSLs into ApplicationDomain.currentDomain. 

After this code only changes and all debugging happens inside of Flex. Only 
time I open Flash is to publish a new swc *if* the symbols change or new 
symbols added (then of course need to make reference them in code). 

One additional cheat method you can use if you like for pulling in symbol 
assets: 

Create one master symbol, dump a copy of all the symbols you create into it, 
then you only have to reference that one symbol and you get all your other 
symbols for free. 

For games and such that I would have normally used the main FLA timeline for, I 
create a symbol that would represent that timeline and use it instead. 

I hate debugging in Flash itself (the 

[flexcoders] AMFPHP release project security problem

2009-03-30 Thread soulflow132

Hi am new to flex 3.
/br I've created a flex application that connects to database using
amfphp./br
When i compile it and run it on flex builder environement it simply works
./br
So i wanted to export it as release and i've done so./br
As result i got a bin-release folder that contain the swf html file and
other files./br/br
When i try to open the index.html file i got an error warning like/br 
http://www.nabble.com/file/p22784941/erreur.jpg 
/br/br/br
so PLEASE HOW CAN i resolve this problem./br
Thank you alot and have a nice day
-- 
View this message in context: 
http://www.nabble.com/AMFPHP-release-project-security-problem-tp22784941p22784941.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] How can I add a SeriesInterpolate effect with actionscript to my PieChart?

2009-03-30 Thread sailorsea21
MXML:
mx:SeriesInterpolate id=action duration=1000 minimumElementDuration=200/

ACTIONSCRIPT:
var pie:PieSeries = new PieSeries();
pie.setStyle(showDataEffect,action);

Does anyone know why the following doesn't animate my chart? Thanks.



[flexcoders] HTTPService using underscores in variable names not working with POST...

2009-03-30 Thread joel.sisko
Newbie problem, I think, I need to POST to a php script that has underscores in 
the variables names. Using the code below the underscores are sent as 5F

So the result is:

http://localhost/admin/index.php?sec=useradmin5Faction=addplace5F=2


mx:HTTPService resultFormat=text result=userResult(event) id=httpAdduser
url=http://localhost/admin/index.php?sec=user; showBusyCursor=true 
useProxy=false
method=POST
mx:request xmlns=
admin_actionadd/admin_action
place_next2/place_next
/mx:request
/mx:HTTPService

I will welcome any workaround, Action Script based, mod-rewrite, tin foil and 
bailing wire...




[flexcoders] PieChart Legend Label???

2009-03-30 Thread sailorsea21
Hi everyone, with a ColumnChart, I can set my custom Legend name by setting the 
displayName attribute in my ColumnSeries.

How can I set a custom name to my PieChart Legend Label??

Thanks.



[flexcoders] LCDS Add/Remove/Update Collection without Entire Collection Reloading

2009-03-30 Thread Kevin
It seems that every time I add a new item to a collection (or change a property 
of an item in the collection) and commit it using LCDS the entire collection 
gets reloaded from the server.  Is there a way to prevent this.  Some of my 
collections are rather large and reloading them stalls the browser.

Thanks,

Kevin



[flexcoders] Re: why doesnt this work (custom drawing)

2009-03-30 Thread valdhor
The function never runs.

AFAIK you need to add this to a component implementation and then
instantiate the component. Something like this...

MyComponent.as:
package
{
 import mx.core.UIComponent;

 public class MyComponent extends UIComponent
 {
 public function MyComponent()
 {
 super();
 }

 override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
 {
 super.updateDisplayList(unscaledWidth, unscaledHeight);

 graphics.clear();

 graphics.beginFill(0xD3D3D3);
 graphics.drawRect(0, unscaledHeight/3, unscaledWidth, 2 *
unscaledHeight/3);
 graphics.drawRect(0, 0, unscaledWidth,unscaledHeight);
 graphics.endFill();

 graphics.moveTo(0, 15);
 graphics.lineStyle(1, 0xFF);
 graphics.lineTo(50, 15);
 }
 }
}

Now instantiate it...

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute xmlns:MyComps=*
 MyComps:MyComponent x=100 y=100/
/mx:Application


--- In flexcoders@yahoogroups.com, gmoniey22 gmonie...@... wrote:

 I'm sure its something stupid, but I cant figure out why this doesnt
draw anything.

 I followed the example found here:
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.\
htm?context=LiveDocs_Partsfile=1738.html


 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 mx:Canvas height=75 width=100
   mx:Script
![CDATA[
 protected override function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth, unscaledHeight);
 graphics.clear();

  graphics.beginFill(0xD3D3D3);
  //graphics.drawRect(0, unscaledHeight/3, unscaledWidth, 2 *
unscaledHeight/3);
  graphics.drawRect(0, 0, unscaledWidth,unscaledHeight);
  graphics.endFill();

  graphics.moveTo(0, 15);
 graphics.lineStyle(1, 0xFF);
 graphics.lineTo(50, 15);
 }
]]
   /mx:Script
  /mx:Canvas
 /mx:Application




[flexcoders] Re: Connecting an AIR application to FCF through Webservices.

2009-03-30 Thread valdhor
Your crossdomain.xml file looks outdated for the newer versions of Flash.


--- In flexcoders@yahoogroups.com, smccran s_mcc...@... wrote:

 Hi all,
 I am trying to connect an AIR app to a coldfusion back end webservice (CFC), 
 but am getting an error message:
 
 Code:
 
 mx:WebService id=popData 
 wsdl=http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl; 
 showBusyCursor=true useProxy=true
 
 mx:operation name=getData resultFormat=object 
 fault=faultHandler(event) result=resultsHandler(event) /
 
 /mx:WebService
 
 Error:
 
 [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend 
 faultDetail=Unable to load WSDL. If currently online, please verify the URI 
 and/or format of the WSDL 
 (http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl)]
   at 
 mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:98]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at 
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
   at 
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:222]
   at 
 mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
   at 
 mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
   at 
 mx.messaging::ChannelSet/faultPendingSends()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1482]
   at 
 mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:975]
   at flash.events::EventDispatcher/dispatchEventFunction()
 
 Does anyone have any ideas why I cannot connect to a remote server?
 
 Thanks
 Shaun





[flexcoders] Re: Spring vs Flex

2009-03-30 Thread Anthony DeBonis
Check out what Christophe Coenraets has put together using BlazeDS
http://www.adobe.com/devnet/livecycle/articles/blazeds_spring.html

--- In flexcoders@yahoogroups.com, senthilkumarirtt senthilkumari...@... 
wrote:

 hi 
 i need to integrate spring and flex application.
 ( i  want to get data retun by spring from Db to Advanced datagrid in flex 
 app)





[flexcoders] Re: Custom Classes and Custom Events

2009-03-30 Thread valdhor
You can't put a listener on your datagrid or your customcomponent as they will 
never see the event you dispatched.

Put the event listener in the application itself. When you catch the event you 
can instantiate the customcomponent and use the _data property to set the 
arraycollection for your datagrid.


--- In flexcoders@yahoogroups.com, secrit.service secrit-serv...@... wrote:

 
 Hi, thanks for your responses so far.
 Based on what I read, I'm quite sure I'm on the right track. But
 unfortunately it still doesn't work.
 
 I will explain my problem a bit more in detail, hoping to get a clue of
 what's wrong.
 
 When starting my application, I make a call to a mySQL database to
 retrieve the available records and want to populate a datagrid with
 these records.
 
 These are the steps I took :
 -1- My main application is separated in a mxml- (main.mxml) and an
 AS-file (main.as).
 -2- To avoid lots of resulthandlers in my main application, I created a
 custom class extended from a RemoteObject (CustRO.as)
 In this class I defined a public static const GET_ALL_DATA and
 mapped it to getAllData
public const GET_ALL_DATA:String = getAllData;
 Also I defined a var _data of type ArrayCollection.
   private var _data:ArrayCollection = new ArrayCollection();
 In the constructor I added an eventListener :

 this.getOperation(GET_ALL_DATA).addEventListener(result,
 getAllData_resultHandler);
 -3- I also created a custom class extended from Event (CustEvent.as)
 with following vars :
  public static const CHANGE:String = databaseChange;
  private var _data:ArrayCollection;
 -4- The main.mxml contains a custom component (myComp) with the datagrid
 in it (also included : toolbar and statusbar).
 -5- In main.as I created an instance of CustRO.as  (myRO).
 -6- Using myRO.getOperation(myRO.GET_ALL_DATA).send() I make a call to
 the database
 -7- In my resultHandler I wrote this._data = evt.result. While debugging
 my application I can see that this part works fine.
 Also in the resultHandler I make a new instance of CustEvent and
 called it myEventObj
 var myEventObj:CustEvent = new
 CustEvent(CustEvent.CHANGE);
 myEventObj.data = this._data;
dispatchEvent(myEventObj);
 -8- Event is dispatched. The only thing I need to do is to catch it.
 Therefor I added a listener to my datagrid by adding following
 line in the creationComplete of  my custom component myComp
myDataGrid.addEventListener(CustEvent.CHANGE,
 databaseChange_eventHandler);
 -9- Finally in the databaseChange_eventHandler I map _data to evt.result
 and use _data as dataprovider of my datagrid.
 
 As I mentioned before, aa event with the correct data is dispatched, but
 in the listening-phase something is going wrong.
 Does anyone have any idea where I missed?
 
 Thanks in advance.
 
 --- In flexcoders@yahoogroups.com, secrit.service secrit-service@
 wrote:
 
 
  Hi all,
 
  The last couple of weeks I wrote my first application in Flex. Today I
  want to refactor it, meaning : using custom classes and custom events.
 
  I have following :
 
  I created an application with a couple of buttons and with a custom
  component (myCustomComp) in it. This custom component is based on a
  Vbox an contains :
  - an HBox (mySearchbar) with a textfield and button
  - a datagrid which contains data from a database
  - an HBox (myToolbar) with a button and a label
 
  The buttons are used for adding, modifying and deleteing records of
 the
  database. SO I was thinking of creating a custom event
 (myCustomEvent).
 
  The code I have so far is following :
 
  package events {
 
  import flash.events.Event;
 
  public class myCustomEvent extends Event {
 
  public function SpellEvent(type:String) {
  super(type);
  }
 
  override public function clone():Event{
  var evt:myCustomEvent = new myCustomEvent(type);
  return evt;
  }
 
  }
 
  }
 
  I was thinking of adding event listners to my buttons. For example my
  button to add a new record will have a addRecordEventListener. In this
  listener I create a new instance of myCustEvent and pass my new record
  as a parameter.
  The same I will do with my button to delete a record.
 
  My question is where and how I should make the difference between the
 2
  operations.
  I suppose I have to create a new instance of my event and besides my
 new
  record I also need to pass the type of operation : something like new
  myCustomEvent(newRecord, addRecord) or new myCustomEvent(newRecord,
  deleteRecord). But in this case, how do I process the different
  operations?
 
  I'm lost and hoping for a clear answer.
 
  Thanks
 





RE: [flexcoders] Re: Connecting an AIR application to FCF through Webservices.

2009-03-30 Thread shaun mccran

So its an access problem? You can connect AIR apps to a server side object?

 

Isn't this all you need in your crossdomain.xml

 

?xml version=1.0?
!DOCTYPE cross-domain-policy SYSTEM 
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
cross-domain-policy
allow-access-from domain=* /
/cross-domain-policy

 

 

Thanks

Shaun


 




To: flexcoders@yahoogroups.com
From: valdhorli...@embarqmail.com
Date: Mon, 30 Mar 2009 16:11:05 +
Subject: [flexcoders] Re: Connecting an AIR application to FCF through 
Webservices.





Your crossdomain.xml file looks outdated for the newer versions of Flash.

--- In flexcoders@yahoogroups.com, smccran s_mcc...@... wrote:

 Hi all,
 I am trying to connect an AIR app to a coldfusion back end webservice (CFC), 
 but am getting an error message:
 
 Code:
 
 mx:WebService id=popData 
 wsdl=http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl; 
 showBusyCursor=true useProxy=true
 
 mx:operation name=getData resultFormat=object 
 fault=faultHandler(event) result=resultsHandler(event) /
 
 /mx:WebService
 
 Error:
 
 [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend 
 faultDetail=Unable to load WSDL. If currently online, please verify the URI 
 and/or format of the WSDL 
 (http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl)]
 at 
 mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:98]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at 
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
 at 
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:222]
 at 
 mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
 at 
 mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
 at 
 mx.messaging::ChannelSet/faultPendingSends()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1482]
 at 
 mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:975]
 at flash.events::EventDispatcher/dispatchEventFunction()
 
 Does anyone have any ideas why I cannot connect to a remote server?
 
 Thanks
 Shaun










_
View your Twitter and Flickr updates from one place – Learn more!
http://clk.atdmt.com/UKM/go/137984870/direct/01/

[flexcoders] Re: AMFPHP release project security problem

2009-03-30 Thread valdhor
Do you have a crossdomain.xml file on your server?


--- In flexcoders@yahoogroups.com, soulflow132 sfood00...@... wrote:

 
 Hi am new to flex 3.
 /br I've created a flex application that connects to database using
 amfphp./br
 When i compile it and run it on flex builder environement it simply works
 ./br
 So i wanted to export it as release and i've done so./br
 As result i got a bin-release folder that contain the swf html file and
 other files./br/br
 When i try to open the index.html file i got an error warning like/br 
 http://www.nabble.com/file/p22784941/erreur.jpg 
 /br/br/br
 so PLEASE HOW CAN i resolve this problem./br
 Thank you alot and have a nice day
 -- 
 View this message in context: 
 http://www.nabble.com/AMFPHP-release-project-security-problem-tp22784941p22784941.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: Connecting an AIR application to FCF through Webservices.

2009-03-30 Thread valdhor
There are now stricter rules. See 
http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html


--- In flexcoders@yahoogroups.com, shaun mccran s_mcc...@... wrote:

 
 So its an access problem? You can connect AIR apps to a server side object?
 
  
 
 Isn't this all you need in your crossdomain.xml
 
  
 
 ?xml version=1.0?
 !DOCTYPE cross-domain-policy SYSTEM 
 http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
 cross-domain-policy
 allow-access-from domain=* /
 /cross-domain-policy
 
  
 
  
 
 Thanks
 
 Shaun
 
 
  
 
 
 
 
 To: flexcoders@yahoogroups.com
 From: valdhorli...@...
 Date: Mon, 30 Mar 2009 16:11:05 +
 Subject: [flexcoders] Re: Connecting an AIR application to FCF through 
 Webservices.
 
 
 
 
 
 Your crossdomain.xml file looks outdated for the newer versions of Flash.
 
 --- In flexcoders@yahoogroups.com, smccran s_mccran@ wrote:
 
  Hi all,
  I am trying to connect an AIR app to a coldfusion back end webservice 
  (CFC), but am getting an error message:
  
  Code:
  
  mx:WebService id=popData 
  wsdl=http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl; 
  showBusyCursor=true useProxy=true
  
  mx:operation name=getData resultFormat=object 
  fault=faultHandler(event) result=resultsHandler(event) /
  
  /mx:WebService
  
  Error:
  
  [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend 
  faultDetail=Unable to load WSDL. If currently online, please verify the 
  URI and/or format of the WSDL 
  (http://www.mccran.co.uk/wld/services/phoneBook.cfc?wsdl)]
  at 
  mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:98]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at 
  mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:170]
  at 
  mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:222]
  at 
  mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
  at 
  mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
  at 
  mx.messaging::ChannelSet/faultPendingSends()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1482]
  at 
  mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:975]
  at flash.events::EventDispatcher/dispatchEventFunction()
  
  Does anyone have any ideas why I cannot connect to a remote server?
  
  Thanks
  Shaun
 
 
 
 
 
 
 
 
 
 
 _
 View your Twitter and Flickr updates from one place – Learn more!
 http://clk.atdmt.com/UKM/go/137984870/direct/01/





[flexcoders] Re: Spring vs Flex

2009-03-30 Thread kramus0
Or just have a look at Christophe Coenraets page

at http://coenraets.org/flex-spring/

Regards 

Markus

--- In flexcoders@yahoogroups.com, senthilkumarirtt senthilkumari...@... 
wrote:

 hi 
 i need to integrate spring and flex application.
 ( i  want to get data retun by spring from Db to Advanced datagrid in flex 
 app)





Re: [flexcoders] Re: Spring vs Flex

2009-03-30 Thread Richard Rodseth
In my view, whether or not you use AMF and BlazeDS, it's important to
embrace the service layer and DTO concepts (Data Transfer Object) rather
than trying to distribute your domain objects.

(as an aside, one of my favourite books is Domain-Driven Design, by Eric
Evans)

If you choose not to use AMF, your service layer can  return XML or JSON
which can be consumed by your flex app. There are Java and AS3 libraries for
encoding/decoding JSON.

Nevertheless, AMF is good stuff. I haven't personally used BlazeDS, but
would like to.

- Richard



On Mon, Mar 30, 2009 at 9:12 AM, Anthony DeBonis 
anth...@troywebconsulting.com wrote:

   Check out what Christophe Coenraets has put together using BlazeDS
 http://www.adobe.com/devnet/livecycle/articles/blazeds_spring.html


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 senthilkumarirtt senthilkumari...@... wrote:
 
  hi
  i need to integrate spring and flex application.
  ( i want to get data retun by spring from Db to Advanced datagrid in flex
 app)
 

  



Re: [flexcoders] Re: Separate browser sessions in AIR

2009-03-30 Thread Wesley Acheson
On Sun, Mar 29, 2009 at 10:22 PM, Amy amyblankens...@bellsouth.net wrote:

 --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote:

  There doesn't seem to be any way to tell AIR to start different
  browser sessions, or even end an existing one.
 
  Am I missing something obvious, and is anyone else in the same boat?

 This is the way it works in a browser, as well.  If you have two instances
 of the same browser open and log into the same session based site with
 different credentials, you'll wnd up with only one usable session.

 HTH;

 Amy


Well it depends on the browser and how its opened.  For instance if you open
a new window from Internet explorer after the session is started then theres
only one session.

If you open the new window before or just launch Internet Explorer from the
icon then theres two sessions.

In firefox two browsers don't share a session but two tabs do.

Other browsers I'm unsure about.

It should be mentioned that the obsevation on how IE works is based on IE 5
- 5.5 and 6.0 I don't know about 7 or eight.  Oh and this is session cookies
I'm talking about.  If persistant cookies are used (cookies with an expiry
time) than yes Amy's observation is completly correct.

SAM - you should be able to destroy the cookies. Also try not setting an
expiry time or TTL on the cookies. It may help. (depends on how your
spanwing windows I think)

Regards,

Wesley Acheson


[flexcoders] Add/remove columns dynamically to AdvancedDataGridColumnGroup

2009-03-30 Thread Joao Coelho
Anyone knows if it is possible to add and remove columns to an 
AdvancedDataGridColumnGroup at runtime?

So far I had no luck doing so.

What I have tried:
- pushing new columns into the children property;
- setting children property to a newly created and populated array;
- getting the children property into a new array, altering the array and 
setting de children property to this array.

None of this worked.
I'm avoiding creating the AdvancedDataGridColumnGroup dynamically also due to 
the columns having to be created based on a result from a service call and the 
grid having other columns before and after this group.

Thanks,
Joao



Re: [flexcoders] Add/remove columns dynamically to AdvancedDataGridColumnGroup

2009-03-30 Thread Adrian Williams

Joao,

   We faced a similar challenge (we have a report that the user can 
customize and persist which columns to display) and instead of actually 
removing the columns, we found it much simpler to manage the visibility 
instead...affecting the column.visible property. So when their report is 
loaded, we read their report/column setting from the db, then build the 
report and cycle thru the columns, determining which ones are visible 
and turn off the ones that aren't.


Adrian

Joao Coelho wrote:


Anyone knows if it is possible to add and remove columns to an 
AdvancedDataGridColumnGroup at runtime?


So far I had no luck doing so.

What I have tried:
- pushing new columns into the children property;
- setting children property to a newly created and populated array;
- getting the children property into a new array, altering the array 
and setting de children property to this array.


None of this worked.
I'm avoiding creating the AdvancedDataGridColumnGroup dynamically also 
due to the columns having to be created based on a result from a 
service call and the grid having other columns before and after this 
group.


Thanks,
Joao




[flexcoders] Re: Add/remove columns dynamically to AdvancedDataGridColumnGroup

2009-03-30 Thread Joao Coelho
Adrian,

Thanks for the input, I also thought of using that aproach since I will only be 
displaying 5 columns at most simultaneously and adding and removing columns as 
needed, main problem is depending on certain configurations the total number of 
columns (either visible or hidden) is not known.
I could, of course, create a large amount of columns and it would solve the 
problem up to some point, but then I would have memory issues sooner or later 
due to display objects lingering around.

Forgot to mention I also tried invalidating list, properties and display list 
of grid, to force rendering of the columns to no avail.

--- In flexcoders@yahoogroups.com, Adrian Williams adri...@... wrote:

 Joao,
 
 We faced a similar challenge (we have a report that the user can 
 customize and persist which columns to display) and instead of actually 
 removing the columns, we found it much simpler to manage the visibility 
 instead...affecting the column.visible property. So when their report is 
 loaded, we read their report/column setting from the db, then build the 
 report and cycle thru the columns, determining which ones are visible 
 and turn off the ones that aren't.
 
 Adrian
 



[flexcoders] Re: why doesnt this work (custom drawing)

2009-03-30 Thread gmoniey22
hmm...I thought that my mx:Canvas line did instantiate, and that the script 
within the canvas tag's essentially overrode the updateDisplayList function.

Thanks for clearing this up.

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 The function never runs.
 
 AFAIK you need to add this to a component implementation and then
 instantiate the component. Something like this...
 
 MyComponent.as:
 package
 {
  import mx.core.UIComponent;
 
  public class MyComponent extends UIComponent
  {
  public function MyComponent()
  {
  super();
  }
 
  override protected function
 updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
  {
  super.updateDisplayList(unscaledWidth, unscaledHeight);
 
  graphics.clear();
 
  graphics.beginFill(0xD3D3D3);
  graphics.drawRect(0, unscaledHeight/3, unscaledWidth, 2 *
 unscaledHeight/3);
  graphics.drawRect(0, 0, unscaledWidth,unscaledHeight);
  graphics.endFill();
 
  graphics.moveTo(0, 15);
  graphics.lineStyle(1, 0xFF);
  graphics.lineTo(50, 15);
  }
  }
 }
 
 Now instantiate it...
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute xmlns:MyComps=*
  MyComps:MyComponent x=100 y=100/
 /mx:Application
 
 
 --- In flexcoders@yahoogroups.com, gmoniey22 gmoniey22@ wrote:
 
  I'm sure its something stupid, but I cant figure out why this doesnt
 draw anything.
 
  I followed the example found here:
 http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.\
 htm?context=LiveDocs_Partsfile=1738.html
 
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
  mx:Canvas height=75 width=100
mx:Script
 ![CDATA[
  protected override function
 updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
  super.updateDisplayList(unscaledWidth, unscaledHeight);
  graphics.clear();
 
   graphics.beginFill(0xD3D3D3);
   //graphics.drawRect(0, unscaledHeight/3, unscaledWidth, 2 *
 unscaledHeight/3);
   graphics.drawRect(0, 0, unscaledWidth,unscaledHeight);
   graphics.endFill();
 
   graphics.moveTo(0, 15);
  graphics.lineStyle(1, 0xFF);
  graphics.lineTo(50, 15);
  }
 ]]
/mx:Script
   /mx:Canvas
  /mx:Application
 





[flexcoders] Looking for Flash Developer in San Jose, CA

2009-03-30 Thread recruiter.2008
Hello,

I have 9 months contract position open as Flash Developer in San Jose, CA.

Full Description: Flash developer assisting client's direct marketing 
organization in creating their onsite and email flash creatives. 
Required Skills: Coding experience in ActionScript 3, Flex 

If interested, please email me your resume at recruiter.2...@yahoo.com

Regards,
Krupa Doshi
Technical Recruiter 




[flexcoders] Re: HTTPService using underscores in variable names not working with POST...

2009-03-30 Thread valdhor
I tried your code and it worked perfectly. The two POST variables admin_action 
and place_next showed up in the $_POST array as $_POST[admin_action ] and 
$_POST[place_next] with the values add and 2 respectively. The sec variable 
showed up in the $_GET array as $_GET[sec] with the value user.

Charles (http://www.charlesproxy.com) showed the variables correctly as well.

If you are actually doing a POST, you would not end up with the URL you posted. 
POST variables are not appended to the URL. I do not understand where you got 
that URL from.

At any rate, what is the problem you are seeing? I cannot fault HTTPService.


Steve



--- In flexcoders@yahoogroups.com, joel.sisko joel.si...@... wrote:

 Newbie problem, I think, I need to POST to a php script that has underscores 
 in the variables names. Using the code below the underscores are sent as 5F
 
 So the result is:
 
 http://localhost/admin/index.php?sec=useradmin5Faction=addplace5F=2
 
 
 mx:HTTPService resultFormat=text result=userResult(event) 
 id=httpAdduser
 url=http://localhost/admin/index.php?sec=user; showBusyCursor=true 
 useProxy=false
 method=POST
 mx:request xmlns=
 admin_actionadd/admin_action
 place_next2/place_next
 /mx:request
 /mx:HTTPService
 
 I will welcome any workaround, Action Script based, mod-rewrite, tin foil and 
 bailing wire...





[flexcoders] Re: Spring vs Flex

2009-03-30 Thread bruno.marchesson
Hello,

As a side note, if you want to send your persistent entity from DB to Flex 
through BlazeDS, you can have a look at Gilead library 
(http://gilead.sourceforge.net)

Hope this helps
Bruno

--- In flexcoders@yahoogroups.com, kramus0 kram...@... wrote:

 Or just have a look at Christophe Coenraets page
 
 at http://coenraets.org/flex-spring/
 
 Regards 
 
 Markus
 
 --- In flexcoders@yahoogroups.com, senthilkumarirtt senthilkumarirtt@ 
 wrote:
 
  hi 
  i need to integrate spring and flex application.
  ( i  want to get data retun by spring from Db to Advanced datagrid in flex 
  app)
 





[flexcoders] Re: HTTPService using underscores in variable names not working with POST...

2009-03-30 Thread joel.sisko
Well I am glad to read that the code worked. I can send you a ehtereal trace 
file to help the debugging.

Prior to that, let me ask the dumb question that I did not ponder to think of 
till your post:

What version of Apache and PHP did you test against?

Thanks for the help.

Joel
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 I tried your code and it worked perfectly. The two POST variables 
 admin_action and place_next showed up in the $_POST array as 
 $_POST[admin_action ] and $_POST[place_next] with the values add and 2 
 respectively. The sec variable showed up in the $_GET array as $_GET[sec] 
 with the value user.
 
 Charles (http://www.charlesproxy.com) showed the variables correctly as well.
 
 If you are actually doing a POST, you would not end up with the URL you 
 posted. POST variables are not appended to the URL. I do not understand where 
 you got that URL from.
 
 At any rate, what is the problem you are seeing? I cannot fault HTTPService.
 
 
 Steve
 
 
 
 --- In flexcoders@yahoogroups.com, joel.sisko joel.sisko@ wrote:
 
  Newbie problem, I think, I need to POST to a php script that has 
  underscores in the variables names. Using the code below the underscores 
  are sent as 5F
  
  So the result is:
  
  http://localhost/admin/index.php?sec=useradmin5Faction=addplace5F=2
  
  
  mx:HTTPService resultFormat=text result=userResult(event) 
  id=httpAdduser
  url=http://localhost/admin/index.php?sec=user; showBusyCursor=true 
  useProxy=false
  method=POST
  mx:request xmlns=
  admin_actionadd/admin_action
  place_next2/place_next
  /mx:request
  /mx:HTTPService
  
  I will welcome any workaround, Action Script based, mod-rewrite, tin foil 
  and bailing wire...
 





RE: [flexcoders] Fortify Scan on my Application.

2009-03-30 Thread Tracy Spratt
The purpose of those files and IFRame is to allow the Flex app to be
navigated using the browser Forward and Back buttons.

 

I never use this functionality myself.  You can turn it off in the Project,
Properties, Compile dialog.  That will remove the js file and will not pit
the IFrame in the wrapper.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Parkash
Sent: Monday, March 30, 2009 2:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Fortify Scan on my Application.

 

Hello All, 

 

I ran fortify scan on my application and getting the three hot issues on
history.js and historyFrame.html.

How can I eliminate the problems from these files?

 

Do I really need these files can I delete these files can any one tell me
the purpose of these files.

 

The hot issues are listed below.

 

 

Issue # 1:

 

ABSTRACT:

The method addHistoryEntry() in history.js sends unvalidated data to a web
browser on line 207, which can result in the browser executing malicious
code.

 

EXPLANATION:

 

Cross-site scripting (XSS) vulnerabilities occur when:

 

1. Data enters a web application through an untrusted source, most
frequently a web request or database.

 

2. The data is included in dynamic content that is sent to a web user
without being validated for malicious code. 

 

The malicious content sent to the web browser often takes the form of a
segment of JavaScript, but may also include HTML, Flash or any other type of
code that the browser may execute. The variety of attacks based on XSS is
almost limitless, but they commonly include transmitting private data like
cookies or other session information to the attacker, redirecting the victim
to web content controlled by the attacker, or performing other malicious
operations on the user's machine under the guise of the vulnerable site.

 

 

 

Issue # 2:

 

 

ABSTRACT:

The method checkForUrlChange() in history.js sends unvalidated data to a web
browser on line 283, which can result in the browser executing malicious
code.

 

EXPLANATION:

 

Cross-site scripting (XSS) vulnerabilities occur when:

 

1. Data enters a web application through an untrusted source, most
frequently a web request or database.

 

2. The data is included in dynamic content that is sent to a web user
without being validated for malicious code. 

 

The malicious content sent to the web browser often takes the form of a
segment of JavaScript, but may also include HTML, Flash or any other type of
code that the browser may execute. The variety of attacks based on XSS is
almost limitless, but they commonly include transmitting private data like
cookies or other session information to the attacker, redirecting the victim
to web content controlled by the attacker, or performing other malicious
operations on the user's machine under the guise of the vulnerable site.

 

 

Issue # 3:

 

ABSTRACT:

The method lambda() in history.js sends unvalidated data to a web browser on
line 509, which can result in the browser executing malicious code.

 

EXPLANATION:

 

Cross-site scripting (XSS) vulnerabilities occur when:

 

1. Data enters a web application through an untrusted source, most
frequently a web request or database.

 

2. The data is included in dynamic content that is sent to a web user
without being validated for malicious code. 

 

The malicious content sent to the web browser often takes the form of a
segment of JavaScript, but may also include HTML, Flash or any other type of
code that the browser may execute. The variety of attacks based on XSS is
almost limitless, but they commonly include transmitting private data like
cookies or other session information to the attacker, redirecting the victim
to web content controlled by the attacker, or performing other malicious
operations on the user's machine under the guise of the vulnerable site.

 

 

Issue # 4:

 

ABSTRACT:

The method ~file_function() in historyFrame.html sends unvalidated data to a
web browser on line 25, which can result in the browser executing malicious
code.

 

EXPLANATION:

 

Cross-site scripting (XSS) vulnerabilities occur when:

 

1. Data enters a web application through an untrusted source, most
frequently a web request or database.

 

2. The data is included in dynamic content that is sent to a web user
without being validated for malicious code. 

 

In this case the data is sent at write() in historyFrame.html at line 25.

 

The malicious content sent to the web browser often takes the form of a
segment of JavaScript, but may also include HTML, Flash or any other type of
code that the browser may execute. The variety of attacks based on XSS is
almost limitless, but they commonly include transmitting private data like
cookies or other session information to the attacker, redirecting the victim
to web content controlled by the attacker, or performing other malicious

RE: [flexcoders] Re: Add/remove columns dynamically to AdvancedDataGridColumnGroup

2009-03-30 Thread Tracy Spratt
You should be able to manipulate the columns dynamically.  At least with the
standard DataGrid, the.columns property returns a *copy* of the
DataGridcolumns array, so it is critical after modifying that atrray that
you re-assign it to the columns property.

 

var aDGCTemp:Array = myDataGrid.columns;

//modify aDGCTemp, adding or removing, etc columns

myDataGrid.columns = aDGCTemp;  //THIS IS REQUIRED

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Joao Coelho
Sent: Monday, March 30, 2009 1:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Add/remove columns dynamically to
AdvancedDataGridColumnGroup

 

Adrian,

Thanks for the input, I also thought of using that aproach since I will only
be displaying 5 columns at most simultaneously and adding and removing
columns as needed, main problem is depending on certain configurations the
total number of columns (either visible or hidden) is not known.
I could, of course, create a large amount of columns and it would solve the
problem up to some point, but then I would have memory issues sooner or
later due to display objects lingering around.

Forgot to mention I also tried invalidating list, properties and display
list of grid, to force rendering of the columns to no avail.

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Adrian Williams adri...@... wrote:

 Joao,
 
 We faced a similar challenge (we have a report that the user can 
 customize and persist which columns to display) and instead of actually 
 removing the columns, we found it much simpler to manage the visibility 
 instead...affecting the column.visible property. So when their report is 
 loaded, we read their report/column setting from the db, then build the 
 report and cycle thru the columns, determining which ones are visible 
 and turn off the ones that aren't.
 
 Adrian
 





RE: [flexcoders] Re: Custom Classes and Custom Events

2009-03-30 Thread Tracy Spratt
Yes, unless the event is bubbling , you must declare the listener on the
component that is dispatching the event.

 

So you need something like:

custROInstance.addEventListener(CustEvent.CHANGE,
databaseChange_eventHandler);

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: Monday, March 30, 2009 12:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom Classes and Custom Events

 

You can't put a listener on your datagrid or your customcomponent as they
will never see the event you dispatched.

Put the event listener in the application itself. When you catch the event
you can instantiate the customcomponent and use the _data property to set
the arraycollection for your datagrid.

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
secrit.service secrit-serv...@... wrote:

 
 Hi, thanks for your responses so far.
 Based on what I read, I'm quite sure I'm on the right track. But
 unfortunately it still doesn't work.
 
 I will explain my problem a bit more in detail, hoping to get a clue of
 what's wrong.
 
 When starting my application, I make a call to a mySQL database to
 retrieve the available records and want to populate a datagrid with
 these records.
 
 These are the steps I took :
 -1- My main application is separated in a mxml- (main.mxml) and an
 AS-file (main.as).
 -2- To avoid lots of resulthandlers in my main application, I created a
 custom class extended from a RemoteObject (CustRO.as)
 In this class I defined a public static const GET_ALL_DATA and
 mapped it to getAllData
 public const GET_ALL_DATA:String = getAllData;
 Also I defined a var _data of type ArrayCollection.
 private var _data:ArrayCollection = new ArrayCollection();
 In the constructor I added an eventListener :
 
 this.getOperation(GET_ALL_DATA).addEventListener(result,
 getAllData_resultHandler);
 -3- I also created a custom class extended from Event (CustEvent.as)
 with following vars :
 public static const CHANGE:String = databaseChange;
 private var _data:ArrayCollection;
 -4- The main.mxml contains a custom component (myComp) with the datagrid
 in it (also included : toolbar and statusbar).
 -5- In main.as I created an instance of CustRO.as (myRO).
 -6- Using myRO.getOperation(myRO.GET_ALL_DATA).send() I make a call to
 the database
 -7- In my resultHandler I wrote this._data = evt.result. While debugging
 my application I can see that this part works fine.
 Also in the resultHandler I make a new instance of CustEvent and
 called it myEventObj
 var myEventObj:CustEvent = new
 CustEvent(CustEvent.CHANGE);
 myEventObj.data = this._data;
 dispatchEvent(myEventObj);
 -8- Event is dispatched. The only thing I need to do is to catch it.
 Therefor I added a listener to my datagrid by adding following
 line in the creationComplete of my custom component myComp
 myDataGrid.addEventListener(CustEvent.CHANGE,
 databaseChange_eventHandler);
 -9- Finally in the databaseChange_eventHandler I map _data to evt.result
 and use _data as dataprovider of my datagrid.
 
 As I mentioned before, aa event with the correct data is dispatched, but
 in the listening-phase something is going wrong.
 Does anyone have any idea where I missed?
 
 Thanks in advance.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
secrit.service secrit-service@
 wrote:
 
 
  Hi all,
 
  The last couple of weeks I wrote my first application in Flex. Today I
  want to refactor it, meaning : using custom classes and custom events.
 
  I have following :
 
  I created an application with a couple of buttons and with a custom
  component (myCustomComp) in it. This custom component is based on a
  Vbox an contains :
  - an HBox (mySearchbar) with a textfield and button
  - a datagrid which contains data from a database
  - an HBox (myToolbar) with a button and a label
 
  The buttons are used for adding, modifying and deleteing records of
 the
  database. SO I was thinking of creating a custom event
 (myCustomEvent).
 
  The code I have so far is following :
 
  package events {
 
  import flash.events.Event;
 
  public class myCustomEvent extends Event {
 
  public function SpellEvent(type:String) {
  super(type);
  }
 
  override public function clone():Event{
  var evt:myCustomEvent = new myCustomEvent(type);
  return evt;
  }
 
  }
 
  }
 
  I was thinking of adding event listners to my buttons. For example my
  button to add a new record will have a addRecordEventListener. In this
  listener I create a new instance of myCustEvent and pass my new record
  as a parameter.
  The same I will do with my button to delete a record.
 
  My question is where and how I should make the difference between the
 2
  operations.
  I suppose I have to create a new instance of my event and besides my
 new
  record I also need to pass the type of operation : something like new
  myCustomEvent(newRecord, 

Re: [flexcoders] Ribbon in FLEX

2009-03-30 Thread Scott Barnes
Just a note. The true power of Ribbon isn't necessarily just a tab/hbox
navigation, it's also about context in that the navigation reacts to
elements you may have with your application. Thus producing contextual
sensitive additional menu items where the end user invokes sensitive
areas.





On Fri, Mar 13, 2009 at 1:11 AM, Thibaud Van Vreckem
thibaudm...@gmail.comwrote:

I know I could do it using tabs and panels, but an existing FLEX
 version could save me a lot of time.

 that ribbon design  is a perfect example of what flex shines for.
 it's nothing more than tabs and canvas/Hbox panels. that's probably about 5
 sec setup.
 I'm not sure I understand what you would you need a component for ..

 On Fri, Mar 13, 2009 at 9:29 AM, Claudio M. E. Bastos Iorio 
 selecter...@gmail.com wrote:

Thanks for your answer and links.

 The silverlight version looks really great. Check this online demo
 (silverlight required):
 http://silverlight.services.live.com/invoke/60108/SilverlightRibbon/iframe.html



 I’m not trying to copy exactly the ribbon. Just the concept.

 I know I could do it using tabs and panels, but an existing FLEX version
 could save me a lot of time.

 If I don’t find any FLEX version, the silverlight version will help me a
 lot, thanks.

 I wish I could use silverlight + .NET, but this is an AIR project L





 __

 Claudio M. E. Bastos Iorio





 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Sam Lai
 *Sent:* Friday, March 13, 2009 3:53 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Ribbon in FLEX




 http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2

 Kind of like the toolbar for picking controls in Adobe Dreamweaver
 (unless they've changed it in recent versions).

 Unfortunately I haven't heard of any Flash implementations, only
 Silverlight implementations. You could implement it yourself using a
 TabNavigator and Panel controls inside each tab for groups, and
 buttons inside them. It's the styling that will be a pain - the
 official specs are available from Microsoft for free though, with some
 conditions attached
 (http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
 use the images and even code if you know XAML from the Silverlight
 version - http://silverlightribbon.codeplex.com/

 Personally I'd be making my own interpretation of the ribbon control
 instead of following the Microsoft version to the dot, especially
 seeing as they have changed a few bits in Windows 7 which will
 probably filter down to Office in Office 2010 (e.g. the confusion with
 the File menu - the Orb in the top corner is now gone).

 2009/3/13 Tracy Spratt tspr...@lariatinc.com tspratt%40lariatinc.com:
  I am not familiar with that control, can you describe it?
 
 
 
  Tracy Spratt,
 
  Lariat Services, development services available
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of Claudio M. E. Bastos Iorio
  Sent: Friday, March 13, 2009 2:13 AM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Ribbon in FLEX
 
 
 
  Hi,
 
  Is there any component (free or paid) similar to the office 2007 ribbon
  control?
 
 
 
  TIA
 
 
 
  __
 
  Claudio M. E. Bastos Iorio
 
 
 
 


  




-- 
Regards,

Scott Barnes
Rich Platforms Product Manager
Microsoft.

http://blogs.msdn.com/msmossyblog


Re: [flexcoders] Re: How to make some rows in ADG invisible

2009-03-30 Thread Wesley Acheson
Could you not just use a filter function on the dataprovider. I think thats
simpler than hiding rows. I could be wrong.

Regards,

Wesley Acheson

On Mon, Mar 30, 2009 at 10:15 AM, yossi.baram yossi.ba...@yahoo.com wrote:

 sorry, I ment
 If I have 100 rows, and paging of 10,
 and the user chooses page 3, I need rows 1-29  41-100 invisible,
 the only rows visible should be 30-40
 Please advise

 Thanks

 Jo


 --- In flexcoders@yahoogroups.com, yossi.baram yossi.ba...@... wrote:
 
  Hi guys,
  I created a tree using AdvancedDataGrid,
  I am using a paginator by splitting the datasource and loading it to the
 DataPorvider of the grid.
  The problem is that I have hierarchy that doesnt kept, because each page
 creates new list and some childrens loosing their parents...
  I would like to preserve the entire DataSource but to make the not
 relevant row invisible, all in the client,
  If I have 100 rows, and paging of 10,
  and the user chooses page 3, I need rows 1-29  31-10 invisible,
  Can I do it?
 
  Thanks
 




 

 --
 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] Flex 3/ LCDS / Coldfusion RTMP Issues

2009-03-30 Thread Alan Rother
Hey All,
I'm just trying to play around with some of the LCDS / Flex 3 / Coldfusion
samples by Tom Jordahl. I've managed to get them all working, but I cannot
get them to use the cf-rtmp channel, it always switchs back
to cf-polling-amf. When I comment that out, it connects but fails to
subscribe.

I have updated the services-config.xml and un-commented the channel
definition for cf-rtmp. I added it as the first channel for
the ColdFusionGateway in the messaging-config.xml

channels
channel ref=cf-rtmp/
channel ref=cf-polling-amf/
/channels


I'm running this on my local machine (WinXP SP3, IIS, Coldfusion 8.01)

I'm kind of stuck, is there some additional config I need to alter? Are
there log files I can check to see if the RTMP is throwing and error?


=]

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


[flexcoders] Re: HTTPService using underscores in variable names not working with POST...

2009-03-30 Thread valdhor
PHP 5.2.3; Apache 2.2.6


--- In flexcoders@yahoogroups.com, joel.sisko joel.si...@... wrote:

 Well I am glad to read that the code worked. I can send you a ehtereal trace 
 file to help the debugging.
 
 Prior to that, let me ask the dumb question that I did not ponder to think of 
 till your post:
 
 What version of Apache and PHP did you test against?
 
 Thanks for the help.
 
 Joel
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  I tried your code and it worked perfectly. The two POST variables 
  admin_action and place_next showed up in the $_POST array as 
  $_POST[admin_action ] and $_POST[place_next] with the values add and 2 
  respectively. The sec variable showed up in the $_GET array as $_GET[sec] 
  with the value user.
  
  Charles (http://www.charlesproxy.com) showed the variables correctly as 
  well.
  
  If you are actually doing a POST, you would not end up with the URL you 
  posted. POST variables are not appended to the URL. I do not understand 
  where you got that URL from.
  
  At any rate, what is the problem you are seeing? I cannot fault HTTPService.
  
  
  Steve
  
  
  
  --- In flexcoders@yahoogroups.com, joel.sisko joel.sisko@ wrote:
  
   Newbie problem, I think, I need to POST to a php script that has 
   underscores in the variables names. Using the code below the underscores 
   are sent as 5F
   
   So the result is:
   
   http://localhost/admin/index.php?sec=useradmin5Faction=addplace5F=2
   
   
   mx:HTTPService resultFormat=text result=userResult(event) 
   id=httpAdduser
   url=http://localhost/admin/index.php?sec=user; showBusyCursor=true 
   useProxy=false
   method=POST
   mx:request xmlns=
   admin_actionadd/admin_action
   place_next2/place_next
   /mx:request
   /mx:HTTPService
   
   I will welcome any workaround, Action Script based, mod-rewrite, tin foil 
   and bailing wire...
  
 





[flexcoders] Re:Separate browser sessions in AIR

2009-03-30 Thread Martyn Bowis
Have you considered using a single session, but separating out your 
different user logins into separate child objects within that one session?


eg: in a typical session, you might have a session object with the 
following keys:

session.firstname
session.lastname
session.email
session.cart
..., etc.

So, why not instead use:

session.user1.firstname
session.user1.lastname
session.user1.email
session.user1.cart
..., etc.
and
session.user2.firstname
session.user2.lastname
session.user2.email
session.user2.cart
..., etc.

If the user is logging in from the same computer, then they are the same 
person, but using separate objects for each of their logins/profiles 
like the above may solve the problem you have.


Kind regards,
Martyn



Re: [flexcoders] Flex 3/ LCDS / Coldfusion RTMP Issues

2009-03-30 Thread Alan Rother
Hmm... scratch that... apparently sending this email made it work...
I launched it again and this time, consumer.channelSet told me it was using
cf-rtmp 

Magic...

=\

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


[flexcoders] Flat ApplicationControlBar

2009-03-30 Thread markgoldin_2000
How can I make a flat ApplicationControlBar?

Thanks



[flexcoders] Application with parameters

2009-03-30 Thread markgoldin_2000
Is there a way of sending parameters to my Flex application?

Thanks



[flexcoders] VSlider direction?

2009-03-30 Thread gwangdesign
I am trying to make a VSlider but in a reversed direction than the default 
one, i.e., making it up side down, i.e., with the maximum value on the bottom 
and the minimum value on the top.

What would be the easiest/fastest way?

One of the innovative ways (but unsuccessful) I tried was setting the maximum 
value to the minimum property and the minimum value to the maximum property.

Thanks.



Re: [flexcoders] VSlider direction?

2009-03-30 Thread Guy Morton

Does slider.rotation = 180 do what you want?


On 31/03/2009, at 9:20 AM, gwangdesign wrote:

I am trying to make a VSlider but in a reversed direction than the  
default one, i.e., making it up side down, i.e., with the maximum  
value on the bottom and the minimum value on the top.


What would be the easiest/fastest way?

One of the innovative ways (but unsuccessful) I tried was setting  
the maximum value to the minimum property and the minimum value to  
the maximum property.


Thanks.







[flexcoders] SecurityError: Error #2047

2009-03-30 Thread alekseyvays
I'm using Flash inside of Flex. One Flash file loads other Flash files without 
a problem, until I try to load a Flash file that has a TextInput, which 
requires Focus - I get the following RTE:

SecurityError: Error #2047: Security sandbox violation: parent: loaded swf 
cannot access parent swf
at flash.display::DisplayObject/get parent()
at fl.managers::FocusManager/findFocusManagerComponent()
at fl.managers::FocusManager/addFocusables()
at fl.managers::FocusManager/addedHandler()
at flash.display::DisplayObjectContainer/addChild()
at ...

Putting Security.allowDomain(*); in both the parent and the loaded swf does 
not help.

What may be wrong?

Thank You!



Re: [flexcoders] Ribbon in FLEX

2009-03-30 Thread Gleb Dolgich
Ribbon is not a good UI, IMHO. It  comes from Microsoft's idea that  
every command must have a corresponding icon, which in the past made  
for some of the most cluttered UIs out there. It's really hard to find  
what you need in the new Office ribbons, and I would think twice  
before following this trend. If you feel you need a ribbon in your  
application, maybe it's time to rethink your UI.


--
Gleb Dolgich
Twitter: @gbd
Web: http://www.pixelespressoapps.com

On 30 Mar 2009, at 20:41, Scott Barnes wrote:

Just a note. The true power of Ribbon isn't necessarily just a tab/ 
hbox navigation, it's also about context in that the navigation  
reacts to elements you may have with your application. Thus  
producing contextual sensitive additional menu items where the end  
user invokes sensitive areas.






On Fri, Mar 13, 2009 at 1:11 AM, Thibaud Van Vreckem thibaudm...@gmail.com 
 wrote:


I know I could do it using tabs and panels, but an existing FLEX  
version could save me a lot of time.


that ribbon design  is a perfect example of what flex shines for.
it's nothing more than tabs and canvas/Hbox panels. that's probably  
about 5 sec setup.

I'm not sure I understand what you would you need a component for ..

On Fri, Mar 13, 2009 at 9:29 AM, Claudio M. E. Bastos Iorioselecter...@gmail.com 
 wrote:


Thanks for your answer and links.

The silverlight version looks really great. Check this online demo  
(silverlight required):http://silverlight.services.live.com/invoke/60108/SilverlightRibbon/iframe.html



I’m not trying to copy exactly the ribbon. Just the concept.

I know I could do it using tabs and panels, but an existing FLEX  
version could save me a lot of time.


If I don’t find any FLEX version, the silverlight version will help  
me a lot, thanks.


I wish I could use silverlight + .NET, but this is an AIR project L



__

Claudio M. E. Bastos Iorio



From: flexcod...@yahoogroups.com[mailto:flexcod...@yahoogroups.com]  
On Behalf Of Sam Lai

Sent: Friday, March 13, 2009 3:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Ribbon in FLEX


http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2

Kind of like the toolbar for picking controls in Adobe Dreamweaver
(unless they've changed it in recent versions).

Unfortunately I haven't heard of any Flash implementations, only
Silverlight implementations. You could implement it yourself using a
TabNavigator and Panel controls inside each tab for groups, and
buttons inside them. It's the styling that will be a pain - the
official specs are available from Microsoft for free though, with some
conditions attached
(http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
use the images and even code if you know XAML from the Silverlight
version - http://silverlightribbon.codeplex.com/

Personally I'd be making my own interpretation of the ribbon control
instead of following the Microsoft version to the dot, especially
seeing as they have changed a few bits in Windows 7 which will
probably filter down to Office in Office 2010 (e.g. the confusion with
the File menu - the Orb in the top corner is now gone).

2009/3/13 Tracy Spratt tspr...@lariatinc.com:
 I am not familiar with that control, can you describe it?



 Tracy Spratt,

 Lariat Services, development services available

 

 From:  
flexcod...@yahoogroups.com[mailto:flexcod...@yahoogroups.com] On

 Behalf Of Claudio M. E. Bastos Iorio
 Sent: Friday, March 13, 2009 2:13 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Ribbon in FLEX



 Hi,

 Is there any component (free or paid) similar to the office 2007  
ribbon

 control?



 TIA



 __

 Claudio M. E. Bastos Iorio












--
Regards,

Scott Barnes
Rich Platforms Product Manager
Microsoft.

http://blogs.msdn.com/msmossyblog







Re: [flexcoders] Application with parameters

2009-03-30 Thread Pedro Sena
Flashvars is the keyword.

http://www.permadi.com/tutorial/flashVars/

HTH

On Mon, Mar 30, 2009 at 7:15 PM, markgoldin_2000
markgoldin_2...@yahoo.comwrote:

   Is there a way of sending parameters to my Flex application?

 Thanks

  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


Re: [flexcoders] I want to use Flex Builder 3 to develop Flash Games

2009-03-30 Thread Axonn

Hi Doobie!

You said:
You might want to organize things differently.  Assuming that Game.as is 
your main class that you compile for the game, you may not want to 
compile this with Flash if you're trying to use Flex Builder.

The way I organize is to break down my stuff into 2 categories - the 
main game, and the objects/assets used by the game.

Since yesterday, I guess I found a bit of balance! I found a thread on the
FlashDevelop forum which goes something like this (I'm just telling you the
main idea): You have Game.swc. You then do this:

public class Game_New extends Game
{
public function Game_New()
{
  super();
  trace('And here, I can add my component-related code for Game.swc');
}
}

So as you can see, this way we can modularize code PER-COMPONENT. This is
the perfect way for me: I can code stuff for each component without actually
going into Flash. I can modularize my component-related code for each SWC
and I also can have the main compiled class contain the main logic.

You said:
There is no way you'll build a game 
even in the Flash IDE without grouping your art into some form of 
Movieclip or Sprite.

I've been doing computer programming for 11 years now (C#, C++, VB6, PHP),
so I know what you're saying and I agree completely. I even did ActionScript
quite a lot, but that was 5 years ago and it was AS 1.0, so it's like...
another lifetime *laugh*. But no, I wasn't even remotely thinking to work in
such a disorganized way! My designer has about 5 years of Flash behind so
she knows her shit ::- D. But even so, of course I already am establishing
the hierarchical structure of the assets with her. There's no way a good
project would live without lots of good and planned order!!! For example if
you have planet, space ship, man and helmet, there would be no way
in hell I want them lying on the stage for me to stich up together. That
would be a huge waste of time indeed ::- D.


Axonn.


---
The objects and assets I use are usually pretty simple.  I like these as 
SWCs because I can give them a little logic, and maybe a animated 
timeline if need be.  Typically if you keep these simple, you'll rarely 
have to touch the code, and just have to update with any art changes.

The main game class, however (what I'm assuming you're calling Game.as), 
is something that you'll update constantly throughout the lifecycle of 
your game.  So this is easier to leave as just some code, and don't 
compile into a SWC, just let Flex compile with each build of the game.

You can organize stuff however you like though - you could completely 
ignore what I said, there's no right way to do it.  The above just 
happens to be what works for me.

You also talked about your artist not liking having to dig into 
movieclips and symbols in the library.  Honestly, they should really 
learn some organization.  Movieclips are the basic building blocks for 
interactivity in the Flash IDE.  There is no way you'll build a game 
even in the Flash IDE without grouping your art into some form of 
Movieclip or Sprite.

If your artist can only draw on the main stage, it'll end up being your 
job to figure out how to organize things into the movieclips as you need 
them and just do the production work yourself.  The downside of this, is 
having to do this production work everytime the art gets updated.  I've 
been through this it's not fun.  It's easier to do a bit of pre-planning 
surrounding your game and get a dialog going with your artist on how to 
best organize the assets.  If you both stick to the plan, they can work 
in Flash independently and just give you an updated SWC every so often 
while you work in Flex Builder, updating the logic surrounding the game.

But like I said - people prefer different stuff - I'm sure once you get 
a little experience with this workflow, you'll have your own opinions.
ben

Axonn wrote:


 Hi Doobie and thanks for your answer!

 I just managed to get my first SWC into Flex ::- D. *rejoices*. However, I
 can't do anything with it ::- (... I have this Game.swc. In CS3, I set
 Game.as to its class. Game.as is in the same folder as Game.swc. After
 importing it in Flex, I modified Game.as. I added a trace. But nothing
 shows when I run it with Flex ::- ( ... please don't tell me I need to
 recompile the SWC if I modify the AS. As far as I understood so far that's
 the whole thing when using SWCs, you can code without Flash... so why 
 don't
 my modifications take place?

 Axonn.

 doobiekeebler wrote:
 
  Hey, so I've been making some games in Flex Builder myself. Basically I
  got fed up with the Actionscript editor in Flash a few years ago, and
  then switched to Flash Develop. Flash Develop is a really great (and
  free) tool.
 
  However, I ditched that once I got Flex Builder, because as much as I
  loved Flash Develop, Flex worked a lot better for me. I still use Flash
  Develop if I have to compile in the Flash IDE.
 
  Anyway, the others are 

[flexcoders] Re: Ribbon in FLEX

2009-03-30 Thread Bjorn Schultheiss
Good point,

Its difficult in an application with so many functions though.

Take CS4, the tools panel in Photoshop seems to work for trained designers, but 
when it got introduced into Flash CS4 with the collapsed panels, its difficult 
to know which icon to click when they're not all familiar.

Personally i dont think most web applications should borrow their design from 
MS Office. 
Although the UI may be familiar to the user base, a web application can usually 
be made more simple by restricting functionality related to the task at hand. 
eg, thermo's HUD.

Mobile UX designers seem to do a good job at this.
Take the IPhone. I prefer less obvious, more intuitive controls over a 
cluttered workspace any day.



--- In flexcoders@yahoogroups.com, Gleb Dolgich gleb...@... wrote:

 Ribbon is not a good UI, IMHO. It  comes from Microsoft's idea that  
 every command must have a corresponding icon, which in the past made  
 for some of the most cluttered UIs out there. It's really hard to find  
 what you need in the new Office ribbons, and I would think twice  
 before following this trend. If you feel you need a ribbon in your  
 application, maybe it's time to rethink your UI.
 
 -- 
 Gleb Dolgich
 Twitter: @gbd
 Web: http://www.pixelespressoapps.com
 
 On 30 Mar 2009, at 20:41, Scott Barnes wrote:
 
  Just a note. The true power of Ribbon isn't necessarily just a tab/ 
  hbox navigation, it's also about context in that the navigation  
  reacts to elements you may have with your application. Thus  
  producing contextual sensitive additional menu items where the end  
  user invokes sensitive areas.
 
 
 
 
 
  On Fri, Mar 13, 2009 at 1:11 AM, Thibaud Van Vreckem thibaudm...@... 
   wrote:
 
  I know I could do it using tabs and panels, but an existing FLEX  
  version could save me a lot of time.
 
  that ribbon design  is a perfect example of what flex shines for.
  it's nothing more than tabs and canvas/Hbox panels. that's probably  
  about 5 sec setup.
  I'm not sure I understand what you would you need a component for ..
 
  On Fri, Mar 13, 2009 at 9:29 AM, Claudio M. E. Bastos Iorioselecter...@... 
   wrote:
 
  Thanks for your answer and links.
 
  The silverlight version looks really great. Check this online demo  
  (silverlight 
  required):http://silverlight.services.live.com/invoke/60108/SilverlightRibbon/iframe.html
 
 
  I�m not trying to copy exactly the ribbon. Just the concept.
 
  I know I could do it using tabs and panels, but an existing FLEX  
  version could save me a lot of time.
 
  If I don�t find any FLEX version, the silverlight version will help  
  me a lot, thanks.
 
  I wish I could use silverlight + .NET, but this is an AIR project L
 
 
 
  __
 
  Claudio M. E. Bastos Iorio
 
 
 
  From: flexcod...@yahoogroups.com[mailto:flexcod...@yahoogroups.com]  
  On Behalf Of Sam Lai
  Sent: Friday, March 13, 2009 3:53 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Ribbon in FLEX
 
 
  http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2
 
  Kind of like the toolbar for picking controls in Adobe Dreamweaver
  (unless they've changed it in recent versions).
 
  Unfortunately I haven't heard of any Flash implementations, only
  Silverlight implementations. You could implement it yourself using a
  TabNavigator and Panel controls inside each tab for groups, and
  buttons inside them. It's the styling that will be a pain - the
  official specs are available from Microsoft for free though, with some
  conditions attached
  (http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
  use the images and even code if you know XAML from the Silverlight
  version - http://silverlightribbon.codeplex.com/
 
  Personally I'd be making my own interpretation of the ribbon control
  instead of following the Microsoft version to the dot, especially
  seeing as they have changed a few bits in Windows 7 which will
  probably filter down to Office in Office 2010 (e.g. the confusion with
  the File menu - the Orb in the top corner is now gone).
 
  2009/3/13 Tracy Spratt tspr...@...:
   I am not familiar with that control, can you describe it?
  
  
  
   Tracy Spratt,
  
   Lariat Services, development services available
  
   
  
   From:  
  flexcod...@yahoogroups.com[mailto:flexcod...@yahoogroups.com] On
   Behalf Of Claudio M. E. Bastos Iorio
   Sent: Friday, March 13, 2009 2:13 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Ribbon in FLEX
  
  
  
   Hi,
  
   Is there any component (free or paid) similar to the office 2007  
  ribbon
   control?
  
  
  
   TIA
  
  
  
   __
  
   Claudio M. E. Bastos Iorio
  
  
  
  
 
 
 
 
 
 
 
 
  -- 
  Regards,
 
  Scott Barnes
  Rich Platforms Product Manager
  Microsoft.
 
  http://blogs.msdn.com/msmossyblog
 
 
 





RE: [flexcoders] Flat ApplicationControlBar

2009-03-30 Thread Tracy Spratt
Styles?

 

Play with it in the Style Explorer, see what you can do:

http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.
html#

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markgoldin_2000
Sent: Monday, March 30, 2009 4:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flat ApplicationControlBar

 

How can I make a flat ApplicationControlBar?

Thanks





[flexcoders] Re: I want to use Flex Builder 3 to develop Flash Games

2009-03-30 Thread Bjorn Schultheiss
Using swc's for your assets is great because it it also makes compiling a lot 
quicker.

With organisation i would suggest a few more categories.

 - assets
 - component (eg. spaceship) logic
 - component factories.
 - main
 - main factories
 - main logic

these separate swcs/swfs make your compiling time even quicker.
The factories are basically used to instantiate everything your main game will 
require.


Bjorn

--- In flexcoders@yahoogroups.com, Axonn theax...@... wrote:

 
 Hi Doobie!
 
 You said:
 You might want to organize things differently.  Assuming that Game.as is 
 your main class that you compile for the game, you may not want to 
 compile this with Flash if you're trying to use Flex Builder.
 
 The way I organize is to break down my stuff into 2 categories - the 
 main game, and the objects/assets used by the game.
 
 Since yesterday, I guess I found a bit of balance! I found a thread on the
 FlashDevelop forum which goes something like this (I'm just telling you the
 main idea): You have Game.swc. You then do this:
 
 public class Game_New extends Game
 {
 public function Game_New()
 {
   super();
   trace('And here, I can add my component-related code for Game.swc');
 }
 }
 
 So as you can see, this way we can modularize code PER-COMPONENT. This is
 the perfect way for me: I can code stuff for each component without actually
 going into Flash. I can modularize my component-related code for each SWC
 and I also can have the main compiled class contain the main logic.
 
 You said:
 There is no way you'll build a game 
 even in the Flash IDE without grouping your art into some form of 
 Movieclip or Sprite.
 
 I've been doing computer programming for 11 years now (C#, C++, VB6, PHP),
 so I know what you're saying and I agree completely. I even did ActionScript
 quite a lot, but that was 5 years ago and it was AS 1.0, so it's like...
 another lifetime *laugh*. But no, I wasn't even remotely thinking to work in
 such a disorganized way! My designer has about 5 years of Flash behind so
 she knows her shit ::- D. But even so, of course I already am establishing
 the hierarchical structure of the assets with her. There's no way a good
 project would live without lots of good and planned order!!! For example if
 you have planet, space ship, man and helmet, there would be no way
 in hell I want them lying on the stage for me to stich up together. That
 would be a huge waste of time indeed ::- D.
 
 
 Axonn.
 
 
 ---
 The objects and assets I use are usually pretty simple.  I like these as 
 SWCs because I can give them a little logic, and maybe a animated 
 timeline if need be.  Typically if you keep these simple, you'll rarely 
 have to touch the code, and just have to update with any art changes.
 
 The main game class, however (what I'm assuming you're calling Game.as), 
 is something that you'll update constantly throughout the lifecycle of 
 your game.  So this is easier to leave as just some code, and don't 
 compile into a SWC, just let Flex compile with each build of the game.
 
 You can organize stuff however you like though - you could completely 
 ignore what I said, there's no right way to do it.  The above just 
 happens to be what works for me.
 
 You also talked about your artist not liking having to dig into 
 movieclips and symbols in the library.  Honestly, they should really 
 learn some organization.  Movieclips are the basic building blocks for 
 interactivity in the Flash IDE.  There is no way you'll build a game 
 even in the Flash IDE without grouping your art into some form of 
 Movieclip or Sprite.
 
 If your artist can only draw on the main stage, it'll end up being your 
 job to figure out how to organize things into the movieclips as you need 
 them and just do the production work yourself.  The downside of this, is 
 having to do this production work everytime the art gets updated.  I've 
 been through this it's not fun.  It's easier to do a bit of pre-planning 
 surrounding your game and get a dialog going with your artist on how to 
 best organize the assets.  If you both stick to the plan, they can work 
 in Flash independently and just give you an updated SWC every so often 
 while you work in Flex Builder, updating the logic surrounding the game.
 
 But like I said - people prefer different stuff - I'm sure once you get 
 a little experience with this workflow, you'll have your own opinions.
 ben
 
 Axonn wrote:
 
 
  Hi Doobie and thanks for your answer!
 
  I just managed to get my first SWC into Flex ::- D. *rejoices*. However, I
  can't do anything with it ::- (... I have this Game.swc. In CS3, I set
  Game.as to its class. Game.as is in the same folder as Game.swc. After
  importing it in Flex, I modified Game.as. I added a trace. But nothing
  shows when I run it with Flex ::- ( ... please don't tell me I need to
  recompile the SWC if I modify the AS. As far as I understood so far that's
  the whole thing 

Re: [flexcoders] VSlider direction?

2009-03-30 Thread Paul Andrews
You've already had a suggestion to rotate the control; most users would 
expect the control to operate in the usual way, so what's the exception in 
this case?

Paul

- Original Message - 
From: gwangdesign gwangdes...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Monday, March 30, 2009 11:20 PM
Subject: [flexcoders] VSlider direction?


I am trying to make a VSlider but in a reversed direction than the 
default one, i.e., making it up side down, i.e., with the maximum value on 
the bottom and the minimum value on the top.

 What would be the easiest/fastest way?

 One of the innovative ways (but unsuccessful) I tried was setting the 
 maximum value to the minimum property and the minimum value to the 
 maximum property.

 Thanks.



 

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






Re: [flexcoders] Re:Separate browser sessions in AIR

2009-03-30 Thread Sam Lai
Thanks for the responses everyone.

Amy:
For some browsers yes, but nevertheless, it would be a nice capability
for AIR to have. No idea how it works for other browser controls.

Wesley:
The site I'm logging into is a third-party site that I have no control over.

Martyn:
This is with the mx:HTML control. I've noticed it uses a HTMLLoader
(inherited from URLLoader), and that has a manageCookies property
which when set to false, allows me to manage cookies manually via
header manipulation according to the docs.

Unfortunately, I can't work out how to hook into the loader to know
when it is making requests, and the underlying request object so I can
inject the headers. I'm not sending these requests manually with
URLRequest and I can't because the user needs to be able to use the
webpage via the mx:HTML control.

2009/3/31 Martyn Bowis mar...@netdesign.co.nz:
 Have you considered using a single session, but separating out your
 different user logins into separate child objects within that one session?

 eg: in a typical session, you might have a session object with the following
 keys:
 session.firstname
 session.lastname
 session.email
 session.cart
 ..., etc.

 So, why not instead use:

 session.user1.firstname
 session.user1.lastname
 session.user1.email
 session.user1.cart
 ..., etc.
 and
 session.user2.firstname
 session.user2.lastname
 session.user2.email
 session.user2.cart
 ..., etc.

 If the user is logging in from the same computer, then they are the same
 person, but using separate objects for each of their logins/profiles like
 the above may solve the problem you have.

 Kind regards,
 Martyn



 


Re: [flexcoders] AMFPHP release project security problem

2009-03-30 Thread soulflow132

No i dont. i only have the service-config.xml file which is given with amfphp
/br
its something like this/br/br
services-config
services
service id=amfphp-flashremoting-service 
 
class=flex.messaging.services.RemotingService 
 
messageTypes=flex.messaging.messages.RemotingMessage
destination id=amfphp
channels
channel ref=my-amfphp/
/channels
properties
source*/source
/properties
/destination
/service
/services

channels
channel-definition id=my-amfphp
class=mx.messaging.channels.AMFChannel
endpoint 
uri=http://localhost:80/Workspace/amfphp/gateway.php;
class=flex.messaging.endpoints.AMFEndpoint/
/channel-definition
/channels
/services-config
/br
/br
/br
/br
/br

valdhor-3 wrote:
 
 Do you have a crossdomain.xml file on your server?
 
 
 --- In flexcoders@yahoogroups.com, soulflow132 sfood00...@... wrote:

 
 Hi am new to flex 3.
 /br I've created a flex application that connects to database using
 amfphp./br
 When i compile it and run it on flex builder environement it simply works
 ./br
 So i wanted to export it as release and i've done so./br
 As result i got a bin-release folder that contain the swf html file and
 other files./br/br
 When i try to open the index.html file i got an error warning like/br 
 http://www.nabble.com/file/p22784941/erreur.jpg 
 /br/br/br
 so PLEASE HOW CAN i resolve this problem./br
 Thank you alot and have a nice day
 -- 
 View this message in context:
 http://www.nabble.com/AMFPHP-release-project-security-problem-tp22784941p22784941.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/AMFPHP-release-project-security-problem-tp22784941p22796037.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] VSlider direction?

2009-03-30 Thread Tracy Spratt
I think that is a valid modification, say your control is increasing
attenuation.

 

If it was me, I would just look at the slider control code and decide
whether to subclass or copy and modify it.  I bet the logic is pretty
simple.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Paul Andrews
Sent: Monday, March 30, 2009 8:03 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] VSlider direction?

 

You've already had a suggestion to rotate the control; most users would 
expect the control to operate in the usual way, so what's the exception in 
this case?

Paul

- Original Message - 
From: gwangdesign gwangdesign@ mailto:gwangdesign%40yahoo.com
yahoo.com
To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
Sent: Monday, March 30, 2009 11:20 PM
Subject: [flexcoders] VSlider direction?

I am trying to make a VSlider but in a reversed direction than the 
default one, i.e., making it up side down, i.e., with the maximum value on 
the bottom and the minimum value on the top.

 What would be the easiest/fastest way?

 One of the innovative ways (but unsuccessful) I tried was setting the 
 maximum value to the minimum property and the minimum value to the 
 maximum property.

 Thanks.



 

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








Re: [flexcoders] VSlider direction?

2009-03-30 Thread Paul Andrews
I take your point, but even for attenuation I would expect to slide upwards to 
increase the attenuation level. If I dampen a sound, the more I dampen it the 
quieter it gets. My slider would be controlling the dampening rather than the 
sound volume. Maybe I've got the example wrong.

Paul
  - Original Message - 
  From: Tracy Spratt 
  To: flexcoders@yahoogroups.com 
  Sent: Tuesday, March 31, 2009 1:37 AM
  Subject: RE: [flexcoders] VSlider direction?


  I think that is a valid modification, say your control is increasing 
attenuation.

   

  If it was me, I would just look at the slider control code and decide whether 
to subclass or copy and modify it.  I bet the logic is pretty simple.

   

  Tracy Spratt,

  Lariat Services, development services available


--

  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
Behalf Of Paul Andrews
  Sent: Monday, March 30, 2009 8:03 PM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] VSlider direction?

   

  You've already had a suggestion to rotate the control; most users would 
  expect the control to operate in the usual way, so what's the exception in 
  this case?

  Paul

  - Original Message - 
  From: gwangdesign gwangdes...@yahoo.com
  To: flexcoders@yahoogroups.com
  Sent: Monday, March 30, 2009 11:20 PM
  Subject: [flexcoders] VSlider direction?

  I am trying to make a VSlider but in a reversed direction than the 
  default one, i.e., making it up side down, i.e., with the maximum value on 
  the bottom and the minimum value on the top.
  
   What would be the easiest/fastest way?
  
   One of the innovative ways (but unsuccessful) I tried was setting the 
   maximum value to the minimum property and the minimum value to the 
   maximum property.
  
   Thanks.
  
  
  
   
  
   --
   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: Explicit refresh in a data control

2009-03-30 Thread madhav_2k
Thanks for your response 

There is no datatype of the data provider, it's just a tree of generic objects 
of type TreeItem. Following is the signature of the TreeItem class:

import mx.collections.ArrayCollection;
import mx.collections.IViewCursor;

public class TreeItem {

[Bindable]public var  id  : String;
[Bindable]public var  label   : String;
[Bindable]public var  type: String;
[Bindable]public var  children: ArrayCollection = null; 
[Bindable]public var  description : String;

}

The children attribute will contain the leaf nodes of the tree and the nodes 
are also of type TreeItem. 

Also, I don't hahve any gett or set methods for the member attributes because 
the attributes are themselves declared as public . 

Thanks !

--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Typically this happens when you update the dataProvider with low-level
 assignments, instead of using the API.
 
  
 
 Exactly what is the datatype you your dataProvider?
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Madhav Annamraju
 Sent: Sunday, March 29, 2009 7:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Explicit refresh in a data control
 
  
 
 
 Hello Flex community,
 
  
 
 I have a problem with refreshing data in a list control when the data
 provider is a tree structure of generic objects. Here is the situation - 
 
  
 
  
 
 Consider that I have a class called TreeItem with the following attributes. 
 
  
 
 Class TreeItem 
 
 {
 
 public var name:String;
 
 public var description:String;
 
 publilc var image:String;
 
 public var children:TreeItem;
 
 }
 
  
 
 A tree structure of this TreeItem is provided as a data provider to a list
 control. 
 
 Issue is that the list control is not reflecting changes in the tree
 structure when an attribute of TreeItem is updated even though I am using
 data binding to bind TreeItem to the list control. 
 
 I was wondering if there is a way to explicitly trigger a refresh. I have
 already tried doing this by raising event PropertyChangeEvent but this is
 not making any difference. Appreciate if you can share your thoughts on
 this.





[flexcoders] Re: Application with parameters

2009-03-30 Thread markgoldin_2000
Cannot get it working, any more examples?

--- In flexcoders@yahoogroups.com, Pedro Sena sena.pe...@... wrote:

 Flashvars is the keyword.
 
 http://www.permadi.com/tutorial/flashVars/
 
 HTH
 
 On Mon, Mar 30, 2009 at 7:15 PM, markgoldin_2000
 markgoldin_2...@...wrote:
 
Is there a way of sending parameters to my Flex application?
 
  Thanks
 
   
 
 
 
 
 -- 
 /**
 * Pedro Sena
 * Systems Architect
 * Sun Certified Java Programmer
 * Sun Certified Web Component Developer
 */





[flexcoders] AdvancedDatagrid

2009-03-30 Thread lehaianh1986
Hi every body. I have a AdvancedDatagird and dataprovider from Array 
Collection. How to listen an event when I click to each row? I want use an 
event when I click left mouse, right mouse, double click,...etc

My code is here but it not run

var client:AdvancedDataGrid = new AdvancedDataGrid;
client.dataProvider = ArrayResults;
client.addEventListener(ListEvent.ITEM_CLICK,function(event:ListEvent):void
{
...
});



[flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread Tim Hoff

Just a syntax problem.  Should be like this:

var client:AdvancedDataGrid = new AdvancedDataGrid;
client.dataProvider = ArrayResults;
client.addEventListener( ListEvent.ITEM_CLICK , myEventHandler );

private function myEventHandler( event:ListEvent )
{
 // do something
}

-TH

Also, I'd suggest that you use an ArrayCollection instead of an array;
if you want to do any data manipulation.

--- In flexcoders@yahoogroups.com, lehaianh1986 lehaianh1...@...
wrote:

 Hi every body. I have a AdvancedDatagird and dataprovider from Array
Collection. How to listen an event when I click to each row? I want use
an event when I click left mouse, right mouse, double click,...etc

 My code is here but it not run

 var client:AdvancedDataGrid = new AdvancedDataGrid;
 client.dataProvider = ArrayResults;

client.addEventListener(ListEvent.ITEM_CLICK,function(event:ListEvent):v\
oid
 {
 ...
 });






Re: [flexcoders] Re: Ribbon in FLEX

2009-03-30 Thread Scott Barnes
Eye of the beholder and all..Our research tells us were on point with the
end users so far. I'd be curious to listen to some of your own thoughts on
where it could be improved, albiet removed and replaced with a better
solution? (little-r me so not to interrupt the thread flow).

There's many approaches one can take in progressive disclosure, at the end
of the day it's one of many patterns one can adopt. In the case presented
below, I specificed that should you do opt for the Office Ribbon UI, one
should consider the merits of what problems it's solving.

It really comes back to your targeted end user, what problems you're looking
to solve and how much time and money you're willing to invest in the overall
experience. You have a lot of lego pieces in todays RIAs, it's still up to
you to assemble and produce a solution that adheres to whatever design
principals you feel end users can cope with.



On Mon, Mar 30, 2009 at 4:40 PM, Bjorn Schultheiss 
bjorn.mailingli...@gmail.com wrote:

   Good point,

 Its difficult in an application with so many functions though.

 Take CS4, the tools panel in Photoshop seems to work for trained designers,
 but when it got introduced into Flash CS4 with the collapsed panels, its
 difficult to know which icon to click when they're not all familiar.

 Personally i dont think most web applications should borrow their design
 from MS Office.
 Although the UI may be familiar to the user base, a web application can
 usually be made more simple by restricting functionality related to the task
 at hand. eg, thermo's HUD.

 Mobile UX designers seem to do a good job at this.
 Take the IPhone. I prefer less obvious, more intuitive controls over a
 cluttered workspace any day.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Gleb
 Dolgich gleb...@... wrote:
 
  Ribbon is not a good UI, IMHO. It comes from Microsoft's idea that
  every command must have a corresponding icon, which in the past made
  for some of the most cluttered UIs out there. It's really hard to find
  what you need in the new Office ribbons, and I would think twice
  before following this trend. If you feel you need a ribbon in your
  application, maybe it's time to rethink your UI.
 
  --
  Gleb Dolgich
  Twitter: @gbd
  Web: http://www.pixelespressoapps.com
 
  On 30 Mar 2009, at 20:41, Scott Barnes wrote:
 
   Just a note. The true power of Ribbon isn't necessarily just a tab/
   hbox navigation, it's also about context in that the navigation
   reacts to elements you may have with your application. Thus
   producing contextual sensitive additional menu items where the end
   user invokes sensitive areas.
  
  
  
  
  
   On Fri, Mar 13, 2009 at 1:11 AM, Thibaud Van Vreckem thibaudm...@...
wrote:
  
   I know I could do it using tabs and panels, but an existing FLEX
   version could save me a lot of time.
  
   that ribbon design is a perfect example of what flex shines for.
   it's nothing more than tabs and canvas/Hbox panels. that's probably
   about 5 sec setup.
   I'm not sure I understand what you would you need a component for ..
  
   On Fri, Mar 13, 2009 at 9:29 AM, Claudio M. E. Bastos
 Iorioselecter...@...
wrote:
  
   Thanks for your answer and links.
  
   The silverlight version looks really great. Check this online demo
   (silverlight required):
 http://silverlight.services.live.com/invoke/60108/SilverlightRibbon/iframe.html
  
  
   I�m not trying to copy exactly the ribbon. Just the concept.
  
   I know I could do it using tabs and panels, but an existing FLEX
   version could save me a lot of time.
  
   If I don�t find any FLEX version, the silverlight version will help
me a lot, thanks.
  
   I wish I could use silverlight + .NET, but this is an AIR project L
  
  
  
   __
  
   Claudio M. E. Bastos Iorio
  
  
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
   On Behalf Of Sam Lai
   Sent: Friday, March 13, 2009 3:53 AM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   Subject: Re: [flexcoders] Ribbon in FLEX
  
  
  
 http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2
  
   Kind of like the toolbar for picking controls in Adobe Dreamweaver
   (unless they've changed it in recent versions).
  
   Unfortunately I haven't heard of any Flash implementations, only
   Silverlight implementations. You could implement it yourself using a
   TabNavigator and Panel controls inside each tab for groups, and
   buttons inside them. It's the styling that will be a pain - the
   official specs are available from Microsoft for free though, with some
   conditions attached
   (http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
   use the images and even code if you know XAML from the Silverlight
   version - http://silverlightribbon.codeplex.com/
  
   Personally I'd be making my own 

[flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread Tim Hoff

Missed the return void.

private function myEventHandler( event:ListEvent ):void
{
// do something
}

-TH

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:


 Just a syntax problem. Should be like this:

 var client:AdvancedDataGrid = new AdvancedDataGrid;
 client.dataProvider = ArrayResults;
 client.addEventListener( ListEvent.ITEM_CLICK , myEventHandler );

 private function myEventHandler( event:ListEvent )
 {
 // do something
 }

 -TH

 Also, I'd suggest that you use an ArrayCollection instead of an array;
 if you want to do any data manipulation.

 --- In flexcoders@yahoogroups.com, lehaianh1986 lehaianh1986@
 wrote:
 
  Hi every body. I have a AdvancedDatagird and dataprovider from Array
 Collection. How to listen an event when I click to each row? I want
use
 an event when I click left mouse, right mouse, double click,...etc
 
  My code is here but it not run
 
  var client:AdvancedDataGrid = new AdvancedDataGrid;
  client.dataProvider = ArrayResults;
 

client.addEventListener(ListEvent.ITEM_CLICK,function(event:ListEvent):v\
\
 oid
  {
  ...
  });
 






[flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread lehaianh1986
Yeah I see. Thank you very much. I still have small question
To give index of row I use 
AdvancedDataGrid(event.currentTarget).selectedIndex = event.rowIndex;

But to give data of it, how do I do?

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 
 Missed the return void.
 
 private function myEventHandler( event:ListEvent ):void
 {
 // do something
 }
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
 
  Just a syntax problem. Should be like this:
 
  var client:AdvancedDataGrid = new AdvancedDataGrid;
  client.dataProvider = ArrayResults;
  client.addEventListener( ListEvent.ITEM_CLICK , myEventHandler );
 
  private function myEventHandler( event:ListEvent )
  {
  // do something
  }
 
  -TH
 
  Also, I'd suggest that you use an ArrayCollection instead of an array;
  if you want to do any data manipulation.
 
  --- In flexcoders@yahoogroups.com, lehaianh1986 lehaianh1986@
  wrote:
  
   Hi every body. I have a AdvancedDatagird and dataprovider from Array
  Collection. How to listen an event when I click to each row? I want
 use
  an event when I click left mouse, right mouse, double click,...etc
  
   My code is here but it not run
  
   var client:AdvancedDataGrid = new AdvancedDataGrid;
   client.dataProvider = ArrayResults;
  
 
 client.addEventListener(ListEvent.ITEM_CLICK,function(event:ListEvent):v\
 \
  oid
   {
   ...
   });
  
 





RE: [flexcoders] Re: Application with parameters

2009-03-30 Thread Tracy Spratt
Lots of examples out there.  What google phrases have you tried so far?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markgoldin_2000
Sent: Monday, March 30, 2009 9:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Application with parameters

 

Cannot get it working, any more examples?

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Pedro Sena sena.pe...@... wrote:

 Flashvars is the keyword.
 
 http://www.permadi. http://www.permadi.com/tutorial/flashVars/
com/tutorial/flashVars/
 
 HTH
 
 On Mon, Mar 30, 2009 at 7:15 PM, markgoldin_2000
 markgoldin_2...@...wrote:
 
  Is there a way of sending parameters to my Flex application?
 
  Thanks
 
  
 
 
 
 
 -- 
 /**
 * Pedro Sena
 * Systems Architect
 * Sun Certified Java Programmer
 * Sun Certified Web Component Developer
 */






RE: [flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread Tracy Spratt
What are you trying to do with the line?:

AdvancedDataGrid(event.currentTarget).selectedIndex = event.rowIndex;

 

As it is is sets the selectedIndex to itself.  rowIndex is the
selectedIndex.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of lehaianh1986
Sent: Monday, March 30, 2009 10:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AdvancedDatagrid

 

Yeah I see. Thank you very much. I still have small question
To give index of row I use 
AdvancedDataGrid(event.currentTarget).selectedIndex = event.rowIndex;

But to give data of it, how do I do?

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tim Hoff timh...@... wrote:

 
 Missed the return void.
 
 private function myEventHandler( event:ListEvent ):void
 {
 // do something
 }
 
 -TH
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tim Hoff TimHoff@ wrote:
 
 
  Just a syntax problem. Should be like this:
 
  var client:AdvancedDataGrid = new AdvancedDataGrid;
  client.dataProvider = ArrayResults;
  client.addEventListener( ListEvent.ITEM_CLICK , myEventHandler );
 
  private function myEventHandler( event:ListEvent )
  {
  // do something
  }
 
  -TH
 
  Also, I'd suggest that you use an ArrayCollection instead of an array;
  if you want to do any data manipulation.
 
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com, lehaianh1986 lehaianh1986@
  wrote:
  
   Hi every body. I have a AdvancedDatagird and dataprovider from Array
  Collection. How to listen an event when I click to each row? I want
 use
  an event when I click left mouse, right mouse, double click,...etc
  
   My code is here but it not run
  
   var client:AdvancedDataGrid = new AdvancedDataGrid;
   client.dataProvider = ArrayResults;
  
 
 client.addEventListener(ListEvent.ITEM_CLICK,function(event:ListEvent):v\
 \
  oid
   {
   ...
   });
  
 






[flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread Tim Hoff

event.itemRenderer.data

-TH

--- In flexcoders@yahoogroups.com, lehaianh1986 lehaianh1...@...
wrote:

 I use the line to test. It show the row index in advanceddatagrid that
I want to select.
 What I need is data of object in each row I select. But how to give
it?

 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  What are you trying to do with the line?:
 
  AdvancedDataGrid(event.currentTarget).selectedIndex =
event.rowIndex;
 
 
 
  As it is is sets the selectedIndex to itself. rowIndex is the
  selectedIndex.
 
 
 
  Tracy Spratt,
 
  Lariat Services, development services available
 
  _
 
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On
  Behalf Of lehaianh1986
  Sent: Monday, March 30, 2009 10:29 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: AdvancedDatagrid
 
 
 
  Yeah I see. Thank you very much. I still have small question
  To give index of row I use
  AdvancedDataGrid(event.currentTarget).selectedIndex =
event.rowIndex;
 
  But to give data of it, how do I do?
 
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
  Tim Hoff TimHoff@ wrote:
  
  
   Missed the return void.
  
   private function myEventHandler( event:ListEvent ):void
   {
   // do something
   }
  
   -TH
  
   --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
  Tim Hoff TimHoff@ wrote:
   
   
Just a syntax problem. Should be like this:
   
var client:AdvancedDataGrid = new AdvancedDataGrid;
client.dataProvider = ArrayResults;
client.addEventListener( ListEvent.ITEM_CLICK , myEventHandler
);
   
private function myEventHandler( event:ListEvent )
{
// do something
}
   
-TH
   
Also, I'd suggest that you use an ArrayCollection instead of an
array;
if you want to do any data manipulation.
   
--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
  ups.com, lehaianh1986 lehaianh1986@
wrote:

 Hi every body. I have a AdvancedDatagird and dataprovider from
Array
Collection. How to listen an event when I click to each row? I
want
   use
an event when I click left mouse, right mouse, double
click,...etc

 My code is here but it not run

 var client:AdvancedDataGrid = new AdvancedDataGrid;
 client.dataProvider = ArrayResults;

   
  
client.addEventListener(ListEvent.ITEM_CLICK,function(event:ListEvent):v\
\
   \
oid
 {
 ...
 });

   
  
 





RE: [flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread Tracy Spratt
Use : event.currentTarget.selectedItem;

That will return a reference to the currently selected item object in the
dataProvider.

 

Alternatively, you could do:
ArrayResults.getItemAt(event.CurrentTarget.selectedIndex)

 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of lehaianh1986
Sent: Monday, March 30, 2009 10:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AdvancedDatagrid

 

I use the line to test. It show the row index in advanceddatagrid that I
want to select.
What I need is data of object in each row I select. But how to give it?

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 What are you trying to do with the line?:
 
 AdvancedDataGrid(event.currentTarget).selectedIndex = event.rowIndex;
 
 
 
 As it is is sets the selectedIndex to itself. rowIndex is the
 selectedIndex.
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of lehaianh1986
 Sent: Monday, March 30, 2009 10:29 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: AdvancedDatagrid
 
 
 
 Yeah I see. Thank you very much. I still have small question
 To give index of row I use 
 AdvancedDataGrid(event.currentTarget).selectedIndex = event.rowIndex;
 
 But to give data of it, how do I do?
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tim Hoff TimHoff@ wrote:
 
  
  Missed the return void.
  
  private function myEventHandler( event:ListEvent ):void
  {
  // do something
  }
  
  -TH
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
ups.com,
 Tim Hoff TimHoff@ wrote:
  
  
   Just a syntax problem. Should be like this:
  
   var client:AdvancedDataGrid = new AdvancedDataGrid;
   client.dataProvider = ArrayResults;
   client.addEventListener( ListEvent.ITEM_CLICK , myEventHandler );
  
   private function myEventHandler( event:ListEvent )
   {
   // do something
   }
  
   -TH
  
   Also, I'd suggest that you use an ArrayCollection instead of an array;
   if you want to do any data manipulation.
  
   --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
 ups.com, lehaianh1986 lehaianh1986@
   wrote:
   
Hi every body. I have a AdvancedDatagird and dataprovider from Array
   Collection. How to listen an event when I click to each row? I want
  use
   an event when I click left mouse, right mouse, double click,...etc
   
My code is here but it not run
   
var client:AdvancedDataGrid = new AdvancedDataGrid;
client.dataProvider = ArrayResults;
   
  
 
client.addEventListener(ListEvent.ITEM_CLICK,function(event:ListEvent):v\
  \
   oid
{
...
});
   
  
 






[flexcoders] Re: AdvancedDatagrid

2009-03-30 Thread lehaianh1986
I use the line to test. It show the row index in advanceddatagrid that I want 
to select.
What I need is data of object in each row I select. But how to give it?
 
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 What are you trying to do with the line?:
 
 AdvancedDataGrid(event.currentTarget).selectedIndex = event.rowIndex;
 
  
 
 As it is is sets the selectedIndex to itself.  rowIndex is the
 selectedIndex.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of lehaianh1986
 Sent: Monday, March 30, 2009 10:29 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: AdvancedDatagrid
 
  
 
 Yeah I see. Thank you very much. I still have small question
 To give index of row I use 
 AdvancedDataGrid(event.currentTarget).selectedIndex = event.rowIndex;
 
 But to give data of it, how do I do?
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tim Hoff TimHoff@ wrote:
 
  
  Missed the return void.
  
  private function myEventHandler( event:ListEvent ):void
  {
  // do something
  }
  
  -TH
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tim Hoff TimHoff@ wrote:
  
  
   Just a syntax problem. Should be like this:
  
   var client:AdvancedDataGrid = new AdvancedDataGrid;
   client.dataProvider = ArrayResults;
   client.addEventListener( ListEvent.ITEM_CLICK , myEventHandler );
  
   private function myEventHandler( event:ListEvent )
   {
   // do something
   }
  
   -TH
  
   Also, I'd suggest that you use an ArrayCollection instead of an array;
   if you want to do any data manipulation.
  
   --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com
 ups.com, lehaianh1986 lehaianh1986@
   wrote:
   
Hi every body. I have a AdvancedDatagird and dataprovider from Array
   Collection. How to listen an event when I click to each row? I want
  use
   an event when I click left mouse, right mouse, double click,...etc
   
My code is here but it not run
   
var client:AdvancedDataGrid = new AdvancedDataGrid;
client.dataProvider = ArrayResults;
   
  
  client.addEventListener(ListEvent.ITEM_CLICK,function(event:ListEvent):v\
  \
   oid
{
...
});