RE: [flexcoders] Re: downlaoding a file in flex.

2014-11-06 Thread Jim Hayes j...@primalpictures.com [flexcoders]
this line is at least one of your problems :

var url:String=documents/{docs.selectedItem.documentName};

try something like :

var url:String=documents/ + docs.selectedItem.documentName;

That should get you closer at least.

From: flexcoders@yahoogroups.com [flexcoders@yahoogroups.com]
Sent: 06 November 2014 14:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: downlaoding a file in flex.



Sorry guys, am really sorry. this is the error it shows 

HTTP Status 404 - 
/campuscholar/bin-debug/documents/%7Bdocs.selectedItem.documentName%7D





[flexcoders] Re: XML append child in flex 4.6 sdk

2012-04-10 Thread Jim Hayes
I seem to remember 4.6 being a bit lacking in that respect, try adding it 
anyway, compiling and seeing if it works. I think it should.


RE: [flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread Jim Hayes
Are you including any other files in the package?
I seem to remember that certain characters in their file names could
cause this problem.
Maybe an ampersand ??? I'm sorry, it was quite a while ago and I've
forgottten exactly which char(s) caused it for me.
There was a bug open on it at the time as I remember.
Maybe worth having a quick scan through and see if theres anything
unusual in there?
 
An .air file is basically a .zip achive, by the way, if you need to look
inside - take a copy and rename It to.zip
 
These damaged errors seem to occur when the archive cannot be
expanded, so a lack of space in your temp directory can also cause this.
 
You can log the process by placing a file called .airappinstall.log in
your home directory, by the way - the install process will be logged to
that, so it may give you a litte more info as to the cause.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of James
Sent: 12 February 2010 15:48
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Air File Is Damaged Error
 
  
I don't think so. In a project I made a while ago I have an app called
coolvisi1. A few months back I created an air file from this very app
called coolvisi1.air and I've tested it just now and it works perfectly.
The app in question hasn't even been touched since back then. I've just
tried to create another air file from it called coolvisi2.air and I got
the error.

However I've made another app the other day and tried to make an air
file from that and it worked upon installation. This makes me think it's
something to do with the code inside the app but how would I be able to
find out what is causing this? Is there any way of looking at the
contents of an air file to see exactly what is damaged and compare it
to the contents of the one that works or something along those lines?

Totally crazy problem and I've had a few of them this week :-(

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, seanmcmonahan s...@... wrote:

 Have you recently changed sign certificates? Had a similar problem
when our certain expired. Ended up having to migrate the old one to the
new for each update.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , James garymoorcroft_ict@
wrote:
 
  Yes but the fact that other air files I make are working shows that
it's not a flex/air related problem doesn't it? If it is this though how
would I fix it?
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Johannes Nel johannes.nel@
wrote:
  
   one thing which can cause this is if the update.xml file and the
air file
   have different versions.
   
   On Fri, Feb 12, 2010 at 2:54 PM, James garymoorcroft_ict@wrote:
   
   
   
I keep getting the same The application could not be installed
because the
AIR file is damaged. etc... message every time I attempt to
test the
install of an air file I've just made from an application in
flex. I've
tried exporting other applications for release build and they
work fine but
it just seems this particular one won't work so I know it's not
a flex
problem. I've tried starting a whole new project and creating a
new app and
copying and pasting all of the code from the app I need into
this new app
and exporting that for release build from there but again I get
the same
error.
   
Is there any way of finding out what is causing this error and
is there a
fix for this?
   

   
   
   
   
   -- 
   j:pn
   \\no comment
  
 



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Escaping slashes in a file name in AIR

2010-01-19 Thread Jim Hayes
I have no idea if this actually would work, but something like this?

private var origUrl:String

private function saveFile():void
{
var f:File = new File();
origUrl = f.url;
f.addeventlistener(Event.SELECT,onfileselected)
f.browseForSave(blah);
}

private function onfileselected(event:Event)
{
var f:File = event.target as File;
// compare f.url with origUrl to get some sort of relative path in order to 
escape the path delimiters and save it as a file.

}

Sorry, I'm just off to bed or I'd run it up, but would be interested to know if 
it does work at all. Thanks!

putting a / in a filename, no matter how it's rendered by the OS seems pretty 
stupid to me, however.





-Original Message-
From: flexcoders@yahoogroups.com on behalf of seanmcmonahan
Sent: Tue 1/19/2010 7:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Escaping slashes in a file name in AIR
 
So this is a problem that's not really a problem yet it is.  I think it's best 
explained with an example:

A user wants to save a file so we open the save dialog box via 
File.browseForSave().  User then selects a folder my folder and types in a 
name like my/file/with/slashes.txt and hits the save button.

What happens is AIR interprets this as save a file slashes.txt in the folder 
my folder/my/file/with.  To me this seems perfectly reasonable and correct.  
In fact, I would say this IS the correct behavior.  However my users feel that 
what should happen is that a file with the name my/file/with/slashes.txt 
should be saved out in my folder.

I haven't tested on Windows but on Mac OS using Safari and Chrome the user's 
expected behavior is what happens.  In Firefox the slashes are converted to 
underscores.  This leads me to believe that these browsers are all getting the 
name back and escaping the slashes.

In AIR I'm not seeing anyway to get the filename and escape it as the select 
that is fired when the user clicks save returns a File object with a name 
property set to slashes.txt -- that is, whatever is after the last slash.

Does anyone know how to capture the filename and escape slashes or is that just 
not going to happen?



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Selecting xml nodes in a tree

2009-12-30 Thread Jim Hayes
I've used something like this (which is possibly a bit flaky, I admit. I wrote 
this a long time ago and haven't revisited it since).

private function displayTreeNode(node:XML):void
{
expandTreeParents(node);
movieTree.selectedItem = node;
movieTree.expandItem(node,true,false);
var idx:int = movieTree.getItemIndex(node);
movieTree.scrollToIndex(idx);
movieTree.firstVisibleItem = node;  
}

 private function expandTreeParents(node:XML):void {
if (node  !movieTree.isItemOpen(node)) {
movieTree.expandItem(node, true);
expandTreeParents(node.parent());
}
 }

where movieTree is my tree instance.
You need to traverse up the tree from the node you want to display and open 
each item ( expandTreeParents() above ),
then select the node you want to display. This may not be visible even then, 
hence the scroll to index stuff.

Hope that's enough to get you going, in any case.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of thedauntless_ff
Sent: Wed 12/30/2009 1:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Selecting xml nodes in a tree
 
Hi,

My situation:
- 1 Tree component (id=tree)
- 1 XMLListCollection as a dataprovider for the tree (id=treeData)
- 1 String, a url, that has to be found  selected.

My XMLListCollection looks like this:
page title=page1 href=url1
page title=subpage1 href=url2/
page title=subpage2 href=url3
page title=subsubpage1 href=url4
/page
/page
page title=page2 href=url5
page .../
page .../
/page

Etc. All nodes are named 'page' and have a href property.

What I need now, is a way to select the node in the tree for the given url. For 
example, all nodes are collapsed and I want to select the node with href=url4. 
How can I do this?

This is what I tried:

var t:XMLListCollection = this.treeData;
var url:String = myURL;
for(var i:Number = 0; it.length; i++)
{
//this works, nodes now contains a list of xml items with the correct 
url. 
var nodes:XMLList = t[i]..page.(@href==url);
if(nodes.length()  0)
{
//I only want to select the first occurence
tree.selectedItem = nodes[0];
break;
}
}

This, however, gives me a weird error (probably not that helpfull):

TypeError: Error #1010: A term is undefined and has no properties.
at 
mx.controls.listClasses::ListBase/setSelectionDataLoop()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7360]
at 
mx.controls.listClasses::ListBase/commitSelectedItems()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7251]
at 
mx.controls.listClasses::ListBase/commitSelectedItem()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7216]
at mx.controls.listClasses::ListBase/set 
selectedItem()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3474]
at classes::Logic/onBrowserLocationChange()[C:\Users\ser\Documents\Flex 
Builder 3\application\src\classes\Logic.as:346]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:11260]
at 
Classes::Logic/onBrowserLocationChange()[C:\Users\user\Documents\Flex Builder 
3\application\src\classes\Logic.as:73]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:11260]
at 
mx.controls::HTML/htmlLoader_locationChangeHandler()[E:\dev\beta1\frameworks\projects\airframework\src\mx\controls\HTML.as:1438]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.html::HTMLLoader/onLocationChangeTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()



Greets,
Dauntless





__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and 

RE: [flexcoders] Selecting xml nodes in a tree

2009-12-30 Thread Jim Hayes
It strikes me now that if it meets an open node on the way up the tree it will 
stop there (and probably shouldn't)
You might want to allow for that / fix it.
It's something that I put in as a feature request that was subsequently 
depreciated because when the client saw it in practice they decided they didn't 
like it after all!
So it's not all that well tested I'm afraid.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Jeroen Beckers
Sent: Wed 12/30/2009 3:20 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Selecting xml nodes in a tree
 
Hi Jim,

I think that'll be enough to get me going, thanks! :).

And if not, you'll hear from me soon enough :).

Greets,
Dauntless
On Wed, Dec 30, 2009 at 3:36 PM, Jim Hayes j...@primalpictures.com wrote:



 I've used something like this (which is possibly a bit flaky, I admit. I
 wrote this a long time ago and haven't revisited it since).

 private function displayTreeNode(node:XML):void
 {
 expandTreeParents(node);
 movieTree.selectedItem = node;
 movieTree.expandItem(node,true,false);
 var idx:int = movieTree.getItemIndex(node);
 movieTree.scrollToIndex(idx);
 movieTree.firstVisibleItem = node;
 }

 private function expandTreeParents(node:XML):void {
 if (node  !movieTree.isItemOpen(node)) {
 movieTree.expandItem(node, true);
 expandTreeParents(node.parent());
 }
 }

 where movieTree is my tree instance.
 You need to traverse up the tree from the node you want to display and open
 each item ( expandTreeParents() above ),
 then select the node you want to display. This may not be visible even
 then, hence the scroll to index stuff.

 Hope that's enough to get you going, in any case.


 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com on behalf
 of thedauntless_ff
 Sent: Wed 12/30/2009 1:31 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Selecting xml nodes in a tree

 Hi,

 My situation:
 - 1 Tree component (id=tree)
 - 1 XMLListCollection as a dataprovider for the tree (id=treeData)
 - 1 String, a url, that has to be found  selected.

 My XMLListCollection looks like this:
 page title=page1 href=url1
 page title=subpage1 href=url2/
 page title=subpage2 href=url3
 page title=subsubpage1 href=url4
 /page
 /page
 page title=page2 href=url5
 page .../
 page .../
 /page

 Etc. All nodes are named 'page' and have a href property.

 What I need now, is a way to select the node in the tree for the given url.
 For example, all nodes are collapsed and I want to select the node with
 href=url4. How can I do this?

 This is what I tried:

 var t:XMLListCollection = this.treeData;
 var url:String = myURL;
 for(var i:Number = 0; it.length; i++)
 {
 //this works, nodes now contains a list of xml items with the correct url.
 var nodes:XMLList = t[i]..page.(@href==url);
 if(nodes.length()  0)
 {
 //I only want to select the first occurence
 tree.selectedItem = nodes[0];
 break;
 }
 }

 This, however, gives me a weird error (probably not that helpfull):

 TypeError: Error #1010: A term is undefined and has no properties.
 at
 mx.controls.listClasses::ListBase/setSelectionDataLoop()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7360]
 at
 mx.controls.listClasses::ListBase/commitSelectedItems()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7251]
 at
 mx.controls.listClasses::ListBase/commitSelectedItem()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:7216]
 at mx.controls.listClasses::ListBase/set
 selectedItem()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3474]
 at classes::Logic/onBrowserLocationChange()[C:\Users\ser\Documents\Flex
 Builder 3\application\src\classes\Logic.as:346]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
 mx.core::UIComponent/dispatchEvent()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:11260]
 at Classes::Logic/onBrowserLocationChange()[C:\Users\user\Documents\Flex
 Builder 3\application\src\classes\Logic.as:73]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at
 mx.core::UIComponent/dispatchEvent()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:11260]
 at
 mx.controls::HTML/htmlLoader_locationChangeHandler()[E:\dev\beta1\frameworks\projects\airframework\src\mx\controls\HTML.as:1438]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.html::HTMLLoader/onLocationChangeTimer()
 at flash.utils::Timer/_timerDispatch()
 at flash.utils::Timer/tick()

 Greets,
 Dauntless

 __
 This communication is from Primal Pictures Ltd., a company registered in
 England and Wales with registration No. 02622298 and registered

[flexcoders] specifying fontmanager in ant mxmlc task ?

2009-12-21 Thread Jim Hayes
Can anyone tell me the ant equivalent (using the flextasks mxmlc task)
to the compiler option -managers=flash.fonts.AFEFontManager ?
Googling / uneducated trial and error has failed me :-(
I think I can probably load a modified flex.config file instead, but was
rather hoping not to have to.
Many thanks,
Jim.

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Web Service result length limit?

2009-12-21 Thread Jim Hayes
I seem to remember that in Internet Explorer there was a limit to the returned 
data if you used GET (which was the webservice default), as opposed to POST.
It showed very similar symptoms as I recall.
I dropped a comment on this on the adobe livedocs at the time (maybe 3 years or 
so ago, probably it was flex 2).
Sorry I can't be more precise just now, but have a look to see if you can set 
the option and see whether it fixes your problem.
hope that helps, apologies if I'm completely wrong...
Jim.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of boneoh
Sent: Mon 12/21/2009 8:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Web Service result length limit?
 
Hi, all.

I have a web service that returns a String which contains XML data. All works 
fine when the length of the string is rather small.  The problem seems to occur 
when the length of the string exceeds around 8K bytes.

I have used the Data, Import Web Service to generate the code used. In this 
case, the class EquipmentTypeResultEvent.as seems to be receiving the entire 
string in the pubic function set result(value:String); However, the event 
handler is never fired. If the list is short, the event handler does fire.

I hope someone out there has an idea about this.

Thanks is advance.

Pete





__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Creating an AIR install file from scratch..

2009-12-14 Thread Jim Hayes
I seem to recall having to pass the password to another parameter that I hadn't 
known about/expected.
Have a search through my posts going back about 4 months if you can - I think I 
told someone else about it on here.

If not, post what you're currently trying (and error message if any), and I'll 
see if I can spot it for you.
If I can't maybe someone else can.

(singing a build brought a smile to my face (please forgive the typo 
pedantry). Sounds like something I'd like to do when it's not quite going right 
:) )


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Johannes Nel
Sent: Mon 12/14/2009 11:25 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Creating an AIR install file from scratch..
 
old post which i am resurrecting.

I am having issues singing a build with my p12 key file, has anyone got a
working example (not using the flexTasks jar) of this working?

jpn

On Tue, Jul 1, 2008 at 1:22 PM, Jim Hayes j...@primalpictures.com wrote:

That is what ADT is there for, I believe. If you check the
 documentation it will give you enough help to use it on the command line, or
 in ant.

 Without too much bother, I've made ant build files that compile my swf then
 package it with the required additional files into an air package/installer.

 Though I do run it in flexbuilder, theres no reason it could not be run
 standalone.



 -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *essuark
 *Sent:* 01 July 2008 01:40
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Creating an AIR install file from scratch..



 lets just 'say' I wanted to do this, any ideas, pointers, links? I am
 interested in automating an internal process that requires an AIR
 file. I want a program to create the AIR file, NOT Flex Builder...

 thanks
 Ralph


 __

 This communication is from Primal Pictures Ltd., a company registered in
 England and Wales with registration No. 02622298 and registered office: 4th
 Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
 VAT registration No. 648874577.

 This e-mail is confidential and may be privileged. It may be read, copied
 and used only by the intended recipient. If you have received it in error,
 please contact the sender immediately by return e-mail or by telephoning
 +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
 contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs Email
 Security System.
 __
  




-- 
j:pn
\\no comment


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Re: .exe files in flex3

2009-12-11 Thread Jim Hayes
No, you still need the runtime installed, I'm afraid!


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Nick Collins
Sent: Fri 12/11/2009 6:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: .exe files in flex3
 
You could also look at the Air 2.0 beta which allows you to export to a
standalone executable for both Mac and PC. That way you wouldn't have to
worry about the AIR runtime being installed.

On Fri, Dec 11, 2009 at 12:05 PM, David Pariente xxmapach...@yahoo.eswrote:



 For a desktop app go for air, but remember it needs the air virtual machine
 installed, but will work on mac, windows and linux with no changes.

 If u want an exe for windows there are 2 or 3 commercial apps that u can
 find googleing. They are advertised as flash to exe apps, but thet should
 work on flex as well. This option might need you to change or add some code
 in the app.

 For serious desktop solutions i would consider air, because is really
 installed and updatable and many other reasons. Exes only executes, it does
 not install, exes might be good for things like demo CDs.

 --
 David Pariente
 RIA consultor
 --

 El 11/12/2009, a las 16:33, invertedspear invertedsp...@yahoo.com
 escribió:



 You might want to post your question in the directly instead of as a reply.
 You'll get a more detailed answer than what I know. You want to make an Air
 application. All I can suggest is looking into how to compile to an Air app.

 --- In flexcod...@yahoogro flexcoders%40yahoogroups.comups.com, kanna
 kannaec...@... wrote:
 
  Hi i need a help from you all,i want to know how to create a .exe files
 in
  Flex3. For example i have a application up and running which is
  developed in flex3 with blezeds -tomcat. i want to create it as a full
  exe so that it can be installed in other system and without doing any
  other configuration it should work. i believe we need to take care of
  the database part. i have a war with swf files and web-inf parts.


  



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Best way to load XML file

2009-12-10 Thread Jim Hayes
You can try compressing the xml file first and decompressing it when loaded - 
I've used this to good effect and see something like a 10x reduction in the 
filesize -
This blog covers the technique 
http://www.ghostwire.com/blog/archives/as3-saving-xml-as-binary/


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Flex Killer
Sent: 09 December 2009 11:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Best way to load XML file

  
Dear All,

I have a 2 MB XML file locally and if I try to import that file using

mx:XML id=testId source=StudentData.xml/

It is loading all the data at compile time  ( In fact flex builder is throwing 
memory exception)

I loaded the same file using HTTPService and It is taking significant amount of 
time to load the data in production environment . 

Could some body suggest a better way to load this? ( I don't have an option of 
loading this to database and reading it from there)

Regards
Kiran
.



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] dispatchEvent

2009-11-03 Thread Jim Hayes
is it Watcher that you're looking for? 
something along these lines :
(warning - straight off the top of my head so could well be wrong in detail at 
least. best check the docs)

private function addWatcher():void
{

Watcher.watch(yourModelInstance,yourModelProperty,onYourModelPropertyChanged);
}

private function onYourModelPropertyChanged(changeEvent:ChangeEvent)
{
trace(changeEvent.newValue);
//make and despatch your event here
}

I expect there are other ways to it as well..


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Darrin Kay
Sent: Tue 11/3/2009 10:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dispatchEvent
 
ok all i want to do is add a eventListner to a variable, so when it changes
value I kick off a event...  why is it so damm hard?  I am using
cairngorn, and the variable is in the model scope.  But I can not for the
life of me figure how to get the dispatch / addeventlister to work and where
it goes and what packages need to be added


this is the last step I need to get done for a release any help would be
sweet


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] dispatchEvent

2009-11-03 Thread Jim Hayes
ooops, maybe that should be ChangeWatcher.
Apologies, I've just got off a 14 hour overnight flight in cattle class I'm 
afraid!


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Jim Hayes
Sent: Tue 11/3/2009 12:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] dispatchEvent
 
is it Watcher that you're looking for? 
something along these lines :
(warning - straight off the top of my head so could well be wrong in detail at 
least. best check the docs)

private function addWatcher():void
{

Watcher.watch(yourModelInstance,yourModelProperty,onYourModelPropertyChanged);
}

private function onYourModelPropertyChanged(changeEvent:ChangeEvent)
{
trace(changeEvent.newValue);
//make and despatch your event here
}

I expect there are other ways to it as well..


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Darrin Kay
Sent: Tue 11/3/2009 10:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dispatchEvent
 
ok all i want to do is add a eventListner to a variable, so when it changes
value I kick off a event...  why is it so damm hard?  I am using
cairngorn, and the variable is in the model scope.  But I can not for the
life of me figure how to get the dispatch / addeventlister to work and where
it goes and what packages need to be added


this is the last step I need to get done for a release any help would be
sweet



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Ant Task to Build Air Package

2009-09-29 Thread Jim Hayes
I have this :
 
java jar=${ADT.JAR} fork=true failonerror=true
 arg value=-package/
 arg value=-storetype/
 arg value=${STORETYPE}/
 arg value=-keystore/
 arg value=${AIR_CERT_PATH}/
  arg value=-keypass/
  arg value=${KEY_PASSWORD}/
  arg value=-storepass/
  arg value=${KEY_PASSWORD}/
 
So it looks like I'm using -keypass as well as -storepass , with the
same password.
 
No idea why! I built this script over a year ago, so have completely
forgotten the whys and wherefores, but it's still working for me without
asking for any passwords.
Hope that helps.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of seanmcmonahan
Sent: 28 September 2009 20:18
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Ant Task to Build Air Package
 
  
I'm working on an Ant build script to build and package my Air
application. So far it works pretty well except I cannot get the script
to use the password for the signing certificate.

ADT is invoked like this:

java
jar=${ADT.JAR}
fork=true
failonerror=true

arg value=-package/
arg value=-storetype/
arg value=${STORETYPE}/
arg value=-keystore/
arg value=${KEYSTORE}/
arg value=-storepass/
arg value=${STOREPASS}/

arg value=${AIR_NAME}/
arg value=${BUILD_DIR}/temp-app.xml/

!-- Copy the main SWF --
arg value=-C/
arg value=${BUILD_DIR}/
arg value=${APP_ROOT_FILE}/

!-- Copy the assets --
arg value=-C/
arg value=${RELEASE_DIR}/
arg value=assets/
/java

When I run the script from Flex Builder everything works fine until, I
presume, it gets to the storepass. If I run this build from the
Termninal on Mac OS I can manually type in the password when the build
script gets to the storepass and then the script will complete the
build.

So my build script mostly works, anyone have any thoughts on how to get
it to entirely work? Ideally I'd like to be able to run the script from
Flex Builder, but using the Terminal or Command Prompt is fine as well,
I just don't want to have to type the password in for the certificate.

Thanks!


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Custom icon in air installer

2009-09-28 Thread Jim Hayes
That's just the standard application icon that you set in the app descriptor 
file, I believe.
It normally works just fine for me in flex.
Do you have no image there, or an incorrect one?
(something to note, if you make a new application package with an updated icon 
and install it over the top of an old one, then the old icon will be shown on 
that second installer screen - in my experience at least.
Run the new installer a second time to see the new icon as you would on a clean 
install)


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Dave Cates
Sent: Mon 9/28/2009 9:52 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom icon in air installer
 
Almost...it¹s the second screen of the installer (the screen after the one
you linked).

Here¹s a screen grab:
http://www.redemptionmedia.co.uk/images/air_install_grab.jpg

We did this via Flash but I can¹t see how to do it with Flex.

Thanks!

From: Sam Lai samuel@gmail.com
Reply-To: flexcoders@yahoogroups.com
Date: Mon, 28 Sep 2009 16:56:14 +1000
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom icon in air installer

You mean the icon in this dialog?

http://blogs.adobe.com/simplicity/2009/07/revised_air_152_install_experi.htm
l

I don't think you can. The AIR install dialogs are fairly rigid in
terms of customisation, presumably to keep the install experience
uniform across the platform.

2009/9/26 Dave Cates d...@redemptionmedia.co.uk


 Hi all,

 I¹m trying to display my client¹s logo next to the app description in the air
installer window.

 Any ideas of how to do this?! The normal descriptor file doesn¹t seem to have
this field available.

 Many thanks,
 Dave.

 




--
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-1e62
079f6847
Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links






__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] e4x Filtering Success

2009-09-24 Thread Jim Hayes
the  needs to be the correct xml entity, I believe.

try using amp;amp; in your mxml rather than 

It's trying to tell you that, but it took me a few head scratches to work it 
out, I must admit.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of AJC2357
Sent: Thu 9/24/2009 12:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] e4x Filtering Success
 
(partially...)

I was able to filter through e4x via mx:XML and the dataProvider as follows...

mx:XML id=data source=sep.xml format=e4x/
mx:PieChart width=100% height=100% dataProvider={data.Location.(region == 
'Asia' )}

How can I add an additional filter argument from here?  Using the  technique 
gave me error that entity name must immediately follow 

I want to filter something like: region = Asia AND GDP/capita = 1  

Thanks!



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] How to add files when exporting air application

2009-09-16 Thread Jim Hayes
 
In flexbuilder, to get those files into your .air package, try the
following :
 
Either
 
 tick copy non embedded files to output folder in
project|properties|flex compiler, and with a bit of luck when you
publish your .air from FB they will appear in the Air file contents
screen included files list for you to check or uncheck as necessary.
Personally I find this way to be not quite fitting with my sloppy ways,
and sometimes seemed a little unreliable.
 
The other option is to get to that screen (keep hitting Next button),
whereby the bin-release folder will be created, then copy your extra
files into that. Hit back button in the export screen, then next to
get back to where you were, only this time you should see and be able to
include your files.
 
Both of these get old fairly quickly if you need to do it a lot, I found
that an ant script saved me a ton of time and aggro for compiling and
packaging air projects.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of reflexactions
Sent: 16 September 2009 13:11
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to add files when exporting air application
 
  
If I want to add swf modules or a compiled css file that are all extern
(ie there is no explicit reference to them in the actual application
code) and will be loaded at run time to an AIR package how do I do it?

Just to clarify, I can run the app just fine at the moment so long as I
manually copy the swfs to the app install folder after installation, so
this isnt a question of how to make the app run with run time loaded
modules, its about how to get them into the .air file so they get
installed initially.

Thanks


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart

2009-09-15 Thread Jim Hayes

Mmmm, just taken me 3/4 hour to get though after a wait of 2 weeks odd for a 
reply on the support portal which asked me to ring.
I've been told that AIR is a free product and outside their remit to provide 
support on my issue.
The perfectly nice guy was unable to give me any help on where to take it from 
there, so I've just had to continue with the online thing.

Well, I do support myself and appreciate the difficulties even for a small 
company, but just the same...

In case any wonderful Flexcoders people have any experience of this one, I'll 
fling it out here - any ideas gratefully received!
(for what it's worth, I think it's most likely something to do with me the SDK 
used for compilation (probably 3.2 but I'd need to check), but could be very 
wrong there)

On a related point - anyone know who to speak to  getting to be an AIR beta 
tester?
I've requested it online specifically and each time I've done the AIR 
reditribution agreement - never heard anything.
In this particular case AIR was updated pretty well right on our shipping date 
and I had no time to resolve it - I've I'd been testing before the release I 
might have caught and fixed it first.
We normally release a disk every month or so, so it's an ongoing issue, however.



Friday, 7 August 2009 11:53:35 o'clock BST
Following the recent update to AIR runtime 1.5.2 I'm experiencing some issues 
with the built in app updater on windows platforms tha
t I've not seen prior to this release.
I'm using flash.desktop.Updater.Updater.update() directly on a downloaded .air 
update package.

on windows Vista and windows 7, the update runs , but suffers a GUI freeze and 
eventually needs to be forcibly stopped via task mana
ger.
The new update is actually installed, but it seems that there is some 
difficulty after that, I'm guessing with removing temp files c
reated in that process.
I've attached a copy of .airappinstall.log taken after force quitting the 
update installer (Which had run for twenty minutes - norma
ly it would be complete in one or two)

on WIndows XP, everything appears to be fine, but a temp file is left in 
[installDirectory]\META-INF\AIR.
This is also the case in vista/7, upon inspection this temp file contains our 
publisherID.
Unfortunately, if you uninstall the application then this temp file gets left 
behind, meaning a subsequent install of the applicatio
n is unable to install to the same directory unless you manually delete this 
stray temp file.

Unfortunately, when I create a very basic app to demonstrate the problem 
everything seems to work fine - I only seem to be getting t
his on our somewhat larger commercial products.

Any ideas? Where do I go from here?

Let me know if there is any more information I can provide that would be helpful

Many thanks,
regards,
Jim Hayes

-Original Message-
From: flexcoders@yahoogroups.com on behalf of hank williams
Sent: Fri 9/11/2009 7:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) 
falling apart
 
I have to go out now and so cant leave the phone off hook. But 1hr 15mins
with no response. I am sure it would have been many more hours.

On Fri, Sep 11, 2009 at 1:28 PM, hank williams hank...@gmail.com wrote:

 Starting now. I dont have 3 hours again but lets see how far we get...


 On Fri, Sep 11, 2009 at 1:19 PM, turbo_vb timh...@aol.com wrote:



 US - 800-833-6687.


 -TH

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, hank
 williams hank...@... wrote:
 
  By the way, adobe admits there is a problem, so if you got that kind of
  response, I promise it is not normal.
 
  see: http://www.adobe.com/support/open_letter_to_adobe_customers/
 
  On Fri, Sep 11, 2009 at 1:09 PM, hank williams hank...@... wrote:
 
   what country are you in... and if US, what number did you dial?
  
  
   On Fri, Sep 11, 2009 at 1:06 PM, turbo_vb timh...@... wrote:
  
  
  
   Sounds like you're not having very good luck Hank. As an interesting
   coincidence, I had to contact Adobe customer service today to resolve
 an
   issue. I just switched from PC to Mac and at the same time upgraded
 from CS3
   to CS4. My issue was that the upgrade wouldn't recognize my previous
   product's serial number, because it was on a different platform. I
 went to
   the Adobe site, clicked the support button, selected my country and
 called
   the 800 number. They answered after 5 minutes. Pretty good compared
 to 3
   hours. The initial rep took my info and had to transfer me to another
 rep to
   resolve my issue. The second time on hold took 7 minutes. The second
 rep was
   able to assist me ad resolve my issue. The entire call took 22
 minutes;
   which for something like this is completely reasonable. Sorry that
 you
   didn't have the same experience. But, for me, I couldn't expect any
 better
   customer service.
  
   -TH

RE: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe) falling apart

2009-09-15 Thread Jim Hayes
And Robert has contacted me via email straight away, which is great!
I shall respond when I've had my supper, I hope (UK time here).
Many thanks Matt, so much appreciated.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Matt Chotin
Sent: Tue 9/15/2009 7:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Is Adobe Customer Support (or worse yet adobe)
falling apart
 
I've already forwarded the request along.

On Sep 15, 2009, at 11:47 AM, Nick Collins wrote:

 I'd probably try to contact Robert Christensen or Mike Chambers  
 about the AIR beta.


 On Tue, Sep 15, 2009 at 10:47 AM, Jim Hayes j...@primalpictures.com  
 wrote:


 Mmmm, just taken me 3/4 hour to get though after a wait of 2 weeks  
 odd for a reply on the support portal which asked me to ring.
 I've been told that AIR is a free product and outside their remit  
 to provide support on my issue.
 The perfectly nice guy was unable to give me any help on where to  
 take it from there, so I've just had to continue with the online  
 thing.

 Well, I do support myself and appreciate the difficulties even for a  
 small company, but just the same...

 In case any wonderful Flexcoders people have any experience of this  
 one, I'll fling it out here - any ideas gratefully received!
 (for what it's worth, I think it's most likely something to do with  
 me the SDK used for compilation (probably 3.2 but I'd need to  
 check), but could be very wrong there)

 On a related point - anyone know who to speak to getting to be an  
 AIR beta tester?
 I've requested it online specifically and each time I've done the  
 AIR reditribution agreement - never heard anything.
 In this particular case AIR was updated pretty well right on our  
 shipping date and I had no time to resolve it - I've I'd been  
 testing before the release I might have caught and fixed it first.
 We normally release a disk every month or so, so it's an ongoing  
 issue, however.

 --

 Friday, 7 August 2009 11:53:35 o'clock BST
 Following the recent update to AIR runtime 1.5.2 I'm experiencing  
 some issues with the built in app updater on windows platforms tha
 t I've not seen prior to this release.
 I'm using flash.desktop.Updater.Updater.update() directly on a  
 downloaded .air update package.

 on windows Vista and windows 7, the update runs , but suffers a GUI  
 freeze and eventually needs to be forcibly stopped via task mana
 ger.
 The new update is actually installed, but it seems that there is  
 some difficulty after that, I'm guessing with removing temp files c
 reated in that process.
 I've attached a copy of .airappinstall.log taken after force  
 quitting the update installer (Which had run for twenty minutes -  
 norma
 ly it would be complete in one or two)

 on WIndows XP, everything appears to be fine, but a temp file is  
 left in [installDirectory]\META-INF\AIR.
 This is also the case in vista/7, upon inspection this temp file  
 contains our publisherID.
 Unfortunately, if you uninstall the application then this temp file  
 gets left behind, meaning a subsequent install of the applicatio
 n is unable to install to the same directory unless you manually  
 delete this stray temp file.

 Unfortunately, when I create a very basic app to demonstrate the  
 problem everything seems to work fine - I only seem to be getting t
 his on our somewhat larger commercial products.

 Any ideas? Where do I go from here?

 Let me know if there is any more information I can provide that  
 would be helpful

 Many thanks,
 regards,
 Jim Hayes



 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of hank williams
 Sent: Fri 9/11/2009 7:43 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Is Adobe Customer Support (or worse  
 yet adobe) falling apart

 I have to go out now and so cant leave the phone off hook. But 1hr  
 15mins
 with no response. I am sure it would have been many more hours.

 On Fri, Sep 11, 2009 at 1:28 PM, hank williams hank...@gmail.com  
 wrote:

  Starting now. I dont have 3 hours again but lets see how far we  
 get...
 
 
  On Fri, Sep 11, 2009 at 1:19 PM, turbo_vb timh...@aol.com wrote:
 
 
 
  US - 800-833-6687.
 
 
  -TH
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,  
 hank
  williams hank...@... wrote:
  
   By the way, adobe admits there is a problem, so if you got that  
 kind of
   response, I promise it is not normal.
  
   see: http://www.adobe.com/support/open_letter_to_adobe_customers/
  
   On Fri, Sep 11, 2009 at 1:09 PM, hank williams hank...@...  
 wrote:
  
what country are you in... and if US, what number did you dial?
   
   
On Fri, Sep 11, 2009 at 1:06 PM, turbo_vb timh...@... wrote:
   
   
   
Sounds like you're not having very good luck Hank. As an  
 interesting
coincidence, I had to contact Adobe customer service today  
 to resolve
  an
issue. I just

[flexcoders] AIR sql parameters - can I use an array ?

2009-06-19 Thread Jim Hayes
I'm looking for a way to use the IN sql syntax and parameters,
something like SELECT someField FROM someTable WHERE someOtherField IN 
(1,4,6,8,12); .
Obviously I could build a string query from an array and execute that, but I'd 
rather stay with parameters if at all possible.

If anyone knows, please do tell!
I'm afraid I'm away from my workstation so can't check it at the moment.
Many thanks!

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] how to know the AIR version in my local pc?

2009-05-10 Thread Jim Hayes
In as3 (I'm pretty sure this is undocumented, and probably unsupported)
-
 
var pm:ProductManager = new ProductManager(airappinstaller);
trace (AIR version is :  + pm.installedVersion);
 
There may be easier or better ways, mind you.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markflex2007
Sent: 10 May 2009 06:11
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to know the AIR version in my local pc?
 




Please give me a idea,thanks

Mark


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] .csv import stuff

2009-05-10 Thread Jim Hayes
I did this in as3 last week, in just the way Tracy described.
Worked fine, at least for the data I was using - which was admitedly small and 
fairly simple.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tracy Spratt
Sent: 10 May 2009 06:22
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] .csv import stuff




You will have two delimiters.  One, the row delimiter is a newline or 
carriage-return or both.  The other is the field delimeter, often but not 
always a comma.
 
Google this and I think you will find some examples.  I haven't parsed a csv 
file in actionscript myself.  In .net, you actually read the file one line at a 
time, then parse that.  
 
I do not know if the best wasy to do it inas would be to parse the rows into an 
array using split() with the newline(maybe chr(13))?, then in a nested loop 
using split(,).
 
Like I said, google this.
 
Tracy Spratt,
Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of khaled hafez
Sent: Saturday, May 09, 2009 8:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] .csv import stuff
 




Hey,
 
I am not an Expert in Flex but i do know that .csv files are Easy to handle 
using a Paser on ',' that's the separator in the .csv files (Comma Separated 
Value). If i were you, i would take the .csv file and convert it to a Well 
formated XML file then send it in an AJAX request to PHP to insert it into 
database.
 
Good Luck
 

From: Vikram Singh vikisingh...@yahoo.in
To: Flex Coders flexcoders@yahoogroups.com
Sent: Saturday, May 9, 2009 12:59:32 PM
Subject: [flexcoders] .csv import stuff
is there any nice and easy way to 'Browse' .csv file on flex
and after that send 'Import Request' to php and php will import this .csv 
file's data to database.?
 
any thought on this stuff!!?
 
 

From Chandigarh to Chennai - find friends all over India. Click here. 
 


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] how to know the AIR version in my local pc?

2009-05-10 Thread Jim Hayes


In as3 (I'm pretty sure this is undocumented, and probably unsupported)
-

var pm:ProductManager = new ProductManager(airappinstaller);
trace (AIR version is :  + pm.installedVersion);

There may be easier or better ways, mind you.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim Hayes
Sent: 10 May 2009 23:52
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] how to know the AIR version in my local pc?


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] UK Flex User Group

2009-05-05 Thread Jim Hayes
I couldn't say, I'm afraid!

If you're in London as your handle implies, though, try here :

http://www.meetup.com/flexlondon/

Monthly meetings normally in Shoreditch, I don't normally attend but I'm told 
it's more drinks and informal chat on most occasions.

or there's the catchily named LFPUG (London Flash Programmers User Group), 
which also meets once a month, but with regular presentations on subjects of 
interest (a bit broader based than Flex specifically). I tend to attend these 
fairly regularly myself, it's a friendly crowd and the presentations are 
normally of some interest.

http://www.lfpug.com/




-Original Message-
From: flexcoders@yahoogroups.com on behalf of londonbiker099
Sent: Tue 5/5/2009 12:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] UK Flex User Group
 
Can anyone tell me the status of the UK Flex User Group. There is a holding 
page at the URL and the email address bounces back to me. Does anyone have a 
contact?

Best regards

Jeremy




__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Would anyone know what Capabilities.os shows for Windows 7 ?

2009-05-01 Thread Jim Hayes
Many thanks!

On reflection, I decided my approach was bad.
I changed it to specifically exclude 95 and 98/ME, but allow any thing
else with Windows in it.

Luckily, it seems it would pass on Windows 7 Beta Build 7000 !

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Sam Lai
Sent: 01 May 2009 10:39
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Would anyone know what Capabilities.os shows
for Windows 7 ?

Seeing as no one seems to have replied, I gave it a shot. In a Flex
app running in AIR, it just contains Windows.

I'm running Windows 7 Beta Build 7000.

2009/4/30 Jim Hayes j...@primalpictures.com:


 I don't have a copy handy, and I'm doing some code on DVD that will
need to
 run for some years (hence I expect to cover windows 7).



 I realise that it may change, or not even be detected by flash player
at the
 moment, but any clue is better than none!



 Many thanks in advance,



 Jim.

 __
 This communication is from Primal Pictures Ltd., a company registered
in
 England and Wales with registration No. 02622298 and registered
office: 4th
 Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA,
UK.
 VAT registration No. 648874577.

 This e-mail is confidential and may be privileged. It may be read,
copied
 and used only by the intended recipient. If you have received it in
error,
 please contact the sender immediately by return e-mail or by
telephoning
 +44(0)20 7637 1010. Please then delete the e-mail and do not disclose
its
 contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs
Email
 Security System.
 __


 




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




__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


[flexcoders] Would anyone know what Capabilities.os shows for Windows 7 ?

2009-04-29 Thread Jim Hayes
I don't have a copy handy, and I'm doing some code on DVD that will need
to run for some years (hence I expect to cover windows 7).
 
I realise that it may change, or not even be detected by flash player at
the moment, but any clue is better than none!
 
Many thanks in advance,
 
Jim.

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Alive PDF bytearray.org links all failing?

2009-04-17 Thread Jim Hayes
 I am also having difficulty unzipping the docs in the download because of 
 duplicate, empty files. 

I ran into this the other day, on windows with the built in zip decompressor.

Solved it by using 7zip instead (why I wasn't in the first place eludes me, 
it's what I normally use and would recommend)

 



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] mxmlc.exe and config file?

2009-03-17 Thread Jim Hayes
It's been a while since I set this up, but I have two things that I seem to 
remember I needed to add to my mxmlc compile task:

!-- use AIR config file, not flex one  --
load-config filename=${FLEX_HOME}/frameworks/air-config.xml/

and 

!-- AIR SWC path --
external-library-path dir=${FLEX_HOME}/frameworks/libs/air append=true
include name=airglobal.swc /
/external-library-path

I can't say this is absolutely correct, but it worked for me.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of markflex2007
Sent: Tue 17/03/2009 15:40
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mxmlc.exe and config file?
 
I have a AIR application.

I try to do this

mxmlc.exe -output test.swf  test.mxml

I get the error:
load configuration file c:\flex_sdk\frameworks\flex-config.xml and can not 
specified class 'mx.core.WindowApplication' for test.mxml.

It seem I need change the configuration file to air-config.xml.

Please help me to know how to do this change.

Thanks

Mark



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] mxmlc.exe and config file?

2009-03-17 Thread Jim Hayes
It's been a while since I set this up, but I have two things that I seem to 
remember I needed to add to my mxmlc compile task for AIR:

!-- use AIR config file, not flex one  --
load-config filename=${FLEX_HOME}/frameworks/air-config.xml/

and 

!-- AIR SWC path --
external-library-path dir=${FLEX_HOME}/frameworks/libs/air append=true
include name=airglobal.swc /
/external-library-path

I can't say this is absolutely correct, but it worked for me.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of markflex2007
Sent: Tue 17/03/2009 15:40
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mxmlc.exe and config file?
 
I have a AIR application.

I try to do this

mxmlc.exe -output test.swf  test.mxml

I get the error:
load configuration file c:\flex_sdk\frameworks\flex-config.xml and can not 
specified class 'mx.core.WindowApplication' for test.mxml.

It seem I need change the configuration file to air-config.xml.

Please help me to know how to do this change.

Thanks

Mark



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Ant and Air package?

2009-03-17 Thread Jim Hayes

Any error messages?

You don't seem to be including any icons, they're not required but if they're 
specified in the application descriptor you also need to specify them in the 
ant task or it will fail.
I'm only guessing that you might have forgotten them, however - it's possible 
that you're not using them and the error lies elsewhere.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of markflex2007
Sent: Tue 17/03/2009 16:25
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Ant and Air package?
 
I try to build a Ant auto package function but I do not know why it doesn't 
work.

Any idea,atahnks


Mark   

target name=package if=do.package depends=compile
description=Packages AIR application.
antcall target=create.certificate /
java jar=${adt.jar} fork=true failonerror=true
inputstring=${cert.pass}
arg value=-package /
arg value=-storetype /
arg value=${store.type} /
arg value=-keystore /
arg value=${cert.name} /
arg value=${app.name}.air /
arg value=${desc.name}.xml /
arg value=${deploy.dir}\${app.name}.swf /
/java
/target

target name=create.certificate if=do.package
description=Creates self signed certificate.
java jar=${adt.jar} fork=true failonerror=true
arg value=-certificate /
arg value=-cn /
arg value=${app.name} /
arg value=${cert.type} / 
arg value=${cert.name} /
arg value=${cert.pass} /
/java
/target



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Jim Hayes
This may be of interest :
 
http://flexibleexperiments.wordpress.com/2007/02/26/flex-201-tree-with-s
pring-loaded-folders-update-2/
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: 09 March 2009 21:54
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 Tree - Moving Nodes
 
Good to know Alex,
 
I'm still a little (ok, a lot) green can you point me at a good tutorial
/ example to start from?
 
=]
On Mon, Mar 9, 2009 at 2:48 PM, Alex Harui aha...@adobe.com
mailto:aha...@adobe.com  wrote:
There might be a way to use a custom ITreeDataDescriptor to turn every
child into a branch.  Open but empty folders have a middle drop zone
for dropping into.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc. http://www.adobe.com/ 
Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 
 
From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Alan Rother
Sent: Monday, March 09, 2009 12:34 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Flex 3 Tree - Moving Nodes
 
Hey All,
 
I am trying to build a Flex based tree for our content management system
here at work. It needs to represent all of the pages on a given site. I
already have a good working prototype using XML as the dataprovider and
i have a good chunk of the drag and drop functions working well. The
problem I am having is around the dragdrop handler. I need to be able to
move any page to anywhere on the tree, including below (as a child of)
any other page in addition to being able to reorder pages on the same
level (same parent node)
 
I can get it to do one or the other but not both at the same time. As
far as I can tell, Flex doesn't recognize the difference between a drop
on a node and a drop between two nodes. As I think this would solve my
problem. Has anyone tackled this problem before? I basically need a
simple way for my very non-technical users to drag pages for one of two
operations, re-ordering within a section or moving a page to another
section.
 
This ExtJS example is almost exactly what I want my Flex tree to do
 
http://www.extjs.com/deploy/dev/examples/tree/reorder.html
http://www.extjs.com/deploy/dev/examples/tree/reorder.html 
 
Except I need to treat every item on the tree as a folder.
 
=]

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org



-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Moving a viewStack through actionscript

2009-03-09 Thread Jim Hayes
, I'd learn about dispatching custom events. It's not that complicated
but it takes some time to understand.
 
Raising some events from the question components strikes me as being a
whole  lot easier than dealing with addressing all the different objects
through the heirarchy!
But then when I first started out with flex I didn't know that and tried
to do pretty well the same sort of thing.
You could probably google and read enough on custom events to do what
you need in an hour or two, you'd more than likely spend much more time
trying to work out your current problems than that, I'd guess.
Hth
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Michael Wills
Sent: 09 March 2009 22:20
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Moving a viewStack through actionscript
 
Hi Wally, sorry I missed the hierarchy there. You have checkSingle on
the module and not the Viewstack. In that case, you should be able to do
parent.parent.checkSingle and leave out the cast as test1. So

public var testMod:Object = parent.parent;

The last one failed because it was trying to convert a viewstack into a
test1 which of course isn't a viewstack. But I'm not sure about this one
because the parent.parent is a module. You could also forgo using the
testMod variable and in your click declaration instead of

click=testMod.checkSingle(group1.selectedValue)

use

click=parent.parent.checkSingle(group1.selectedValue) /

Hopefully that'll work for you.

If you have a little time to invest, and if you may be doing more Flex
apps in the future, even though this one is not going to be a full-on
huge app, I'd learn about dispatching custom events. It's not that
complicated but it takes some time to understand. It would save some of
the hassle you're trying to do of course at the expense of a new and
different kind of hassle. :-)

Michael


Wally Kolcz wrote: 
Wow...its a 'simple' one time create app. 

All I want to do is when the user selects an answer on the
question1.mxml component, they can click a button,  pass the value of
the radio button to the test1 module's checkSingle() method  and then
move to the next question in the test1 module's stack. 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Flex 3 Tree - Moving Nodes

2009-03-09 Thread Jim Hayes
I had thought that I'd used the code there to allow users to drag/drop
reorder and move tree nodes, but it was quite a long while ago so I may
well be wrong.
It wasn't perfect, but not bad at all.
Also I may have misunderstood what you are looking for.
Still, glad it wasn't entirely wasted!
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: 09 March 2009 23:01
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 Tree - Moving Nodes
 
Thanks Jim,
 
Thats not exactly what I was looking for, but it's a great example of
how to use some of the Tree components, which I've been struggling
with...
 
=]
-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Debugging Event Bubbling

2009-03-08 Thread Jim Hayes
Your TweetCommEvent's clone method returns a PreferencePaneEvent rather than 
the TweetCommEvent I'd expect, at least in the code you wrote below.
It's not that, is it? 

public class TweetCommEvent extends Event
{


override public function clone():Event {
  return new PreferencePaneEvent(type, bubbles, cancelable);
 }
..

}

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valkyrie77
Sent: 08 March 2009 17:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Debugging Event Bubbling

Hi Folks,

I'm currently working on a twitter AIR client using the twitterscript AS3 
library and having some issues with bubbling custom events that are created by 
nested classses back to the main application.

I've architected so that the main application (A) spawns a new timeline window 
(B) for every twitter account a user may have. I have a Comm class (C) i use as 
a DAO layer to decouple the twitterscript custom events from my framework (in 
case i switch to a different as3 API library)

My custom event class looks like this 

package com.kubeworks.events
{
import flash.events.Event;

public class TweetCommEvent extends Event
{
public static const TIMELINE_BACK:String = timelineBack;
public static const STATUS_BACK:String = statusBack;
public static const USER_INFO_BACK:String = userInfoBack;
public static const RATE_LIMIT_STATUS:String = rateLimitBack;
public var data : Object = new Object ();

public function TweetCommEvent(type:String, bubbles:Boolean=true, 
cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
}

override public function clone():Event {
return new PreferencePaneEvent(type, bubbles, cancelable);
}

}
}

My Comm Class goes something like
package com.kubeworks.data
{
// Twitter API calls
import com.kubeworks.events.TweetCommEvent;

import flash.events.Event;
import flash.events.EventDispatcher;
import flash.utils.*;

import mx.utils.ObjectUtil;

import twitter.api.Twitter;
import twitter.api.events.TwitterEvent;

public class TweetComm extends EventDispatcher
{

private var username:String;
private var password:String;

private var _twitterClient:Twitter;

// Constructor
public function TweetComm(usern:String, pass:String)
{
// Initialize Twitter Event Listeners
_twitterClient = new Twitter();
_twitterClient.addEventListener(Event.ACTIVATE, twitterClientActivateHandler);
_twitterClient.addEventListener(Event.DEACTIVATE, twitterClientDeactivate);
_twitterClient.addEventListener(TwitterEvent.ON_FRIENDS_TIMELINE_RESULT, 
twitterTimelineBack);
_twitterClient.addEventListener(TwitterEvent.ON_SET_STATUS, twitterStatusBack);
_twitterClient.addEventListener(TwitterEvent.ON_SHOW_INFO, twitterUserBack);
_twitterClient.addEventListener(TwitterEvent.ON_RATE_LIMIT_STATUS, 
twitterRateLimitBackHandler);


// Do stuff
setLogin(usern, pass);
setAuth();
}

and within that class i'm re-dispatching like:

private function twitterRateLimitBackHandler(event:TwitterEvent):void {
var eventObj:TweetCommEvent = new 
TweetCommEvent(TweetCommEvent.RATE_LIMIT_STATUS, true);
eventObj.data = event.data;
dispatchEvent(eventObj);
trace(twitterRateLimitBackHandler);
trace(ObjectUtil.toString(event));
trace(twitterRateLimitBackHandler);
trace(ObjectUtil.toString(eventObj));
}

I've set the bubbling to true. However in my main application this 
EventListener never fires

systemManager.addEventListener(TweetCommEvent.RATE_LIMIT_STATUS, 
onRateLimitHandler);

Any help would be greatly appreciated as i am out ideas and have exausted 
google and my flex friends.

Thanks,
Sean


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] distributing air apps without install

2009-03-03 Thread Jim Hayes
That's slightly different, in that case the app *is* installed.
As far as I know, the AIR runtime and the app* must be installed on the
local system, as opposed to a totally standalone application.
The shu player used to temporarily install both to the users temp
directory and run them from there,
but something about something about their initial system conflicted with
the adobe licence agreement.
I gather they've resolved that with their latest version, but I've not
tried the latest one to see what it does now.


*
 Can I zip the directory of an installed air app and distribute it to
 users for them to decompress and run without having to install?

Actually I did get that to sort of work (if the user already had the
air runtime installed) on windows a long time ago, not sure whether it
would now.
However, although the app ran, various things were rather broken, like
applicationStorage Directory and similar (from memory, I could be
wrong).
Which is kind of what I would expect, on reflection. I wouldn't rely on
doing that, myself.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Weyert de Boer
Sent: 03 March 2009 21:47
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] distributing air apps without install

Yes, you only need to have a freely redistrubition license from Adobe 
which also comes with the information to install your AIR app and the 
runtime silently. See: 
http://www.adobe.com/products/air/runtime_distribution1.html

 Is it possible to distribute an AIR app that can be run without being
 installed?

 Can I zip the directory of an installed air app and distribute it to
 users for them to decompress and run without having to install?

 


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] tree control finding patent node

2009-03-02 Thread Jim Hayes
This actually from a change event, but an itemClicked one is very
similar ...
(It presumes that you use xml as the dataprovider for the tree, and
listen for the event by adding 'change=onTreeChange(event)' in your
trees attributes )

private function onTreeChange(event:ListEvent):void
{
var targetTree:Tree = event.target as Tree; 

 var item:XML = XML(targetTree.selectedItem);
 
 var theParent:XML = item.parent();

}

It does seem a bit unintuitive to get an XML object, but normally that
works fine for what you're likely to want to do, I've found.

Hope that's enough to be helpful!

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of hworke
Sent: 02 March 2009 21:18
To: flexcoders@yahoogroups.com
Subject: [flexcoders] tree control finding patent node



Hi, in a tree control if a leaf node if clicked
how do I find out which folder it belongs to or
which node is its parent?

Regards...


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] Re: Sending POST requests to php script??Help

2009-03-01 Thread Jim Hayes
Well, I believe the syntax is correct, at least!
The warnings are telling you something, in a way, which is that unless your 
objects properties are bindable flex won't be able to detect changes in them at 
runtime.
Hence it won't work if as you might expect you want to specify the request in 
mxml like that. 
It's just the way flex works, I found it a little hard to get used to at first.
You might have better results if you call an actionscript function to set the 
request object instead.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of fprihoda
Sent: Sun 01/03/2009 12:51
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Sending POST requests to php script??Help
 
This doe not work, as I am not trying to make the object bindable.  I
am simply trying to reference the object values and pass them as part
of the HTTPService request.

--- In flexcoders@yahoogroups.com, Jim Hayes j...@... wrote:

 I'm making a wild guess here, but does this work?
 
 mx:request xmlns=
 first{modelName.name.first}/first
 last{modelName.name.last}/last
 email{modelName.email}/email
 /mx:request
 
 Apologies if not, I've not made any attempt to see if it does so it
could be utter rubbish.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of fprihoda
 Sent: Sat 28/02/2009 19:09
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Sending POST requests to php script??Help
  
 The following code is not working as I would expect it to.
 
 mx:HTTPService id=srv2 url=http://localhost/flex_web/addform.php;
 resultFormat=object showBusyCursor=true
 result=resultHandler(event) method=POST
 mx:request xmlns=
 firstmodelName.name.first/first
 lastmodelName.name.last/last
 emailmodelName.email/email
 /mx:request
 /mx:HTTPService
 
 modelName is an object. I would like to send the POST variables to the
 php script using dot notation as shown above. The problem I am having
 is that it sends the entire string modelName.xxx.xxx instead of the
 actual object field.  I think this is a dereferencing issue, but I do
 not know how to fix it.
 
 Can someone help?
 
 
 
 __
 This communication is from Primal Pictures Ltd., a company
registered in England and Wales with registration No. 02622298 and
registered office: 4th Floor, Tennyson House, 159-165 Great Portland
Street, London, W1W 5PA, UK. VAT registration No. 648874577.
 
 This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received
it in error, please contact the sender immediately by return e-mail or
by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
do not disclose its contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs
Email Security System.
 __





__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Sending POST requests to php script??Help

2009-02-28 Thread Jim Hayes
I'm making a wild guess here, but does this work?

mx:request xmlns=
first{modelName.name.first}/first
last{modelName.name.last}/last
email{modelName.email}/email
/mx:request

Apologies if not, I've not made any attempt to see if it does so it could be 
utter rubbish.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of fprihoda
Sent: Sat 28/02/2009 19:09
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sending POST requests to php script??Help
 
The following code is not working as I would expect it to.

mx:HTTPService id=srv2 url=http://localhost/flex_web/addform.php;
resultFormat=object showBusyCursor=true
result=resultHandler(event) method=POST
mx:request xmlns=
firstmodelName.name.first/first
lastmodelName.name.last/last
emailmodelName.email/email
/mx:request
/mx:HTTPService

modelName is an object. I would like to send the POST variables to the
php script using dot notation as shown above. The problem I am having
is that it sends the entire string modelName.xxx.xxx instead of the
actual object field.  I think this is a dereferencing issue, but I do
not know how to fix it.

Can someone help?



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Re: Reading the output of an AIR application in C#

2009-02-26 Thread Jim Hayes
You can write a socket server into your c# application and connect to
that from the AIR app.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of akila_ksri
Sent: 26 February 2009 12:04
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Reading the output of an AIR application in C#
 
Hi Tom,

Thanks for your quick response, I do not want to write to a file 
mainly because, the output keeps coming from the Air application and I 
need to do the processing at the same time in C# and not wait till the 
application has exited completly.

-Akila

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tom Chiverton tom.chiver...@... 
wrote:

 On Thursday 26 Feb 2009, akila_ksri wrote:
  using System.Diagnostics.Process.Start(myAirApp.exe). I need to 
be
  able to return some results from the Air app back to my C# app.
 
 obviousHave the AIR app write a file, read that back in.
 
 -- 
 Tom Chiverton
 Helping to dynamically cluster cross-media cross-platform e-services
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, 
Manchester, M3 3EB. A list of members is available for inspection at 
the registered office together with a list of those non members who 
are referred to as partners. We use the word ?partner? to refer to a 
member of the LLP, or an employee or consultant with equivalent 
standing and qualifications. Regulated by the Solicitors Regulation 
Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above 
and may be confidential or legally privileged. If you are not the 
addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents. If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: Re: [flexcoders] AIR Application is not Appearing

2009-02-16 Thread Jim Hayes
Have you looked at this part of the application descriptor file
(yourapplication-app.xml) :
 
!-- Whether the window is initially visible. Optional. Default false.
--
visibletrue/visible
?
 
Here I've uncommented it and set it true, but by default it will be
commented out and defaults to false.
I suspect this is not your problem, mind you.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of verma.lu...@gmail.com
Sent: 16 February 2009 06:09
To: Kevin Benz; flexcoders@yahoogroups.com
Subject: Re: Re: [flexcoders] AIR Application is not Appearing
 
Hello Kevin, 

Yes, you are right I am using SDK 3.2. I have changed the namespace to
1.5 in App xml but still it's not appearing on new machine. 

Pls tell me what to do. 


Best, 
Ashish 

On Feb 14, 2009 9:27pm, Kevin Benz kb...@passalongnetworks.com wrote: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Please be aware of a very simple issue that I don't 
 
 believe is well documented... When you go through an upgrade of an
existing 
 
 project from SDK 3.1 to 3.2 where Air is involved, the compiler links
the 
 
 appropriate Air objects based on what is contained in the app.xml file
(YOUR 
 
 APPLICATION NAME-app.xml) in the project home directory. You will find
either (the 
 
 compiler usually crabs about this if you rely on objects not in the
chosen library 
 
 though) 
 
 
 
 
 
 xmlns=http://ns.adobe.com/air/application/1.1; or 
 
 
 
 
 
 xmlns=http://ns.adobe.com/air/application/1.5; 
 
 
 
 
 Make sure this is set correctly for your target environment. 
 
 
 
 
   
 
 
 
 
 KFB 
 
 
 
 
 
 
 
 
 
 
 
 
 From: 
 
 flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Douglas 
 
 Knudsen 
 
 
 Sent: Saturday, February 14, 2009 7:17 AM 
 
 
 To: flexcoders@yahoogroups.com 
 
 
 Subject:  Re: [flexcoders] AIR Application is not Appearing 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
   
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 I've seen this occur if there is some sort of startup error. ( No 
 
 
 global exception handler, eh? ). For example, if your Air app is 
 
 
 looking for a config file using static inatialiser on startup and 
 
 
 can't find it, it could just hang there. Check the flashlog for 
 
 
 errors. 
 
 
 
 
 
 DK 
 
 
 
 
 
 On 2/13/09, Alex Harui aha...@adobe.com 
 
 wrote: 
 
 
  Did they try uninstalling and re-installing? 
 
 
  
 
 
  Alex Harui 
 
 
  Flex SDK Developer 
 
 
  Adobe Systems Inc.http://www.adobe.com/ 
 
 
  Blog: http://blogs.adobe.com/aharui 
 
 
  
 
 
  From: flexcoders@yahoogroups.com 
 
 [mailto:flexcod...@yahoogroups.com] 
 
 On 
 
 
  Behalf Of Ashish Verma 
 
 
  Sent: Friday, February 13, 2009 7:03 AM 
 
 
  To: flexcoders@yahoogroups.com 
 
 
  Subject: [flexcoders] AIR Application is not Appearing 
 
 
  
 
 
  
 
 
  Hello All, 
 
 
  
 
 
  I created an AIR Application which was previously based on AIR 1.0
and I 
 
 am 
 
 
  some more features in that application and compiling with the update
of 
 
 Flex 
 
 
  3 and targeting it for AIR 1.5. After making air file I am putting
it onto 
 
 
  sever to access by users. But when any user trying to run it after 
 
 uploading 
 
 
  it's not displaying any window only showing task-bar button and
doing 
 
 
  noting. When I use the task-bar context to move command I can see
the 
 
 dotted 
 
 
  rectangle on the desktop. I also checked for the installation folder
of the 
 
 
  application in C:\Documents and Settings\username\Local Settings but
there 
 
 
  was no any folder for it. 
 
 
  
 
 
  Please help me out. 
 
 
  
 
 
  
 
 
  Best, 
 
 
  Ashish 
 
 
  
 
 
  
 
 
 
 
 
 -- 
 
 
 Sent from my mobile device 
 
 
 
 
 
 Douglas Knudsen 
 
 
 http://www.cubicleman.com 
 
 
 this is my signature, like it? 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 -- 
 
 
 This message has been scanned for viruses and 
 
 
 dangerous content by MailScanner, 
 
 and is 
 
 
 believed to be clean. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Re: Socket communications in Flex

2009-02-16 Thread Jim Hayes
Are you sending the magic character that flash interprets as the end of
a piece of data coming in on a socket connection?
It's been two years since I did this, so I can't remember what that
character is, probably either a null or a newline.
That's the only special thing I remember doing with a socket server,
if you don't do that then it can appear as if it's not working.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markgoldin_2000
Sent: 15 February 2009 16:50
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Socket communications in Flex
 
I was able to create a server socket using VB code. I am sending 
data from a Flex test application to my server socket but cannot 
send any data to Flex. Any idea?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Guy Morton g...@... wrote:

 As Tracy said, yes. A socket is just a network connection. Your 
flex 
 XMLSocket doesn't know or care what language the program 
listening on 
 the other was written in. A socket connection is like a call 
connected 
 between two telephones - if no-one at either end talks or 
neither end 
 understands the other nothing much will happen. It's up to you 
to make 
 conversation by defining how you will pass messages back and 
forth and 
 how you will process them at either end.
 
 
 On 15/02/2009, at 3:41 AM, markgoldin_2000 wrote:
 
  I am not sure myself about my question :).
  First, can Flex be listening to a socket that is created within
  any program? I mean, if a vb program creates a socket using
  Winsock will Flex be able to listen to such socket?
  Second, if yes, how would data actually be transfered?
 
  Thanks
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Guy Morton guy@ wrote:
  
   Well...nothing would, normally. You'd have to set up a 
server to
  talk
   to you on that socket, develop a protocol for conversing over
  the
   socket, etc.
  
   An XML socket is just a pipe to communicate over. Unlike 
normal
  http
   requests which encapsulate the http conversation so you don't
  see it,
   a raw XML socket requires you to define what messages are 
going
  to be
   sent by whom and what those messages mean.
  
   Does that help, or have I misunderstood your question?
  
   Guy
  
  
   On 14/02/2009, at 10:50 PM, markgoldin_2000 wrote:
  
I am trying to understand how socket communications work in
  flex.
This code will connect to a port 8080 on a local computer:
   
var xmlsock:XMLSocket = new XMLSocket();
xmlsock.connect(127.0.0.1, 8080);
   
But what I dont understand is what would be sending data to
  that
port?
   
Thanks
   
   
   
  
 
 
 



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Re: model locator population too late

2009-02-02 Thread Jim Hayes
But before i show my form I need the model variable to be populated. 
How do you handle this type of situation.

Could you use ChangeWatcher to watch that variable and show the form when it 
changes?

ChangeWatcher.watch(yourModel,yourModelVariable,showYourForm);

I'm sure there are other ways , it probably depends on your situation which 
would be best, however.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of jerry_gagliano
Sent: 02 February 2009 21:18
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: model locator population too late

How the hell do you bound a progress bar to a model? 

I have the same problem. Which I execute a cairngrom event and it 
populates the the model variable. But before i show my form I need the 
model variable to be populated. How do you handle this type of 
situation. 

Thanks

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

 Surely the progress bar is bound to the model, not part of the model 
itself?
 
 - Original Message - 
 From: dnk d.k.emailli...@...
 To: Flexcoder List flexcoders@yahoogroups.com
 Sent: Friday, January 16, 2009 11:14 PM
 Subject: [flexcoders] model locator population too late
 
 
  Hi there,
 
  I have an app that uses a model locator class.
 
  Now I have a component that is passed in a reference to another
  component (A progress bar in my case).
 
  Now my problem is that the component is being created prior to the
  model locator being populated with the reference to the progress 
bar.
 
  So then obviously my component does not work as expected as it 
needs
  that reference.
 
  I have no idea on how to get around this issue. I can't populate 
the
  model locator (manually) any earlier as the progress bar has not 
yet
  been created.
 
  Ideas?
 
  d
 
 
 
  
 
  --
  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
 
 
 

 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread Jim Hayes
So I think what you really need to be doing is to have the list item
renderer accept the drop,  rather than the list itself?
I'm sure I did this with the datagrid about a year and a half ago,
unfortunately I don't have that project to hand just now or I'd have a
look and see how I did it.
All I remember was it wasn't all that hard to do once I'd got that
concept.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of David Kramer
Sent: 30 January 2009 20:52
To: flexcoders@yahoogroups.com
Cc: kramer.da...@consultant.com
Subject: [flexcoders] drag and drop ('into' the list items, while not
adding to the list itself; Ex: iTunes)
 
Hello All.  I've run into a problem, need other
perspective(s)/solutions:
 
Simply put: I want to implement drag and drop, like iTunes, in an AIR
app.  Seems easy, but...this particular scenario is puzzling.
 
Right now, just like iTunes, I have two list-based controls (both are
populated from collections of data within SQLite), one is a DataGrid and
one is a List. Dragging and dropping from the Grid to the List is
simple, yes, but I would like to drop on the list item's label/text/name
in the List and perform another function (specifically an update to
SQLite) and NOT simply drop the item and append to the list.  Follow?  
 
As in iTunes, you can drag a song into a folder and it adds the song
into the folder. (I would make that reference in SQLite in this case).
It doesn't make a new folder by appending (wrongly) the dropped song to
the folder list. (Which is what I have now: If I drag a item from the
grid and drop it on the list, it's appended to the list, but I want it
to become a value within the list item (pseudo nested) not a value in
the list itself.)
 
Is there a simple solution here I'm not seeing?
 
Now, I can do all that neat stuff by dragging a grid item unto a
mx:Button, but with only one button. Maybe I could loop/repeater to
make a vertical stack of buttons from an array?  But then it gets
unclear as to how each button is created with the necessary dragEnter
and dragDrop event handlers...  any help here?
 
This wheel has been invented before.  So how in Flex? 
 
David
 
 
(You can email me off of list if you'd like, I'll gladly post the
solution at the end. kramer.da...@consultant.com
mailto:kramer.da...@consultant.com )
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] drag and drop ('into' the list items, while not adding to the list itself; Ex: iTunes)

2009-01-30 Thread Jim Hayes
 But I'm still puzzled as to how to fire the proper SQL statement for each 
 drop; essentially it's an INSERT  [URL from drop] INTO table WHERE column = 
 [the drop acceptor's label string].

So it's [URL from drop] and  [the drop acceptor's label string] values that you 
need, essentially?, or you've already got those and want to know how to pass 
them elsewhere/use them to update the database?


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of David Kramer
Sent: 30 January 2009 21:20
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not 
adding to the list itself; Ex: iTunes)

Yes! Last night around 2 AM I thought Oh, the item renderer should accept it 
and then I went to sleep.
 
But I'm still puzzled as to how to fire the proper SQL statement for each drop; 
essentially it's an INSERT  [URL from drop] INTO table WHERE column = [the drop 
acceptor's label string].
 
Example code rocks, of course, but small nudges will help me get through the 
fog. Thanks to all who keep illuminating...
 


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jim Hayes
Sent: Friday, January 30, 2009 2:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] drag and drop ('into' the list items, while not 
adding to the list itself; Ex: iTunes)
So I think what you really need to be doing is to have the list item renderer 
accept the drop,  rather than the list itself?
I'm sure I did this with the datagrid about a year and a half ago, 
unfortunately I don't have that project to hand just now or I'd have a look and 
see how I did it.
All I remember was it wasn't all that hard to do once I'd got that concept.
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of David Kramer
Sent: 30 January 2009 20:52
To: flexcoders@yahoogroups.com
Cc: kramer.da...@consultant.com
Subject: [flexcoders] drag and drop ('into' the list items, while not adding to 
the list itself; Ex: iTunes)
Hello All.  I've run into a problem, need other perspective(s)/solutions:
Simply put: I want to implement drag and drop, like iTunes, in an AIR 
app.  Seems easy, but...this particular scenario is puzzling.
Right now, just like iTunes, I have two list-based controls (both are populated 
from collections of data within SQLite), one is a DataGrid and one is a List. 
Dragging and dropping from the Grid to the List is simple, yes, but I would 
like to drop on the list item's label/text/name in the List and perform another 
function (specifically an update to SQLite) and NOT simply drop the item and 
append to the list.  Follow?  
As in iTunes, you can drag a song into a folder and it adds the song into the 
folder. (I would make that reference in SQLite in this case).  It doesn't make 
a new folder by appending (wrongly) the dropped song to the folder list. (Which 
is what I have now: If I drag a item from the grid and drop it on the list, 
it's appended to the list, but I want it to become a value within the list item 
(pseudo nested) not a value in the list itself.)
Is there a simple solution here I'm not seeing?
Now, I can do all that neat stuff by dragging a grid item unto a mx:Button, 
but with only one button. Maybe I could loop/repeater to make a vertical 
stack of buttons from an array?  But then it gets unclear as to how each button 
is created with the necessary dragEnter and dragDrop event handlers...  any 
help here?
This wheel has been invented before.  So how in Flex? 
David
(You can email me off of list if you'd like, I'll gladly post the solution at 
the end. kramer.da...@consultant.com)

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.


This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have

RE: [flexcoders] auto suggest for xml data

2009-01-27 Thread Jim Hayes
There is an autocomplete component available :
 
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailex
tid=1047291
 
Whether it suits your needs I can't really say at the moment.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of info_diwan2000
Sent: 27 January 2009 06:18
To: flexcoders@yahoogroups.com
Subject: [flexcoders] auto suggest for xml data
 
HI all,

I am writing flex code to get a text box which will auto suggest the
user (similar to goggle suggest),the data for autosuggestion have to
come from the xml file. any idea to how can i do that??
Will be helpful if u can provide a link to resources for doing the
same.

Regards
Saurabh
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Anyone using Subclipse 1.4.x in flexbuilder 3 ?

2009-01-27 Thread Jim Hayes
When I last installed subclipse (probably early last year), it seemed to
be recommended advice to use subclipse 1.2, so I followed it.
 
I'm currently having some nasties with this and subversion 1.5 (Which
could well be down to something else rather than subclipse 1.2, I
admit).
 
I'm just wondering if subclipse 1.4 will now work?
 
Any experience, hints or tips are most welcome, many thanks.
 
(I'm using the latest flexbuilder 3.2 by the way, if it makes any
difference)
 
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders]TextLayoutFramework - support for graphics / swfs?

2009-01-20 Thread Jim Hayes
Forgive me for asking, Gordon, but could you give an idea of the status of 
support for tables and lists (li, ol, ul sort of thing) ?
I appreciate you may not be able to comment, but if you are then any 
information would be most welcome.
I had a good look at the pre release on labs and came to the conclusion that I 
might be able to implement something myself,
but thought it might be better to see what came in the next preview or alpha.
Rather than attempt what for me would be quite a testing project (to say the 
least) that could be obsoleted by that release, that's to say.
Many thanks.

* regarding flowing text around images, I thought you might be able to do that 
quite nicely
 with linked containers and some existing flex layout components for a one off 
screen,
but I chickened out completely when it got to putting that into some kind of 
parse-able markup.

-Original Message-
From: flexcoders@yahoogroups.com on behalf of Gordon Smith
Sent: Tue 20/01/2009 21:51
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]TextLayoutFramework - support for graphics / swfs?
 
A1: This is under investigation, but may not make it into TLF 1.0 / Flex 4.0. 
If it gets in, what will be supported will probably be a 'float' attribute on 
the img tag, allowing a graphic within the text to be pinned to the left or 
right of the container -- but vertically positioned based on where it appears 
in the TextFlow -- with the text wrapping around it. Wrapping text around an 
absoloutely-positioned graphic will almost certainly not be supported in the 
first release.

A2: You should be able to set the 'source' of an img to a SWF. A Loader will 
get created to load the SWF. If you haven't specified the width or height, 
they'll be determined by the Loader.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dorkie dork from dorktown
Sent: Tuesday, January 20, 2009 2:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders]TextLayoutFramework - support for graphics / swfs?


Q1
I saw that there is support for inline graphics but is there support for 
wrapping text around an image?

Q2
Is there support for an inline swf?



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Problems with POST or GET

2009-01-19 Thread Jim Hayes
It used to be the case that Internet Explorer would refuse to do
anything with GET requests sending data over a certain length, which
mystified me for a while a couple of years ago since everything worked
fine with firefox. It just failed very quietly, no errors raised at all.
Changing to POST fixed it, but I can't really remember the details now
I'm afraid. 
This issue did get added to the livedocs after I posted it there, but
memory fails me as to which topic, exactly.
I'm not sure if this is what you're after?
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markgoldin_2000
Sent: 19 January 2009 15:00
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problems with POST or GET
 
Are there any known problems with HTTPService, resultFormat = e4x 
when the service would not go into result listener?

Thanks
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Saving data permanently to Sqlite DB

2009-01-17 Thread Jim Hayes
It's not the case that the database in /src/assets is getting copied to 
/bin-debug/src/assets and the changes made to that copy, is it?
Just a thought, I've not really checked your code in any detail at all.
If you're using a db file path relative to the application and you left the 
compiler settings as is then this may well be the case.
It's worth noting that some OS's (e.g Vista) won't allow you to change files in 
the application directory in any case, so you should be copying the db to the 
users application storage  directory if you're to avoid problems with a 
published app.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of beriahotep
Sent: Sat 17/01/2009 08:32
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Saving data permanently to Sqlite DB
 
Hi, 

I am having alot of trouble saving data to an Sqlite db. I have no
trouble, loading data, however commiting changes permanently seems to
fail. 

I am using a delegate for the table. The code to execute any
sqlStatement is:

private function executeSQL(sqlStatement:SQLStatement):void{
   if(sqlStatement != null){
  sqlStatement.addEventListener(SQLEvent.RESULT, responder.result);
  sqlStatement.addEventListener(SQLErrorEvent.ERROR, responder.fault);
  sqlStatement.sqlConnection = storyHelperConn;
  sqlStatement.execute();
   }
}

public function UpdateStory(story:StoryVO):void{
   try{
  if(!isDBOpen){
 openDatabase();
 var sqlQuery:String = update stories set title = :titleText,  +
where id = :id;
  sqlStatement = new SQLStatement();
  sqlStatement.text = sqlQuery;
  sqlStatement.parameters[:titleText] = story.title;
  sqlStatement.parameters[:id] = story.id;
  sqlStatement.itemClass = StoryVO;
  executeSQL(sqlStatement);
   }catch(e:Error){
  trace(Story Delegate Update Story error: +e.message +   +
e.toString());
   }
}

The database is stored in src/assets. I get no errors. When debuging i
can view the parameters, and they contain all the correct data. 
Ive been pouring over various help sites and tutorials without success. 

Can anyone suggest anything to look for? Possible uncaught errors, etc? 

Regards,
Beriah






__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Get html source code of mx.controls.HTML control (AIR)

2009-01-10 Thread Jim Hayes

yourHtmlComponentInstance.htmlLoader.window.document.documentElement.outerHtml

(probably!)

-Original Message-
From: flexcoders@yahoogroups.com on behalf of thedauntless_ff
Sent: Sat 10/01/2009 15:42
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Get html source code of mx.controls.HTML control (AIR)
 
Hi,

Situation: I've loaded a webpage into the mx:HTML / control and it
displays just fine. What I want now, is the sourcecode of the loaded
document, without loading the document again. Is this possible ?

I found this tutorial:
http://labs.adobe.com/wiki/index.php/Apollo:Articles:Using_HTML_in_Flex-based_Apollo_Applications

And it's talking about a JavaScriptObject class located in flash.html.
I am however unable to find this class... The examples in this
tutorial would be perfect, if only I would have suck a
JavaScriptObject class...

Any suggestions ?

Greetings,
Jeroen Beckers



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Re: Installation on multiple machines (was: Flex Builder 3 on Mac and Win at same time?)

2009-01-09 Thread Jim Hayes
I don't believe it does (Though I could be wrong). It may require a file
share on the server however, but not that it be the same machine.
I gave up on those server settings in FB though, they wound me up a
treat :-(
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Blair Cox
Sent: 09 January 2009 15:59
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Installation on multiple machines (was:
Flex Builder 3 on Mac and Win at same time?)
 
I only thought I required the Windows version because when you start a
new project and select ASP.net as the server, it requires the dev server
or IIS to be local. I would like to stay away from third-party add-ins
for communicating with the ASP server. I have to follow the rules of the
client's IT department. Minimal boat rocking here.

How about WSDL?

-- 
Blair 






From: valdhor valdhorli...@embarqmail.com
Reply-To: flexcoders@yahoogroups.com
Date: Fri, 09 Jan 2009 15:43:55 -
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Installation on multiple machines (was: Flex
Builder 3 on Mac and Win at same time?)

 
 

You can use the Mac version of Flex Builder to build a SWF that
connects to ASP.NET using WebORB.

Why do you need the Windows version of Flex Builder?
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Drag-n-dropping images from Mac OS to AIR app

2009-01-08 Thread Jim Hayes
You might see if tempImg.url works (assuming it's failing with using 
tempImg.nativepath and not elsewhere).


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Mac Martine
Sent: 08 January 2009 00:27
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Drag-n-dropping images from Mac OS to AIR app

Try this:

if(Capabilities.os.search(Mac) = 0) img1.source = file:// + 
tempImg.nativePath; else img1.source = tempImg.nativePath;

On 1/7/09 1:26 PM, Jeff Hindman jake...@cox.net wrote:

AIR gurus,

The following code in my AIR app works fine on a PC, but not on a
Mac:

protected function handleDragEnter(event:NativeDragEvent):void {
if (event.clipboard.hasFormat
(ClipboardFormats.FILE_LIST_FORMAT)) {
NativeDragManager.acceptDragDrop(event.currentTarget as
InteractiveObject);}
}

protected function handleDrop(event:NativeDragEvent):void {
var temp:Object = event.clipboard.getData
(ClipboardFormats.FILE_LIST_FORMAT);
var tempImg:File = temp[0] as File;
if (tempImg.extension == jpg || tempImg.extension == JPG ||
tempImg.extension == gif || tempImg.extension == GIF ||
tempImg.extension == png || tempImg.extension == 'PNG') {
img1.source = tempImg.nativePath;
img1.maintainAspectRatio = true;
} else {
Alert.show(File is not an image., Oops!);
}

Any clues (or directionts to further research) would be greatly
appreciated.

Thanks!

--jake
}
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] Re: Peculiar Image Behavior!

2009-01-07 Thread Jim Hayes
It almost looks as if it could be one of the early stages of one of
those progressive type jpegs (they load in stages on a web page),
possibly there's something about it that flex does not quite understand.
I forget how you check for this, but it may be worth you finding out and
having a look?
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of tchredeemed
Sent: 07 January 2009 16:18
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Peculiar Image Behavior!
 
It is a JPG, it loads fine in HTML, and it is being loaded into flex
as the source of an Image Object...

Eeep! :)

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

 What's the image type? Does it load correctly if you create a simple
 HTML page with an img tag pointing to it? How is it being loaded
 into Flex (@Embed or just setting the source of an Image object)?
 
 -Alex
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , tchredeemed apthorp@ wrote:
 
  I have noticed a peculiar problem with some images being rendered in
  flex.
  
  This image:
  
  
  
  is being rendered like this:
  
  
  
  I can navigate to the folder the image is in, and I assure you, it
looks
  like the first. This only happens to some images, not all, in
fact its
  the small minority that it does happen to.
  
  Has anyone ever had these issues before?
 

 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] AIR code signing certificate

2009-01-06 Thread Jim Hayes
I think Ryan Stewart(?) posted just the other day that they are the
first to offer a personal cert, so It's my impression that they are
currently the only one to do so.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: 06 January 2009 16:15
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AIR code signing certificate
 
On Saturday 03 Jan 2009, arieljake wrote:
 I am trying to purchase an AIR code signing certificate from Chosen
 Security. ... They are refusing to issue me a

Use someone else ?

-- 
Tom Chiverton
Helping to appropriately improve information
 

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at the
registered office together with a list of those non members who are
referred to as partners. We use the word ?partner? to refer to a member
of the LLP, or an employee or consultant with equivalent standing and
qualifications. Regulated by the Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged. If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents. If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com
http://www.halliwells.com/ .
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Can I detect the flash player version targeted by the compiler ( -target-player ? ) in my code

2009-01-05 Thread Jim Hayes

Apologies if this is a stupid question, but it's late, I'm tired and all out of 
brain cells :(

I have an application with largely common code base that gets compiled to both 
AIR 1.5 (e.g. flash player 10) application and flash player in a web browser.
I keep a separate flexbuilder project for both, each project shares the common 
code as an external code path. Normally I'll just use FB for debugging, to 
compile a release I'll use ANT to pull in varying resources as necessary.

I now wish to add some flash player 10 features (pixel bender, specifically) to 
the AIR app, but keep the online flash player version wholly flash player 9 
compatible.
I'm not yet ready to serve up a different .swf based on the users player 
version, I'm afraid, though I am thinking about it.

So, I've implemented a factory class to provide the relevant classes according 
to the target, but can't quite put my hand on what I should test for.
Capabilities.version gives me run time info about the player version that the 
user has, but not what the swf is compiled for.

What I'd really like is the player version targeted by the compiler (either by 
the compiler argument -target-player or flexbuilder require flash player 
version , if they are different.)

I'm quite tempted to add my own -define argument to the compiler since I'm 
fairly sure that will do what I require, but if there is something already 
there that I can use then I'd prefer to do so.

were I to go with my own define it would look something like this : 

compiler argument something like -define=PLAYERCONFIG::ISPLAYER10,true

and in the factory  something like this :

var imagingClassName:String = Flashplayer9compatibleClass;

PLAYERCONFIG::ISPLAYER10
{
imagingClassName = Flashplayer10compatibleClass;
}

// myClass:object = getClassBydefinition(imagingClassName ), return new 
myClass() etc etc

Failing that, I can still achieve my aim by taking the factory class out of the 
common code for each project and writing an implementation for each version, 
but I was quite keen to go down the conditional route in this instance.

Many thanks in advance for any advice (comments to rtfm are very welcome if 
they come complete with a url or a good hint as to where :) ).
I'm not totally convinced that I'm even heading in the right direction here 
tbh, but at least if I knew how to do this then I could try it out for size.


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] Can I detect the flash player version targeted by the compiler ( -target-player ? ) in my code

2009-01-05 Thread Jim Hayes
The last comment here : 
http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html
looks quite relevant to my question as far as I can tell :

quote
Even better would be if I could use expressions in the conditionals themselves, 
so that I could write in my code:
  
SECRET_NAMESPACE::target-player==9
private function 
  
SECRET_NAMESPACE::target-player==10
private function...
  
Let's hope that this will be made easier in the future. And if that super 
secret namespace exists and someone knows about it, please post it here.

/quote

I'm getting a bit more tempted to go another way whilst I still only have an 
hour or so's (not uninteresting, mind you) work to write off though!


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Jim Hayes
Sent: Mon 05/01/2009 23:31
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can I detect the flash player version targeted by the 
compiler ( -target-player ? ) in my code
 

Apologies if this is a stupid question, but it's late, I'm tired and all out of 
brain cells :(

I have an application with largely common code base that gets compiled to both 
AIR 1.5 (e.g. flash player 10) application and flash player in a web browser.
I keep a separate flexbuilder project for both, each project shares the common 
code as an external code path. Normally I'll just use FB for debugging, to 
compile a release I'll use ANT to pull in varying resources as necessary.

I now wish to add some flash player 10 features (pixel bender, specifically) to 
the AIR app, but keep the online flash player version wholly flash player 9 
compatible.
I'm not yet ready to serve up a different .swf based on the users player 
version, I'm afraid, though I am thinking about it.

So, I've implemented a factory class to provide the relevant classes according 
to the target, but can't quite put my hand on what I should test for.
Capabilities.version gives me run time info about the player version that the 
user has, but not what the swf is compiled for.

What I'd really like is the player version targeted by the compiler (either by 
the compiler argument -target-player or flexbuilder require flash player 
version , if they are different.)

I'm quite tempted to add my own -define argument to the compiler since I'm 
fairly sure that will do what I require, but if there is something already 
there that I can use then I'd prefer to do so.

were I to go with my own define it would look something like this : 

compiler argument something like -define=PLAYERCONFIG::ISPLAYER10,true

and in the factory  something like this :

var imagingClassName:String = Flashplayer9compatibleClass;

PLAYERCONFIG::ISPLAYER10
{
imagingClassName = Flashplayer10compatibleClass;
}

// myClass:object = getClassBydefinition(imagingClassName ), return new 
myClass() etc etc

Failing that, I can still achieve my aim by taking the factory class out of the 
common code for each project and writing an implementation for each version, 
but I was quite keen to go down the conditional route in this instance.

Many thanks in advance for any advice (comments to rtfm are very welcome if 
they come complete with a url or a good hint as to where :) ).
I'm not totally convinced that I'm even heading in the right direction here 
tbh, but at least if I knew how to do this then I could try it out for size.


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System

RE: [flexcoders] flex builder 3 on mini notebooks

2009-01-02 Thread Jim Hayes

I've got an eee901 with that spec, and it's an OK little machine for when I'm 
out and about and want low weight, small size and long battery.
Performance is not so bad for what it is, but I've never bothered running 
flexbuilder on it.
When I started with flexbuilder 2 I ran it on a 1.6 single core pentium m with 
less memory (768 I think) and it was just about bearable, so I don't doubt that 
you could run it.
However, the usual screen size on these netbooks (1024 x 600ish) would make FB 
a real struggle in terms of usability even if you are happy for it to be 
running a little slow.
You can get a cheap 15 laptop with dual core and more memory for not so much 
more these days, if you're going to run FB more than once or twice I think that 
would be a wiser choice.

-Original Message-
From: flexcoders@yahoogroups.com on behalf of hworke
Sent: Fri 02/01/2009 18:09
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex builder 3 on mini notebooks
 


  Hi now a days the stores are full of those $300 to $500
  mini notebooks with intel atom processor and up to 1 GB
  memory. Did any one try to install and use the Flex
  builder 3 on any of those mini laptops? If so how was 
  the performance?

  Regards



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Any Developers on a Mac?

2008-12-29 Thread Jim Hayes
General platform discussions aside, what is it that makes flexbuilder
slightly worse on mac than it is in windows?
I'm considering trying out a macbook pro as my next laptop (been on
windows, sometimes linux, for past ten years or so),
but most of my work is in flexbuilder these days so it would be nice to
know.
Many thanks!
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Josh McDonald
Sent: 29 December 2008 10:44
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Any Developers on a Mac?
 
Kevlar suit... *check*!

It's good. I'm happy with it, many people are. I think it's much better,
many people agree. And many *other* people here will call me a big girl
for thinking so. Which I find hilarious. But this is a well-abused topic
here. Builder is slightly better in Windows. in my opinion everything
else is better on Mac :)

-Josh
On Mon, Dec 29, 2008 at 8:24 PM, composerguru kbmulvih...@gmail.com
mailto:kbmulvih...@gmail.com  wrote:
I'm thinking of converting now that I've dumped Vista... just
wondering what your experience might be and if you recommend the change?

Thanks in advance,
Kevin




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
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
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf
-1e62079f6847 
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups
Links


   (Yahoo! ID required)

   mailto:flexcoders-fullfeatu...@yahoogroups.com
mailto:flexcoders-fullfeatu...@yahoogroups.com 





-- 
Therefore, send not to know For whom the bell tolls. It tolls for
thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com mailto:j...@gfunk007.com 
:: http://flex.joshmcdonald.info/ http://flex.joshmcdonald.info/ 
:: http://twitter.com/sophistifunk http://twitter.com/sophistifunk 
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] mxmlc | Java heap space

2008-12-29 Thread Jim Hayes
In Flexbuilder : windows | preferences | java | installed JREs (select
the JRE), edit, enter something like -Xmx512M in the default VM
arguments field 
Is what has worked for me in the past. 
There may be other ways and other arguments, however (depending on your
scenario, you may not be running ANT from flexbuilder I guess).
I have a feeling that ANT_OPTS may be a more specific way of increasing
memory available to ANT only, no idea if you can set it as above - I'm
very far from expert in these things.
It was extremely annoying at the time, and took me a little while to
work it out even after a good search of the list archives and a general
google (probably due to my ignorance, I have to admit)
Any further explainations/info/links would be read with interest by
myself, for one.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of ivo
Sent: 29 December 2008 21:32
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] mxmlc | Java heap space
 
Hi,

This has come up before. You need to increase the memory available to
Java and Ant. Search the archives for ANT_OPTS

- Ivo
 


From: ilikeflex ilikef...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Monday, December 29, 2008 1:26:26 PM
Subject: [flexcoders] mxmlc | Java heap space
Hi
I am compiling the module and i get the error below
Error: Java heap space
java.lang.OutOfMemo ryError: Java heap space
Any pointer?
target name=compileNavigation
mxmlc file=${navigation. src}\NavigationM odule.mxml
failonerror=true output=${navigation. output} fork=true 
compiler.include- libraries dir=${navigation. lib} append=true 
include name=VisualGraph. swc/
/compiler.include- libraries
compiler.include- libraries dir=${sowLibrary. lib} append=true
include name=ria_msflexlib_ flex3.swc/
include name=Cairngorm.swc/
/compiler.include- libraries
compiler.include- libraries dir=${sowLibrary. bin} append=true
include name=sowLibrary.swc/
/compiler.include- libraries
/mxmlc
/target
 
Thanks
ilikeflex
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Is Flex the wrong technology for widgets? SWF file sizes are too big...

2008-12-16 Thread Jim Hayes
 (so I don't know) how small I could get the file size for a comparable
solution in Flash.
 
Is that the question that you really wanted the answer to?
 
The answer to that will depend on what your widget actually is/does.
Without knowing that, I don't see how anyone can really offer an opinion
on the likely fize size savings.
 
If you could post a url for what you have then it would probably help
you get a more useful answer.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of devenhariyani
Sent: 17 December 2008 01:10
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is Flex the wrong technology for widgets? SWF file
sizes are too big...
 
Hey guys,

I recently posted a thread on a popular widget platform site to get 
developer feedback. Basically, I've created a widget using Flex 
technology, and since I cannot get the SWF file size down to a size  
100KB I'm wondering if Flex was the wrong technology for my project. 
I'm not very familiar with Flash, so I don't know how small I could 
get the file size for a comparable solution in Flash. Below is the 
original thread.

---

I've created a widget using Adobe's Flex technology which has a SWF 
file size of approx. 350KB. I've optimized the widget using all the 
techniques I could find such as: compiler flags, not embedding assets 
into the SWF, dynamic loading of modules, etc.

Assuming 350KB is the smallest I can get my SWF file, is this still 
too big to distribute as a widget? 

Here are two distribution strategies we are looking at:

1.) Put the widget on a majority of the pages on our website so when 
users come to our website they will see the widget and download it. 
This will be great for distribution, but currently, our website gets 
a good deal of traffic (Alexa top 10,000 ranking website). And, all 
of the pages on our website are around 60-150KB, and there is a lot 
of worry that a 350KB widget will weigh down the page too much and 
make it very slow when loading. There is also concern that adding an 
additional 350KB will greatly impact our bandwidth costs since many 
users will hit these pages.

2.) Create a widget gallery on our website where our users can go 
to grab the widget and put it on their MySpace, Facebook, etc. This 
will keep the rest of the pages on our website light and fast, but 
the distribution of the widget will get severely impacted.

I want to know what other developers are doing in similar situations.

Is Flex the wrong technology for creating widgets? What are some avg 
size SWF files that other widget developers are creating? If a 150KB 
page has an additional 350KB flex widget, is it going to greatly 
impact the loading time?

Thanks in advance for your advice!
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Re: How do I include a file in the AIR app-storage directory at install time?

2008-12-15 Thread Jim Hayes
If you're using flexbuilder to package, then probably the easiest way is
to check copy non embedded files to output folder in project |
properties | flex compiler,
But I find this to be a bit messy at times.
If not, then you can kind of cheat. When you publish your .air file, it
will offer you the choice of files to include in the archive.
If you click back at this point then you have the opportunity (outside
of flexbuilder) to copy any files you need to the bin-release folder
that gets temporarily created as part of the publishing operation. Back
in flexbuilder, click next again and you'll be back in the stage where
you can specify files to include, but now you'll have the opportunity to
select the files you just copied to bin-release.
 
This, however, gets old pretty quickly! 
 
I now have an ant build script that packages everything up for me,
without having to think / remember to copy certain files.
 
I'm not sure if my script is generic enough or even clear enough to be
much help to anyone though, to be honest I found it quite hard work to
get it all working from a nil level of ant knowledge/experience.
If there's anything specific you need to ask on that, however, then I'll
do my best (Though I'm sure many people on the list are better qualified
than myself in that respect).
 
In regard of copying it over, you'll need to check if the file is there
when the app starts, and copy it if not. There's not any scripting in
the Air installer itself.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim Boone
Sent: 15 December 2008 13:36
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How do I include a file in the AIR app-storage
directory at install time?
 
I read what you say, but I don't know how to do that. How do I include
it as part of the install? How do I copy it over? Does the AIR install
include some sort of scripting?

Also, on doing more research, I have found that it is not wise to
include files that I am talking about in app-storage and that perhaps
the user directory is more appropriate.

http://blogs.adobe.com/simplicity/2008/06/dont_write_to_app_dir.html
http://blogs.adobe.com/simplicity/2008/06/dont_write_to_app_dir.html 

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

 include it in the application directory as part of the instal and
copy it
 over if it does not exist.
 
 On Mon, Dec 15, 2008 at 5:22 AM, Jim Boone j...@... wrote:
 
  Hi,
 
  I am new to AIR and I am writing an application that needs access to
a
  new SQLite database when the user first launches the application. I
  have considered two options. I could create an empty SQlite database
  and include it in the app-storage directory when the application
  installed or I could include an SQL schema file in app-storage and
  create the database when the user launches the app. Either way, I
want
  to be able to include an file the the application directory at
install
  time. I have researched how to do this with no luck. Does anyone
know
  how I can accomplish this? Thanks!
 
  Jim
 
  
 
 
 
 
 -- 
 j:pn
 \\no comment

 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Adobe air group?

2008-12-14 Thread Jim Hayes
apollocod...@yahoogroups.com

It's fairly quiet though.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of flexaustin
Sent: Sun 14/12/2008 16:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe air group?
 
Does anyone know of there is an Adobe Air group on yahoo groups?  I can't find 
one but then 
Yahoo search sucks. 






__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Flex Builder caching PNGs

2008-12-09 Thread Jim Hayes
From what I can tell FB will not detect changes in files (images, and I
believe css files) by itself, so if you change one then run/debug it
will think nothings different and just show the last compiled version.
 
When I'm doing stuff like that, I've got into the habit of just
adding/deleting a space character to one of the mxml or .as files in the
project, which FB will then notice and force a recompile that *does*
update the resource in the build. It's at least easier than renaming a
whole file.
 
If there's a better way then I'm unaware of it I'm afraid. It does still
catch me out from time to time.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tom s
Sent: 09 December 2008 13:27
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder caching PNGs
 
I'm @Embedding some PNGs to skin some buttons. 
If I Run once, then edit the PNG file, then Run again I get the old PNG
(w/o the edits), not the new one. 
My current work-around is to rename the file after each change, but this
is a pain. 
 
How do I get Flex Builder to not cache the PNGs / to check for changes
on each compile?
 
thanks
 
tom
 
 
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] AIR - Including an Image in mx:html using htmlText

2008-12-01 Thread Jim Hayes
It works absolutely fine for me! Using the html string you have below in a bare 
bones mxml project.
Anything else you should mention?


-Original Message-
From: flexcoders@yahoogroups.com on behalf of langdonjared
Sent: Sun 30/11/2008 16:10
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR - Including an Image in mx:html using htmlText
 
How does one reference files like images when using an mx:html tag and
the htmlText property? Here's the basic idea:

private var strHtmlText:XML =
html
head
titleTest/title
/head
body
img width=100px height=100px alt=image src=foo.jpg /
/body
/html
...
mx:HTML width=800 height=800 htmlText={strHtmlText.toString()} /

This doesn't work. The image doesn't appear but the alt text does. I
tried playing with the value in the src attribute of the image object
in the html string to no avail. I tried app:foo.jpg, app:/foo.jpg,
app://foo.jpg, and /foo.jpg. I event tried @Embed(source='foo.jpg'). I
have copies of foo.jpg in the project root, the src directory, and in
bin-debug. Nothing works. I feel a bit silly posting this because it
must be obvious, but I've searched and searched for the answer with no
luck. Thanks.



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Window on First Run of Application

2008-11-27 Thread Jim Hayes
Not the only way to do it, but I just write a file in the app storage directory 
:


private function isFirstRun():Boolean
{
var firstRun:Boolean = false;
var firstRunFile:File = 
File.applicationStorageDirectory.resolvePath(firstrun.txt);   
if (!firstRunFile.exists)
{
firstRun = true;
}
//testing only - you can set this preference in the 
CARTMAN window.
if (!firstRun)
{
firstRun = appModel.prefsManager.alwaysShowEula;
}

return firstRun;
}

and somewhere else ...

// write the firstrun file here
var firstRunFile:File = 
File.applicationStorageDirectory.resolvePath(firstrun.txt);
var stream:FileStream = new FileStream();
stream.open(firstRunFile,FileMode.WRITE);
stream.writeUTFBytes(eulaShown);
stream.close();

You can ignore the bit commented with testing only, but it can be handy to 
have an option to always show the licence agreement.




-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
bobby_world
Sent: 27 November 2008 12:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Window on First Run of Application

I want to create a Software Registration Window that pop up on the 
first time a user starts an Application in AIR. Is this possible and 
how would I go about doing this?

Thanks
Bobby
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] The Online Flex Builder!

2008-11-24 Thread Jim Hayes
John Grden had one quite a while back, not seen any news on it for a while 
though. The name of it escapes me for now I'm afraid.
try http://www.rockonflash.com, somewhere near the beginning of the archives I 
would think.




-Original Message-
From: flexcoders@yahoogroups.com on behalf of Cato Paus
Sent: Mon 24/11/2008 19:20
To: flexcoders@yahoogroups.com
Subject: [flexcoders] The Online Flex Builder!
 
Hi all, I remeber taht someone did create a FlexBuilder in a
flash-application, but I'cant remeber where, someone have the url ?



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Embedding Flash Player

2008-11-21 Thread Jim Hayes
How easy was it to get the licence to distribute the flash player?
Anecdotally, I'd heard this was rather hard to do in practice, but maybe
this has changed since I last enquired a couple of years back.
This has always been a stumbling block for various solutions I've tried
over the years.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Mathews
Sent: 21 November 2008 15:48
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Embedding Flash Player
 
You can get a license to distribute the installer from Adobe. Then just
silently install the player you need when installing your application.
Unless there is something I don't know about the 'Plugin' version of the
installer. We are doing exactly this but we are targeting windows only
(C# app + Flash 9 ActiveX msi).
 
Steve
On Fri, Nov 21, 2008 at 3:48 AM, Jules Suggate [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:
Hi list, long-time-no-post :)

I've a gnarly one here.

I contract to a VC funded startup formed to create a cross-platform
desktop client. Unfortunately AIR's APIs are not low-level enough (e.g.
you can't burn a CD with AIR). We've looked at Zinc, Shu Player, Janus
and the rest but Zinc and Janus don't support MacOS very well and the
legal issues around Shu Player make us wary of using it. This is a
consumer-facing app and needs to be squeaky clean.

How about embedding the NPAPI FP10 in a Java process? That would be
cross-platform, and we could use NPRuntime to interact seamlessly from
Java.

The Flash Player license allows us to automate download of the FP10
installer, however these are the problems we still face:
* If a user doesn't have the player installed, there will be a
two-step install process (one for the player, one for our app), which is
sooo 90s
* We can't legally change the install location of the NPAPI
plugin, so if we automate downloads of the NPAPI FP10 and the user
doesn't have Mozilla installed it's unclear what we should do
* Not sure if we can specify the kind of Player (NPAPI vs
ActiveX) to download from adobe.com if the user is on Windows
Even for the base case (a user with Mozilla and the NPAPI FP10 plugin
installed prior to install of our app), should we talk this over with
Adobe legal?

Has anyone heard of Adobe entering into custom licensing agreements for
this kind of thing (and I mean, actual bonafide true stories, not
conjecture based on Adobe's licensing page making passing reference)?

Hope this hits someone's cache!

Cheers,
Jules
--
Jules Suggate
Owner and Technical Lead
Uphill Sprint Limited

+64-21-157-8562


 
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] How to SelectAll entries in List

2008-11-20 Thread Jim Hayes
or similarly, but slightly different and with an assumption on the type of 
dataprovider. I'm sure there must be a better way though? I missed it if so.

   mx:Script
![CDATA[
private function selectAll():void
{   
var selectedIndexArray:Array = new Array();
for (var i:int=0;imyItems.length;i++)
{
selectedIndexArray.push(i);
}
myList.selectedIndices = selectedIndexArray;
}
]]
/mx:Script
mx:List id=myList width=200 x=10 y=10 
allowMultipleSelection=true height=91
mx:Array id=myItems
mx:Stringtest1/mx:String
mx:Stringtest2/mx:String
mx:Stringtest3/mx:String
mx:Stringtest4/mx:String
mx:Stringtest5/mx:String
mx:Stringtest6/mx:String
mx:Stringtest7/mx:String
/mx:Array
/mx:List
mx:Button label=Select All click=selectAll()  y=109 x=10/




-Original Message-
From: flexcoders@yahoogroups.com on behalf of Josh McDonald
Sent: Thu 20/11/2008 22:55
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to SelectAll entries in List
 
Code:

var all : Array;

if (myList.dataProvider is Array)
{
  all = myList.dataProvider.concat();
}
else
{
  all = [];
  for (var o : * in myList.dataProvider)
  {
all.push(o);
  }
}

myList.selectedItems = all;

Note that you might want to use myList.dataProvider.source() if it's a
collection of some sort, but that could backfire when sorts or filters are
applied. It might not, I haven't checked through the source or tested it,
but it might. YMMV, etc :)

-Josh

On Fri, Nov 21, 2008 at 8:32 AM, anuj181 [EMAIL PROTECTED] wrote:

 Hi Guys
 In the list allowMultipleSelection allows me to select multiple
 entries of the list box. How would i implement the 'Select All'
 functionality, I need all the entries of the list to be selected if I
 click on the button. Pls let me know
 Thanks in advance
 Anuj


 

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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Re: May I save BitmapAsset instance to database?

2008-11-19 Thread Jim Hayes
I seem to remember that Peter Elst said something about saving video in air at 
the london flex camp thing(?) a few months back, though I could be wrong.
You might want to check his blog and see if you can find some notes or other 
information.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of markflex2007
Sent: Wed 19/11/2008 21:50
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: May I save BitmapAsset instance to database?
 
Hi Michael,

Thanks.

Would you please give me an idea how to save Video or Audio data to
database like saving image with ByteArray.

Thanks

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

 Your question is a bit vague, but I'll try and be of some help.
 
 You can use the ImageSnapshot class to get the ByteArray the backs
 your image. Then you can store those bytes in a database and pull them
 up later.  If you're building an AIR application and saving the image
 to a local database you'll want to read up on the SQL utilities
 available to you here:
 
 http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html
 
 If you're building a browser app you can pass the ByteArray to a
 webservices or a remote object that will store the image in a database.
 

http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
 
 If you can be more specific about your problem, we can provide more
help.
 



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

[flexcoders] flexbuilder 3.02 update gives AIR error : error while loading initial content FIXED

2008-11-19 Thread Jim Hayes
Seems to be caused by a now outdated yourApplication-app.xml (appDescriptor?) 
file .

replace the second line : application 
xmlns=http://ns.adobe.com/air/application/X.X; 

with : application xmlns=http://ns.adobe.com/air/application/1.5; 

which was pretty much what I expected, but it's still a pretty unhelpful error 
message and had me worried for a few minutes,
so hope this post helps out anyone with the same problem if they update 
flexbuilder and see the same.

It's worth noting that I did specifically change the flex SDK to 3.2 in the 
project settings, it had stayed with the previous 3.1 (post update to FB 3.02), 
so maybe most people will have no problem.





__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] Flex interview questions

2008-11-18 Thread Jim Hayes
Search the archives of this list, there was a long thread on it earlier
this year, as I recall.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of saritha
Sent: 18 November 2008 11:43
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex interview questions
 
Hi..
Can u plz tell me where can i find flex Interview Question?
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Re: Actionscript SSH Library..heard of any?

2008-11-14 Thread Jim Hayes
Could you use the webkit browser in AIR to do the SSL connection?
I don't think it needs to be visible to work.
Just an idea, and It's probable I've not understood the reasons the project 
managers want to use AIR.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of r.fender
Sent: Fri 14/11/2008 18:55
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Actionscript SSH Library..heard of any?
 
Yep, that's the complication that scares me. I have an application that runs in 
an 
embedded device. Currently, it is browser based, running through SSL, using 
AMFPHP to 
execute shell_exec() commands to run low-level Unix scripts to configure the 
devices.

The project managers now want to remove the app from the browser and use AIR, 
and 
connect via a binary socket to call and run those UNIX scripts. I have all the 
root access 
permissions I need. But using a secure connection like SSH would be the cat's 
meow. I can 
currently do everything I need through sockets with Telnet but there is no 
security layer on 
it (that I know of) and that just isn't gonna fly with the execs.
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Thursday 13 Nov 2008, r.fender wrote:
  Just thought I'd throw that question out there to see what you all know.
 
 SSH is really, really, complicated.
 What are you trying to achieve ?
 
 -- 
 Tom Chiverton
 Helping to synergistically enhance functionalities
 
 
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under 
registered number OC307980 whose registered office address is at Halliwells 
LLP, 3 
Hardman Square, Spinningfields, Manchester, M3 3EB.  A list of members is 
available for 
inspection at the registered office. Any reference to a partner in relation to 
Halliwells LLP 
means a member of Halliwells LLP.  Regulated by The Solicitors Regulation 
Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above and may 
 be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and 
must not use any information contained in nor copy it nor inform any person 
other than 
Halliwells LLP or the addressee of its existence or contents.  If you have 
received this email 
in error please delete it and notify Halliwells LLP IT Department on 0870 365 
2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.






__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Question on how to find out what something is.

2008-11-10 Thread Jim Hayes
getQualifiedClassName() in flash.utils should tell you what the object is, I 
think, and to pass in any completely unknown object type your parameter should 
be typed as object.
If you only expect a few types to be passed as a parameter then I'd just test 
them with the is keyword and then cast the object as such. Or a cast as 
would return null if it failed.
I'm not all that sure what you're trying to achieve though, I have to admit, so 
this could be a bit off from what you're looking for.

-Original Message-
From: flexcoders@yahoogroups.com on behalf of timgerr
Sent: Mon 10/11/2008 23:01
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question on how to find out what something is.
 
So I have this form
mx:Form id=One
  mx:FormItem label=First
 mx:TextInput id=first/
  /mx:FormItem
/mx:Form

so I have this function 
init():void
{
  trace(One.getChildren().length)
}

My question is what is One, what kind of component or object is it. 
This is what I mean;

I take the same form and add a creationcomplete to it:
mx:Form id=One creationcomplete=init(somthing)
  mx:FormItem label=First
 mx:TextInput id=first/
  /mx:FormItem
/mx:Form

In the above example I pass something into init (init(something), what
is that something?  I am not sure how to declare it?

init(this:NotSureWhatItIs)
{
  trace ???
}

If I do an object I do not have access to getChildren().

What do I do?
Thanks for the help
timgerr



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Re: show local image in AIR application.

2008-11-07 Thread Jim Hayes
You won't get anything from _loader.content *until* it's COMPLETE event fires, 
so add a listener for that and get it's content in the function you define in 
that listener.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of markflex2007
Sent: Fri 07/11/2008 19:57
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: show local image in AIR application.
 

I try this but I can not get bitmap.why?Thanks for help.

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 mx:Script
![CDATA[

 import flash.filesystem.File;  
 import mx.controls.Alert; 
 
 private var _loader:Loader;
 private var _importFile:File;
 private var _bitmap:Bitmap;
 private var _bitmapData:BitmapData;
   
 private function browseFile():void  
 {  
 _importFile = new File();  
 _importFile.addEventListener(Event.SELECT, openOutput);  
 _importFile.browseForOpen(Select a File,[new
FileFilter( Image File, *.jpg;*.jpeg; )]);  
 }  
   
 private function openOutput(e:Event):void  
 {  
 fileloc.text = e.target.nativePath;
 //
 _loader = new Loader();
 _bitmap = new Bitmap();
 
 _loader.load( new URLRequest(_importFile.url ));
 
 _bitmap = _loader.content as Bitmap;
 _bitmapData = _bitmap.bitmapData;
}  


]]
/mx:Script


mx:TextInput width=289 x=10 y=3 id=fileloc /  
mx:Button click=browseFile() label=Browse for File x=10
y=46 /  
 
  
 /mx:WindowedApplication




__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] AIR application installation error XP

2008-11-06 Thread Jim Hayes
Check the free disk space on the XP machine first. The .air file needs
to have space into which to expand it's contents before the actual
installation.
That's the most common source of failure in my experience, though it
could be many other things and is not necessarily the problem in this
case.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: 07 November 2008 00:57
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR application installation error XP
 


Hi, I developed a simple application with
the latest version of Flex builder on a
Vista machine. The .air file of this app
installs fine on Vista machines but does
not install on windows XP machine!! It says
that the file is corrupted!! Any ideas?


 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Flex application keyboard language!?

2008-11-03 Thread Jim Hayes
Does it happen in pure html pages as well? In firefox?
I had this happen due to accidentally hitting some key combo that
changed the default keyboard setting *in the browser*.
Trouble is, I've completely forgotten what it was (again). Sorry about
that.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joyfulrodger
Sent: 03 November 2008 15:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex application keyboard language!?
 
Hi there,

Im sure this is a fairly simple issue to resolve, but i just cant 
seem to get it. 

The text inputs within my flex application have the at(@) sign and 
the quotation mark() sign mixed up. When i press ctrl 2 i get the @ 
sign when i should be getting the quotation marks and vice versa.

Does anyone know how to resolve this?

Many thanks,

Dave

P.S. Its not an issue with my operating system, i am using the 
correct keyboard layout. Other flex applications i have developed 
dont have this issue.
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Flex application keyboard language!?

2008-11-03 Thread Jim Hayes
It's ALT-SHIFT (I needed to know!)
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Hayes
Sent: 03 November 2008 15:39
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex application keyboard language!?
 
Does it happen in pure html pages as well? In firefox?
I had this happen due to accidentally hitting some key combo that
changed the default keyboard setting *in the browser*.
Trouble is, I've completely forgotten what it was (again). Sorry about
that.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joyfulrodger
Sent: 03 November 2008 15:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex application keyboard language!?
 
Hi there,

Im sure this is a fairly simple issue to resolve, but i just cant 
seem to get it. 

The text inputs within my flex application have the at(@) sign and 
the quotation mark() sign mixed up. When i press ctrl 2 i get the @ 
sign when i should be getting the quotation marks and vice versa.

Does anyone know how to resolve this?

Many thanks,

Dave

P.S. Its not an issue with my operating system, i am using the 
correct keyboard layout. Other flex applications i have developed 
dont have this issue.

__
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office:
4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W
5PA, UK. VAT registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received it
in error, please contact the sender immediately by return e-mail or by
telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not
disclose its contents to any person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
__


 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Loading an image dynamically and making it a BitmapAsset

2008-10-30 Thread Jim Hayes
Can you not add a Bitmap to the sprite ?
 
So (entirely off the top of my head) :
 
function imgLoaded(e:Event):void{  
var eventImg:Bitmap = new Bitmap( imgLdr.content as BitmapData)
eventImg.smoothing = true;
eventImg.setActualSize(300, 200);
sheet.addChild(eventImg);
}


 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jayson
Sent: 30 October 2008 03:49
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading an image dynamically and making it a
BitmapAsset
 

I am using BitmapAssets to add to a sprite which is printed using
PrintJob.

[Embed(source=images/logo.png)]
[Bindable]
public var logo:Class;
...
var bitmapImg:BitmapAsset = new logo() as BitmapAsset;
bitmapImg.smoothing = true;
bitmapImg.setActualSize(500, 42);
sheet.addChild(bitmapImg);

This works fine when the image to be added is embedded. Some images I
need to add dynamically. How would I do this?

I've tried using a Loader and doing something like this:

var imgLdr:Loader = new Loader(imgURLReq);
imgLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded);

function imgLoaded(e:Event):void{ 
var eventImg:BitmapAsset = new BitmapAsset;
eventImg.bitmapData = imgLdr.content as BitmapData
eventImg.smoothing = true;
eventImg.setActualSize(300, 200);
sheet.addChild(eventImg);
}

I think I need to do something similar to the static method by loading
the image with a Loader and casting it as a Class, but this is not
working out for me.

Any ideas?

Thanks!

Jayson
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Dynamicaly loading of images

2008-10-30 Thread Jim Hayes
I seem to remember the image component does that.
You might try Ely Greenfields (?) superImage component instead, as I
remember it keeps it's own cache.
Or find a way to load them with a Loader and store their BitmapData
somewhere. The trick is to do something like this when the Loader
completes

var yourImageData:BitmapData = loader.content as BitmapData;

Hope that helps,

Jim.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alexander Baetz
Sent: 30 October 2008 16:59
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamicaly loading of images

Hi,

for a special tool i want to display buttons with icons that where 
loaded at runtime (based on an xml document loaded at runtime)
in adobe livedocs i read that i cant load icons at runtime.

To workaround that i switched to Images in buttonmode. But everytime the

displayed image changes because i changed the source attribute (for 
example when my button is disabled) there is a timegap and the image 
is empty.
This happens even i used the same source-url before.
My guess would be that my application forgetts the imagedata if no 
object uses it anymore and therefore loads the url again.

So im looking either for a way to store the imagedata and supply it to 
my Button when necessary.

Greetings,
Alexander





--

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




__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] Invalid Embed directive

2008-10-29 Thread Jim Hayes

It can be confusing as to where the file thinks it is at compile time - in fact 
I remain fairly confused about it :(
You might try /global/media/flowers.jpg or ./global/media/flowers.jpg if 
you need to go up a directory then ../ works fine.

-Original Message-
From: flexcoders@yahoogroups.com on behalf of oneworld95
Sent: Wed 29/10/2008 19:56
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Invalid Embed directive
 
Hi. I've got a Style tag with the following style in it,

Application {
  background-image: Embed(source=global/media/flowers.jpg);
  }

I keep getting the Invalid Embed directive in stylesheet - can't
resolve source. I know the image exists and is at that path. Help!



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] AIR write file - prepended with irregular character

2008-10-28 Thread Jim Hayes
I've seen this. I think it's maybe a BOM (Byte Order Marker ).
Something that more technical people than myself know about,if I'm even correct 
about that. I may not be.

There are two ways to write the text from AIR(writeUTFBytes  and e the 
other one, sorry to be vague, I might not even have the first one correct)
Use the other one from that which you are using (at least, that's what I did to 
avoid this problem).
I'm away from my normal PC at the moment, or I could give you a proper answer, 
sorry about that.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Ben Marchbanks
Sent: Tue 28/10/2008 19:11
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR write file - prepended with irregular character
 
I am creating XML files to File.applicationStorageDirectory and the
file gets created without error.

Unfortunately there is an irregular character at the beginning of the
file contents which does not exist in the XML.

How can I prevent this ?

òOpenShipments xmlns=x-schema:OpenShipments.xdr

should be
OpenShipments xmlns=x-schema:OpenShipments.xdr




__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] AIR write file - prepended with irregular character

2008-10-28 Thread Jim Hayes
I was almost certainly wrong about the BOM thing.
The docs say :

writeUTF () method   

public function writeUTF(value:String):void 

Writes a UTF-8 string to the file stream, byte stream, or byte array. The 
length of the UTF-8 string in bytes is written first, as a 16-bit integer, 
followed by the bytes representing the characters of the string. 

So I think those chars you see at the beginning are the length information from 
using writeUTF().

Try using writeUTFBytes() instead?


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Jim Hayes
Sent: Tue 28/10/2008 21:06
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] AIR write file - prepended with irregular character
 
I've seen this. I think it's maybe a BOM (Byte Order Marker ).
Something that more technical people than myself know about,if I'm even correct 
about that. I may not be.

There are two ways to write the text from AIR(writeUTFBytes  and e the 
other one, sorry to be vague, I might not even have the first one correct)
Use the other one from that which you are using (at least, that's what I did to 
avoid this problem).
I'm away from my normal PC at the moment, or I could give you a proper answer, 
sorry about that.

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  on 
behalf of Ben Marchbanks
Sent: Tue 28/10/2008 19:11
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] AIR write file - prepended with irregular character

I am creating XML files to File.applicationStorageDirectory and the
file gets created without error.

Unfortunately there is an irregular character at the beginning of the
file contents which does not exist in the XML.

How can I prevent this ?

òOpenShipments xmlns=x-schema:OpenShipments.xdr

should be
OpenShipments xmlns=x-schema:OpenShipments.xdr

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

 


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] Re: mouse wheel behaviour mxml and actionscript based components

2008-10-23 Thread Jim Hayes
The mouse wheel events are not getting eaten by the browser before they
get to your swf, are they?
Perhaps due to some difference in the html embed code?
(I've not seen this happen, but what you describe sounds odd)
 
I'm wondering what happens if you were to try publishing your test file
as AIR, or perhaps try a different browser ?
It might at least help eliminate the possibility?
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fotis.chatzinikos
Sent: 23 October 2008 12:45
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: mouse wheel behaviour mxml and actionscript
based components
 
This is driving me nuts!

Go here:
http://examples.adobe.com/flex3/componentexplorer/explorer.html
http://examples.adobe.com/flex3/componentexplorer/explorer.html 

open visual components-general controls-Tree

mouse wheel works!

copy paste the code in a new flex (3) project, run the project, NO
MOUSE WHEEL functionality...

Any ideas?

Can somebody (Mike are you there? :-) have a look at the previous post
code and see if there is something wrong with my mouse_wheel handler?

Anybody from adobe?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Fotis Chatzinikos
[EMAIL PROTECTED] wrote:

 Mike, thinks for the reply, here is some code:
 
 From the following code we are interested in the following line:
 
 t.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelTreeListener)
 ;//noluck
 
 is there something wrong with what you see? The alert is never called
 
 TIA,
 Fotis
 
 
 private function
mouseWheelTreeListener(event:MouseEvent):void
 {
 Alert.show(wheel);
 }
 
 //tree code:
 
 var c:Canvas = new Canvas();
 
 c.label = a string;
 c.width = 185 ;
 c.horizontalScrollPolicy=ScrollPolicy.OFF ;
 c.verticalScrollPolicy=ScrollPolicy.OFF ;
 c.percentHeight = 100 ;
 
 var t:Tree = new Tree() ;
 t.width = c.width ;
 t.percentHeight = 100 ;
 t.setStyle(backgroundColor,0xFF) ;
 
 t.dataProvider = categories.getItemAt(i).children
 ;//some tree data
 t.addEventListener(ListEvent.CHANGE,categoryChanged)
 ;//works
 t.addEventListener(MouseEvent.MOUSE_WHEEL,
 mouseWheelTreeListener) ;//noluck
 c.addChild(t);
 
 categoriesAccordionID.addChild(c);
 
 On Tue, Oct 21, 2008 at 7:33 PM, Michael Schmalle
 [EMAIL PROTECTED]wrote:
 
  Hi,
 
  No, it's automatic.
 
  Without an example I can't help. :)
 
  Mike
 
 
  On Tue, Oct 21, 2008 at 12:01 PM, fotis.chatzinikos 
  [EMAIL PROTECTED] wrote:
 
  Hello Michael,
 
  i just tried your suggestion and i still do not get the mouse
wheel to
  scroll the tree. I also did a quick test to see if it will work on
an
  mxml based tree control and surprisinly it does not scroll
 
  Do i remember something wrong? I thought i have seen some trees
scroll
  without writting any special code...
 
  Do i need to implement listeners to get the tree to scroll via
mouse
  wheel? I thought it was automatically done... :-(
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  flexcoders%40yahoogroups.com,
  Michael Schmalle
 
  teoti.graphix@ wrote:
  
   Hi,
   Usually the reason for no mouse wheel events is a lack of
background
  color.
  
   Can you give some examples (mxml/as) of what 'doesn't' work for
you?
  
   Anyway, you need a background color for the control to
broadcast mouse
   wheel events.
  
   Other than that it's just a guess what the problem could be
without an
   example.
  
   Mike
  
   On Mon, Oct 20, 2008 at 7:03 PM, fotis.chatzinikos 
   fotis.chatzinikos@ wrote:
  
Hello all,
   
any ideas what is the expected behaviour of the mouse wheel in
  flex apps?
   
I have noticed that some mxml based trees scroll with the
mouse wheel
while actionscript based ones do not.
   
A few minutes ago i also did a test with the main (root /
mainApplication) making bigger than 100% of the screen (lets
assume
3000 pixels hight) so a scroll bar would appear. Can only
scroll via
the bar, not the mouse wheel...
   
Has any of you any pointers, on this?
   
TIA,
Fotis
   
   
   
  
  
  
   --
   Teoti Graphix, LLC
   http://www.teotigraphix.com http://www.teotigraphix.com 
  
   Teoti Graphix Blog
   http://www.blog.teotigraphix.com
http://www.blog.teotigraphix.com 
  
   You can find more by solving the problem then by 'asking the
question'.
  
 
 
 
 
  --
  Teoti Graphix, LLC
  http://www.teotigraphix.com http://www.teotigraphix.com 
 
  Teoti Graphix Blog
  http://www.blog.teotigraphix.com http://www.blog.teotigraphix.com 
 
  You can find more by solving the problem then by 'asking the
question'.
  
 
 
 
 
 -- 
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 [EMAIL PROTECTED],

 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, 

RE: [flexcoders] Distributing AIR applications on Widows and Mac

2008-10-22 Thread Jim Hayes
Jen, if you sign up and are accepted to the distribution agreement Matt
links to below, then Adobe will provide you with access to the files and
information that you need to do this.
It's all very straightforward, even an ignorant and rather flakey old
fool like myself managed to do it!
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: 22 October 2008 21:45
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Distributing AIR applications on Widows and
Mac
 
If you actually want to distribute the runtime yourself (not just the
app) you may need to review the terms at
http://www.adobe.com/products/air/runtime_distribution1.html
http://www.adobe.com/products/air/runtime_distribution1.html 

Matt

On 10/22/08 1:23 PM, Jake Churchill [EMAIL PROTECTED]
mailto:jake.churchill%40gmail.com  wrote:

Check out this article by David Tucker. I used this very one and it
worked great!

http://www.adobe.com/devnet/air/articles/air_badge_install.html
http://www.adobe.com/devnet/air/articles/air_badge_install.html 

Here's another:

http://www.adobe.com/devnet/air/articles/badge_for_air.html
http://www.adobe.com/devnet/air/articles/badge_for_air.html 

-Jake Churchill

jenonflex wrote:

Hi All,
I want to distribute my AIR application packaged along with the AIR
installer. I heard this is possible, but can anyone help me on how
this can be done, and what tools to use etc both on Windows and Mac.

Thank you,

regards,
-Jen
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Flash Player 10 debug?

2008-10-16 Thread Jim Hayes
Theres nothing to stop you except the (small) risk that you miss a bug
or difference that only occurs in FP9.
Personally I installed FP10 in internet explorer (which I don't normally
use at all) and tested on that until I was reasonably happy that
everything was working the same way as it was in 9. Having just got CS4
I bit the bullet and updated all my players to 10 this morning.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Witham
Sent: 15 October 2008 22:31
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash Player 10 debug?
 
Hi Everyone, quick question that I've not found an answer to.
 
Is it OK to install the debug version of Flash Player 10 and still work
with Flex 3 and Flash CS3, any problems or anything with that? Or do we
have to stick with Flash player 9 until the next Flex release for FP 10
compatibility?
 
Thanks in advance,
Peter.

-- 
Peter Witham
http://www.evolutiondata.com http://www.evolutiondata.com 
Internet and Multimedia developer
Certified Flash Designer.
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] AIR application installation error

2008-10-15 Thread Jim Hayes
That can be for all manner of reasons I'm afraid, there is a way that
you can log the installer in order to get more information.
I don't have the details to hand, but it's along the lines of putting a
correctly named text file in the right place in your profile folder.
 
However, in my experience it is very often due to lack of temp space on
your hard drive for the installer to expand it's files into.
It's probably worth checking that quickly just in case
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: 15 October 2008 20:34
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR application installation error
 


Hello all - I am not able to install any
air applications in my system and getiing
this error message.

The application could not be installed because the AIR file is
damaged. Try obtaining a new AIR file from the application author.
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] AIT application window size

2008-10-13 Thread Jim Hayes
(Probably) something along the lines of 

this.nativeWindow.width = Screen.mainScreen.visibleBounds.width;

(and similar for height, x and y etc)

There should be more reliable info than mine available in the help,
under Screen, however.  

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: 13 October 2008 04:27
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIT application window size



Hi I was wondering how can I make the AIR application window
full screen. I mean it is going to cover the whole monitor.
I tried it with width and height 100% but it did not work.
Please advice.
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] Re: More questions on weborb, creating my own services

2008-10-02 Thread Jim Hayes

that one has irritated me before!

it sees 127.0.0.1 and localhost as being different domains (correctly I 
believe).
if you change either the endpoint in the services xml file or the debugging url 
in project properties such that they match then you should find it all works 
(apologies for not being more precise in terms of the changes, I'm away from 
flexbuilder at the moment and my memory is ropey)

-Original Message-
From: flexcoders@yahoogroups.com on behalf of timgerr
Sent: Thu 02/10/2008 05:01
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: More questions on weborb, creating my own services
 
OK, I did everything that was given and when I run the app I get this
error:
warning: Failed to load policy file from http://127.0.0.1/crossdomain.xml

*** Security Sandbox Violation ***
Connection to http://127.0.0.1/weborb/weborb.php halted - not
permitted from
http://localhost/weborb/WebORBExample-debug/WebORBExample.swf
Error: Request for resource at http://127.0.0.1/weborb/weborb.php by
requestor from
http://localhost/weborb/WebORBExample-debug/WebORBExample.swf is
denied due to lack of policy file permissions.

Not sure what to do here.

Thanks for the help,
timgerr




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

 This seems to be a convoluted way to do this.
 
 I have created a simple example to show you how I use WebOrb.
 
 On my server I have the WebORB directory at the root level. In the
 Services directory I have a MyServices directory and in this directory I
 have a ValueObjects directory. For this example I have two files:
 
 =
 TestNamesInVO.php:
 ?php
 class TestNamesInVO
 {
  public $FirstName;
  public $LastName;
 
  public function __construct($FirstName, $LastName)
  {
  $this-FirstName = $FirstName;
  $this-LastName = $LastName;
  }
 }
 ?
 =
 TestNamesOutVO.php:
 ?php
 class TestNamesOutVO
 {
  public $FullName;
 
  public function __construct($FullName)
  {
  $this-FullName = $FullName;
  }
 }
 ?
 =
 
 The constructors are there just to make it easier to create a new
 object. They are optional.
 
 In the MyServices directory I have a TestService.php file. This contains
 all the functions available with this service.
 
 =
 TestService.php:
 ?php
 class TestService
 {
  function ShowMe()
  {
  return Tom Jones;
  }
 
  function ShowName($name)
  {
  return 'Hello ' . $name;
  }
 
  function ShowNames(TestNamesInVO $namesIn)
  {
  require_once(ValueObjects/TestNamesInVO.php);
  require_once(ValueObjects/TestNamesOutVO.php);
 
  $fullName = new TestNamesOutVO($namesIn-FirstName .   .
 $namesIn-LastName);
 
  return $fullName;
  }
 }
 ?
 =
 
 In flex I also have a ValueObjects folder underneath my src folder. This
 folder contains the corresponding ActionScript files for the value
 objects on the server:
 
 =
 TestNamesInVO.as:
 package ValueObjects
 {
  [RemoteClass(alias=MyServices.ValueObjects.TestNamesInVO)]
  [Bindable]
  public class TestNamesInVO
  {
  //instance variables
  private var _FirstName:String;
  private var _LastName:String;
 
  //accessor methods
  public function get FirstName():String {return _FirstName;}
  public function get LastName():String {return _LastName;}
 
  //mutator methods
  public function set FirstName(FirstName:String):void
{_FirstName
 = FirstName;}
  public function set LastName(LastName:String):void {_LastName =
 LastName;}
  } // end class
 }//end package
 =
 TestNamesOutVO.as:
 package ValueObjects
 {
  [RemoteClass(alias=MyServices.ValueObjects.TestNamesOutVO)]
  [Bindable]
  public class TestNamesOutVO
  {
  //instance variables
  private var _FullName:String;
 
  //accessor methods
  public function get FullName():String {return _FullName;}
 
  //mutator methods
  public function set FullName(FullName:String):void {_FullName =
 FullName;}
  } // end class
 }//end package
 =
 
 Note the RemoteClass metadata. This tells flex the location of the class
 on the server that matches this class (In relation to the Services
 directory).
 
 Finally we have the Flex application that makes calls to functions
 within this service.
 
 

RE: [flexcoders] Re: More questions on weborb, creating my own services

2008-10-02 Thread Jim Hayes
apologies, now I read valdhors example code I see the endpoint is set in the 
code, here :
 channelSet = new ChannelSet();
 amfChannel = new AMFChannel(my-amf,
 http://myserver/WebORB/weborb.php;);
 channelSet.addChannel(amfChannel);

so it's there you need to change localhost to 127.0.0.1 (or vice versa), not in 
the services config xml.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Jim Hayes
Sent: Thu 02/10/2008 13:05
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: More questions on weborb, creating my own services
 

that one has irritated me before!

it sees 127.0.0.1 and localhost as being different domains (correctly I 
believe).
if you change either the endpoint in the services xml file or the debugging url 
in project properties such that they match then you should find it all works 
(apologies for not being more precise in terms of the changes, I'm away from 
flexbuilder at the moment and my memory is ropey)


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders]Convert a Java object to an ActionScript object

2008-09-25 Thread Jim Hayes
Try SimpleXMLEncoder ?

http://blog.flexexamples.com/2008/03/04/converting-objects-to-xml-packet
s-using-the-simplexmlencoder-class-in-flex/

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eduardo Souza
Sent: 25 September 2008 13:09
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]Convert a Java object to an ActionScript object

ok i already tried that. That's what is happening:

-I'm receiving from the server-side (Java) a XML converted to an Object.
-and I need to convert this Object to a XML on the Flex.

What I need to do?
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Jim Hayes
Does anyone have any localconnection samples done in other languages, by
the way? C# would be most useful for me, but anything accepted!
I'm aware that there is a brief explaination and some c++ sample code on
osFlash, but that's all I've seen.
 Apparently it's a mutex, but being only a lowly flash guy I get a bit
confused after that!
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: 19 September 2008 13:26
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
I've got to build some LocalConnection voodoo in the next couple of
weeks at work, anybody have any tips, or pitfalls I should look out for?
Or is it usually smooth sailing?

-Josh
On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:
LocalConnection uses an in-memory file, not actual connections.
As long as both swf's are still running on the same machine, you
shouldn't have any problems.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk
The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Bharath
Sent: 18 September 2008 06:54
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Does localconnection Class works with different
Port numbers ?
 
Hi All,

I have two SWF file communicates with each other using localconnection
class.

Now if I place both the SWF in two different Ports. Will it communicate
or not?

Thanks,

- Bharath



-- 
Therefore, send not to know For whom the bell tolls. It tolls for
thee.

http://flex.joshmcdonald.info/ http://flex.joshmcdonald.info/ 

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Jim Hayes
For background :
 
http://osflash.org/localconnection
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: 19 September 2008 14:53
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
Isn't it Player-specific stuff? How could there be demos in other
languages (except maybe haXe)?

-Josh
On Fri, Sep 19, 2008 at 11:44 PM, Jim Hayes [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:
Does anyone have any localconnection samples done in other languages, by
the way? C# would be most useful for me, but anything accepted!
I'm aware that there is a brief explaination and some c++ sample code on
osFlash, but that's all I've seen.
 Apparently it's a mutex, but being only a lowly flash guy I get a bit
confused after that!
 
-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Josh McDonald
Sent: 19 September 2008 13:26
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
I've got to build some LocalConnection voodoo in the next couple of
weeks at work, anybody have any tips, or pitfalls I should look out for?
Or is it usually smooth sailing?

-Josh
On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:
LocalConnection uses an in-memory file, not actual connections.
As long as both swf's are still running on the same machine, you
shouldn't have any problems.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk http://www.inps.co.uk 
The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Bharath

Sent: 18 September 2008 06:54
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 

Subject: [flexcoders] Does localconnection Class works with different
Port numbers ?
 
Hi All,

I have two SWF file communicates with each other using localconnection
class.

Now if I place both the SWF in 
...

[Message clipped]  



-- 
Therefore, send not to know For whom the bell tolls. It tolls for
thee.

http://flex.joshmcdonald.info/ http://flex.joshmcdonald.info/ 

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Does localconnection Class works with different Port numbers ?

2008-09-19 Thread Jim Hayes
That would be great Greg, again in my case I'm looking at this in
relation to AIR.
Anything that gives me a least a little leg up would be an enormous
help, thanks!
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gregor Kiddie
Sent: 19 September 2008 15:20
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
There is a few old examples floating around out there. We have a closed
source version of it written in C#, and I know of at least one other
person on the list who has one (names hidden to protect the innocent).
Mainly to get around the lack of AIR to OS communication.
I'll see if we can release some of the less proprietary sections of it
(its certainly something I think should be out there). Someone kick me
in a few days if I haven't posted a yay or nay.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 
The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]'t it Player-specific stuff? How
could there be demos in other languages (except maybe haXe)?

-Josh
On Fri, Sep 19, 2008 at 11:44 PM, Jim Hayes [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:
Does anyone have any localconnection samples done in other languages, by
the way? C# would be most useful for me, but anything accepted!
I'm aware that there is a brief explaination and some c++ sample code on
osFlash, but that's all I've seen.
 Apparently it's a mutex, but being only a lowly flash guy I get a bit
confused after that!
 
-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Josh McDonald
Sent: 19 September 2008 13:26
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Does localconnection Class works with
different Port numbers ?
 
I've got to build some LocalConnection voodoo in the next couple of
weeks at work, anybody have any tips, or pitfalls I should look out for?
Or is it usually smooth sailing?

-Josh
On Fri, Sep 19, 2008 at 10:02 PM, Gregor Kiddie [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:
LocalConnection uses an in-memory file, not actual connections.
As long as both swf's are still running on the same machine, you
shouldn't have any problems.
 
Gk.
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk http://www.inps.co.uk 
The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Bharath

Sent: 18 September 2008 06:54
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 

Subject: [flexcoders] Does localconnection Class works with different
Port numbers ?
 
Hi All,

I have two SWF file communicates with each other using localconnection
class.

Now if I place both the SWF in 
...

[Message clipped]  



-- 
Therefore, send not to know For whom the bell tolls. It tolls for
thee.

http://flex.joshmcdonald.info/ http://flex.joshmcdonald.info/ 

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been

RE: [flexcoders] possible to get bytes from a pre-existing Image?

2008-09-17 Thread Jim Hayes

I as far as I can work out

[Embed(source=logo.png, mimeType=application/octet-stream)] public var 
logo:Class;

would enable you to access logo as a bytearray.

I hope that helps? I'm still not really quite sure what you're trying to do, to 
be honest.

Anyway, you might want to have a look at this :

http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/

which I think might be at least along the lines of what you want to know, 
apologies in advance if I've got the wrong end of the stick.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan 
Troglodytes
Sent: 17 September 2008 22:26
To: flexcoders
Subject: [flexcoders] possible to get bytes from a pre-existing Image?

This question is really part of a larger ball of stuff I'm trying to untangle.  
Basically, the first part is that if I have this:

[Embed(source=logo.png)] public var logo:Class;
...
var img:Image = new Image;
img.source = logo;

Is there any way to get a ByteArray from img that can be fed to Loader?  
Unfortunately, I'm stuck with Loader.  If you really want to know, I'm trying 
to mess with a TextArea that has htmlText with an img tag in it.  I want to 
switch the img tag to switch between different images that are embedded in the 
SWF. As far as I can tell, there's no way to tell an img tag to load an image 
out of the SWF.  Feel free to correct me on that.  Because of some features of 
the environment, I really want to embed the images and not load them from the 
local file system or over the network.

Eventually, I actually want to replace the PNG with an SVG.  This is part of 
why I'm wanting to have the files embedded.  But I know this will bring further 
challenges, as SVG is a vector format and I will have to get a raster rendering 
of the SVG at a certain size before I can ever expect to feed it to Loader.  
But I'm trying to take it one giant hurdle at a time.

Any thoughts, other than that I'm insane to do such a thing?

-- 
Jason
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__


RE: [flexcoders] Tooltips with word-wrap

2008-09-17 Thread Jim Hayes
Maybe a custom tooltip renderer?
 
http://www.google.co.uk/search?q=flex+custom+tooltip
 
results 1 and 4 are good ones. 
 
There may be a simpler solution, but I've had to do a couple of really
simple custom tooltips and found it easy enough, so I've not looked.
 
Best of luck with it!
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of whatabrain
Sent: 17 September 2008 23:43
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tooltips with word-wrap
 
I'm working with a very narrow app, so tooltips are sometimes wider 
than the app.

How do I add word-wrap to tooltips?
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Preventing cutpaste in Flex3 application

2008-09-16 Thread Jim Hayes
Set selectable = false ? or editable = false ? Or have I missed
something?
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew Wetmore
Sent: 16 September 2008 15:30
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Preventing cutpaste in Flex3 application
 
The users of my app get nervous because it seems as if they can
highlight and delete the text from the screens. If they changeState and
come back, the text is back, but they don't know that the first time
through.

I would love to disable this behavior without affecting the display of
the text area.

a
 



-- 
Andrew Wetmore
User Experience Director
Open Learning Exchange - www.ole.org
978-319-7324
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Chrome and developer's version of Flash player installation

2008-09-14 Thread Jim Hayes

Mine seemed to pick up on my firefox plugin, since it was debug version 9 in 
chrome when I first launched it.
What it would do if I didn't have the mozilla plugin already I have no idea, 
however. perhaps prompt for it's own download when it was first required?

-Original Message-
From: flexcoders@yahoogroups.com on behalf of Sefi Ninio
Sent: Sun 14/09/2008 14:18
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Chrome and developer's version of Flash player 
installation
 
I'd like to know that as well...

On Sun, Sep 14, 2008 at 3:51 PM, markgoldin_2000
[EMAIL PROTECTED]wrote:

   What do I need to do to install Debugging version on Flash Player for
 Chrome Browser?

 Thanks

  



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] AIR - HTML - view source

2008-09-11 Thread Jim Hayes
Do you mean programatically, or as a normal user viewing the
application?
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of arieljake
Sent: 11 September 2008 06:48
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AIR - HTML - view source
 
I tried to search the archive for this to no avail.

Is it possible to obtain the html source of a webpage being viewed in
the HTML control within AIR?
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Re: AIR - HTML - view source

2008-09-11 Thread Jim Hayes
I'm surprised that didn't come up in a search !
 
http://tech.groups.yahoo.com/group/flexcoders/message/121867
 
hth Jim.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of arieljake
Sent: 11 September 2008 20:28
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AIR - HTML - view source
 
Programatically.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Jim Hayes [EMAIL PROTECTED] wrote:

 Do you mean programatically, or as a normal user viewing the
 application?
 
 -Original Message-
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of arieljake
 Sent: 11 September 2008 06:48
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] AIR - HTML - view source
 
 I tried to search the archive for this to no avail.
 
 Is it possible to obtain the html source of a webpage being viewed in
 the HTML control within AIR?
 
 
 __
 This communication is from Primal Pictures Ltd., a company
registered in England and Wales with registration No. 02622298 and
registered office: 4th Floor, Tennyson House, 159-165 Great Portland
Street, London, W1W 5PA, UK. VAT registration No. 648874577.
 
 This e-mail is confidential and may be privileged. It may be read,
copied and used only by the intended recipient. If you have received
it in error, please contact the sender immediately by return e-mail or
by telephoning +44(0)20 7637 1010. Please then delete the e-mail and
do not disclose its contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs
Email Security System.
 __

 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

RE: [flexcoders] Can't remember the name of the application.

2008-09-09 Thread Jim Hayes
Maybe flexSpy?
 
http://www.riapedia.com/2008/01/02/flexspy_modify_and_inspect_all_visual
_flex_components


http://code.google.com/p/fxspy/
 
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mikhail Shevchuk
Sent: 09 September 2008 09:52
To: Flex
Subject: [flexcoders] Can't remember the name of the application.
 
Hello, flexcoders!

There is a library or some tool that can be embedded into your
application that lets user to see the description of a given
component.
The feature of that tool is that it shows this information in runtime.
User just hovers(or something like this) over a button for example and
tooltip with the info bubbles out.

I have a set of nested containers and one of them has undesired
scrollers there, so I would like to know which of them is guilty :)
That is the reason I am searching this tool. This is pretty frequent
operation I have in my work so I'd like to optimize this job with this
tool.

Thanks in advance.

-- 
m. | http://creationcomplete.com http://creationcomplete.com 
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

  1   2   3   >