[flexcoders] Re: Swapping components but keeping a single ID

2006-12-06 Thread drome.dario
Hi Troy,
I have deal with some similar thing and I finally found that the 
best approach is to have a single AS variable referencing the right 
component at the right moment, that is, change the object pointed by 
the AS variable when your state changes.

In the other hand, I also found that components inside a repeater 
that are defined with a single ID, become to an array of components:
If you have mx:Button id=btn/ inside a repeater, at the end, you 
will get that btn is an array of Buttons.
I do not know how to get that programatically or without using a 
repeater however it would be cool.

Regards
--- In flexcoders@yahoogroups.com, Troy Rollins [EMAIL PROTECTED] 
wrote:

 I notice that Flex won't allow me to identify multiple components 
with
 the same ID, even if those components are in different view 
states. I
 had hoped to reference a single ID no matter which component was 
there
 (all the components implement a single interface.)
 
 So, how can I maintain a single component reference for my AS to 
work
 with, no matter which of these components are on stage? Is it 
possible
 in MXML, or do I need to come up with an AS-only solution?
 -- 
 Troy
 RPSystems, Ltd.
 www.rpsystems.net





[flexcoders] Re: Sand Box Security Error

2006-12-04 Thread drome.dario
Kumar,
This is a security violation of a basic Flex rule: you can not 
access to url coming from other domains than those where the swf 
comes from
That is, your swf comes from localhost and you are trying to access 
to rss.news.yahoo.com... this is not allowed by default.

You would have to put your swf or a cross-domain file 
under rss.news.yahoo.com. Most of the time you can not perform none 
of above things and, in that case, you will need a proxy on your 
own backend server that access directly to rss.news.yahoo.com.

I think that FDS 2.0 has such kind of http proxy.

Hope this helps
Regards


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

 Hi All,
 
  
 
 I get following error when I try to access news rss from the dotnet
 application in which I have embed the flex SWF file.
 
  
 
 *** Security Sandbox Violation ***
 
 Connection to http://rss.news.yahoo.com/rss/topstories halted - not
 permitted from http://localhost:1008/mxml/signlet_04432006051233.swf
 
  
 
  
 
 Can some one suggest a quick solution on this.
 
  
 
 Thanks,
 
 Kumar





[flexcoders] Re: uploading an object

2006-12-04 Thread drome.dario
Once you have the serialized data, it is easy to write a multipart 
chunk for that data... Is it what you are looking for?


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

 The same author wrote a jpg encoder.
 
 I was just hoping to leverage the existing middleware that accepts 
a 
 multipart form upload to accept this binary data in the same manner.
 
 Thanks for your advice!
 
 
 
 
 Mike Weiland wrote:
 
  Daryn,
 
  I see what you really want to do is more akin to this:
 
  http://www.kaourantin.net/2005/10/png-encoder-in-as3.html 
  http://www.kaourantin.net/2005/10/png-encoder-in-as3.html
 
  I've used this for something similar, I believe someone has 
written a 
  JPG encoder, but all you need to do is grab the bitmap data of 
the web 
  cam and upload the binary to the middleware that actually 
converts the 
  binary to an actual file.
 
  Sorry, I thought you were trying to save a Flash object like an 
array 
  of arrays or something.
 
  Good luck,
 
  Mike Weiland
 
 
 
  On 12/1/06 12:01 PM, Daryn Nakhuda [EMAIL PROTECTED] wrote:
 
 
 
 
 
  Thanks Mike!
 
  I was trying to avoid using remoting, since I'm not using it 
anywhere
  else in my application (yet).
 
  Basically, I have a file upload to upload your picture, and I
  wanted to
  have a webcam snapshot option, that posted to the same 
existing
  backend
  piece. Doesn't sound like that is currently easy/possible.
 
  I'll look at the FMS solution though, as I am already using 
that
  elsewhere.
 
  Daryn
 
  Mike Weiland wrote:
  
   Daryn,
  
   It's possible, but probably not the way you are going about 
doing
  it.
   I've taken 2 different paths to achieve this in the past, 
the first
   was on www.CertificateCreator.com when a user saves a 
certificate
  the
   object that describes the certificate is sent to ColdFusion 
and I
   convert the object to WDDX and store that in the database. 
Then
  when a
   certificate is opened it is retrieved from the database 
converted
  from
   WDDX back to a ColdFusion object that Remoting converts 
back to a
   Flash object. I've done this similar thing with .NET and PHP
  remoting,
   the trick is to find what format your middleware can store 
in your
   database.
  
   The second approach I've used was to use Flash Media Server 
to
  store a
   remote shared object of the object. My app would make the 
remote
   connection get the object and start up. This approach 
worked great
   because there weren't a lot of objects that needed to be 
saved and
   retrieve and the application doesn't have many concurrent 
hits that
   would limit our license, plus after the retrieveal of the 
object the
   remote connection is closed.
  
   I believe FDS has the same remote object capabilites as FMS 
has
  so you
   might already have that end.
  
   Good luck,
  
   Mike Weiland
  
   Original Message ---
   I have data in my flex app that I want to send to my server 
as if it
   were a upload from a filereference (aka, as a multipart 
form).
  
   Is there a easy way to do that?
  
   Basically, I already have a backend servlet that accepts 
file uploads
   from my flex app, and from an html browse form, and i'd 
like to use
   that same backend with arbitrary serialized objects in my 
swf.
  
   Thanks,
  
   Daryn
  
  
 
 
 
 
 





[flexcoders] Re: FDS on the desktop?

2006-12-04 Thread drome.dario
Lach,
There are a lot of entries in the web talking about embeding swf into 
desktop applications, this one is the last I have seen

http://www.richapps.de/articles/externalinterface_part1/

Most of them work in Win but, if you try to do it in Mac, things are 
harder.

Regards
--- In flexcoders@yahoogroups.com, Lachlan Cotter 
[EMAIL PROTECTED] wrote:

 Hi Benjamin,
 
 Would you mind explaining how you go about using an embedded SWF in 
a  
 desktop application. Is there an API for doing that kind of thing?
 
 Cheers,
 Lach
 
 On 04/12/2006, at 6:23 PM, benjidudu wrote:
 
  Hi,
 
  I am doing a desktop application with an embedded swf. I'd like 
using
  FDS but all I read is about mxml or swf files in the server along 
FDS.
  Is it possible using FDS with swf files not on the FDS server? If 
yes,
  how do you do that?
 
  Thanks,
 
  Benjamin.





[flexcoders] Re: How can open a Stream?

2006-07-19 Thread drome.dario
The error that you are experiencing is because of the default value 
for the resultFormat property of HTTPService: it expect an xml and, 
as far as I see, you are sending a PDF from your server.
As long as HTTPService doesn't support binary results, you should 
think on start using URLLoader or URLStream for your purposes.

Regards.
--- In flexcoders@yahoogroups.com, Silpa sirivella [EMAIL PROTECTED] 
wrote:

 Atleast tell me whether it is possible With flex?
 
 thanks
 -silpa
 --- In flexcoders@yahoogroups.com, Silpa sirivella silpa_sus@ 
 wrote:
 
  Hi all,
   
  I have a requirement to open Steam coming from J2EE layer. More 
  clearly, I've MXML file where i'm requesting a servlet using 
  HTTPService. Here is the code
  
  mx:HTTPService id=exportRequest useProxy=false 
  url=/inventory/search.do showBusyCursor=true
  mx:request
  ActionExport/Action
  exportModepdf/exportMode
  /mx:request
  /mx:HTTPService
  
  And here is my struts application
  
  ByteArrayOutputStream baos =new ByteArrayOutputStream();
  
  if(exportMode.trim().equalsIgnoreCase(pdf)) {
  response.setContentType (application/pdf);
  response.setHeader (Content-Disposition, attachment; 
  filename=\SearchResults.pdf\);
  try{
  JasperExportManager.exportReportToPdfStream(jasperPrint, baos);
  }catch(JRException jre) {}
  
  response.setContentLength(baos.size());
  ServletOutputStream outStream = response.getOutputStream();
  baos.writeTo(outStream);
  baos.close();
  outStream.flush();
  it works fine when i made a call from HTML. I've to get a popup 
  contains Save Open and Cancel options.
  I appreciate any help on this.
  
  -silpa
 








 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: Err - seems simple but.... convert from a String to a ByteArray?

2006-07-05 Thread drome.dario
var str:String = Hi David Golds;
var bin:ByteArray = new ByteArray();
bin.writeUTFBytes( str );

Hope it helps
Regards.

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

 How can I convert from a String to a ByteArray?
 
 ByteArray to String was easy courtesy of ByteArray.toString but I 
 can't see a way to do the reverse.
 
 Thanks







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: ExternalInterface + JavaScript : import

2006-06-26 Thread drome.dario
Rohan,
I think that it is not possible to do what you are trying.
It is like to attempt to run a C64 BASIC program using MicroSoft 
VisualBasic without any changes: both are BASIC dialects but they 
are quite diferent.
Let's know if we are understanding you issue.
Regards.

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

 
 Hi
 
 I am trying to invoke javascript functions(stored in a .JS file) 
from my
 MXML document. I am using flash.external.ExternalInterface to do the
 same.
 
 But am unable to import the JS file. Could someone please tell how 
to
 import an external JS file into MXML. Pls note : I am not using an 
HTML
 wrapper in this case. There is a pure .MXML file and a .JS file to 
work
 with.
 
 Thanks
 Rohan








 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: JavaScript MXML component

2006-06-16 Thread drome.dario
Abdul,
Your component works fine (as expected) in Safari and FireFox for 
MacOSX.
In my component, I use ExternalInterface.call( eval, jscode ) to 
inject the javascript code into the wrapper and it has problems when 
in the jsocde variable there are \n, \r and so on (i have had to 
replace them)
However, your component does not have these problems and I have found 
that navigateToURL( javascript:eval('var a;\n\rvar b;') ) behave 
different than ExernalInterface.call( eval, 'var a;\n\rvar b; );
Weird, isn't. Should the behave identically?

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

 
http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_compone
n.php
 
 You can use this component to write JavaScript code within MXML 
document,
 when application is initialized all JavaScript code would be 
exported to
 container HTML document's context.
 
 I just wanted to do, infact had filed an ECR so that compiler team 
can do
 it. But it was easy to do with ActionScript. I have only tested on
 Firefox-windows and it works.
 
 Let me know, if you like it :)
 
 -abdul








 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: ExternalInterface | How to get called from flash inxml flavor?

2006-06-16 Thread drome.dario
Hi people,

Finally I've got the answer to my question:
It seems that there is not a feasible way to achieve that Flash 
Player (Netscape Plug-in) calls into its wrapper using the XML 
pattern that uses its brother (ActiveX Flash Player). Thus, the 
solution is to interpret the chunk of javascript code in the best way 
that is suitable for your (my) needs.

Bellow, for your convenience, there is the answer I got from one of 
the player architecs.

Thanks a lot to Matt, Gary and all the people that replied to this 
topic.

---
For the Netscape plug-in, I think the easiest thing for him to do is
just to parse the JS coming from the Player. You don't need a full
_JavaScript interpreter to do it. The _JavaScript code generated 
always
follows the same basic pattern. A parser to transform it into XML or
any other data structures would probably only be a few hundred lines.
---

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

 Hi guys,
 I have seen that ActiveX version of Flash Player issues an event 
 (FlashCall) that describes using xml the function call that the 
 programmer has called with ExternalInterface.call method.
 That xml has the form : invoke 
 name=thenameofthefunctionarguments.../arguments/invoke
 However, regarding the NPPlugin version, when you make 
 a ExternalInterface.call flash always ask to its container 
 to evaluate a chunk of javascript code.
 Also, both flash player versions (ActiveX and NPPlugin) provide 
 the CallFunction method that allows you to pass, in a single 
 parameter, an xml (in the same form as the one from FlashCall 
 event) describing the actionscript function (and its arguments) to 
be 
 called.
  
 I would need to use the xml flavor in both directions (flash to 
 container and container to flash) independently of the version of 
 Plash Player being used (ActiveX or NPPlugin). The reason: I do not 
 have any problem parsing and consuming xml and, however, I do not 
 want to write a javascript interpreter at all.
  
 Does anyone know if there is any possibility to instruct flash 
 npplugin, in any way, to describe the function calls using xml 
 instead of javascript?
  
 Any suggestion will be welcome.
  
 Best regards.








 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: running Flex 2 Beta 3 UIs

2006-06-16 Thread drome.dario
Have you try what I said on message #39669?
In our facilities, every computer has the same problem and we solve 
it using the procedure I talked about.

Regards
--- In flexcoders@yahoogroups.com, Tarun Telang [EMAIL PROTECTED] 
wrote:

 Hi, 
 
 I have executed both the installers for Flash 9.0 Beta 3 Player from
 the http://labs.adobe.com web site. Still I am unable to view Flex 
UIs.
 
 I don't want to install Flex Builder as I only want to use the 
machine
 for executing Flex sample applications.
 
 Regards,
 Tarun
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Make sure you install the correct Player for the Browser you are 
using.
  The AX on is for IE, the other is the plugin for Firefox, etc.
  
   
  
  Then in flexBuilder, menu, Window,Preferences,General,WebBrowser, 
check
  that the browser checked is the one you installed the v9Player in.
  
   
  
  tracye 
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
  Behalf Of Tarun Telang
  Sent: Thursday, June 15, 2006 2:34 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] running Flex 2 Beta 3 UIs
  
   
  
  Hi, 
  
  I have installed the Flash 9.0 Plugin on my browser
  (IE version 6.0.2800). The installation completes within few 
seconds. 
  
  I still am unable to see the Flex UIs (Flex 2 Beta 3).
  Does it requires any special browser settings..
  
  Regards,
  Tarun
 







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: ExternalInterface Flex 2 FireFox issue..... is not a function

2006-06-16 Thread drome.dario
Has your application's name any special characters like , ', \ and 
so on?

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

 --- In flexcoders@yahoogroups.com, moyosaned maikelsibbald@ 
wrote:
 
  It's working perfectly in IE! but Firefox is giving a javascript-
error.
  
  in my html-template:
  
  
  function setDirectory(dir) {
  var flash = getMovie(${application});
  flash.setDirectory(dir);
  }
  
  function getMovie(movieName) {
  if ( navigator.appName.indexOf (Microsoft) != -1 ) {
  return window[movieName];
  }
  else {
  return  document[movieName];
  }
  }   
  
  
  
  /// AND MY SWF 
  AC_FL_RunContent(
  src, ${swf},
  width, ${width},
  height, ${height},
  align, middle,
  id, ${application},
  quality, high,
  bgcolor, ${bgcolor},
  name, ${application},
  flashvars,'historyUrl=history.htm?lconid=' + lc_id +',
  allowScriptAccess,always,
  type, application/x-shockwave-flash,
  pluginspage, http://www.macromedia.com/go/getflashplayer;);
 
 
 
 If I use the static+embed code it is working. When I remove the
 name, it's giving the same result. Some how the name is not written 
in
 the dynamic embed.
 this one...
  name, ${application},







 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: running Flex 2 Beta 3 UIs

2006-06-15 Thread drome.dario
I experienced what seems to be the same problem: I was not able to 
see my flexapp in neither MSIE nor SAFlashPlayer.exe and, however, I 
was able to see it using FireFox.
Try the following (it worked for my case)

1. Verify that the problem is related to the ActiveX version of 
flashplayer: try SAFlashPlayer and then FireFox (chaveat, If you 
installed FlexBuilder before FireFox, it is possible that FireFox 
doesn't work also)
2. If you can see SWF with FireFox, then go 
to system32/macromed/Flash and try to regsvr32 the file 
named FlDbg9a.ocx. You probably will see an error message, if so, 
you may have not enough privileges on some of your registry keys.
3. Use regmon.exe to monitor what is hapening in your registry while 
you run again the flash installer Install Flash Player 9 AX.exe
4. Analyze the regmon's log fooking for ACCESS DENIED and write 
those keys.
5. Using regedt32.exe, grant privileges enough to those registry keys 
to the user you are logged in.
6. Run again the flash installer (monitoring its actions with regmon)
7. Try MSIE to see if it works now.
8. If MSIE is not working yet, go to step 4.

It repeated the process up to 4 times before it works.

Good luck 





 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] FlashPlayer 9 B3 Installer DO NOT WORK on MacIntel

2006-06-15 Thread drome.dario
Hi guys,
I have downloaded the Player9_B3_OSX_05-08.dmg from Adobe site and I 
have tried to install flash in my MiniMac (MacOSX 10.4.6 CPU Intel Core 
Duo) and the installer crash.
The same installer works fine in a MacOSX 10.4.6 PPC-G5.

Any known issues?





 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: FlashPlayer 9 B3 Installer DO NOT WORK on MacIntel

2006-06-15 Thread drome.dario
Thanks Owen,
For me is enough at this time: I can live without that until the 
general release.

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

 Hi..
 
 To the best of my knowledge it was never meant to? For the Beta,
 including the private beta, OS X support was always for PPC. My
 understanding is that there is an internal Alpha MacTel player 
inside
 Adobe, but it will not be released until after Flex is released
 publically, along with FP9 as a general release. 
 
 Any Adobe guys, please correct me if i'm wrong or out of line :) 
 
 
 We have got around this issue (we develop on Mac's) by installing
 Parallels (http://www.parallels.com/) and running a windows VM that
 connects to our Mac web servers. We build all our swfs on the mac
 using the command line compiler and browse to them locally in IE on
 the Windws VM. Its actually a good set up because the PPC Mac Player
 is slw in comparision to the new Windows player. 
 
 My 2 cents. 
 
 Cheers
 
 Owen
 
 --- In flexcoders@yahoogroups.com, drome.dario drome.dario@ 
wrote:
 
  Hi guys,
  I have downloaded the Player9_B3_OSX_05-08.dmg from Adobe site 
and I 
  have tried to install flash in my MiniMac (MacOSX 10.4.6 CPU 
Intel Core 
  Duo) and the installer crash.
  The same installer works fine in a MacOSX 10.4.6 PPC-G5.
  
  Any known issues?
 








 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: Does anyone know where to find flex icons

2006-06-15 Thread drome.dario
Probably, they are embeded into the framework's swc Have you look 
into?

--- In flexcoders@yahoogroups.com, Kelly @ Dekayd Media Inc. 
[EMAIL PROTECTED] wrote:

 Does anyone know where to find the icons used in Flex components?
 
 More specifically does anyone know where to find the icons used in
 TreeNodes?
 
 I found some folder icons in the flex extras folder but they are 
not the
 same ones and there is no icon for open folder.
 
 
 
 Thanks
 
 --Kelly








 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: JavaScript MXML component

2006-06-15 Thread drome.dario
Abdul,
Great!... Today, during my work day, I have finished a component to 
do the same: to inject javascript code into the flash wrapper. My 
final goal is to centralize all javascript, html and the flex app 
itself into a single SWF and thus, minimize the initial html wrapper 
to a simple boot strap mechanism.
Your post has put in front of my eyes the idea for embed the html 
code...Thank you.

Tomorrow I will test your component under MSIE, Safari and FireFox on 
Mac... I will post back the results.

P.S.- What is amazing for me is to see what human being is able to 
achieve: giving a problem, to think in the same solution regarless 
the distance, culture, believings and so on.

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

 
http://www.abdulqabiz.com/blog/archives/macromedia_flex/a_mxml_compone
n.php
 
 You can use this component to write JavaScript code within MXML 
document,
 when application is initialized all JavaScript code would be 
exported to
 container HTML document's context.
 
 I just wanted to do, infact had filed an ECR so that compiler team 
can do
 it. But it was easy to do with ActionScript. I have only tested on
 Firefox-windows and it works.
 
 Let me know, if you like it :)
 
 -abdul







 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: One last try: Javascript security

2006-06-14 Thread drome.dario
FineLine,
I have curiosity about your situation: you say it works like a champ 
when the HTML and the SWF are in the original compile directory. For 
me it DOESN'T work independently of the directory where the files 
reside so, What do you exactly mean with original compile directory? 
do you refer to that one that FlexBuilder suggest as the default 
location for the project?

Thanks







 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: One last try: Javascript security

2006-06-14 Thread drome.dario
Hi guys, I catch it:
Visit this link bellow and add you html filand swf files as always 
trusted and see if works from the local disk. FoMy application has 
started to work after this... I'm happy... very happy.

http://www.macromedia.com/support/documentation/en/flashplayer/help/se
ttings_manager04.html

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

 FineLine,
 I have curiosity about your situation: you say it works like a 
champ 
 when the HTML and the SWF are in the original compile directory. 
For 
 me it DOESN'T work independently of the directory where the files 
 reside so, What do you exactly mean with original compile 
directory? 
 do you refer to that one that FlexBuilder suggest as the default 
 location for the project?
 
 Thanks








 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: One last try: Javascript security

2006-06-14 Thread drome.dario
Now... I'm wondering on how an installer program could config flash 
player in order to trust on a given set of files.

Any ideas?

Regards





 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: ExternalInterface | How to get called from flash inxml flavor?

2006-06-13 Thread drome.dario
Abdul,
The link you talk about is a well-known for me, however it only 
talks about javascript interactions in the flash - browser 
direction. What I am looking for is the other way of communicate 
flash with its wrapper (using xml)... It may be impossible but given 
that they (adobe) are using that way to communicate flash with MSIE I 
hope that there is a posibility to do the same with FireFox or any 
other wrapper built on the NPRuntime approach.

Anyway, Abdul, thanks a lot for your suggestion, keep me posted just 
in case you find something else interesting.

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

 Check out this link, it talks about how ExternalInterface works in 
browser.
 That is, what javascript is embedeed by Flash Player in browser to 
do
 serialization/deserilization in javascript.
 
 http://codinginparadise.org/weblog/2006/02/how-to-speed-up-flash-
8s.html
 
 On 6/10/06, Luís Gustavo Sanabio [EMAIL PROTECTED] wrote:
 
Hi... I'm sorry, but what is NPPlugin?
 
  2006/6/9, drome.dario [EMAIL PROTECTED]:
  
   Came on guys!... just a suggestion?... even simple?
 
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 
   
 








 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: How to drag a file into Flash?

2006-06-13 Thread drome.dario
Hi Alex,
As one of the Rebus developers, I think that you are one (the only 
one?) that may help me: please, take a look on msg# 
38354 ExternalInterface How to get called from flash in xml flavor.

As you can guess after reading my post, I'm involved in writting a 
SWF wrapper, however, Do not worry... it is not my intention to 
become a Rebus competitor at all: Rebus seems to be an amazing 
product and I only need a very simple and custom wrapper for a custom 
application.

Until the moment, nobody has been able to help me -perhaps what I try 
to achieve is not possible- but I would like to listen that news from 
an expert like you.

Thanks in advance.
P.S.- My apologizes for hijacking this thread but I'm deseperately 
seeking any answer. 
  
--- In flexcoders@yahoogroups.com, seesharpch [EMAIL PROTECTED] 
wrote:

 Hi,
 
 just struggled over this post. As one of the Rebus developers I just
 like to refine some statements. Rebus is not just a Zinc - .Net
 rebuild. It is newly developed from scratch with the aim to provide 
a
 fast, full-featured and stable swf wrapper. Rebus needs the Flash 9
 Beta player. It is not directly an Eclipse plugin yet but as it can 
be
 invoked from the commandline, it can be used as an Eclipse-External
 Tool. Rebus is not just a hey let's see what you guys think of this
 concept for .NET etc. Rebus will be developed further in anyway.
 Hence it is really worth to test Rebus and provide feedback.
 
 Regards
 
 Alex
 
 
 --- In flexcoders@yahoogroups.com, John C. Bland II
 johncblandii@ wrote:
 
  I'm not sure if you saw my last post but you can download here:
  http://www.multidmedia.com/devlabs/.
  
  On 6/12/06, Harald Dehn harald.dehn@ wrote:
  
  Hi,
  
  
  
   Where could I download rebus?
  
  
  
   Harry
  
  
--
  
   *Von:* flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] *Im
   Auftrag von *Jeremy Lu
   *Gesendet:* Montag, 12. Juni 2006 05:43
   *An:* flexcoders@yahoogroups.com
   *Betreff:* Re: [flexcoders] How to drag a file into Flash?
  
  
  
  
   I downloaded Rebus the other day and read the manual, it's 
a .NET
 2.0rebuild of Zinc and best of all, it's a plugin to Eclipse so the
 workflow is
   seamless.
  
   I assume it support flash player 8.5( 9 maybe ?) and can wrap
 flex2 swf.
  
  
  
  
On 6/12/06, *John Grden* neoriley@ wrote:
  
   will zinc work with a Flex2 swf??   I've heard about Rebus, but 
after
   reading, Rebus is just a hey let's see what you guys think of
 this concept
   for .NET etc
  
  
  
   On 6/11/06, *Abdul Qabiz* abdul.qabiz@ wrote:
  
   Hi, Rick
  
   No Flash/Flex Applications (neither in browser nor as 
standalone) can
   handle such Drag  Drop operations.
  
   But it would really be cool feature and I understand, it won't
 take much
   effort to do that ?
  
   With Web 2.0/RIA stuff, such feature would really be important.
  
   For standalone applications, you can wrap your flex app inside
   C++/Delphi/VB application or use any third party SWF wrappers
 (SWFStudio,
   Zinc etc).. That would allow you do more low level stuff.
  
   -abdul
  
  
  
   On 6/11/06, *Rick Schmitty*  flexcode@ wrote:
  
   File upload/download is a great leap forward and much 
appreciated!
   But there has to be a way to allow Flash to accept a drag/drop 
from
   the OS. Just like if you were in Photoshop and you dragged an 
image
   to the program.
  
   When a swf is played through the browser, is Drag/Drop 
allowance a
   browser issue? For example if you goto adobe.com and drag an 
image
   around the homepage from your desktop, the browser will show it 
valid
   until it gets to a swf and the you get the no sign
  
   If you used the Flash Player stand alone, could a feature 
request like
   this be possible?
  
   Perhaps Mac's just spoiled me with dragndropn everywhere and
 anywhere :)
  
  
  
  
  
 --
   John Grden - Blitz
  
  
  

  
  
  
  
  -- 
  John C. Bland II
  I do what I can do when I can do it. - Chris Tucker, Money Talks
  
  http://www.gotoandstop.org - Home of FMUG.az
 











 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: One last try: Javascript security

2006-06-13 Thread drome.dario
Hi,

I have been banging my head against the wall for hours with the same 
problem and, finally, i found a post that stated that 
ExternalInterface.call and addCallBack do not work if either the html 
wrapper or the html wrapper are in a local disk.

It seems to be due to the fact that using javascript you could reach 
an internet location from the SWF application and that is 
a violation.

I totally agree with FineLine's plea: why is not there any way to let 
the user to decide what is security for him/her?

Finally, dear FineLine, I decided to hook my application (HTML and 
SWF) on a webserver and, in this way, there is no complaints from 
ExternalInterface.

P.S.- Adbul, if you are able to find any workaround... Let us know 
PLEASE.

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

 Hi Abdul
 
  
 
 Below is the source code for a simple demonstration of this 
problem. The
 commented lines in the btn1_click method were an attempt at an 
alternative
 technique, which also produced Flash security error.
 
  
 
 The external call works fine if the files are kept in the directory 
where I
 originally compiled the Flex application, but when I move the 
compiled SWF
 file and the HTML file to the root directory of my C: volume, I get 
the
 error mentioned in the quoted post below.
 
  
 
  
 
  
 
   MXML application:
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
 width=100% height=100%
 
 
 
 mx:Script
 
 ![CDATA[
 
 import 
flash.external.ExternalInterface;
 
 private function btn1_click
():void {
 
  
 ExternalInterface.call(test, called from the Flash component)
 
 // var u:URLRequest 
= new
 URLRequest (javascript:test('called with navigateToUrl'));
 
 // navigateToURL
(u,'_self')
 
 }
 
 ]]
 
 /mx:Script
 
  
 
 mx:Button id=btn1 label=Button click=btn1_click
() x=20
 y=20/
 
 
 
 /mx:Application
 
  
 
  
 
 ---  HTML container page:
 
  
 
 !-- saved from url=(0014)about:internet --
 
 html lang=en
 
 head
 
 meta http-equiv=Content-Type content=text/html; charset=utf-
8 /
 
 titleExternalTest/title
 
 script src=AC_OETags.js language=javascript/script
 
 style
 
 body { margin: 0px; overflow:hidden }
 
 /style
 
 /head
 
  
 
 body scroll='no'
 
  
 
 script language=JavaScript
 
   function test (message) {alert (Message reported to HTML 
page:  +
 message);}
 
 /script
 
  
 
 object classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
 
 id=ExternalTest width=100% height=100%
 
  
 
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swfl
ash.ca
 b
 
 param name=movie value=ExternalTest.swf /
 
 param name=quality value=high /
 
 param name=bgcolor value=#869ca7 /
 
 param name=allowScriptAccess value=always /
 
 embed src=ExternalTest.swf quality=high 
bgcolor=#869ca7
 
   width=100% height=100% name=ExternalTest
 align=middle
 
   play=true
 
   loop=false
 
   quality=high
 
   allowScriptAccess=always
 
   type=application/x-shockwave-flash
 
   
pluginspage=http://www.macromedia.com/go/getflashplayer;
 
 /embed
 
 /object
 
 /body
 
 /html
 
  
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Abdul Qabiz
 Sent: Saturday, 10 June 2006 11:47 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] One last try: Javascript security
 
  
 
 Hey,
 
 Can you please post a simple but complete code (Flex + Javascript), 
I would
 like to look at it. Sorry, I am being bit lazy doing all that..
 
 -abdul
 
 On 6/10/06, FineLine [EMAIL PROTECTED] wrote:
 
 Hi Matt, I have just tested this -use-network=false option with the 
command
 line compiler, still get the same security error in Flash player 
when I try
 the call out to JavaScript:
 
  
 
 SecurityError: Error #2060: Security sandbox violation: 
ExternalInterface
 caller file://C|\ExternalTest.swf may not access 
file://C:\ExternalTest.htm.
 
 at flash.external::ExternalInterface$/call()
 
 at ExternalTest/::btn1_click()
 
 at ExternalTest/__btn1_click()
 
  
 
 Thanks for the suggestion, I will be interested in seeing your 
sample app if
 possible, that might clear something up for me.
 
  
 
 Cheers, Tim
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:
 mailto:flexcoders@yahoogroups.com  [EMAIL PROTECTED] On 
Behalf
 Of Matt Chotin
 Sent: Thursday, 8 June 2006 3:59 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: 

[flexcoders] Re: Return value from ExternalInterface.call method

2006-06-12 Thread drome.dario
Hi People,
Finally, I found the problem: The HTML page hosting my flexapp lack 
the object tag for MSIE, that is, it only had an embed tag.
A good flash detection/embeding mechanism was the key.

Thanks a lot for those of you that have spend some of your time 
posting your suggestions.


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

 Hi people,
 I can not achieve to get any return value from javascript other 
than 
 null.
 In th HTML container I have a functions like this:
 
 function f(p)
 {
  alert(p);
  return(p);
 }
 
 In my flex app I call the browser function in the following way:
 
 var ret:*;
 ret = ExternalInterface.call( f, Hello );
 Alert.show( ret.toString() );
 
 I get an alert in the browser saying Hello and another Alert from 
 flex saying null.
 
 What's wrong?... I think that I should get two alerts shown, no?







 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: ExternalInterface | How to get called from flash inxml flavor?

2006-06-12 Thread drome.dario
Hi Gustavo,
NPPlugin is the form of flash that runs under FireFox, Safari and 
any other browser except MSIE. In MSIE flash is an ActiveX.


--- In flexcoders@yahoogroups.com, Luís Gustavo Sanabio 
[EMAIL PROTECTED] wrote:

 Hi... I'm sorry, but what is NPPlugin?
 
 2006/6/9, drome.dario [EMAIL PROTECTED]:
 
  Came on guys!... just a suggestion?... even simple?
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 








 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: HTTP Service, XML response and latin characters

2006-06-12 Thread drome.dario
Hi Pablo,
The characters you indicate seem to be the lowercase-tilde spanish 
vowels plus 'ñ' and they also seem to be UTF-8 encoded, that is, if 
your xml has a processing instruction indicating that encoding, those 
chars should appear as áéíóúñ.
Make a double check to your xml and its encoding manifest.

Hope it helps.

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

 How should I set the HTTP Service tag/XML file to avoid the 
replacing of any of this chars [ á, é, í, ó, ú, ñ ] for a [ □ -
 white square] when I'm returning an XML as a result of an HTTP 
request?
  
 Thanks in advance!
 --
 Pablo Gustavo Apanasionek








 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Return value from ExternalInterface.call method

2006-06-09 Thread drome.dario
Hi people,
I can not achieve to get any return value from javascript other than 
null.
In th HTML container I have a functions like this:

function f(p)
{
 alert(p);
 return(p);
}

In my flex app I call the browser function in the following way:

var ret:*;
ret = ExternalInterface.call( f, Hello );
Alert.show( ret.toString() );

I get an alert in the browser saying Hello and another Alert from 
flex saying null.

What's wrong?... I think that I should get two alerts shown, no?








 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: Viewing HTML

2006-06-09 Thread drome.dario
Glad to be useful.

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

 Drome-
   Thank you so much for your help. I was able to modify your regEx 
to
 make it work for my needs. I just needed to add in a piece for 
return
 characters and form feeds as well. 
 
 The regex i used was:
  var pattern:RegExp = /\n|\r|\f/gi
  var htmlstr : String  = htmlTextString.replace(pattern,  );
  var m:String = ExternalInterface.call
(changeDocumentTitle,htmlstr);
 
 And the code for the js method being:
 
 SCRIPT LANGUAGE=JavaScript
 function changeDocumentTitle(a) {
   var generator=window.open('','name','height=400,width=500');
   generator.document.write(a);
   generator.document.close();
 return successful;//this gets assigned to flex 
variable 'm'
 above
 }
 /SCRIPT
 --- In flexcoders@yahoogroups.com, drome.dario drome.dario@ 
wrote:
 
  Just a thing I missed: I think that the effect being experienced 
by 
  Suzy is a bug in the flex/flash serializer used by 
ExternalInterface.
  Let's hope that some adobe engineer read this or may exist 
any 
  effective place where to send a request for bug consideration?
  
  --- In flexcoders@yahoogroups.com, drome.dario drome.dario@ 
  wrote:
  
   Hi,
   It is not a problem with whitespace between tags, as Suzy said, 
it 
  is 
   a problem because of the cr/lf in the html code, let me explain:
   Supose that we have a string variable named param whose value 
   is hello Brian\nHow are you?, then when one uses, i.e., 
   ExternalInterface.call(jsFunc, param) flex tell the browser 
to 
   evaluate a chunk of javascript code similar to this one:
   
   jsFunc(hello Brian
   How are you?);
   
   that is a totally illegal javascript sentence.
   However, if the value of param is hello Brian\\nHow are 
you?, 
   then, the javascript code being evaluated would be:
   
   jsFunc(hello Brian\nHow are you?);
   
   which is good for the javascript interpreter.
   
   Thus, the solution is to replace all newline-chars with \\n 
  string:
   
   var pattern:RegExp = /\n/gi;
   htmlstr = htmlstr.replace(pattern, \\n );
   ExternalInterface.call(ShowHTML, htmlstr);
   
   In that way, the html's original layout is not changed and, 
the 
   most important: IT WORKS!
   
   --- In flexcoders@yahoogroups.com, Brian Riggs bringrags@ 
   wrote:
   
One thing you could try is to assign the String to an (e4x) 
XML 
object, set XML.ignoreWhitespace to true, and then output the 
   result 
using XML.toXMLString().  This should cause whitespace 
between 
  tags 
to be stripped out.

-- Brian

--- In flexcoders@yahoogroups.com, Suzy Lawson 
suzylawson@ 
wrote:

 Christophe's blog in this case doesn't help. His iFrame 
points 
  to 
   a
 static HTML page.
 
 I have a String like this:
 
 //whether it be js or Flex...and my string has spaces b/w 
lines 
   just
 like this
 var htmlString : String = htmlhead
 
 titletest/testbodymy 
 body 
 body/html;
 
 there's no way I know of to assign this to a new window or 
Flex 
object
 and have it display correctly. If I make the String above 
lal 
  one
 line, then it works OK.
 
 --- In flexcoders@yahoogroups.com, tonyx_788 tonyx_788@ 
  wrote:
 
  hi Suzy i think Phil is talking about coenraets blog,
  this is the link   hope it helps
  
  http://www.coenraets.com/apps/iframe/index.htm
  
  **Saludos**
  Tony
  
  --- In flexcoders@yahoogroups.com, Phil Marston 
p.marston@ 
wrote:
  
   Hi Suzy,
   
   I can't remember which blog I saw it on (one of the 
Adobe 
   guys I
  think), 
   but I saw an example using an IFrame to load the HTML 
in.  
   Then 
a
  custom 
   component in the Flex movie sent messages to Javascript 
so 
   the 
IFrame 
   always appeared in the right place and the right size 
over 
   the 
Flex
  page 
   - it worked really nicely and sound like just what you 
  need - 
sorry I 
   can't be more help, but perhaps this'll jog the memory 
of 
someone
  who as 
   a memory!
   
   HTH
   
   Phil
   
   Suzy Lawson wrote:
Hello Group-
  I have an app that receives XML data over the 
socket.
 Specifically,
it is data that is in 2 formats (plain text and HTML).
   
The HTML that gets sent represents the FULL html code 
  (i.e. 
the
top-
level 'html', 'meta', 'head', 'style', 'div', 'body' 
   tags
 etc..).
   
Sometimes the tags have namespaces and even 'class' 
   attributes
assigned to them which relate to styles defined w/i 
the 
style tag.
   
For this reason, I can't just set the XML value to 
the 'htmlText'
attribute of a text field. 
   
I tried using the ExternalInterface API and pass the 
HTML 
   (see

[flexcoders] Re: Flex2 :: \r\n in returned db query :: Tips?

2006-06-09 Thread drome.dario
Have you used a RegExp to locate and replace those character 
secuences by the ones you need?

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

 Hi,
 
 I have had this problem for a long time;
 
 Is there any technique to get rid of the Windows \r\n other than 
doing a
 split().join() on the text before it is inserted into a TextArea for
 example?
 
 This is so anoying. I tried condenseWhiteSpace but that didn't work.
 
 Am I missing something easy?
 
 Peace, Mike
 
 -- 
 What goes up, does come down.







 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] Re: ExternalInterface | How to get called from flash inxml flavor?

2006-06-09 Thread drome.dario
Came on guys!... just a suggestion?... even simple?





 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: How to draw different Flex Controls/Containers at runtime?

2006-06-09 Thread drome.dario
Most of mx controls can be created with AS. The only thing that you 
have to take into account is to add the objects you create to the 
container hierarchy and to set the event listeners accordly with your 
needs

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

 Hi Flexcoders,
 I am migrating JSP Front end into Flex and simply it creates 
different 
 html controls at runtime based on my java bean. Now I know one way 
is 
 to use embedded mxml tags in my JSP but I am wondering if there is 
 something better then this.
 Can an Action Script render my Flex controls/containers at runtime?
 For e.g.:
 If 1st object type = Checkbox use Flex mx:CheckBox
 If 2nd object type= Text  use Flex mx:ComboBox
 … and so on
 This is a high-traffic site with some 30+ objects on one page and 
 using embedded mxml does not sound feasible to me.
 Any help would be greatly appreciated.
 
 Kind regards.
 
 Jawad Anwar
 RIA Developer,








 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: Return value from ExternalInterface.call method

2006-06-09 Thread drome.dario
Mmmm... I will test your suggestion but... the documentation states 
that ExternalInterface.call returns (synchronously) the value 
returned by the javascript function and, moreover, it works in that 
way when FireFox is the browser. I doesn't under MSIEweird.

Anyway, thanks for your suggestion: I'll post back the results.

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

 To communicate back to the Flex application you have to reference 
it 
 by its' id (myMXML) in the HTML page.  Something like this:
 
 function f(p)
 {
  alert(p);
  document.myMXML.SetVariable(ret,p);
 }
 
 I haven't tested this, but that's the idea.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, drome.dario drome.dario@ 
 wrote:
 
  Hi people,
  I can not achieve to get any return value from javascript other 
 than 
  null.
  In th HTML container I have a functions like this:
  
  function f(p)
  {
   alert(p);
   return(p);
  }
  
  In my flex app I call the browser function in the following way:
  
  var ret:*;
  ret = ExternalInterface.call( f, Hello );
  Alert.show( ret.toString() );
  
  I get an alert in the browser saying Hello and another Alert 
 from 
  flex saying null.
  
  What's wrong?... I think that I should get two alerts shown, no?
 








 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: Viewing HTML

2006-06-08 Thread drome.dario
Suzy,
Taking Christophe's example, I think that you can inject your in-
memory-html into the HTMLDocument inside the iframe.

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

 Yeah, that was Christophe's blog I believe. The problem with that is
 the iFrame is loading an HTML page that already exists on a server. 
 
 What I need is a way to display HTML stored in client-side memory 
as a
 String. (wether it be in javascript or FLex).
 
 --- In flexcoders@yahoogroups.com, Phil Marston p.marston@ wrote:
 
  Hi Suzy,
  
  I can't remember which blog I saw it on (one of the Adobe guys I
 think), 
  but I saw an example using an IFrame to load the HTML in.  Then a
 custom 
  component in the Flex movie sent messages to Javascript so the 
IFrame 
  always appeared in the right place and the right size over the 
Flex
 page 
  - it worked really nicely and sound like just what you need - 
sorry I 
  can't be more help, but perhaps this'll jog the memory of someone
 who as 
  a memory!
  
  HTH
  
  Phil
  
  Suzy Lawson wrote:
   Hello Group-
 I have an app that receives XML data over the socket. 
Specifically,
   it is data that is in 2 formats (plain text and HTML).
  
   The HTML that gets sent represents the FULL html code (i.e. the
   top-level 'html', 'meta', 'head', 'style', 'div', 'body' tags 
etc..).
  
   Sometimes the tags have namespaces and even 'class' attributes
   assigned to them which relate to styles defined w/i the style 
tag.
  
   For this reason, I can't just set the XML value to 
the 'htmlText'
   attribute of a text field. 
  
   I tried using the ExternalInterface API and pass the HTML (see 
example
   below) to a javscript method which opens a new window and calls
   'document.write(passedValueFromFlex)', but that does not work 
b/c of
   the extra rows between tags. If I manually remove the white 
spaces
   from each row where the HTML is one long String...it works 
fine. 
  
   Using a parser to handle that would be near impossible to create
   though. Does anyone have any ideas for a solution (to display
 HTML) 
  
   Thanks.
  
  
  
   message
 plainTextThis is the message./plainText
 htmlTextlt;htmlgt;
  
  
  
   lt;headgt;
  
   lt;/headgt;
  
  
  
   lt;body lang=EN-USgt;
  
   This is the lt;bgt;messagelt;/bgt;.
  
   lt;/bodygt;
  
  
  
   lt;/htmlgt;
   /htmlText
   /message
  
  
  
  
  
  
  
   --
   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
  
  
  

  
  
 
  
  -- 
  __ 
  Phil Marston 
  Learning Technologist
  Learning Technology Unit 
  Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
  p.marston@ Tel: +44(0)1224 273329 / +44(0)7798 723660 
  http://www.abdn.ac.uk/diss/ltu/pmarston/
  http://www.abdn.ac.uk/diss/ltu/
  __
  
  The University of Aberdeen Open Day 29th August 2006
  Booking is essential
  www.abdn.ac.uk/openday
  email openday@
  or call 0800 027 1495
 







 Yahoo! Groups Sponsor ~-- 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: Help on Illegal assignment to function

2006-06-08 Thread drome.dario
I Agree with Gordon in the interpretation of that stated in the 
documentation:
If the method is declared at compile time, you can not change it 
even if the class is dynamic or not
However, if you define your method at runt time, then, you can change 
it when you need it. So, given that the method in the example IS NOT 
coming from any implementes interface, I do not see any problem in 
defining it at runtime.

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

 Gordon wrote:
  In AS3, if a class has declared a method at compile time, you 
can't
  reset that method at runtime to be a different function.
 
 In AS3 one should be able to change methods and properties at 
runtime
 of dynamic classes:
 A dynamic class defines an object that can be altered at run time 
by
 adding or changing properties and methods
 
 I am getting the same error (Illegal assignment to function) even
 though the class is dynamic. Why would this be?








 Yahoo! Groups Sponsor ~-- 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: Viewing HTML

2006-06-08 Thread drome.dario
Hi,
It is not a problem with whitespace between tags, as Suzy said, it is 
a problem because of the cr/lf in the html code, let me explain:
Supose that we have a string variable named param whose value 
is hello Brian\nHow are you?, then when one uses, i.e., 
ExternalInterface.call(jsFunc, param) flex tell the browser to 
evaluate a chunk of javascript code similar to this one:

jsFunc(hello Brian
How are you?);

that is a totally illegal javascript sentence.
However, if the value of param is hello Brian\\nHow are you?, 
then, the javascript code being evaluated would be:

jsFunc(hello Brian\nHow are you?);

which is good for the javascript interpreter.

Thus, the solution is to replace all newline-chars with \\n string:

var pattern:RegExp = /\n/gi;
htmlstr = htmlstr.replace(pattern, \\n );
ExternalInterface.call(ShowHTML, htmlstr);

In that way, the html's original layout is not changed and, the 
most important: IT WORKS!

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

 One thing you could try is to assign the String to an (e4x) XML 
 object, set XML.ignoreWhitespace to true, and then output the 
result 
 using XML.toXMLString().  This should cause whitespace between tags 
 to be stripped out.
 
 -- Brian
 
 --- In flexcoders@yahoogroups.com, Suzy Lawson suzylawson@ 
 wrote:
 
  Christophe's blog in this case doesn't help. His iFrame points to 
a
  static HTML page.
  
  I have a String like this:
  
  //whether it be js or Flex...and my string has spaces b/w lines 
just
  like this
  var htmlString : String = htmlhead
  
  titletest/testbodymy 
  body 
  body/html;
  
  there's no way I know of to assign this to a new window or Flex 
 object
  and have it display correctly. If I make the String above lal one
  line, then it works OK.
  
  --- In flexcoders@yahoogroups.com, tonyx_788 tonyx_788@ wrote:
  
   hi Suzy i think Phil is talking about coenraets blog,
   this is the link   hope it helps
   
   http://www.coenraets.com/apps/iframe/index.htm
   
   **Saludos**
   Tony
   
   --- In flexcoders@yahoogroups.com, Phil Marston p.marston@ 
 wrote:
   
Hi Suzy,

I can't remember which blog I saw it on (one of the Adobe 
guys I
   think), 
but I saw an example using an IFrame to load the HTML in.  
Then 
 a
   custom 
component in the Flex movie sent messages to Javascript so 
the 
 IFrame 
always appeared in the right place and the right size over 
the 
 Flex
   page 
- it worked really nicely and sound like just what you need - 
 sorry I 
can't be more help, but perhaps this'll jog the memory of 
 someone
   who as 
a memory!

HTH

Phil

Suzy Lawson wrote:
 Hello Group-
   I have an app that receives XML data over the socket.
  Specifically,
 it is data that is in 2 formats (plain text and HTML).

 The HTML that gets sent represents the FULL html code (i.e. 
 the
 top-level 'html', 'meta', 'head', 'style', 'div', 'body' 
tags
  etc..).

 Sometimes the tags have namespaces and even 'class' 
attributes
 assigned to them which relate to styles defined w/i the 
 style tag.

 For this reason, I can't just set the XML value to 
 the 'htmlText'
 attribute of a text field. 

 I tried using the ExternalInterface API and pass the HTML 
(see
  example
 below) to a javscript method which opens a new window and 
 calls
 'document.write(passedValueFromFlex)', but that does not 
work 
 b/c of
 the extra rows between tags. If I manually remove the white 
 spaces
 from each row where the HTML is one long String...it works 
 fine. 

 Using a parser to handle that would be near impossible to 
 create
 though. Does anyone have any ideas for a solution (to 
display
   HTML) 

 Thanks.



 message
   plainTextThis is the message./plainText
   htmlTextlt;htmlgt;



 lt;headgt;

 lt;/headgt;



 lt;body lang=EN-USgt;

 This is the lt;bgt;messagelt;/bgt;.

 lt;/bodygt;



 lt;/htmlgt;
 /htmlText
 /message







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



  


   

-- 

__ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 
3QY, 
 UK
p.marston@ Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__

The University of Aberdeen Open Day 29th August 2006
Booking is essential

[flexcoders] Re: Flex 2: passing XML string via ExternalInterface produces unterminated string

2006-06-08 Thread drome.dario
See message #38961... I think that you are experiencing the same 
problem described there.

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

 This stuff should work.  Can you try running through the XML and
 removing the \r\n so that you only have \n (which ideally you'd 
reduce
 down as well).
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Nathan W. Phelps
 Sent: Friday, March 24, 2006 12:12 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex 2: passing XML string via 
ExternalInterface
 produces unterminated string
 
 I'm trying to pass an XML string to the hosting page via 
 ExternalInterface.call, however, before I even get into my 
 JavaScript function, I'm encountering an unterminated string 
 constant error.
 
 Here is the flow of events:
 
 An HTTPService requests an XML file on the server, the 
 ResultEvent.result is passed as an argument via a call to 
 flash.external.ExternalInterface.call() method.
 
 When I debug the script in the browser, the breakpoint in my 
 function is never reached due to the unterminated string constant 
 error so I surmise this is occurring in the ExternalInterface 
 produced JavaScript.  I have tried changing the resultFormat on the 
 HTTPService to text, e4x, and object all which produce this same 
 error.  If I change the resultFormat to XML, then I don't get the 
 error and I do hit my breakpoint, but I can't seem to get anything 
 from the object passed to me.  None of the methods or properties of 
 XMLNode seem to produce anything--nor does toString().
 
 
 
 
 
 
 
 --
 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








 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: Viewing HTML

2006-06-08 Thread drome.dario
Just a thing I missed: I think that the effect being experienced by 
Suzy is a bug in the flex/flash serializer used by ExternalInterface.
Let's hope that some adobe engineer read this or may exist any 
effective place where to send a request for bug consideration?

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

 Hi,
 It is not a problem with whitespace between tags, as Suzy said, it 
is 
 a problem because of the cr/lf in the html code, let me explain:
 Supose that we have a string variable named param whose value 
 is hello Brian\nHow are you?, then when one uses, i.e., 
 ExternalInterface.call(jsFunc, param) flex tell the browser to 
 evaluate a chunk of javascript code similar to this one:
 
 jsFunc(hello Brian
 How are you?);
 
 that is a totally illegal javascript sentence.
 However, if the value of param is hello Brian\\nHow are you?, 
 then, the javascript code being evaluated would be:
 
 jsFunc(hello Brian\nHow are you?);
 
 which is good for the javascript interpreter.
 
 Thus, the solution is to replace all newline-chars with \\n 
string:
 
 var pattern:RegExp = /\n/gi;
 htmlstr = htmlstr.replace(pattern, \\n );
 ExternalInterface.call(ShowHTML, htmlstr);
 
 In that way, the html's original layout is not changed and, the 
 most important: IT WORKS!
 
 --- In flexcoders@yahoogroups.com, Brian Riggs bringrags@ 
 wrote:
 
  One thing you could try is to assign the String to an (e4x) XML 
  object, set XML.ignoreWhitespace to true, and then output the 
 result 
  using XML.toXMLString().  This should cause whitespace between 
tags 
  to be stripped out.
  
  -- Brian
  
  --- In flexcoders@yahoogroups.com, Suzy Lawson suzylawson@ 
  wrote:
  
   Christophe's blog in this case doesn't help. His iFrame points 
to 
 a
   static HTML page.
   
   I have a String like this:
   
   //whether it be js or Flex...and my string has spaces b/w lines 
 just
   like this
   var htmlString : String = htmlhead
   
   titletest/testbodymy 
   body 
   body/html;
   
   there's no way I know of to assign this to a new window or Flex 
  object
   and have it display correctly. If I make the String above lal 
one
   line, then it works OK.
   
   --- In flexcoders@yahoogroups.com, tonyx_788 tonyx_788@ 
wrote:
   
hi Suzy i think Phil is talking about coenraets blog,
this is the link   hope it helps

http://www.coenraets.com/apps/iframe/index.htm

**Saludos**
Tony

--- In flexcoders@yahoogroups.com, Phil Marston p.marston@ 
  wrote:

 Hi Suzy,
 
 I can't remember which blog I saw it on (one of the Adobe 
 guys I
think), 
 but I saw an example using an IFrame to load the HTML in.  
 Then 
  a
custom 
 component in the Flex movie sent messages to Javascript so 
 the 
  IFrame 
 always appeared in the right place and the right size over 
 the 
  Flex
page 
 - it worked really nicely and sound like just what you 
need - 
  sorry I 
 can't be more help, but perhaps this'll jog the memory of 
  someone
who as 
 a memory!
 
 HTH
 
 Phil
 
 Suzy Lawson wrote:
  Hello Group-
I have an app that receives XML data over the socket.
   Specifically,
  it is data that is in 2 formats (plain text and HTML).
 
  The HTML that gets sent represents the FULL html code 
(i.e. 
  the
  top-level 'html', 'meta', 'head', 'style', 'div', 'body' 
 tags
   etc..).
 
  Sometimes the tags have namespaces and even 'class' 
 attributes
  assigned to them which relate to styles defined w/i the 
  style tag.
 
  For this reason, I can't just set the XML value to 
  the 'htmlText'
  attribute of a text field. 
 
  I tried using the ExternalInterface API and pass the HTML 
 (see
   example
  below) to a javscript method which opens a new window and 
  calls
  'document.write(passedValueFromFlex)', but that does not 
 work 
  b/c of
  the extra rows between tags. If I manually remove the 
white 
  spaces
  from each row where the HTML is one long String...it 
works 
  fine. 
 
  Using a parser to handle that would be near impossible to 
  create
  though. Does anyone have any ideas for a solution (to 
 display
HTML) 
 
  Thanks.
 
 
 
  message
plainTextThis is the message./plainText
htmlTextlt;htmlgt;
 
 
 
  lt;headgt;
 
  lt;/headgt;
 
 
 
  lt;body lang=EN-USgt;
 
  This is the lt;bgt;messagelt;/bgt;.
 
  lt;/bodygt;
 
 
 
  lt;/htmlgt;
  /htmlText
  /message
 
 
 
 
 
 
 
  --
  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

[flexcoders] Re: How up upload a ByteArray to PHP on the server?

2006-06-07 Thread drome.dario
Hello,
I'm assuming that what you want is to send a binary to your server in 
the same way that if it was sent by a browser (using that browse 
button in some forms) and then, at the server side, consume that file 
using PHP.
In that case, I think that the best way is to implement (using 
ByteArray, of course) a data packet compliant with multipart/form-
data encoding type, then just send it to your php handler in the 
server and that's it.
Writing a multipart/form-data packet is easy and you can find the 
full specification on w3c.org
Given that this spec may be hard to read, I suggest you another way 
that worked for me in the past (though it's more, let's say, empiric)

0. Prepare a sniffer between your browser and your server (there are 
many of them that are very easy to use)
1. Just upload a little jpeg file to your server using a browser and 
the standard way: a form with an input tag of type file, bla, bla.
2. Capture the data from the browser to the server and use it to figure 
out and implement the multipart/form-data packet (is easy, believe me.)






 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM
~- 

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





[flexcoders] Re: ExternalInterface | How to get called from flash inxml flavor?

2006-06-07 Thread drome.dario
knock, knock...nobody out there?Still standing






 Yahoo! Groups Sponsor ~-- 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
~- 

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




[flexcoders] ExternalInterface | How to get called from flash inxml flavor?

2006-06-02 Thread drome.dario



Hi guys,
I have seen that ActiveX version of Flash Player issues an event 
(FlashCall) that describes using xml the function call that the 
programmer has called with ExternalInterface.call method.
That xml has the form : invoke 
name=thenameofthefunctionarguments.../arguments/invoke
However, regarding the NPPlugin version, when you make 
a ExternalInterface.call flash always ask to its container 
to evaluate a chunk of _javascript_ code.
Also, both flash player versions (ActiveX and NPPlugin) provide 
the CallFunction method that allows you to pass, in a single 
parameter, an xml (in the same form as the one from FlashCall 
event) describing the actionscript function (and its arguments) to be 
called.
 
I would need to use the xml flavor in both directions (flash to 
container and container to flash) independently of the version of 
Plash Player being used (ActiveX or NPPlugin). The reason: I do not 
have any problem parsing and consuming xml and, however, I do not 
want to write a _javascript_ interpreter at all.
 
Does anyone know if there is any possibility to instruct flash 
npplugin, in any way, to describe the function calls using xml 
instead of _javascript_?
 
Any suggestion will be welcome.
 
Best regards.









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Flex Hosting

2006-05-30 Thread drome.dario



Hello all,
I'm trying to write a desktop application that, finally, will embed a 
flex 2.0 application.
It is a mandatory request that this desktop appl is cross platform so 
I am writing it using C++.
It is also mandatory that both applications (desktop one and flex 
one) can call each other.
Given that situation, I am using the NPRuntime approach to build the 
flexhost layer in such a way that the flash player feels like if it 
is being hosted by a internet browser like FireFox or safari. The 
results are very exciting, except for the interoperatibility between 
the host and the flash player plug-in:
When I use ExternalInterface to issue a call from the flex appl, my 
host appl receives a string containing _javascript_ code with the hope 
that it is going to be evaluated. At this point, this is frustrating 
for me because I (erroneously) supposed that the host appl will 
receive an xml describing the function call (that's the way that the 
activex version of Flash player does when it is hosted by any other 
windows application different from MSIE)
In any case, I already hope that there is any possibility 
of telling flash player that my host cannot handle _javascript_ code 
and, thus, please, describe the function call using xml.

So, guys, Do you know details enough on the logic inside flash player 
in order to change that behavior?

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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Re: trace function

2006-05-30 Thread drome.dario



Hi,
I run into the same problem and, in my case, it was solved launching 
the debug session from Flex Builder but, first, make sure that 
the url or path to launch setting for your project is an http url 
and that points to your -debug.html file.

Hope this help.
--- In flexcoders@yahoogroups.com, Michael Schmalle 
[EMAIL PROTECTED] wrote:

 The debug Flash Player comes with FlexBuilder.
 
 Simply, you install FB2, create your app and hit the little bug 
icon. Should
 be that simple if it working correctly.
 
 Are you using the eclipse plugin or full FlexBuilder. There is a 
different
 routine to get things going using straight eclipse.
 
 Peace, Mike
 
 On 5/30/06, Nehal Gandhi [EMAIL PROTECTED] wrote:
 
  Hi..
  If we run try to debug from Flex 2.0 beta 3... it will ask for 
debug flash
  player.. i could not found Debug Flash Player 9 on beta download 
page. is it
  out?
 
  -Neh
 
 
  On 5/29/06, Michael Schmalle [EMAIL PROTECTED] wrote:
  
   Hi,
  
   You have to run the debugger from FlexBuilder. Any time you run
   myapp-debug.swf, it looks for the connection it had with 
FlexBuilder.
  
   There are other ays to do debugging but, your problem I think 
comes from
   the connection embeded in the debug swf points to FlexBuilder 
whos session
   is not alive.
  
   Just run and build again from FB2 in debug mode.
  
   Peace, Mike
  
  
   On 5/29/06, rama satoskar  [EMAIL PROTECTED] wrote:
   
Hi all,
I ran the trace command using th eflash debugging tool. It ran
properly in the console window for sometime. However after 
some days
now each time it asks me Loacate the debugger giving me two 
options
'Local machine' and 'IP address' . Even after selecting the 
local
machine as a option, i get an error stating the debugger 
cannot be
found.
   
Kindly help.
   
   
   
   
   
   
   
   
--
Flexcoders Mailing List
FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
   
   
   
SPONSORED LINKS
Web site design developmenthttp://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=C
omputer+software+developmentw3=Software+design+and+developmentw4=Mac
romedia+flexw5=Software+development+best+practicec=5s=166.sig=L-
4QTvxB_quFDtMyhrQaHQ Computer
software developmenthttp://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=Web+site+design+developmentw2
=Computer+software+developmentw3=Software+design+and+developmentw4=M
acromedia+flexw5=Software+development+best+practicec=5s=166.sig=lv
QjSRfQDfWudJSe1lLjHw Software
design and developmenthttp://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=Web+site+design+development
w2=Computer+software+developmentw3=Software+design+and+developmentw4
=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=
1pMBCdo3DsJbuU9AEmO1oQ Macromedia
flexhttp://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+soft
ware+developmentw3=Software+design+and+developmentw4=Macromedia+flex
w5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36
cYzBjw Software
development best practicehttp://groups.yahoo.com/gads?
t=msk=Software+development+best+practicew1=Web+site+design+developme
ntw2=Computer+software+developmentw3=Software+design+and+development
w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.s
ig=f89quyyulIDsnABLD6IXIw
--
YAHOO! GROUPS LINKS
   
   
- Visit your 
group flexcodershttp://groups.yahoo.com/group/flexcoders
on the web.
   
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]flexcoders-
[EMAIL PROTECTED]
   
- Your use of Yahoo! Groups is subject to the Yahoo! 
Terms of
Service http://docs.yahoo.com/info/terms/ .
   
   
--
   
  
  
  
   --
   What goes up, does come down.
  
  
   --
   Flexcoders Mailing List
   FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.com
  
  
  
   SPONSORED LINKS
   Web site design developmenthttp://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=C
omputer+software+developmentw3=Software+design+and+developmentw4=Mac
romedia+flexw5=Software+development+best+practicec=5s=166.sig=L-
4QTvxB_quFDtMyhrQaHQ Computer
   software developmenthttp://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=Web+site+design+developmentw2
=Computer+software+developmentw3=Software+design+and+developmentw4=M
acromedia+flexw5=Software+development+best+practicec=5s=166.sig=lv
QjSRfQDfWudJSe1lLjHw Software
   design and developmenthttp://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=Web+site+design+development
w2=Computer+software+developmentw3=Software+design+and+developmentw4