[flexcoders] How to create your own IFlexModuleFactory?

2009-04-04 Thread skuteboarding
Hi,I'm interested in implementing the IFlexModuleFactory interface in my 
modules - mainly so I can manually control the creation of my objects.

What do I need to implement this in my module?



[flexcoders] How to create automation libraries in Flex SDK 3.3?

2009-04-04 Thread tnajaryan
I downloaded SDK 3.3 and extracted datavisualization_sdk3.3.zip into it, then 
run command java -jar DMV-source.jar  C:\Users\All Users\Adobe\Flex

The fbpro folder is created but automation libraries are not. 

The output of DMV-source.jar execution reads:

[START OUTPUT]
C:\Program Files\Adobe\Flex Builder 3\sdks\3.3.0\libjava -jar DMV-source.jar  
C:\Users\All Users\Adobe\Flex
using license {flexbuilder3=137740006554349567707756, 
flexbuilder3.displayedFirstLaunchMessage=true}, outputing to directory ..
license is valid, extracting datavisualisation and automation files to ..
[END OUTPUT]


I cannot find automation.swc, automation_agent.swc and automation_dmv.swc 
anywhere in sdks\3.3.0 (I suppose they should be frameworks\lib as in earlier 
SDKs, right?)

Do I have to do anything special to create automation swc's?



[flexcoders] Access active column header (DataGrid)

2009-04-04 Thread vitaly.nikolenko
Hi
I'm making a kind of spreadsheet for data entry based on DataGrid Component
And i need to highlite  active column header (change it's background)
I do have the column index from editedItemPosition but i can't  understand how 
to acces the column header
Is that possible at all? 



RE: [flexcoders] Access active column header (DataGrid)

2009-04-04 Thread Tracy Spratt
DataGridColumn supports the headerRenderer property.  Google this.  I have
not used a headerRenderer, but know that itemRenderers in general are
tightly integrated with the Flex framework and require special handling.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of vitaly.nikolenko
Sent: Saturday, April 04, 2009 6:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Access active column header (DataGrid)

 

Hi
I'm making a kind of spreadsheet for data entry based on DataGrid Component
And i need to highlite active column header (change it's background)
I do have the column index from editedItemPosition but i can't understand
how to acces the column header
Is that possible at all? 





[flexcoders] Re: Access active column header (DataGrid)

2009-04-04 Thread vitaly.nikolenko
I tried custom headerRenderer based on default DataGridItemRenderer, I  set 
backgroundColor in it, without any conditions
but without any effect -  the background color of the header remains as set in 
headerColors property of the DataGrid



--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 DataGridColumn supports the headerRenderer property.  Google this.  I have
 not used a headerRenderer, but know that itemRenderers in general are




RE: [flexcoders] Re: Access active column header (DataGrid)

2009-04-04 Thread Tracy Spratt
How are you setting backgroundColor?  Show some code.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of vitaly.nikolenko
Sent: Saturday, April 04, 2009 9:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Access active column header (DataGrid)

 

I tried custom headerRenderer based on default DataGridItemRenderer, I set
backgroundColor in it, without any conditions
but without any effect - the background color of the header remains as set
in headerColors property of the DataGrid

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tspr...@... wrote:

 DataGridColumn supports the headerRenderer property. Google this. I have
 not used a headerRenderer, but know that itemRenderers in general are





[flexcoders] Re: New Adobe forums coming!

2009-04-04 Thread Amy
--- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote:

 You will be able to receive and initiate everything over email.  That was a 
 requirement.

What will happen to the NNTP access?



[flexcoders] Adobe's stimulus package!!!! FREE FLEX BUILDER!!!!

2009-04-04 Thread hworke


 https://freeriatools.adobe.com/learnflex/



Re: [flexcoders] Adobe's stimulus package!!!! FREE FLEX BUILDER!!!!

2009-04-04 Thread Guy Morton

That's a good idea, Adobe. Nice work.


On 05/04/2009, at 1:37 AM, hworke wrote:




https://freeriatools.adobe.com/learnflex/







[flexcoders] Re: database question

2009-04-04 Thread Amy
--- In flexcoders@yahoogroups.com, johndoematrix johndoemat...@... wrote:

 hi i know this is not a flex question but is related to flex anyway. i have 
 an access database with two tables A and B. the two are related in that the 
 primary key of A(which is autonumber) is related to the foreign key in B. not 
 i would like that when i insert data in the two tables A and B the foreign 
 key of B is set to equal to the auto generated Primary key of A. How can i do 
 this with coldfusion. i dont wanna do it in access itself but in the 
 coldfusion query. thanks


You probably have two things that you need to do in B.  First, unless you are 
just moving an existing record in B so that it points to a different record 
in A than it did originally, you are going to need to CREATE that record in be. 
 The second thing you'll need to do is to associate that new record in B with 
the record in A, but you can actually do this in the INSERT statement to Table 
B.

There is no ordinary SQL syntax that will allow this to happen, and Access 
does not support T-SQL.  Even if it did, T-SQL is stored in and run within the 
database, and you said that you want to do this solely from within ColdFusion.

So what you'll need is something like this:

INSERT INTO tableA (field1, field2, field3) VALUES ('a', 'b', 'c')

SELECT keyField FROM tableA WHERE insertDate = (SELECT MAX (insertDate) FROM 
tableA)

INSERT INTO tableB (field1, field2, foreignKeyfield) VALUES ('x', 'y', 
valueReturnedFromPreviousQuery)

Note I have no idea how to concatenate in CF, so you'll need to concatenate in 
the variable there, rather than just sticking it in like I did.

HTH;

Amy



Re: [flexcoders] Re: New Adobe forums coming!

2009-04-04 Thread Nancy Gill
What will happen to the NNTP access?

It will be gone.   :(
This is a huge mistake on Adobe's part.


Nancy


[flexcoders] Re: New Adobe forums coming!

2009-04-04 Thread Amy
--- In flexcoders@yahoogroups.com, Nancy Gill na...@... wrote:

 What will happen to the NNTP access?
 
 It will be gone.   :(
 This is a huge mistake on Adobe's part.

Well, I guess I'll be using the forums exactly once...to explain to the people 
who have gotten help from me in the past why they are not going to be able to 
get it from me in the future.

Kind of a shame, but possibly the power users that are happier doing things by 
e.mail will be able to replace the ones that have traditionally used nntp.

-Amy



Re: [flexcoders] maven compile flex project

2009-04-04 Thread Marvin Froeder
You can use flexmojos for that:http://flexmojos.sonatype.org/

VELO

On Thu, Apr 2, 2009 at 5:18 PM, Fernando Wermus
fernando.wer...@gmail.comwrote:

   Hi Folks,
   I am looking for a maven plugin and a pom.xml example for compiling
 and for generating a swf.
   Which is the best plugin you have tested it?
   Do you have an example which compile, generate swf and copy to
 another project the swf file generated? I am needing to integrate with
 several projects in the same workspace too.

 Thanks in advance!

 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus
 http://mientretiempo.blogspot.com/
  



[flexcoders] Getting field names in array collection

2009-04-04 Thread Deniz Davutoglu
Hi, 
I need to get field names in array collection  but when I use for each method I 
got just values not field names.
When I assign array collection as  a data provider of datagrid it automatically 
retrieves field names, it means that it is some method in as3 to get field 
names. 
Does any one know how to get it?

Thanks in advance.
Deniz



[flexcoders] Re: BlazeDS or JSON

2009-04-04 Thread max.nachlinger
I'd personally go with Remoting via BlazeDS.  

With remoting you can:

1. Map your AS DTOs to Java DTOs, meaning when data arrives from the 
middle-tier, you get it automatically typed as your AS classes.  (e.g. a remote 
call to searchUsers() will return an Array of your native User objects).
2. You can send an AS DTO at the middle tier and it will arrive as its Java DTO 
counterpart.
3. Remoting talks via AMF, which, being a binary format, is far less bloated 
than JSON.
4. You are not tied to DTOs, you can still send standard objects and primitives 
across the wire.

The down-side to the DTO approach outlined above is that you have to maintain 2 
sets of these objects.  Code generation helps here and its arguably a small 
price to pay for what remoting brings to the table.

JSON is a pain as you'll have to do a fair amount of de-serializing and 
casting, but it you want to go that dark-route, as3corelib has great JSON 
support.

I'm still waiting for someone to (fully) implement Google's badass Protocol 
Buffers (http://code.google.com/apis/protocolbuffers/), which would be a great 
binary alternative to remoting.

Hope this rambling answer helps.

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

 Which tech do you recommend for simply reading data from the database via 
 Java? BlazeDS or JSON? I'm thinking of keeping things simple and efficient. 
 Thanks.
 
 - Alex C





[flexcoders] How to make smaller RSLs from existing SWCs (e.g. Degrafa)

2009-04-04 Thread max.nachlinger
Adobe's docs on this are less than stellar, for they fail to mention that after 
optimizing a SWF, you need to use the digest tool on the parent SWC again.  To 
help folks Goggling, here's how to create an RSL from a SWC and shrink it so it 
loads quickly.  (This is also at 
http://flexamusements.blogspot.com/2009/04/how-to-make-swc-into-much-smaller-rsl.html
 if you somehow prefer reading this silly post on Blogger)

Extract library.swf from the SWC
0. Let's refer to our SWC as {SWC} and its location on the file-system as {PATH}
1. Open {SWC} in your favorite unzip utility (7-zip works great and is free)
2. Extract library.swf to {PATH}

Run the Optimizer Tool against library.swf
3. Within /bin in your Flex SDK directory, you'll see optimized.exe, run that 
and point it at {PATH}:

Example on my machine: {FLEX_SDK} = location of Flex SDK
{FLEX_SDK}\bin\optimizer 
-keep-as3-metadata=Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient
-input {PATH}\library.swf -output {PATH}\output.swf

(the output SWF is quite a bit smaller now, woohoo)

4. Delete DIR/library.swf and rename output.swf to library.swf

Run the Digest Tool (the docs kind of missed this re-digest step)
5. Since our SWF file changed, we need to update the digest info in our SWC

Example on my machine {FLEX_SDK} = location of Flex SDK
{FLEX_SDK}\bin\digest --digest.rsl-file {PATH}\library.swf --digest.swc-path 
{PATH}\{SWC}

6. Modify your FlexBuilder projects and mxmlc ANT tasks to point to {SWC} as an 
RSL with a URL of library.swf




Re: [flexcoders] Getting field names in array collection

2009-04-04 Thread Sam Lai
Just use the for statement but in a for each manner, e.g.

for (var fieldName in someObject)
{
trace(fieldName);
}

It's one of those subtle tricks in ECMAScript (which could've been
named better, or maybe more intuitive with different syntax, e.g.
Python's.)

(that's the general idea - code might not be exactly correct.)

2009/4/5 Deniz Davutoglu d...@7ist.com:
 Hi,
 I need to get field names in array collection  but when I use for each method 
 I got just values not field names.
 When I assign array collection as  a data provider of datagrid it 
 automatically retrieves field names, it means that it is some method in as3 
 to get field names.
 Does any one know how to get it?

 Thanks in advance.
 Deniz



 

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






Re: [flexcoders] Re: Flash player fails to install on vista!

2009-04-04 Thread Sam Lai
Maybe running the Adobe Flash uninstaller (not the one in Add/Remove
Programs, but the downloadable one) beforehand would help?

I do that every time I deploy Flash, and its been working so far. Not
sure if users would lose their stored shared objects though.

2009/4/3 Rick Winscot rick.wins...@zyche.com:
 I ran across this two weeks ago on a single system... out of 76 machines and
 posted here as well to see if anyone else was experiencing any esplosions.

 Long story short – I ended up finding some wonky behavior in the JavaScript
 used for Flash version detection on just that machine. Go figure. So... I
 swapped out the HTML wrapper (generated in Flex from the default
 index.template.html w/express install) with SWFObject... BOOM BABY! Problemo
 solved.

 For those naysayers on the list that called me ‘crazy,’ ‘stoopid,’ ‘noob,’
 and ‘utterly delicious.’ SEE! I’m not the only one! There are two of us...
 in like... a couple million installs.

 awkward silence – shuffles feet

 Rick Winscot


 On 4/2/09 3:28 PM, Cato Paus ca...@brannsikring.no wrote:






 There was no error, just a silent error. And when I went back to the page
 that requires the last version of flash player I get up again to installed

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

 This just sounds like the tech support calls I get from customers.
 Given you're a developer, I expected better -

 What was the error message, how is it not installing?

 2009/4/2 Cato Paus ca...@...:
  Hi all, this is veard, I have a clean install(Windows Vista Ultimate) on
  my laptop and IExploer do not want to install the flash player (ActiveX)
  ! switching to FireFox, up yours MS!
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Alternative FAQ location:
  https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
 
 
 
 








 




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

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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Flex, SharePoint and SQLServer

2009-04-04 Thread Mic
Just got introduced to the wonderful world of SharePoint recently, and am 
contemplating coding the client's BI application in Flex and then embedding 
into SharePoint. Are people doing this? All the data must come from 
SQLServer2005. Done some googling and understand that I could

1. Load data into SharePoint lists and then send to Flex
2. Talk to 2005 directly from Flex.

Is this correct and which is the better approach?

Are there any examples of this kind of architecture? I did not really find much 
after a couple of hours of googling. 

I have looked at ASP.NET and VisualStudio etc and just feel I could do a better 
job with Flex. Don't want to infer Flex is superior, but I do know that I can 
write the app they need in Flex. Is this a sensible approach? Thanks in advance 
for any pointers,

Mic.





RE: [flexcoders] Flex, SharePoint and SQLServer

2009-04-04 Thread Tracy Spratt
After using Flex for client UIs for a few years, the old submit, postback,
hidden fields, javascript, dhtml, and even that data object thing you can
use in .net, seems hideous.

 

I use .net for all my back-end business logic database an integration tier
work, and like it just fine for that.

 

Now, Flex can't really talk directly to a database.  Supposedly, the later
SQL Server versions support native http access.  If that really works,
scalably and securely, then you could use HTTPService in Flex to communicate
with the db.  I have not tried this, nor have I heard any success stories
about that approach.

 

Flex's main lines of communication are HTTPService(XML over http),
SOAP-based WebService, and RemoteObject(AMF).  Then there are the
server-side services like LCDS, BlazeDS, WebOrb, and others.

 

What communication options does Sharepoint provide?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mic
Sent: Saturday, April 04, 2009 11:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex, SharePoint and SQLServer

 

Just got introduced to the wonderful world of SharePoint recently, and am
contemplating coding the client's BI application in Flex and then embedding
into SharePoint. Are people doing this? All the data must come from
SQLServer2005. Done some googling and understand that I could

1. Load data into SharePoint lists and then send to Flex
2. Talk to 2005 directly from Flex.

Is this correct and which is the better approach?

Are there any examples of this kind of architecture? I did not really find
much after a couple of hours of googling. 

I have looked at ASP.NET and VisualStudio etc and just feel I could do a
better job with Flex. Don't want to infer Flex is superior, but I do know
that I can write the app they need in Flex. Is this a sensible approach?
Thanks in advance for any pointers,

Mic.





Re: [flexcoders] Flex, SharePoint and SQLServer

2009-04-04 Thread Sam Lai
1. could work, because you can use Flex to get the data via
SharePoint's HTTP APIs. May make it difficult to query; not sure what
options are available in the SharePoint API.

2. You would need some kind of service in between to mediate, i.e. to
provide a HTTP API to SQL Server. Either something custom written in
ASP.NET (or whatever other web server tech you have on site), or maybe
ADO.NET Data Services (the HTTP API for SQL Server hinted at by
Tracy)?

There may be an advantage in terms of performance if you use AMF
through things like WebORB, or if Java is an option, BlazeDS or
LiveCycle.

2009/4/5 Mic chigwel...@yahoo.com:
 Just got introduced to the wonderful world of SharePoint recently, and am 
 contemplating coding the client's BI application in Flex and then embedding 
 into SharePoint. Are people doing this? All the data must come from 
 SQLServer2005. Done some googling and understand that I could

 1. Load data into SharePoint lists and then send to Flex
 2. Talk to 2005 directly from Flex.

 Is this correct and which is the better approach?

 Are there any examples of this kind of architecture? I did not really find 
 much after a couple of hours of googling.

 I have looked at ASP.NET and VisualStudio etc and just feel I could do a 
 better job with Flex. Don't want to infer Flex is superior, but I do know 
 that I can write the app they need in Flex. Is this a sensible approach? 
 Thanks in advance for any pointers,

 Mic.





 

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






[flexcoders] Re: Print existing documents in Flex

2009-04-04 Thread Amy
--- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote:

 
 - Original Message - 
 From: Amy amyblankens...@...
 To: flexcoders@yahoogroups.com
 Sent: Friday, April 03, 2009 10:57 PM
 Subject: [flexcoders] Re: Print existing documents in Flex
 
 
  --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote:
 
  PrintJob won't print external files. The only way to do it with Flex 
  would
  be to read each file and add it's contents to a container  to be rendered
  using Printjob.
 
  Unfortunately Flex isn't a printspooler!
 
  You might have some luck trying to navigate to the document url by 
  popping
  up a new browser window, which may then display the document and would 
  still
  require the user to use separate print dialogs.
 
  The only other solution is via networked printer support on the server. 
  It's
  not going to be straightforward.
 
  You could create a page that treats each of the URL's as a service, then 
  stitches them all together.  You might even be able to get away with not 
  removing the html, head, and body tags.  Browsers can be amazingly 
  tolerant of that kind of junk.
 
 Interesting suggestion - might be a problem with pagination - you'd want 
 each document to at least start on a new page. AFAIK it's not possible to 
 force a page break in a HTML document.

http://www.w3schools.com/HTMLDOM/prop_style_pagebreakafter.asp
http://www.w3schools.com/CSS/pr_print_pageba.asp
http://www.w3schools.com/Css/pr_print_pagebb.asp

If you didn't strip out the body tags and that actually didn't break anything, 
you could use page-break-after on body tags.

HTH;

Amy



RE: [flexcoders] How to create your own IFlexModuleFactory?

2009-04-04 Thread Alex Harui
Check out Module.as.  There should be [Frame] metadata that specifies the class 
that implements IFlexModuleFactory that will be used as the root of the module 
SWF.  AFAIK, nobody has ever gone down this road before.  There's a 90% chance 
that there's some other way to do what you want without going down this road.

Describe your goals with a bit more detail and we'll see if there's some easier 
way.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of skuteboarding
Sent: Saturday, April 04, 2009 12:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to create your own IFlexModuleFactory?


Hi,I'm interested in implementing the IFlexModuleFactory interface in my 
modules - mainly so I can manually control the creation of my objects.

What do I need to implement this in my module?



[flexcoders] get print of chart in different format file

2009-04-04 Thread Vikram Singh
Hello Friends,
how can we get printout of chart object?
also is it possible to get current status of chart in pdf format OR Excel 
format file?


  From Chandigarh to Chennai - find friends all over India. Go to 
http://in.promos.yahoo.com/groups/citygroups/