Re: [flexcoders] Porting an AIR app to iOS

2012-03-28 Thread Grant Davies
2 & 3 should work fine, 1 will work with minor modifications to make sure it's
Optimized for mobile tablet.  I don't remover off the top of my head if there 
is a embedded browser for tablet in air of if you have tainch a headless safari.

Cheers,
Grant

Sent from my iPhone, excuse typos.

On Mar 28, 2012, at 2:21 AM, "Kevin MacDonald" 
mailto:kevinmacdon...@gmail.com>> wrote:



I have a complex AIR app that is currently deployed to Windows and Mac. I would 
love to port it to the iPad, and I am beginning to explore this possibility. 
Before I launch it it however, there are a few basics questions that come up. 
Some of these might be showstoppers depending on the answer, and getting some 
answers might save me weeks of experimentation. If anyone can offer feedback I 
would be grateful. Here goes:


 *   My AIR app makes extensive use of an embedded web browser, via the 
flash.html.HTMLLoader object. Can I expect this to work when compiled for iOS?
 *   My AIR app makes extensive use of a SQL Lite database via the flash.data 
namespace. Can I expect this to work on iOS?
 *   How about RESTful web service calls using the flash.net 
namespace and JSON?

Thanks for any help you are able to provide.

Kevin




RE: [flexcoders] Re: Bindings on visual components being forgotten? (Flex 3 -> 4.6)

2012-03-20 Thread Grant Davies
HI Rich..

1) you'd have to have an event handler listen for the pinch gesture and then 
scale your grid based on how much you want it to scale/shrink

http://paultrani.com/2011/02/touch-events-and-gestures-on-mobile/  ( look at 
pinch/zoom)


2) you there are a few methods to handle the DPI variation, we generally target 
the primary device and set our application dpi to that ( for example I'm 
building an app for a 7" android right now and have my DPI set to 166), there 
is quite a good article here on handling DPI

http://opensource.adobe.com/wiki/display/flexsdk/DPI+Auto+Scaling+for+Density+Independent+Mobile+Apps

Cheers
Grant

--- In flexcoders@yahoogroups.com, Richard 
Albrecht mailto:Rich@...>> wrote:
>
> Hi,
>
> First time writing to a group in many years. I'm basically a noob with Flash 
> Builder 4.5 and flex.
>
> I right now have 2 questions:
>
> 1. I have an engineering app that I have running in the desktop. So the next 
> step is take it mobile. Why don't the screens have the ability to zoom with a 
> pinch? I have a screen that has a large datagrid and I want to make the text 
> bigger, but then part of the grid moves off screen and you can't scroll over 
> to see the hidden data. I thought this was available in all mobile apps.
>
> 2. The question on Scaling. What is the best way. What DPI should I have it 
> set to. We also want a tablet version. Is there any good docs on the best way 
> to accomplish this. Is using states a way. This one is I'm sure fairly 
> complicated.
>
> Thanks and I hope I get faster responses here than on Adobe's forums.
>
> Thanks
>
>
> Rich
>



RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

2009-02-05 Thread Grant Davies
I've blogged how to get the 3dWall working as flex component using the
Flex Component kit for flash - here :

 

http://theresidentalien.typepad.com/ginormous/2009/02/flashloaded-3dwall
-working-in-flex-as-flex-component.html

 

Cheers

Grant

 

 

...

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> gr...@bluetubeinteractive.com

http://www.bluetubeinteractive.com

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Amy
Sent: Wednesday, February 04, 2009 8:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Geting the 3dWall Pro to work as flex
component ?

 

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Grant Davies"  wrote:
>
> Thanks Amy,
> 
> 
> 
> I actually managed to get it to work as a Flex component in the 
end, it
> was pretty fiddly but once figure out its simple, I can create the
> 3dwall instance and add it to a view state or container and don't 
have
> ANY code in flash at all. But I still have complete code 
completion in
> flex from the generated swc. 

I chose to put some code in Flash to "clean up" the interface and 
make it more compatible with Flex.

> Basically my fla has the 3dwall in the library and I export a swc, 
pull
> into flex and wrap it in a UIComponent and I'm done.
> 
> 
> 
> I'm going to blog about how to set it up if you're interested I 
can let
> you know once I post.

That would be great. There's a user group I was supposed to speak to 
about this process, but it turns out that there are very few free 
Flash components that will accept any kind of a data source except 
the path to an XML file. Since I wasn't able to give them the 3D 
wall (obviously) and I couldn't find a free component that I could 
let them use for hands-on practice, I'm in the process of writing an 
example component I can use to demo.

The problem is that I can't stop myself from building it "right" for 
Flex in the first place, so I won't be able to demo all the things 
you have to overcome to work with a component that's not very robust.

I can point them to your blog post to get more info on that.

Thanks!

-Amy



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date:
2/3/2009 5:48 PM

<>

RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

2009-02-04 Thread Grant Davies
Thanks Amy,

 

I actually managed to get it to work as a Flex component in the end, it
was pretty fiddly but once figure out its simple, I can create the
3dwall instance and add it to a view state or container and don't have
ANY code in flash at all.  But I still have complete code completion in
flex from the generated swc.  

 

Basically my fla has the 3dwall in the library and I export a swc, pull
into flex and wrap it in a UIComponent and I'm done.

 

I'm going to blog about  how to set it up if you're interested I can let
you know once I post.

 

Grant

 

 

...

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> gr...@bluetubeinteractive.com

http://www.bluetubeinteractive.com

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Amy
Sent: Wednesday, February 04, 2009 5:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Geting the 3dWall Pro to work as flex
component ?

 

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Grant Davies"  wrote:
>
> Hey guys,
> 
> 
> 
> I have the 3d wall pro component from :
> 
> 
> 
> http://www.flashloaded.com/flashcomponents/3dwall/
> 
> 
> 
> I successfully created a flex component from it, added it to a view
> component and initialized its instance with code
> 
> 
> 
> Like :
> 
> 
> 
> var wall : com.flashloaded.Wall3DPro.Wall3DPro = mainView.wall;
> 
> 
> 
> wall.setMediaPaths("/assets/img/portfolio/",
> "/assets/img/portfolio/");
> 
> 
> 
> var obj:Object = new Object();
> 
> obj.type = "image/jpeg";
> 
> obj.src ="aso-calendar-200x150.jpg";
> 
> obj.width="200";
> 
> obj.height="150";
> 
> 
> 
> var objArray : Array = new Array();
> 
> 
> 
> objArray.push(obj);
> 
> wall.addElements( objArray, "array");
> 
> 
> 
> wall.init();
> 
> 
> 
> 
> 
> I then run my app in the debugger and I do see the wall loading the
> jpegs correctly but the wall is "never" visible.
> 
> 
> 
> If I check the instance in the debugger its visible is true, its 
width
> and height look good, its parents width/height/visible all look good
> too.
> 
> 
> 
> 
> 
> I then used an fla and published a swf instead and embedded the swf 
with
> the same code and it works and displays. I'd prefer to use it as a 
flex
> component but I can't figure out why its "running" but isn't 
visible.

IIRC, the XML and object methods of loading work completely 
differently. If you're using an object, you need to use "url" 
instead of "src". I think if you get that wrong it will fail without 
error. I also recall I had to "read between the lines" of their docs 
to figure that out.

What I did with my component is that I had a setup() method that I 
called in the constructor that fed in some dummy data while I was 
still in the Flash environment. That way I could make sure 
everything was working before I exported the swc, and if I had a 
problem, the FlashLoaded engineers couldn't play the "don't support 
Flex" card. Just before I exported the swc, I'd comment out the setUp
() call, and then I'd do the actual setup from Flex.

HTH;

Amy



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date:
2/3/2009 5:48 PM

<>

[flexcoders] Geting the 3dWall Pro to work as flex component ?

2009-02-04 Thread Grant Davies
Hey guys,

 

I have the 3d wall pro component from :

 

http://www.flashloaded.com/flashcomponents/3dwall/

 

I successfully created a flex component from it, added it to a view
component and initialized its instance with code

 

Like :

 

var wall : com.flashloaded.Wall3DPro.Wall3DPro = mainView.wall;

  

  wall.setMediaPaths("/assets/img/portfolio/",
"/assets/img/portfolio/");

  

  var obj:Object = new Object();

  obj.type = "image/jpeg";

  obj.src ="aso-calendar-200x150.jpg";

  obj.width="200";

  obj.height="150";

 

var objArray : Array = new Array();

  

  objArray.push(obj);

  wall.addElements( objArray, "array");

 

wall.init();

 

 

I then run my app in the debugger and I do see the wall loading the
jpegs correctly but the wall is "never" visible.

 

If I check the instance in the debugger its visible is true, its width
and height look good, its parents width/height/visible all look good
too.

 

 

I then used an fla and published a swf instead and embedded the swf with
the same code and it works and displays.  I'd prefer to use it as a flex
component but I can't figure out why its "running" but isn't visible.

 

Flashloaded just say they don't support flex if you google their forums.

 

 

Cheers

Grant

 

 

.......

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> gr...@bluetubeinteractive.com

http://www.bluetubeinteractive.com

 

<>

RE: [flexcoders] Flex and asSQL - Crossdomain issue?

2009-01-27 Thread Grant Davies
I would suspect the same, add a crossdomain in the root of your site (or
you can use a policy element to put it somewhere else but more fiddly)

 

In your cross domain add the 'all ports', if you are just 'testing' you
can leave it wide open :

 







 

It should be accessible via

 

http://gauravt-xp/crossdomain.xml

 

you could try

 

http://gauravt-xp:8080/crossdomain.xml but I'm not sure it will work.

 

I'm pretty sure flash requests the crossdomain file on port 80 (maybe
override-able by a policy file), but my sites all run on port 80 so not
messed with it in a while.

 

A good way to see whats going on is using the Charles httpd debugging
proxy to monitor the traffic and see if it request a cross domain xml
file, if it does and your applications fails right after that then you
can be sure it's a silent failure due to the policy file.

 

Cheers

Grant

 

 

 

...

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> gr...@bluetubeinteractive.com

http://www.bluetubeinteractive.com

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of GeeTee
Sent: Tuesday, January 27, 2009 1:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex and asSQL - Crossdomain issue?

 


Hi everyone,

Yesterday I developed my first flex 3 app and placed the "Release build"
in
the webapps folder of tomcat (5.5.26). The application is quite simple
and
just needs to populate the datagrid with the data in MySQL (which is on
the
same machine on port 3306). I have used asSQL to communicate. When run
from
flex builder, I get the app to work perfectly. But on accessing the URL
"http://gauravt-xp:8080/MyAppsName/MyHTML.html";, I get a blank datagrid.

My suspicion is that this is related to crossdomain.xml file. Am I right
with this? If yes where should I place it?

I searched on the forum and could not find a definitive answer. The
crossdomain file that I have created looks like:

http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>




I tried placing it in the "webapps" and "webapps/ROOT" folder of tomcat
but
data was not populated.

Thanks in advance for the help.
Gaurav

-- 
View this message in context: 
http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p216
91913.html
Sent from the FlexCoders mailing list archive at Nabble.com.

 

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.13/1912 - Release Date:
1/27/2009 7:26 AM

<>

RE: [flexcoders] Flex Builder hangs and I have to end the process when opening app in design view

2009-01-26 Thread Grant Davies
I had this problem when I upgraded my version of SVN client (tortoise)
but did not upgrade the SVN plugin for eclipse, do you use SVN at all ?

 

Cheers,

Grant

 

 

...

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> gr...@bluetubeinteractive.com

http://www.bluetubeinteractive.com

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of programmer_offsite
Sent: Monday, January 26, 2009 2:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder hangs and I have to end the process
when opening app in design view

 

I am using latest Flex Builder 3.0.2 on Windows XP Sp2.
I have created a custom component in ActionScript. Then I create
another mxml component based on my ActionScript component. Finally,
when I place this component and open design view, the Builder hangs
and I have to kill it.
I tried a number of things:
1. Changing VM parameters in order to increase memory available to FB
2. Defragmenting my disc
3. Erasing eclipse history
4. Creating new workspaces
If I try to open my workspace on another machine, it will suffer
similar problems, but never did the other programmer have the similar
situation although creating application in similar manner (mxml
component based on custom as component placed on application).
Anyone had similar problems? Found some advice to upgrade machine but
my PC is dual processor and 3 GB ram with enough disc space..

 

Messages in this topic
<http://groups.yahoo.com/group/flexcoders/message/135265;_ylc=X3oDMTM5bm
4yM2thBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2
dJZAMxMzUyNjUEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMjMyOTk4NDM4BHRwY0lkAzEzNT
I2NQ--> (1) Reply (via web post)
<http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJzZWJmaDdpBF9T
Azk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxMzUy
NjUEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMjMyOTk4NDM4?act=reply&messageNum=13
5265> | Start a new topic
<http://groups.yahoo.com/group/flexcoders/post;_ylc=X3oDMTJmM2hyaHA2BF9T
Azk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNs
awNudHBjBHN0aW1lAzEyMzI5OTg0Mzg-> 

Messages
<http://groups.yahoo.com/group/flexcoders/messages;_ylc=X3oDMTJmNzE2bTE1
BF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRy
BHNsawNtc2dzBHN0aW1lAzEyMzI5OTg0Mzg->  

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

MARKETPLACE



<>

RE: [flexcoders] Can a 'child' tell when its parents view state changed?

2008-05-24 Thread Grant Davies
Thanks for the idea leds,

 

The added event is fired when the child is first added (same time as
creationComplete is fired), but when the child is made "visible" due to
a state change by the parent the added is not fired again on the child.

 

Cheers,

Grant

 

 

...

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> [EMAIL PROTECTED]

http://www.bluetube.com/bti <http://www.bluetube.com/bti> 

 

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of leds usop
Sent: Saturday, May 24, 2008 2:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Can a 'child' tell when its parents view state
changed?

 


have you tried the added/removed events? usually hiding/showing children
in viewstates using the design mode entail adding/removing the
corresponding children rather than just hiding or setting the
visibilities  unless you explicitly set them to be so in the source
view.

--- On Sun, 5/25/08, Grant Davies <[EMAIL PROTECTED]> wrote:

From: Grant Davies <[EMAIL PROTECTED]>
Subject: [flexcoders] Can a 'child' tell when its parents view state
changed?
To: flexcoders@yahoogroups.com
Date: Sunday, May 25, 2008, 1:22 AM

I have a set of viewstates that are used many times.  When the view
state is changed, I would like the child to "reset" its view.  I would
like the child to know when it is "revealed" due to the state change of
the parent.  It seems that the child does not know when the parent
changes view states at all so the only way I could do this would be to

 

1)  Have the controller that changes states reset the child

2)  Have the child register for the viewstate ENTER_STATE event on
its parent 

 

I've tried capturing hide/show/render on the child, but none of those
"fit"  What does flex actually do to children when they are no visible
due to a "remove child" in a state, I would have assumed that they would
be hidden but that doesn't seem to be the case and digging through the
viewstate and addchild code of the sdk its not obvious to me what a
state change really does under the covers to hide or reveal a  set of
children.

 



 . . ..... ....

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> [EMAIL PROTECTED] com

http://www.bluetube .com/bti <http://www.bluetube.com/bti> 

 

 

<>

[flexcoders] Can a 'child' tell when its parents view state changed?

2008-05-24 Thread Grant Davies
I have a set of viewstates that are used many times.  When the view
state is changed, I would like the child to "reset" its view.  I would
like the child to know when it is "revealed" due to the state change of
the parent.  It seems that the child does not know when the parent
changes view states at all so the only way I could do this would be to

 

1)  Have the controller that changes states reset the child

2)  Have the child register for the viewstate ENTER_STATE event on
its parent 

 

I've tried capturing hide/show/render on the child, but none of those
"fit"  What does flex actually do to children when they are no visible
due to a "remove child" in a state, I would have assumed that they would
be hidden but that doesn't seem to be the case and digging through the
viewstate and addchild code of the sdk its not obvious to me what a
state change really does under the covers to hide or reveal a  set of
children.

 

 

...

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> [EMAIL PROTECTED]

http://www.bluetube.com/bti <http://www.bluetube.com/bti> 

 

<>

RE: [flexcoders] finding and removing nodes from xml

2007-05-16 Thread Grant Davies
thanks peter, that using a literal delete... 
 
waht if you do delete via reference...  
 
e.g. node:XMLNode = xml.tagName["@id=3"];
 
if you delete node you've you tried to delete the new reference... how
do you delete the tag with an id attribute of 3?
 
Grant
 
 
 <http://www.bluetube.com/bti/images/small.jpg> 
...
> b l u e t u b e i n t e r a c t i v e
.: The connection between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: Wednesday, May 16, 2007 3:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] finding and removing nodes from xml



http://livedocs.adobe.com/flex/2/langref/operators.html#delete_(XML
<http://livedocs.adobe.com/flex/2/langref/operators.html#delete_(XML> )



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Grant Davies
Sent: Wednesday, May 16, 2007 3:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] finding and removing nodes from xml



I'm trying to find the most correct and efficient syntax to find nodes
with a particular attribute value and remove them from an xml document..


suppose my xml is :



0


[EMAIL PROTECTED] <mailto:john%40blah.com> 
[EMAIL PROTECTED] <mailto:chuck%40blah.com>

[EMAIL PROTECTED] <mailto:grant%40blue.com> 
[EMAIL PROTECTED] <mailto:grant%40fool.com> 
[EMAIL PROTECTED] <mailto:frick%40fool.com> 
[EMAIL PROTECTED] <mailto:firday%40nowhere.com>





And I want to find recipients with an id of 6 and 23 and remove them
from the xml... What is the syntax for this?

I can find those nodes into an XMLList fine... Its removing them I'm
having fun with..

Cheers,
Grant




 


[flexcoders] finding and removing nodes from xml

2007-05-16 Thread Grant Davies
I'm trying to find the most correct and efficient syntax to find nodes
with a particular attribute value and remove them from an xml document..
 
 
suppose my xml is :
 


  0
  
  
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
  



And I want to find recipients with an id of 6 and 23 and remove them
from the xml... What is the syntax for this?

I can find those nodes into an XMLList fine... Its removing them I'm
having fun with..

Cheers,
Grant
 



RE: [flexcoders] MySpace taking on Flex!

2007-04-30 Thread Grant Davies
yeah I saw that too but didn't notice it was flex based... nice!
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e
.: The connection between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nathanpdaniel
Sent: Monday, April 30, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] MySpace taking on Flex!



Anyone else with a myspace account notice the new updated pic 
uploader? :D



 
<>

RE: [flexcoders] [OT] php framework

2007-04-27 Thread Grant Davies
Not using PHP is better ?  I think it depends on the application.  
 
If I do PHP I like Cake.  I'm a JAVA J2EE guy by profession, but i use
CakePHP for a lot of clients, its quick and it works.  I do .NET for
other clients, all depends on the application and platform, number of
expected users, failover/faul tolerance and deployment target.
 
With flash I've done mainly .NET backends and some JAVA, with flex we've
done entirely CakePHP for time to market/deployment target.
 
Grant.
 
 
 
 
...
> b l u e t u b e i n t e r a c t i v e
.: The connection between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jordan Snyder
Sent: Friday, April 27, 2007 11:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] [OT] php framework



That's more than a bit off topic...

Zend is good.  Not using PHP is better.  PHP5 is nicer.  




On 4/27/07, Rick Schmitty < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

This is a bit off topic, but I know there are a lot of PHP
developers
on the list

Which framework do you use if any? Zend, Cake, etc..

TIA





 
<>


RE: [flexcoders] talking to Flash SWF's

2007-04-03 Thread Grant Davies
local connection works too but can have issues if multiple copies of
your app are loaded, is also asynchronous...
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e
.: The glue between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Wednesday, April 04, 2007 1:53 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] talking to Flash SWF's



Others use a intermediary AS2 swf that talks to the AS3 via
localconnection. 

-Original Message-
From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
Behalf Of [EMAIL PROTECTED] <mailto:grant%40bluetube.com> 
Sent: Tuesday, April 03, 2007 2:50 PM
To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
Subject: Re: [flexcoders] talking to Flash SWF's

I'm using external interface which works a little like local connection
except you can have synchronus calls..

I'm using this api/examples :

http://www.flashextensions.com/products/flashinterface.php
<http://www.flashextensions.com/products/flashinterface.php> 

I'm using the flashmaps flash 8 component with flex and although it
hasn't been plain sailing it is working.

Grant.

- Original Message -
From: Yiit_Boyar [EMAIL PROTECTED] <mailto:yigitboyar%40yahoo.com> 
To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
Sent: 4/3/07 5:38 PM
Subject: [flexcoders] talking to Flash SWF's

> hi all;
> in one of my projects; i wanted to use some of my old flash 8 projects

> as external SWF's. I tried to use SWFLoader but i was not able to
extract the content as a movie clip (so couldn't have control over the
loaded swf) hardly after i realized that the problem is AS2. Then i
downloaded Flash 9 Alpha; and tried to compile my old projects with AS3
but it was so difficult since _root , _x etc. are disabled and changed
in AS3. actually i couldn't compiled my old codes error free...
> 
> So is there a way to communicate to AS2 SWF's after loading them into
flex dynamically ? what i mean by control is :
> =listen swf's events
> =control the movieclip (play stop etc) =call swf's functions...
> 
> if the answer is no; so sorry for those dying projects :( .
> thanks...
> 
> yigit
> 
> 
> 
> 
> 
> 
> __
> __ Now that's room service! Choose from over 150,000 
> hotels in 45,000 destinations on Yahoo! Travel to find your fit.
> http://farechase.yahoo.com/promo-generic-14795097
<http://farechase.yahoo.com/promo-generic-14795097> 



 
<>


RE: [flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread Grant Davies
Thats a flash 9/flex only feature right ?
 
Flash 8/as2 doesn't have a data property..
 
g.
 
 
...
> b l u e t u b e i n t e r a c t i v e
.: The glue between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey Williams
Sent: Friday, March 30, 2007 11:44 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do I read Response after FileReference
uploads a file?



fileReference.addEventListener (DataEvent.UPLOAD_COMPLETE_DATA,
eventHandler);

The DataEvent dispatched will have a data property with the data you are
looking for.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thegators_2002
Sent: Friday, March 30, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I read Response after FileReference uploads
a file?

I am trying to use FileReference to upload a file from the user side
to a web page and read the response(xml) that the server returns. I
can't figure out how to get the response, however. It doesn't seem to
be included in the FileReference object.

Is there a way to read the response coming back after a file upload,
or is this halted by design?

 
<>


RE: [flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread Grant Davies
you can't... file reference does not return the response... (yes I know
that's dumb, I thought the same thing)
 
What I had to do is write the response to the session, and after file
reference returns success/fail I go back and request the session
variable as an XML response...
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e
.: The glue between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thegators_2002
Sent: Friday, March 30, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I read Response after FileReference uploads
a file?



I am trying to use FileReference to upload a file from the user side
to a web page and read the response(xml) that the server returns. I
can't figure out how to get the response, however. It doesn't seem to
be included in the FileReference object.

Is there a way to read the response coming back after a file upload,
or is this halted by design?



 
<>


RE: [flexcoders] Google Map API & Flex2.0 Integration?

2007-02-26 Thread Grant Davies
if it doesn't have to be free, I've integrated flashmaps.com into flex..
Ive used location connection and external interface to it.
 
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Tretola
Sent: Friday, February 23, 2007 5:48 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Google Map API & Flex2.0 Integration?



This can be done through an iFrame, but I would suggest you use the
flash version yahoo maps with LocalConnection to communicate instead.
Here is a good resource:
http://www.asfusion.com/blog/entry/inserting-yahoo-maps-in-a-flex-2-appl
ication
<http://www.asfusion.com/blog/entry/inserting-yahoo-maps-in-a-flex-2-app
lication> 

Also, be sure to vote for Flex 2 support for Yahoo Maps here:
http://suggestions.yahoo.com/detail/?prop=ydn&fid=3208
<http://suggestions.yahoo.com/detail/?prop=ydn&fid=3208> 

Rich


On 2/23/07, sanjaypmg <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

Hi All,

How can I integrate google map API with Flex?

Has anybody done it?

Please send your Comments\Ideas to get it done.

Thanks in Advance,
Sanjay








-- 
Rich Tretola

http://www.EverythingFlex.com <http://www.EverythingFlex.com>  

 
<>


RE: [flexcoders] Problems with EventDispatching

2007-02-22 Thread Grant Davies
I used the cairngorm event dispatcher and you don't need to use all of
cairngorm to use it..
 
Its like a central dispatcher...
 
so your component out there that wants to dispatch a "user selected a
date" event..
 
var dateSelectedEvent = new DateSelectedEvent();
dateSelectedEvent.startdate = someDate;
 
CairngormEventDispatcher.getInstance().dispatchEvent(dateSelectedEvent);
 
 
now in the objects that need to listen you may have :
 
CairngormEventDispatcher.getInstance().addEventListener(DateSelectedEven
t.type, onDateSelected);
 
private function onDateSelected(event:CairngormEvent)
{
 
trace("got a date selected event");
 
}
 
 
 
I use this same model in flash with the arp and arpx components and it
works very well.  I'm not a big fan of event bubbling, it may work but I
don't really like it, its a personal thing :)
 
if you don't want to pull in the cairngorm swc you can create your own
central event dispatcher, its pretty easy, here is one I used before I
used cairngorm...
 
ackage com.bluetubeinteractive.control
{
 import flash.events.EventDispatcher;
 import flash.events.Event;

 
 public class SystemController extends EventDispatcher
 {
  private static var _instance:SystemController = null;
  
  private var _mainContainer:DisplayObjectContainer;
  
  public function SystemController()
  {
   if (_instance == null)
_instance = this;
  }
  
  public static function getInstance():SystemController
  {
   if (_instance == null)
_instance = new SystemController();
   
   return _instance;
  }
  
  public function dispatchEvent(event:Event):Boolean
  {
   trace("dispatching event " + new Date().toTimeString());
   return super.dispatchEvent(event);
  }
 
 
 }
}
 
obviously remove the trace once your are rolling with it..
 
Cheers,
Grant.
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul J DeCoursey
Sent: Thursday, February 22, 2007 3:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problems with EventDispatching



I have some classes that are EventDispatcher but not DisplayObjects. I 
have maybe 10 or 15 of these classes and a few of them will not bubble 
events to the SystemManager. I have created the Events to bubble but 
they will not. If I listen on the object I receive them. My problem is 
the Objects I want to receive the events on don't know about the Objects

that dispatch them and I don't want them to know about them. Has anyone 
had a problem like this?

Paul



 
<>


RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Grant Davies
That's how I did it :)  glad I put it in the correct place :)

Grant 



...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, February 19, 2007 11:19 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] cairngorm event that will affect all models,
where to put the logic.

On Monday 19 Feb 2007, Grant Davies wrote:
> Ok...
>
> The controller should listen for the data change event and then 
> dispatch the "get other related" data ?  This should be in the 
> controller which right now just maps an event to a command and does 
> not other processing...

No, the controller does what it does now- listens for the data change
and invokes a command.
The command however, can then dispatch 'get other data'.

--
Tom Chiverton
Helping to continually orchestrate dot-com 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 St James's Court Brown Street Manchester M2 2JF.  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 Law Society.

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

For more information about Halliwells LLP visit www.halliwells.com.



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





RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Grant Davies
Ok... 

The controller should listen for the data change event and then dispatch
the "get other related" data ?  This should be in the controller which
right now just maps an event to a command and does not other
processing...

?

Grant 



...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Monday, February 19, 2007 8:59 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] cairngorm event that will affect all models,
where to put the logic.


Exactly :) 

Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, February 19, 2007 6:04 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] cairngorm event that will affect all models,
where to put the logic.

On Monday 19 Feb 2007, Paul Andrews wrote:
> Why should the part of the app with the date control know that a "get
data"
> event is required?

It doesn't. All it knows it to broadcast a NewDateEvent. What the
controller does with that is it's own buisness.

--
Tom Chiverton
Helping to authoritatively deploy slick infomediaries



RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-18 Thread Grant Davies
The question was, who should fire that event ?

The date change view fires the "change date" event and a command updates
the model for the date..

Who should then fire the "get new data" event, the commmand, the
main.xml, I think its some "central" part of the app that should do
that...

Grant. 



...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Sunday, February 18, 2007 11:27 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] cairngorm event that will affect all models,
where to put the logic.

When the date changes, fire off the same event that will execute the
command that got you data in the first place, should be simple.

Dimitrios Gianninas
Optimal Payments Inc.



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Grant Davies
Sent: Sat 2/17/2007 10:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] cairngorm event that will affect all models, where
to put the logic.
 
Hey guys, have a cairngorm architecture question.
 
I have a dashboard where various charts are based on a global date.  I
have my datemodel and commands etc that update the datemodel based on
the date event being fired.
 
What I also need to happen is if the date changes, I need to get fresh
data for the charts, the charts are attached to models for their
specific type of data.
 
so when a date change occurs, i need to go and get the relevant data for
the charts , which updates their models, I'm not sure where i should
subscribe to this change of date since I don't want to make it chart
specific.  Should it be in the overall application controller, in the
main.mxml file or what ?
 
this event is more like a "if the date changes referesh all the data for
all the models"
 
Grant
 
 
 
.......
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> A Tribal 
> Chicken Designs Affiliate <http://www.tribalchicken.com/>

 



RE: [flexcoders] observing a model change in cairngorm

2007-02-18 Thread Grant Davies
Thanks Dimitrios..

Question is when the Model.someData changes, will my set dataProvider
function be called again ?  During my testing it appeared to be called
when it was first run, but when the model changed the setProvider
function was never called again...


Grant 



...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Sunday, February 18, 2007 11:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] observing a model change in cairngorm

One way to do it is for the ChartView to manipulate the data as it
wishes. So have a setter in the ChartView MXML like so:



And inside the view it looks like so:


  
  public function set dataProvider( values:XML ):void {
... do stuff here
  }
  

  ... view stuff here ...


Dimitrios Gianninas
Optimal Payments Inc.



-Original Message-
From: flexcoders@yahoogroups.com on behalf of Grant Davies
Sent: Sat 2/17/2007 5:57 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] observing a model change in cairngorm
 
gareth,
 
thanks for the response... I think my concern is poluting the model with
view specific data...  
 
The results of a command is xml and this is set in the model which is an
as class (VisitorModel) ,  the chart bound to the model via its data
provider.
 
when the app first starts up, I don't have any xml, a user picks a date
range, I hit a web service and get valid xml back, then  the chart has
to has create a column series based on some labels in the xml,  so I
need to know when the xml has changed so that the column series can be
created and the chart updated.
 
In your example below, does the buildJobsTree just manipulate the data
or does it actually do something to the view ?
 
Grant
 
 
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> A Tribal 
> Chicken Designs Affiliate <http://www.tribalchicken.com/>

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gareth Edwards
Sent: Saturday, February 17, 2007 5:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] observing a model change in cairngorm



Why not define an as class for your model (if you aren't already), and
define a separate variable that you can populate on the other data being
set?

The snippet I posted is from something I've done that looks like
this

public function set jobs (data:ArrayCollection  )
: void 
{
_jobs = data;
buildJobsTree(_jobs);
} 

Not sure if its the best option.. but it certainly works for me.

Either that, or there are some observer classes from Adobe Consulting
that allow you to watch changes to your model from the UI.

Cheers
Gareth.


Grant Davies wrote: 

Thanks gareth..
 
the model is used by multiple views, a grid and a chart, the
chart needs the xml from the model manipulated a little differently than
the grid does...
 
 
grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate
<http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com>  [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> ] On Behalf Of Gareth Edwards
Sent: Saturday, February 17, 2007 4:32 PM
To: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> 
Subject: Re: [flexcoders] observing a model change in cairngorm



Why not use a setter in your model and do the work there?

public function set jobs (data:ArrayCollection
 ) : void 
{
// Custom logic here?
    _jobs = data;
}

Cheers
Gareth.

Grant Davies wrote: 

Hi guys, I've got my view, model, commands and delegate
all running and my view contains a chart.
 
When the model changes for my chart data I need to work
the data a little and can't just directly use the binding.  
 
do I
 
1)

RE: [flexcoders] no code completion with cairngorm

2007-02-18 Thread Grant Davies
Hey guys, wanted to check, do those using cairngorm get code completion
in flex builder ?  I'm not...
 
grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


[flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-17 Thread Grant Davies
Hey guys, have a cairngorm architecture question.
 
I have a dashboard where various charts are based on a global date.  I
have my datemodel and commands etc that update the datemodel based on
the date event being fired.
 
What I also need to happen is if the date changes, I need to get fresh
data for the charts, the charts are attached to models for their
specific type of data.
 
so when a date change occurs, i need to go and get the relevant data for
the charts , which updates their models, I'm not sure where i should
subscribe to this change of date since I don't want to make it chart
specific.  Should it be in the overall application controller, in the
main.mxml file or what ?
 
this event is more like a "if the date changes referesh all the data for
all the models"
 
Grant
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


RE: [flexcoders] observing a model change in cairngorm

2007-02-17 Thread Grant Davies
I tried that and its only called ONCE as you're binding to a function
that manipulates the data.
 
when the data in -> ModelLocator.getInstance().myData  changes there is
nothing bound to it, since you bound to the function massage data and
not the actual data in the model...
 
does that make any sense ?
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Saturday, February 17, 2007 5:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] observing a model change in cairngorm



Hi Grant
Can't you use a binding function? 

dataProvider="{ massageData( ModelLocator.getInstance().myData ) }"

Cheers
Ralf. 


On 2/17/07, Gareth Edwards <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

Why not define an as class for your model (if you aren't
already), and define a separate variable that you can populate on the
other data being set?

The snippet I posted is from something I've done that looks like
this

public function set jobs (data:ArrayCollection) : void 
{
_jobs = data;
buildJobsTree(_jobs);
} 

Not sure if its the best option.. but it certainly works for me.

Either that, or there are some observer classes from Adobe
Consulting that allow you to watch changes to your model from the UI.

    
    
Cheers
Gareth.


Grant Davies wrote: 

Thanks gareth..
 
the model is used by multiple views, a grid and a chart,
the chart needs the xml from the model manipulated a little differently
than the grid does...
 
 
grant
 
 
...
        > b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.bluetube.com/bti
<http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate
<http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com>  [ mailto:flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> ] On Behalf Of Gareth Edwards
Sent: Saturday, February 17, 2007 4:32 PM
To: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> 
Subject: Re: [flexcoders] observing a model change in
cairngorm



Why not use a setter in your model and do the work
there?

public function set jobs (data:ArrayCollection) : void 
{
// Custom logic here?
_jobs = data;
        }

Cheers
Gareth.

Grant Davies wrote: 

Hi guys, I've got my view, model, commands and
delegate all running and my view contains a chart.
 
When the model changes for my chart data I need
to work the data a little and can't just directly use the binding.  
 
do I
 
1) change my command to fire an event when the
model has been updated
2) Is there some way I can observe a model
change and then kick of my "data work" a little and not directly bind
the chart to the model ?
 
Grant
 
 
 
    ...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

> http://www.bluetube.com/bti
<http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate
<http://www.tribalchicken.com/> 
 

RE: [flexcoders] observing a model change in cairngorm

2007-02-17 Thread Grant Davies
gareth,
 
thanks for the response... I think my concern is poluting the model with
view specific data...  
 
The results of a command is xml and this is set in the model which is an
as class (VisitorModel) ,  the chart bound to the model via its data
provider.
 
when the app first starts up, I don't have any xml, a user picks a date
range, I hit a web service and get valid xml back, then  the chart has
to has create a column series based on some labels in the xml,  so I
need to know when the xml has changed so that the column series can be
created and the chart updated.
 
In your example below, does the buildJobsTree just manipulate the data
or does it actually do something to the view ?
 
Grant
 
 
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gareth Edwards
Sent: Saturday, February 17, 2007 5:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] observing a model change in cairngorm



Why not define an as class for your model (if you aren't already), and
define a separate variable that you can populate on the other data being
set?

The snippet I posted is from something I've done that looks like
this

public function set jobs (data:ArrayCollection  )
: void 
{
_jobs = data;
buildJobsTree(_jobs);
} 

Not sure if its the best option.. but it certainly works for me.

Either that, or there are some observer classes from Adobe Consulting
that allow you to watch changes to your model from the UI.

Cheers
Gareth.


Grant Davies wrote: 

Thanks gareth..
 
the model is used by multiple views, a grid and a chart, the
chart needs the xml from the model manipulated a little differently than
the grid does...
 
 
grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate
<http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com>  [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> ] On Behalf Of Gareth Edwards
Sent: Saturday, February 17, 2007 4:32 PM
To: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> 
Subject: Re: [flexcoders] observing a model change in cairngorm



Why not use a setter in your model and do the work there?

public function set jobs (data:ArrayCollection
 ) : void 
{
// Custom logic here?
_jobs = data;
}

Cheers
Gareth.

Grant Davies wrote: 

Hi guys, I've got my view, model, commands and delegate
all running and my view contains a chart.
 
When the model changes for my chart data I need to work
the data a little and can't just directly use the binding.  
 
do I
 
1) change my command to fire an event when the model has
been updated
2) Is there some way I can observe a model change and
then kick of my "data work" a little and not directly bind the chart to
the model ?
 
Grant
 
 
 
.......
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.bluetube.com/bti
<http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate
<http://www.tribalchicken.com/> 

 






 
<>
<>
<>


RE: [flexcoders] observing a model change in cairngorm

2007-02-17 Thread Grant Davies
Thanks gareth..
 
the model is used by multiple views, a grid and a chart, the chart needs
the xml from the model manipulated a little differently than the grid
does...
 
 
grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gareth Edwards
Sent: Saturday, February 17, 2007 4:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] observing a model change in cairngorm



Why not use a setter in your model and do the work there?

public function set jobs (data:ArrayCollection  )
: void 
{
// Custom logic here?
_jobs = data;
    }
    
Cheers
Gareth.

Grant Davies wrote: 

Hi guys, I've got my view, model, commands and delegate all
running and my view contains a chart.
 
When the model changes for my chart data I need to work the data
a little and can't just directly use the binding.  
 
do I
 
1) change my command to fire an event when the model has been
updated
2) Is there some way I can observe a model change and then kick
of my "data work" a little and not directly bind the chart to the model
?
 
Grant
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate
<http://www.tribalchicken.com/> 

 



 
<>
<>


[flexcoders] observing a model change in cairngorm

2007-02-17 Thread Grant Davies
Hi guys, I've got my view, model, commands and delegate all running and
my view contains a chart.
 
When the model changes for my chart data I need to work the data a
little and can't just directly use the binding.  
 
do I
 
1) change my command to fire an event when the model has been updated
2) Is there some way I can observe a model change and then kick of my
"data work" a little and not directly bind the chart to the model ?
 
Grant
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


[flexcoders] no code completion with cairngorm

2007-02-16 Thread Grant Davies
Do I need something special to get code completion with cairngorm swc?
I'm getting a lot of typos, but when I do com.adobe.  and wait, I never
get the code completion... is there something I need to setup ?
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


[flexcoders] preloader or viewstate while charts initiailize

2007-02-16 Thread Grant Davies
Hi guys,
 
I need to display something while my charts are loading in a dashboard
style interface where different things are initializing at different
times, I wondered how people where showing this "busy" state, use a
viewstate to switch between the charrt and another state with the
animation, is there something built into the graph ?  In flash I would
have overlayed an invisible button to act as a modal with an animation
in the middle..
 
cheers
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


RE: [flexcoders] Re: svn and flex not getting along

2007-02-15 Thread Grant Davies
my structure looks like yours other than my flex project being in the
root, I need to move it into its own folder as a child of the root, I've
changed the settings to not copy non embedded files, we'll see how it
does from here, thanks a bunch you've been very helpful.
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul DeCoursey
Sent: Thursday, February 15, 2007 11:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: svn and flex not getting along



It appears that I unchecked "Spell check" on my brain, "Copy" vs "Coy"
anyway, I thought that I'd also note that I tend to layout my
projects like this...

build <--- or bin or web if that is what your convention is
src
-java
-flex
-conf
build.xml
... any other project files that should not be checked into svn.

I then tell Flex Builder to not copy non-embedded files, because I
will keep those in my build folder. In some cases I'll put them in a
web folder and then have ant or maven copy the web files to the build
folder or war file. These build processes can get pretty complex and
it really pays to think about it early on. I've had my fair share of
poorly laid out project folders, in fact I'm working with one right now.

pd

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, Paul J DeCoursey <[EMAIL PROTECTED]> wrote:
>
> Uncheck the "Coy non-embedded files to output directory" option in the

> Flex Compiler properties for the project. If you are storing
everything 
> in the output directory anyway it makes sense to turn that feature
off.
> 



 
<>


RE: [flexcoders] svn and flex not getting along

2007-02-15 Thread Grant Davies
Hi Scott,
 
I have to include the bin folder since we have a lot of php in there,
I've stopped source controlling the html-template folder, but it appears
that flex is copying stuff from my project folder into the bin folder
still
 
my project folder is
 
_svn
/com
/.project
/html-template
/main.mxml
 
etc..
 
and flex appears to copy into my bin folder
 
com
 
so of course SVN gets confused since I have another com folder from my
dev folder copied into my bin folder with its _svn folder intact...
 
 
so I need to completely remove the _svn folder from my root dev folder
so its not source controlled and flex won't mess with it ?
 
Grant
 
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of slangeberg
Sent: Tuesday, February 13, 2007 2:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] svn and flex not getting along



You have html-template in version control? I don't include that or any
of the eclipse/flex files (.project, etc.) - and no problems, here. I
also don't include the /bin folder, until I create custom files, such as
index.html, js, css (html), etc...

-Scott


On 2/13/07, Grant Davies <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> wrote: 



Sorry for the double post but I hijacked by accident..
 
I figured out my issue is svn and flex based on this post :
 

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588
.html
<http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/17258
8.html> 
 
somehow a stale main.swf got into our html-template folder and
then was copied into our bin folder and all hell breaks loose,  has
there been a fix yet for flex so it ignores svn folders when copyng ?  a
quick google search didn't reveal much..
 
 
Cheers,
Grant
 
 
... 
    > b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate
<http://www.tribalchicken.com/> 

 








-- 

: : ) Scott 

 
<>
<>


RE: [flexcoders] Re: runtime configuration

2007-02-14 Thread Grant Davies
would love to have that paul, thanks!
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul 
DeCoursey
Sent: Wednesday, February 14, 2007 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: runtime configuration



I have something like that as well.

It's a GlobalManager class that loads properties from an xml file.
Files that look like this.


../upload



Let me know if you are still interested and I'll clean it up and send
it over.

Paul

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
"Grant Davies" <[EMAIL PROTECTED]> wrote:
>
> yeah, that just seems a bit "re-invent the wheel" since you come up
with your own xml format, then a helper class to get the data and also
something thats environment aware (prod,test.qa etc) via a
configmanager like..
> 
> 
> ConfigurationManager.getProperty("pizzaService");
> 
> I was just hoping there was something already built.. I'll use the
XML service..
> 
> Grant.
> 
> 
> ...
> > b l u e t u b e i n t e r a c t i v e.
> .: grant davies
> .: 404.428.6839 (c)
> .: 708-983-1577 (F)
> > [EMAIL PROTECTED]
> > http://www.bluetube.com/bti <http://www.bluetube.com/bti>  
> > <http://www.bluetube.com/bti <http://www.bluetube.com/bti> > 
> > A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/ 
> > <http://www.tribalchicken.com/> > 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ]
On Behalf Of Dimitrios Gianninas
> Sent: Wednesday, February 14, 2007 9:12 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: RE: [flexcoders] runtime configuration
> 
> 
> 
> Put all the config you want in an XML file and then use the
 component to load the XML file at any time.
> 
> Dimitrios Gianninas
> RIA Developer
> Optimal Payments Inc.
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ]
On Behalf Of Grant Davies
> Sent: Tuesday, February 13, 2007 8:48 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] runtime configuration
> 
> 
> 
> Is there a practice or class for runtime config of flex apps? I'd
like to put all my HTTP service call urls in an xml file and then pull
out whats needed, is there some practise or class that handles this or
am inventing the wheel ?
> 
> We have a prototype, runs local and on the server and don't have the
bandwidth for cairngorm for this release.
> 
> cheers
> Grant
> 
> 
> ...
> > b l u e t u b e i n t e r a c t i v e.
> .: grant davies
> .: 404.428.6839 (c)
> .: 708-983-1577 (F)
> > [EMAIL PROTECTED]
> > http://www.bluetube.com/bti <http://www.bluetube.com/bti>  
> > <http://www.bluetube.com/bti <http://www.bluetube.com/bti> > 
> > A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/ 
> > <http://www.tribalchicken.com/> > 
> 
> 
> 
> AVIS IMPORTANT
> 
> WARNING
> 
> Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé. L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation. Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système. La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux. Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.
> 
> This electronic message and its attachments may contain
confidential, proprietary or legally privileged infor

RE: [flexcoders] Flex app doesn't launch in regular flash player 9

2007-02-14 Thread Grant Davies
its a standard build with express install enabled..  I used the vanilla project 
settings for flex
 
on my other machine with flash player 8 it asks me to upgrade..
 
I'm working with the client to find out what version of flash he has..
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Dimitrios Gianninas
Sent: Wednesday, February 14, 2007 9:39 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex app doesn't launch in regular flash player 9



with express install they would get a prompt to upgrade to 9... how did u build 
it?
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Grant 
Davies
Sent: Wednesday, February 14, 2007 9:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex app doesn't launch in regular flash player 9



We have express install enabled and the client may be running any version of 
flash... but I'm pretty sure they are running flash 8 or 9.  I'll get the real 
version shortly..
 
right now they get a blank screen.
 
So with flash 8 they could get a blank screen even though express install is 
enabled ?
 
Grant.
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Dimitrios Gianninas
Sent: Wednesday, February 14, 2007 9:30 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex app doesn't launch in regular flash player 9



that normally happens when its Player 8 and u dont have express install, u sure 
its Flash 9?
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Grant 
Davies
Sent: Wednesday, February 14, 2007 1:07 AM
To: flexcoders@yahoogroups.com
Cc: Paul Pezzano
Subject: [flexcoders] Flex app doesn't launch in regular flash player 9



hi guys,
 
We develop with the flash player 9 debug player but when our app is launched in 
firefox2 or ie6 with the regular flash player 9 they just get a blank screen, 
do I need to turn of debug or something ? anyone else seen this issue ?
 
cheers
Grant
 
 
.......
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 

AVIS IMPORTANT

WARNING

Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé. L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système. La lecture, la distribution, la copie ou tout 
autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient. No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message. If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system. The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful. If you have received this e-mail in error, please notify the 
sender.

 
<>
<>
<>


RE: [flexcoders] Flex app doesn't launch in regular flash player 9

2007-02-14 Thread Grant Davies
We have express install enabled and the client may be running any version of 
flash... but I'm pretty sure they are running flash 8 or 9.  I'll get the real 
version shortly..
 
right now they get a blank screen.
 
So with flash 8 they could get a blank screen even though express install is 
enabled ?
 
Grant.
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Dimitrios Gianninas
Sent: Wednesday, February 14, 2007 9:30 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex app doesn't launch in regular flash player 9



that normally happens when its Player 8 and u dont have express install, u sure 
its Flash 9?
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Grant 
Davies
Sent: Wednesday, February 14, 2007 1:07 AM
To: flexcoders@yahoogroups.com
Cc: Paul Pezzano
Subject: [flexcoders] Flex app doesn't launch in regular flash player 9



hi guys,
 
We develop with the flash player 9 debug player but when our app is launched in 
firefox2 or ie6 with the regular flash player 9 they just get a blank screen, 
do I need to turn of debug or something ? anyone else seen this issue ?
 
cheers
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 

AVIS IMPORTANT

WARNING

Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé. L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système. La lecture, la distribution, la copie ou tout 
autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient. No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message. If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system. The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful. If you have received this e-mail in error, please notify the 
sender.

 
<>
<>


RE: [flexcoders] runtime configuration

2007-02-14 Thread Grant Davies
yeah, that just seems a bit "re-invent the wheel" since you come up with your 
own xml format, then a helper class to get the data and also something thats 
environment aware (prod,test.qa etc) via a configmanager like..
 
 
ConfigurationManager.getProperty("pizzaService");
 
I was just hoping there was something already built.. I'll use the XML service..
 
Grant.
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Dimitrios Gianninas
Sent: Wednesday, February 14, 2007 9:12 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] runtime configuration



Put all the config you want in an XML file and then use the  
component to load the XML file at any time.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Grant 
Davies
Sent: Tuesday, February 13, 2007 8:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] runtime configuration



Is there a practice or class for runtime config of flex apps?  I'd like to put 
all my HTTP service call urls in an xml file and then pull out whats needed, is 
there some practise or class that handles this or am inventing the wheel ?
 
We have a prototype, runs local and on the server and don't have the bandwidth 
for cairngorm for this release.
 
cheers
Grant
 
 
.......
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 

AVIS IMPORTANT

WARNING

Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé. L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système. La lecture, la distribution, la copie ou tout 
autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.

This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient. No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message. If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system. The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful. If you have received this e-mail in error, please notify the 
sender.

 
<>
<>


RE: [flexcoders] Flex app doesn't launch in regular flash player 9

2007-02-14 Thread Grant Davies
Igor,
 
I compile on my dev box and then upload it to a completely different
machine, its my client that can't see the app when they try and hit the
url...
 
so you were suggesting it was MY browsers cache ?  This is the users
machine that has the issue or maybe I'm misunderstanding ?
 
cheers,
Grant
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Igor Costa
Sent: Wednesday, February 14, 2007 9:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex app doesn't launch in regular flash
player 9



Grant

Isn't a problem due to the fp9

It's simple, just clean up your cache browser and when you compile the
flex app you make sure that you closed the test app before you complete
compile.

Best 

--Igor Costa


On 2/14/07, Grant Davies <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> wrote: 



hi guys,
 
We develop with the flash player 9 debug player but when our app
is launched in firefox2 or ie6 with the regular flash player 9 they just
get a blank screen, do I need to turn of debug or something ? anyone
else seen this issue ?
 
cheers
Grant
 
 
... 
    > b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate
<http://www.tribalchicken.com/> 

 








-- 

Igor Costa
www.igorcosta.org <http://www.igorcosta.org> 
www.igorcosta.com <http://www.igorcosta.com> 
skype: igorpcosta 

 
<>
<>


[flexcoders] Flex app doesn't launch in regular flash player 9

2007-02-13 Thread Grant Davies
hi guys,
 
We develop with the flash player 9 debug player but when our app is
launched in firefox2 or ie6 with the regular flash player 9 they just
get a blank screen, do I need to turn of debug or something ? anyone
else seen this issue ?
 
cheers
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


[flexcoders] runtime configuration

2007-02-13 Thread Grant Davies
Is there a practice or class for runtime config of flex apps?  I'd like
to put all my HTTP service call urls in an xml file and then pull out
whats needed, is there some practise or class that handles this or am
inventing the wheel ?
 
We have a prototype, runs local and on the server and don't have the
bandwidth for cairngorm for this release.
 
cheers
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


RE: [flexcoders] svn and flex not getting along

2007-02-13 Thread Grant Davies
ok... was hoping it was fixed in the new flex ide 2.1 but i guess not :)
 
thanks for the tips..
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of slangeberg
Sent: Tuesday, February 13, 2007 2:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] svn and flex not getting along



You have html-template in version control? I don't include that or any
of the eclipse/flex files (.project, etc.) - and no problems, here. I
also don't include the /bin folder, until I create custom files, such as
index.html, js, css (html), etc...

-Scott


On 2/13/07, Grant Davies <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> wrote: 



Sorry for the double post but I hijacked by accident..
 
I figured out my issue is svn and flex based on this post :
 

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588
.html
<http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/17258
8.html> 
 
somehow a stale main.swf got into our html-template folder and
then was copied into our bin folder and all hell breaks loose,  has
there been a fix yet for flex so it ignores svn folders when copyng ?  a
quick google search didn't reveal much..
 
 
Cheers,
Grant
 
 
... 
    > b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate
<http://www.tribalchicken.com/> 

 








-- 

: : ) Scott 

 
<>
<>


[flexcoders] svn and flex not getting along

2007-02-13 Thread Grant Davies
Sorry for the double post but I hijacked by accident..
 
I figured out my issue is svn and flex based on this post :
 
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588
.html
 
somehow a stale main.swf got into our html-template folder and then was
copied into our bin folder and all hell breaks loose,  has there been a
fix yet for flex so it ignores svn folders when copyng ?  a quick google
search didn't reveal much..
 
 
Cheers,
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


[flexcoders] compiled swf does not show changes

2007-02-13 Thread Grant Davies
Hi guys, this is a little OT as it more the tool than a code question
but we keep running into this issue.
 
We compile on windows using the flex ide, and sometimes I'll change an
mxml file, save it and it builds but the change is not seen in the
browser.  I've got caching disabled and we've tested in both firefox and
IE.  We have to backup the project, delete it and then re-add it to
eclipse and then it starts working ok again..
 
I removed all the componets from main.mxml and compiled it and it still
showed "stale" components.  Even running it through the debugger...
 
its driving me nuts, has anyone else seen this (flex builder version
2.0.1)
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cashorali, Tanya M.
Sent: Tuesday, February 13, 2007 12:21 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] convert e4x xml results to arraycollection or
xmllistcollection



I ended up using a filterfunction on the XMLListCollection and it works
like a charm.

Here's the code if anyone's interested:





public function myFilter(item:Object):Boolean

{

return [EMAIL PROTECTED] == "complete";

}



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cashorali, Tanya M.
Sent: Tuesday, February 13, 2007 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] convert e4x xml results to arraycollection or
xmllistcollection

I want to filter the results (which are in e4x format) of an HTTPService
call (display_samples) and push certain ones into a new arrayCollection.


This code populates a Tree just fine:

 

But when I do this: Alert.show(all_samples.length.toString());  

It's showing the size as 0.  I can't seem to interact with the data at
all.  I also tried an arraycollection and I'm making sure I set it after
I send() the HTTPService request.

These also don't work:

new ArrayCollection(display_samples.lastResult.sample)

display_samples.lastResult.sample as ArrayCollection

Any ideas?

Thanks

THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED
ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN
CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION,
DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON,
THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED
RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR,
PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE
OF THIS INFORMATION. 

THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED
ONLY FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN
CONFIDENTIAL AND/OR PRIVILEGED MATERIAL. ANY REVIEW, RETRANSMISSION,
DISSEMINATION OR OTHER USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON,
THIS INFORMATION BY PERSONS OR ENTITIES OTHER THAN THE INTENDED
RECIPIENT IS PROHIBITED. IF YOU RECEIVED THIS INFORMATION IN ERROR,
PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND PROPERLY DISPOSE
OF THIS INFORMATION. 

 
<>


RE: [flexcoders] Load Flex app (swf) into Flash App

2007-02-07 Thread Grant Davies
If you are going flash 8 - 9 and back Flash interface looks a bit better
than local connection since it can be synchronous..
 
http://www.flashextensions.com/products/flashinterface.php
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Hesla
Sent: Wednesday, February 07, 2007 2:10 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Load Flex app (swf) into Flash App



Well, this should do the trick. Thanks much! 

~g

On Feb 7, 2007, at 11:25 AM, Andrew Trice wrote:





Yes, you can do that.  You can communicate between the embedded
Flash 8 and Flex (Flash 9) swf files using the localConnection object.
More info can be found at:



http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=749eaa47
<http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=749eaa47> 



Hope that helps,

-Andy



_

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com <http://www.cynergysystems.com> 



Blog: http://www.cynergysystems.com/blogs/page/andrewtrice
<http://www.cynergysystems.com/blogs/page/andrewtrice> 

Email: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

Office: 866-CYNERGY 







From: flexcoders@yahoogroups.com [
mailto:[EMAIL PROTECTED] On Behalf Of Greg Hesla
Sent: Wednesday, February 07, 2007 10:09 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Load Flex app (swf) into Flash App



I've thought about this some more - would it be possible to flip
this around and build my containers in Flex and load our old Flash SWFs
in them? 



This leads me to another question - how would these
dynamically-loaded swf files communicate with their container Flex swf
files? In Flash, I was able to use the _parent pronoun from within the
child, and the instance name of the movieclip from the parent to send
data, call functions, etc.



Thanks,

~greg



On Feb 6, 2007, at 4:18 PM, Greg Hesla wrote:







I was afraid of that. Thanks very much for your quick response.



~g



On Feb 6, 2007, at 3:49 PM, Tracy Spratt wrote:









No, because the Flash will be ver 8, AS2, and cannot contain the
AS3 virtual machine needed for FP 9. 



Tracy







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Greg Hesla
Sent: Tuesday, February 06, 2007 3:28 PM
To: Flex Coders
Subject: [flexcoders] Load Flex app (swf) into Flash App



Is it possible to load a Flex-based swf file into a Flash movie
using 
loadMovie()?

We are trying to migrate from Flash / Remoting to Flex. We have 
several "container" movies which load smaller movies that the
user 
interacts with.

Thanks in advance,
Greg

















 
<>


RE: [flexcoders] MouseUpSomewhere event, whence hast thou gone?

2007-02-05 Thread Grant Davies
oh yeah..
 
lets add a numeric status and right now it can be 0 or 1 and a message
that goes with it..
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Monday, February 05, 2007 3:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] MouseUpSomewhere event, whence hast thou gone?



that adds a mouseUp listener/handler for the whole app, eh?  How do I
know if this mouseUp is related to the object the user gestured a
mouseDown on?  Kind of coupled up too.

What I have is this screen snap
http://www.cubicleman.com/snaps/snap.png
<http://www.cubicleman.com/snaps/snap.png> 
I have mouseDown capture on the bluish color box that allows me to drag
it left/right and to shrink/expand the length of it while holding the
mouse button down on it.  Now, if the user is holding the mouse button
down and accidentally moves the mouse off of the bluish box and then
lets the mouse button go, I want to fire a event then that executes a
method inside the component representing the bluish box.  

Starting to think maybe just fire the mouseOut event and ignore this
possible user accident!  

  

DK


On 2/5/07, Michael Schmalle <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

Hi,

try adding a listener to the systemManager; IE

systemManager.addEventListener(MouseEvent.MOUSE_UP,
systemManager_mouseUpHandler);

Peace, Mike


On 2/5/07, Douglas Knudsen <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 


I'm converting a Flex 1.5 app to 2.0.  Under 1.5 I used
a event on a HBox called MouseUpSomewhere.  Seems this is no more in
2.0.  Any ideas what it is now called?  Or maybe another way to get this
same functionality to work?  I can't use mouseOut.  I need a event that
fires when the user releases the mouse button whilst over a different
component. 

-- 
Douglas Knudsen
http://www.cubicleman.com <http://www.cubicleman.com> 
this is my signature, like it? 






-- 
Teoti Graphix
http://www.teotigraphix.com <http://www.teotigraphix.com> 

Blog - Flex2Components
http://www.flex2components.com <http://www.flex2components.com> 

You can find more by solving the problem then by 'asking the
question'. 




-- 
Douglas Knudsen
http://www.cubicleman.com <http://www.cubicleman.com> 
this is my signature, like it? 

 
<>


RE: [flexcoders] Transforming XML for graphs and datagrids

2007-02-05 Thread Grant Davies
I created a simple example...
 
if you wanted to populate a grid using the following xml :
 
http://www.bluetube.com/temp/data.xml
 
 
and you wanted a grid that said
 
Date fruit1 fruit2 fruit 3
 
 Jan-03200781225971161280

 

etc... what is the most efficient way of doing it?  Right now I'd take
the xml and process it into a new array of objects like :

 

object:Object = { date:theDate, fruit1:fruit[0], fruit2:fruit[1],
fruit3:fruit[2] };

And this sucks when you use more complex xml.

Grant

 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Grant Davies
Sent: Monday, February 05, 2007 12:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Transforming XML for graphs and datagrids



Hey guys,
 
We just spent some time writing e4x code to take the contents of an XML
response and transform it into something my grid/graph can use and I'm
sure we are making this much harder than it needs to be...
 
The examples for data binding from the flex help and online are always
the picture perfect XML that was designed specifically for the grid or
graph example, where as in the real world the XML is never quite how you
need it.
 
 
 
The XML we consume looks like this :
 
http://www.bluetube.com/temp/getVisitorsOverTimeResponse.xml
<http://www.bluetube.com/temp/getVisitorsOverTimeResponse.xml> 
 
What I need to do is plot the time/date and then the 5 rates in a graph,
the rates are just a count at that timestamp.
 
What I'm having to do right now is take the xml and translate it into an
arrayCollection of objects each object has
 
class SeriesData
{
   timeStamp:String;
   rate1:String;
rate2:String;
rate3:String;
rate4:String;
rate5:String;
 
}
 
So in my graph I then plot each rate as a series


 


   

 
I've got about 8 lines of code to take the data, put it into objects
then stuff it into an arraylist for the graph to consume, I'd rather be
taking the xml directly to the graph.
 
 
what I really want to do is take the xml piece 


  
   2006-12-31 12:01:00
   
  897878
  8787
  897878
  8787
  897878
  
  
  
   2006-12-31 12:02:00
   
  897878
  8787
  897878
  8787
  897878
  
  
  
   2006-12-31 12:03:00
   
  897878
  8787
  897878
  8787
  897878
  
  


 
thats repeated and apply that to a series, so each rate with a different
id would get a series... 
 
I'm looking for a tutorial on xml transformation I guess...
 
 
 
.......
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 

 
<>
<>


[flexcoders] Transforming XML for graphs and datagrids

2007-02-05 Thread Grant Davies
Hey guys,
 
We just spent some time writing e4x code to take the contents of an XML
response and transform it into something my grid/graph can use and I'm
sure we are making this much harder than it needs to be...
 
The examples for data binding from the flex help and online are always
the picture perfect XML that was designed specifically for the grid or
graph example, where as in the real world the XML is never quite how you
need it.
 
 
 
The XML we consume looks like this :
 
http://www.bluetube.com/temp/getVisitorsOverTimeResponse.xml
 
What I need to do is plot the time/date and then the 5 rates in a graph,
the rates are just a count at that timestamp.
 
What I'm having to do right now is take the xml and translate it into an
arrayCollection of objects each object has
 
class SeriesData
{
   timeStamp:String;
   rate1:String;
rate2:String;
rate3:String;
rate4:String;
rate5:String;
 
}
 
So in my graph I then plot each rate as a series


 


   

 
I've got about 8 lines of code to take the data, put it into objects
then stuff it into an arraylist for the graph to consume, I'd rather be
taking the xml directly to the graph.
 
 
what I really want to do is take the xml piece 


  
   2006-12-31 12:01:00
   
  897878
  8787
  897878
  8787
  897878
  
  
  
   2006-12-31 12:02:00
   
  897878
  8787
  897878
  8787
  897878
  
  
  
   2006-12-31 12:03:00
   
  897878
  8787
  897878
  8787
  897878
  
  


 
thats repeated and apply that to a series, so each rate with a different
id would get a series... 
 
I'm looking for a tutorial on xml transformation I guess...
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


RE: [flexcoders] is flex the right tool for me

2007-02-05 Thread Grant Davies
If its just a client for viewing videos and you do a lot of skinning and
animation I'd stick with flash, we do our video stuff in flash and our
heavy lifting apps in flex.
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gr8.walk
Sent: Monday, February 05, 2007 12:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] is flex the right tool for me



Hi folks 
I am new to flash and want to make a streaming media client.
i want to know if flex is the right tool for this kind of application.



 
<>


[flexcoders] HTTPService example sending XML

2007-02-01 Thread Grant Davies
I have a rest service where I send it the request as xml and the
response comes back as xml, does someone have a simple example I could
look at as I'm having issues.
 
cheers,
Grant
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>


RE: [flexcoders] CANNOT embed arrayCollection inside valueObject ... Anyone see this? (Pete Farland)?

2007-01-19 Thread Grant Davies
It looks like the java classes that are a cone of the the flex classes
are not on the classpath in Weblogic.  I have not deployed FDS to
Weblogic, I use openAMF but that type of error looks like Weblogic can't
load the java class that represents the ArrayCollection under the flex
package, check your classpath on Weblogic.
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Friday, January 19, 2007 9:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CANNOT embed arrayCollection inside valueObject
... Anyone see this? (Pete Farland)?



This seems to be specific to a WebLogic server.

When a valueObject, containing a property as an arrayCollection, is
passed
to the server, we get the following error:

error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: flex.messaging.io.ArrayCollection:
This
error could indicate that a component was deployed on a cluster member
but
not other members of that cluster. Make sure that any component deployed
on
a server that is part of a cluster is also deployed on all other members
of
that cluster.

This does not happen testing locally on JRun.

Ideas anyone?

--
This e-mail message (including attachments, if any) is intended for the
use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt
from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
--



 
<>


RE: [flexcoders] Re: Newbie asks why Flex?

2007-01-15 Thread Grant Davies
I've done user interfaces in C, C++, C#, Pascal, Java (its its 20
million gui frameworks), .NET, VB etc.. etc..
 
I started programming GUI's in flash about 3 or 4 years ago, and still
doing my backend development in java, .net or php.  Flash gives me the
user experience I'm after, the rich, cool looking user interface that
allows me to create on line applications, instead of websites that are
inferior to desktop apps when built in html.
 
AJAX is lipstick on the pig, its still ugly as hell under the covers,
hard to debug and doesn't run consistently across browsers.  I
personally dislike it with a vengeance, updating div tags on the fly is
once of the lamest solutions to a rich UI I've ever seen.
 
Flex is flash with a strong architecture, a stronger language (as3), a
traditional programming environment (similar to jsp or asp.net
development) and a very rich suite of controls, its aimed at programmers
and its easier to learn than the flash IDE since is similar to other
language development environments.
 
for graphics heavy apps I'll probably still use flash, for online data
centric applications I'll use flex, and use flash for the fancier
components that need fancy graphics or effects.  I personally can't wait
for the flex component explosion that happened to VB and will happen to
flex..
 
Flex will reduce my flash development cycle for real applications by
about 30% since I won't have to keep building all my own components.
 
Cheers,
Grant
 
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

<>


RE: [flexcoders] should cairngorm commands call other commands.

2007-01-15 Thread Grant Davies
This looks like a command sequencer function:
 
http://www.cairngormdocs.org/docs/cairngorm_2_1/com/adobe/cairngorm/comm
ands/SequenceCommand.html
 
not sure if that's available in the version you are using.
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robin Burrer
Sent: Sunday, January 14, 2007 7:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] should cairngorm commands call other commands.



 Hi all,

I'm working on flex application using the cairngorm framework and I ask
myself if commands should call other commands.

E.g. another event is triggered in the result method of the command.
Note that I actually run in this problem when I try to handle my client
application logic, not for server requests. 

I started sending new cairngorm events in the on result method of my
commands but actually I find this approach rather messy.

Should I dispatch all events in my views? That however means that my
views are handling some of my application logic. I think they are not
supposed to do that...

Or should I create a new form commands that only manage other commands?
That would add another level of complexity though ...

Robin

 
<>


RE: [flexcoders] Re: Export FLEX page to PDF

2007-01-13 Thread Grant Davies
Thanks Simon, I'll have to do a Google search on that to figure it out,
thanks for the tip!
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Simon Barber
Sent: Saturday, January 13, 2007 9:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Export FLEX page to PDF



Hi Grant,

What you can do is use the BitMapData class to capture an image of any
part of a Flex 
application and encode into a PNG. Then send that data to your server
and write it to PDF.

Simon

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> I have a requirement right now to generate flex charting components to
a pdf file, it 
looks like I'm going to have to use one of the tools that can hit a url
and then write a 
image file from the browser and then convert that to a pdf (all server
side) which is a bit of 
a pain.
> 
> let me know what you find, I'd love to see something from mm.
> 
> Grant
> 
> - Original Message -
> From: Kevin [EMAIL PROTECTED]
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Sent: 1/12/07 8:47 PM
> Subject: Re: [flexcoders] Export FLEX page to PDF
> 
> > I struggled (and am still struggling) with this very topic while 
> > designing Flash applications and ultimately bought a component for 
> > Flash called blazepdf (http://blazepdf.com <http://blazepdf.com> ).
It can't do everything, 
> > but it allowed me to dynamically create reports which could be 
> > printed or sent as PDF data to wherever you desire (attach to email 
> > or stream to desktop) There are many limitation to this, some of

> > which come from the limitations within Flash, but I was able to use 
> > it pretty successfully to get what I needed AND have created 
> > thousands of pages of reports with this. (If you need help using it,

> > let me know.)
> > 
> > You could also use a scripting language like PHP to construct pdf's 
> > very easily however, the advantage to blazepdf if that it allows the

> > user to preview what you build and can act as a print preview and
PDF 
> > creator all-in-one (thank you greg!)
> > 
> > My biggest questions which I have posted to the list (but not gotten

> > any answer to) is whether it is possible to use Flash to design a 
> > mini SWF Print Module AND then load it into Flex when I need it to 
> > handle my printing & PDF creation. I am going to be trying this 
> > soon, so I will let you know if I can get it to work. I am pretty 
> > sure the blazepdf component uses AS2 so I don't know if that will 
> > pose problems??
> > 
> > I have also approached greg (the creator of blazepdf) a number of 
> > times to see if I could help build his component into a Flex 
> > component. I wouldn't be too hard to replicate the interface in 
> > Flex, and then port the AS2 to AS3, but I haven't seen the code so I

> > don't know for certain the level of difficulty. Unfortunately, I 
> > haven't heard from greg either.
> > 
> > If FlexPaper could output to PDF that could be a great solutions as 
> > well. I know you can go PDF to SWF, but it seems most products don't

> > convert the other way.
> > 
> > Ultimately (if anyone at Adobe is listening) my wish list is the 
> > following:
> > 
> > 1. Create a similar blaze PDF or FlashPaper like component for 
> > printing & print preview (which can output contents to a printer as 
> > well as PDF).
> > AND
> > 2. Create a better print class which can control the user's print 
> > window more than is possible now.
> > 
> > Flex is great, FlashPaper is great, and PDF's are needed (and the 
> > standard in my business) . The same company owns them all. It 
> > should be easy right?
> > 
> > I would think that printing & report creation are of major
importance 
> > to many RIA developers.
> > 
> > I am happy to help with coding a Flex solution
> > 
> > - Kevin
> > 
> > 
> > 
> > 
> > 
> > On Jan 12, 2007, at 1:38 PM, Navert, Bruno ((IT)) wrote:
> > 
> > >
> > > Hi flexcoders,
> > >
> > > I'm evaluating FLEX as a solution to our r

RE: [flexcoders] Need advice on which Event I should be using -

2007-01-11 Thread Grant Davies
Personally instead of directly binding to the Array collection inside
the model for your data grid, I'd register the parent the grid belongs
to to the event that will fire based on a change in the model and inside
that event I'd populate your data grid with the contents of the model
and scroll it to the top.
 
I think binding data directly to your models has some advantages but it
also has some pitfalls when you want to do more than just bind to data,
its also hell to debug. Jesse Warden has a good example of binding in
the trenches - > 
http://www.jessewarden.com/archives/2006/07/binding_in_the.html
 
Grant.
 
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of leds usop
Sent: Thursday, January 11, 2007 3:34 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Need advice on which Event I should be using -



you can do away with the conventional [bindable]
metatag for binding your dataprovider and use
getter-setter instead with a custom flexevent
triggered everytime the setter is called.

or just use the valuecommit event. just make sure you
dont include another value-commit-triggering action
(such as setting another data provider) in the
listener. 

--- Mike Anderson <[EMAIL PROTECTED] <mailto:mike%40anderson.net> >
wrote:

> Hello All,
> 
> I have a Cairngorm application containing a
> DataGrid, in which the
> Grid's dataProvider is bound to an ArrayCollection
> (comprised of
> ValueObjects) located in the ApplicationModel.
> 
> Whenever I want to add a new record to the
> dataProvider, I first create
> a new ValueObject instance, then populate it using a
> Details Form. Of
> course, being a Cairngorm-based app, I dispatch a
> Cairngorm Event
> containing the ValueObject (which causes it to be
> sent off to the
> server), and then wait for the "onResult" response
> from the server.
> 
> Obviously, I can't go blindly adding the new Record
> to the dataProvider,
> until I know for sure that I get a valid "onResult"
> response from the
> server.
> 
> Now assuming that I DO get my "onResult" event, what
> I do then is add
> the ValueObject to the model's ArrayCollection using
> the addItemAt()
> method, inserting the ValueObject at Index Zero so
> it gets pushed to the
> top. This way, all newly created records appear at
> the top of the
> DataGrid (which is exactly what I want to happen).
> 
> This is where things get fuzzy...
> 
> Which Event should I have the DataGrid listen to, so
> that it gets
> scrolled to the very top, *ONLY* when a new record
> gets added to it's
> dataProvider?
> 
> This is a case, where I'd actually prefer
> dispatching a Custom Event, so
> that I can manually dispatch it from the same
> Cairngorm Command Class
> handling the onResult Event - but I don't know if
> that is possible. I
> don't know yet, if I can dispatch events which get
> broadcasted across
> multiple controls. This is where I have a lot to
> learn, regarding the
> Event Model...
> 
> If any of you could help me with this, I'd be very
> grateful for your
> help.
> 
> Thanks in advance for everything,
> 
> Mike
> 
> 

__
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com


 
<>


RE: [flexcoders] Re: Flashmaps and Flex 2

2007-01-07 Thread Grant Davies
no they don't have a flex one yet, They suggested the javascript
interface.  I wrapped it in my own flash 8 container with a local
connection and am calling it from flex via a local connection.
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of DannyT
Sent: Sunday, January 07, 2007 6:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flashmaps and Flex 2



Have you tried contacting them? They seem very Adobe friendly so maybe
they have something in the works?


On 06/01/07, VERBAL < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote: 

--- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , Rick Root <[EMAIL PROTECTED]> wrote:

>
> Has anyone tried integrationg Flashmaps (www.flashmaps.com
<http://www.flashmaps.com> ) into a Flex 
> 2 application? A google query for flashmaps "Flex 2" doesn't 
> yield many results...
> 
> Rick
>

Replying to a very old post here, Rick did you ever get a
response? 
I'm about to do the same thing, looks like the javascript
interface
will be my best option since flashmaps runs in the flash 8 AVM.








-- 
http://danny-t.co.uk <http://danny-t.co.uk>  

 
<>


[flexcoders] UHandled status even on local connection

2007-01-07 Thread Grant Davies
Hi guys,
 
I have a flash 8 swf I'm loading into my flex app using SWFLoader (its a
mapping component written in flash8), The application crates a local
connection called "mapContainerConnection".  In flex I setup the
connection:
 
toFlash_lc = new LocalConnection(); 
toFlash_lc.send("mapContainerConnection", "processFlexCall"); 
 
When I run the test in the browser I get an error :
 
Error #2044: Unhandled StatusEvent:. level=error, code=
 
I tried wrapping the send call with an exception handler but get the
same error message written to my error log.
 
Anyone have any ideas ?
 
Cheers.
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti <http://www.bluetube.com/bti> 
> A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> 

 
<>