[flexcoders] Flex OpenSocial

2009-07-05 Thread aphexyuri
I was hoping someone on the group could point me in the right direction for 
some resources etc. for building Flex apps for MySpace / hi5 etc using 
OpenSocial?

Any help appreciated.

Thanks



[flexcoders] Re:Pb with Amfphp

2009-06-06 Thread aphexyuri
use the amfphp service browser, it might give you a better description.
quick things to check:
-Are there any trailing spaces or content behind the closing php tag? If so, 
remove it.
-are your amfphp methods returning anything, if not, pop in return foo; at 
the en of your method.

--- In flexcoders@yahoogroups.com, Martin Moschitz mar...@... wrote:

 i had this error frequently while using ZendAMF. It was always a  
 Problem with the PHP code. Some call to a method which did not exist,  
 a class method call without $this, or any other minor thing which  
 should cause PHP to send a warning, but in conjunction with ZendAMF  
 (since error_reporting needs to be turned of to have it working  
 stable) the PHP script sometimes just dies without any warning/error  
 written.
 
 So my guess, just check back your PHP code (make a Unit test, etc).
 
 hth
 martin





[flexcoders] Re: Pure MVC vs Cairgorm

2009-05-20 Thread aphexyuri
So which one is the Ferrari and which the mini ;)

One of the biggest advantages of PureMVC has, lies with the multicore build. It 
allows you to have multiple application cores, and comms between them via a 
Pipes utility...perfect for working with modules...100%...loosly-coupled. 
Also, I think it's currently ported to 11 other languages, reducing your 
learning curve if you are considering adventures in PHP, C#, Objective C, Java, 
Python, Rudy, etc, etc

It really depends of the complexity of your app. The more complex, the bigger 
the need to use a proven framework. For some time now, I've only been coding 
with the PureMVC (mostly standard build, except when the project is really 
big=multicore, or really small=none). It takes a bit longer to set up your 
project, but once you're there, coding is SUPER FAST, and a lot gets taken care 
of for you.

Some reference to put you on your way:
http://trac.puremvc.org/PureMVC_AS3/
http://tinyurl.com/ofgpx8
http://tinyurl.com/o88se6

...and a great book I would recommend if you are serious about OOP AS3, and 
considering 'rolling your own':
http://tinyurl.com/osr8cl

Enjoy!



--- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote:

 - Original Message - 
 From: mhbmarcos mhbmar...@...
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, May 19, 2009 6:44 PM
 Subject: [flexcoders] Pure MVC vs Cairgorm
 
 
  Hi!!!, which is the best option?
 
 Would you say a Ferrari is best or a Mini?
 
 If you want to impress expensive women, then the Ferrari would do well, but 
 if you want to go shopping and be able to negotiate narrow uneven streets, 
 I'd go for the Mini.
 
 As it is with cars, the same follows for software.
 
 Some people like PureMVC, some people go with the Adobe-approved Cairngorm.
 
 Look them both up on google and check them out.





[flexcoders] Re: best ftp client

2009-04-30 Thread aphexyuri
lightweight oneFireFTP (add-on for firefox)

--- In flexcoders@yahoogroups.com, Johannes Nel johannes@... wrote:

 i like total commander the most personally on a windows box. on a mac fetch.
 
 On Thu, Apr 30, 2009 at 1:30 AM, Tracy Spratt tr...@... wrote:
 
 
 
   Me too.  I've never done a lot of ftp, but FileZilla was easy to use and
  does all all need so far.
 
 
 
  Tracy Spratt,
 
  Lariat Services, development services available
--
 
  *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
  Behalf Of *valdhor
  *Sent:* Wednesday, April 29, 2009 8:30 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Re: best ftp client
 
 
 
 
 
 
   I'm a big fan of FileZilla (http://filezilla-project.org/)
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  stinasius stinasius@ wrote:
  
   what is the best free ftp client to use to upload flex app to remote
  server?
  

 
 
 
 
 -- 
 j:pn
 \\no comment





[flexcoders] Re: Is it just me or anyone else has the same problem

2009-04-24 Thread aphexyuri
I know...at least its better than Apollocoders, where it takes at least a week 
to appear (if at all)!

--- In flexcoders@yahoogroups.com, Erich Cervantez f...@... wrote:

 It's not just you
 
 --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote:
 
  Is it just me but it takes hours for my message to appear. Anyone has same 
  problem?
 





[flexcoders] Re: OT: TV anyone?

2009-04-21 Thread aphexyuri
Some more on this:
http://tinyurl.com/d6b3sw

--- In flexcoders@yahoogroups.com, Rick Winscot rick.wins...@... wrote:

 When I found out that Flash Player 9 included H.264 playback... It was
 pretty obvious that they (Adobe) were moving heavily into the entertainment
 delivery market. There are still some pretty big obstacles to navigate  ­
 but I think it¹s safe to say that if you have stock in Blockbuster, Netflix,
 or Direct TV it¹s time to refresh your portfolio.
 
 Rick Winscot
 ³He who dies with the most toys wins.²
 
 
 
 On 4/20/09 10:27 AM, Paul Andrews p...@... wrote:
 
   

  

  
  Yay!
  
  http://news.bbc.co.uk/1/hi/technology/8008070.stm

  
  
 





[flexcoders] Re: create a thumbnail dynamically from large image using flex

2009-04-18 Thread aphexyuri
I knew I had a class I wrote to do this...
If you have the large image, get its bitmapData, feed it to this function with 
target's dimensions, and boom...you'll get the resized 'thumbnail' as Bitmap. 
You can also change the return type and return the bitmapData newBmd (sorry 
about the formatting)

public function scaleBitmapData(_bmd:BitmapData, targetContainerWidth:Number, 
targetContainerHeight:Number):Bitmap {
//set matrix sx  sy 
var sx:Number = targetContainerWidth / _bmd.width;
var sy:Number = targetContainerHeight / _bmd.height;

//instantiate new matrix, and set scaling
var m:Matrix = new Matrix();
m.scale(sx, sy);

//create new bitmapdata 
var newBmd:BitmapData = new BitmapData(targetContainerWidth, 
targetContainerHeight);

//draw new bitmapdata with matrix   
newBmd.draw(_bmd, m);

//create final bitmap with new bitmapdata
var newBmp:Bitmap = new Bitmap(newBmd);

//set smooting to true
newBmp.smoothing = true;

//boom!
return newBmp;
}

--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote:

 i just need a way to create a thumbnail from a larger image dynamically in 
 flex so that i dont have to store both a thumb and large image of the same 
 image. trying to save on storage and load time of application. can some one 
 please help out. thanks





[flexcoders] Re: Flash speed test - please participate - only 1 click required !

2009-04-14 Thread aphexyuri
I'll second that...afterall, we're not machines ;)
You have to work on your delivery and presentation.


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


 Tom,
 
 Could you make the stats available after you complete the test, and
 also do something on the page so we know the test is running, and not
 just hung (e.g. A running counter)?
 
 Maybe that will give people some more confidence that  it is doing
 what it claims to be doing.
 
 P.S. Can't stand anything Symantec :)
 
 On 4/14/09, Steve Mathews happy...@... wrote:
  For anyone who cares, I ran swfScan on the swf and it only does what is
  advertised. A quick look at the page source and I didn't see anything fishy
  there either.
 
  On Mon, Apr 13, 2009 at 9:55 AM, tom93438 tcs2...@... wrote:
 
  Wow !
 
  There is some serious paranoia here. This page does exactly what I
  described in my original email, and nothing more. I created it to learn
  something, which I plan on sharing back with this community.
 
  I've been posting to this list for a while, so I would sort of hope that
  there could be a little more trust.
 
  Feel free to inspect the page, etc. But everything you need to know is in
  my original post (at bottom of this email).
 
  @Cato - I hope you realize that this kind of scare mongering will
  seriously
  diminish the number of testers, and hence the quality of the data that I
  will be able to share back with you all... :(
 
  cheers
 
  tom
 
 
 
 
  --- In flexcoders@yahoogroups.com, Cato Paus cato1@ wrote:
  
   DO NOT TEST THIS... Trojan Horse Detected on page!
  
  
  
  
  
  
   --- In flexcoders@yahoogroups.com, tom93438 tcs2201@ wrote:
   
One other test that would also be useful:
Please hit:
   
http://flatim3000.appspot.com/?fps=24
   
Does the same as before, but tests for 24 fps.
   
thanks
   
tom
   
   
--- In flexcoders@yahoogroups.com, tom s tcs2201@ wrote:

 Hi All,

 I'm doing some tests to see how 'fast' the Flash Player is in a
  variety of
 environments.
 Please click the link to take part: (you don't have to do anything
  other
 than click the link)

 http://flatim3000.appspot.com


 It's totally malware free. If you're interested, see below for
  details.
 Please hit it as many times as you like, from as many different
  environments
 as you can :)
 I'll share the results when I'm done.

 cheers

 tom

 details
 =
 The SWF:
 1. attempts to set the frame rate to 1000
 2. listens for enter_frame 10,000 times
 3. records how long (2) takes
 4. computes the actual FPS
 5. send the data to a server, along with details on OS, Browser, FP
  version,
 IP

 Any suggestions/improvements - let me know...

   
  
 
 
 
 
  
 
  --
  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
 
 
 
 
 
 
 -- 
 Sent from my mobile device





[flexcoders] Re: Has anyone done a file upload and download, store data into database

2009-04-02 Thread aphexyuri
Hi

Flex sure can return the data, but because you are working with multiple file 
types, you're gonna run into some decoding / file saving issues. For example, 
you can easily decode an image file, but what about other binary files like 
.doc files etc? You will probably need libraries to take care of that. Plus, 
when it comes to saving the file(also with pre-upload encoding etc), you will 
be restricted with regards to Flash player version.

In general, why are you storing it as binary data in the db, any specific 
reason? What traffic are you talking about, as this might create a lot of db / 
server-side 'overhead'. Dependent of the use case, taking a different approach 
might make your life much easier.

Maybe you can give us a more detailed use case, as the solution will depend on 
what the desired behavior should be. What will happen before the upload? How 
will the download be initiated? How do you want to display the downloaded file? 
etc etc etc

Yuri

--- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote:

 Sorry for not being clear.  I want to transfer a file (image or document) to 
 my back end PHP using flex.  I then want PHP to convert the file to binary 
 and store the data into a database.  I think I know how to do that.  I then 
 want to be able to retrieve that data from a query to the back end via flex 
 and then have the user download the file (in the correct file format).   Can 
 the 2nd part be done with flex, retrieving the file???  
 
 Thanks, 
 timgerr
 
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Can you be more clear on what you want?  Download typically means to take
  a physical file from a remote file system and save it in a local filesystem.
  There is no conversion involved.
  
   
  
  Perhaps you do not mean download?  What kinds of file formats are you
  talking about, and what do you want to do with the data in the Flex client?
  
   
  
  Tracy Spratt,
  
  Lariat Services, development services available
  
_





[flexcoders] Re: Why Flex can not use flash.net.NetConnection?

2009-03-28 Thread aphexyuri
Smells like a fault in your amfphp service. Have a look at your service, make 
sure the syntax it right, make sure there's no content after the closing php 
tag etc.

You will get a better fault description by opening the service from the amfphp 
service browser.

Goto /amfphp/browser and check the fault.

good luck ;)

--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote:

  Hi,
 
  I have following code for amfphp.
 
  import flash.net.NetConnection; 
  private var connection:NetConnection;
  private var gateway:String = amfphp/gateway.php;
 
  private function init():void
  {
 connection = new NetConnection();
 connection.connect( gateway );
   
  }
 
  .
 
 but I get error for connection = new NetConnection();. the error is the 
 following:
 Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion
 
 I know flash always use it,why flex can not use it?
 
 Thanks
 
 Mark





[flexcoders] Streaming radio

2009-03-12 Thread aphexyuri
I was wondering if anyone has played with streaming radio to a flash / flex ui?



[flexcoders] Re: save word file to database.

2009-03-07 Thread aphexyuri
I'm not sure what the use case is, but I was faced with a similar issues 
recently...but with Flex, and ended up using Sribd.
The service allows you to upload most doc types, not just word docs, and takes 
care of the your storage needs. Docs can be set to private if desired, so the 
public cant view it. Once in scribd, you can download the original doc again, 
retrieve a 'firt page' icon, and read the doc using their iPaper 'viewer', this 
would be easy in AIR using the HTML component.
There's an actionscript API available(not great but the source is available, so 
you can extend), check out the developers page at scribd.com.

Good luck

--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote:

 
  Although possible to save binary docs in a database, I recommend 
 against it.  Save them on disk and put a pointer in the database. 
 
  If you're adamant about storing the files in the database looking into 
 the BLOB data type (Binary Large OBjects ).  I imagine if you send it to 
 the database
 
  That said, were you having any specific problems transferring a word 
 doc back and forth?  It's just bytes, so I doubt you'd need any encoder 
 / decoder.  Displaying a word doc in an AIR file would be an impressive 
 treat if you can pull it off, though. 
 
 markflex2007 wrote:
  Hi,
 
  I am doing a Air application and I need save a microsoft word file to 
  database and I also need download the file back with AIR.
 
  I maybe need some encoder/decoder technology to do this.but I do not have 
  idea about this.
 
  Would you please give me a idea about this.
 
  Thanks for your help
 
  Mark
 
 

 
 
 -- 
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: http://tinyurl.com/684b5h
 http://www.twitter.com/reboog711  | Phone: 203-379-0773
 --
 Easy to use Interface Components for Flex Developers
 http://www.flextras.com?c=104
 --
 http://www.theflexshow.com
 http://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust





[flexcoders] Re: HTML advice please

2009-02-14 Thread aphexyuri
Awesome, exactly what I was looking for...thanks!

--- In flexcoders@yahoogroups.com, Maya Tulchinsky maya...@... wrote:

 Check out this one:
 http://www.deitte.com/IFrameDemo3/IFrameDemo.html
 
 Here is blog about Iframe use in flex:

http://www.themidnightcoders.com/blog/2006/12/mixing-html-and-flex-using-iframe.html
 
 Good luck,
 
 Maya
 
 
 --- On Fri, 2/13/09, aphexyuri yuriv...@... wrote:
 From: aphexyuri yuriv...@...
 Subject: [flexcoders] HTML   advice please
 To: flexcoders@yahoogroups.com
 Date: Friday, February 13, 2009, 5:31 AM
 
 
 
 
 
 
 
 
 
 
 
 
 Hi All
 
 
 
 As far as I know, we can't load complex HTML pages into a Flex
 
 control, but I was wondering if anybody has had experience with this.
 
 
 
 Its for a dashboard app that has flex elements, but must be able to
 
 load full websites into specific containers of the dashboard.
 
 
 
 I'm not sure what other technologies would be able to do this, Ajax,
 
 JavaScript?
 
 
 
 Any suggestions would be appreciated. ..thanks
 
 
 
 Yuri





[flexcoders] HTML advice please

2009-02-13 Thread aphexyuri
Hi All

As far as I know, we can't load complex HTML pages into a Flex
control, but I was wondering if anybody has had experience with this.

Its for a dashboard app that has flex elements, but must be able to
load full websites into specific containers of the dashboard.

I'm not sure what other technologies would be able to do this, Ajax,
JavaScript?

Any suggestions would be appreciated...thanks

Yuri



[flexcoders] Re: How do I html decode a string? ex: Iacute

2009-01-30 Thread aphexyuri
A hack if all fails: (?)

var stringWithHtmlLits:String = lt; its ok gt;;

var t:TextField = new TextField();
t.htmlText = stringWithHtmlLiterals;

var nonLits:String = t.text;

--- In flexcoders@yahoogroups.com, Greg Hess flexeff...@... wrote:

 Ah, I believe those HTML entities. You may find support in some HTML
utils...
 
 
 On Fri, Jan 30, 2009 at 3:57 PM, luvfotography
 ygro...@... wrote:
  Hi, thanks, but that doesn't work. I need something to decode the
  literals, such as 'lt', 'quot', iacute, etc.
 
  --- In flexcoders@yahoogroups.com, Greg Hess flexeffect@ wrote:
 
  The global function unescape(str) might be what you are looking
for if
  you need to decode a URL-encoded string.
 
  HTH,
 
  Greg
 
  On Fri, Jan 30, 2009 at 2:32 PM, luvfotography
  ygroups@ wrote:
   Is there a function to html decode a string?
  
   I want to translate Iacute to the single character i with the
accent.
   thanks,
  
  
 
 
 





[flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread aphexyuri
Have you played around with $gateway-setCharsetHandler() in gateway.php?

--- In flexcoders@yahoogroups.com, Daniel Freiman freima...@... wrote:

 Either I'm missing something (which is highly possible) or that
information
 isn't addressing the problem.  Everything on the php side seems
fine.  And
 all the tests/functions applied to the string on the php side operate as
 expected.  It's not until the string is sent over AMF to Flex that I
have a
 problem.
 
 On Wed, Jan 14, 2009 at 12:20 PM, valdhor valdhorli...@...wrote:
 
The problem is with PHP and how it handles multi-byte strings.
 
  A good overview can be found at
http://www.phpwact.org/php/i18n/charsets
 
  Hopefully PHP 6 will end all this grief.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Daniel
  Freiman FreimanCQ@ wrote:
  
   I'm transmitting Strings from php to Flex. The values are correct
  before I
   send them to Flex (I've traced them), but Flex isn't
interpreting them
   properly (I get that square thing, or two incorrect characters).
  I've tried
   various encoding/decoding schemes (urlencode, etc) but none of
them have
   worked. So far I've only tried alphanumeric characters and the
  trademark
   and registered symbols. The trademark is the only one that isn't
   working.
   Anyone have any idea how to fix this?
  
   - Daniel Freiman
  
 
   
 





[flexcoders] Re: Flex Photo Gallery

2009-01-09 Thread aphexyuri
Hey Bruce
I'm adapting the gallery to use an xml file as source, and have
already built an AIR app to manage albums, resize images, and output
the xml file. The Gallery component its self will be available for
purchase, but I'll make the AIR app's source available.

Yuri

--- In flexcoders@yahoogroups.com, brucewhealton br...@... wrote:

 Yuri,
  Wow!  That's really nice.  Were you going to sell the app when
 finished or make the code available at all?  It is listed as being in
 a directory called tutorials, will you use this as part of a tutorial?
 Bruce
 --- In flexcoders@yahoogroups.com, aphexyuri yurivssr@ wrote:
 
  Hey Bruce
  It's still a work-in-progress, but have a look:
  
  http://www.theliblab-tutorials.com/bigoso/gallery/
  
  Yuri
  
  --- In flexcoders@yahoogroups.com, brucewhealton bruce@ wrote:
  
   Hello all,
   Can anyone recommend some good examples of how people have
   used Flex to create nice photo galleries with different effects.
 I'd
   like to see about integrating a database and a scripting
language like
   PHP to allow the end user on a website to update their gallery of
   photos after I create the design and develop it.  
  I find it helpful to get inspiration from what others have
 done.
   Thanks,
   Bruce
  
 





[flexcoders] Re: Flex Photo Gallery

2009-01-08 Thread aphexyuri
Hey Bruce
It's still a work-in-progress, but have a look:

http://www.theliblab-tutorials.com/bigoso/gallery/

Yuri

--- In flexcoders@yahoogroups.com, brucewhealton br...@... wrote:

 Hello all,
 Can anyone recommend some good examples of how people have
 used Flex to create nice photo galleries with different effects.  I'd
 like to see about integrating a database and a scripting language like
 PHP to allow the end user on a website to update their gallery of
 photos after I create the design and develop it.  
I find it helpful to get inspiration from what others have done.
 Thanks,
 Bruce





[flexcoders] Hiding text in advanced datagrid

2009-01-07 Thread aphexyuri
Hi guys

I'm dealing with an advanced datagrid, that has numerous fields. Each
field has a search control as header renderer. The header control's
values are used in the arraycollection's filterFunction.

Some fields have two values, eg: 155 (160), representing typical value
(guaranteed value). My client doesn't want the guaranteed value
displayed, but the data needs to be available for the filterFunction.

Can anyone suggest a good way of dealing with this...making the ()
value invisible, yet having it available to the arraycollection's
filterFunction?

Any suggestions will be GREATLY appreciated...

Thanks

Yuri



[flexcoders] Re: Hiding text in advanced datagrid

2009-01-07 Thread aphexyuri
Man! I'm a classic case of standing too close to the tree to see the
forest...

Thanks!


--- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote:

 Try the handy labelFunction on the column. The underlying value is
 still there; you just display it differently. In the labelFunction,
 just parse out the (*) string and return the rest.
 
 -Alex
 
 --- In flexcoders@yahoogroups.com, aphexyuri yurivssr@ wrote:
 
  Hi guys
  
  I'm dealing with an advanced datagrid, that has numerous fields. Each
  field has a search control as header renderer. The header control's
  values are used in the arraycollection's filterFunction.
  
  Some fields have two values, eg: 155 (160), representing typical value
  (guaranteed value). My client doesn't want the guaranteed value
  displayed, but the data needs to be available for the filterFunction.
  
  Can anyone suggest a good way of dealing with this...making the ()
  value invisible, yet having it available to the arraycollection's
  filterFunction?
  
  Any suggestions will be GREATLY appreciated...
  
  Thanks
  
  Yuri
 





[flexcoders] Re: Need functions like Excel NPV, IRR, NPER

2008-12-29 Thread aphexyuri
i used the following in a previous project, maybe it might help you:

(for calculating payments)

public function calculatePMT(PV:Number, IR:Number, YEARS:Number):Number {

var newIR:Number = IR/12;
var newNP:Number = YEARS*12;

return Math.round((PV*(newIR/100)) / (1-Math.pow(1+(newIR/100), -newNP)));
}


(for calculating present value)

public function calculateBond(PMT:Number, IR:Number,
YEARS:Number):Number {

var newIRb:Number = (IR/100)/12;
var newNPb:Number = YEARS*12;

var v:Number = Math.pow(1+newIRb, -newNPb);
var pv:Number = PMT*(1-v)/newIRb;

return Math.round(pv);
}

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

 Do a google search for your requirements. For example, searches on NPV
 and IRR yielded the following:
 
 http://www.ehow.com/how_2187130_calculate-net-present-value-npv.html
 http://www.s-anand.net/Calculating_IRR.html
 
 You will then need to convert these algorithms to Actionscript (I
 could not find any Actionscript examples).
 
 
 --- In flexcoders@yahoogroups.com, Pete Appleby boneoh@ wrote:
 
  Hi, everybody!
  
  I need to find   Flex 3 functions to calculate NPV, IRR, and NPER just
  like in Excel. Are these out there anywhere? I don't want to reinvent
  the wheel.
  
  Thanks!
  
  Pete
 





[flexcoders] Re: Tons of errors using FlexBuilder on Ubuntu

2008-12-25 Thread aphexyuri
Hey Tyler

I work on ubuntu Hardy...running flex sdk 3.2, air 1.5 and flashplayer 10.

Seems like your biggest issue is that you need debug player installed.
You can download the debug player, and un tar. then goto
flash_player_10_linux_dev/plugin/debugger/install_flash_player_10_linux and
run sudo sh flashplayer-installer in terminal. Follow the prompts, and
you should be set.

With regards to your eclipse version...they say 3.3 or higherbut.
I've done numerous installs, and it seems like Europa 3.3 is the
happiest with Flex plugin.

I hope this answers some of your questions...

Yuri

--- In flexcoders@yahoogroups.com, Tyler Kocheran rfkroc...@... wrote:

 Now, before I start, I know that FlexBuilder Linux is in beta still
and a
 lot of stuff isn't working. With that said, I'm experiencing a lot of
 problems that I don't think other people are experiencing.
 
 I'm using Ubuntu as my OS, and Ganymede for my Eclipse version with
Flash
 Player 10 release version. (I can't seem to install Flash 10 Debug
Players,
 does anyone know how to do that on Ubuntu?) When I try to compile my
 application, it launches fine (when i Run it, not when I Debug it.
 Debugging doesn't work because I don't have a debug player installed.)
 However, I'm getting nothing when it runs, just a big blue
application that
 does nothing. I can't visually add anything to the display list, I
can't log
 anything out to Arthropod, I basically can't do anything.
 
 When I try to embed my application via SWFObject, that's no working
either.
 I get the alternative content every time.
 
 Now here are my questions, I'm going to try and discover the answers
ASAP
 for them, but if you know anything, could you help me out?
 Does FlexBuilder for Linux need to be installed on a Europa release?
 Does FlexBuilder for Linux *require* you to use Flash Player 9
release and
 debug players?
 Will using the Flex ant tasks resolve some of the problems I'm having?
 
 Any help is much appreciated! Merry Christmas, everyone!
 http://ubuntuforums.org/showthread.php?p=6432138#post6432138
 
 - TK
 
 -- 
 And do this, knowing the time, that now it is high time to awake out of
 sleep;
 for now our salvation is nearer than when we first believed.





[flexcoders] VSlider, snap to tickmarks?

2008-12-18 Thread aphexyuri
Hi

I've got a slider that has different values based on params passed to
it. I populate the tick marks with an array of possible values the
slider can have, and would like to snap the thumbs to the tickmarks.

Is this possible.

Thanks

Yuri



[flexcoders] Re: VSlider, snap to tickmarks?

2008-12-18 Thread aphexyuri
Forgot to mention...the possible values are not evenly incremented, so
using snapInterval isn't possible.

--- In flexcoders@yahoogroups.com, aphexyuri yuriv...@... wrote:

 Hi
 
 I've got a slider that has different values based on params passed to
 it. I populate the tick marks with an array of possible values the
 slider can have, and would like to snap the thumbs to the tickmarks.
 
 Is this possible.
 
 Thanks
 
 Yuri





[flexcoders] lock first column in datagrid

2008-12-10 Thread aphexyuri
Hi

I'm building a datagrid with multiple columns, show and hide them at
runtime, and need to lock the first column from scrolling horizontally.

Is this possible? I can't seem to find anything in the API.





[flexcoders] Re: Parsley MVC :: some thoughts

2008-12-08 Thread aphexyuri
there is on more reason..pureMVC

--- In flexcoders@yahoogroups.com, Jules Suggate
[EMAIL PROTECTED] wrote:

 boom head explodes heh!
 
 I have been happily thinking the whole time that events really *are*
 asynchronous, but that's obviously not true. Reality check...
 
 Thanks guys. I think I might have run out of reasons *not* to use
Parsley :)
 
 On Tue, Dec 9, 2008 at 01:06, Paul Andrews [EMAIL PROTECTED] wrote:
  - Original Message -
  From: Jules Suggate [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Monday, December 08, 2008 6:49 AM
  Subject: [flexcoders] Parsley MVC :: some thoughts
 
  Anyone used Parsley MVC? I'm a bit confused by it.
 
  There's the standard MVC FrontController class, which exposes a
method
  dispatchEvent() for app-wide notifications. It also has a concept of
  interceptors which is nice... so far so good.
 
  BUT... that dispatchEvent() call executes *synchronously*. Control
  won't return to your code until *every single listener* to that event
  finishes executing!! In a single-threaded environment like Flash
  Player, I would have thought this to be a disastrous design
  decision... can anyone shed any light on this, as I'm sure there's
  something I'm missing here!
 
  Why is it disastrous? The flash player is single threaded so it's not
  possible have concurrently running code (something I think that
Adobe should
  address in the future) so why shouldn't all the waiting listeners
be called?
 
  It's not possible to resume execution elsewhere while a listener
is still
  active because that would require semaphores to handle pseudo
concurrency
  and I'm sure that holds true not just for the listeners themselves
but also
  for the mechanism that calls the waiting listeners.
 
  Paul
 
 
  TIA,
  +J
 
  PS another thing I haven't figured out yet is how to inject
  dependencies into a View component... it seems Parsley can only
inject
  into objects that have been created in the Parsley config file
... and
  because View components are instantiated by the Flex framework, from
  what I can tell Parsley has no way to reference them... this has the
  unpleasant side-effect of requiring all my View code to access the
  FrontController directly through the FrontController.root static
  property.
 
  In fact, the FrontController class is bugging me -- it is a concrete
  class with no abstract interface I can code to. It's making me
nervous
  about lock-in to the Parsley framework.
 
  Kinda goes against the whole IoC thing, no?
 
  PPS And yeah, I will post this to the Parsley forums, but I want the
  esteemed opinion of those on this list too!
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
 
 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 
 





[flexcoders] Re: Flex 3 - Export to Microsoft Excel?

2008-12-01 Thread aphexyuri
I just completed a project with this as a feature.
I looked at various options, and using server-sider excel generation
worked out to be the most powerful...providing you have BASIC PHP
knowledge, and a hosting option / local server with PHP  pear.
 
I used a combination of AMFPHP and PEAR Spreadshhet_Excel_Writer
package(http://pear.php.net/package/Spreadsheet_Excel_Writer). Easy to
use and sooo powerful. You have full customization of how the excel
doc  cells/column etc formatting turns out.

After generating your file, you can prompt the user for download.

Good luck

--- In flexcoders@yahoogroups.com, Mike Chabot [EMAIL PROTECTED] wrote:

 If you send the data to the server, create the Excel file there, then
 send the result back to Flex, you will have the full power of the
 numerous server-side Excel file creation methods at your disposal. If
 you want the chart in Excel to look the same as it looks in Flex then
 you might have to convert it to a bitmap first. Either that or
 recreate the chart on the server. If all you need is a simple
 copy/paste solution, then the method Paul mentioned would be easier to
 implement.
 
 -Mike Chabot
 
 On Mon, Dec 1, 2008 at 1:13 PM, sailorsea21 [EMAIL PROTECTED] wrote:
  Hi everyone, is it possible to export to Excel?
 
  If I have a chart or a datagrid, is it possible to export it to
  Microsoft Excel?
 
  Thanks.
 
  -David.
 
 





[flexcoders] Re: Any good free blog sites to post Flex code on XOR what's a good web-hosting com?

2008-11-23 Thread aphexyuri
Hosting...I'd really recommend www.lunarpages.com

I've been with them for 2 years now, great service and reliable.
Awesome packages as well, at an almost unbeatable price.

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

 Does anyone know of any good, free blog sites which make posting swfs
 and Flex source code easy?  I've spent a few hours fighting with
 Blogger (which doesn't seem to even allow uploads) and am quite fed up
 :)  If there are no decent blog sites out there, can anyone suggest a
 decent web-hosting company?  Thanks for reading my silly post.





[flexcoders] IllegalOperationError with fileReference.download() and Internet Explorer

2008-11-18 Thread aphexyuri
I'm getting a illegalOperationError when calling download() on a
fileReference instance in IE. However, I'm not getting it in FireFox,
Opera or Safari.
Can anyone shed some light on this?

Thanks



[flexcoders] DataGrid headerrenderer prevent redraw

2008-10-14 Thread aphexyuri
Hi
I have a datagrid with valious headerRenderers. These headerRenderers
have controls in them, for adjusting results in the datagrid.

When I change the dataProvider for the datagrid, the entire datagrid
gets redrawn, including the headerRenderers. Is there a way to bypass
that? I see that the actual DataGridColumns aren't getting re-created.

Please help...thanks!!!



[flexcoders] Re: Excel download from flex array with AMFPHP

2008-10-09 Thread aphexyuri
Are you implementing this in AMFPHP? The reason why I'm asking, is
because I came across a post yesterday that said something about
AMFPHP taking over / managing all the headers to and from the client.
I can't remember he details, but that was the gist of it.

So, came up with a more elegant (I think) solution...I used PEAR
Spreadsheet_Excel_Writer package to create a .xls file server
side(Btw, the package is awesome, you can practically set formatting
to any field, almost to the same level as you can actually do it in
Excel).

I then send the file location back to Flex, and use FileReference to
present a download file browser to the user.

After save or cancel, I send a msg to amf to remove unlink the file
from the server...Boom...the Flex way!

Thanks for your help tho!!!

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

 I do this all the time from PHP. Here are the functions that I use:
 
 function sendHeader($FileName)
 {
  header(Pragma: public);
  header(Expires: 0);
  header(Cache-Control: must-revalidate, post-check=0,
pre-check=0);
  header(Content-Type: application/force-download);
  header(Content-Type: application/octet-stream);
  header(Content-Type: application/download);
  $DispositionHeader = Content-Disposition: attachment;filename= .
 $FileName . .xls;
  header($DispositionHeader);
  header(Content-Transfer-Encoding: binary);
 }
 
 function xlsBOF()
 {
  echo pack(ss, 0x809, 0x8, 0x0, 0x10, 0x0, 0x0);
  return;
 }
 
 function xlsEOF()
 {
  echo pack(ss, 0x0A, 0x00);
  return;
 }
 
 function xlsWriteNumber($Row, $Col, $Value)
 {
  echo pack(s, 0x203, 14, $Row, $Col, 0x0);
  echo pack(d, $Value);
  return;
 }
 
 function xlsWriteLabel($Row, $Col, $Value )
 {
  $L = strlen($Value);
  echo pack(ss, 0x204, 8 + $L, $Row, $Col, 0x0, $L);
  echo $Value;
  return;
 }
 
 And here is how I would use these functions:
 $FileName = MyFileName;
 sendHeader($FileName);
 xlsBOF();
 //xlsWriteLabel($Row, $Col, $Value );
 xlsWriteLabel(0, 0, Name);
 xlsWriteLabel(0, 1, Age);
 $xlsRow = 1;
 arsort($theArrayIWantToSend);
 foreach ($theArrayIWantToSend as $key = $value)
 {
   //xlsWriteLabel($Row, $Col, $Value );
   xlsWriteLabel($xlsRow, 0, trim($key));
   //xlsWriteNumber($Row, $Col, $Value );
   xlsWriteNumber($xlsRow, 1, $value);
   $xlsRow++;
 }
 xlsEOF();
 
 You use xlsWriteLabel to write a string and xlsWriteNumber to write a
 number.
 
 --- In flexcoders@yahoogroups.com, aphexyuri yurivssr@ wrote:
 
  Hi
 
  Help will be greatly appreciated...
 
  I need to make a .xls file available for download with data from a
  datagrid.
 
  I'm using AMFPHP, as the datagrid info can be a lot, but i'm having
  trouble prompting the user for the download.
 
  The data gets to AMFPHP ok, then I build tab delimited string from an
  incomming array, and that is where I'm stuck...getting that string to
  a .xml file prompt for download, without saving the file to the
 server.
 
  Any help please?
 





[flexcoders] Excel download from flex array with AMFPHP

2008-10-08 Thread aphexyuri
Hi

Help will be greatly appreciated...

I need to make a .xls file available for download with data from a
datagrid.

I'm using AMFPHP, as the datagrid info can be a lot, but i'm having
trouble prompting the user for the download.

The data gets to AMFPHP ok, then I build tab delimited string from an
incomming array, and that is where I'm stuck...getting that string to
a .xml file prompt for download, without saving the file to the server.

Any help please?



[flexcoders] Re: screen shot of flex application

2008-08-26 Thread aphexyuri
maybe not exactly what you need, but a great tool in any case:

http://www.jingproject.com/

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

 This is not a Flex related problem but we are here to help each other :)
 
 What do you mean with the picture quality is not good? On screen or
 when printed?
 
 For the printed case it's generally normal as screen shots have screen
 resolution which is ~72 dpi.
 
 For the other case it depends on different things :
 1. Image editing software (better use Photoshop than Paint if you can)
 2. File format: prefer jpg and png over other formats
 3. Better resize your image in the editing software than scaling it in
 the document processing program (Word?)
 
 Hope it helps,
 Haykel
 
 --- In flexcoders@yahoogroups.com, hworke kanpsack@ wrote:
 
  
  
Hi I am trying to get a screen shots of
my flex application for a document. I am
using print screen button to capture the
screen shot but the picture quality is not
coming good. What is the best way to do so.
  
Regards...
 





[flexcoders] REPOST: HELP air runtime app - silent install

2008-08-19 Thread aphexyuri
hey mike (or anyone else)

we already applied for the license, and all that...i'm working on the
flex / flash /air side of things, where someone else is doing the
installer (he's not on this forum), so let me paste his mail to me:

/*
In the course of setting up the AIR silent installer, I ran into a
problem. I believe I have reached a sandbox limitation. While in the
correct folder, the argument goes like this:

screenbird_gui.exe -silent { -eulaAccepted ( -location testy ) }
screenbird_gui.air

Let me explain. This is the command to launch the AIR runtime
installation
(screenbird_gui.exe is the renamed exe, as per their instructions). It is
supposed to install into a directory called testy.sorry, I was
frustrated! And this would also install the air app screenbird_gui.air.
The problem is i get Access is denied when I try to install into testy
folder. The directions say to give an absolute path, but that's a
bunch of
crap. It says it can't find file if I do that.


Any thoughts?
*/

i was maybe thinking that it had something to do with the digital
certificate?



[flexcoders] advice needed: air runtime app - silent install

2008-08-16 Thread aphexyuri
Hey all
Yes, not quite a flex issue, but was wondering if anyone here has some
experience with air runtime and .air deployable silent install.

We're developing an app with app backend in eiffle, and gui in air.
Our current installer needs to install the eiffle part, the air
runtime, and the actual air app.

Any help will be greatly appreciated ;)




[flexcoders] Re: advice needed: air runtime app - silent install

2008-08-16 Thread aphexyuri
hey mike
we already applied for the license, and all that...i'm working on the
flex / flash /air side of things, where someone else is doing the
installer (he's not on this forum), so let me paste his mail to me:

/*
In the course of setting up the AIR silent installer, I ran into a
problem.  I believe I have reached a sandbox limitation.  While in the
correct folder, the argument goes like this:

screenbird_gui.exe -silent { -eulaAccepted ( -location testy ) }
screenbird_gui.air

Let me explain.  This is the command to launch the AIR runtime
installation
(screenbird_gui.exe is the renamed exe, as per their instructions).  It is
supposed to install into a directory called testy.sorry, I was
frustrated!  And this would also install the air app screenbird_gui.air.
The problem is i get Access is denied when I try to install into testy
folder.  The directions say to give an absolute path, but that's a
bunch of
crap.  It says it can't find file if I do that.


Any thoughts?
*/

i was maybe thinking that it had something to do with the digital
certificate?


--- In flexcoders@yahoogroups.com, Mike Chambers [EMAIL PROTECTED] wrote:

 First you need to get a license to redistribute the installer (which  
 shouldn't be an issue):
 

http://www.mikechambers.com/blog/2008/04/07/redistributing-the-adobe-air-runtime-installer/
 
 Once you do that, you will get SDK docs for the distributable player.
 
 After that, you just need to create a native installer to install the  
 components of your app.
 
 Hope that helps...
 
 mike chambers
 
 [EMAIL PROTECTED]
 
 On Aug 16, 2008, at 9:09 AM, aphexyuri wrote:
 
  Hey all
  Yes, not quite a flex issue, but was wondering if anyone here has some
  experience with air runtime and .air deployable silent install.
 
  We're developing an app with app backend in eiffle, and gui in air.
  Our current installer needs to install the eiffle part, the air
  runtime, and the actual air app.
 
  Any help will be greatly appreciated ;)
 





[flexcoders] Re: WindowedApplication custom close / exit

2008-08-08 Thread aphexyuri
Thanks
I actually just figured that out right after I made the post...it
always works like that...thanks anyways!

--- In flexcoders@yahoogroups.com, marcel.panse [EMAIL PROTECTED]
wrote:

 There is a close and closing event on windowedApplication. You could
 probably just catch those and use something like
 event.preventDefault() when you don't want it to close.
 
 This works:
 
 mx:WindowedApplication closing=onClose(event)
 xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Script
 ![CDATA[
 private function onClose(event:Event):void { 
   Alert.show('try to close');
   event.preventDefault();
 }
 ]]
 /mx:Script
 /mx:WindowedApplication
 
 grtz,
 marcel
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  I think you want:
   
  flash.events.Event.EXITING
 
http://livedocs.adobe.com/flex/3/langref/flash/events/Event.html#EXITIN
  G  
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of aphexyuri
  Sent: Thursday, August 07, 2008 2:16 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] WindowedApplication custom close / exit
  
  
  
  Hi
  I need some help preventing window close, on system chrome close
  button click.
  
  Basically, what I would like to do, is check for a condition when the
  user clicks the system chrome close btn. It the condition states its
  ok, I'd like to call app.exit(), and if not, perform other actions.
  
  Any help will be appreciated.
 





[flexcoders] WindowedApplication custom close / exit

2008-08-07 Thread aphexyuri
Hi
I need some help preventing window close, on system chrome close
button click.

Basically, what I would like to do, is check for a condition when the
user clicks the system chrome close btn. It the condition states its
ok, I'd like to call app.exit(), and if not, perform other actions.

Any help will be appreciated.





[flexcoders] Re: Using Flex as a Flash IDE

2008-06-13 Thread aphexyuri
Don't think so Amy, but if your devving in flex, check out fdt, it's
expensive, but GOOD. Check out these links:

http://fdt.powerflasher.com/blog/

http://fdt.powerflasher.com/

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

 --- In flexcoders@yahoogroups.com, aphexyuri yurivssr@ wrote:
 
  With all due respect, even the guys at Adobe should look long and hard
  at FlashDevelop.
  I've been using it to code flash projects for a while, and it's
  amazing how it boosts productivity. Code hinting, class inspection and
  great code completion...enjoy ;)
 
 Is there any documentation on how to use it with Flex?  I couldn't find 
 any.
 
 Thanks;
 
 Amy





[flexcoders] Re: Using Flex as a Flash IDE

2008-06-12 Thread aphexyuri
With all due respect, even the guys at Adobe should look long and hard
at FlashDevelop.
I've been using it to code flash projects for a while, and it's
amazing how it boosts productivity. Code hinting, class inspection and
great code completion...enjoy ;)

--- In flexcoders@yahoogroups.com, Samuel Neff [EMAIL PROTECTED] wrote:

 Try FlashDevelop.  Great open source IDE for both Flash and Flex.
 
 http://www.flashdevelop.org
 
 weird website, it's just a forum, no real website, look in the Releases
 forum for downloads.
 
 Other good commercial products for Flash development are:
 
 http://www.primalscript.com/
 
 http://fdt.powerflasher.com/
 
 I don't know if either supports AS3 though.
 
 HTH,
 
 Sam
 
 -
 We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264)
developer in
 the Washington D.C. Contact [EMAIL PROTECTED]
 
 On Thu, Jun 12, 2008 at 3:37 PM, thirtyfivemph [EMAIL PROTECTED]
 wrote:
 
  So, I've been doing some contract work lately that requires that I use
  Flash instead of Flex (the deliverables have to be FLAs that they can
  hand off the designers to re-skin, publish, etc.). Surprise, surprise,
  I'm finding the Flash IDE to be a little less than ideal.
 
  Does anyone have any recommendations (or any blog posts to point me
  at) that may describe a pretty functional setup where
  building/publishing is done and Flash but editing of AS3 is done in
  Flex? I wish Adobe would just do a clean integration between the two
  (you know, something like a preference in Flash to designate Flex as
  the IDE instead of its built-in IDE) -- it'd certainly sell more
  copies of the two!
 
  Troy.
 
 





[flexcoders] AIR HTML Control index over MenuBar

2008-06-04 Thread aphexyuri
Hi,
I'm in the process of building a browser in AIR. I've got the HTML
loading correctly(i think), with an ApplicationControlBar containing a
MenuBar.
The problem is, it seems like the HTML Control is being rendered over
the MenuBar control. In other words, when the MenuBar menu is
expanded, it should be over the HTML Control, but, it isn't.
I've looked around but can't seem to find a solution for it...please
help...

Or maybe suggest an alternative for MenuBar?

The layout is pretty simple(not right syntax, i know, but just to
demostrate):

App
  ControlBar
MenuBar/
  /ControlBar/
  HTML/
/App

And jing video of EXPANDED MenuBar here:
http://www.theliblab-tutorials.com/jing/html_vs_menubar.swf

Thanks

Yuri
www.screenbird.com



[flexcoders] Re: PHP Mailer with Flex

2008-04-17 Thread aphexyuri
Hi,
Yup...I'd suggest AMFPHP for getting your data from flex to server-side.
I did a tutorial...it might be outdated, been way too busy lately to
update, but have a look. It might help you out:
http://www.theliblab-tutorials.com/2007/10/24/flex-amfphp-bytearray-jpg-encoder-tutorial/

In it, I send a JPG encoded bytearray from flex to PHP (AMFPHP), then
use PHPMailer to send out the JPG.

Yuri

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

 Hello Everyone,
 
 Does anyone here have any good suggestions for a PHP mailer to use with 
 Flex??
 
 Thanks





[flexcoders] Re: AIR: Forcing a file to be opened By OS Default Application

2008-04-16 Thread aphexyuri
Jeff,
We've been looking into it as well. Maybe the following links could
give you some more help:
http://www.mikechambers.com/blog/2008/01/17/commandproxy-net-air-integration-proof-of-concept/

and

http://www.mikechambers.com/blog/2008/01/22/commandproxy-its-cool-but-is-it-a-good-idea/

It's a long shot  a workaround...something adobe really needs to
address soon!

--- In flexcoders@yahoogroups.com, Battershall, Jeff
[EMAIL PROTECTED] wrote:

 Steve,
 
 In the scenario I'm envisioning, I am not thinking that AIR would be
 starting the program itself but the OS would, as it would in response to
 a double click on a file name in Windows Explorer. But if it can't be
 done, it can't be done.
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Cutter (Flex Related)
 Sent: Wednesday, April 16, 2008 10:32 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] AIR: Forcing a file to be opened By OS Default
 Application
 
 
 According to a talk that Ben Forta gave here in Nashville, not long 
 before product launch, the AIR sandbox strictly prohibits access to 
 other programs on a system.
 
 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer
 _ http://blog.cutterscrossing.com
 
 
 
 
 --
 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





[flexcoders] Re: Flex PHP

2008-04-03 Thread aphexyuri
Hey David,
AMFPHP right? If I'm not mistaken, navigateToUrl isn't the best way to
go about it. AMFPHP is Remoting...so maybe use it as such? I'd go at
it this way:

Step 1: Create your RemoteObject. Obviously this can be done in AS as
well:
mx:RemoteObject id=amfphpService showBusyCursor=true
destination=amfphp fault=amfphpFaultHandler(event)
source=tamarispa.resServ
   mx:method name=myAmfMethod
result=myAmfMethodResultHandler(event)/
/mx:RemoteObject

Step 2: Set your endpoint  do imports
//point to gateway
amfphpServ.endpoint = http://www.myServer.com/amfphp/gateway.php;;

//do your imports
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;


Step 3: Make the call
private function callAmfService():void {
  var sendObj:Object = new Object();
  sendObj.name = me;
  sendObj.greeting = hello;
  amfphpServ.getOperation(myAmfMethod).send(sendObj);
}

Step 4: Handle the result / fault

You can basically send any info (like the sendObj in above example),
and it's not goint through as URL vars.

If you want more security, you can serialize / deserialize your
objects before you send'em.

good luck...

--- In flexcoders@yahoogroups.com, David C. Moody [EMAIL PROTECTED] wrote:

 Hi guys,
 
 Using Flex 3  AMFPHP to do my database operations.
 
 I have a report that you specify all the options in flex, and 
 currently I'm just using a navigateToURL() function to open a web 
 browser.
 
 I do not like this it is very unsecure as the variables are all 
 passed in the URL string.
 
 How can I get around this?  I've thought about creating an 
 intermediate database that houses all the variables and then have a 
 random number generated and only pass that random number so that the 
 PHP script can then pull that record from the database and get the 
 variables it needs.
 
 There's got to be an easier way to do this though?  How can I make 
 this where the user can't change the variables and run a different 
 report.  Is there a way to share variables between Flex  PHP without 
 putting them in the URL?  Cookies maybe?
 
 Thanks for any help!
 -David