Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Greg_Lafrance
Community profile Greg_Lafrance Level 3
Job title here
Location here
8 BADGES
Level 3

Level 3

Learn more
Joined the community 01-10-2007 11:04:50 PM
Offline
Top badges earned by Greg_Lafrance
Customize the badges you want to showcase on your profile
Re: Help With Choosing The Technology
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
If you are saying you want the server component to be on the same machine as the Flex app, then your choices are severely limited due to the sandbox, unless of course you are using AIR, then you can just use the SQLite database.But if there will be a sevrer component on another machine on the web, you could use BlazeDS, and like I said, its free and very robust.http://opensource.adobe.com/wiki/display/blazeds/download+blazeds+3http://learn.adobe.com/wiki/display/Flex/Creating+a+BlazeDS+web+servi...

Views

28

Likes

0

Replies

0
Re: Help With Choosing The Technology
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
Because your system will be restricted to one machine at a time, I think you could use Flex/BlazeDS/Java.I've heard BlazeDS "just works" even though it is open source.If you don't want to go that route, you might try ColdFusion, which I've also heard is very good.I've even heard straight PHP or Zend is a good choice as well.If this post answers your question or helps, please mark it as such. Greg Lafrance - Flex 2 and 3 ACE certifiedwww.ChikaraDev.comFlex / AIR Development, Training, and Support...

Views

27

Likes

0

Replies

0
Re: A problem with login system
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
Are you uploading your app to the server? It might not work locally on your machine.

Views

36

Like

1

Replies

0
Re: Accessing data in Flex
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
These links show connecting to a MySQL database, but should be similar to SQL Server:http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-jsonhttp://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databasehttp://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updatingIf this post answers your question or helps, please mark it as such.

Views

69

Like

1

Replies

0
Re: Data service works from desktop, but not from server
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
Often this is because you need to add the -use-network=true compiler option in the FlexBuilder menubar: Project - Properties - Flex Compiler - Additional compiler arguments: add -use-network=true and then recompile and post to server, should work fine. Note: if you create a "release build" and move it elsewhere on your local machine, you may need to add -use-network=true and then recompile for the app to be able to access local resources outside the Flex Builder environment.If this post answers ...

Views

40

Likes

0

Replies

0
Re: Hosting Problem....
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
You might need to set --use-network=false compiler argument.In the main menu:Project - Properties - Flex Compiler - Additional compiler argumentsadd --use-network=trueIf this post answers your question or helps, please mark it as such.

Views

31

Likes

0

Replies

0
Re: How acess data after retrieving it from a web service
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
It depends on how the data is formed when it comes back and is put in the ArrayCollection.In general, you can access the 6th row of an ArrayCollection lilke this:myAC.getItemAt(5);You can loop through ab ArrayCollection like this:for each(var obj:Object in myAC){ trace(obj);}But then the question becomes how are the fields in each row of data formed?If the rows of data are objects, you could access the data like this:myAC.getItemAt(5).custName or sometimes like this:myAC.getItemAt(5)[custName]So...

Views

28

Like

1

Replies

0
Re: Error #1088
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
You should examine what is coming back from your PHP call. It is likely either nothing is coming back, or a simple string is coming back instead of XML, or the XML is malformed.Sometimes you need to wrap simple strings in PHP code to avoid this. So if your PHP has $result = "error occurred"; then change it to something like $result = "error occurred";If this post answers your question or helps, please mark it as such.

Views

65

Likes

0

Replies

0
Re: Need automatic resize of flex app
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
You will probably need to use a combination of auto-layout and constraint based layout in your application.You need to decide what can grow freely and what should stay the same size, but the parts that can grow seem to mainly be the pages.We need to see something that indicates what you are dealing with for container structure here.Can you tell us what containers and their general qualities are?

Views

31

Likes

0

Replies

0
Re: Datagrid ArrayCollection Timeout issue
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
You could try to implement paging, and return only a subset of the data.http://frankfenghua.blogspot.com/2007/07/flex-datagrid-paging-example-with.htmlhttp://gurufaction.blogspot.com/2007/02/flex-datagrid-paging-example-with.htmlIf this post answers your question or helps, please mark it as such.

Views

40

Likes

0

Replies

0
Re: Flex - HttpService - how to display an arraylist in flex combobox
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
priorityC seems to be an Array, but it seems you are only putting one item in it. Is that your intention? You may need to use the labelField property of the ComboBox to indicate what field to use in the ComboBox. You might even need to use the labelFunction property.What happens when you trace event.result?What happens when you trace priorityC[0]?If this post answers your question or helps, please mark it as such.

Views

25

Likes

0

Replies

0
Re: Invalid Markup error using Datawizard
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
I can't stand using wizards for this kind of thing.These links will help you have a better understanding of using Flex, PHP, MySQL and JSON:http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-jsonhttp://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databasehttp://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updatingIf this post answers your question or helps, please mark it as such.

Views

32

Likes

0

Replies

0
Re: how the **** do I connect to my remote server?
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
Personally I am always a bit leary about letting Flex Builder manage the connections to the database like this.That said, here are a few great links describing using HTTPService, PHP, and MySQL:http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-jsonhttp://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databasehttp://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updatingIf this post answers your question or helps, pleas...

Views

54

Like

1

Replies

0
Re: Problem connecting with database when Flex Builder closed
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
In Flex Builder main menu:Project - Properties - Flex Compiler - Additional compiler argumentsadd -use-network=trueIf this post answered your question or helped, please mark it as such.

Views

57

Like

1

Replies

0
Re: Help me plz very URgent
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
Here are links on transferring data between Flex and a database:http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-jsonhttp://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databasehttp://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updatingIf this post answered your question or helped, please mark it as such.

Views

73

Like

1

Replies

0
Re: how to get flex web services to properly serialize an array of objects?
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
I wonder if you can use mx.utils.ArrayUtil.toArray(myAC) to convert the ArrayCollection to Array.

Views

33

Like

1

Replies

0
Re: synchronizing databases and Flex products
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
You can use Flex/AIR and connect to both databases using whatever backend technology works for you, ColdFusion, PHP, Java, etc.You just use the Flex HTTPService, WebService, and RemoteObject components to transfer data between the databases and your Flex app.If this post answered your question or helped, please mark it as such.

Views

33

Likes

0

Replies

0
Re: Retrieve information from arrayCollection
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
Often it is possible to either return data to the Flex app in standard object notation, or to reconfigure the data that way after it comes back to the Flex app in the result handler. The standard notation I'm referring to is:{ {key1: "value 1", key2: "value2", key3: "value3"}, {key1: "value 1", key2: "value2", key3: "value3"}, {key1: "value 1", key2: "value2", key3: "value3"}, {key1: "value 1", key2: "value2", key3: "value3"}}So in this way the data is already structured as an associative array,...

Views

52

Likes

0

Replies

0
Re: Retrieve information from arrayCollection
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
You need an associative array:http://livedocs.adobe.com/flex/3/html/help.html?content=10_Lists_of_data_4.htmlIf this post answers your question or helps, please mark it as such.

Views

51

Like

1

Replies

0
Re: Retrieve information from arrayCollection
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
I do not fully understand exactly you are trying to do, but anyway getItemAt(1,0) won't work, do you mean getItemAt(1) or getItemAt(0)?Each column in the datagrid has a property headerText, so you might be able to use that somehow.Like I said, I'm not exactly sure what you want to do, please describe again.If this post answered your question or helped, please mark it as such.

Views

56

Like

1

Replies

0
Re: Changing text color in ActionScript
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
var txt:Text = new Text();txt.setStyle("color", "0xFF0000");The setStyle() call is how you set style properties in ActionScript.If this post answers your question or helps, please mark it as such.

Views

28

Like

1

Replies

0
Re: sharing data between swf files
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
You can use a ViewStack or states so the SWFs are open, then you can use LocalConnection.If this post answers your question or helps, please mark it as such.

Views

51

Likes

0

Replies

0
Re: include files
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
You can do this by just having an Array in an ActionScript file as well, and do not need a class.If this post answers your question or helps, please mark it as such. include "sample/SampleArrayHolder.as"; [Bindable] public static var arr:Array=new Array("1","2","3","4","5");

Views

56

Like

1

Replies

0
Re: E4X issue in actionscript
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
Have you confirmed that you are in fact getting back "success" as a result, and that it is coming back in the XML structure you expect?What happens when you inspect the event.result object in the FB debugger?If this post answers your question or helps, please mark it as such.

Views

51

Likes

0

Replies

0
Re: sharing data between swf files
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
I think you should be able to use the LocalConnection class to communicate between two SWF.These links should help:http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.htmlhttp://learn.adobe.com/wiki/display/Flex/Local+ConnectionsIf this post answers your question or helps, please mark it as such.

Views

79

Likes

0

Replies

0
Re: HTTPService on a Shared Server
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
If your app maes use of URLs to localhost, then of course you will need to change those URLs to point to the shared server.You may need to compile the app with the -use-network compiler option set to true. In Flex Builder main menu, Project - Properties - Flex Compiler, then add -use-network=true to the "Additional compiler arguments" area.Also, your HTTPService must be requesting data from the same server from which the Flex app SWF came from, otherwise you need a crossdomain.xml file set up.my...

Views

67

Like

1

Replies

0
Re: ReferenceError: Error #1056: Cannot create property code on mx.messaging.messages.ErrorMessage.
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
Maybe the error object differs depending on something, so a different type is returned. This would explain why your error says property "code" does not exist for mx.messaging.messages.ErrorMessageStep through the code and see what object is being returned, and then perhaps check the type in your code with something like this:if(myObj is mx.messaging.messages.ErrorMessage){ do something}If this post answers your question or helps, please mark it as such.

Views

73

Like

1

Replies

0
Re: HTTPService question
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
These links use JSON to handle the data, but the PHP code, as well as the Flex code, should answer your questions.If this post answers your question or helps, please mark it as such. http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-usi ng-jsonhttp://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mys ql-databasehttp://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updating

Views

53

Likes

0

Replies

0
Re: Create an HTTPService in PHP/MySQL?
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
These links use JSON to handle the data, but the PHP code, as well as the Flex code, should answer your questions.If this post answers your question or helps, please mark it as such. http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-jsonhttp://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databasehttp://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updating

Views

45

Likes

0

Replies

0
Re: XML vs CSV for Flex apps
Avatar
Boost 5
Level 3
Greg_Lafrance
Level 3

Likes

15 likes

Total Posts

71 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Greg_Lafrance
- Adobe LiveCycle
If you use XML you will be able to use e4x syntax for filtering, drilling into data, etc. If you use CSV you will need to parse the data.I think the performance gain will not be worth it. Flex works well with XML and offers advantages, so I would just go with XML. In the long run you will be better off.If this post answers your question or helps, please mark it as such.

Views

73

Likes

0

Replies

0
Likes given to
Likes from