Re: [flexcoders] Implement Multiple Interfaces in a MXML component

2009-09-08 Thread Fidel Viegas
Hi Michael,

On Tue, Sep 8, 2009 at 10:48 AM, Michael Ridlandrid...@gmail.com wrote:


 Hi

 I want to be able to implement multiple interfaces in a MXML Component. But
 I get this error, 'Attribute implements was already specified for element
 mx:Canvas.'.

Without the sample code, it is really difficult for people help you.

Regards,

Fidel.


Re: [flexcoders] Bind ComboBox to returning XML (HOW TO)

2009-03-23 Thread Fidel Viegas
Here is another alternative:


declare an HTTPService like this:

  mx:HTTPService
id=listService
url=path/to/list.jsp
method=POST
showBusyCursor=true
fault=onFault(event);
result=onResult(event);
useProxy=false/

and an array collection

mx:ArrayCollection id=designerAC/

and in your actionscript you create the following handler:

private function onResult(event : ResultEvent) : void {
  if (event.result.response.designers == null ||
event.result.response.designers.designer == null) {
designerAC = new ArrayCollection(); // empty array collection
  } else if (event.result.response.designers.designer is ObjectProxy) {
designerAC = new
ArrayCollection([event.result.response.designers.designer]);
  } else {
designerAC = event.result.response.designers.designer as ArrayCollection;
  }
}

and your combo box would look like something like this:

mx:ComboBox dataProvider={designerAC} labelField=name/

 That should give you an idea.

Hope that helped

Fidel.

On Mon, Mar 23, 2009 at 10:23 PM, Wildbore, Brendon
b.j.wildb...@massey.ac.nz wrote:
 Here’s an example of one way of doing that.



 Assuming you xml comes from a webservice or httpservice call and you want
 your combobox dataprovider bound to a variable comboboxAC you could try the
 following function onResult.





   private function onResult( event:ResultEvent ):void{

     // put xml into array

 var returnedData:ArrayCollection = new ArrayCollection(ArrayUtil.toArray(
 event.result ) );



     // loop over result array and create a new object
 for each xml item

     for (var i:uint = 0;ireturnedData.length;i++){

   // create object

   var obj:Object = new Object();

   obj.label=returnedData[i].name;

   obj.data=returnedData[i].id;

   // add item to combobox dataprovider


 comboboxAC.addItem(obj);

     }

   }



 T



 

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of Matthew A. Wilson
 Sent: Tuesday, 24 March 2009 8:12 a.m.
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Bind ComboBox to returning XML (HOW TO)



 Need help with a combobox...

 I have a combobox that I want to load from a database. The text will be a
 name, and the value will be an integer.

 That's it - pretty straightforward. Just can't seem to figure it out. The
 xml will look like this:

 designers
 designer id=1 name=Matt /
 designer id=2 name=Ted /
 /designers

 Thanks so much in advance for your help!!!

 




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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] MySQL and Flex

2009-03-22 Thread Fidel Viegas
On Sun, Mar 22, 2009 at 10:14 AM, christophe_jacquelin
christophe_jacque...@yahoo.fr wrote:
 Hello,

 How to use mySQL with Flex ?


Have a look at aSQL (http://asql.mooska.pl/). I think it is still
experimental. I have tried it once, and I was able to communicate with
mysql from both AIR and the Browser.

Good luck!

Fidel.


Re: [flexcoders] Compilers

2009-03-09 Thread Fidel Viegas
On Mon, Mar 9, 2009 at 7:09 AM, James Riffe jtri...@24x7-systems.com wrote:
 Does Flex have both a 32bit and a 64 bit compiler?

Hi James,

The Flex compiler is implemented in Java. So, if you want to take
advantage of 64-bit architecture, you will need a 64-bit JVM.

Fidel.


[flexcoders] Flex News Scroller

2009-03-06 Thread Fidel Viegas
Hi all!

I was wondering if someone has an example of a news scroller in Flex.

I have searched google and found nothing related to it, so I was
wondering if anyone knows of any link somewhere.

Thanks!

Fidel.


Re: [flexcoders] Flex News Scroller

2009-03-06 Thread Fidel Viegas
On Fri, Mar 6, 2009 at 9:53 AM, Tom Chiverton
tom.chiver...@halliwells.com wrote:
 On Friday 06 Mar 2009, Fidel Viegas wrote:
 I was wondering if someone has an example of a news scroller in Flex.

 Snackr

Hi Tom,

Thanks for the reply, but I am looking more for a news ticker to
insert on a webpage. I have found it under news scroller and news
ticker.

Fidel.


Re: [flexcoders] Database connection from AIR application

2008-12-17 Thread Fidel Viegas
On Thu, Dec 18, 2008 at 7:59 AM, kotha poornima poorni_ag...@yahoo.com wrote:
 Hi all,
 I am going to create a AIR Desktop application. Am i able to connect to the
 database such as SQL Server or MYSQL from AIR to retrieve data. Can anyone
 give me an idea how can i do this task or send me any websites regarding the
 same.

No, you need to write server-side code in java, php, ruby, .net,
etc..., or your can use a gateway such as merapi.

All the best,

Fidel.


Re: [flexcoders] How to wite a javascript that calls to ActionScript

2008-12-10 Thread Fidel Viegas
On Tue, Dec 9, 2008 at 6:14 PM, wkolcz [EMAIL PROTECTED] wrote:
 Sorry about that. Its not really my fault. Its the flexcoder list system.
 Actually I emailed one at 5pm yesterdays, waited for it to show up but it
 didnt.
 So I sent another one about 8:30 pm, it didn't show up either.
 Then I sent one this morning and it didn't show up for an hour (when all 3
 showed up).

Sometimes it happens. Anyway, did you solve your problem?

Fidel.


Re: [flexcoders] How to wite a javascript that calls to ActionScript

2008-12-09 Thread Fidel Viegas
On Tue, Dec 9, 2008 at 2:07 PM, wkolcz [EMAIL PROTECTED] wrote:
 Can someone show me how to write a javascript function that calls to a
 Flex/AS function before a browser window closes?

 In my AS contructor I have:
 if (ExternalInterface.available)
 ExternalInterface.addCallback(tagWithClosed,windowClosed);

 I tried something like this, but I don't know how to actually invoke the
 correct function name. The swf is FXVideo.swf, the swf id is FXVideo and the
 .as file is FXVideo.as:
 SCRIPT LANGUAGE=JavaScript
 window.onbeforeunload = closingWindow;
 function closingWindow()
 {
FXVideo.tagWithClosed();
 }
 /SCRIPT

 I would greatly appreciate it if someone could help me write this. Project
 due tomorrow.

Hi wkolcz,

try not to post the same message more than once. If people don't take
the time to answer it is because the information is easily available
on the net. What you are asking is easily found on google. Here is
what I found doing a search on flex + javascript:

http://blog.paranoidferret.com/?p=25

Good luck, and try to search on google before posting your question.
It is faster than waiting for someone to reply.

All the best,

Fidel.


[flexcoders] Barcode Scanners and Flex

2008-11-05 Thread Fidel Viegas
Hello all,

I was wondering if anyone has tried reading a Barcode Scanner from
Flash using either Flex or Flash CS. Since some Barcode Scanners
emulate the keyboard, I thought that it should be possible to read it
from Flash. Has anyone had any luck with that? And how did you go
about doing it?

Thanks in advance,

Fidel.


Re: [flexcoders] Re: Barcode Scanners and Flex

2008-11-05 Thread Fidel Viegas
On Wed, Nov 5, 2008 at 10:24 PM, markgoldin_2000
[EMAIL PROTECTED] wrote:
 With barcode readers you have two options:
 Keyboard scanner or serial port scanner.
 With a keyboard scanner you have to move a cursor to a text box you
 are entering data into, then a scan will go into that field.
 the rest is as same as it would have been entered by a hand.
 With serial scanners you wouldn't have to position cursor first, but
 you would need an application that runs on the server to control
 serial port. Not trivial task, can be done though, but what's worse
 you will need to find a way of delivering scanned data into Flex
 interface. Even less trivial task. I would suggest to stick to a
 keyboard option.
 HTH


Hi Mark,

Thanks for the quick reply. I guess I will go with the first option.
But now I have another question. Will any Barcode Scanner work? Or are
there special Scanners that can be read as keyboard emulation? Do you
have any pointers of what sort of scanners I should use?

Thanks in advance.

Fidel.


Re: [flexcoders] Re: Barcode Scanners and Flex

2008-11-05 Thread Fidel Viegas
On Wed, Nov 5, 2008 at 11:01 PM, markgoldin_2000
[EMAIL PROTECTED] wrote:
 In general, any modern scanner should work. As long as it has
 keyboard emulation. And I believe the majority of nowadays scanners
 have it.

Thanks!


Re: [flexcoders] Re: Barcode Scanners and Flex

2008-11-05 Thread Fidel Viegas
On Thu, Nov 6, 2008 at 12:57 AM, Cato Paus [EMAIL PROTECTED] wrote:
 Hi Fidel, I wrote a litle app some weeks ago where I tested a RFID
 reader that emulate keyboard, here it is if you want it :)

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=intApp(event);

 mx:Script
 ![CDATA[
 import mx.managers.FocusManager;
 import mx.events.FlexEvent;


 private function intApp(event:FlexEvent):void
 {
 this.rfidInput.addEventListener(FlexEvent.ENTER, onRFIDInput);
 }

 private function startRFIDRead(event:MouseEvent):void
 {
 rfidInput.text = '';
 focusManager.setFocus(rfidInput);
 }

 private function onRFIDInput(event:FlexEvent):void
 {
 trace(event);
 focusManager.hideFocus();
 focusManager.setFocus(readButtom);
 }

 ]]
 /mx:Script

 mx:TextInput id=rfidInput horizontalCenter=0 verticalCenter=0/
 mx:Button id=readButtom label=les horizontalCenter=0
 verticalCenter=30 click=startRFIDRead(event);/

 /mx:Application

Hi Cato,

Thanks a lot for the code.

Fidel.


Re: [flexcoders] What would be the equivalent asp.net script of this PHP one (to upload a file)

2008-09-30 Thread Fidel Viegas
On Tue, Sep 30, 2008 at 6:16 PM, gilbert_mizrahi [EMAIL PROTECTED] wrote:
 I have been playing around uploading files from Flex/AIR to php with
 this script:

 ?php
 $tempFile = $_FILES['Filedata']['tmp_name'];
 $fileName = $_FILES['Filedata']['name'];

 if(move_uploaded_file($tempFile, ./videos/ . $fileName)) {
 echo The file . basename( $_FILES['uploadedfile']['name']).
  has been uploaded successfully;
 } else{
 echo There was an error uploading the file, please try again!;
 }
 ?

 What would be the equivalent for asp.net?

Hi Gilbert,

Before posting a question to this user group, I advise you to search
your answers on google. If you don't find them there, then you post
your question here. Usually, people do not answer to questions such as
the one you have just posted, because they can be easily found through
a google search.
Here are a few links I found using the words uploading with asp.net:

http://www.codeproject.com/KB/aspnet/fileupload.aspx
http://www.wrox.com/WileyCDA/Section/id-292158.html
http://www.4guysfromrolla.com/webtech/091201-1.shtml
http://www.ondotnet.com/pub/a/dotnet/2002/04/01/asp.html
http://www.aspheute.com/english/2802.asp

Hope that helps.

All the best,

Fidel.


Re: [flexcoders] Multiple viewstacks?

2008-08-22 Thread Fidel Viegas
On Fri, Aug 22, 2008 at 8:49 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 Absolutely you can nest ViewStacks.  What didn't work.

I second this. I have used it and it worked.

Fidel.


Re: [flexcoders] JSON as dataprovider

2008-08-14 Thread Fidel Viegas
On Thu, Aug 14, 2008 at 2:50 PM, grimmwerks [EMAIL PROTECTED] wrote:
 Ok I've actually had to do this slightly different - as there will be
 a lot of flipping between items; what I'd hoped to do was something
 like like a static var of 'db' as ArrayCollection and do a
 db.removeAll() -- but when I've even manually parsed the var arr and
 tried doing a db.addItem(arr[x]) it's not working...


What exactly are you trying to achieve? You have to be clearer on what
you are after so that we can help you.

Fidel.


Re: [flexcoders] JSON as dataprovider

2008-08-13 Thread Fidel Viegas
On Thu, Aug 14, 2008 at 5:54 AM, grimmwerks [EMAIL PROTECTED] wrote:

 I've got a class that gets a JSON object - and within this JSON object
 is a list of items.

 I'm trying to do what I think is very simple -- but I'm missing
 something -- being able to bind a tilelist to an array of this
 returned objects.items.

 I've tried manually parsing through these items and doing an
 addItem(return.items[i]) into an arraycollection - but this doesn't
 seem to be working at all.

 Any thoughts or examples please?

Get the as3corelib (http://code.google.com/p/as3corelib/) and do the following:

import com.adobe.serialization.json.JSON;

// get the results as JSON
var results:String = String(httpService.lastResult);

// decode them into an object
var obj:Object = JSON.decode(results);

// get the bindings as an array
var test:Array = obj.results.bindings as Array;

// create a collection that can be used by the data grid
var arrayColl:ArrayCollection = new ArrayCollection(test);

All the best,

Fidel.


Re: [flexcoders] JSON as dataprovider

2008-08-13 Thread Fidel Viegas
On Thu, Aug 14, 2008 at 6:19 AM, Fidel Viegas [EMAIL PROTECTED] wrote:
 On Thu, Aug 14, 2008 at 5:54 AM, grimmwerks [EMAIL PROTECTED] wrote:

 I've got a class that gets a JSON object - and within this JSON object
 is a list of items.

 I'm trying to do what I think is very simple -- but I'm missing
 something -- being able to bind a tilelist to an array of this
 returned objects.items.

 I've tried manually parsing through these items and doing an
 addItem(return.items[i]) into an arraycollection - but this doesn't
 seem to be working at all.

 Any thoughts or examples please?

 Get the as3corelib (http://code.google.com/p/as3corelib/) and do the 
 following:

 import com.adobe.serialization.json.JSON;

 // get the results as JSON
 var results:String = String(httpService.lastResult);

 // decode them into an object
 var obj:Object = JSON.decode(results);

 // get the bindings as an array
 var test:Array = obj.results.bindings as Array;

 // create a collection that can be used by the data grid
 var arrayColl:ArrayCollection = new ArrayCollection(test);

 All the best,

 Fidel.


Sorry, let me correct that:


import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import com.adobe.serialization.json.JSON;

private function onJSONLoad(event:ResultEvent):void
{
var rawData:String = String(event.result);
var arr:Array = (JSON.decode(rawData) as Array);

var dp:ArrayCollection = new 
ArrayCollection(arr);

grid.dataProvider = dp;
}

You can find the example in the samples directory. The code I posted
previously is somethin I used in another test.

All the best,

Fidel.


Re: [flexcoders] Re: How does AIR apps connect to database?

2008-08-11 Thread Fidel Viegas
On Mon, Aug 11, 2008 at 10:57 AM, Joshua Jackson [EMAIL PROTECTED] wrote:
 --- In flexcoders@yahoogroups.com, Douglas McCarroll

 [EMAIL PROTECTED] wrote:

 It sounds like you want to connect to a local DB. BlazeDS works fine to
 connect to a remote DB but for a local DB the standard approach is
 the use
 the SQLite DB that is built into the AIR runtime.

 Exactly. I want to connect to local DB. Is there any docs to connect
 to this SQLite DB locally?

Someone posted a sample a few weeks ago. You can either search the
list for the post, or you can download the documentation and start
from there. Here is the link
http://www.adobe.com/support/documentation/en/flex/

All the best,

Fidel.


Re: [flexcoders] Flex access of RMI server

2008-08-07 Thread Fidel Viegas
On Thu, Aug 7, 2008 at 11:07 PM, ron_mori [EMAIL PROTECTED] wrote:
 While I go off and explore the land of 'Flex to RMI' connections,
 anyone want to offer any insights?

 Things like:

 - Can you do this? Seems like a natural with BlazeDS remote objects.
 Just change the URL to point to rmi://localhost/server...

 - Simple or difficult?

 And any other insights are welcome.

Hi ron,

In case you don't know, RMI is a Java thing. It is meant to allow
methods of remote objects found in certain JVMs to be invoked by other
JVMs.

Just stick to AMF (which is what BlazeDS uses), or use Hessian, XML
based Web Services or HTTP Services or JSON. I don't really think that
it is worthwhile creating a new protocol, unless it does prove to be
faster or better than the existing ones.

Anyway, those are just my 2 cents.

Fidel.


Re: [flexcoders] on the fly form validation

2008-07-28 Thread Fidel Viegas
On Mon, Jul 28, 2008 at 2:26 PM, Scott [EMAIL PROTECTED] wrote:
 In thinking about forms and flex events, how hard is it to validate a form
 as a user tabs through it?  Without creating a ton of event handlers, is
 there an easy way to accomplish this?

Hi Scott,

Have a look at validators. Check here
http://www.adobe.com/devnet/flex/quickstart/validating_data/

Fidel.


Re: [flexcoders] Digital clock

2008-07-15 Thread Fidel Viegas
I have asked this question before. If you do a search on the archive,
you should be able to find an example posted by someone.
But, generally speaking, it is just like Gordon has mentioned.

Fidel.

On Tue, Jul 15, 2008 at 5:59 PM, Easow Jacob [EMAIL PROTECTED] wrote:

 Hi,

 Any one having an example for Digital clock using flex...or how can i
 display the time (HH:MM:SS)and update
 it whenever time changes.

 Thanks,
 Mathew
 --
 Mathew Easow Jacob,
 Bangalore.
 +91-9886979038
 


Re: [flexcoders] search functionality

2008-07-09 Thread Fidel Viegas
On Wed, Jul 9, 2008 at 11:43 AM, litesh_b321 [EMAIL PROTECTED] wrote:
 hi guys
 can you please tell me how can we designed a search functionality
 where backend is XML and frontend is in flex.where parameter of search
 is not fixed. user can search by various fields

Hi there,

This is something you need to define between what you are using on
your server side and Flex. You do have to send search parameters to
your server side script, and the script will then return the xml as
you want. Is your data coming from a database?
You will have to process the search conditions on the server side, and
process the resulting xml in flex.

Fidel.


Re: [flexcoders] Have doubt on Remote Object

2008-07-07 Thread Fidel Viegas
On Mon, Jul 7, 2008 at 3:20 PM, Tom Chiverton
[EMAIL PROTECTED] wrote:
 On Saturday 05 Jul 2008, satishedara wrote:
 with out AMF can we use remote call to
 connect the java?

 Yes, but not using AMF - you can connect to a normal web service, or make
 REST-type AJAX calls instead.

Or use the Hessian protocol, which are binary web services. Here is
the link: http://hessian.caucho.com/

Fidel.


Re: [flexcoders] Translate HTTPService

2008-07-06 Thread Fidel Viegas
On Sun, Jul 6, 2008 at 8:51 PM, jovialrandor [EMAIL PROTECTED] wrote:
 I have an HTTPService call that returns values.

 How do I convert to the following object format?

 private var inputTable2:Object =
 {

 Nevada:John Smith,
 Northern California:Jane Smith,
 Southern California:Al Gore,
 France:Europe,
 USA:workss

 };

Hi Jovial,

You have to be clear on what you want to do when you ask questions
here. What exactly are you trying to do? You want to convert the above
to what exactly? Are you trying to send those as parameters to your
HTTPService?

You have to be more clear on what you are trying to achieve so that
people here will be able to help you.

Fidel.


Re: [flexcoders] question for the sample code for BlazeDS?

2008-07-04 Thread Fidel Viegas
On Sat, Jul 5, 2008 at 2:17 AM, markflex2007 [EMAIL PROTECTED] wrote:
 Hi,

 I install BlazeDS turnkey.the samples work fine now.

 I see the sample web root is D:\blazeDS\tomcat\webapps\samples.but I
 only can see the swf and html files.

Hi Mark,

They are found under D:\blazeDS\tomcat\webapps\samples\WEB-INF\flex-src.

I have looked all over the folders until I found them. It just took a
little bit of patience.

Fidel.


Re: [flexcoders] Flex app only works on Windows?

2008-07-02 Thread Fidel Viegas
It is crashing my browser under Linux Ubuntu 7.0.4 + Firefox 2.0.0.14

Fidel.

On Tue, Jul 1, 2008 at 8:01 PM, jason_beloncik [EMAIL PROTECTED] wrote:
 Hi all, I built a Flex app which works fine on Windows machines, but
 on Macs and Linux it won't load. It shows the little loading box
 with the progress bar, then just goes to a blank screen. I originally
 thought there was some issue with the html wrapper or maybe the
 javascript but even when going directly to the .swf file, I see the
 exact same behaviour.

 I have searched all over but can't find anything that makes sense!

 Here is my app: www.wordrampage.com

 Thanks!
 JB

 


Re: [flexcoders] How do I hide rows in a datagrid display?

2008-07-02 Thread Fidel Viegas
On Tue, Jul 1, 2008 at 8:10 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 Please do a bit of searching before posting.  This was answered in a thread
 already today.

Actually, it was yesterday. But, you are right. People should search
the list before posting.

Anthony, next time try to refine your search. Here is the link
http://tech.groups.yahoo.com/group/flexcoders/message/117888

Fidel.


Re: [flexcoders] Getting Started with Java for use with BlazeDS/LCDS

2008-06-30 Thread Fidel Viegas
On Mon, Jun 30, 2008 at 3:29 AM, danneri21 [EMAIL PROTECTED] wrote:
 okay so I want to get going with Blazeds or live cycle data services.

 but I'm not sure where to start because I've been playing around a
 little bit and it seems like you have to know Java to create all these
 classes for the server-side code.

 Could anybody give me a heads up on lcds/blazeds specific tutorials of
 some kind? referring to the server side code?

Which language do you use? There are AMF implementations for other
languages/environments such as .NET, PHP, Coldfusion, etc...

You only need to use Java for BlazeDS and life cycle. There is also an
alternative called graniteDS.

You can also have a look at another protocol called Hessian
(http://hessian.caucho.com/), which is quite fast as well, and is
available in wide variety of languages.

I use the later with Flex and Java, as it is much easier to setup than
BlazeDS, and also it isn't bound to Flex 3. You can also use Flex 2.

Hope that information was useful.

Fidel.


Re: [flexcoders] Using Datagrid Data

2008-06-27 Thread Fidel Viegas
On Fri, Jun 27, 2008 at 6:35 PM, ghus32 [EMAIL PROTECTED] wrote:
 Hello everyone,

 Is it possible to send data from a poulated datagrid??

 For example, I want to send row1 and make it a var.. is this possible?

 Thanks

What exactly are you trying to achieve? Send data to a webservice,
remote object or http service? Is that what you mean?

Fidel.


Re: [flexcoders] Encoding Problem in linux

2008-06-19 Thread Fidel Viegas
2008/6/19 Deniz Davutoglu [EMAIL PROTECTED]:
 Hello Guys,
 Today I switched completely to Ubuntu Linux. Last month I produced
 some CMS for our corporate website in FLEX. From Linux I tried to
 update some content but I experienced something wear. When I try to
 enter new data from keyboard characters which are in Turkish like
 öü#351;ç become öüçş but same chars which comes from MYSQl seems ok.
 do you have any idea about this problem.
 Thanks
 Deniz

I have had this problem before, and what I found is that you have to
save your .mxml and .as files using UTF-8 enconding. That way, it will
work on all platforms. At least, I have tried to access the system
from windows, mac os x and ubuntu linux and it all worked fine.

Hope that was useful.

Fidel.



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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

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

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Example of HTTPService.

2008-06-17 Thread Fidel Viegas
Hi Harshal,

Have a look at the documenation. You have some examples. Or just
search on google. There are plenty of examples on the net.

Fidel.

On Mon, Jun 16, 2008 at 10:09 AM, Harshal Anil Bhave
[EMAIL PROTECTED] wrote:
 Hello People,

   I am new to the group and new to Flex as well. Can anyone share a
 Example which uses HTTPService method, and consumes a XML result from the
 server to populate a component. Or give internet links for the same ???



   Also Can I dynamically change the dataProvider of any component,
 say on a button click or something ?



   TIA.



  - Thanks and Regards,

 __Harshal Bhave_

 Extn: 62398 || Mo: 09766322749 || Pune Phase 2 || Infosys



  CAUTION - Disclaimer *
 This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
 for the use of the addressee(s). If you are not the intended recipient,
 please
 notify the sender by e-mail and delete the original message. Further, you
 are not
 to copy, disclose, or distribute this e-mail or its contents to any other
 person and
 any such actions are unlawful. This e-mail may contain viruses. Infosys has
 taken
 every reasonable precaution to minimize this risk, but is not liable for any
 damage
 you may sustain as a result of any virus in this e-mail. You should carry
 out your
 own virus checks before opening the e-mail or attachment. Infosys reserves
 the
 right to monitor and review the content of all messages sent to or from this
 e-mail
 address. Messages sent to or from this e-mail address may be stored on the
 Infosys e-mail system.
 ***INFOSYS End of Disclaimer INFOSYS***

 


Re: [flexcoders] Flex and java

2008-06-13 Thread Fidel Viegas
On Fri, Jun 13, 2008 at 2:44 PM, tosisodia [EMAIL PROTECTED] wrote:
 hi guys,

 I am trying to create a POS (point of sale) application which would be
 deployed at one system only. The back end logic (in nascent stage) is
 written in java/spring/hibernate, but I want my GUI to be in FLEX/AIR.
 So far my understanding is FLEX cannot communicate with java without
 use of some web server. Since a POS appliance is very low ended I do
 not wish to use any server. Is there any way I can make FLEX
 communicate with POJO. I am very new to flex, so it would be helpful
 if you could provide some examples too.

Hi Raj,

You will have to create a server side in Java and then make Flex/AIR
communicate with your server side.
Since I have created a POS in Flex+Java, I would like to share my
experience with you. First, the communication between Java and Flex
should be just like any ordinary Flex+Java application. Where you will
have troubles is when you need to print from a specific Computer that
has it's own POS printer. That part was the trickier one. In order to
solve that problem, I had to create a print server. Since I was using
Java, I just created the print server in Java. This print server would
have a mapping of printer port to ip. So, whenever a request is coming
from a certain IP, the server knows which port to send the print
command to.

On the server side, I recommend you either use BlazeDS or the Hessian
protocol. Since I have developed the application in Flex 2, I decided
to use the Hessian protocol, which is relatively fast and easy to
setup.

I hope this information was useful.

Fidel.


Re: [flexcoders] Re: Flex and java

2008-06-13 Thread Fidel Viegas
On Fri, Jun 13, 2008 at 4:10 PM, tosisodia [EMAIL PROTECTED] wrote:
 Thanks Fidel,

 That clears a few things and raises a few more questions...

 Using a server for a standalone application looks a bit expensive. I
 wonder if it's possible to code whole business logic in Action Script.
 Is there any utility similar to hibernate for data persistence? Also
 is it possible for barcode readers to directly provide inputs in a
 FLEX application?

Hi Raj,

If you are going to use Adobe AIR, then you don't need to create the
java pojos. Use the database engine that comes with Adobe Flex 3/AIR.

 There is a POS application in adobe marketplace
 http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailloc=en_usextid=1562518

This application was created using Adobe AIR, and it uses a standalone
database. My POS is part of an ERP, and it uses Adobe Flex as opposed
to AIR.
You can also print from Flex, but it is a bit primitive and you have
to select a printer everytime you call the print function. I don't
really know how plex works, as I have not tried it. I also don't have
much experience with Adobe AIR. I have worked on a document management
system, but it did not involve any interfaces with hardware.

My suggestion would be to contact the author of plex and ask him how
he has done it. But, if what you want is a standalone POS then skip
the Java part and develop everything using Adobe AIR.

Fidel.


Re: [flexcoders] Re: Flex and java

2008-06-13 Thread Fidel Viegas
On Fri, Jun 13, 2008 at 4:49 PM, tosisodia [EMAIL PROTECTED] wrote:
 Thanks Fidel,

 Thanks a lot for your insight and quick replies. I think I will code
 everything using AIR, only thing I need to check is hardware
 interfacing and transaction management.

Hum... I thought you wanted to develop a standalone application. If
what you want is a multithreaded application, then you will have to
implement the server side using Java. Then you can write a Flex
application that runs on the browser if you so wish, or/and an AIR
application to run on the desktop. But, that will have to communicate
with a server that will handle all the transactions for you. Flash is
meant to run on the client side.

Fidel.


Re: [flexcoders] How should we access our Flex apps from the browser?

2008-06-06 Thread Fidel Viegas
On Fri, Jun 6, 2008 at 4:02 PM, Nikunj Shroff [EMAIL PROTECTED] wrote:

 you must deploy your application on some server. then you can access your 
 access your html on url. moreover your url must have a port as well.

 for ex: localhost:8080


You only use a port if it isn't the default port 80. I presume he is
using port 80, which is why he is omitted it from the url.

Fidel.


Re: [flexcoders] Flex for desktop application

2008-06-06 Thread Fidel Viegas
On Fri, Jun 6, 2008 at 2:30 PM, p.prasha [EMAIL PROTECTED] wrote:
 Hi Friendns,

 Is it possible to use flex for desktop application.
 If i have a java application(desktop application not web application)
 can i use flex as front end for it.
 I mean to say can i replace applet with flex.
 I have worked on flex for web application and as you know it uses
 HttpService to get data from server and remote object in dats service.

 But I want to cal a java method which will return me an xml.

 Is it possible


Have I look at Adobe AIR. That allows you to run your flex
applications on the desktop.

All the best,

Fidel.


Re: [flexcoders] OT (slightly) Gold standard method to make a web Flex app truly skinnable.

2008-06-05 Thread Fidel Viegas
On Thu, Jun 5, 2008 at 6:17 AM, David Kramer [EMAIL PROTECTED] wrote:

 Hello All,



 I'm beginning a project Flex, CF, IIS and SQL, and this time I'm finally 
 going to make sure we all do the proper requirements gathering and research 
 of best practices before writing code (or at least as little as possible).



 Therefore, I thought I'd ask the group to point me in the direction to solid 
 documentation on the best methods on making a Flex app truly skinnable, from 
 the fonts, (English to Hebrew) to colors, and images, etc. based upon manual 
 user selection or auto based upon best guess of global location 
 automatically, or both.



 Seems monumental, but someone's done it and it's written somewhere I assume.



 Any help is appreciated.

Hi David,

I don't know of any manual that tells you how to design a flex app,
but I have read all the manuals on how to skin flex applications. All
the rest came from experience in designing web applications and from
checking skins created by other people. I studied every single skin I
found on the net and then I just tried to create a desktop application
in a browser.

I think it will all came with experience. The more you practice, the
more you learn how to use skins and where to use.

My first Flex application has used quite a lot of images, and all the
latest ones I use a few skins and css to decorate my applications. If
I would have to redo every single application I have worked on, I
would do it differently this time, cause I have learned quite a few
tricks that improve efficiency and friendliness.

Just start with the Flex manuals and I think the rest comes with experience.

Maybe other people have something to add, but I don't really think
there is a way of teaching how to design UIs. I think the best way is
to study other people's work.

Well, those are my 2 cents.

Fidel.


Re: [flexcoders] DataGrid What is the limit?

2008-06-04 Thread Fidel Viegas
On Wed, Jun 4, 2008 at 10:20 AM, Nadeem Manzoor [EMAIL PROTECTED] wrote:
 Hello Flex Gurus

 What is the maximum row count that a DataGrid Component can display at a
 time?

 Same Question is for Column so DataGrid

Hi Nadeem,

This topic has been discussed several times. Just do a search on the
group and you will find quite a lot of answers to that.

Fidel.


Re: [flexcoders] Flex Kiosk Development

2008-06-03 Thread Fidel Viegas
On Tue, Jun 3, 2008 at 11:55 AM, Michael Trim [EMAIL PROTECTED] wrote:
 Hi Flexcoders,

 I hope this is sufficently on topic.

 Does anyone on the list have any experience of using Flex for Kiosk
 Development?

 I am interested in evidence (even anecdotal) for or against using the
 Flex Framework / UI Components and Cairngorm for applications that must
 remain stable for long periods of time under heavy, sustained use.

I haven't really used Flex or Flash to develop a kiosk, but I have
used it to develop a POS, and it is working fine in a web-browser and
in a AIR application.

So, I don't think you should have any problems.

Fidel.


Re: [flexcoders] Flex Kiosk Development

2008-06-03 Thread Fidel Viegas
On Tue, Jun 3, 2008 at 11:55 AM, Michael Trim [EMAIL PROTECTED] wrote:
 Hi Flexcoders,

 I hope this is sufficently on topic.

 Does anyone on the list have any experience of using Flex for Kiosk
 Development?

 I am interested in evidence (even anecdotal) for or against using the
 Flex Framework / UI Components and Cairngorm for applications that must
 remain stable for long periods of time under heavy, sustained use.

I haven't really used Flex or Flash to develop a kiosk, but I have
used it to develop a POS, and it is working fine. Non-stop


Re: [flexcoders] Print a ticket

2008-05-27 Thread Fidel Viegas
On Tue, May 27, 2008 at 9:20 PM, Jean Szabo [EMAIL PROTECTED] wrote:
 Hello,

 I must print a ticket on a printer Epson (thermique), and I can send it
 a rtf file with special font for a quick print.

 How can I generate and send directely a rtf document with AIR ?

 Can I just send text, with font and font size, without canvas ?

Hi Jean,

That is not currently possible with Flex or AIR. I have had the same
problem in the past. The way I solved it was as follows. I installed
the POS printers on each point of sales, and made it shareable. On the
server side, I created a servlet that would send the request to the
correct printer. I mapped an ip address to a printer address in the
database. So, whenever I point of sales requested a print job, the
server would read the IP address of the machine making the request,
and would retrieve the printer address so that it could send the print
data to it. The print data is all ASCII, as I was using Parallel Port
printers. The solution would be the same for a USB printer as well.

So, my advise is just for you to give it a try. We have modified the
application to use the Hessian protocol now, but you can also
implement it using BlazeDS.

Hope that info was helpful.

All the best,

Fidel.


Re: [flexcoders] Populating Datagrid from Database

2008-05-23 Thread Fidel Viegas
On Fri, May 23, 2008 at 1:20 AM, kenny14390 [EMAIL PROTECTED] wrote:

 I am calling a PHP page, which reads my entire database and formats it
 to output as valid XML. How can I set this as the data provider for a
 Datagrid component? I know what the columns are, but not the number of
 rows nor the data (obviously).


Hi Kenny,

Have a look at the HTTPService component.


Fidel.


[flexcoders] DataGrid custom itemRenderer using a ComboBox

2008-04-29 Thread Fidel Viegas
Hi All,

I am trying to implement a DataGrid with one of the columns as a
ComboBox. The thing is that I want to show a label with an icon when
the column is in a normal (non editable state), and show the combo box
when the user clicks the column to edit it.

Does anyone have an example or some tips on how to achieve this?

Thanks in advance,

Fidel.


Re: [flexcoders] Re: DataGrid custom itemRenderer using a ComboBox

2008-04-29 Thread Fidel Viegas
Hello folks,

Ah, ok. That is what I was missing. The itemEditor and itemRenderer
thing. I was using it as itemRenderer only.

Thank you all for that.

Regards,

Fidel.

On Tue, Apr 29, 2008 at 12:54 PM, jtgrassie [EMAIL PROTECTED] wrote:






 You set a ClassFactory to the columns itemEditor property.
  Via actionscript...

  var cf:ClassFactory;
  cf = new ClassFactory(mx.controls.ComboBox);
  theColumn.itemEditor = cf;

  Or mxml...

  mx:DataGridColumn
  mx:itemEditor
  mx:Component
  mx:ComboBox/
  /mx:Component
  /mx:itemEditor
  /mx:DataGridColumn

  --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED]
  wrote:


  
   Hi All,
  
   I am trying to implement a DataGrid with one of the columns as a
   ComboBox. The thing is that I want to show a label with an icon when
   the column is in a normal (non editable state), and show the combo box
   when the user clicks the column to edit it.
  
   Does anyone have an example or some tips on how to achieve this?
  
   Thanks in advance,
  
   Fidel.
  

  


[flexcoders] DataGrid skinning problem

2008-04-19 Thread Fidel Viegas
Hello all,

I am trying to create a skin for the DataGrid component in Flex SDK 3,
and unfortunately my borderSkin and headerBackgroundSkin won't render.
My problem is similar to this one
http://img260.imageshack.us/my.php?image=datagridborderskinih5.png.

Is this a known bug?

Is there a workaround?

Thanks in advance,

Fidel.


[flexcoders] Help using windowsXP theme

2008-04-15 Thread Fidel Viegas
Hi all,

I have downloaded the windowsXP theme and wanted to give it a go, but
unfortunately I get an error message that I don't know how to handle.
I have looked all over the web, and found no solution.
I have tried with both sdk2 and sdk3.

This is the error I am getting:

Error: unable to load SWC windowsXP.swc: unknow element
componetPackage found in swc section in catalog.xml

I have opened the catalog.xml file and noticed that the
componentPackage element has the
xmlns=http://www.macromedia.com/flash/swccatalog/7;

How do I change this so that I can make it work with Flex 2 or Flex 3?

Thanks in advance,

Fidel.


Re: [flexcoders] Editable DataGrid

2008-04-14 Thread Fidel Viegas
On Mon, Apr 14, 2008 at 5:09 PM, Alex Harui [EMAIL PROTECTED] wrote:

 There is a similar example on my blog (blogs.adobe.com/aharui)

Hi Alex,

Thanks for the link. I will have a look at that.

Fidel.


[flexcoders] Editable DataGrid

2008-04-13 Thread Fidel Viegas
Hello all,

How do I create a DataGrid that allows me to add new rows by hitting
the tab key or pressing the mouse button in a DataGrid? Something like
how MS Access works.

Does anyone have a pointer to an example that does this?

Thanks in advance,

Fidel.


Re: [flexcoders] AIR SQL - Datatype issues

2008-04-07 Thread Fidel Viegas
On Mon, Apr 7, 2008 at 4:22 PM, Kevin Aebig [EMAIL PROTECTED] wrote:

 Hey all,



 I've looked at the documentation about 400 times now and can't seem to find
 myself an example of using a column of datatype Date within AIR SQL. I know
 that it's been customized to use Actionscript / JavaScript Date objects, but
 I can't get it to work properly for the life of me. Any examples or
 pointers?

The database engine used in Air is SQLite. I am not that experienced
with SQLite, but I suppose that there should be a DATE and TIME
datatypes. I have seen people use Text and Real for storing date
values. So, just do a search on the web for sqlite.

All the best,

Fidel.


[flexcoders] GroupBox component

2008-04-03 Thread Fidel Viegas
Hi all,

Does anyone know how to emulate a GroupBox or knows of a ready made component?

Thanks in advance,

Fidel.


Re: [flexcoders] UK rapid adressing web api

2008-03-30 Thread Fidel Viegas
On Sun, Mar 30, 2008 at 2:12 PM, Glenn Williams [EMAIL PROTECTED] wrote:

 Hi

  anyone know if there is a rapid addressing (from postcode) web service
  with an actionScript/flex api.

  we are about to need to add this function to our current app and any
  heads-up would help

Hi Glenn,

I don't know of any UK based public webservice of addresses from post
code, but there is one site that allows you to search for addresses
based on post code. Why don't you try to contact the author? Here is
the link http://www.alexnolan.net or you can buy one database from the
Royal Mail. It has all the UK addresses. Here is the link
http://www.royalmail.com/portal/rm/jump2?mediaId=400085catId=400084.

Hope that helps,

Fidel.


Re: [flexcoders] Can a SWF be hosted on server A and have access to server B which does remoting?

2008-03-28 Thread Fidel Viegas
On Fri, Mar 28, 2008 at 3:58 PM, Mark Lapasa
[EMAIL PROTECTED] wrote:

 Suppose the blaze server does have a crossdomain.xml.

  How can I point remote object to hit the blaze server at all? From what
 I've read so far, the .swf is usually hosted on the same server as the
 remoting server.

Hum I believe there must be some way of accessing the RemoteObject
hosted in a different server. Maybe with channels? I am not that
proficient with BlazeDS or any AMF based server, but  I guess there is
some way of doing that.

Fidel.


Re: [flexcoders] Re: Fwd: Security setup for a Flex application

2008-03-27 Thread Fidel Viegas
Hi all,

Thank you for taking the time to reply. I wasn't aware of those AS3
libraries. I just want to encrypt password related data for the time
being, as I figured the data being sent across is not a secret. I
have, though, a records management system for police work, and that
one requires more encryption as the data is very sensitive. It was
originally created using webservices, but we are porting it to
BlazeDS.

I will have a look at the libraries you guys suggested.

Thank you once again.

Fidel.

On Thu, Mar 27, 2008 at 2:13 PM, प्रवीन उत्तरवार
[EMAIL PROTECTED] wrote:






 Hi Fidal,
 What type of data you want to send over http??
 you can use MD5 algo for encryption but remember it cant return you the
 original data.




 On 27/03/2008, valdhor [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
  This article may help -
 
 http://www.jeffryhouser.com/index.cfm/2007/12/6/Encrypt-in-Flex-and-Decrypt-in-ColdFusion
 
  --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED]
  wrote:
  
   Hi Andrew,
  
   Thanks for taking the time to reply. But, that is not really what I am
   looking for.
   I guess my question was a bit vague.
   I am looking for ways to send encrypted data over HTTP as opposed to
   HTTPS. That is one of the requirements of the client.
   I have found a solution that requires an installation on the client
   side as well as on the server side. That is not good either.
  
   I am just looking for a secure way that will sort of secure any data
   flowing from the swf client to the server and vice-versa without
   running the risk of someone using packet sniffers.
  
   The url you pointed me to is nice if you are providing a product that
   requires licensing as well as security. What I am after really is some
   encryption scheme.
  
   But thanks for pointing that out.
  
   Fidel.
  
  
   On Wed, Mar 26, 2008 at 5:08 PM, andrewwestberg
   [EMAIL PROTECTED] wrote:
Look into nitrolm.com
   
-Andrew
   
--- In flexcoders@yahoogroups.com, Fidel Viegas fidel.viegas@
wrote:
   
   

 Hello folks,

 I have finished implementing a Flex application and now the
  client has
 requested that it is made available publicly. I am using
  BlazeDS in
 the backend, and I was wondering what the best security setup
  would be
 to make it a secure application.

 Does anyone have any suggestion on how to best secure the
application setup?

 Thanks in advance,

 Fidel.

   
   
   
  
 
 

  


[flexcoders] Security setup for a Flex application

2008-03-26 Thread Fidel Viegas
Hello folks,

I have finished implementing a Flex application and now the client has
requested that it is made available publicly. I am using BlazeDS in
the backend, and I was wondering what the best security setup would be
to make it a secure application.

Does anyone have any suggestion on how to best secure the application setup?

Thanks in advance,

Fidel.


[flexcoders] Fwd: Security setup for a Flex application

2008-03-26 Thread Fidel Viegas
Hi Andrew,

 Thanks for taking the time to reply. But, that is not really what I am
 looking for.
 I guess my question was a bit vague.
 I am looking for ways to send encrypted data over HTTP as opposed to
 HTTPS. That is one of the requirements of the client.
 I have found a solution that requires an installation on the client
 side as well as on the server side. That is not good either.

 I am just looking for a secure way that will sort of secure any data
 flowing from the swf client to the server and vice-versa without
 running the risk of someone using packet sniffers.

 The url you pointed me to is nice if you are providing a product that
 requires licensing as well as security. What I am after really is some
 encryption scheme.

 But thanks for pointing that out.

 Fidel.


 On Wed, Mar 26, 2008 at 5:08 PM, andrewwestberg
 [EMAIL PROTECTED] wrote:
  Look into nitrolm.com
 
   -Andrew
 
   --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED]
   wrote:
 
 
  
Hello folks,
   
I have finished implementing a Flex application and now the client has
requested that it is made available publicly. I am using BlazeDS in
the backend, and I was wondering what the best security setup would be
to make it a secure application.
   
Does anyone have any suggestion on how to best secure the
   application setup?
   
Thanks in advance,
   
Fidel.
   
 
 
 


Re: [flexcoders] GIS and Flex

2008-03-14 Thread Fidel Viegas
On Fri, Mar 14, 2008 at 7:52 AM, kapil b [EMAIL PROTECTED] wrote:

 Hi All,

 Does anybody have idea how to implement gis(geographyical information
 system) in flex with the gis data in it.

 What kind of gis data format files the flex requires so that i can retrieve
 the data and display it in the UI.

Have a look at esri (http://www.esri.com). I think they have some cool
api to let you display GIS data in your Flex apps.

Also, have a look at mapquest (http://www.mapquest.com)

Another solution is to use yahoo or google maps. I don't know how that
works, so you better wait for someone to reply to that.

All the best,

Fidel.


[flexcoders] Digital Clock

2008-03-04 Thread Fidel Viegas
Hello folks,

Does anyone have a sample digital clock I can have a look at? Or give
me a pointer?

I have looked all over the web and was unable to find one.

I hope someone can point me to some example.

Thanks!

Fidel.


Re: [flexcoders] Re: general flex usage question

2008-03-04 Thread Fidel Viegas
On Tue, Mar 4, 2008 at 5:03 PM, Abyss Knight [EMAIL PROTECTED] wrote:
 Flex really lends itself to application development, rather than
  entire website development. Widgets, full RIAs, and other projects
  within the site are more of how I use Flex in the workplace. Of
  course, with the Apache module which compiles MXML on the fly, there
  really isn't a reason you could not write an entire site in Flex or AS3.

I agree with you with regards to Flex lending itself to application
development. That is what I use it for. For web sites, since I use
content management systems, I use Ajax or dynamically generated html
from server pages.

Even though you can create web sites with Flash or Flex, that doesn't
mean you should create it all in Flash or Flex. You can do a mix of
html and swf, though. I wouldn't advise someone to create web sites
based mainly in swf. At least that is what I think.

Fidel.


Re: [flexcoders] Digital Clock

2008-03-04 Thread Fidel Viegas
On Tue, Mar 4, 2008 at 5:30 PM, Tom Chiverton
[EMAIL PROTECTED] wrote:
 On Tuesday 04 Mar 2008, Fidel Viegas wrote:
   Does anyone have a sample digital clock I can have a look at? Or give
   me a pointer?

  Would this not just be a suitable font and mx:Text ?

Yes. Sometimes your brains are so tired that you miss the most obvious things.

The timer object didn't even come to my mind. :D

Thanks!


Re: [flexcoders] Flex Soap Object Arrays

2008-03-04 Thread Fidel Viegas
On Mon, Mar 3, 2008 at 11:03 PM, Telmo Dias [EMAIL PROTECTED] wrote:

 Thanks guys. As the time has passed we have been doing several tries and
  tests. The thing is, because of the schedule and the delays, we have
  decided to quit using SOAP, and went for AMF.

I have had a similar experience. But, in my case, I had to quit using
BlazeDS and use SOAP. If it wasn't for the schedule, I would keep on
trying to make it run. :D

All the best,

Fidel.


Re: [flexcoders] Digital Clock

2008-03-04 Thread Fidel Viegas
On Wed, Mar 5, 2008 at 7:37 AM, Vivian Richard [EMAIL PROTECTED] wrote:

If you are using LED characters for the clock display
then how do you make the  :  between the hour and
minute characters blink to indicate that a second has
passed?

I don't really need that sort of digital clock. Just a basic one. So,
in my case the normal character font is suitable. But, now that you
mentioned, I will give it a try sometime later.

Fidel.


Re: [flexcoders] Re: Flex Builder complaint

2008-03-03 Thread Fidel Viegas
On Mon, Mar 3, 2008 at 5:27 PM, Paul Decoursey [EMAIL PROTECTED] wrote:

 Did you read the thread... I had backups. It's a bug. When you
  import any other project into eclipse or Flex builder it doesn't
  delete files from your project as part of the import. The reason I
  bring it up isn't because I'm a baby, it's because I have a legitimate
  concern. Does this behavior happen if I import a project into my
  workspace that was created with the same version? I don't think just
  saying, oh keep backups, use source control or whatever is a solution,
  an application shouldn't be deleting files without telling you. If
  you have nothing to offer the conversation then shut up!

Please guys, let's not start a fight here. This group has been so
quite and people have been so nice, that it is kind of sad to see
behaviours such as these. Everyone of us have their tempers, but we
should respect each others.

We shouldn't be telling other people in here to shut up. We should be
more respectful.

Let's be cool guys. I am sure this problem will be resolved some time
soon. There may be other priorities ahead of it, but that doesn't mean
that it is not going to be resolved.

Hope you guys cool down.

All the best,

Fidel.


Re: [flexcoders] Access MySQL directly from Flex client

2008-03-03 Thread Fidel Viegas
On Tue, Mar 4, 2008 at 12:57 AM, Shailesh Mangal
[EMAIL PROTECTED] wrote:

 I need to quickly put together a dashboard where the data will come
  from mysql. I would like to eliminate middile layer (if possible). The
  only mysql connector a
  href='http://www.bobjim.com/2007/03/16/mysql-access-in-adobe-flex/'
  article /a I came across doesnt have any source code.

  So I am concluding that this is not possible (yet). I am looking for
  next best options (thinest possible middle layer, possibly
  Ruby/Groovy/perl/python?)

  =Security and scalability are not of concern (as its within our safe
  intranet for a very small set of users).

Hi Shailesh,

I have played with this one http://asql.mooska.pl/, and it works with
both AIR and Flex. I don't really use it as MySQL is not the database
I use for my projects, but I have given it a try and it worked ok.

Hope that suits your needs.

Fidel.


[flexcoders] RemoteObject + remote connection

2008-03-02 Thread Fidel Viegas
Hello folks,

How do I use the RemoteObject to connect to a remote location? Do I
need to configure anything on the server? Does anyone have an example?

I am using BlazeDS, and I was looking for some examples, but was
unable to. I tried adding the endpoint, but still it didn't work. So,
I presume there is some server configuration to be done.

Thanks in advance,

Fidel.


Re: [flexcoders] RemoteObject + remote connection

2008-03-02 Thread Fidel Viegas
Hi p,

I have tried the samples and they all work fine. I have created a
class of my own that accesses a firebird database. I have created some
classes which I call from some webservices and they all work fine.
Now, I have added the destination to the remoting-config.xml file, and
my Flex app is unable to connect to it, saying that my destination is
unknow. I have checked the samples, and my destination seems ok as
well. I checked the logs, and I haven't seen any errors. If the
problem was with my class files, I should get some exceptions thrown
and I would be able to see those in the log files.

I have tried to configure my Tomcat server with the binary distro of
BlazeDS, but since I was unable to make it work, I installed the
BlazeDS with integrated Tomcat. I have ran all the demos without any
problems, but I am unable to even connect to my destination. Here is
what I added to the remoting-config.xml:

destination id=warehouse

properties


sourcecom.fuxiontechnologies.accounting.dataaccess.WarehouseDAO/source

/properties

/destination

The problem is with the connection, as my Flex App is unable to
connect to it. I even included my classes in the samples webapp to see
if it would work, but still I cannot manage to connect to the
destination.

Do I need to configure my app in some other place?

Thanks in advance,

Fidel.

On Sun, Mar 2, 2008 at 9:46 AM, [p e r c e p t i c o n]
[EMAIL PROTECTED] wrote:






 Fidel...
 BlazeDS has samples that you should try first...once you get the remoting
 sample to work..you can use this as a model for
 configuring your project...if you still have questions you should let us
 know more specifics like what server you're using etc...

 regards
 p



 On Sun, Mar 2, 2008 at 12:12 AM, Fidel Viegas [EMAIL PROTECTED]
 wrote:
 
 
 
 
 
 
  Hello folks,
 
  How do I use the RemoteObject to connect to a remote location? Do I
  need to configure anything on the server? Does anyone have an example?
 
  I am using BlazeDS, and I was looking for some examples, but was
  unable to. I tried adding the endpoint, but still it didn't work. So,
  I presume there is some server configuration to be done.
 
  Thanks in advance,
 
  Fidel.
 

  


Re: [flexcoders] RemoteObject + remote connection

2008-03-02 Thread Fidel Viegas
Yes,

My problem is in the connection. I am unable to connect to the
destination. I have created a very simple hello world class, with a
method that returns a string, and I still cannot connect to it.

Here is what I did:

1) I created the class file, compiled it and placed it in the
appcontext WEB-INF/classes
2) I edited remoting-config.xml and added a destination that
references the class
3) I created the flex app that connects to the destination

I am unable to connect. I don't know what I am doing wrong, because
the sample apps are working fine.

I hope someone is able to help me with this.

Thanks!

Fidel.

On Sun, Mar 2, 2008 at 10:58 AM, Fidel Viegas [EMAIL PROTECTED] wrote:
 Hi p,

  I have tried the samples and they all work fine. I have created a
  class of my own that accesses a firebird database. I have created some
  classes which I call from some webservices and they all work fine.
  Now, I have added the destination to the remoting-config.xml file, and
  my Flex app is unable to connect to it, saying that my destination is
  unknow. I have checked the samples, and my destination seems ok as
  well. I checked the logs, and I haven't seen any errors. If the
  problem was with my class files, I should get some exceptions thrown
  and I would be able to see those in the log files.

  I have tried to configure my Tomcat server with the binary distro of
  BlazeDS, but since I was unable to make it work, I installed the
  BlazeDS with integrated Tomcat. I have ran all the demos without any
  problems, but I am unable to even connect to my destination. Here is
  what I added to the remoting-config.xml:

 destination id=warehouse

 properties

 
 sourcecom.fuxiontechnologies.accounting.dataaccess.WarehouseDAO/source

 /properties

 /destination

  The problem is with the connection, as my Flex App is unable to
  connect to it. I even included my classes in the samples webapp to see
  if it would work, but still I cannot manage to connect to the
  destination.

  Do I need to configure my app in some other place?

  Thanks in advance,

  Fidel.



  On Sun, Mar 2, 2008 at 9:46 AM, [p e r c e p t i c o n]
  [EMAIL PROTECTED] wrote:
  
  
  
  
  
  
   Fidel...
   BlazeDS has samples that you should try first...once you get the remoting
   sample to work..you can use this as a model for
   configuring your project...if you still have questions you should let us
   know more specifics like what server you're using etc...
  
   regards
   p
  
  
  
   On Sun, Mar 2, 2008 at 12:12 AM, Fidel Viegas [EMAIL PROTECTED]
   wrote:
   
   
   
   
   
   
Hello folks,
   
How do I use the RemoteObject to connect to a remote location? Do I
need to configure anything on the server? Does anyone have an example?
   
I am using BlazeDS, and I was looking for some examples, but was
unable to. I tried adding the endpoint, but still it didn't work. So,
I presume there is some server configuration to be done.
   
Thanks in advance,
   
Fidel.
   
  




Re: [flexcoders] Re: RemoteObject + remote connection

2008-03-02 Thread Fidel Viegas
On Sun, Mar 2, 2008 at 4:44 PM, meteatamel [EMAIL PROTECTED] wrote:

 What channel are you using? Every destination in BlazeDS has to use a
  channel. You define channels in services-config.xml and you use them
  in the destination configuration. So I suggest you take a look in your
  services-config.xml and see what channels you have. Then, pick one of
  those channels and use them in your remoting destination. For example
  if the channel you picked had id as my-amf, you would modify your
  destination as follows:

  destination id=warehouse channels=my-amf
  properties
  sourcecom.fuxiontechnologies.accounting.dataaccess.WarehouseDAO/source
  /properties
  /destination


I didn't know about the channels, but I guess I was using the default one.

I really don't know what is going on. Only my classes don't work.
Maybe I have something wrong with my config files.

I have changed my remoting-config.xml as follows:

--- begin file
---
?xml version=1.0 encoding=UTF-8?

service id=remoting-service

class=flex.messaging.services.RemotingService



adapters

adapter-definition id=java-object
class=flex.messaging.services.remoting.adapters.JavaAdapter
default=true/

/adapters



default-channels

channel ref=my-amf/

/default-channels



destination id=warehouse channels=my-amf

properties


sourcecom.fuxiontechnologies.accounting.dataaccess.WarehouseDAO/source

/properties

/destination

/service
 end file
---

and here is my services-config.xml:

- begin file ---
?xml version=1.0 encoding=UTF-8?

services-config



services

service-include file-path=remoting-config.xml /

service-include file-path=proxy-config.xml /

service-include file-path=messaging-config.xml /

/services



security

login-command
class=flex.messaging.security.TomcatLoginCommand server=Tomcat/

!-- Uncomment the correct app server

login-command
class=flex.messaging.security.TomcatLoginCommand server=JBoss

login-command class=flex.messaging.security.JRunLoginCommand
server=JRun/

login-command
class=flex.messaging.security.WeblogicLoginCommand
server=Weblogic/

login-command
class=flex.messaging.security.WebSphereLoginCommand
server=WebSphere/

--



!--

security-constraint id=basic-read-access

auth-methodBasic/auth-method

roles

roleguests/role

roleaccountants/role

roleemployees/role

rolemanagers/role

/roles

/security-constraint

 --

/security



channels



channel-definition id=my-amf
class=mx.messaging.channels.AMFChannel

endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.AMFEndpoint/

/channel-definition



channel-definition id=my-secure-amf
class=mx.messaging.channels.SecureAMFChannel

endpoint
url=https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure;
class=flex.messaging.endpoints.SecureAMFEndpoint/

properties

add-no-cache-headersfalse/add-no-cache-headers

/properties

/channel-definition



channel-definition id=my-polling-amf
class=mx.messaging.channels.AMFChannel

endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling;
class=flex.messaging.endpoints.AMFEndpoint/

properties

polling-enabledtrue/polling-enabled

polling-interval-seconds4/polling-interval-seconds

/properties

/channel-definition



!--

channel-definition id=my-http
class=mx.messaging.channels.HTTPChannel

endpoint
url=http://{server.name}:{server.port}/{context.root}/messagebroker/http;
class=flex.messaging.endpoints.HTTPEndpoint/

/channel-definition



channel-definition id=my-secure-http
class=mx.messaging.channels.SecureHTTPChannel

endpoint
url=https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure;
class=flex.messaging.endpoints.SecureHTTPEndpoint/

properties

add-no-cache-headersfalse/add-no-cache-headers

/properties

/channel-definition

--

/channels



logging

target class=flex.messaging.log.ConsoleTarget level=Error

properties

prefix[BlazeDS] /prefix

includeDatefalse/includeDate

includeTimefalse/includeTime

 

Re: [flexcoders] RemoteObject + remote connection

2008-03-02 Thread Fidel Viegas
On Sun, Mar 2, 2008 at 7:50 PM,  [EMAIL PROTECTED] wrote:
 Ok...first steps...look in your project's propeties and make sure your server 
 root and url are correct...then check to make sure
 it's compiling with the correct remote-service xml file...usually when it 
 cant find it those are the reasons

Hum... are you talking about project's properties in Flex Builder? I
am using the SDK. Do I need any properties files in the server?

It is compiling ok with the SDK, but that doesn't mean that it works.
I am trying the testdrive-remoteobject. I am compiling it under a
different name, and copying it to the blazeds folder. I am still
unable to connect to it.

Maybe it is some properties file that I am missing, but I haven't seen
any properties file in the samples webapp. The only properties file I
saw was the one for logging. Apart from that there is nothing else.

This is really strange. I am able to run the samples, but as soon as I
create my own classes and add a destination in the remoting-config.xml
file, I am unable to connect to it.

I will continue looking in the samples folder to see if I find any
differences between my classes and the ones provided in there.

If you guys think of anything else, I would appreatiate your help.

Thanks,

Fidel.


Re: [flexcoders] Re: HTTP Methods

2008-02-26 Thread Fidel Viegas
On Mon, Feb 25, 2008 at 5:03 PM, Troy Gilbert [EMAIL PROTECTED] wrote:

  Hum... so it does work with the normal HTTPService without using a proxy?

  Nope, not at all. If you want the full HTTP verb set you've got to use
  a proxy. Flash Player only speaks GET and POST, due to legacy issues
  where browsers used to only speak GET and POST (and some still do as
  far as I know) and the Flash Player uses the browser's network stack.

  So, without a proxy, it's only GET and POST. With a proxy, it's
  whatever HTTP supports.

Ok, thanks!
I just wanted to test them with the restful webservices.

I have decided to use BlazeDS.

Thanks for the replies.

Fidel.


Re: [flexcoders] Re: HTTP Methods

2008-02-24 Thread Fidel Viegas
On Sun, Feb 24, 2008 at 4:36 PM, andrii_olefirenko [EMAIL PROTECTED] wrote:

 Look up URLRequestMethod constants. Just use them to define the http
  method - no need for proxy of any kind.
  (the server you are making request to should understand these methods,
  of course)

Hi Andrii,

Before asking this question, I have checked URLRequestMethod, and I
only see POST and GET available. I need to use PUT and DELETE.

Basically, I am trying to communicate my Flex app with a restfull
webservice, which uses POST, GET, PUT and DELETE.

Has anyone tried this before? How have you done this?

Thanks in advance,

Fidel.


Re: [flexcoders] Re: HTTP Methods

2008-02-24 Thread Fidel Viegas
On Sun, Feb 24, 2008 at 5:54 PM, Omar Fouad [EMAIL PROTECTED] wrote:

 Nope

 Give a look on the HTTPService Properties

 mx:HTTPService id=LoginForm method=GET ...
 mx:HTTPService id=LoginForm method=DELETE ...
 mx:HTTPService id=LoginForm method=POST...

Hum... so it does work with the normal HTTPService without using a proxy?

Ok, I am going to try that out.

Thanks!

Fidel.


[flexcoders] HTTP Methods

2008-02-23 Thread Fidel Viegas
Hello folks,

I have come across this article
http://blogs.adobe.com/kiwi/2006/07/making_http_calls_in_actionscr.html,
where it says that the HTTPService supports the basic HTTP methods
(GET, POST, PUT, DELETE, HEAD, OPTIONS, and TRACE). Does it mean when
using a proxy?

Where can I find an example?

Thanks in advance,

Fidel.


Re: [flexcoders] embedded background image not loading

2008-02-21 Thread Fidel Viegas
On Thu, Feb 21, 2008 at 4:30 PM, dsds99 [EMAIL PROTECTED] wrote:






 Trying to make a simple component..and trying to set the background
  image..

  package{
  import flash.display.Bitmap;

  import mx.containers.HBox;

  public class Hbox1 extends HBox{

  [Embed(source=SkyBackground.jpg)]
  [Bindable]
  public var imgcls:Class;

  public function Hbox1():void{

  var img:Bitmap = new imgcls() as Bitmap;
  setStyle(backgroundImage,img);

  }
  }
  }

Change img to imgcls. You don't need to use the Bitmap.


Re: [flexcoders] embedded background image not loading

2008-02-21 Thread Fidel Viegas
On 2/21/08, Dsd Sds [EMAIL PROTECTED] wrote:

 that didn't work either:
 var img:imgcls= new imgcls() ;
 setStyle(backgroundImage,img) ;

This is what I meant:

package {
  import flash.display. Bitmap;

  import mx.containers. HBox;

  public class Hbox1 extends HBox{

  [Embed(source= SkyBackground. jpg)]
  [Bindable]
  public var imgcls:Class;

  public function Hbox1():void {
setStyle(backgroundImage,imgcls) ;
  }
}

All the best,

Fidel.


Re: [flexcoders] Re: Implementing Office 2007 menus

2008-02-20 Thread Fidel Viegas
On Feb 20, 2008 12:02 PM, Glenn Williams [EMAIL PROTECTED] wrote:

 I have to say, I find the ribbon bar a joy to use.

  there was very small adoption time, and I actually now work faster in
  office than ever before. This really is (imho) something Microsoft UI
  team has got exactly right. It's not just the UI but how passes
  selections back to the application (every option, in word for example,
  when hovered over is instantly translated onto your document allowing
  fast previews before making a selection. wonderful stuff.

  Also, it's not just a matter of copying as some have said. We should
  always try to take whats best out there and give it our personal
  slant. As for licensing, well whats the problem? Yes, I prefer OSource
  or open spec products (PDF for example), but not every product
  benefits from this kind of use agreement. And at the end of the day it
  costs nothing to read the specs and see what can be gained.

  I have also thought about creating a take on the Ribbon, simply
  because its such an effective UI. More the principal than the exact
  implementation is whats important. IMO, if there's a 120 page document
  discussing the use and ideology behind this UI then I think everyone
  should read it, if nothing else just to get an insight into what is an
  effect piece of design. (that goes for all tech documents that we can
  gain insight and knowledge from)

  hope that didnt sound like a rant, I just think people should keep an
  open mind, especially where MS are concerned. It's just to easy to
  know them (ok, they are hateful agreed, but must get it right every
  now and then)

I totally agree with you.


Re: [flexcoders] Power point in FLEX

2008-02-20 Thread Fidel Viegas
On Wed, Feb 20, 2008 at 10:39 AM, Karthik pothuri
[EMAIL PROTECTED] wrote:

 Friends,

 I am new member to this group.

 Please drop your ideas on How to develop power point presentations in Flex
 on web browser.

 Microsoft powerpoint on web browser. To develop this which topics helps me
 ...

 Help me..

Can't export directly from Power Point a Slide Presentation for the web?


Re: [flexcoders] Download physical file with URLLoader

2008-02-20 Thread Fidel Viegas
Have a look at flash.net.FileReference

that has a download method. That is what you should use to download or
upload files.

Fidel.

On Wed, Feb 20, 2008 at 5:23 PM, Eric Cobb [EMAIL PROTECTED] wrote:






 I'm trying to figure out a way to connect to a remote URL, and download
  a file from that URL. I'm already using URLLoader to connect to the URL
  and read an XML file, would I use URLLoader for this as well? I want my
  Flex 3 /AIR app to be able to hit this URL and download a .db file for
  updates.

  What's the best way to go about this?

  Thanks!

  Eric

  


[flexcoders] Help with Skins with different sizes

2008-02-20 Thread Fidel Viegas
Hi everyone,

I have created a button skin for up, down and over. Each one has a
different size. They were all created in Flash. When I import them
over in Flex, they seem to be fixed to one single size. The size of
the button was supposed to increase when the mouse is over the button,
and decrease when the mouse is down.

Is  there a way to handle these three skins with different sizes? Are
the skins meant to be the same size? Can't we do like in Flash, where
we can use different sizes?

How do I do this?

Hope someone is able to help me.

Thanks in advance.

Fidel.


Re: [flexcoders] Re: Implementing Office 2007 menus

2008-02-19 Thread Fidel Viegas
On Feb 19, 2008 8:15 PM, lytvynyuk [EMAIL PROTECTED] wrote:

 What is the point to copy?! What about to create something yourself?

 When I first started using Office 2007, I didn't really like it. But,
now that I am used to it, I kind of like it, and I wanted to replicate
it. First, because I learn more about how to implement stuff in Flex,
and second because I would create something cute.

But, after reading all those licenses, I decided that I will create
something which does not need licensing. I have started working on
something with our designer, and let's see what we can come up with.

It is always good to reference other people's material. You can
extract a few ideas that may end up generating other ideas.

Anyway, I think this topic has become really hot, and very interesting
to know other people's views with regards to the office 2007 menus.

Thank you all for the suggestions and warnings.

Fidel.


Re: [flexcoders] Re: Implementing Office 2007 menus

2008-02-19 Thread Fidel Viegas
Have a look at www.mindomo.com

That mimics the office 2007 menu.



On Feb 19, 2008 10:49 PM, Paul Decoursey [EMAIL PROTECTED] wrote:






 For losers like me that have no idea what Office 2007 is like, are
  there any real world examples that we can experience this with that
  won't cost us our children?



  On Feb 19, 2008, at 3:45 PM, Fidel Viegas wrote:

   On Feb 19, 2008 8:15 PM, lytvynyuk [EMAIL PROTECTED] wrote:
  
   What is the point to copy?! What about to create something yourself?
  
   When I first started using Office 2007, I didn't really like it. But,
   now that I am used to it, I kind of like it, and I wanted to replicate
   it. First, because I learn more about how to implement stuff in Flex,
   and second because I would create something cute.
  
   But, after reading all those licenses, I decided that I will create
   something which does not need licensing. I have started working on
   something with our designer, and let's see what we can come up with.
  
   It is always good to reference other people's material. You can
   extract a few ideas that may end up generating other ideas.
  
   Anyway, I think this topic has become really hot, and very interesting
   to know other people's views with regards to the office 2007 menus.
  
   Thank you all for the suggestions and warnings.
  
   Fidel.
  
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
   Yahoo! Groups Links
  
  
  

  


Re: [flexcoders] JRE included in Ubuntu 7.10 mxmlc uses 100% CPU and infinite RAM when compiling .MXML, but not .AS

2008-02-19 Thread Fidel Viegas
On Feb 20, 2008 4:22 AM, David Barrett [EMAIL PROTECTED] wrote:

 Hi, this might already be well known, but it took me a long time to find
  the answer so I'm posting this lesson to the list in the hope that it
  helps others. The short of it is the JRE included by default in Ubuntu
  7.10 needs to be upgraded to the JDK from Sun in order to compile MXML.
  For a more detailed explanation, see below:

  (I originally wrote this up as a bug report, but I discovered the fix
  while writing it.)

  I've been using MXMLC for a while now (http://bottomupflash.com) on
  Windows and Mac, and I'm a huge fan. But now that I switch to Ubuntu
  7.10, I'm unable to compile even the most basic .mxml files.
  Specifically, if I run MXMLC from the command line with no parameters,
  it works fine.

  [EMAIL PROTECTED]:~/flex2/bin$ ./mxmlc
  Loading configuration file /home/dbarrett/flex2/frameworks/flex-config.xml
  Error: a target file must be specified

  Use 'mxmlc -help' for information about using the command line.
  [EMAIL PROTECTED]:~/flex2/bin$

  Similarly, if I compile a basic .as file, it works fine:

  [EMAIL PROTECTED]:~/flex2/bin$ cat Test.as
  package {
  public class Test { }
  }
  [EMAIL PROTECTED]:~/flex2/bin$ ./mxmlc Test.as
  Loading configuration file /home/dbarrett/flex2/frameworks/flex-config.xml
  /home/dbarrett/flex2/bin/Test.swf (462 bytes)
  [EMAIL PROTECTED]:~/flex2/bin$

  But if I try to compile even the most basic .mxml file, it pegs the CPU
  at 100% forever. Even worse, after about 30s it starts consuming
  massive amounts of memory -- allocating hundreds of MB/s until all
  physical and virtual RAM is exhausted.

  [EMAIL PROTECTED]:~/flex2/bin$ cat Test.mxml
  ?xml version=1.0?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
  /mx:Application
  [EMAIL PROTECTED]:~/flex2/bin$ ./mxmlc Test.mxml
  Loading configuration file
  /home/dbarrett/flex2/frameworks/flex-config.xml
  (hangs here forever at 100% CPU and all available RAM)

  As for the Java version, I'm using gij 4.2.1:

  [EMAIL PROTECTED]:~/flex2/bin$ java -version
  java version 1.5.0
  gij (GNU libgcj) version 4.2.1 (Ubuntu 4.2.1-5ubuntu5)

  Aha, but now I realize if I install sun-java6-jdk it works just fine:

  [EMAIL PROTECTED]:~/flex2/bin$ java -version
  java version 1.6.0_03
  Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
  Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
  [EMAIL PROTECTED]:~/flex2/bin$

  Whew, problem solved. I hope this helps!

Hum the first thing I checked on Ubuntu was if it had the jdk from
sun installed. I never liked the other jdks. Don't know why.

But, it is interesting to know about that. That way, if someone one
happens to come across that same problem, then I know what the problem
is.

Fidel.


[flexcoders] Implementing Office 2007 menus

2008-02-15 Thread Fidel Viegas
Hello folks,

I am trying to implement the Office 2007 menus, and I am trying to
imagine what sort of Containers to use. So far, I have figured that I
am going to use TabNavigator for the headings, but what sort of
container would I use for the groups of buttons? Could it be Panels?

I found this thing implemented in Mindomo. Does anyone have an idea
how he created the menus?

Thanks in advance,

Fidel.


Re: [flexcoders] Custom Tooltip Display

2008-02-15 Thread Fidel Viegas
On Fri, Feb 15, 2008 at 11:27 PM, Mark Lapasa
[EMAIL PROTECTED] wrote:


 http://livedocs.adobe.com/labs/flex3/html/help.html?content=tooltips_4.html

  See Creating custom ToolTips


Hi Mark,

Thanks for the reply. That is the first thing I should have done
before posting the question. I have to stop being lazy. ;-)

Thanks once again.

Fidel.


[flexcoders] Custom Tooltip Display

2008-02-15 Thread Fidel Viegas
Hello folks,

I was wondering if someone can point me to a tutorial that shows me
how to customize the Tooltip Window (if that is what I may call it).
I want to to be able to display formatted data, as I have seen in many demos.

I look forward to hearing from you guys.

Thanks in advance,

Fidel.


Re: [flexcoders] Implementing Office 2007 menus

2008-02-15 Thread Fidel Viegas
On Feb 16, 2008 12:06 AM, Samuel Neff [EMAIL PROTECTED] wrote:

 I don't have info on how to help you with implementation, but just in case
 you were not aware, you need to license the UI from MS before implementing
 it yourself.  Licenses are free, but as part of the license you have to
 abide by their 120+ pages of guidelines on how to properly implement the UI.

 http://blogs.msdn.com/jensenh/archive/2006/11/21/licensing-the-2007-microsoft-office-user-interface.aspx

Hi Sam,

Thanks for letting me know about that. I wasn't aware of that.
I was reading the license and it seems ok.

Thanks once again,

Fidel.


[flexcoders] WebDAV

2008-02-14 Thread Fidel Viegas
Hello folks,

I was wondering if it is possible to implement the WebDAV protocol in
Actionscript. Has anyone attempted to to this?

Thanks in advance,

Fidel.


Re: [flexcoders] Upload with parameters

2008-02-09 Thread Fidel Viegas
Hi guys,

It seems to be working, but only with GET parameters. The POST
parameters never show up. I was wondering if it wasn't working because
of the frame rate. I am using the default frame rate generated. Does
the frame rate afect the transfer of the files?

Thanks in advance,

Fidel.


[flexcoders] Printing Receipts

2008-02-09 Thread Fidel Viegas
Hello folks,

I am wondering if any of you has had any experience printing to a
Receipt Printer. I have an Epson TM-U220 LPT printer, and I want to
send the data to the printer.
Does anyone have any idea or an example that does this?

Thanks in advance,

Fidel.


Re: [flexcoders] Adobe Partner Program ?

2008-02-08 Thread Fidel Viegas
On Feb 8, 2008 11:53 AM,  [EMAIL PROTECTED] wrote:

 Hello list,



   I'm hoping to get in touch with an Adobe rep who can
 talk to our company ( Sirius IT ) about Adobe's Partnership Program.

   Adobe's site says that the program is closed until a
 new Partner Program is launched.

   We're partners with major vendors across the spectrum,
 from MS to Red Hat, and would like to open discussions with Adobe directly.

Hi Tor,

This is a discussion list for Adobe Flex. You can get community
support for Adobe Flex.
So, my suggestion is to contact Adobe directly.

All the best,

Fidel.


Re: [flexcoders] Refreshing Page

2008-02-08 Thread Fidel Viegas
On Feb 8, 2008 1:45 AM, cool buddy [EMAIL PROTECTED] wrote:


 Hi,

 I developed a small application in FLEX..
 Whenever i refresh a page it goes back to the HOME page.Is there anything
 wrong in the coding...
 For example there is a user registration page...when i refresh the page it
 goes back to the HOME page..
 Does anyone have any idea?? please post it..

Hi there,

Flash movies work diferently than html pages. When you refresh a page,
you are doing just that, refreshing it. A Flex application (or swf
movie per se) works like an application embedded in the browser. If
you refresh the page, it will restart the application. As an anology,
it is similar to closing an application in windows and then reopening
it.

Instead of refreshing the page, you should add some functionality to
your Flex application that would allow it to reset to a state you
wanted to. You could have a refresh button that would clear a form,
for example. Or would move the a different state.

Hope that helped.

All the best,

Fidel.


Re: [flexcoders] Upload with parameters

2008-02-08 Thread Fidel Viegas
On Feb 8, 2008 11:45 PM, Ben Marchbanks [EMAIL PROTECTED] wrote:

 Try

  fileRef.upload(request);

  versus

  fileRef.upload(request, uploadfile);

Done that. Problem persists.


Re: [flexcoders] issues with multiple module and HTTPService

2008-02-08 Thread Fidel Viegas
On Feb 8, 2008 11:49 PM, Seth Hodgson [EMAIL PROTECTED] wrote:

 Are these proxied or non-proxied HTTPServices?

  If proxied, you need to use a shared set of destinations and channels
  defined in your root swf currently.


It is non-proxied. It is communicating with the service. The only
problem is that it does not send the parameters.


Re: [flexcoders] issues with multiple module and HTTPService

2008-02-08 Thread Fidel Viegas
Oops! Sorry, I thought this was a reply to my post.

Apologies.

Fidel.

On Feb 8, 2008 11:55 PM, Fidel Viegas [EMAIL PROTECTED] wrote:
 On Feb 8, 2008 11:49 PM, Seth Hodgson [EMAIL PROTECTED] wrote:

  Are these proxied or non-proxied HTTPServices?
 
   If proxied, you need to use a shared set of destinations and channels
   defined in your root swf currently.
 

 It is non-proxied. It is communicating with the service. The only
 problem is that it does not send the parameters.



Re: [flexcoders] Is there any way to use customized RemoteObject in mxml with mx:method?

2008-02-07 Thread Fidel Viegas
Sorry,

I didn't read it properly. I thought you were using WebService.


Re: [flexcoders] Is there any way to use customized RemoteObject in mxml with mx:method?

2008-02-07 Thread Fidel Viegas
On Feb 7, 2008 5:38 PM, den.orlov [EMAIL PROTECTED] wrote:

 I wrote RemoteObject's sublcass that contains functionality common
  for all my appp's RemoteObjects:

  public dynamic class MyRemoteObject extends RemoteObject {

  public function MyRemoteObject()
  {
  super();
  this.showBusyCursor = true;
  this.requestTimeout=10;

  addEventListener(FaultEvent.FAULT, onFault);
  }

  ...
  }

  When I use it in my mxml files:

  cust:MyRemoteObject id=ro destination=dest
  mx:method name=getAll result=onGetAllResult(event)/
  /cust:MyRemoteObject

  compiler can't recognize mx:method tag. Is there any way to
  workaround this?

It's mx:operation and not mx:method. Also, you don't use result on the
mx:operation, that is on the mx:WebService tag. Here is an example:

  mx:WebService id=companyService
wsdl=http://localhost:8080/accounting/services/CompanyService?wsdl;
showBusyCursor=true fault=Alert.show(event.fault.toString(),
'Error'); result=showResult(event); useProxy=false
mx:operation name=saveCompany
  mx:request
company_id{companyId.text}/company_id
  /mx:request
/mx:operation
  /mx:WebService

Hope that helps.

All the best,

Fidel.


Re: [flexcoders] Object is Null? How can it be if it's a component in main.mxml. No access ?

2008-02-03 Thread Fidel Viegas
On Feb 3, 2008 2:39 AM, phipzkillah [EMAIL PROTECTED] wrote:
 I have a toggle bar that's data provider is a viewstack.
 When I click on the toggle bar an event is dispatched that my controller is
 listening for.

 My controller can access com1, com2, but always gives me a null pointer
 exception on com3.
 All components are identical.

 I just wrote this off the top of my head.  So syntax might be off a bit and
 I only included the core functionality stripped down to demonstrate my
 issue.

 Any thoughts?


 Main.mxml
 //script
 import CustomClass();

 protected var controller:CustomClass;
 private function init():void{
controller = new CustomClass();
 }

 //body
 togglebar click=controller.doSomething(event) dataprovider=vs1/

 viewstack id=vs1
com1: id=com1/
com2: id=com2/
com3: id=com3/
 /viewstack

 CustomClass.as
 //Controller

 public function doSomething(event:ItemClickEvent):void{
var indexHit:int = event.index;
if(indexHit == 1){
  Application.application.com1.getData();
}else if(indexHit==2){
  Application.application.com2.getData();
}else if(indexHit==3){
  //THIS FAILS
  Application.application.com3.getData();
}else{
  //nothing
}
 }

Have a look at this article
http://weblogs.macromedia.com/pent/archives/2005/09/creationpolicy.cfm,
so that you can understand why this is happening. This issue has been
covered before.

All the best,

Fidel.


Re: [flexcoders] Mac Aladin Effect posted on Made In Flex

2008-02-03 Thread Fidel Viegas
On Feb 3, 2008 11:18 AM, Carlos Rovira [EMAIL PROTECTED] wrote:


 Hi,

 I want to point you to an interesting and beautiful Flex effect based on the
 popular Mac OS X Aladin effect on the spanish Flex community site Made In
 Flex.
 Raul Diaz, the author, created this effect from scratch based on the Mac
 one. The url is:

 http://www.madeinflex.com/2008/01/29/efecto-aladino-genie-effect/

 A working example is at

 http://flex.diaztorres.com/samples/aladinotest/aladino_test.html

 Hope you find interesting :)


Hi Carlos,

Thanks for sharing that with us. It is really interesting.

Gracias!

Fidel.


RE: [flexcoders] Running a flex app from local file system

2008-01-29 Thread Fidel Viegas
 mx:HTTPService id=photosIn url=images/gallery/photos.xml
  result=photosInHandler(event)/

Try adding useProxy=False as follows:


mx:HTTPService id=photosIn url=images/gallery/photos.xml
result=photosInHandler(event)  userProxy=false/

Hope that helps.


[flexcoders] Re: TabNavigator+States=Crash

2008-01-28 Thread Fidel Viegas
Muzak wrote:

Muzakread up on creationPolicy.
Muzakhttp://livedocs.adobe.com/flex/201/langref/mx/core/Container.html#creationPolicy

Yep, you should read that. I have experienced the same problem until I
actually discovered that accidentally. Then, I went to read the
manual, and everything was there explained. Probably the reason why it
is crashing is because your components haven't been created yet.

Maybe it is a different problem, but from the symptoms it sounds like it is.

All the best

Fidel.


  1   2   >