[flexcoders] Flex 2.0.1 on Eclipse 3.2.1 - cool

2007-01-08 Thread Angus Johnson

Hi All,

I've just blogged notes that I took during my run through of setting up Flex
Builder 2.0.1 with Eclipse 3.2.1. http://allthego.com. It might be helpful
to someone.

I am very happy to say that the 20 odd Flex projects that I had in Eclipse
3.1 all imported and compiled in Eclipse 3.2 with no problems. I haven't hit
any issues with the debugger yet (not that I am expecting to) but I'll
continue testing over the next day or so.

Thanks to the Adobe team for the update. I've certainly noticed an
improvement in compile time. Now to go play with the new framework
functionality AND my favorite Eclipse 3.2 plugins :)

Cheers
Angus


[flexcoders] sort datagridcolumn on numeric field

2007-01-08 Thread amigo_fd
Hello, it looks like all data in a datagrid is treated as text. So if
you sort a column with only numeric fields it is sorted on the value
of the textual contect, instead of the numeric value, like this:

1095
111
1276
144
...

I already converted my webservice-result to numbers at loading, but
sorting keeps using text-value ... How to change this ?

dgInvoiceListGrouped.dataProvider = new XMLListCollection(x.children());
var GroupedArray:Array = [];

for (var j:Number = 0; j  dgInvoiceList.dataProvider.length; j++) {
GroupedArray[j] = {Name:
dgInvoiceListGrouped.dataProvider.getItemAt(j).Name.toString(),
Country:
dgInvoiceListGrouped.dataProvider.getItemAt(j).Country.toString(),
GroupedTotalExcl:
Number(dgInvoiceListGrouped.dataProvider.getItemAt(j).GroupedTotalExcl.toString()),
GroupedTotalIncl:
Number(dgInvoiceListGrouped.dataProvider.getItemAt(j).GroupedTotalIncl.toString())};
}

dgInvoiceListGrouped.dataProvider = [];
dgInvoiceListGrouped.dataProvider = GroupedArray;





[flexcoders] Prevent canvas/container from resizing to content?

2007-01-08 Thread jerome_cordiez
Hello,

well, the question is in the title^^... Is it possible to fix a canvas
size so that it **doesn't** resize to its content?

cheers,
J. 



Re: [flexcoders] Re: Flex 2 Updater Available for Download

2007-01-08 Thread Tom Chiverton
On Saturday 06 January 2007 00:55, Mac Martine wrote:
 I have reported the broken link. For now, go to the same page, then click
 ŒTrial Version¹ under ŒFlex Downloads¹ in the right-hand column.

While we're on the subject, the downloaded SDk file doesn't give any 
indication its 2.0.1 as opposed to 2.0 unless you unzip it and look in the 
readme.htm file.
How hard would it be to just stick '2.0.1' in the file name ?

-- 
Tom Chiverton
Helping to appropriately synergize cutting-edge clusters



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

* 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:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] flexbuilder 2.0.1 css editor support

2007-01-08 Thread Paolo Bernardini

I noticed that under flexbuilder (either stand-alone or plug-in version)
preference/Flex/Editors, in version 2.0 there was Css Code, but now with
version 2.0.1 it's gon and we only have ActionScript code, design code and
mxml code.
In 2.0 version when you were working with external css file, you could have
code hint by typing // first (then you had to remove it), this no longer
works in version 2.0.1, and makes writing css very hard since I certainly
don't remember all style properties name by heart.
I wonder if someone else have this problem, hope some one can point me to a
solution.



On 1/6/07, Lance Linder [EMAIL PROTECTED] wrote:


   I have similar problems with 2.0. With around 6-7 installations of the
Flex builder plugin for eclipse about half of them have this exact problem
with the other half working fine. I would be really interested to hear if
you or anyone can finds out why this happens… it is a real pain!



Lance



*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Paolo Bernardini
*Sent:* Saturday, January 06, 2007 9:28 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] flexbuilder 2.0.1 css editor support



Hi Brian,



I'm using windows and trying to edit an external css file.



On 1/6/07, *Brian Dunphy* [EMAIL PROTECTED] wrote:

Still works for me on the Mac version of Flex Builder 2.0.1.

Are you editing an external CSS file or inline?

Brian



On 1/6/07, Paolo Bernardini [EMAIL PROTECTED]
bernardini.paolo%40gmail.com wrote:






 What happened to the css editor support in flexbuilder 2.0.1?
 before with version 2 you had code hinting for css file, now after
updating
 to version 2.0.1 doesn't work anymore.




--
Brian Dunphy







Re: [flexcoders] Re: Flex 2 for Mac Release Coming Within 7 Days

2007-01-08 Thread Tom Chiverton
On Saturday 06 January 2007 12:09, Marcelo de Moraes Serpa wrote:
 I'm on Ubuntu right now and I would be willing to pay the price for a
 native Linux version of Flex2 and Flash9 IDE as I don't really feel like
 using Windows again.

Have you tried the various free offerings out there already ?
Though I agree a native Flex Builder would be great, I've found that in the 
mean time there is no need to use Windows.

-- 
Tom Chiverton
Helping to vitalistically leverage granular e-business



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

* 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:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] Re: Flex 2 for Mac Release Coming Within 7 Days

2007-01-08 Thread Marcelo de Moraes Serpa

Hi Tom,

Have you tried the various free offerings out there already ?


Which one are you referring to?

Marcelo.


On 1/8/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Saturday 06 January 2007 12:09, Marcelo de Moraes Serpa wrote:
 I'm on Ubuntu right now and I would be willing to pay the price for a
 native Linux version of Flex2 and Flash9 IDE as I don't really feel like
 using Windows again.

Have you tried the various free offerings out there already ?
Though I agree a native Flex Builder would be great, I've found that in
the
mean time there is no need to use Windows.

--
Tom Chiverton
Helping to vitalistically leverage granular e-business



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] RPC Pro's and Cons

2007-01-08 Thread Tom Chiverton
On Saturday 06 January 2007 18:57, Clint Modien wrote:
 If you're just looking for RemoteObject support then there''s WebORB Pro
 for 2K / phsyical.

ColdFusion supports RemoteObject from Flex, as does PHP/Java.
These may be free (PHP certainly is, for instance, and there are free/cheap 
CFML engines).
-- 
Tom Chiverton
Helping to preemptively build fifth-generation patterns



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

* 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:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


[flexcoders] Compiling modules

2007-01-08 Thread Oleg Filipchuk

Hi,
I have problem to compile module components. Maybe that's a trivial
procedure but I do not know how to compile a particular module.
I've made new project ModuleTest. There is moduletest.mxml application. And
after I've create 2 modules components in the folder modules. After that I
have tried to use ModuleLoader component as how it is described in help
docs. All seems work fine except the thing that modules haven't been
compiled.
There is written in help docs:
You compile the module as you would compile any Flex application using the
mxmlc command-line compiler or the Flex Builder compiler. The following
command is the simplest mxmlc command:
mxmlc MyModule.mxml

I'm not command line guru or something like that. So is there any way to
compile modules when I hit debug button in the flex builder or any other way
to at least make it simpler? It seems to me strange to compile every module
in command line... What if I have hundreds of modules?

--
Best regards,
Oleg Filipchuk


[flexcoders] Re: Compiling modules

2007-01-08 Thread phillips1021
Great question.  I've run into the same problem.  How do you use Flex
Builder to compile just the module?

The only work-around I've found so far is to right-click on the module
name in the navigator panel and select Run As Flex Application.  This
command will create a .swf and .html files for the module and try to
load it in the browser (where nothing will display).  

It's not the best solution and I hope someone posts a better one, but
it is all I've found to work so far.

I did search through the Flex 2.0.1 help files but did not find anything.

Bruce





[flexcoders] Since flex 2.0.1

2007-01-08 Thread maikelsibbald
I've updated today to flex 2.0.1

And now I suddenly get these errors? doe anybody know what the problem is.

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
org.panda.gpn.view.workspace.results::OverView/__admin_sort_xml_collectionChange()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.collections::ListCollectionView/dispatchEvent()
at mx.collections::ListCollectionView/::internalRefresh()
at mx.collections::ListCollectionView/refresh()
at mx.collections::ListCollectionView/initialized()
at
org.panda.gpn.view.workspace.results::OverView/::_XMLListCollection1_i()
at org.panda.gpn.view.workspace.results::OverView$iinit()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.containers::ViewStack/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()
at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at org.panda.gpn.view.workspace::WorkspaceView/initialize()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()



[flexcoders] Since flex 2.0.1

2007-01-08 Thread maikelsibbald
I've updated today to flex 2.0.1

And now I suddenly get these errors? doe anybody know what the problem is.

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
org.panda.gpn.view.workspace.results::OverView/__admin_sort_xml_collectionChange()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.collections::ListCollectionView/dispatchEvent()
at mx.collections::ListCollectionView/::internalRefresh()
at mx.collections::ListCollectionView/refresh()
at mx.collections::ListCollectionView/initialized()
at
org.panda.gpn.view.workspace.results::OverView/::_XMLListCollection1_i()
at org.panda.gpn.view.workspace.results::OverView$iinit()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.containers::ViewStack/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()
at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at org.panda.gpn.view.workspace::WorkspaceView/initialize()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()



[flexcoders] togglebuttonbar and styles

2007-01-08 Thread Michelle Grigg
Greetings,

I have a toggle button bar where some buttons need to be styled one way,
and the rest styled another (ie, first 4 in a bar of 10 must have a blue
background, while the rest should be yellow).

The problem is, even though these styles are getting applied to the
button (I've verified this through tracing and debugging), the damn
things won't actually render until a different component in the app is
clicked.

For example:

Upon first load of the screen, it'll look like this:

  http://i4.photobucket.com/albums/y140/svyeta/before.gif
http://i4.photobucket.com/albums/y140/svyeta/before.gif

Then when the answer is selected elsewhere on the page (thus
incrementing the position), it'll do this:

http://i4.photobucket.com/albums/y140/svyeta/after.gif
http://i4.photobucket.com/albums/y140/svyeta/after.gif

How can I force these styles to render properly?  It's driving me mad!

Cheers,
Michelle


[flexcoders] local-trusted sandbox vs. use-network

2007-01-08 Thread mixersoft
I'm new to Flex and reading the docs now. I'm trying to build a
desktop-client photo viewer app in flex that allows users to
seamlessly view local JPGs and selectively upload to the web. At the
same time, they should also be able to view JPGs already uploaded to
the web. 

I know I want to deploy my app in a local-trusted sandbox to allow my
app to access both local files and network resources. But while
reading about importing/embedding images I came across the
use-network flag limitation that says access to local or remote
resources are a mutually exclusive proposition. 

I'm confused, can someone please explain?




[flexcoders] Re: proxy callproperty problem

2007-01-08 Thread Webdevotion

My problem still stands, anyone ?


[flexcoders] Remoting after 2.0.1

2007-01-08 Thread Webdevotion

I'm having problems connecting from any AS3 project since I
installed 2.0.1 today on my localhost. Can anyone give me
some pointers ?

Working with CFMX 7.0.2.

Tnx !


[flexcoders] mx.controls.Image and AS

2007-01-08 Thread Janis Radins

hey ppl!

I'm trying to build some project in Flex but I'm running into problems when
I try to use Image component in pure AS'ish way.
Somehow i tend to believe that
mx:Image source=http://localhost/image.gif/
Should do completely the same as
image = new Image();
image.source = http://localhost/icon_users.gif;;
addChild(image);

but it doesn't.

Yeah I've tried to use load() method and still the same actually i think
I've done everything i could possibly think of and found no way I can get
that image onscreen without using MXML.

Does anyone has an idea what might be solution?

So far I thought that Adobe fired all ppl who made v2 component framework,
hired new ones and finally made a set of usable components, but spending
whole day on things like this is so counter productive that I start to doubt
it.
Oh and btw, wheres AS usage samples? All help docs concentrate on MXML
approach way too much in my opinion.

any ideas will be appreciated

Jānis


Re: [flexcoders] Re: Compiling modules

2007-01-08 Thread Oleg Filipchuk

Exactly,
it isn't so hard to compile modules with command line, but it's all about
the general usability of Flex Builder.
Why it isn't properly documented? Or they think that one page about
compiling modules using mxmlc is enough? There is no mention about compiling
modules just inside of FB without using compiler by itself. Why usual
developers should spent hours to figure out such a simple issue.. I just
can't understand why Adobe is announcing great plans about having a pile of
Flex developers and at the same time can't handle simple documentation and
usability issue.
I really appreciate the work that has been done by Adobe engineers to
brought such a great product, but I just compare the level of documenting in
MSDN (M$)...



--
Best regards,
Oleg Filipchuk


Re: [flexcoders] flexbuilder 2.0.1 css editor support

2007-01-08 Thread Robert W
I found that fb conflict with WTP css editor (WTP is eclipse 
subproject). But i can't use wtp css editor, not flex. Maybe eclipse log 
show you answer.
rw
Paolo Bernardini wrote:
 I noticed that under flexbuilder (either stand-alone or plug-in 
 version) preference/Flex/Editors, in version 2.0 there was Css Code, 
 but now with version 2.0.1 it's gon and we only have ActionScript 
 code, design code and mxml code.
 In 2.0 version when you were working with external css file, you could 
 have code hint by typing // first (then you had to remove it), this no 
 longer works in version 2.0.1, and makes writing css very hard since I 
 certainly don't remember all style properties name by heart.
 I wonder if someone else have this problem, hope some one can point me 
 to a solution.

 On 1/6/07, *Lance Linder* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 I have similar problems with 2.0. With around 6-7 installations of
 the Flex builder plugin for eclipse about half of them have this
 exact problem with the other half working fine. I would be really
 interested to hear if you or anyone can finds out why this
 happens� it is a real pain!

 Lance

 *From:* flexcoders@yahoogroups.com http://ups.com/ [mailto:
 flexcoders@ mailto:flexcoders@yahoogroups.com
 http://yahoogroups.com] *On Behalf Of *Paolo Bernardini
 *Sent:* Saturday, January 06, 2007 9:28 AM
 *To:* [EMAIL PROTECTED] ups.com http://ups.com/
 *Subject:* Re: [flexcoders] flexbuilder 2.0.1 css editor support

 Hi Brian,

 I'm using windows and trying to edit an external css file.

 On 1/6/07, *Brian Dunphy* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Still works for me on the Mac version of Flex Builder 2.0.1.

 Are you editing an external CSS file or inline?

 Brian



 On 1/6/07, Paolo Bernardini [EMAIL PROTECTED]
 mailto:bernardini.paolo%40gmail.com wrote:
 
 
 
 
 
 
  What happened to the css editor support in flexbuilder 2.0.1?
  before with version 2 you had code hinting for css file, now
 after updating
  to version 2.0.1 doesn't work anymore.
 
 


 -- 
 Brian Dunphy


  





[flexcoders] Re: Rotating mx:Label is not working for me...any ideas??

2007-01-08 Thread tinkiknit
Deleting the bold reference for the fontWeight worked! my label showed 
up! Thanks!

Christine



[flexcoders] Possible bug introduced in 2.0.1

2007-01-08 Thread João Fernandes
Hi there,

 

I was using states to introduce a controlBar inside a panel but once I
switch states, my buttons are not positioned correctly but somewhere else. 

 

Here is a small code to reproduce the problem. This code was generated with
design view.

If you click on the first button to switch states, you’ll see that the
control bar is not positioned at the bottom of the panel.

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

mx:states

   mx:State name=newstate

   mx:SetStyle
target={panel1} name=top value=331/

   mx:AddChild
position=lastChild

   mx:Panel
height=283 layout=absolute top=40 left=10 right=10

   /mx:Panel

   /mx:AddChild

   mx:AddChild
relativeTo={panel1} position=lastChild

 
mx:ControlBar

 
mx:Button label=Button/

 
/mx:ControlBar

   /mx:AddChild

   /mx:State

/mx:states

mx:Panel layout=absolute top=40 left=10 right=10
bottom=10 id=panel1

/mx:Panel

mx:Button x=29 y=10 label=Button
click=this.currentState = currentState == 'newstate' ? '' : 'newstate'/



/mx:Application

 

Can anyone confirm this?

 

João Fernandes



RE: [flexcoders] Re: Flex2 - Where to start

2007-01-08 Thread Dimitrios Gianninas
Ya if you come from just coding ASP/VBScript those 2 technologies ain't going 
to help learn OOP, they are really bad for that. Perhaps what you need is a 
beginners Java class to teach the OOP basics and that will make eveyrthing come 
to light when using ActionScript.
 
I'm sure you can find something on the net as well... perhaps: 
http://javadevices.org/javacourses/foundation_module/lectures/lecture1.html
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
oneproofdk
Sent: Monday, January 08, 2007 2:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex2 - Where to start



Thanks for all your great reply's.

My prior programming experiences is primarily programming VBscript, for
ASP pages and standalone VBscripting. I've been programming VBscript for
perhaps 4-5 years now, but never did make the jump to OOP - PHP or .NET
at any time before now. (If it works - dont fix it, was my idea)

I'm looking at Flex2 to develop new and better UI for my web
applications. I am working at a publishing company that makes a magazine
10 times a year. I've made a web application where the magazine is
stitched together, using HTML, ASP and javascript (lowend dhtml). It
communicates with several database servers, (mysql and MS SQL) pulling
data from various sources (MediaBank DAM and MS Dynamics (Navision))
allowing the users to place articles and insertions on each page,
finally creating the entire magazine in a webbrowser - very cool indeed.
Now we are looking to create a web app that has some drag'n'drop
features, perhaps even some push technology, so other users will get
updated real-time if a page gets content placed. And then ofcourse all
the nice UI effects that Flex offers, transitions, zoom, etc.

So basicly all the backend stuff, making XML services (propably with ASP
though) and database query's is not a problem at all - got that covered
for years.

I've been through the Flex2 - Getting started making all the examples
- working and all. Have been fiddling around with different properties
etc. to see what influences what. I feel pretty comfotable in the Flex2
enviroment. It's the whole classes and OOP that throw's me off. I hate
to write code that dont make sense to me or that I dont understand -
very frustrating.

I live (and work) in Denmark - not sure if there's any local training in
Flex2, I dont think so, but I'll investigate today.

I'll have alook at roundpeg and Lynda also, to see what they can offer.

Think I'll go get a copy of Essential Actionscript 2.0 essential
training or similar, as suggested.

Thanks for your help and pointers.

Best wishes,
Mark

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

 Mark,

 I am glad to see that you are sticking with getting mastery of Flex 2.
In
 time you will see that it is definately worth the effort :-)

 Following below are pointers and links to a startguide for the true
 newbie.

 Before getting to that, I want to echo Danny's post Please do provide
us
 more detail about what your prior programming, development and design
 experience may be.

 Also, please tell us what successes you have had with Flex 2 thus far?
For
 instance, have you gone through the Lessons in the Getting Started
with
 Flex 2 documentation? (Such as Create Your First Application:
 http://livedocs.macromedia.com/flex/2/docs/0065.html 
 http://livedocs.macromedia.com/flex/2/docs/0065.html  )

 Also, in many cases Flex is the front end to complex back end
computer
 architectures. And in most full blown production applications Flex is
only
 one part in what frequently is at minimum a 3 tier architecture:
 1) Flex UI
 2) Application Server middle tier using Java or PHP or ColdFusion, or
.NET,
 etc.
 3) Database

 Are you skilled in any application servers or databases? (Each tier
is a
 specialty unto itself. In team environments, it is not uncommon for
 individual developers to work supporting just one tier.)

 Also, what type of applications do you anticipate building? If you
let us
 know, there may be working sample applications applications that we
can
 point you to.

 Regarding training, I concur with Simeon's advice. There is a huge
 advantage to having a live instructor. You mention that after reading
the
 docs and the Training from the Sorce book your mind is a bit blown
and
 way out of my league. The benefits of a live instructor is that: 
a) they
 are the living book; and, b) they are dynamic. You can ask questions
and
 the instructor can summarize the broad and complex body of knowledge
in ways
 that you you may find easier to grasp. Or, they may be able to
provide you
 answers even before are able to verbalize the question ;-)

 You can find the list of instructor led courses here:
 http://www.adobe.com/support/training/products/flex.html 
 

Re: [flexcoders] flexbuilder 2.0.1 css editor support

2007-01-08 Thread Igor Costa

Paolo

To support code Hint in the lastest version fo Flex 2.0.1 in External CSS
file, just press like in 2.0, CTRL+SPACE after your tag or class you want to
declare.

Here's a short example of that

Application {
   press CTRL + SPACE
}

Panel {
 press CTRL + SPACE
}
.myStyle {
press CTRL+SPACE
}

And it will works fine to you.


Regards.

On 1/8/07, Robert W [EMAIL PROTECTED] wrote:


  I found that fb conflict with WTP css editor (WTP is eclipse
subproject). But i can't use wtp css editor, not flex. Maybe eclipse log
show you answer.
rw
Paolo Bernardini wrote:
 I noticed that under flexbuilder (either stand-alone or plug-in
 version) preference/Flex/Editors, in version 2.0 there was Css Code,
 but now with version 2.0.1 it's gon and we only have ActionScript
 code, design code and mxml code.
 In 2.0 version when you were working with external css file, you could
 have code hint by typing // first (then you had to remove it), this no
 longer works in version 2.0.1, and makes writing css very hard since I
 certainly don't remember all style properties name by heart.
 I wonder if someone else have this problem, hope some one can point me
 to a solution.

 On 1/6/07, *Lance Linder* [EMAIL PROTECTED]llinder%40medicomdigital.com
 mailto:[EMAIL PROTECTED] llinder%40medicomdigital.com
wrote:

 I have similar problems with 2.0. With around 6-7 installations of
 the Flex builder plugin for eclipse about half of them have this
 exact problem with the other half working fine. I would be really
 interested to hear if you or anyone can finds out why this
 happens� it is a real pain!

 Lance

 *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 
http://ups.com/ [mailto:
 flexcoders@ mailto:flexcoders@yahoogroups.com
 http://yahoogroups.com] *On Behalf Of *Paolo Bernardini
 *Sent:* Saturday, January 06, 2007 9:28 AM
 *To:* [EMAIL PROTECTED] ups.com http://ups.com/
 *Subject:* Re: [flexcoders] flexbuilder 2.0.1 css editor support

 Hi Brian,

 I'm using windows and trying to edit an external css file.

 On 1/6/07, *Brian Dunphy* [EMAIL PROTECTED]briandunphy%40gmail.com
 mailto:[EMAIL PROTECTED] briandunphy%40gmail.com wrote:

 Still works for me on the Mac version of Flex Builder 2.0.1.

 Are you editing an external CSS file or inline?

 Brian



 On 1/6/07, Paolo Bernardini [EMAIL PROTECTED]bernardini.paolo%40gmail.com
 mailto:bernardini.paolo%40gmail.com wrote:
 
 
 
 
 
 
  What happened to the css editor support in flexbuilder 2.0.1?
  before with version 2 you had code hinting for css file, now
 after updating
  to version 2.0.1 doesn't work anymore.
 
 


 --
 Brian Dunphy




 





--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta


[flexcoders] Re: RangeError: Error #2006 using menu !

2007-01-08 Thread droopyflex
the bug still remain in 2.0.1 update !

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

 Hello -
 
  
 
 We fixed a few bugs where this was happening in Menu and MenuBar. We
were not correctly adding and removing the child menu instances to the
SystemManager and eventually the indices would get out of sync and
you'd RTE.
 
  
 
 These have been fixed since the Flex 2 build went out and will be
included in the next drop of Flex which will be out soon.
 
  
 
 Deepa
 
 Flex SDK
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of droopyflex
 Sent: Tuesday, November 07, 2006 12:50 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: RangeError: Error #2006 using menu !
 
  
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Ciarán parafreak@ wrote:
 
  Hi,
  
  I found this difficult to reproduce. I'm a bit of a flex rookie, but
  given the exception I think flex is complaining after it's looked for
  something and not found it because it hasn't been initialized (yet).
  To my understanding, creationComplete is dispatched after
  initialization of components. I haven't yet experienced the error
  since I changed:
  
  creationComplete=initCollections();
  
  to
  
  initialize=initCollections()
  
  But since it's hard to reproduce I can't tell for sure if this is at
  all related to anything happening here...
 
 the bug is not related to this. even the MenuBar is properly filled by
 initCollections(), there is something wrong in MenuBar::showMenu() 
 
 After many tries, here a way to reproduce it:
 - build the menubar post in this Thread. (taken from Menubar doc)
 - click on Menu 2
 - now the tricky part: move to Menu Item 2-B but immediatly go to 
 Menu 1 then immediatly go to Menu 2 before Menu Item 2-B open
 and before Menu 1 open (may be).
 - Menu Item 2-B should open when Menu 2 is closed, or something
 like that
 - MenuBar::showMenu() should crash on Menu 2
 
 this is not easy to reproduce, may be because the submenu is not big.
 BUT: playing with big menu with big submenu for a moment always crash.





[flexcoders] Re: Docs included in 2.0.1 are broken

2007-01-08 Thread jrunrandy
If you are not using Flex Builder, which has all Flex docs in the Help 
system, you can get a local copy of the Flex docs by downloading the 
ZIP file (~45 MB) at http://www.adobe.com/go/flex_documentation_zip. 
This contains usage docs in PDF format and reference docs in ASDoc 
format.

HTH
Randy Nielsen
Flex Documentation Manager
Adobe Systems, Inc.

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

 All I'd like is a local version of the Language Docs so I don't have 
to
 depend on adobe.com (or more specifically the load on adobe.com 
during the
 middle of the day).  What is the recommended way to access those via
 browser?




[flexcoders] Re: Compiling modules

2007-01-08 Thread brice.gervais

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

 Great question.  I've run into the same problem.  How do you use Flex
 Builder to compile just the module?

 The only work-around I've found so far is to right-click on the module
 name in the navigator panel and select Run As Flex Application.  This
 command will create a .swf and .html files for the module and try to
 load it in the browser (where nothing will display).

 It's not the best solution and I hope someone posts a better one, but
 it is all I've found to work so far.

 I did search through the Flex 2.0.1 help files but did not find
anything.

 Bruce





Re: [flexcoders] Customized NumericStepper

2007-01-08 Thread Daniel Freiman

checkValidValue() is marked private which means you can only access that
function from within the same class as that function.  As far as your
subclass is concerned, the function doesn't exist which is why you are
getting that error.  Take a look at:

http://livedocs.macromedia.com/flex/201/html/04_OO_Programming_161_04.html

- Dan

On 1/6/07, Devin Holloway [EMAIL PROTECTED] wrote:


  I want to make a few changes to how the numericstepper works. For
instance, when they click the up button and reach the maximum, I want
it to flip down to the minium, and vice versa.

There's just a small bit of code in the checkValidValue() function
that I need to change. However, if I try to override that function I
get the error: 1020: Method marked override must override another
method.

First of all, I don't quite understand why I can override some methods
and not others. And if I can't override that method, what other
options do I have?

 



RE: [flexcoders] Re: Compiling modules

2007-01-08 Thread Matt Horn
There is no explicit project type for modules in Flex Builder 2. To
create a module in Flex Builder, you treat the module as an MXML
application and compile it. 

There are two basic approaches:

1) One-project model: Create the modules in the same project as your
application and add them to the application list. This approach works as
long as the application and the modules share the same compiler settings
(such as library path).
To debug the application with modules, reference the debug SWF file from
source code during development, and switch to the non-debug one when you
are ready to deploy. 

2) Multiple-project model: Create a separate Flex or ActionScript
project for each module. Add a linked file to the source folder of your
shell projects that want to use it. This copies the module's SWF file
over at shell project build time. 
Alternatively you could point the module project's output folder at your
shell project's output folder, but a linked file is better.
To support debugging, point the link at the debug SWF file and change
that when you are ready to deploy, without altering source code.

My apologies for not getting this into the proper documentation. I am
currently working on a section about compiling modules with Flex Builder
that will be added to livedocs. The reality is that Flex Builder 2.0.1
does not have explicit support for modules. What you need to do (what
you have already figured out) is someone hacky.

I'll post to this list when the livedocs pages have been updated.

-matt horn
flex docs

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of phillips1021
 Sent: Monday, January 08, 2007 8:13 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Compiling modules
 
 Great question. I've run into the same problem. How do you 
 use Flex Builder to compile just the module?
 
 The only work-around I've found so far is to right-click on 
 the module name in the navigator panel and select Run As Flex 
 Application. This command will create a .swf and .html files 
 for the module and try to load it in the browser (where 
 nothing will display). 
 
 It's not the best solution and I hope someone posts a better 
 one, but it is all I've found to work so far.
 
 I did search through the Flex 2.0.1 help files but did not 
 find anything.
 
 Bruce
 
 
 
  
 


Re: [flexcoders] Since flex 2.0.1

2007-01-08 Thread John Kirby
I don't know the cause of these errors but I have my own recompile 
errors since moving to 2.0.1 (Mac).


It would be nice if someone from Adobe would post documentation on what 
has changed in the API since the last release so we can all debug our 
legacy applications. 

I for one have an application which is crippled since moving to 
2.0.1... moving back to 2.0.0 until I can debug what the solution should be?


.j

maikelsibbald said the following:


I've updated today to flex 2.0.1

And now I suddenly get these errors? doe anybody know what the problem is.

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
org.panda.gpn.view.workspace.results::OverView/__admin_sort_xml_collectionChange()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.collections::ListCollectionView/dispatchEvent()
at mx.collections::ListCollectionView/::internalRefresh()
at mx.collections::ListCollectionView/refresh()
at mx.collections::ListCollectionView/initialized()
at
org.panda.gpn.view.workspace.results::OverView/::_XMLListCollection1_i()
at org.panda.gpn.view.workspace.results::OverView$iinit()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.containers::ViewStack/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded 
http://www.adobe.com/2006/flex/mx/internal::childAdded()

at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded 
http://www.adobe.com/2006/flex/mx/internal::childAdded()

at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at org.panda.gpn.view.workspace::WorkspaceView/initialize()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded 
http://www.adobe.com/2006/flex/mx/internal::childAdded()

at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded 
http://www.adobe.com/2006/flex/mx/internal::childAdded()


 


--
/Whether you think that you can, or that you can't, you are usually right./
- Henry Ford


Re: [flexcoders] Possible bug introduced in 2.0.1

2007-01-08 Thread Igor Costa

Isn't a bug or something related to.

I did some wrong way or the Design mode did.

Here's a re-done code of yours, I used the Design mode too.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
   mx:states
   mx:State name=newState
   mx:SetProperty target={button1} name=label value=back/
   mx:SetEventHandler target={button1} name=click
handler=currentState=''/
   /mx:State
   /mx:states
   mx:Panel x=201 y=63 width=250 height=200 layout=absolute
   mx:ControlBar
   mx:Button label=Next id=button1
click=currentState='newState'/
   /mx:ControlBar
   /mx:Panel

/mx:Application


Regards.


On 1/8/07, João Fernandes [EMAIL PROTECTED] wrote:


   Hi there,



I was using states to introduce a controlBar inside a panel but once I
switch states, my buttons are not positioned correctly but somewhere else.



Here is a small code to reproduce the problem. This code was generated
with design view.

If you click on the first button to switch states, you'll see that the
control bar is not positioned at the bottom of the panel.



?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

mx:states

   mx:State name=newstate

   mx:SetStyle
target={panel1} name=top value=331/

   mx:AddChild
position=lastChild

   mx:Panel
height=283 layout=absolute top=40 left=10 right=10

   /mx:Panel

   /mx:AddChild

   mx:AddChild
relativeTo={panel1} position=lastChild


mx:ControlBar


mx:Button label=Button/


/mx:ControlBar

   /mx:AddChild

   /mx:State

/mx:states

mx:Panel layout=absolute top=40 left=10 right=10
bottom=10 id=panel1

/mx:Panel

mx:Button x=29 y=10 label=Button click=
this.currentState = currentState == 'newstate' ? '' : 'newstate'/



/mx:Application



Can anyone confirm this?



João Fernandes

 





--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta


RE: [flexcoders] Possible bug introduced in 2.0.1

2007-01-08 Thread João Fernandes
No Igor, it’s not what I want, what I want is to add a control Bar in the new 
state.

 If you take a look at my code, from initial state to the newstate, I add a 
ControlBar to Panel1 and a button to the controlBar. 

For now I have a workaround, creating a controlBar in my initial state with no 
button but I would consider this as a bug since It’s not possible to create a 
controlBar inside a panel with states.

 

João Fernandes

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Igor 
Costa
Sent: 08 January 2007 14:48
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Possible bug introduced in 2.0.1

 

Isn't a bug or something related to.

I did some wrong way or the Design mode did.

Here's a re-done code of yours, I used the Design mode too.

?xml version=1.0 encoding=utf-8? 
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
mx:states
mx:State name=newState 
mx:SetProperty target={button1} name=label value=back/
mx:SetEventHandler target={button1} name=click 
handler=currentState=''/ 
/mx:State
/mx:states
mx:Panel x=201 y=63 width=250 height=200 layout=absolute
mx:ControlBar
mx:Button label=Next id=button1 
click=currentState='newState'/
/mx:ControlBar
/mx:Panel

/mx:Application


Regards.



On 1/8/07, João Fernandes [EMAIL PROTECTED] wrote: 

Hi there,

 

I was using states to introduce a controlBar inside a panel but once I switch 
states, my buttons are not positioned correctly but somewhere else. 

 

Here is a small code to reproduce the problem. This code was generated with 
design view.

If you click on the first button to switch states, you'll see that the control 
bar is not positioned at the bottom of the panel.

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

mx:states

   mx:State name=newstate

   mx:SetStyle target={panel1} 
name=top value=331/

   mx:AddChild 
position=lastChild

   mx:Panel 
height=283 layout=absolute top=40 left=10 right=10

   /mx:Panel

   /mx:AddChild

   mx:AddChild 
relativeTo={panel1} position=lastChild

   mx:ControlBar

  
mx:Button label=Button/

   /mx:ControlBar

   /mx:AddChild

   /mx:State

/mx:states

mx:Panel layout=absolute top=40 left=10 right=10 
bottom=10 id=panel1

/mx:Panel

mx:Button x=29 y=10 label=Button 
click=this.currentState = currentState == 'newstate' ? '' : 'newstate'/



/mx:Application

 

Can anyone confirm this?

 

João Fernandes




-- 

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta 

 



Re: [flexcoders] Since flex 2.0.1

2007-01-08 Thread Dave Carabetta

John,

This link should give you all the info you need as far as what is changed
and fixed in the new release:

http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex201_sdk.html

Further, and I'm not saying it will definitely fix your problems, but you
may want to make sure you do a clean build just to make sure all remnants
of the 2.0 build are removed in favor of the 2.0.1 code base. That's found
under Project - Clean... in Flex Builder.

Regards,
Dave.
Cynergy Systems, Inc.


On 1/8/07, John Kirby [EMAIL PROTECTED] wrote:


   I don't know the cause of these errors but I have my own recompile
errors since moving to 2.0.1 (Mac).

It would be nice if someone from Adobe would post documentation on what
has changed in the API since the last release so we can all debug our
legacy applications.

I for one have an application which is crippled since moving to 2.0.1...
moving back to 2.0.0 until I can debug what the solution should be?

.j

maikelsibbald said the following:

 I've updated today to flex 2.0.1

And now I suddenly get these errors? doe anybody know what the problem is.

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at

org.panda.gpn.view.workspace.results::OverView/__admin_sort_xml_collectionChange
()
at

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
at flash.events::EventDispatcher/dispatchEvent()
at mx.collections::ListCollectionView/dispatchEvent()
at mx.collections::ListCollectionView/::internalRefresh()
at mx.collections::ListCollectionView/refresh()
at mx.collections::ListCollectionView/initialized()
at
org.panda.gpn.view.workspace.results::OverView/::_XMLListCollection1_i()
at org.panda.gpn.view.workspace.results::OverView$iinit()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.containers::ViewStack/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at
mx.core::UIComponent/
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded
()
at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at org.panda.gpn.view.workspace::WorkspaceView/initialize()
at
mx.core::UIComponent/
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded
()


--
*Whether you think that you can, or that you can't, you are usually right.
*
 - Henry Ford

 



[flexcoders] FLV Thumbnail

2007-01-08 Thread john_69_11
I'm trying to generate an image thumbnail of an FLV and can't seem to
find any way to do it.  Only thing that people seem to be doing is
creating a player for the flv, then pausing and stopping the stream -
I want to grab an image of the one of the flv frames.  I found a piece
of code here:

http://www.flash-db.com/Tutorials/snapshot/snapshot.php?page=2

which i tried to implement with code like this in onFrameEnter:

//Here we will copy pixels data
pixels = new Array()
//Create a new BitmapData
snap = new BitmapData(_video.width, _video.height);
//Matrix to scale the new image
var myMatrix:Matrix = new Matrix();
myMatrix.scale(0.5, 0.5)
//Copy video image
snap.draw(_video,  myMatrix);

var w:Number = snap.width, tmp
var h:Number = snap.height  
var a:Number = 0 
for(var b=0; b=h; b++){
tmp = snap.getPixel32(a, b).toString(16)
trace(tmp)
pixels.push(tmp.substr(1))
}
a++
if(aw){ //Finish capturing

//sendData(pixels, h, w)
//free memory
snap.dispose()

} 

Now, it seems like the pixels are being captured, but I'm not certian
and I can't seem to display the captured image at all.  I've tried
using an image object and a Bitmap set to the BitmapData (variable
snap) but it doesn't display.  Anyone know of how to make this work,
or a better way?

Thanks,

John



[flexcoders] How to pass an array argument to a web service? please help?

2007-01-08 Thread kieuhdung
Hello everybody,

I want to pass an array (eg : a String array) to concat method of a
web service as the following code :

var ar : Array = new Array();
ar.push(Hello);
ar.push(World);
WS.concat(ar);

// WS is correctly initialized and tested with other methods.

But in the captured message SOAP, there's no argument ... I think the
array is not serialized and nothing is passed to the concat method.

I have tried with ArrayCollection but the same result.

Does anyone know about this thing? Any idea?

Thank you in advance,

HD-Kieu.



Re: [flexcoders] Re: Docs included in 2.0.1 are broken

2007-01-08 Thread DannyT

http://www.adobe.com/support/documentation/en/flex/ seems to do the job :)

On 08/01/07, DannyT [EMAIL PROTECTED] wrote:


Thanks Randy, although the link is currently not found.

Dan

On 08/01/07, jrunrandy [EMAIL PROTECTED]  wrote:

   If you are not using Flex Builder, which has all Flex docs in the Help

 system, you can get a local copy of the Flex docs by downloading the
 ZIP file (~45 MB) at http://www.adobe.com/go/flex_documentation_zip.
 This contains usage docs in PDF format and reference docs in ASDoc
 format.

 HTH
 Randy Nielsen
 Flex Documentation Manager
 Adobe Systems, Inc.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Collin Peters [EMAIL PROTECTED] wrote:
 
  All I'd like is a local version of the Language Docs so I don't have
 to
  depend on adobe.com (or more specifically the load on adobe.com
 during the
  middle of the day). What is the recommended way to access those via
  browser?

  





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





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


Re: [flexcoders] Max OS X Flex Builder 2.01 License Issue

2007-01-08 Thread Adam Dorritie
On 1/7/07, Joost Nuijten [EMAIL PROTECTED] wrote:

 Yeah, I agree. It's a bit outdated. This is what I found on the Adobe site:


I'm wondering how many folks are in my position.  Adobe is kind enough
to permit me to install the Flex Builder 2 with Charting software on
my home computer as well as my work computer (thanks!).
Unfortunately, at work I develop on Windows and at home I use a Mac.
Will I need to purchase an additional copy of FB2 w/ charting in order
to run it on my Mac?  I'm still working on convincing my boss to get
me an MB Pro w/ Parallels:)


[flexcoders] Flex 2.0.1: links to new feature documentation

2007-01-08 Thread Matt Horn
Here are direct links to the documentation in Flex 2.0.1 for major new
features. This really should have made it into the SDK, Flex Builder,
and FDS Release Notes. I think it's safe to say we'll get it right next
time. :)

*** SDK 2.0.1 new features 
ASDoc tool -
http://livedocs.macromedia.com/flex/201/html/asdoc_127_1.html

Runtime CSS -
http://livedocs.macromedia.com/flex/201/html/styles_069_26.html

FlashType encoding (advanced anti-aliasing) -
http://livedocs.macromedia.com/flex/201/html/fonts_070_06.html

Modules -
http://livedocs.macromedia.com/flex/201/html/modular_083_1.html

Compiler changes - all the updated compiler options are on the following
pages:
 - mxmlc:
http://livedocs.macromedia.com/flex/201/html/compilers_123_24.html
 - compc:
http://livedocs.macromedia.com/flex/201/html/compilers_123_32.html


*** Flex Builder 2.0.1 new features 
Mac version of Flex Builder -
http://livedocs.macromedia.com/flex/201/html/Part6_Using_FB_029_1.html
(this document was updated to include keyboard shortcuts for the Mac)


** Automated Testing support **
Automated Testing -
http://livedocs.macromedia.com/flex/201/html/functest_components2_128_01
.html

Testing Flex Applications with Mercury QuickTest Professional PDF -
http://download.macromedia.com/pub/documentation/en/flex/2/flex2_testing
_with_mercury_qtp.pdf


 Release Notes *
SDK 2.0.1 -
http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex20
1_sdk.html

Flex Builder 2 (includes 2.0.1 changes) -
http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex2_
fb.html

FDS 2 (includes 2.0.1 bug fixes) -
http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex2_
fds.html



I hope this helps!

matt horn
flex docs


Re: [flexcoders] flexbuilder 2.0.1 css editor support

2007-01-08 Thread Paolo Bernardini

Thanks Igor,

I knew it worked for as and mxml files but I used to press // in order to
see code hint in css file, I thought I tried once and didn't work I guess I
hit the wrong key ;).

Anyway CTRL+SPACE works fine, thanks a lot



On 1/8/07, Igor Costa [EMAIL PROTECTED] wrote:


  Paolo

To support code Hint in the lastest version fo Flex 2.0.1 in External CSS
file, just press like in 2.0, CTRL+SPACE after your tag or class you want
to declare.

Here's a short example of that

Application {
press CTRL + SPACE
}

Panel {
  press CTRL + SPACE
}
.myStyle {
 press CTRL+SPACE
}

And it will works fine to you.


Regards.

On 1/8/07, Robert W [EMAIL PROTECTED] wrote:

   I found that fb conflict with WTP css editor (WTP is eclipse
 subproject). But i can't use wtp css editor, not flex. Maybe eclipse log

 show you answer.
 rw
 Paolo Bernardini wrote:
  I noticed that under flexbuilder (either stand-alone or plug-in
  version) preference/Flex/Editors, in version 2.0 there was Css Code,
  but now with version 2.0.1 it's gon and we only have ActionScript
  code, design code and mxml code.
  In 2.0 version when you were working with external css file, you could

  have code hint by typing // first (then you had to remove it), this no

  longer works in version 2.0.1, and makes writing css very hard since I

  certainly don't remember all style properties name by heart.
  I wonder if someone else have this problem, hope some one can point me

  to a solution.
 
  On 1/6/07, *Lance Linder* [EMAIL PROTECTED]llinder%40medicomdigital.com
  mailto:[EMAIL PROTECTED] llinder%40medicomdigital.com
 wrote:
 
  I have similar problems with 2.0. With around 6-7 installations of
  the Flex builder plugin for eclipse about half of them have this
  exact problem with the other half working fine. I would be really
  interested to hear if you or anyone can finds out why this
  happens� it is a real pain!
 
  Lance
 
  *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 
http://ups.com/
 [mailto:
  flexcoders@ mailto:flexcoders@yahoogroups.com
  http://yahoogroups.com] *On Behalf Of *Paolo Bernardini
  *Sent:* Saturday, January 06, 2007 9:28 AM
  *To:* [EMAIL PROTECTED] ups.com  http://ups.com/
  *Subject:* Re: [flexcoders] flexbuilder 2.0.1 css editor support
 
  Hi Brian,
 
  I'm using windows and trying to edit an external css file.
 
  On 1/6/07, *Brian Dunphy* [EMAIL PROTECTED]briandunphy%40gmail.com
  mailto:[EMAIL PROTECTED] briandunphy%40gmail.com wrote:
 
  Still works for me on the Mac version of Flex Builder 2.0.1.
 
  Are you editing an external CSS file or inline?
 
  Brian
 
 
 
  On 1/6/07, Paolo Bernardini [EMAIL PROTECTED]bernardini.paolo%40gmail.com
  mailto:bernardini.paolo%40gmail.com wrote:
  
  
  
  
  
  
   What happened to the css editor support in flexbuilder 2.0.1?
   before with version 2 you had code hinting for css file, now
  after updating
   to version 2.0.1 doesn't work anymore.
  
  
 
 
  --
  Brian Dunphy
 
 
 




--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta





RE: [flexcoders] Remoting after 2.0.1

2007-01-08 Thread Peter Farland
http://weblogs.macromedia.com/flexteam/archives/2007/01/migrating_to_20.
cfm#more



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Webdevotion
Sent: Monday, January 08, 2007 3:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remoting after 2.0.1



I'm having problems connecting from any AS3 project since I 
installed 2.0.1 today on my localhost. Can anyone give me
some pointers ?

Working with CFMX 7.0.2.

Tnx !



 


Re: [flexcoders] Re: Docs included in 2.0.1 are broken

2007-01-08 Thread DannyT

Thanks Randy, although the link is currently not found.

Dan

On 08/01/07, jrunrandy [EMAIL PROTECTED] wrote:


  If you are not using Flex Builder, which has all Flex docs in the Help
system, you can get a local copy of the Flex docs by downloading the
ZIP file (~45 MB) at http://www.adobe.com/go/flex_documentation_zip.
This contains usage docs in PDF format and reference docs in ASDoc
format.

HTH
Randy Nielsen
Flex Documentation Manager
Adobe Systems, Inc.

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Collin
Peters [EMAIL PROTECTED] wrote:

 All I'd like is a local version of the Language Docs so I don't have
to
 depend on adobe.com (or more specifically the load on adobe.com
during the
 middle of the day). What is the recommended way to access those via
 browser?

 





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


Re: [flexcoders] Re: Compiling modules

2007-01-08 Thread Oleg Filipchuk

Matt,
thank you for clearing this issue.
The Multiple-project model looks more convenient for me.
But there is a question about One-project model - it looks like we can't
have modules files in the folders as for Flex Builder it isn't possible to
treat any mxml file placed anywhere except the root as an application (at
least I do not know how).
So, thinking logically, for huge application every module should be the
separate project. It looks effective for medium size project, but is it so
convenient to have hundreds of projects for huge size projects...?
Is Flex Builder team planning to make this issue more clear? For example add
new button next to debug where will be options to compile modules (if any is
open in workspace) that would be very handy for people not preferring to
work with command line.




--
Best regards,
Oleg Filipchuk
euroPIN group j.s.c.


RE: [flexcoders] Re: Docs included in 2.0.1 are broken

2007-01-08 Thread Stephen Gilson
There is a period at the end of that URL. Try this one:
http://www.adobe.com/go/flex_documentation_zip

Stephen




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of DannyT
Sent: Monday, January 08, 2007 10:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Docs included in 2.0.1 are broken



Thanks Randy, although the link is currently not found.

Dan


On 08/01/07, jrunrandy [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote: 

If you are not using Flex Builder, which has all Flex docs in
the Help 
system, you can get a local copy of the Flex docs by downloading
the 
ZIP file (~45 MB) at
http://www.adobe.com/go/flex_documentation_zip.
http://www.adobe.com/go/flex_documentation_zip.  
This contains usage docs in PDF format and reference docs in
ASDoc 
format.

HTH
Randy Nielsen
Flex Documentation Manager
Adobe Systems, Inc.

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

 All I'd like is a local version of the Language Docs so I
don't have 
to
 depend on adobe.com (or more specifically the load on
adobe.com 
during the
 middle of the day). What is the recommended way to access
those via
 browser?








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

 


[flexcoders] Google search and list of sites

2007-01-08 Thread Kenneth Sutherland
It's not really possible to search for flex 2 sites using Google so I
was thinking that it would be great for flex developers to have a list
of as many sites out there that allow you to see the source code.  I
know that there are a few examples on the adobe site, but I'd like to
see more.

Does anyone have a list or know of a site that lists such flex 2 sites.

 

Cheers.

 

  



[flexcoders] which fds to use on Max OSX?

2007-01-08 Thread fuad_kamal
sorry if this sounds like a dumb question, but really I'm still a
newbie on Mac platform -

the install docs for fds 2.0.1 says there's a java installer (cross
platform) for fds - but on the downloads page the options are AIX,
HP_UX, Linux,  Solaris.  Which version should we be trying to run on
Mac OSX (BSD Unix)?

thanks



Re: [flexcoders] Since flex 2.0.1

2007-01-08 Thread John Kirby

Dave -

Thanks.  I have solved my problems thanks to this link:

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60catid=582threadid=1230484enterthread=y

Not sure this is only a Mac issue but I uninstalled then reinstalled 
and everything worked except  I had to change  mx.effects.EffectInstance 
to mx.effects.IEffectInstance.  This was well documented.


The bottom line to Mac users going from Beta to 2.0.1... Uninstall beta 
then reinstall 2.0.1


.j

Dave Carabetta said the following:


John,

This link should give you all the info you need as far as what is 
changed and fixed in the new release:


http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex201_sdk.html 
http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex201_sdk.html


Further, and I'm not saying it will definitely fix your problems, but 
you may want to make sure you do a clean build just to make sure all 
remnants of the 2.0 build are removed in favor of the 2.0.1 code base. 
That's found under Project - Clean... in Flex Builder.


Regards,
Dave.
Cynergy Systems, Inc.


On 1/8/07, * John Kirby* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


I don't know the cause of these errors but I have my own recompile
errors since moving to 2.0.1 (Mac).

It would be nice if someone from Adobe would post documentation on
what has changed in the API since the last release so we can all
debug our legacy applications. 


I for one have an application which is crippled since moving to
2.0.1... moving back to 2.0.0 until I can debug what the solution
should be?

.j

maikelsibbald said the following:


I've updated today to flex 2.0.1

And now I suddenly get these errors? doe anybody know what the
problem is.

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at

org.panda.gpn.view.workspace.results::OverView/__admin_sort_xml_collectionChange()
at

flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.collections::ListCollectionView/dispatchEvent()
at mx.collections::ListCollectionView/::internalRefresh()
at mx.collections::ListCollectionView/refresh()
at mx.collections::ListCollectionView/initialized()
at
org.panda.gpn.view.workspace.results::OverView/::_XMLListCollection1_i()
at org.panda.gpn.view.workspace.results::OverView$iinit()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.containers::ViewStack/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at org.panda.gpn.view.workspace::WorkspaceView/initialize()
at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded
http://www.adobe.com/2006/flex/mx/internal::childAdded()



-- 
/Whether you think that you can, or that you can't, you are

usually right./
 - Henry Ford


 


--
/Whether you think that you can, or that you can't, you are usually right./
- Henry Ford


[flexcoders] Re: Use nested arraycollection in object as dataprovider

2007-01-08 Thread jamckinn2001
Needed to provide the entire arrayCollection as the dataProvider like
this: {mycustomer.customer_invoices[2].invoice_payments}



Re: [flexcoders] Re: Docs included in 2.0.1 are broken

2007-01-08 Thread Dave Carabetta

That links work actually. You just have to remove the period at the end of
it.

Regards,
Dave.
Cynergy Systems, Inc.


On 1/8/07, DannyT [EMAIL PROTECTED] wrote:


  Thanks Randy, although the link is currently not found.

Dan

On 08/01/07, jrunrandy [EMAIL PROTECTED]  wrote:

   If you are not using Flex Builder, which has all Flex docs in the Help

 system, you can get a local copy of the Flex docs by downloading the
 ZIP file (~45 MB) at http://www.adobe.com/go/flex_documentation_zip.
 This contains usage docs in PDF format and reference docs in ASDoc
 format.

 HTH
 Randy Nielsen
 Flex Documentation Manager
 Adobe Systems, Inc.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Collin Peters [EMAIL PROTECTED] wrote:
 
  All I'd like is a local version of the Language Docs so I don't have
 to
  depend on adobe.com (or more specifically the load on adobe.com
 during the
  middle of the day). What is the recommended way to access those via
  browser?




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



[flexcoders] fds initialization sequence - chatadapter using hibernate

2007-01-08 Thread passive_thoughts
I have a custom chat adapter that uses hibernate to log all chat
messages to the db.  I use a hibernate.cfg.xml file that binds the
hibernate SessionFactory to jndi (in jboss).  On initialization of the
chat adapter, it grabs the sessionfactory from the jndi and opens a
new session.  Took me a while to get this going but it works.  Here's
the crazy thing I don't get:

If I rename the service id of my data-management-config.xml from
data-service to anything else (i.e. data-service1), the hibernate
configuration loads BEFORE my chat adapter initializes.  If I leave it
as the default, the chat adapter loads first and then fails because
the sessionfactory isn't bound to jndi yet.  I just don't get why the
ID of the data service can affect the sequence of events.  Anyone?

Vic





RE: [flexcoders] Re: Ely's example of ItemRenderer cause tooltip to be always orange

2007-01-08 Thread Ely Greenfield
 
 
That's right.
 
Ely.

[esg]   


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vigen2000
Sent: Friday, January 05, 2007 4:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Ely's example of ItemRenderer cause tooltip to
be always orange



Hi Ely, 

thank you very much for your reply. so if i understand correctly, if i
take your perColumnColor example and i want the dataTip to have the
correct color of the column, i need to extend the series class and
override the findDataTip function, and return the hitdata object with
the right color?

thanks,

vigen

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

 
 
 
 Hi Vigen. The color used by the datatip is defined by the series, in
 the hitData structure returned from the findDataPoints() method. This
 method is called by the chart to decide what datatips to show and how
to
 show it. If you want to change the hilight color, you'll need to
 override the findDataPoints() method of your series.
 
 (Or create a new custom datatip).
 
 Ely.
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of vigen2000
 Sent: Thursday, January 04, 2007 1:40 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Ely's example of ItemRenderer cause tooltip to
be
 always orange
 
 
 
 Hi,
 
 im trying to make something similar to Ely's example of the
 itemRenderer of chart series, like the PerColumnFill (PerColumnColor)
 class. the problem is that if u add tooltip to the chart (showDataTip
 = true) they are always in orange. any ideas on how to solve this?
 
 help...
 Vigen




 


Re: [flexcoders] remoting problemen after 2.0.1 installation

2007-01-08 Thread Simeon Bateman

Need to add an empty --context-root  parameter to your compiler
arguments.  Take a look at this post

http://weblogs.macromedia.com/flexteam/archives/2007/01/migrating_to_20.cfm

simeon


On 1/7/07, Webdevotion [EMAIL PROTECTED] wrote:


  I'm having problems connecting from any AS3 project since I
installed 2.0.1 today on my localhost.  Can anyone give me
some pointers ?

Working with CFMX 7.0.2.

Tnx !
 



RE: [flexcoders] Dynamic LineChart; no line showing

2007-01-08 Thread Ely Greenfield
 
 
If you can post an example that doesn't require the server, I might be
able to help. Try capturing the result into a variable in the
application, and see if your example works that way. If it still doesn't
work, post the sample and we can go from there.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of app.developer
Sent: Friday, January 05, 2007 8:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic LineChart; no line showing



I would like to dynamically produce a line chart with dynamic data 
and multiple line series produced by actionscript instead of the mxml 
tags. The following code produces everything but the lines. Does 
anyone see what I'm missing that would prevent the lines from showing?

=
MXML:
=

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
layout=absolute 
creationComplete=init() backgroundGradientColors=[#ff, 
#ff]
mx:Script
![CDATA[
import mx.charts.chartClasses.Series;
import mx.charts.*;
import mx.charts.Legend;
import mx.charts.series.*;
import mx.charts.renderers.*;
import mx.charts.events.*;
import mx.collections.*;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.utils.ObjectUtil;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;

public var chart:LineChart = new LineChart();
public var mySeries:Array = new Array();
public var legend:Legend = new Legend();
public var lseries:LineSeries = new LineSeries
();

[Bindable]
public var dp:ArrayCollection = new 
ArrayCollection();

import mx.events.IndexChangedEvent;

public function init():void{
this.dataManager.getNics(); 

}


public function createChart():void{

chart.height=400;
chart.width=400;

chart.showDataTips=true;
this.boxer.addChild(chart);

chart.series = mySeries;

mySeries.push(lseries); 

legend.width = 300;
legend.height = 26;
legend.dataProvider =chart;
this.boxer.addChild(legend);
}

//getNics
public function getNics_result
(event:ResultEvent):void{

chart.height=300;
chart.width=400;
chart.showDataTips=true;
this.boxer.addChild(chart);

for ( var 
i:Number=0;ievent.result.length;i++){
//Alert.show
(ObjectUtil.toString(event.result.list.source[i].NICID), i as String);

this.dataManager.getNicbyID
(event.result.list.source[i].NICID);

var lseries:LineSeries=new 
LineSeries();

lseries.displayName=NIC +event.result.list.source[i].NICID;
lseries.xField=BandIn;


mySeries.push(lseries);
}

chart.series = mySeries;

legend.width = 300;
legend.height = 26;
legend.id = chartLegend;
legend.dataProvider = chart;
this.boxer.addChild(legend);
}

private function getNics_fault
(event:FaultEvent):void 
{
Alert.show(ObjectUtil.toString
(event.fault),'getNics');
}

//getNicbyID
public function getNicbyID_result
(event:ResultEvent):void{;
chart.dataProvider = event.result as 
ArrayCollection;
Alert.show(ObjectUtil.toString
(chart.dataProvider));
}

private function getNicbyID_fault
(event:FaultEvent):void 
{
Alert.show(ObjectUtil.toString
(event.fault),'getNicbyID');
}

]]
/mx:Script

mx:Style
@font-face {
fontFamily: labelFont;
src:url(/resources/arial.ttf);
}
LineChart{
fontFamily: labelFont;
}
/mx:Style 

mx:RemoteObject
id=dataManager
showBusyCursor=true
source=chartsamplers.cfcServerMonitor
destination=ColdFusion 
mx:method name=getNics 
result=getNics_result(event) 
fault=getNics_fault(event) /
mx:method name=getNicbyID
result=getNicbyID_result(event) 
fault=getNicbyID_fault(event) /
/mx:RemoteObject

mx:VBox id=boxer width=749 height=600 x=10 y=10/


/mx:Application

=
CFC
=
cfcomponent name=cfcServerMonitor output=false

cffunction access=remote name=getNics output=false 
returntype=query
cfset Result = QueryNew(NICID, Integer)

cfset newRow = QueryAddRow(Result)
cfset temp = QuerySetCell(Result, NICID, 2)
cfset newRow = QueryAddRow(Result)
cfset temp = QuerySetCell(Result, NICID, 3445)

cfreturn result

/cffunction

cffunction access=remote name=getNicbyID output=false 
returntype=query

cfargument name=nicID type=string required=false 
cfset Result = QueryNew(BandIn,DateCreated, Integer, Date)

cfset newRow = QueryAddRow(Result)
cfset temp = QuerySetCell(Result, BandIn, 341)
cfset temp = QuerySetCell(Result, DateCreated, 2007-01-05 
08:15:00)
cfset newRow = QueryAddRow(Result)
cfset temp = QuerySetCell(Result, BandIn, 333)
cfset temp = QuerySetCell(Result, DateCreated, 2007-01-05 
08:15:33)
cfset newRow = QueryAddRow(Result)
cfset temp = QuerySetCell(Result, BandIn, 332)
cfset temp = QuerySetCell(Result, DateCreated, 2007-01-05 
08:15:44)
cfset newRow = QueryAddRow(Result)
cfset temp = QuerySetCell(Result, BandIn, 113)
cfset temp = QuerySetCell(Result, DateCreated, 2007-01-05 
08:15:55)


cfquery name=qRead dbtype=query 
Select BandIn, 

RE: [flexcoders] Re: Compiling modules

2007-01-08 Thread Brian Holmes
Would it be possible to post an example of how to use the mx.modules? 

I would assume that you add a mx:Module/mx:Module instead of the
Application tag and it would get compiled
And then in your shell application you use the mx:ModuleLoader tag to
point to your module.

Is this correct or am I way off. I can't get it to work either. Also, I
also assumed I could just right click on my application in
Flex Builder and select the option of New  Module. That doesn't work
either.

I've really been looking forward to modules, but after upgrading this
morning and reading your message about how to use them,
I'm nothing but extremely confused and discouraged.


Brian..



 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Horn
Sent: Monday, January 08, 2007 8:10 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Compiling modules

There is no explicit project type for modules in Flex Builder 2. To
create a module in Flex Builder, you treat the module as an MXML
application and compile it. 

There are two basic approaches:

1) One-project model: Create the modules in the same project as your
application and add them to the application list. This approach works as
long as the application and the modules share the same compiler settings
(such as library path).
To debug the application with modules, reference the debug SWF file from
source code during development, and switch to the non-debug one when you
are ready to deploy. 

2) Multiple-project model: Create a separate Flex or ActionScript
project for each module. Add a linked file to the source folder of your
shell projects that want to use it. This copies the module's SWF file
over at shell project build time. 
Alternatively you could point the module project's output folder at your
shell project's output folder, but a linked file is better.
To support debugging, point the link at the debug SWF file and change
that when you are ready to deploy, without altering source code.

My apologies for not getting this into the proper documentation. I am
currently working on a section about compiling modules with Flex Builder
that will be added to livedocs. The reality is that Flex Builder 2.0.1
does not have explicit support for modules. What you need to do (what
you have already figured out) is someone hacky.

I'll post to this list when the livedocs pages have been updated.

-matt horn
flex docs

 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of phillips1021
 Sent: Monday, January 08, 2007 8:13 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Compiling modules
 
 Great question. I've run into the same problem. How do you use Flex 
 Builder to compile just the module?
 
 The only work-around I've found so far is to right-click on the module

 name in the navigator panel and select Run As Flex Application. This 
 command will create a .swf and .html files for the module and try to 
 load it in the browser (where nothing will display).
 
 It's not the best solution and I hope someone posts a better one, but 
 it is all I've found to work so far.
 
 I did search through the Flex 2.0.1 help files but did not find 
 anything.
 
 Bruce
 
 
 
  
 


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





***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


RE: [flexcoders] Re: Compiling modules

2007-01-08 Thread Roger Gonzalez
Just make a new project.  You'll need to change the root tag from
mx:Application to mx:Module for a MXML project, or change the base
class of an ActionScript project from flash.display.Sprite to
mx.modules.ModuleBase because FlexBuilder doesn't know about modules
directly.
 
(There is some odd asymmetry in the FB project structure in that you can
add a new MXML Application (which could be a module) to a MXML project
- its a many-to-one relationship, but you can't add a new AS Application
to an AS project, its always one-to-one.)
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of phillips1021
Sent: Monday, January 08, 2007 5:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Compiling modules



Great question. I've run into the same problem. How do you use
Flex
Builder to compile just the module?

The only work-around I've found so far is to right-click on the
module
name in the navigator panel and select Run As Flex Application.
This
command will create a .swf and .html files for the module and
try to
load it in the browser (where nothing will display). 

It's not the best solution and I hope someone posts a better
one, but
it is all I've found to work so far.

I did search through the Flex 2.0.1 help files but did not find
anything.

Bruce



 



[flexcoders] Possible to use custom variables in flex library path?

2007-01-08 Thread Collin Peters
When adding a SWC to the Library Path in the project settings I
would like to be able to use a variable similar to the ${FRAMEWORKS}
variable.  Our developers may have the code to the application in
different spots and it would be handy to define an Eclipse level
variable such as ${APP_SRC} to I can include a SWC the same way the
flex SWC's are included

I originally assumed that if you put the SWC within your project
structure it would use a relative path but that doesn't seem to be the
case.  On my machine it shows up as AppName\src\assets\Cairngorm.swc
but on another developers machine it is just assets\Cairngorm.swc

-- 
Collin Peters
Lead Software Developer
InTouch Technology


[flexcoders] Dragging Custom Components?

2007-01-08 Thread s_hernandez01
Hey all, I have a datagrid and I put a custom component of a button on
one column.  The problem I have is setting the drag initiator... I
programmed an AS3 function to set the initiator and when I insert the
mouseDown property to call the function I get the error Call to a
possibly undefined method dragIt.  Why am I getting this error when I
have the function coded inside the app component and I have no
spelling errors?  Here is a sample of my code for better understanding.

Regards
Sal


mx:Script
![CDATA[
import mx.core.DragSource;
import mx.managers.DragManager;
import mx.events.DragEvent;
import mx.core.UIComponent;

public function dragIt(event:MouseEvent):void{
var ds:DragSource = new DragSource();
ds.addData(data, item);
DragManager.doDrag(this, ds, event);
}
]]
/mx:Script

mx:DataGrid id=fixedGrid width=100% height=100%
dataProvider={fixed.lastResult.fixed.product}
mx:columns
mx:DataGridColumn width=40  

mx:itemRenderer   
mx:Component

mx:Button label=${data.loadprice} toolTip=Add To Cart
mouseDown=dragIt(event)   click=dispatchEvent(new
Event('purchase',true))/

/mx:Component /mx:itemRenderer  
/mx:DataGridColumn
/mx:columns
/mx:DataGrid



[flexcoders] [Inspectable] Function type

2007-01-08 Thread chuvakgu
Hi all,

I want to add some [Inspectable] properties that are Functions. 
I also want to ensure that these are not just any functions, 
but functions that take arguments of specific types and
have certain return type. How would I go about it?






Re: [flexcoders] FLV Thumbnail

2007-01-08 Thread Andrew D. Goodfellow

John,

I don't do it in AS. I always process the flv on the fly (with caching of
course) with an open source tool called ffmpeg (
http://sourceforge.net/projects/ffmpeg/) and load the thumbnail via url just
like an external image. It's tricky to get it working, but once you do it
works wonderfully.

-Andy

On 1/8/07, john_69_11 [EMAIL PROTECTED] wrote:


  I'm trying to generate an image thumbnail of an FLV and can't seem to
find any way to do it. Only thing that people seem to be doing is
creating a player for the flv, then pausing and stopping the stream -
I want to grab an image of the one of the flv frames. I found a piece
of code here:

http://www.flash-db.com/Tutorials/snapshot/snapshot.php?page=2

which i tried to implement with code like this in onFrameEnter:

//Here we will copy pixels data
pixels = new Array()
//Create a new BitmapData
snap = new BitmapData(_video.width, _video.height);
//Matrix to scale the new image
var myMatrix:Matrix = new Matrix();
myMatrix.scale(0.5, 0.5)
//Copy video image
snap.draw(_video, myMatrix);

var w:Number = snap.width, tmp
var h:Number = snap.height
var a:Number = 0
for(var b=0; b=h; b++){
tmp = snap.getPixel32(a, b).toString(16)
trace(tmp)
pixels.push(tmp.substr(1))
}
a++
if(aw){ //Finish capturing

//sendData(pixels, h, w)
//free memory
snap.dispose()

}

Now, it seems like the pixels are being captured, but I'm not certian
and I can't seem to display the captured image at all. I've tried
using an image object and a Bitmap set to the BitmapData (variable
snap) but it doesn't display. Anyone know of how to make this work,
or a better way?

Thanks,

John

 



[flexcoders] Re: Flex and Maven2 managed project

2007-01-08 Thread Shailesh Mangal
I am planning to use Maven for my new flex project. Wondering if
someone can share their experience of using maven folder structure,
POM file, todo and not todo items, limitations etc

-sxm


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

 Am Montag, 18. Dezember 2006 08:19 schrieb Aldo Bucchi:
  Yeah Maven!,
 
  I'm a little surprised on the apparent low interest in the flex-maven
  front.
 
 I'm not surprised ;). Most people will start with a shiny frontend
which sells 
 the application. Project (build/change/livecycle) management is not
as sexy 
 as eye candy for most of them.
 
  I am also flirting with the idea of building a plugin, but not 
  yet... not yet... tomorrow perhaps
 
 :), same here
 
  I would really like to hear about Adobe's plans with respect to Maven.
  It would be a very good way to make things easier for new developers (
  by leveraging something that's already built for you ) and to make
  things more attractive to veterans.
  Really, maven is one of those little toys I really really love.
 
  My wishlist on this one ( thinking java here ):
 
  * mavenized standardization of folder structures for flex applications
  ( all flavors: standalone, fds, etc )
  ** src/main/flex, src/test/flex?
 
 Did that already for my projects without integrating testing. Works
fine - 
 same layout (SVN+MVN) for Flex and Java projects.
 
  * maven plugins:
  ** flexunit ( or asunit )
  ** mxmlc
  ** asdoc
  *** including complex features (eg. auto compile and deploy examples)
  * definitions and workflow for continuous integration deployoment (
  cruise control and continuum hopefully )
 
  and then some extra would-be-nice-to-have plugins:
  * auto generate fds stubs/skeletons ( vos, assemblers, dataproviders,
  dataservices, etc ) for hibernate, JDO, other ORMs
  * springified fds
  ...?
 
 Nice, indeed. I hope someone at Adobe is already working on
Mavenization of 
 Flex.
 
 O.





[flexcoders] 2.01 bug - Bug cutting text in the MXML editor with code folding on.

2007-01-08 Thread Daniel Wabyick
I just ran into a bug with the MXML editor when code folding is on. Just
filed the bug, but I thought I would send this out to see if a) others
have the issue, b) there appears to be a workaround.

The bug occurs when cutting text in the MXML editor. To reproduce:

1) Create a new mxml app:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
mx:VBox
mx:HBox
/mx:VBox
/mx:Application

2) Select the following:  xmlns:mx=http://www.adobe.com/2006/mxml;

3) Hit CTRL-X. Note that the 1st and 5th line of text disappear.


The good news is that turning off code folding appears to fix the
problem.  I am on a new install of Flex 2.0.1, Eclipse 3.2 on Windows
XP. Other plugins include Callisto and the Spring IDE component.

Would be curious if others can reproduce.

-D




[flexcoders] Ending an Effect

2007-01-08 Thread David Steele
Hi,

I'm applying the zoom effect to multiple UIComponents on a canvas. If I move 
the mouse quickly off one zoomed component and onto another, sometimes the 
first will not reverse to its original size. I believe this is because the 
isPlaying flag is true if *any* instances of the effect are currently playing. 
Does anyone know a solution for this? I want instance one to shrink back down 
to original size even if I move quickly to instance 2.


TIA

Code:

public function doZoom(event:MouseEvent):void {
if (zoomAll.isPlaying) {
zoomAll.reverse();
}
else {
// If this is a ROLL_OUT event, play the effect backwards. 
// If this is a ROLL_OVER event, play the effect forwards.
zoomAll.play([event.target], event.type == 
MouseEvent.ROLL_OUT ? true : false);
   if(event.type == rollOut){
 zoomAll.end();
   }
   //
}
}

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: [flexcoders] Is it possible to have an invisible component?

2007-01-08 Thread Tracy Spratt
Absolutely.  You can instantiate any custom AS class  using a tag.  The
AS class need not extend anything, but often you will want event
dispatching and such.

 

The tag will probably have to be at the top-level, since the standard
containers will not be set up to allow it as a child.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Harris
Sent: Sunday, January 07, 2007 8:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is it possible to have an invisible component?

 

Does anyone know if the is a simple way to have a namespace:Tag /
that has no visible state?

I have an AS class that I would like to call namespace:MyASClass /...

Cheers,

David

 



[flexcoders] indexed array of associative array: ideas to add elements to associative array?

2007-01-08 Thread tinkiknit
Hello...

Stuck on another issue here. Searched the archive but I didn't really 
see anything that I could use using AS3.0. I am quite a newbie to 
AS3.0, not a newbie to programming, but I'm stumped since I haven't 
done much with associative arrays.

Here is what I have: indexed array of associative arrays.

example:

var myData: Array = new Array();

myData.push({dataType: 3, timestamp: 0});
myData.push({dataType: 1, timestamp: 0});
myData.push({dataType: 2, timestamp: 0});
myData.push({dataType: 4, timestamp: 0});

What I need to do is add a new element to the associative array based 
on the dataType value: 

for the first element in my example, I'd like to add {series3 : value} 
to the associative array.

this array will be eventually used as a dataprovider for a PlotSeries.

thanks for any suggestions!

Christine






RE: [flexcoders] CRUD in XML

2007-01-08 Thread Tracy Spratt
Look at this example.

http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI
D=544

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of devisbalsemin
Sent: Saturday, January 06, 2007 7:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CRUD in XML

 

Hi,
can you help me to find some example how to implment Flex 2 CRUD with
xml file???
Thanks 
devis

 



RE: [flexcoders] indexed array of associative array: ideas to add elements to associative array?

2007-01-08 Thread Tracy Spratt
If I am understanding your question correctly:

myData[0].series3 = value;

 

Another way to think of an associative array is as a dynamic Object.

 

Do you mean you need to search the indexed array to find the element
where dataType == 3?

 

You'll just need to do that in a for loop.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tinkiknit
Sent: Monday, January 08, 2007 10:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] indexed array of associative array: ideas to add
elements to associative array?

 

Hello...

Stuck on another issue here. Searched the archive but I didn't really 
see anything that I could use using AS3.0. I am quite a newbie to 
AS3.0, not a newbie to programming, but I'm stumped since I haven't 
done much with associative arrays.

Here is what I have: indexed array of associative arrays.

example:

var myData: Array = new Array();

myData.push({dataType: 3, timestamp: 0});
myData.push({dataType: 1, timestamp: 0});
myData.push({dataType: 2, timestamp: 0});
myData.push({dataType: 4, timestamp: 0});

What I need to do is add a new element to the associative array based 
on the dataType value: 

for the first element in my example, I'd like to add {series3 : value} 
to the associative array.

this array will be eventually used as a dataprovider for a PlotSeries.

thanks for any suggestions!

Christine

 



[flexcoders] netstream.publish in flexbuilder 2

2007-01-08 Thread arturotremendoni
Hello all!

I have a (hopefully) minor problem in a flash media server - based 
Flex 2 app i'm writing.

According to the FMS livedocs, the way to stop publishing a netStream 
on a netConnection to a FMserver is to call the publish method with 
false as a parameter.

[ that is, netStream.publish(false) ]

however when i do that flex complains that i am trying to pass a 
boolean where it expects a string (which is what you'd pass if you 
wanted to _start_ publishing a stream) .

Is there a way to override compilation warning/errors? or is there a 
flex specific way of stopping  netStream.publish?

Thanks in advance
Arturo



[flexcoders] Re: CRUD in XML

2007-01-08 Thread devisbalsemin
tanks for your help but it's possible to write xml only with
ActionScript 
Thanks again for your help
devis

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

 Look at this example.
 
 http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI
 D=544
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of devisbalsemin
 Sent: Saturday, January 06, 2007 7:49 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] CRUD in XML
 
  
 
 Hi,
 can you help me to find some example how to implment Flex 2 CRUD with
 xml file???
 Thanks 
 devis





[flexcoders] Extending Darron Schall's FlashPaperLoader

2007-01-08 Thread Pablo Apanasionek
Has anyone extended Darron's FlashPaperLoader
(http://www.darronschall.com/weblog/archives/000249.cfm) to include the
complete list of IFlashPaper available methods (especially the
'showUIElement' one)?
 
If not, how can I compile the attached .fla/.as in the 'flash' folder in
the available source code?
 
Thanks in advance,
Pablo Gustavo Apanasionek


RE: [flexcoders] CRUD in XML

2007-01-08 Thread Jeff Hindman
Any chance of getting a CF solution (or hints) for this tool (way cool,
btw)? I have a client that could

use this immediately.

Thanks -

 

Jeff Hindman

Simon Software Solutions

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, January 08, 2007 10:57 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] CRUD in XML

 

Look at this example.

http://www.cflex.
http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=5
44 net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=544

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of devisbalsemin
Sent: Saturday, January 06, 2007 7:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] CRUD in XML

 

Hi,
can you help me to find some example how to implment Flex 2 CRUD with
xml file???
Thanks 
devis

 



[flexcoders] Re: flex 2.0.1 feedback from the trenches

2007-01-08 Thread fuad_kamal
btw every time I start Flex Builder 2.0.1 (mac) it opens a popup
saying New updates are availalbe. Do you want to review and install
them now?

the update is Eclipse Project Updates, after running the installer
there's a propmt to restart, after the restart again the popup appears
for the same update - endless loop.

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

 
 On 5 Jan 2007, at 21:05, fuad_kamal wrote:
  -installed without uninstalling the beta, still worked fine, and my
  flex projects were preserved although in the known issues it said they
  wouldn't
 I suspect it is the workspace that is incompatible rather than the  
 project files?
 
 On 5 Jan 2007, at 22:01, John Kirby wrote:
  Not very clear messages in debugging when taking a 2.0 project and  
  recompiling with 2.0.1.  I have two types of errors:
  1023: Incompatible override.
 
 I had this one - even if creating a new Flex Application with just  
 the Application tag. Basically it was because Flex 2.0.1 is picking  
 up the Flex 2 Beta workspace which is incompatible.
 
 The way I solved it was to rename the existing Flex Builder 2  
 folder to Flex Builder 2 Beta to accurately reflect the builder  
 that created it. On the Mac:
 
 /Users/username/Documents/Flex Builder 2
 
 becomes
 
 /Users/username/Documents/Flex Builder 2 Beta
 
 (Note: for Flex Builder 2 Beta to pick up it's workspace again, you  
 need to choose FileSwitch workspace... from the menu. Not that  
 you'll want to go back to the beta, once you have 2.0.1 running  
 properly.)
 
 Then when launching the 2.0.1 version, the Flex Builder 2 folder  
 will be re-created but this time containing a 2.0.1 compatible  
 workspace. You can then start creating projects, porting your old  
 source files as you see fit.
 
 hth
 
 
 Paul
 -- 
 [ http://www.creative-cognition.co.uk/ ]
 [ http://creacog.wordpress.com/ ]





[flexcoders] Flex 2.0.1 Modules

2007-01-08 Thread meenks25
Hi Friends,

I did a small PoC on Flex 2.0.1 modules and found it straight forward 
simple. You can create Flex project with mx:Module tag and then this 
project gets compiled into swf and then these compiled swfs can be 
invoked/loaded by any application at runtime. Loading and unloading is 
simple. Its analogous to dlls or .jar files, compiled swfs.Queries are 
welcome here.

Regards,

Meenakshi



RE: [flexcoders] Possible to use custom variables in flex library path?

2007-01-08 Thread Gordon Smith
Try setting APP_SRC in the General  Workspace  LInked Resources pane
of the Window  Preferences dialog. If you then add a SWC to a project's
Library Path, it should resolve to ${APP_SRC}\...

 

- GOrdon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Collin Peters
Sent: Monday, January 08, 2007 10:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Possible to use custom variables in flex library
path?

 

When adding a SWC to the Library Path in the project settings I
would like to be able to use a variable similar to the ${FRAMEWORKS}
variable. Our developers may have the code to the application in
different spots and it would be handy to define an Eclipse level
variable such as ${APP_SRC} to I can include a SWC the same way the
flex SWC's are included

I originally assumed that if you put the SWC within your project
structure it would use a relative path but that doesn't seem to be the
case. On my machine it shows up as AppName\src\assets\Cairngorm.swc
but on another developers machine it is just assets\Cairngorm.swc

-- 
Collin Peters
Lead Software Developer
InTouch Technology

 



[flexcoders] Re: mx:DataGrid variable columns

2007-01-08 Thread Doug Lowder
Hi Don,

If you remove the columns specification from the mxml of your 
DataGrid declaration, I believe the grid should show all fields of 
your dataprovider by default.  In that case, your DataGrid would 
look like the following:

mx:DataGrid editable=true 
 alternatingItemColors=[#ece8ff, #ff] id=cfgrid 
 width=100% height=190 alpha=1.0 /

If you need greater control over which specific fields are to be 
displayed in the grid, you can create the grid column objects 
dynamically in the getQuery_result() function and assign an array 
populated with those objects to the grid's columns property. That 
code would look something like the following:

var myColumns: Array = [];
// maybe in some sort of loop based on RO results
var myDGC: DataGridColumn = new DataGridColumn();
myDGC.dataField = someField;
myDGC.headerText = Some Header Text;
// ... set more properties as needed
myColumns.push(myDGC);
cfgrid.columns = myColumns;

You can probably find some examples of this on CFlex or other sites.

HTH,
Doug

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

 I have tables in the database that the user can change via a 
 ColdFusion application, therefore the columns in my Flex DataGrid 
 need to be dynamic. How do I modify the code below to dynamically 
 generate the gridcolumns?
 
 Thanks,
 Don Kerr
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute creationComplete=initApp()
   
   mx:Script
   ![CDATA[
   import mx.collections.ArrayCollection;
   import mx.rpc.events.ResultEvent;
   
   public function initApp():void
   {
   cfdata.getQuery();
   }
   
   public function getQuery_result(event:ResultEvent):void
   {
   cfgrid.dataProvider = event.result 
as 
 ArrayCollection;
   }
   
   ]]
   /mx:Script
   
   mx:RemoteObject 
   id=cfdata showBusyCursor=true 
   destination=ColdFusion
   source=forms.Simple
   mx:method name=getQuery result=getQuery_result
 (event) /
   /mx:RemoteObject
 
 
   mx:Panel label=Simple Grid width=100% height=100% 
 horizontalCenter=0
 
 
   mx:DataGrid editable=true 
 alternatingItemColors=[#ece8ff, #ff]  id=cfgrid 
width=100% 
 height=190 alpha=1.0
   mx:columns
   mx:DataGridColumn dataField=?? /
   /mx:columns
   /mx:DataGrid
   
   /mx:Panel
   
 /mx:Application





[flexcoders] Re: Ending an Effect

2007-01-08 Thread lar.drolet
Just a thought but how about capturing when the zoom effects ends
(EffectEnd or Event.COMPLETE) and then checking if the Mouse is over
the same object. 
If not then call the reverse right away.

LD

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

 Hi,
 
 I'm applying the zoom effect to multiple UIComponents on a canvas.
If I move the mouse quickly off one zoomed component and onto another,
sometimes the first will not reverse to its original size. I believe
this is because the isPlaying flag is true if *any* instances of the
effect are currently playing. Does anyone know a solution for this? I
want instance one to shrink back down to original size even if I move
quickly to instance 2.
 
 
 TIA
 
 Code:
 
 public function doZoom(event:MouseEvent):void {
 if (zoomAll.isPlaying) {
 zoomAll.reverse();
 }
 else {
 // If this is a ROLL_OUT event, play the effect
backwards. 
 // If this is a ROLL_OVER event, play the effect
forwards.
 zoomAll.play([event.target], event.type ==
MouseEvent.ROLL_OUT ? true : false);
if(event.type == rollOut){
  zoomAll.end();
}
//
 }
 }
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com





Re: [flexcoders] Getting rid of DateChooser navigation arrows

2007-01-08 Thread Brendan Meutzner

As ridiculously stupid as it was, I found that providing a blank skin for
the navigation buttons worked quite well :-)


mx:DateChooser xmlns:mx=http://www.adobe.com/2006/mxml;
   enabled=false alpha=1 showToday=false
   rollOverColor=#FF yearNavigationEnabled=false
   dayNames=[ 'S', 'M', 'T', 'W', 'T', 'F', 'S' ]
   firstDayOfWeek=0
   nextMonthDisabledSkin={InvisibleSkin}
nextMonthDownSkin={InvisibleSkin}
nextMonthOverSkin={InvisibleSkin}
nextMonthUpSkin={InvisibleSkin}
prevMonthDisabledSkin={InvisibleSkin}
prevMonthDownSkin={InvisibleSkin}
prevMonthOverSkin={InvisibleSkin}
prevMonthUpSkin={InvisibleSkin} disabledColor=#00

mx:Script
![CDATA[

[Embed(source=DateChooserSkins.swf, symbol=Invisible)]
   [Bindable]
   public var InvisibleSkin:Class;

]]
/mx:Script
/mx:DateChooser


The Invisible symbol is simply a blank movieclip symbol in Flash.  This
makes for nice calendar display component, where we don't want user input.

HTH,

Brendan



On 10/5/06, Jay Araujo [EMAIL PROTECTED] wrote:




How do I go about doing this?

I can think of:

1) Creating a DateChooserMonthArrowSkin class to render the Arrow
invisible ? ( Un-elegant ? )

2) Subclassing DateChooser component to overwrite all navigation
functionality ? ( Time consuming? )

Sorry to think this outloud but, why is it so hard for Adobe to come
up with a allowNavigation=false attribute?

Regards,

J.

 



[flexcoders]Flex Project Nature

2007-01-08 Thread dorkie dork from dorktown

I cannot find information on Flex Project nature anywhere. The company I
work for has an existing Java project that I am now doing parts of the front
end in Flex. I have been wondering if it's possible to combine Flex behavior
to the Java project and put mxml applications in certain directories of it
(/web) and deploy them both together when I noticed the Flex Project
Nature option in the context menu. In the case that I missed them in
obvious location please send a link.

dorkie hybrid java and flex dork from dorktown


RE: [flexcoders] Possible to use custom variables in flex library path?

2007-01-08 Thread Gordon Smith
... assuming that the SWC you add is actually inside APP_SRC.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, January 08, 2007 11:45 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Possible to use custom variables in flex
library path?

 

Try setting APP_SRC in the General  Workspace  LInked Resources pane
of the Window  Preferences dialog. If you then add a SWC to a project's
Library Path, it should resolve to ${APP_SRC}\...

 

- GOrdon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Collin Peters
Sent: Monday, January 08, 2007 10:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Possible to use custom variables in flex library
path?

 

When adding a SWC to the Library Path in the project settings I
would like to be able to use a variable similar to the ${FRAMEWORKS}
variable. Our developers may have the code to the application in
different spots and it would be handy to define an Eclipse level
variable such as ${APP_SRC} to I can include a SWC the same way the
flex SWC's are included

I originally assumed that if you put the SWC within your project
structure it would use a relative path but that doesn't seem to be the
case. On my machine it shows up as AppName\src\assets\Cairngorm.swc
but on another developers machine it is just assets\Cairngorm.swc

-- 
Collin Peters
Lead Software Developer
InTouch Technology

 



RE: [flexcoders] indexed array of associative array: ideas to add elements to associative array?

2007-01-08 Thread Gordon Smith
Tracy Spratt has answered your question in another post, but I just want
to mention that it would be more efficient to write

 

var myData:Array = [ { dataType: 3, timestamp: 0 },

  { dataType: 1, timestamp: 0 },

  { dataType: 2, timestamp: 0 },

  { dataType: 4, timestamp: 0 } ];

 

instead of a sequence of push() calls.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tinkiknit
Sent: Monday, January 08, 2007 7:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] indexed array of associative array: ideas to add
elements to associative array?

 

Hello...

Stuck on another issue here. Searched the archive but I didn't really 
see anything that I could use using AS3.0. I am quite a newbie to 
AS3.0, not a newbie to programming, but I'm stumped since I haven't 
done much with associative arrays.

Here is what I have: indexed array of associative arrays.

example:

var myData: Array = new Array();

myData.push({dataType: 3, timestamp: 0});
myData.push({dataType: 1, timestamp: 0});
myData.push({dataType: 2, timestamp: 0});
myData.push({dataType: 4, timestamp: 0});

What I need to do is add a new element to the associative array based 
on the dataType value: 

for the first element in my example, I'd like to add {series3 : value} 
to the associative array.

this array will be eventually used as a dataprovider for a PlotSeries.

thanks for any suggestions!

Christine

 



[flexcoders] Mac 2.01 not Accepting 2.0 Serial Numbers

2007-01-08 Thread Ethan Miller
Per the docs on the Adobe site, installed the complete trial version  
of 2.01. Onlaunch it will not accept of my numerous 2.0 (windows)  
serial numbers. Help, I'm dead in the water at the moment...

cheers, ethan


RE: [flexcoders] flex2ant

2007-01-08 Thread Dimitrios Gianninas
I do everything in an ant build script. The compiler used in Flex Builder is 
the same u would use via ant, no difference. Actually I find it slower in FB.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sascha
Sent: Monday, January 08, 2007 12:27 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] flex2ant



Actually I would like to use Ant in Eclipse running with Flex2 PlugIn to build 
my projects! For AS2 is always used AS2Ant with FDT and MTASC and it was the 
best!

Unfortunately things look different for Flex Builder. Building the project with 
an Ant task is slower than using Flex Builder and 'Build Automatically' is 
necessary for compile time error checking (while MTASC did this automatically 
on-the-fly) but it would then also always build when using the Ant task.

Does anyone know how to get this working:

Having an Ant build.xml that does some project preparing tasks (i.e. increasing 
build number and store in an auto generated AppInfo class) and then call the 
Flex builder build process from Ant. I'm not Ant magican but is this possible?

Sascha



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lance 
Linder
Sent: Monday, 08 January, 2007 03:37
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] flex2ant

Very nice work!

I thought about doing something like this before and ended up taking a bit of a 
different approach. What I did was create a task that can read the flex project 
files and from these use mxmlc and compc to build the projects. What I figured 
is that if Flex Builder is creating the project files for me and can compile 
off of these that I would mimic the same thing! If people are interested in 
using this approach I will look at hosting it somewhere. This is however an 
NAnt task so I suspect there will be less people interested in this.

Lance

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flex2ant
Sent: Friday, October 27, 2006 7:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex2ant

Hi list,

Now Flash player 9 (beta) for Linux has been released we can finally
develop Flex 2 and AS3 apps on Linux. I've been putting in a lof of
effort in the past week to create flex2ant.

With flex2ant you can develop Flex2/AS3 apps from within Eclipse. All
you need is the Flex 2 SDK, Eclipse and flex2ant and off you go.

If you are interessed in this type of development then please go over
to http://www.flex2ant.org http://www.flex2ant.org  and download the latest 
release.

regards,
Luke

 

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

AVIS IMPORTANT
--
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.



[flexcoders] How to include a Vertical Horizontal gap in a DataGrid?

2007-01-08 Thread zzwi89
Hi,

I would like to include a vertical and horizontal gap in my DataGrid
so that the cells do not touch each other. I am eventually going to
write custom renderers for the cells, but my first goal is to simply
space them out by a few pixels. Does anyone know how to do this?



Re: [flexcoders] Is it possible to have an invisible component?

2007-01-08 Thread David Harris

Hi Tracy,

Thank you.

When I was testing I was always adding my AS class as a child of a UI
component, and was getting the error: Component declarations are not
allowed here. (Note: visual children must implement mx.core.IUIComponent)

So, you are correct saying that it needs to be at the top level...

Thanks again!

On 1/9/07, Tracy Spratt [EMAIL PROTECTED] wrote:


   Absolutely.  You can instantiate any custom AS class  using a tag.  The
AS class need not extend anything, but often you will want event dispatching
and such.



The tag will probably have to be at the top-level, since the standard
containers will not be set up to allow it as a child.



Tracy


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *David Harris
*Sent:* Sunday, January 07, 2007 8:41 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Is it possible to have an invisible component?



Does anyone know if the is a simple way to have a namespace:Tag /
that has no visible state?

I have an AS class that I would like to call namespace:MyASClass /...

Cheers,

David

 



[flexcoders] Re: flex 2.0.1 feedback from the trenches

2007-01-08 Thread fuad_kamal
I'm NOT running CF but I did have this strange error after migrating
to 2.0.1:

The services configuration includes a channel-definition
'my-polling-amf' that has an endpoint with a context_root token but a
context root has not been defined...

and the solution by tomlane for a similiar error for CF users resolved
that,

http://weblogs.macromedia.com/flexteam/archives/2007/01/migrating_to_20.cfm

so that now I'm also able to see the incompatible override errors. 
Now I understand what's meant by 'incompatible workspace'...need to
re-create the projects in the workspace from scratch...after removing
the below mentioned Flex Builder 2 folder from the Documents folder.

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

 
 On 5 Jan 2007, at 21:05, fuad_kamal wrote:
  -installed without uninstalling the beta, still worked fine, and my
  flex projects were preserved although in the known issues it said they
  wouldn't
 I suspect it is the workspace that is incompatible rather than the  
 project files?
 
 On 5 Jan 2007, at 22:01, John Kirby wrote:
  Not very clear messages in debugging when taking a 2.0 project and  
  recompiling with 2.0.1.  I have two types of errors:
  1023: Incompatible override.
 
 I had this one - even if creating a new Flex Application with just  
 the Application tag. Basically it was because Flex 2.0.1 is picking  
 up the Flex 2 Beta workspace which is incompatible.
 
 The way I solved it was to rename the existing Flex Builder 2  
 folder to Flex Builder 2 Beta to accurately reflect the builder  
 that created it. On the Mac:
 
 /Users/username/Documents/Flex Builder 2
 
 becomes
 
 /Users/username/Documents/Flex Builder 2 Beta
 
 (Note: for Flex Builder 2 Beta to pick up it's workspace again, you  
 need to choose FileSwitch workspace... from the menu. Not that  
 you'll want to go back to the beta, once you have 2.0.1 running  
 properly.)
 
 Then when launching the 2.0.1 version, the Flex Builder 2 folder  
 will be re-created but this time containing a 2.0.1 compatible  
 workspace. You can then start creating projects, porting your old  
 source files as you see fit.
 
 hth
 
 
 Paul
 -- 
 [ http://www.creative-cognition.co.uk/ ]
 [ http://creacog.wordpress.com/ ]





Re: [flexcoders] Mac 2.01 not Accepting 2.0 Serial Numbers

2007-01-08 Thread Simeon Bateman

the faq on the adobe site has been updated.  You need to call adobe and
request that your pc serial number be exchanged for a mac version.

This will allow use your license on your mac.
http://www.adobe.com/products/flex/productinfo/faq/#item-39

Good Luck.

simeon


On 1/8/07, Ethan Miller [EMAIL PROTECTED] wrote:


  Per the docs on the Adobe site, installed the complete trial version
of 2.01. Onlaunch it will not accept of my numerous 2.0 (windows)
serial numbers. Help, I'm dead in the water at the moment...

cheers, ethan
 



[flexcoders] Re: which fds to use on Max OSX?

2007-01-08 Thread jrunrandy
I have to point out that OS X isn't a supported platform for FDS, but 
it's a well-behaved J2EE app, so you shouldn't have much trouble for 
development purposes.

I downloaded the AIX installer, which is a ZIP file, renamed it to 
have a .JAR extension and followed the java -jar instructions. It 
beats me why it has a ZIP extension; I'll look into it and change the 
installation instructions, if necessary.

HTH
Randy Nielsen
Flex Documentation Manager
Adobe Systems, Inc.



[flexcoders] Resizing Constraint-Based Layouts

2007-01-08 Thread Ethan Miller
Greetings -

I've asked about this before to no effect; let's try again =) Most of  
my layouts use constraints, that is, left=n top=n, etc. In these  
layouts, I'd like to add minimize and maximize controls which would  
expand and contract the constraint-defined proportions of various  
screen areas.

It would seem to me that I should be able to simply change the value  
of  left, top etc., but his doesn't appear to work.

Any ideas?

cheers, ethan


Re: [flexcoders] Re: Compiling modules

2007-01-08 Thread John Kirby

Thanks for the examples.

Question... if you are passing parameters to a module I assume your url 
syntax is the same as a SWFLoader (myswf.swf?foo=bar) ... but module has 
no parameter property?  How do access passed parameters to a module?


phillips1021 said the following:


See:
http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-Modules-In-Flex-201 
http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-Modules-In-Flex-201


for a simple example.

 


--
/Whether you think that you can, or that you can't, you are usually right./
- Henry Ford


Re: [flexcoders] Re: Flex2 - Where to start

2007-01-08 Thread DannyT

Hi Mark,

One of my first languages was VB/VBA with which I did windows applications
and classic ASP development (some of which I still have to delve into
thesedays). I first started learning OOP with ActionScript2.0 and .net at
the same time. Whilst the learning curve is pretty daunting and frustrating
at first (who wants to go from being guru to noob?) it is definitely well
worth the effort and will certainly help you develop and enrich your career
plus make you more employable.

Another good book for OOP is a new book from the O'Reilly Head First series
called Object Oriented Analysis and
Designhttp://www.amazon.com/Head-First-Object-Oriented-Analysis-Design/dp/0596008678.
Learn OOP it will make you a better programmer and earn you more money than
traditional VB and ASP ;).

Dan


On 08/01/07, oneproofdk [EMAIL PROTECTED] wrote:


  Thanks for all your great reply's.

My prior programming experiences is primarily programming VBscript, for
ASP pages and standalone VBscripting. I've been programming VBscript for
perhaps 4-5 years now, but never did make the jump to OOP - PHP or .NET
at any time before now. (If it works - dont fix it, was my idea)

I'm looking at Flex2 to develop new and better UI for my web
applications. I am working at a publishing company that makes a magazine
10 times a year. I've made a web application where the magazine is
stitched together, using HTML, ASP and javascript (lowend dhtml). It
communicates with several database servers, (mysql and MS SQL) pulling
data from various sources (MediaBank DAM and MS Dynamics (Navision))
allowing the users to place articles and insertions on each page,
finally creating the entire magazine in a webbrowser - very cool indeed.
Now we are looking to create a web app that has some drag'n'drop
features, perhaps even some push technology, so other users will get
updated real-time if a page gets content placed. And then ofcourse all
the nice UI effects that Flex offers, transitions, zoom, etc.

So basicly all the backend stuff, making XML services (propably with ASP
though) and database query's is not a problem at all - got that covered
for years.

I've been through the Flex2 - Getting started making all the examples
- working and all. Have been fiddling around with different properties
etc. to see what influences what. I feel pretty comfotable in the Flex2
enviroment. It's the whole classes and OOP that throw's me off. I hate
to write code that dont make sense to me or that I dont understand -
very frustrating.

I live (and work) in Denmark - not sure if there's any local training in
Flex2, I dont think so, but I'll investigate today.

I'll have alook at roundpeg and Lynda also, to see what they can offer.

Think I'll go get a copy of Essential Actionscript 2.0 essential
training or similar, as suggested.

Thanks for your help and pointers.

Best wishes,
Mark


--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, greg h
[EMAIL PROTECTED] wrote:

 Mark,

 I am glad to see that you are sticking with getting mastery of Flex 2.
In
 time you will see that it is definately worth the effort :-)

 Following below are pointers and links to a startguide for the true
 newbie.

 Before getting to that, I want to echo Danny's post Please do provide
us
 more detail about what your prior programming, development and design
 experience may be.

 Also, please tell us what successes you have had with Flex 2 thus far?
For
 instance, have you gone through the Lessons in the Getting Started
with
 Flex 2 documentation? (Such as Create Your First Application:
 http://livedocs.macromedia.com/flex/2/docs/0065.html )

 Also, in many cases Flex is the front end to complex back end
computer
 architectures. And in most full blown production applications Flex is
only
 one part in what frequently is at minimum a 3 tier architecture:
 1) Flex UI
 2) Application Server middle tier using Java or PHP or ColdFusion, or
.NET,
 etc.
 3) Database

 Are you skilled in any application servers or databases? (Each tier
is a
 specialty unto itself. In team environments, it is not uncommon for
 individual developers to work supporting just one tier.)

 Also, what type of applications do you anticipate building? If you
let us
 know, there may be working sample applications applications that we
can
 point you to.

 Regarding training, I concur with Simeon's advice. There is a huge
 advantage to having a live instructor. You mention that after reading
the
 docs and the Training from the Sorce book your mind is a bit blown
and
 way out of my league. The benefits of a live instructor is that:
a) they
 are the living book; and, b) they are dynamic. You can ask questions
and
 the instructor can summarize the broad and complex body of knowledge
in ways
 that you you may find easier to grasp. Or, they may be able to
provide you
 answers even before are able to verbalize the question ;-)

 You can find the list of instructor led courses here:
 

[flexcoders] errors 1144 and 1023

2007-01-08 Thread Mark McCray
Hey there,
after updating to version 2.0.1 on macosx of flex builder...

I'm getting errors 1144 and 1023. And if i double click, it doesn't  
tell me what file.

Severity and DescriptionPathResourceLocation
Creation Time   Id
1144: Interface method create in namespace mx.core:IFlexModuleFactory  
is implemented with an incompatible signature in class  
_graphicstest_mx_managers_SystemManager.Network Control Panel   
line  
7   1168291233101   865


Now... it's saying Network Control Panel but not which file.  
Network control panel is a project. there are no files called Network  
Control Panel in my project. the main app file is called index.mxml

Has anyone seen this?
Thanks,
mark



RE: [flexcoders] Resizing Constraint-Based Layouts

2007-01-08 Thread Gordon Smith
Constraints like left, top, etc. are styles, so

 

setStyle(left, 10);

 

should change them.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Monday, January 08, 2007 1:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Resizing Constraint-Based Layouts

 

Greetings -

I've asked about this before to no effect; let's try again =) Most of 
my layouts use constraints, that is, left=n top=n, etc. In these 
layouts, I'd like to add minimize and maximize controls which would 
expand and contract the constraint-defined proportions of various 
screen areas.

It would seem to me that I should be able to simply change the value 
of left, top etc., but his doesn't appear to work.

Any ideas?

cheers, ethan

 



RE: [flexcoders] Re: Compiling modules

2007-01-08 Thread Roger Gonzalez
I can't think of any reason why you would want to do this.
 
Modules are class factories, not instances.
 
You will create an instance of the class baked into the module, and then
the application can pass those parameters to the instance.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of John Kirby
Sent: Monday, January 08, 2007 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Compiling modules



Thanks for the examples.

Question... if you are passing parameters to a module I assume
your url syntax is the same as a SWFLoader (myswf.swf?foo=bar) ... but
module has no parameter property?  How do access passed parameters to a
module?

phillips1021 said the following: 

See: 

http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-M
odules-In-Flex-201
http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-
Modules-In-Flex-201 

for a simple example.




-- 
Whether you think that you can, or that you can't, you are
usually right.
 - Henry Ford 




 



[flexcoders] Where are all the 3rd party components

2007-01-08 Thread boy_trike
I am surprised that while Flex has been out for quite a while there are no 
people selling:
* Additional Components
* Themes and StyleSheets
et. al.

I know when I started with Delphi, there were many companies that made a nice 
profit 
selling additional components.  Where is this community with Flex?  I can think 
of dozens 
of visual components that I would be happy to purchase.  From reading this 
newsgroup 
there seem to be at least 2 types of users
* Business application developer (like me!) who want / need and can justify the 
cost for 
this because we have a customer who is paying $$$ for a rich solution
* Opps / AS3 and Flex/Flash experts who live, love and embrace extending and 
enhancing 
existing components , themes, skins

Where are all of the 2's

Bruce

P.S.  and if there are sites that have these, where is the list of them?






RE: [flexcoders] Re: Compiling modules

2007-01-08 Thread Gordon Smith
I don't think you're expected to pass parameters to a module. You're
expected to call methods that it exposes.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Kirby
Sent: Monday, January 08, 2007 12:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Compiling modules

 

Thanks for the examples.

Question... if you are passing parameters to a module I assume your url
syntax is the same as a SWFLoader (myswf.swf?foo=bar) ... but module has
no parameter property?  How do access passed parameters to a module?

phillips1021 said the following: 

See: 

http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-M
odules-In-Flex-201
http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of-Using-
Modules-In-Flex-201 

for a simple example.

 

-- 
Whether you think that you can, or that you can't, you are usually
right.
 - Henry Ford 

 



[flexcoders] Re: FLV Thumbnail

2007-01-08 Thread john_69_11
--- In flexcoders@yahoogroups.com, Andrew D. Goodfellow 
Ya, I had heard about that.  I was trying to offload some of the
processing to the user by doing it in AS.  I have found that unless
you are getting the FLV from a server you control you will run into
crossdomain issues when trying to process it in AS.  It looks like
I'll be following suit and using ffmpeg as well.  Do you have any
suggestions/links on how to set it up?  I want to process remote flvs
for now and eventually using it to convert avi/other video formats to flv.

Thanks for the help,

-John



[EMAIL PROTECTED] wrote:

 John,
 
 I don't do it in AS. I always process the flv on the fly (with
caching of
 course) with an open source tool called ffmpeg (
 http://sourceforge.net/projects/ffmpeg/) and load the thumbnail via
url just
 like an external image. It's tricky to get it working, but once you
do it
 works wonderfully.
 
 -Andy
 
 On 1/8/07, john_69_11 [EMAIL PROTECTED] wrote:
 
I'm trying to generate an image thumbnail of an FLV and can't
seem to
  find any way to do it. Only thing that people seem to be doing is
  creating a player for the flv, then pausing and stopping the stream -
  I want to grab an image of the one of the flv frames. I found a piece
  of code here:
 
  http://www.flash-db.com/Tutorials/snapshot/snapshot.php?page=2
 
  which i tried to implement with code like this in onFrameEnter:
 
  //Here we will copy pixels data
  pixels = new Array()
  //Create a new BitmapData
  snap = new BitmapData(_video.width, _video.height);
  //Matrix to scale the new image
  var myMatrix:Matrix = new Matrix();
  myMatrix.scale(0.5, 0.5)
  //Copy video image
  snap.draw(_video, myMatrix);
 
  var w:Number = snap.width, tmp
  var h:Number = snap.height
  var a:Number = 0
  for(var b=0; b=h; b++){
  tmp = snap.getPixel32(a, b).toString(16)
  trace(tmp)
  pixels.push(tmp.substr(1))
  }
  a++
  if(aw){ //Finish capturing
 
  //sendData(pixels, h, w)
  //free memory
  snap.dispose()
 
  }
 
  Now, it seems like the pixels are being captured, but I'm not certian
  and I can't seem to display the captured image at all. I've tried
  using an image object and a Bitmap set to the BitmapData (variable
  snap) but it doesn't display. Anyone know of how to make this work,
  or a better way?
 
  Thanks,
 
  John
 
   
 





Re: [flexcoders] Re: Flex and Maven2 managed project

2007-01-08 Thread Nick Sophinos

I despise Maven.

I know that this is a bit provocative, but my experience with those who
utterly abuse it to the point where the project is *anything but manageble*
has led me to this conclusion.  I am always open to change, though.

Thoughts, anyone?


- Nick

On 1/8/07, Shailesh Mangal [EMAIL PROTECTED] wrote:


  I am planning to use Maven for my new flex project. Wondering if
someone can share their experience of using maven folder structure,
POM file, todo and not todo items, limitations etc

-sxm

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Oliver
Lietz [EMAIL PROTECTED] wrote:

 Am Montag, 18. Dezember 2006 08:19 schrieb Aldo Bucchi:
  Yeah Maven!,
 
  I'm a little surprised on the apparent low interest in the flex-maven
  front.

 I'm not surprised ;). Most people will start with a shiny frontend
which sells
 the application. Project (build/change/livecycle) management is not
as sexy
 as eye candy for most of them.

  I am also flirting with the idea of building a plugin, but not
  yet... not yet... tomorrow perhaps

 :), same here

  I would really like to hear about Adobe's plans with respect to Maven.
  It would be a very good way to make things easier for new developers (
  by leveraging something that's already built for you ) and to make
  things more attractive to veterans.
  Really, maven is one of those little toys I really really love.
 
  My wishlist on this one ( thinking java here ):
 
  * mavenized standardization of folder structures for flex applications
  ( all flavors: standalone, fds, etc )
  ** src/main/flex, src/test/flex?

 Did that already for my projects without integrating testing. Works
fine -
 same layout (SVN+MVN) for Flex and Java projects.

  * maven plugins:
  ** flexunit ( or asunit )
  ** mxmlc
  ** asdoc
  *** including complex features (eg. auto compile and deploy examples)
  * definitions and workflow for continuous integration deployoment (
  cruise control and continuum hopefully )
 
  and then some extra would-be-nice-to-have plugins:
  * auto generate fds stubs/skeletons ( vos, assemblers, dataproviders,
  dataservices, etc ) for hibernate, JDO, other ORMs
  * springified fds
  ...?

 Nice, indeed. I hope someone at Adobe is already working on
Mavenization of
 Flex.

 O.


 



[flexcoders] Re: indexed array of associative array: ideas to add elements to associative array?

2007-01-08 Thread tinkiknit
Thanks Tracy! doing the myData[0].series3 = value  worked!  on to the 
next migration issue...:)

Christine
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 If I am understanding your question correctly:
 
 myData[0].series3 = value;
 
  
 
 Another way to think of an associative array is as a dynamic Object.
 
  
 
 Do you mean you need to search the indexed array to find the element
 where dataType == 3?
 
  
 
 You'll just need to do that in a for loop.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of tinkiknit
 Sent: Monday, January 08, 2007 10:29 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] indexed array of associative array: ideas to 
add
 elements to associative array?
 
  
 
 Hello...
 
 Stuck on another issue here. Searched the archive but I didn't 
really 
 see anything that I could use using AS3.0. I am quite a newbie to 
 AS3.0, not a newbie to programming, but I'm stumped since I haven't 
 done much with associative arrays.
 
 Here is what I have: indexed array of associative arrays.
 
 example:
 
 var myData: Array = new Array();
 
 myData.push({dataType: 3, timestamp: 0});
 myData.push({dataType: 1, timestamp: 0});
 myData.push({dataType: 2, timestamp: 0});
 myData.push({dataType: 4, timestamp: 0});
 
 What I need to do is add a new element to the associative array 
based 
 on the dataType value: 
 
 for the first element in my example, I'd like to add {series3 : 
value} 
 to the associative array.
 
 this array will be eventually used as a dataprovider for a 
PlotSeries.
 
 thanks for any suggestions!
 
 Christine





[flexcoders] Reversing data order in HLOCChart

2007-01-08 Thread Chris MacGregor
I'm just getting ramped up with Flash in order to build some investing
related tools for a client. One of the issues that I'm having trouble
digging up information on is handling the order of data. I'm still
slogging my way through the documentation for Flex and my knowledge of
the terminology is a little sketchy, so forgive me if this is
something that should be right in front of my face.

When I request a range of stock data to build a HLOCChart it comes in
in reverse chronological order, newest date first. I want to display
the data in chronological order with Jan 1, 2006 on the left and Dec
31 2006 on the right. How do I go about processing the order once I've
got the XML back?

Thanks kindly for any pointers.

CHris



[flexcoders] AS3 decompiler

2007-01-08 Thread Patrick Mineault
If you guys haven't seen this yet:

http://www.5etdemi.com/blog/archives/2007/01/as3-decompiler/

Patrick


Re: [flexcoders] Resizing Constraint-Based Layouts

2007-01-08 Thread Ethan Miller
That works, though setting it directly seems to preclude the use of  
effects. Any way to do this using resize effects?

cheers, ethan


 Constraints like left, top, etc. are styles, so



 setStyle(left, 10);



 should change them.



 - Gordon



 From: flexcoders@yahoogroups.com  
 [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller
 Sent: Monday, January 08, 2007 1:11 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Resizing Constraint-Based Layouts



 Greetings -

 I've asked about this before to no effect; let's try again =) Most of
 my layouts use constraints, that is, left=n top=n, etc. In these
 layouts, I'd like to add minimize and maximize controls which would
 expand and contract the constraint-defined proportions of various
 screen areas.

 It would seem to me that I should be able to simply change the value
 of left, top etc., but his doesn't appear to work.

 Any ideas?

 cheers, ethan



 



[flexcoders] Upgrade to 2.01 causes an exception

2007-01-08 Thread Mark Piller
Here's an exception I get when I tried to access one of my apps. It
used to work prior to upgrade. If anyone has any ideas, please let me
know.

Thanks,
Mark

ArgumentError: Error #2082: Connect failed because the object is
already connected.
at flash.net::LocalConnection/connect()
at mx.managers::HistoryManagerImpl$iinit()
at mx.managers::HistoryManagerImpl$/getInstance()
at mx.core::Singleton$/getInstance()
at mx.managers::HistoryManager$/get ::impl()
at mx.managers::HistoryManager$/unregister()
at mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()
at
mx.containers::TabNavigator/mx.containers:TabNavigator::commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/::validateProperties()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()



Re: [flexcoders] Re: How can we achieve this effect in flex??? Any Ideas???

2007-01-08 Thread Andrew D. Goodfellow

Omkar,

Have you made any progress with this? Maybe I missed it? Otherwise I'm going
to try to create it myself.

-Andy

On 10/3/06, omkarjoe [EMAIL PROTECTED] wrote:


  Thanks Brian, That are really valuable inputs. I am thinking of
creating that effect as my RnD pro. As soon as I finish it I'll post
it over here.

Omkar

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brian
Dunphy [EMAIL PROTECTED]
wrote:

 Not sure this will get you the effect you're looking for, but I
have a
 feeling that Quasimondo's aqua glass effect would be extremely
useful in a
 water/ripple effect:

 http://www.quasimondo.com/archives/000561.php

 Also, the 3d flip effect mentioned in the previous post can be
found here
 (although not true 3d, it looks really close):

 http://www.reflektions.com/miniml/template_permalink.asp?id=227

 (Note: this is for ActionScript 2 I believe, and it would take
some work to
 port to Flex 2 / AS3 likely).

 If any of you do achieve those effects, it would be much
appreciated if you
 shared them with the community!

 Cheers,

 Brian

 On 10/2/06, greg h [EMAIL PROTECTED] wrote:
 
  Not to hijack omkar's thread regarding the ripple effect,
but ...
 
  I also love the metaphor of flipping the widgets to expose their
customize
  controls (which is also demonstrated in the video). It is a
nice UI
  metaphor ... assuming we can make it sufficiently discoverable
and get
  users conditioned to look for it.
 
  Regarding Igor's reference to waterEffect in the Gskinner
blog, can
  anyone provide the link? I used google to search Grant's site
and the best
  I could find is a reference in the outline from last
year's Flash 8
 
Workshophttp://www.gskinner.com/blog/archives/2005/11/flash_8_bootca
m.html
  :
  Demo: Water ripple effect with perlin noise
 
  Thanks omkar and Igor!
 
  g
 
  On 10/2/06, Igor Costa [EMAIL PROTECTED] wrote:
  
   Ahh sorry.
  
   I just right now undrestood your request.
  
   It's really amazing effect. Just see the same at waterEffect
in the
   Gskinner blog.
  
   regards
   --
   
   Igor Costa
   www.igorcosta.com
  
   On 10/2/06, omkarjoe  [EMAIL PROTECTED] wrote:

 Hi All,

 Plz go thru the following link
 http://www.apple.com/macosx/theater/dashboard.html

 When user drops a widget in to the dashboard, It gives a
watery
 effect
 to the screen. Would anyone one has any ideas of
implementing it in
 Flex... I really loved that effect...

 Thanks in Advance

   
   
   
   
 
 



 --
 Brian Dunphy


 



  1   2   >