[flexcoders] Re: Flex to Air comminication via LocalConnection - Error #2044

2009-04-05 Thread ericbichara
Wow that worked like a charm, thanks mate

/Eric



[flexcoders] Flex to Air comminication via LocalConnection - Error #2044

2009-04-03 Thread ericbichara
Hej Guy and Gals,

I need some help getting localConnection to work. I have a Flex app
running in the browser and an air app running on my desktop. Im trying
to call a method on the air app from the flex app. I keep getting the
dratted

Error #2044: Unhandled StatusEvent:. level=error, code=

error. Ive searched the net and not found anything that helps. Any ideas
would be appreaciated. BTW im running both these from Flex Builder. Have
also tryed running them from an air installation/web server. Heres the
code:

Thanks!


/***\
***/
/* Flex App
/
/***\
***/

http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()" width="319" height="299">
 
 
 
 
 
 
 
 




/***/
/** AIR APP /
/** /

http://www.adobe.com/2006/mxml";
 layout="absolute"
  width="351" height="261">
 
 
 
 
 
 
 
 






[flexcoders] SWFLoader problems (Loading flex swf into flex application)

2009-02-02 Thread ericbichara
Hi,

I have build several flex widgets and am now developing an admin
website also in flex into which i will load and edit the widgets. I am
coming across several issues when doing this:

1) CSS styles clash. The parent application inherits some of the
child's styles and the child inherits some of the parents styles when
i load the child. How do i make sure styles don't get inherited either
up or down?

2) datatips of graphs are placed in the wrong coordinates. If a
datatip is supposed to be show at coordinate 20,20 of the child, it
shows at coordinate 20,20 of the parent instead. 

I am using the SWFLoader object to load the widgets and passing
parameters using flashvars. ie http://swfurl?blah=blig&bloh=blug

Thanks in advance!

/Eric



[flexcoders] Re: Loading swf with flashvars into Flex

2008-12-08 Thread ericbichara
My bad, i got it to work now, one thing to note is that i had to
change my init function (which reads the parameters in the child swf)
to be triggered on applicationComplete instead of createComplete.
Thanks for you help!

/Eric

--- In flexcoders@yahoogroups.com, "Fotis Chatzinikos"
<[EMAIL PROTECTED]> wrote:
>
> If you read Paul's link you will see that are other ways to read
parameters
> than urlvars. As you do not have access to url vars when loading inside
> another swf use the technique described in the post...
> 
> On Mon, Dec 8, 2008 at 4:28 PM, ericbichara <[EMAIL PROTECTED]> wrote:
> 
> >   Appreaciate the help but thats not what i was asking. I am
loading an
> > swf into another swf and need the swf to be loaded using flashvars
> > parameters. Loading this swf from an html file with flashvars works
> > fine but not from another swf. :-)
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Paul
> > Andrews"  wrote:
> > >
> > >
> > > - Original Message -
> > > From: "ericbichara" 
> > > To: >
> > > Sent: Monday, December 08, 2008 12:25 PM
> > > Subject: [flexcoders] Loading swf with flashvars into Flex
> > >
> > >
> > > > Hi,
> > > >
> > > > I have several widgets which use flashvars and i wanted to
create a
> > > > gallery application to showcase them in flex. I need to
therefore load
> > > > them into flex and pass flashvars parameters into the loaded
swfs. I
> > > > tryed the following:
> > > >
> > > >  > source='http://myurl/myapp.swf?param1=blah¶m2=blih'/>
> > > >
> > > > but the loaded swf says the params are null. Is there some way
to do
> > > > this? I dont want to have to change all the widgets to be able to
> > > > recieve these parameters some other way than flashvars as they
do now.
> > > > Thanks in advance.
> > >
> > > Google is your friend..
> > >
> > >
> >
http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html
> > >
> > >
> > > >
> > > > /Eric
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> [EMAIL PROTECTED],
>




[flexcoders] Re: Loading swf with flashvars into Flex

2008-12-08 Thread ericbichara
Appreaciate the help but thats not what i was asking. I am loading an
swf into another swf and need the swf to be loaded using flashvars
parameters. Loading this swf from an html file with flashvars works
fine but not from another swf. :-)


--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> 
> - Original Message ----- 
> From: "ericbichara" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, December 08, 2008 12:25 PM
> Subject: [flexcoders] Loading swf with flashvars into Flex
> 
> 
> > Hi,
> > 
> > I have several widgets which use flashvars and i wanted to create a
> > gallery application to showcase them in flex. I need to therefore load
> > them into flex and pass flashvars parameters into the loaded swfs. I
> > tryed the following:
> > 
> > 
> > 
> > but the loaded swf says the params are null. Is there some way to do
> > this? I dont want to have to change all the widgets to be able to
> > recieve these parameters some other way than flashvars as they do now.
> > Thanks in advance.
> 
> Google is your friend..
> 
>
http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html
> 
> 
> > 
> > /Eric
>




[flexcoders] Loading swf with flashvars into Flex

2008-12-08 Thread ericbichara
Hi,

I have several widgets which use flashvars and i wanted to create a
gallery application to showcase them in flex. I need to therefore load
them into flex and pass flashvars parameters into the loaded swfs. I
tryed the following:



but the loaded swf says the params are null. Is there some way to do
this? I dont want to have to change all the widgets to be able to
recieve these parameters some other way than flashvars as they do now.
Thanks in advance.

/Eric 



[flexcoders] Re: Persisting Datagrid sort order through dataprovider changes

2008-11-17 Thread ericbichara
When should i call refresh, i have an ArrayCollection which the
datagrid binds to. I tryed updating the arraycollection and then
running refresh but that doesnt help. I should mention that i also
filter the arraycollection.


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Call refresh() on the collection after assigning the new result data.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of ericbichara
> Sent: Monday, November 10, 2008 7:34 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Persisting Datagrid sort order through
> dataprovider changes
> 
>  
> 
> Hi,
> 
> I have a datagrid which is populated by data i recieve from a
> RemoteObject. If a user sorts the datagrid a perticular way and then
> updates the data, the sorting gets reset to the order of the data
> recieve from the RemoteObject. Is there any way persist the sorting
> even when updating the dataprovider?
> 
> Thanks in advance
> Eric
>




[flexcoders] Persisting Datagrid sort order through dataprovider changes

2008-11-10 Thread ericbichara
Hi,

I have a datagrid which is populated by data i recieve from a
RemoteObject. If a user sorts the datagrid a perticular way and then
updates the data, the sorting gets reset to the order of the data
recieve from the RemoteObject. Is there any way persist the sorting
even when updating the dataprovider?

Thanks in advance
Eric



[flexcoders] Setting custom tooltip position

2008-11-10 Thread ericbichara
Hi,

I have a treemap component () and a datagrid displaying the same data.
http://joshblog.net/2006/12/25/flex-treemap-subversion-download/

I want a custom tool tip to be shown on top of a treemap component
when i mouse over the corresponsing item in the datagrid. I have
managed to create the datatip and showing it by dispatching a
mouse_over event on the TreeMap component when i mouse over the
datagrid. The problem is that the position of the tooltip is by the
mouse and not be the treemap item. Any way to change this? To create
the tooltip i am listening to the TOOL_TIP_CREATE event and setting to
components tool tip to my custom tooltip component which implements
IToolTip. Thanks in advance.

/Eric



[flexcoders] Problem using dataTipRenderer with dataTipItems

2008-10-28 Thread ericbichara
Hi,

Im trying to copy the functionality of the following chart:

http://www.nytimes.com/packages/khtml/2006/04/02/business/20060402_SECTOR_GRAPHIC.html

I have a datagrid which displays the same data as the bubble chart and
when i rollover a row in the datagrid, the corresponting chart item's
datatip is displayed. This works great using the dataTipItems array to
specify which chartitem to select. But if i use a dataTipRenderer, the
chart item is selected but the dataTip isnt displayed. Any ideas?

Thanks in advance
/Eric



[flexcoders] Re: Does Flex offer personalized configuration on the UI end?

2008-07-18 Thread ericbichara
Hi Ryan,

You would probably need to save these settings in a database to be
retrived apon starting the application. Alternatively in a
sharedObject, but then these settings will only be available on that
perticular computer.

--- In flexcoders@yahoogroups.com, "R H." <[EMAIL PROTECTED]> wrote:
>
> Hello Flexcoders,
> Does Flex offer to save personalized configuration on the UI? Every
user has
> different preference about how the result can be viewed on UI. It's not
> about the preference on the browser. It's about how to save the view
of the
> result retrieved by Flex from the server end.
> 
> Any idea?
> 
> Thanks
> Ryan
> 
> -- 
> Laurence J. Peter  - "Originality is the fine art of remembering
what you
> hear but forgetting where you heard it."
>




[flexcoders] Re: File Uploading

2008-07-17 Thread ericbichara
O btw,

i get no error message, just a Complete event back in flex

/Eric



[flexcoders] Re: File Uploading

2008-07-17 Thread ericbichara
I believe im very very close. 

I created and registered a new servlet on the tomcat server which gets
called when i call fileRef.upload, heres the serlet code:

package tutorial;

import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileItemFactory;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;

public class FileUploadServlet extends HttpServlet {

public void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException{

boolean isMultipart = 
ServletFileUpload.isMultipartContent(request);


FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);

try {
  List items = upload.parseRequest(request);
  Iterator iter = items.iterator();
  
  while (iter.hasNext()) {
  FileItem item = (FileItem) iter.next();
  if(!item.isFormField()){
  File uploadedFile = new File(item.getName());   
  try {
item.write(uploadedFile);
  } catch (Exception e) {
e.printStackTrace();
  }
  }
  
  }  
} catch (FileUploadException e1) {
  // TODO Auto-generated catch block
  e1.printStackTrace();
  
}
}
}


during logging i see that my items list has the following content

[name=null,
StoreLocation=C:\blazeDS\tomcat\temp\upload_5ceee586_11b30bb777
8__8000_.tmp, size=26bytes, isFormField=true,
FieldName=Filename, name=logo_google_suggest_s
m.jpg,
StoreLocation=C:\blazeDS\tomcat\temp\upload_5ceee586_11b30bb7778__8000_0001.tmp,
size=322
0bytes, isFormField=false, FieldName=Filedata, name=null,
StoreLocation=C:\blazeDS\tomcat\temp\uploa
d_5ceee586_11b30bb7778__8000_0002.tmp, size=12bytes,
isFormField=true, FieldName=Upload]

so it seems the file has been uploaded and placed into a temp file.
Running this code however does not produce a file anywhere. Am i
missing something? 

Thanks in advance!

/Eric



[flexcoders] Re: File Uploading

2008-07-16 Thread ericbichara
Hi dimitrios,

An example would be really great, i have no idea what url to use in 

fileRef.upload(new URLRequest());

do i point to the blazeds remoting servlet?? Where does the file end
up? Im lost. Thanks in advance!!

--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas"
<[EMAIL PROTECTED]> wrote:
>
> The same way you would do it in JSP :)
>  
> Use the FileReference class in Flex to allow the user to select a
file and then tell it to send the file to a Java servlet. Then the
servlet will receive the file and do what it needs to do with it. I
assume you have done the Java portion before, so there is nothing more
to it.
>  
> Hope that makes sense, if not I can post a quick example.
>  
> Dimitrios Gianninas
> RIA Developer and Team Lead
> Optimal Payments Inc.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of ericbichara
> Sent: Wednesday, July 16, 2008 9:32 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: File Uploading
> 
> 
> 
> Im in the same boat as you my friend, would really appreaciate it if
> someone could lets us know how to do this, Thanks again.
> 
> /Eric
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "Pravin Uttarwar"
>  wrote:
> >
> > Hi All,
> > 
> > I have requirement in my project of uploading the image file only.
> > This can be done through using FileReference class but can anybody
> tell me
> > how
> > it can be done using BlazeDs with java (not using jsp)
> > 
> > Thanks in advance.
> >
> 
> 
> 
>  
> 
> -- 
> WARNING
> ---
> This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient.  No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message.  If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system.  The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful.  If you have received this e-mail
in error, please notify the sender.
> 
> AVIS IMPORTANT
> --
> Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé.  L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation.  Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système.  La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux.  Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.
>




[flexcoders] Re: File Uploading

2008-07-16 Thread ericbichara
Im in the same boat as you my friend, would really appreaciate it if
someone could lets us know how to do this, Thanks again.

/Eric

--- In flexcoders@yahoogroups.com, "Pravin Uttarwar"
<[EMAIL PROTECTED]> wrote:
>
> Hi All,
> 
> I have requirement in my project of uploading the image file only.
> This can be done through  using FileReference class but can anybody
tell me
> how
> it can be done using BlazeDs with java (not using jsp)
> 
> Thanks in advance.
>




[flexcoders] Looping through datagrid rows

2008-06-12 Thread ericbichara
Hi All,

I have a datagrid being populated by an arraycollection. The data grid
has 3 columns, 2 populated by values in the arraycollection and one
with a combobox as an itemrenderer which is not in the dataprovider.
How do look through the entire grid getting the combobox value which
the user has chosen for each row? thanks in advance.

/Eric



[flexcoders] Re: Cazirngorn and AMFPHP1.9 HELP

2008-01-29 Thread ericbichara
Hej,

try substituting the following lines

var token : AsyncToken = service.sendAll();
token.addResponder(responder);

with

var token:Object = service.sendAll();
call.addResponder(responder);

also check that your php file and class are called "sendServices"



--- In flexcoders@yahoogroups.com, "mixmi2004" <[EMAIL PROTECTED]> wrote:
>
> Cazirngorn and AMFPHP1.9
> 
> Im having some problems sending Objects 
> Error: C0007E: RemoteObject not found for Send1.
> 
> public class SendGrassDelegate 
> {
> private var responder :IResponder;
> private var service :  AbstractService;
> 
> public function SendGrassDelegate( _responder : IResponder )
> {
>   
>  service = ServiceLocator.getInstance().getRemoteObject(
> "Send1" );
>this.responder = _responder;
> }
> public function sendAll( ): void
> {
> var token : AsyncToken = service.sendAll();
> token.addResponder(responder);
> }
> }
> 
> Services.mxml
> 
> http://www.adobe.com/2006/mxml"; 
>
xmlns:cairngorm="com.adobe.cairngorm.business.*" >
>  id="Send1" 
>   destination="amfphp" 
>   source="sendServices"
>   showBusyCursor="true"> 
>   
>  
> 
> 
> ..
> services-config.xml
> 
> 
> 
>   
>class="flex.messaging.services.RemotingService"
> messageTypes="flex.messaging.messages.RemotingMessage">
>   
>   
>   
>   
>   
>   *
>   
>   
>   
>   
>   
>class="mx.messaging.channels.AMFChannel">
>   http://localhost:80/amfphp/gateway.php";
> class="flex.messaging.endpoints.AMFEndpoint"/>
>   
>   
> 
> 
> best regards
>




[flexcoders] Re: Problem sending swedish characters from flex to php (amfphp)

2008-01-28 Thread ericbichara
Hi,

I changed my file from ASCII to UTF8 encoding but get the following
error in the service browser:

Invalid AMF message

Fatal error: Uncaught exception 'VerboseException' with message
'Cannot modify header information - headers already sent by (output
started at *servicepath*/Test.php:1)'
in
*url*/amfphp/core/amf/app/Gateway.php:191
Stack trace:
#0 [internal function]: amfErrorHandler(2, 'Cannot modify h...',
'/customers/scan...', 191, Array)
#1
*url*/amfphp19/core/amf/app/Gateway.php(191):
header('Content-type: a...')
#2
*url*/amfphp19/gateway.php(155):
Gateway->service()
#3 {main}
  thrown in
*url*/amfphp19/core/amf/app/Gateway.php
on line 191 

--- In flexcoders@yahoogroups.com, Hans <[EMAIL PROTECTED]> wrote:
>
> Please check if the encoding of the database and all the tables are
in Unicode/UTF-8
> and if the PHP files themselves are saved as UTF-8 encoded files.
> 
> 
> - Original Message 
> From: ericbichara <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Monday, 28 January, 2008 9:04:49 PM
> Subject: [flexcoders] Re: Problem sending swedish characters from
flex to php (amfphp)
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> Thanks for the replies,
> 
> 
> 
> I tryed setting
> 
> 
> 
> iconv_set_encoding( "input_encoding" , "UTF-8");
> 
> iconv_set_encoding( "output_encoding ", "UTF-8");
> 
> iconv_set_encoding( "internal_ encoding" , "UTF-8");
> 
> 
> 
> inside my php class but didnt help at all. My gateway charset looks as
> 
> follows:
> 
> 
> 
> $gateway->setCharse tHandler( "utf8_decode" , "ISO-8859-1" ,
"ISO-8859-1" );
> 
> 
> 
> any other ideas? :-)
> 
> 
> 
> Thanks again
> 
> /Eric
> 
> 
> 
> --- In [EMAIL PROTECTED] ups.com, Max Frigge  wrote:
> 
> >
> 
> > Hey,
> 
> > 
> 
> > have you checked the charset settings in your gateway.php? ?
> 
> > 
> 
> > cheers, Max
> 
> > 
> 
> > - Original Message 
> 
> > From: ericbichara 
> 
> > To: [EMAIL PROTECTED] ups.com
> 
> > Sent: Monday, January 28, 2008 6:59:30 AM
> 
> > Subject: [flexcoders] Problem sending swedish characters from flex
> 
> to php (amfphp)
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> >   
> 
> > 
> 
> > 
> 
> > 
> 
> > Hi all,
> 
> > 
> 
> > 
> 
> > 
> 
> > Im having some problems sending special characters (swedish characters
> 
> > 
> 
> > ä, ö, and å) from Flex to a Database through AMFPHP. When inserting
> 
> > 
> 
> > these types of characters directly from php in the database,
> 
> > 
> 
> > everything works fine. ie
> 
> > 
> 
> > 
> 
> > 
> 
> > INSERT INTO TABLEX VALUES ('äääööööåååå');
> 
> > 
> 
> > 
> 
> > 
> 
> > And fetching from the database into php and to Flex also works like a
> 
> > 
> 
> > charm. Im guessing its something to do with my phpenconding when
> 
> > 
> 
> > recieving the characters from Flex or something with amfphp. Any ideas
> 
> > 
> 
> > would be greatly appreaciated. Btw, im using Flex2/3, Amfphp 1.9beta2,
> 
> > 
> 
> > and a mySQL db.
> 
> > 
> 
> > 
> 
> > 
> 
> > /Eric
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> >   
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> >  
> 
>  _ _ _ _ _ _
> 
> > Be a better friend, newshound, and 
> 
> > know-it-all with Yahoo! Mobile.  Try it now. 
> 
> http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ
> 
> >
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   __
> Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
>




[flexcoders] Re: Problem sending swedish characters from flex to php (amfphp)

2008-01-28 Thread ericbichara
Thanks for the replies,

I tryed setting

iconv_set_encoding("input_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "UTF-8");
iconv_set_encoding("internal_encoding", "UTF-8");

inside my php class but didnt help at all. My gateway charset looks as
follows:

$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");

any other ideas? :-)

Thanks again
/Eric

--- In flexcoders@yahoogroups.com, Max Frigge <[EMAIL PROTECTED]> wrote:
>
> Hey,
> 
> have you checked the charset settings in your gateway.php??
> 
> cheers, Max
> 
> - Original Message 
> From: ericbichara <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Monday, January 28, 2008 6:59:30 AM
> Subject: [flexcoders] Problem sending swedish characters from flex
to php (amfphp)
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> Hi all,
> 
> 
> 
> Im having some problems sending special characters (swedish characters
> 
> ä, ö, and å) from Flex to a Database through AMFPHP. When inserting
> 
> these types of characters directly from php in the database,
> 
> everything works fine. ie
> 
> 
> 
> INSERT INTO TABLEX VALUES ('äää');
> 
> 
> 
> And fetching from the database into php and to Flex also works like a
> 
> charm. Im guessing its something to do with my phpenconding when
> 
> recieving the characters from Flex or something with amfphp. Any ideas
> 
> would be greatly appreaciated. Btw, im using Flex2/3, Amfphp 1.9beta2,
> 
> and a mySQL db.
> 
> 
> 
> /Eric
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  

> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now. 
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>




[flexcoders] Problem sending swedish characters from flex to php (amfphp)

2008-01-27 Thread ericbichara
Hi all,

Im having some problems sending special characters (swedish characters
ä, ö, and å) from Flex to a Database through AMFPHP. When inserting
these types of characters directly from php in the database,
everything works fine. ie

INSERT INTO TABLEX VALUES ('äää');

And fetching from the database into php and to Flex also works like a
charm. Im guessing its something to do with my phpenconding when
recieving the characters from Flex or something with amfphp. Any ideas
would be greatly appreaciated. Btw, im using Flex2/3, Amfphp 1.9beta2,
and a mySQL db.

/Eric



[flexcoders] Re: create XML from adjacency model db

2008-01-06 Thread ericbichara
Hi Simon,

sorry about the confusion, my question is n# 2 on your list, in fact
you could say this isn't really a Flex question but i thought id ask
since maybe someone else had come across it. Ill try to explain it
more clearly. Using the example i gave previously of my database
structure:

Project IdParent Id

1 null
2 1
3 1
4 2
5 3
6 5

>From that hierarchy i wish to get something like this:



   
  
   
   
  
 
  
   



which i would then be able to feed to a Tree Component. What would be
necessary would be some kind of recursive function to create this XML
I'm guessing.  I have seen posts of people being able to do this with
CF: http://tech.groups.yahoo.com/group/flexcoders/message/79643

but need a way to do this either in PHP or in actionscript.

Thanks again,

Eric
--- In flexcoders@yahoogroups.com, "simonjpalmer" <[EMAIL PROTECTED]>
wrote:
>
> I've re-read this a few times and I'm not clear what you are asking.
> Is your question...
> 1) how do I communicate from a database to a flex app?
> 2) how do I pivot that parent-child hierarchy into xml?
> 3) how do I get a tree control to consume xml?
> 4) some other question?
>
> If it is 1 or 3, then there are lots of sample apps and docs around
> that you can use as a starting point.
>
> If it is 2, then I doubt that the tree control will natively interpret
> a flattened (relational) hierarchy such as the one you depict - I have
> not seen it, but that doesn't mean it doesn't exist.  Let's hope that
> some bright spark points out that it does.
>
> Otherwise you have a decision on where you would like to perform the
> processing to pivot those rows into a classic denormalised hierarchy.
>  You can do it...
> - in a semantic layer above your data,
> - in your query (although this is hard and probably not a good idea)
> - in the application layer processing your database query results
> - in the business layer
> - in the model layer in your presentation tier
> - as an auxilliary rendering step just behind your tree (my personal
> favourite)
> - anywhere else it fits
> I'm sure you'll have a feel for which is the best place for your app.
>
> If it is 4, then please re-state your question and I'll have another
read.
>
> Simon
>
> --- In flexcoders@yahoogroups.com, "ericbichara" ericbichara@ wrote:
> >
> > Hi everyone,
> >
> > I need your help! I have a database modeled after the adjacency list
> > model, for example:
> >
> > Id Parent
> > 1  null
> > 2  1
> > 3  1
> > 4  2
> > 5  3
> > 6  5
> >
> > and i need to be able to feed this hierarchy to a Tree component in
> > flex. I am running a mySQL database and using php through AMFPHP to
> > pass data between the db and Flex. I have absolutely no idea how i
> > would go about doing this. I have seen some suggestions on here
using
> > CF but unfortunately i have no access to CF. I have also tried
looking
> > for examples in Java with no success. I would really appreciate some
> > help.
> >
> > Thanks in advance
> >
> > /Eric
> >
>




[flexcoders] create XML from adjacency model db

2008-01-06 Thread ericbichara
Hi everyone,

I need your help! I have a database modeled after the adjacency list
model, for example:

Id Parent
1  null
2  1
3  1
4  2
5  3
6  5

and i need to be able to feed this hierarchy to a Tree component in
flex. I am running a mySQL database and using php through AMFPHP to
pass data between the db and Flex. I have absolutely no idea how i
would go about doing this. I have seen some suggestions on here using
CF but unfortunately i have no access to CF. I have also tried looking
for examples in Java with no success. I would really appreciate some
help. 

Thanks in advance

/Eric



[flexcoders] double refresh when transitioning between viewStack states using showEffect

2007-03-18 Thread ericbichara
Hi All,

Im having a small issue when changing between viewStack states and
using the showEffect, here is some sample code


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
























its seems as though the content in the panel is shown before the
showEffect starts causing a blinking effect. Anyone know how to
resolve this? Thanks in advance



[flexcoders] Re: Cairngorm 2.1 AMFPHP 1.9

2007-01-31 Thread ericbichara
Hi, your config script looks fine to me, give us an example of your
service.mxlm file, maybe youre calling the service inccorectly? Here
is an example of mine:


http://www.adobe.com/2006/mxml";   
xmlns:cairngorm="com.adobe.cairngorm.business.*">
   
 



and script:










*







http://localhost/amfphp/gateway.php";
class="flex.messaging.endpoints.AMFEndpoint"/>




--- In flexcoders@yahoogroups.com, "mapper2255" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> Have been trying all day to get CairngromStore running and keep 
> getting this error: theMessagingError message='Unknown 
> destination 'AMFPHP1_9'.' Using xampp/php 5.
> 
> Have searched a long time for the answer with no help. Ran across 
> this thread: http://www.mail-
> archive.com/flexcoders@yahoogroups.com/msg49480.html.
> 
> So I am using: 
> 
> 
>   class="flex.messaging.services.RemotingService"
>  
> messageTypes="flex.messaging.messages.RemotingMessage">
> 
> 
> 
> 
> 
> *
> 
> 
> 
> 
> 
> 
>  class="mx.messaging.channels.AMFChannel">
> http://localhost/amfphp1_9/gateway.php"; 
> class="flex.messaging.endpoints.AMFEndpoint"/>
> 
> 
> 
> 
> Have set up and have running amfphp 1.9. 
> 
> Any suggestions? I know it is something simple.
> 
> Thanks.
>




[flexcoders] Loading Mouse Icon?

2006-08-20 Thread ericbichara
hi everyone,

Im using flex with amfphp and was wondering how to get the loading
mouse icon (round swirly one) to show up while data is being fetched
from the database. is there a way to turn it on and off?

Thanks in advance





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

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

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