[flexcoders] Putting a Rectangle around a "selected" line in a List component

2007-02-06 Thread Michael
I'm fairly new at this and am trying to extend a List component so 
that a rectangle will appear round the selected line (and around the 
roll-over) instead of a solid color.

I'm assuming that the focusRect property that is inherited from the 
InteractiveObject is the one I need to deal with, but I can't seem to 
figure out how to use it.

Are there any examples out there that I could see??



[flexcoders] Re: Putting a Rectangle around a "selected" line in a List component

2007-02-08 Thread Michael
I found the solution.

I had to override the ListBase class in my List compnent extention, 
not the List class itself as it was just overriding the ListBase 
class drawHighlightIndicator() function.

//
// Override drawHighlightIndicator() function from ListBase
//
/** Import ListBase, IListItemRenderer, Sprite and Graphics classes
* to override drawHighlightIndicator() function in ListBase
*/
  override protected function drawHighlightIndicator(
  indicator:Sprite, x:Number, y:Number,
  width:Number, height:Number, color:uint,
  itemRenderer:IListItemRenderer):void
  {
  var g:Graphics = Sprite(indicator).graphics;
  g.clear();
  //g.beginFill(color1); //** no fill on rollover highlight
  g.lineStyle(3,color2,1);//add lineStyle to add 3 pt. border
  g.drawRect(0, 01, width, height);
  //g.endFill();

  indicator.x = x;
  indicator.y = y;
  }
//


--- In flexcoders@yahoogroups.com, "Michael" <[EMAIL PROTECTED]> wrote:
>
> I'm fairly new at this and am trying to extend a List component so 
> that a rectangle will appear round the selected line (and around 
the 
> roll-over) instead of a solid color.
> 
> I'm assuming that the focusRect property that is inherited from 
the 
> InteractiveObject is the one I need to deal with, but I can't seem 
to 
> figure out how to use it.
> 
> Are there any examples out there that I could see??
>




[flexcoders] AIR NativeWindow Event.preventDefault() unexpected behavior

2008-09-13 Thread Michael
I'm attempting to intercept the NativeWindowBoundsEvent dispatched
whenever a NativeWindow is dragged in AIR, and am running into a bit
of a problem. If I add an Event listener for
NativeWindowBoundsEvent.MOVING to the initial application nativeWindow
and call preventDefault(), the window behaves as expected and does not
allow itself to be dragged.

If instead I create a new NativeWindow and apply the event listener to
that, the event fires as normal however preventDefault() has no effect.

Now, I've tried adjusting the event listener parameters to give the
listener a higher priority, however even then it's not working. Has
anyone else run into this, and if so, what's the solution?

Michael


===


http://www.adobe.com/2006/mxml";
layout="absolute">








Re: [ITCENTER] Lotus Notes Client 8

2008-09-15 Thread Michael
ga beda jauh kok...

On Wed, Sep 10, 2008 at 5:29 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Dear,
> Rekans, adakah yang udah nyoba Lotus Notes Client 8 .. Sementara saya masih
> pakai yang versi 7. Bagaimana rasanya , apakah banyak perubahan yg menarik
> dan sangat membantu. Rencana mau upgrade cuma blm dpt software. Terima kasih
> untuk responnya ..
>
> Wassalam ..
> Best Regards,
> Andi Puspita
>
> Sent from my BlackBerry(R) powered by Sinyal Kuat INDOSAT
>
> 
>
> --
> www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia
> Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED]
>
> Yahoo! Groups Links
>
>
>
>


[Non-text portions of this message have been removed]




-- 
www.itcenter.or.id - Komunitas Teknologi Informasi Indonesia 
Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED] 

Yahoo! Groups Links

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

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:







[flexcoders] Tile with custom component and AmfPhp
quantum_ohm


[flexcoders] Re: Tile with custom component and AmfPhp
quantum_ohm


Re: [flexcoders] Re: Tile with custom component and AmfPhp
Haykel BEN JEMIA


[flexcoders] Re: Tile with custom component and AmfPhp
quantum_ohm


[flexcoders] Re: Tile with custom component and AmfPhp
quantum_ohm



Re: [flexcoders] Re: Tile with custom component and AmfPhp
Haykel BEN JEMIA
 


[flexcoders] Re: Tile with custom component and AmfPhp
quantum_ohm




[flexcoders] Re: Tile with custom component and AmfPhp
quantum_ohm













 






  
  





Reply via email to



  
  





 
 








 




<!--
google_ad_client = "pub-7266757337600734";
google_alternate_ad_url = "http://www.mail-archive.com/blank.png";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel = "8427791634";
google_color_border = "FF";
google_color_bg = "FF";
google_color_link = "006792";
google_color_url = "006792";
google_color_text = "00";
//-->








Re: [ITCENTER] Lotus Notes Client 8
Michael
 


 






  
  





Reply via email to



  
  





 
 







[flexcoders] Digital Signature

2007-11-15 Thread Michael
Java applets and now AIR apps both have the concept of a digital signature. The 
loader of the 
apps are able to verify that the apps have not been corrupted. Is there 
anything similar for 
SWFs? Can the Flash player verify a digital signature?



[flexcoders] Accessing HTTP Request Headers: Cookies, Referrer, User Agent, etc.

2007-08-28 Thread Michael
When you embed a SWF, the HTTP request includes lots of headers which
include the cookies for the domain that your SWF belongs to, the
referrer (should be the url of the page that the SWF is embedded in),
the user-agent, etc. Is this exposed anywhere, like mx.core.Application,
etc. ?

Is it not exposed because of security? Is there somewhere to affect this
through security policy?

It actually seems like if it is NOT included it would cause more
security problems than it would solve. A lot of sites use cookies for
authentication for example, and if cookies aren't there then a different
(maybe less secure) method must be used to propagate security.




[flexcoders] Re: Library SWC in Flash CS3

2007-08-30 Thread Michael
I tried to do the same thing. I had a library SWC that could be used
by Flex projects easily. I could not get it to work with Flash CS3
projects. I tried compiling it into a SWC in Flash CS3, using their
convoluted process, but could not get any .fla file to import from the
SWC and compile. I wound up just using the AS source code for those
projects. I don't know if there's a solution or not, but if there is,
I could not find it in time. Hope you have better luck.

-- Michael



--- In flexcoders@yahoogroups.com, "Derek Vadneau" <[EMAIL PROTECTED]> wrote:
>
> I've asked this a couple of times in Flexcoders and Flashcoders now
> with no response.
> 
> Am I right in assuming the lack of responses is due to this not being
> possible? Or is it that no one has tried this, or is interested in
> this?
> 
> Here's the scenario:
> 
> I have a Library project that I've built in Flex that is strictly AS3
> - no Flex SDK dependencies.
> 
> I can happily use this in an ActionScript-only project or a Flex
> project in Flex Builder without issue.
> 
> How do I use this in Flash CS3?
> 
> If I put my SWC in the classpath for the FLA my code compiles against
> the library code, but the code isn't actually compiled into the SWF.
> 
> Is this possible?
> 
> -- 
> 
> Derek Vadneau
>




[flexcoders] Re: File upload compression (esp. gzip)?

2007-09-19 Thread Michael
You could probably do an AIR app that could do this. You need to be
able to read the bytes of the file inside your app, that's a no-go for
a SWF running inside somebody's browser (unless they give you special
permissions, and even then there's no controls available for browsing
to the file, etc.)

>From AIR, you have flash.filesystem.* package. You can browse local
file system and open up the file as FileStream. Then you can use any
algorithm you want to alter the bytes before sending them to the server.

-- Michael

--- In flexcoders@yahoogroups.com, "fgamador" <[EMAIL PROTECTED]> wrote:
>
> Is it possible to write a Flash/Flex/AIR app that compresses large
> files during upload (ideally using gzip)?  As far as I can tell,
> FileReference (and URLRequest) do not support this.  Is there any
> other way?
> 
> Thanks in advance for any tips.
>




[flexcoders] Re: Flex 3 Beta (+ AIR) and Flex 2 plugin

2007-09-20 Thread Michael
>From the Flex 3 page
<http://labs.adobe.com/technologies/flex/flexbuilder3/>  :

"Please note that you can install a separate copy of Flex Builder 3
standalone and it will remain separate from any Flex Builder 2
installations. If you wish to use the plug-in version of Flex Builder 3
you will need to install it in a separate installation of Eclipse as the
two plug-in versions cannot co-exist in a single installation. Also note
that a project that has its settings modified by Flex Builder 3 will not
open in Flex Builder 2."
So no, you can't have both the Flex2 and Flex3 plugin installed on the
same Eclipse.

-- Michael

--- In flexcoders@yahoogroups.com, "Giles Roadnight" <[EMAIL PROTECTED]> wrote:
>
> Hi All
>
> I currently have the Flex 2 eclipse plugin installed but I want to
> develop AIR application and try out the Flex 3 Beta.
>
> I tried to install the FLex 3 plugin before but it messed up my Flex 2
install.
>
> Should this be possible?
>
> Thanks
>
> --
> Giles Roadnight
> http://giles.roadnight.name
>



[flexcoders] mouseOver event not recognized while dragging an object

2007-11-07 Thread Michael
This is probably going to be an obvious answer, but it's just not coming to 
me...

I have an image with a mouseOver and mouseOut event.  Obviously it works just 
fine when I 
normally move the mouse over the image and out from the image.  But if I start 
dragging 
something from a TileList and mouseOver the image or mouseOut from the image, 
the event 
isn't triggered.  It's like it's ignored when I'm dragging something...

Now...  Maybe it can be "tricked" using dragEnter and dragExit, but I think 
that can only be 
accomplished if the image accepts a drag and I don't have a need for it to do 
so.  

So...  Can anyone think of a way that my image's mouseOver and mouseOut events 
can be 
recognized whether I'm using my mouse as normal or if I'm dragging something?

Thanks!


: : Michael



[flexcoders] Flex 2 Store That Works In Flex 3?

2009-03-20 Thread Michael
When I import the Flex Store that was created in version 2, I run the 
application  but it loads about 75% and then stops.  I know Adobe noted that 
some changes might be necessary for the Flex 2 store to run properly in Flex 3. 
 Does anyone have those changes that must be made or a source link of the store 
running in 3?



[flexcoders] Re: problem with XML in flex

2009-03-20 Thread Michael
Type "adobe flex cms" into youtube and you will find a member "mikenku" who 
created a cms in flex but as an air.  That air program then creates an xml file 
and uploads it.  Hope some code there helps.




[flexcoders] Re: AIR from a Flex ActionScript Project?

2009-09-29 Thread Michael
John,

You can convert your Flex project to an AIR application pretty easily.  There's 
three basic steps involved:

1) Your application should be declared as inheriting from WindowedApplication, 
rather than Application in your main myapp.mxml file.

http://www.adobe.com/2006/mxml"; xmlns="*">





2) Create an AIR app descriptor file. Here's an example.  Name it myapp-app.xml 
and place in the same folder as your main myapp.mxml file. 


http://ns.adobe.com/air/application/1.5.1";>
com.myapp.tester
0.1
tester
FlexUnit Test Runner

tester.swf
true
standard
false
1024
768



There is detailed documentation on the AIR app descriptor format on the Adobe 
site:

http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html

3) Use the AIR MXML compiler (amxmlc rather than mxmlc) in your build scripts.  
If you're using Flex Builder, you can add an AIR Project Builder to your in the 
Project Properties > Builders pane.

That should be enough to get you started.  Good luck.

Michael Portuesi


--- In flexcoders@yahoogroups.com, John McCormack  wrote:
>
> Is there any easy way to publish a Flex ActionScript Project as an AIR file.
> This project, by its nature, has no mxml tags.
> 
> John
>




[flexcoders] Re: AIR from a Flex ActionScript Project?

2009-09-30 Thread Michael
John,

Though your code is in ActionScript, you should just be able to use the MXML 
WindowedApplication tag just at the very top-level, and initialize your main 
ActionScript UI within an  tag.

Something like:

http://www.adobe.com/2006/mxml"; 
  applicationComplete="init();">






Finally, I left out a step (4) in my previous message.  Steps 1-3 are 
sufficient to run your AIR app in the debugger, but to distribute your AIR 
application you typically need to generate and sign a .air file.  Flex Builder 
can do that; from the raw SDK, you should check out the adt tool.

Hope this helps,
Michael Portuesi


--- In flexcoders@yahoogroups.com, John McCormack  wrote:
>
> Thanks Michael,
> 
> I will give this a try.
> 
> Currently, within FB3 I can create an AIR project and it does these 
> things for me but the output is structured similarly to a Flex project 
> but my projects are ActionScript projects built within FB3 and so the 
> conversion isn't quite the same.
> 
> Perhaps I should be looking to convert from AcitionScript to Flex as an 
> intermediate step: by minimizing the mxml and calling my main Document 
> Class from the main mxml class and then modify that for AIR.
> 
> It's annoying because from within Flash Prof. I can publish as AIR, but 
> that's a conversion step backwards.
> 
> John
> 
> 
> Michael wrote:
> > John,
> >
> > You can convert your Flex project to an AIR application pretty easily.  
> > There's three basic steps involved:
> >
> > 1) Your application should be declared as inheriting from 
> > WindowedApplication, rather than Application in your main myapp.mxml file.
> >
> > http://www.adobe.com/2006/mxml"; xmlns="*">
> >
> > 
> >
> > 
> >
> > 2) Create an AIR app descriptor file. Here's an example.  Name it 
> > myapp-app.xml and place in the same folder as your main myapp.mxml file. 
> >
> > 
> > http://ns.adobe.com/air/application/1.5.1";>
> > com.myapp.tester
> > 0.1
> > tester
> > FlexUnit Test Runner
> > 
> > tester.swf
> > true
> > standard
> > false
> > 1024
> > 768
> > 
> > 
> >
> > There is detailed documentation on the AIR app descriptor format on the 
> > Adobe site:
> >
> > http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html
> >
> > 3) Use the AIR MXML compiler (amxmlc rather than mxmlc) in your build 
> > scripts.  If you're using Flex Builder, you can add an AIR Project Builder 
> > to your in the Project Properties > Builders pane.
> >
> > That should be enough to get you started.  Good luck.
> >
> > Michael Portuesi
> >
> >
> > --- In flexcoders@yahoogroups.com, John McCormack  wrote:
> >   
> >> Is there any easy way to publish a Flex ActionScript Project as an AIR 
> >> file.
> >> This project, by its nature, has no mxml tags.
> >>
> >> John
> >>
> >> 
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: 
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> >
> >
> >
> >
> >
> >
>




[flexcoders] Top 10 things new Flex developers should know

2009-11-29 Thread Michael
I hope this article on my blog is useful for those who are newcomers to Flex.

http://digitaldumptruck.jotabout.com/?p=39

Michael Portuesi



[flexcoders] Re: Changing the background of an AS3 project in Flex

2009-12-01 Thread Michael
In your top-level application MXML file, try adding this attribute to your 
 tag:

http://www.adobe.com/2006/mxml"; 
  backgroundColor="#ff"
>



--- In flexcoders@yahoogroups.com, "Calbeans"  wrote:
>
> Hi All, 
> 
> I'm working on an AS3 project using Flex and I'm trying to figure out how to 
> change the background from that default light off blueish color to something 
> different.  I looked at the index.template.html file and figured that I can 
> do it in there, but it appears that I can't.  Anyone have an idea on how to 
> do this?? Thanks in advance.
>




[flexcoders] Re: Capturing and Saving an image in Flex (BitmapData)

2010-03-05 Thread Michael
In order to save the image file to disk, you need to use the AIR File API, 
which is available only to AIR applications.

You can capture the image, encode it as PNG or JPEG using 
mx.graphics.codec.JPEGEncoder or mx.graphics.codec.PNGEncoder, then upload the 
resulting byte to a server.  Then your server application can save the file to 
disk on the server.

I found these two links helpful:

http://stackoverflow.com/questions/780018/in-flex-how-do-i-create-populate-and-display-a-bitmap

http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/

Hope this helps,
Michael Portuesi

--- In flexcoders@yahoogroups.com, Wally Kolcz  wrote:
>
> Can someone point me to an example of using the BitmapData.draw() to 
> capture an image of a container on the screen and save it to the 
> harddisk of the server. I see some that show me how to capture and 
> process the image, but the saving it to the server is a mystery.
> 
> I want my kids to be able to save their drawings/colorings to the web 
> site art gallery. Thanks!
>




[flexcoders] Re: FlexUnit + Ant + Continuos Integration

2010-03-07 Thread Michael
Hey there,

I've successfully integrated FlexUnit tests into my continuous integration 
environment (in my case, CruiseControl.rb).

I did things a little differently than most people:

1) I don't use Ant to drive the tests.  We have our own build scripts in Ruby, 
and don't make much use of Ant.

2) The test runner in my case is an AIR application.  This sidesteps several 
problems inherent with FlexUnit, one of them (as you noted) the need to open a 
web browser.

I wrote this all up on my blog:

http://digitaldumptruck.jotabout.com/?p=26

Hope you find some of this useful.

Regards,
Michael Portuesi

--- In flexcoders@yahoogroups.com, "M. Fernanda Gioiosa"  wrote:
>
> Hello,
>  I'm working in a project with FlexUnit, Ant and Bamboo as continuos
> integration tool, have you ever try to do this? How is the ant tasks that
> you need to Run? How the FlexUnitTestRunner works in the servers (because
> always open the browser for running the tests)? Do you have any example of
> this working?
> I would appreciate any information about this, there isn't much information
> about this in the websites!
> 
> Thanks a lot,
> Fer
> 
> this is the part that runs the test in the ant file.
> 
> 
> 
>  output="${flex.unit.swf}"
> actionscript-file-encoding="${ENCODING}"
> keep-generated-actionscript="false"
> incremental="false">
>  />
> 
> 
>  append="true">
> 
> 
> 
> Running Test Runner SWF
>  toDir="${report.dir}"
> haltonfailure="false"
> verbose="true"
> localTrusted="true"
> timeout="9"/>
> Ran Test Runner SWF
> 
> Generate Readable Tests
> 
> 
> 
> 
> 
> 
> Generated Readable Tests
> 
>




[flexcoders] Re: FlexUnit + Ant + Continuos Integration

2010-03-08 Thread Michael
You might try looking at:

http://www.insideria.com/2008/04/unit-testing-with-flexunit-1.html

for a good "getting started" article with FlexUnit.

Regards,
Michael Portuesi

--- In flexcoders@yahoogroups.com, Nahla Laribi  wrote:
>
> 
> Hello :)
> 
> Did you find  good site which explains step by step how to use Flex Unit 
> please ??
> 
> Thanks 
> 
> To: flexcoders@yahoogroups.com
> From: mportu...@...
> Date: Sun, 7 Mar 2010 19:44:12 +
> Subject: [flexcoders] Re: FlexUnit + Ant + Continuos Integration
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
>   
> 
> 
> 
>   
>   
>   Hey there,
> 
> 
> 
> I've successfully integrated FlexUnit tests into my continuous integration 
> environment (in my case, CruiseControl.rb).
> 
> 
> 
> I did things a little differently than most people:
> 
> 
> 
> 1) I don't use Ant to drive the tests.  We have our own build scripts in 
> Ruby, and don't make much use of Ant.
> 
> 
> 
> 2) The test runner in my case is an AIR application.  This sidesteps several 
> problems inherent with FlexUnit, one of them (as you noted) the need to open 
> a web browser.
> 
> 
> 
> I wrote this all up on my blog:
> 
> 
> 
> http://digitaldumptruck.jotabout.com/?p=26
> 
> 
> 
> Hope you find some of this useful.
> 
> 
> 
> Regards,
> 
> Michael Portuesi
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "M. Fernanda Gioiosa"  wrote:
> 
> >
> 
> > Hello,
> 
> >  I'm working in a project with FlexUnit, Ant and Bamboo as continuos
> 
> > integration tool, have you ever try to do this? How is the ant tasks that
> 
> > you need to Run? How the FlexUnitTestRunner works in the servers (because
> 
> > always open the browser for running the tests)? Do you have any example of
> 
> > this working?
> 
> > I would appreciate any information about this, there isn't much information
> 
> > about this in the websites!
> 
> > 
> 
> > Thanks a lot,
> 
> > Fer
> 
> > 
> 
> > this is the part that runs the test in the ant file.
> 
> > 
> 
> > 
> 
> > 
> 
> >  
> > output="${flex.unit.swf}"
> 
> > actionscript-file-encoding="${ENCODING}"
> 
> > keep-generated-actionscript="false"
> 
> > incremental="false">
> 
> >  
> > />
> 
> > 
> 
> > 
> 
> >  
> > append="true">
> 
> > 
> 
> > 
> 
> > 
> 
> > Running Test Runner SWF
> 
> >  
> > toDir="${report.dir}"
> 
> > haltonfailure="false"
> 
> > verbose="true"
> 
> > localTrusted="true"
> 
> > timeout="9"/>
> 
> > Ran Test Runner SWF
> 
> > 
> 
> > Generate Readable Tests
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > Generated Readable Tests
> 
> > 
> 
> >
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _
> Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone, 
> Blackberry, …
> http://www.messengersurvotremobile.com/?d=Hotmail
>




[flexcoders] maya to flash 10

2010-04-06 Thread MIchael
Hi,

Is there a tutorial that shows a good workflow for exporting a maya model and 
importing it as a 3d movie clip in flash 10?

thanks,
Michael



[flexcoders] Re: maya to flash 10

2010-04-06 Thread MIchael


This is for papervison3d. As far as I can tell I should not need that.  Flash 
10 has 3d built in.

Is there a process that mimics the papervision3d process but for flash 10?


--- In flexcoders@yahoogroups.com, "cuttenv"  wrote:
>
> Blender to flash! http://gotoandlearn.com/play?id=106
> 
> --- In flexcoders@yahoogroups.com, "MIchael"  wrote:
> >
> > Hi,
> > 
> > Is there a tutorial that shows a good workflow for exporting a maya model 
> > and importing it as a 3d movie clip in flash 10?
> > 
> > thanks,
> > Michael
> >
>



[flexcoders] Re: maya to flash 10

2010-04-06 Thread MIchael
I don't want to use papervision. I want to use the 3d engine built into flash 
10. 

--- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
>
> On 06/04/2010 21:23, MIchael wrote:
> > Hi,
> >
> > Is there a tutorial that shows a good workflow for exporting a maya model 
> > and importing it as a 3d movie clip in flash 10?
> >
> > thanks,
> > Michael
> >
> I'm not sure your question has any relevance to Flex at all. You'd be 
> better off asking on a papervision forum - you'll probably find a 
> collada workflow for Maya that you can use.
> 
> Paul
>




[flexcoders] Re: maya to flash 10

2010-04-06 Thread MIchael
My understanding is that is exactly what papervision3d does as well.  How does 
papervision3d differ?

--- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
>
> On 06/04/2010 22:51, MIchael wrote:
> > I don't want to use papervision. I want to use the 3d engine built into 
> > flash 10.
> >
> You misunderstand. Flash 10 doesn't have a built in 3D engine. It 
> supports 3D manipulation of planes - that's all.
> 
> Paul
> 
> > --- In flexcoders@yahoogroups.com, Paul Andrews  wrote:
> >
> >> On 06/04/2010 21:23, MIchael wrote:
> >>  
> >>> Hi,
> >>>
> >>> Is there a tutorial that shows a good workflow for exporting a maya model 
> >>> and importing it as a 3d movie clip in flash 10?
> >>>
> >>> thanks,
> >>> Michael
> >>>
> >>>
> >> I'm not sure your question has any relevance to Flex at all. You'd be
> >> better off asking on a papervision forum - you'll probably find a
> >> collada workflow for Maya that you can use.
> >>
> >> Paul
> >>
> >>  
> >
>




[flexcoders] mouseOver icon

2006-06-21 Thread Michael










I have a tree control that uses an itemrenderer to display “Some
data Select”.  I want the select text to function
like a link button.  I have tried to put a linkButton in my itemRenderer, but
it does not show up.  I have gotten a checkbox to show up, but where the linkButton
was supposed to be was simply empty space.  I figured I would create text to
act like a linkButton.  I have it working great right now, but I am having
trouble changing the cursor from the standard image to the image that comes up
when you mouseOver a linkButton.  Anyone have a solution for this?

 

Thank you very much,

 

Michael




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___





[flexcoders] installing NoteTag on JBOSS

2006-06-23 Thread Michael










Does anyone know the best way(or if it can be done) of
installing notetag on a JBOSS server?

 

Thank you,

 

Michael




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___





[flexcoders] debugging app with metadata tags

2006-06-23 Thread Michael










I am trying to use metadata tags to notify my application
that an event has occurred.  Every time I try to debug my application I get an
error that says:

 

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

 

Does anyone know if this is this something that is going to
happen or is this a bug?  I am running flex 2.0B3 on Jboss.

 

Thank you,

 

Michael




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___





[flexcoders] help getting xml attribute names

2006-06-26 Thread Michael










I have an xml object and I am trying to get the attribute
names into an array.  Can anyone help me?

 

I am trying to get the attribute names from mygroup(for ex. In
this case I would want id and task).

 



    

    



 

Thank you

Michael




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___





RE: [flexcoders] Re: help getting xml attribute names

2006-06-26 Thread Michael










Thanks Chas, but I am trying to get the
names of the attributes.  I am getting dynamic data out of a database in
XML form and I need to know the attribute names from the XML.  I just want
the attribute names at the parent level.  In the sample I have written I
would get “id” and “task”.

 

Thanks for your help, I will definitely
look at the resource you mentioned.

 

Michael

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of exporta_lite
Sent: Monday, June 26, 2006 4:23
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: help
getting xml attribute names



 







--- In [EMAIL PROTECTED]ups.com,
"Michael" <[EMAIL PROTECTED].> wrote:


> I am trying to get the attribute names from mygroup...



> 
> 
> />
> />
> 
> 

Suppose x:XML is the XML you show above. The "myChild" tags are
already accessible "as if" they were an array; for example, you can
say

trace(x.myChild[0].toXMLString());

which will output

/>

Also, to access an attribute, you can use any of the following:

trace(x.myChild[0].attribute("id"));
trace(x.myChild[[EMAIL PROTECTED]"id"]);
trace(x.myChild[[EMAIL PROTECTED]);

all of which will output the string "1.1".

To use the XML as an array (sort of), you can use code such as:

for (i=0; ilength(); i++) {
trace(i+" id "+x.myChild[[EMAIL PROTECTED]);
}

x.myChild.length() returns the number of elements which are tags of
the type "myChild" (note the parens; it's ".length()", not
".length").

All this and more (e.g., the ability to only refer to myChild tags
which have the attribute tool=="hammer") can be found in the
help docs
under:

Programming ActionScript 3.0 > Core ActionScript Data Types and
Classes > Working with XML 

Cheers - Chas






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___






RE: [flexcoders] Re: help getting xml attribute names

2006-06-28 Thread Michael










Thanks Gordon, that works great!!!

 

Michael

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith
Sent: Tuesday, June 27, 2006 4:01
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: help
getting xml attribute names



 









x.attributes()[i].name()) will give you the name of the ith
attribute.

 

Another syntax for this is [EMAIL PROTECTED]()

 

- Gordon

 









From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Michael
Sent: Monday, June 26, 2006 3:02
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: help
getting xml attribute names



 









Thanks Chas, but I am trying to get the names of the
attributes.  I am getting dynamic data out of a database in XML form and I
need to know the attribute names from the XML.  I just want the attribute
names at the parent level.  In the sample I have written I would get
“id” and “task”.

 

Thanks for your help, I will definitely look at the resource you
mentioned.

 

Michael

 









From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of exporta_lite
Sent: Monday, June 26, 2006 4:23
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: help
getting xml attribute names



 







--- In [EMAIL PROTECTED]ups.com,
"Michael" <[EMAIL PROTECTED].> wrote:


> I am trying to get the attribute names from mygroup...



> 
> 
> />
> />
> 
> 

Suppose x:XML is the XML you show above. The "myChild" tags are
already accessible "as if" they were an array; for example, you can
say

trace(x.myChild[0].toXMLString());

which will output

/>

Also, to access an attribute, you can use any of the following:

trace(x.myChild[0].attribute("id"));
trace(x.myChild[[EMAIL PROTECTED]"id"]);
trace(x.myChild[[EMAIL PROTECTED]);

all of which will output the string "1.1".

To use the XML as an array (sort of), you can use code such as:

for (i=0; ilength(); i++) {
trace(i+" id "+x.myChild[[EMAIL PROTECTED]);
}

x.myChild.length() returns the number of elements which are tags of
the type "myChild" (note the parens; it's ".length()", not
".length").

All this and more (e.g., the ability to only refer to myChild tags
which have the attribute tool=="hammer") can be found in the
help docs
under:

Programming ActionScript 3.0 > Core ActionScript Data Types and
Classes > Working with XML 

Cheers - Chas






















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___






[flexcoders] XML tree dataprovider

2006-07-18 Thread Michael










I have an xml structure that is feeding a tree. 
Whenever I populate the tree it shows Object as a branch and when I open that
branch it shows all of the children.  How do I show the object branch and
only children that are tasks(and the task children)?  I don’t think I
want to remove any data from the XML because I need to preserve some
relationships here, but I do not want to display it.

 





    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    





 

Thank you so much,

Michael




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___





[flexcoders] Re: initial loader color/style

2006-07-19 Thread Michael
--- In flexcoders@yahoogroups.com, "hank williams" <[EMAIL PROTECTED]> wrote:
>
> There is a default setting for the background color and style of the
loader
> that you see before your app opens. Where can I change this?
> 
> Hank
>


Hank,

I was just going to ask this same question today.  I thought it was
located in the html page that embeds the Flex swf, but changing the
colors there didn't work for me.  





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

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

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

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

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





[flexcoders] Talking Components

2006-07-21 Thread Michael
I have a Flex app with two custom components.   What is the best way
for these two components to talk to each other.  Pass a reference of
one component to the other, databinding, or event broadcast to each other?

I basically have one component that is a list of ID/Names, when I
double click, I want the other component to get the ID and retrieve
the extended data from the DB.   My data is not stored in the
main.mxml application.   I know in Flash you would use event
listeners, but can the event listeners in Flex also send data?  The
examples I have seen broadcast a message, but they don't seem to send
data like Flash dispatch events would. 


- Michael  






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

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

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

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

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




[flexcoders] Re: Talking Components

2006-07-23 Thread Michael
Jeremy,

That did the trick, thanks a lot! 

--- In flexcoders@yahoogroups.com, "Jeremy Lu" <[EMAIL PROTECTED]> wrote:
>
> Surely it can.
> 
> You can create a MyEvent class which extends Event then add in as many
> properties you want (something like "data"), there's a fine example
in the
> manual about creating custom event.
> 
> When you need to broadcast event from one component to another, just
use:
> 
> comp.dispatchEvent( MyEvent("someEvent", myDataObject) );
> 
> this should do the trick.
> 
> 
> Jeremy.
> 
> On 7/22/06, Michael <[EMAIL PROTECTED]> wrote:
> >
> >   I have a Flex app with two custom components. What is the best way
> > for these two components to talk to each other. Pass a reference of
> > one component to the other, databinding, or event broadcast to
each other?
> >
> > I basically have one component that is a list of ID/Names, when I
> > double click, I want the other component to get the ID and retrieve
> > the extended data from the DB. My data is not stored in the
> > main.mxml application. I know in Flash you would use event
> > listeners, but can the event listeners in Flex also send data? The
> > examples I have seen broadcast a message, but they don't seem to send
> > data like Flash dispatch events would.
> >
> > - Michael
> >
> >  
> >
>










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

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

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

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

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





[flexcoders] TreeItemRenderer question

2006-05-26 Thread Michael
con )

    
{

     
_tree.setStyle("folderClosedIcon", null);

    
 _tree.setStyle("folderOpenIcon", null);

    
}

    
}

    
else

    
{

    
 // if we are in here, then the current node is a
leaf node

    
 

    
// set styles...

       
setStyle("color", 0x00);

       
setStyle("fontWeight", 'normal');

       
// if we don't want to show the default leaf icons, let's empty them

       
if( !showDefaultLeafIcon )

       
{

       
_tree.setStyle("defaultLeafIcon", null);

       
}

    
}

     }


    }

   override protected
function updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void

  
{    

   
super.updateDisplayList(unscaledWidth, unscaledHeight);

   
if(super.data)

   
{

    //
if the current node is a branch

   
graphics.clear();

   
if(TreeListData(super.listData).hasChildren)

   
{

   
// get the current node and it's children as XMLList

       
var currentNodeXMLList:XMLList = new
XMLList(TreeListData(super.listData).item);

 

   
// get the number of children under the current node

   
var numOfImmediateChildren:int = currentNodeXMLList[0].children().length();

    

   
// set the image to be displayed in the branches

   
//myImage.source = branchImage;

   


   
// set the label text

   
super.label.text =  TreeListData(super.listData).text + "(" +
numOfImmediateChildren + ")";

   


   
}

   
else

   
{

   
// if we are in here, then the current node is a leaf node

   
//mx.controls.Alert.show(super.listData.toString());

   
//myImage.source = leafImage;

   
}

   
// reset the position of the image to be before the label

   
myCheckBox.x = super.label.x;

   
    // reset the position of the label
to be after the image, plus give it a margin

  
 super.label.x = myCheckBox.x +
10 +
cbToLabelMargin;   


   
}

    }

    }

}

 

 

Thanks, Michael









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Cairngorm question

2006-06-01 Thread Michael










Does anyone know some good resources for cairngorm, and what
the best way to start learning it is.  I have done a few large flex apps, and I
would like to see what cairngorm can do for me.  Thanks a lot for the help!

 

 

Michael









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Cairngorm question

2006-06-01 Thread Michael










Where can I download cairngorm 2.0. I
believe I have downloaded the .99 version, but I didn’t get a chance to
learn it before I got tasked with a Flex 2.0 project.

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steven Webster
Sent: Thursday, June 01, 2006 8:15
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
Cairngorm question



 

Michael,

 

I wrote a 6-part series of articles for
Adobe Devnet that seem to be helping people to get started with Cairngorm,
you'll find the first part here:

 

http://www.adobe.com/devnet/flex/articles/cairngorm_pt1.html

 

Hope that helps !

 

Steven



 




 
  
  
   






Steven Webster
Practice Director (Rich Internet Applications)
Adobe Consulting
Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ,
 UK
p: +44 (0) 131 338 6108


m: +44 (0) 7917 428
947 
[EMAIL PROTECTED] 



   
  
  
  
 


 



 





 







From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael
Sent: 01 June 2006 02:51
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm
question

Does anyone know some good resources for cairngorm, and what
the best way to start learning it is.  I have done a few large flex apps,
and I would like to see what cairngorm can do for me.  Thanks a lot for
the help!

 

 

Michael








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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Flex2 Blocking Cursor

2006-06-02 Thread Michael










In flex 1.5 I used these functions to keep the user from
interacting with the GUI while I was retrieving data from the database, but in
flex2 they don’t work.  Does anyone know how to accomplish this in
Flex2??

 

function setBlockingCursor()

{

 // Create an "empty"
UIObject popup that blocks user input 

 inputBlocker =
popupWindow(UIObject);

 CursorManager.setBusyCursor();

}

 

function removeBlockingCursor()

{

 // Remove our blocking popup

 inputBlocker.deletePopUp();

 CursorManager.removeBusyCursor();

}

 

Thanks,

Michael









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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Image problems

2006-06-05 Thread Michael










Hello all, I am trying to work with drag and drop.  I
have a canvas in which I put a background image to be a recycle bin.  Everything
was fine for about a week and all of a sudden the image has disappeared. 
I don’t know what is going on.  I cannot think of anything that has
changed that may have caused it.  Can someone tell me if there is a better
way of doing this???

 



 

 











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











RE: [flexcoders] Image problems

2006-06-05 Thread Michael










Thanks for your reply mitch.

 

I tried discarding the leading .. and I
still get no image.  My file structure is

 

MainApp.mxml

Images(folder)

---recycle.gif

Components(folder)

---ComponentUsingImage.mxml

 

Is there something I am missing?  I
tried embedding the image in actionscript and holding it in a variable, but
that didn’t work.  Can anyone help me with this?

 

Michael

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mitch Grasso
Sent: Monday, June 05, 2006 1:22
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Image
problems



 

I believe there is a bug in 3.0 that
requires image embed paths to start with '/'. You can remove the leading ..

 

mitch

 







From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael
Sent: Monday, June 05, 2006 7:23
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Image
problems

Hello all, I am trying to work with drag and drop.  I
have a canvas in which I put a background image to be a recycle bin. 
Everything was fine for about a week and all of a sudden the image has
disappeared.  I don’t know what is going on.  I cannot think of
anything that has changed that may have caused it.  Can someone tell me if
there is a better way of doing this???

 



 

 











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  











[flexcoders] Multiline ComboBox

2006-10-16 Thread Michael










Does anyone know how I can get my combobox to display 2
lines as opposed to only one line.  I can display 2 lines in the dropdown area,
but not in the main combobox display.

 

Here is what I have so far:

 

public function initRenderer():void

{

var myRenderer:ClassFactory = new
ClassFactory(mx.controls.Text);

    myRenderer.properties = {maxHeight:60};

    this.cb.itemRenderer = myRenderer;

}

 



    dataProvider="{cbData}"

    labelField="{cbLabelField}"

    selectedIndex="{getSelectedIndex()}"

    change="comboBoxChange(cb.selectedItem)"/>

 

Thanks in advance,

 

Michael




__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___





RE: [flexcoders] Re: Multiline ComboBox

2006-10-17 Thread Michael












Thank you Mike, that helps, and saves a
lot of time trying to force the combobox to do something that was not made to
do.

 

Michael

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Labriola
Sent: Monday, October 16, 2006
3:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Multiline ComboBox



 








Michael,

Problem is that ComboBase uses a textInput control to display the
currently selected item. The TextInput is limited to displaying a
single line of text.

You could certianly change this, but, it seems as though it will
require extending ComboBox, not just making an itemRenderer.

--Mike

--- In [EMAIL PROTECTED]ups.com,
"Michael" <[EMAIL PROTECTED].> wrote:
>
> Does anyone know how I can get my combobox to display 2 lines as
opposed to
> only one line. I can display 2 lines in the dropdown area, but not
in the
> main combobox display.
> 
> 
> 
> Here is what I have so far:
> 
> 
> 
> public function initRenderer():void
> 
> {
> 
> var myRenderer:ClassFactory = new ClassFactory(mx.controls.Text);
> 
> myRenderer.properties = {maxHeight:60};
> 
> this.cb.itemRenderer = myRenderer;
> 
> }
> 
> 
> 
> 
> 
> dataProvider="{cbData}"
> 
> labelField="{cbLabelField}"
> 
> selectedIndex="{getSelectedIndex()}"
> 
> change="comboBoxChange(cb.selectedItem)"/>
> 
> 
> 
> Thanks in advance,
> 
> 
> 
> Michael
>






__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___






[flexcoders] Re: T shirt......Was.. Loading Unicode values from XML and viewing in Flex compo

2006-08-13 Thread Michael
Gordon,

Lol, thanks for the info.   I will be attending the conference in
Vegas, I already registered and have the hotel.

- michael ritchie

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> If you attend MAX 2006, the annual Adobe user conference, there should
> be some Flex swag, but we haven't settled on what it'll be.
> 
>  
> 
> - Gordon
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Impudent1
> Sent: Thursday, August 10, 2006 12:08 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] T shirt..Was.. Loading Unicode values from XML
> and viewing in Flex components as HTML
> 
>  
> 
> Gordon Smith wrote:
> > Sorry, no t-shirt... just our thanks for helping us improve Flex.
> > 
> 
> Eh he, well you guys need to talk amongst your depts :0
> 
> I was lucky enough to earn the after effects one and a couple encore 
> ones. Granted that was a lot more than one bug report and a few surveys.
> 
> I definately would love to add a Flex yourself one to the collection of 
> adobe geek swag :)
> 
> scooby caps are good too :P
> 
> Impudent1
> LeapFrog Productions
>







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

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

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

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





[flexcoders] directive broken for absolute paths using compc

2006-08-29 Thread Michael
Hello,

A minor but frustrating oddity:

I have been tinkering around with compilation configuration files and  
this question is related to 'compc' and its configuration file.

Does anyone know why compc doesn't take absolute paths inside the  
 directive?

If I run compc from ~/foo, this configuration


/bar/out.swc


places the output at ~/foo/bar/out.swc, which is not the expected / 
bar/out.swc.

This is a problem because the output file will always created in a  
directory relative to the directory from which compc is run. This  
makes portability a headache and means building custom scripts to  
ensure that either compc is run from the same place every time, or  
the output file is moved post compilation from a directory.

Any known fixes or am I missing a vital configuration directive  
elsewhere?

Regards, 


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

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

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

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





Re: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread Michael Schmalle

Object.addEventListener( "click", [funct1, funct2, funct3] );


No,

1. as3 is strongly typed which means the method expects a function when it
is getting an array.
2. addEventListener wouldn't even know what to do with an array.

You could, if you had your own subclass override addEventListener to do that
but, you could also just create a stack of functions in an array if they
were all going to the same event and loop through them to save code lines.

It's personal choice when you get to this point.

Peace, Mike

On 2/7/07, Mike Anderson <[EMAIL PROTECTED]> wrote:


  Hey Doug,

Well, that's simple enough. Probably so simple, that I simply
overlooked doing it that way.

Real quick, would it be possible to also do it this way?

Object.addEventListener( "click", [funct1, funct2, funct3] );

I know I could just try it, but from a methodology point of view, it
would be nice to know if this was a valid way to do it.

Thanks!

Mike


-Original Message-
From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On
Behalf Of dougmccune
Sent: Wednesday, February 07, 2007 10:10 AM
To: flexcoders@yahoogroups.com 
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by using
removeEventListener and specifying the particular function you want
removed.

Doug

--- In flexcoders@yahoogroups.com , "Mike
Anderson" <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I have a problem, and maybe I am overlooking something here...
>
> What I need to do, is attach multiple functions, to an Event for a
> particular Component.
>
> Using inline MXML, this is easy - you just separate out each function,

> with a semi-colon and list them one after another.
>
> BUT, I am trying NOT to put my functions within the MXML - I am using
> Code-Behind, and I need to add my Event Listeners within the
> ActionScript - using the Object.addEventListener() method.
>
> Thing is, how do I add several functions using this type of
methodology?
> Or can it even be done?
>
> Thanks in advance for any help you can offer regarding this,
>
> Mike
>

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

 





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

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

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


Re: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-07 Thread Michael Schmalle

could be renamed in a future release to something like "mouseClick" and

then your code wouldn't work.

Or even worse, you write "cllck", and then for days even months, you think
your app isn't working or 'works' a certain way. Come to find out the event
wasn't even getting captured. :)

This is plain ole preventative maintainence.

That is the worse case for me, renaming events is small potatoes to that
error. ;-)

Peace, Mike

On 2/7/07, Doug McCune <[EMAIL PROTECTED]> wrote:


   Nope, I think the second parameter must be a function, trying to pass
an array of functions should fail.

Also, just a note: it's better practice to not use the string of the event
listener like "click" but rather the variable like MouseEvent.CLICK. They
really do the exact same thing in practice, but it's possible that within
MouseEvent the click event could be renamed in a future release to something
like "mouseClick" and then your code wouldn't work.

Doug



Mike Anderson wrote:

 Hey Doug,

Well, that's simple enough. Probably so simple, that I simply
overlooked doing it that way.

Real quick, would it be possible to also do it this way?

Object.addEventListener( "click", [funct1, funct2, funct3] );

I know I could just try it, but from a methodology point of view, it
would be nice to know if this was a valid way to do it.

Thanks!

Mike

-Original Message-
From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On
Behalf Of dougmccune
Sent: Wednesday, February 07, 2007 10:10 AM
To: flexcoders@yahoogroups.com 
Subject: [flexcoders] Re: Object.addEventListener vs.. adding them
inline via MXML

You can make as many calls to addEventListener as you want. So you can
add 2 or more event listeners that get triggered for the same event.

So something like:
myButton.addEventListener(MouseEvent.CLICK, myFunction1);
myButton.addEventListener(MouseEvent.CLICK, myFunction2);
myButton.addEventListener(MouseEvent.CLICK, myFunction3);

All three of the above functions would get called when the event
triggers. You can remove each of these separately as well by using
removeEventListener and specifying the particular function you want
removed.

Doug

--- In flexcoders@yahoogroups.com , "Mike
Anderson" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:
>
> Hello All,
>
> I have a problem, and maybe I am overlooking something here...
>
> What I need to do, is attach multiple functions, to an Event for a
> particular Component.
>
> Using inline MXML, this is easy - you just separate out each function,

> with a semi-colon and list them one after another.
>
> BUT, I am trying NOT to put my functions within the MXML - I am using
> Code-Behind, and I need to add my Event Listeners within the
> ActionScript - using the Object.addEventListener() method.
>
> Thing is, how do I add several functions using this type of
methodology?
> Or can it even be done?
>
> Thanks in advance for any help you can offer regarding this,
>
> Mike
>

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


 





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

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

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


Re: [flexcoders] WARNING: css type selectors are not supported in components?

2007-02-07 Thread Michael Schmalle

Hi,

In a custom component you cannot have;

Button {
...
}

You have to specify them in the Application.

Peace, Mike

On 2/7/07, Brian Holmes <[EMAIL PROTECTED]> wrote:


   I'm getting this warning message since I upgrade to FB 2.01 and i can't
seem to get rid of it. I don't have any inline css,
but I do have a reference to a style sheet in my application shell.

Anybody else out there experiencing this?

B..

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

 





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

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

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


Re: [flexcoders] Re: Serious Bug in HistoryManager (introduced in latest release?)

2007-02-07 Thread Michael Schmalle

Oh yeah one more thing.

I know why they did this. At least a perspective.

If you have version 2.0 linking in ManagerA and they change the
implementation to ManagerB in 2.5, ManagerA will not be linked in unless
ManagerA is linked, other wise ManagerB is linked in, in 2.5 and the string
decouples the dependency of ManagerA in the last version.

may be wrong here but it makes sense to me.

Peace, Mike

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


Hey,

Don't get me wrong here but, what happens when you use
getClassDefinition() and you didn't link in your class as a static
dependency?

Same error as you get here.

Is it a flaw or a chicken and egg thing like 'my computer can't entirely
think for me' thing.

Peace, Mike

On 2/7/07, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:

>   Yo Z,
>
> Each Manager is registered as a singleton.
> code excerpt;
>  Singleton.registerClass("mx.managers::ICursorManager" ,
> Class(getDefinitionByName("mx.managers::CursorManagerImpl" )));
> Singleton.registerClass ("mx.managers::IDragManager",
> Class(getDefinitionByName( "mx.managers::DragManagerImpl")));
> Singleton.registerClass( "mx.managers::IHistoryManager",
> Class(getDefinitionByName( "mx.managers::HistoryManagerImpl")));
> Singleton.registerClass("mx.managers::ILayoutManager ",
> Class(getDefinitionByName("mx.managers::LayoutManager ")));
> Singleton.registerClass("mx.managers::IPopUpManager" ,
> Class(getDefinitionByName("mx.managers::PopUpManagerImpl" )));
> Singleton.registerClass( "mx.styles::IStyleManager",
> Class(getDefinitionByName( "mx.styles::StyleManagerImpl")));
> Singleton.registerClass("mx.managers::IToolTipManager ",
> Class(getDefinitionByName("mx.managers::ToolTipManagerImpl ")));
>
> It's quite interesting in the way they implemented this process but i do
> believe that this particular bug has exposed a flaw in their decision.
> The problem seems to be is that these singleton's are not getting
> registered if they are not being used. this is generally a good thing until
> the introduction of modules where the child parent relationship exposes the
> flaw.
>
> Anyway at-least we've got a fix.
>
>
> regards,
>
> Bjorn
>
> On 08/02/2007, at 5:07 AM, zenwarden wrote:
>
> I can't test the fix because I cannot replicate the bug. It has
> mysteriously vanished...The next time I see it, I will try the
> suggested fix and report back.
>
> Also sorry if I ranted in my last post. Just don't like to see any
> problems with my new favorite technology.
>
> --- In flexcoders@yahoogroups.com  ,
> "zenwarden" <[EMAIL PROTECTED]> wrote:
> >
> > I will give it a try.
> >
> > One question and one comment:
> >
> > Question: Did you actually mean drag manager or did you mean History
> > manager? (I'll try both sperately).
> >
> > Commnet: I've been a virtual evenagilist for flex at the company I
> > work for; I am very impressed with product and love using it. But this
> > does make me a bit nervous. I'm also really hoping that what you are
> > sayimg about singletons is not true. Singletons should never be used
> > liberally like this. It's a lazy solution to resource mamnagemnt
> > issues. The whole point of design patterns is (in my humble opinion)
> > to solve an EXISTING problem. You don't use a singlton because you
> > can, or because it's neat or even because you think it will be
> > effecient or cleaner --- you use a sington (and any pattern) after
> > you've identified a problem.
> >
> > The flex team needs to stop reading design pattern book.
> >
> > To sum up: you can always tell what chapter in gang of four a coder is
> > reading, its the pattern they are sticking into all their code :)
> >
> >
> >
> >
> >
> >
> >
> >
> > --- In [EMAIL PROTECTED]  ups.com,
> Bjorn Schultheiss
> >  wrote:
> > >
> > > Here's a reply i got from one of the engineers, Alex Harai on what
> > > could be a related issue.
> > >
> > >
> > > This error occurs for two reasons: One is that somehow, the
> > > DragManager or DragManagerImpl is not linked into the movie.
> > >
> > > The other, and more common reason is that more than one module is
> > > using the DragManager, but the main application does not.. Modules
> > > operate in their own application domain, and thus cannot s

Re: [flexcoders] Re: Serious Bug in HistoryManager (introduced in latest release?)

2007-02-07 Thread Michael Schmalle

Hey,

Don't get me wrong here but, what happens when you use getClassDefinition()
and you didn't link in your class as a static dependency?

Same error as you get here.

Is it a flaw or a chicken and egg thing like 'my computer can't entirely
think for me' thing.

Peace, Mike

On 2/7/07, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:


  Yo Z,

Each Manager is registered as a singleton.
code excerpt;
Singleton.registerClass("mx.managers::ICursorManager",
Class(getDefinitionByName("mx.managers::CursorManagerImpl")));
Singleton.registerClass("mx.managers::IDragManager",
Class(getDefinitionByName("mx.managers::DragManagerImpl")));
Singleton.registerClass("mx.managers::IHistoryManager",
Class(getDefinitionByName("mx.managers::HistoryManagerImpl")));
Singleton.registerClass("mx.managers::ILayoutManager",
Class(getDefinitionByName("mx.managers::LayoutManager")));
Singleton.registerClass("mx.managers::IPopUpManager",
Class(getDefinitionByName("mx.managers::PopUpManagerImpl")));
Singleton.registerClass("mx.styles::IStyleManager",
Class(getDefinitionByName("mx.styles::StyleManagerImpl")));
Singleton.registerClass("mx.managers::IToolTipManager",
Class(getDefinitionByName("mx.managers::ToolTipManagerImpl")));

It's quite interesting in the way they implemented this process but i do
believe that this particular bug has exposed a flaw in their decision.
The problem seems to be is that these singleton's are not getting
registered if they are not being used. this is generally a good thing until
the introduction of modules where the child parent relationship exposes the
flaw.

Anyway at-least we've got a fix.


regards,

Bjorn

On 08/02/2007, at 5:07 AM, zenwarden wrote:

I can't test the fix because I cannot replicate the bug. It has
mysteriously vanished...The next time I see it, I will try the
suggested fix and report back.

Also sorry if I ranted in my last post. Just don't like to see any
problems with my new favorite technology.

--- In flexcoders@yahoogroups.com ,
"zenwarden" <[EMAIL PROTECTED]> wrote:
>
> I will give it a try.
>
> One question and one comment:
>
> Question: Did you actually mean drag manager or did you mean History
> manager? (I'll try both sperately).
>
> Commnet: I've been a virtual evenagilist for flex at the company I
> work for; I am very impressed with product and love using it. But this
> does make me a bit nervous. I'm also really hoping that what you are
> sayimg about singletons is not true. Singletons should never be used
> liberally like this. It's a lazy solution to resource mamnagemnt
> issues. The whole point of design patterns is (in my humble opinion)
> to solve an EXISTING problem. You don't use a singlton because you
> can, or because it's neat or even because you think it will be
> effecient or cleaner --- you use a sington (and any pattern) after
> you've identified a problem.
>
> The flex team needs to stop reading design pattern book.
>
> To sum up: you can always tell what chapter in gang of four a coder is
> reading, its the pattern they are sticking into all their code :)
>
>
>
>
>
>
>
>
> --- In [EMAIL PROTECTED] ups.com, Bjorn
Schultheiss
>  wrote:
> >
> > Here's a reply i got from one of the engineers, Alex Harai on what
> > could be a related issue.
> >
> >
> > This error occurs for two reasons: One is that somehow, the
> > DragManager or DragManagerImpl is not linked into the movie.
> >
> > The other, and more common reason is that more than one module is
> > using the DragManager, but the main application does not.. Modules
> > operate in their own application domain, and thus cannot share
> > singletons unless that singleton is loaded by the parent application
> > domain. The simple solution is to link the DragManager into the
main
> > application by putting something like this in a script block
> >
> > import mx.managers.DragManager;
> >
> > var dm:DragManager;
> >
> > This fattens your application a little. More complex solutions
> > involve loading the DragManager into the main application's
> > application domain.
> >
> > The above is true for all managers handled by Singleton and lots of
> > other shared classes in Flex as well.
> >
> >
> >
> >
> >
> >
> >
> >
> > On 06/02/2007, at 11:49 AM, zenwarden wrote:
> >
> > > I am seeing this mostly when I run unit test using the flexunit.swf.
> > > And I am consistantly seeing it in that situation
> > >
> > > I do occasionaly see it when running a single-swf app through the
> > > builder (However it is making a connection to a server when it
> > > occurs).
> > >
> > > Chris W
> > >
> > > --- In [EMAIL PROTECTED] ups.com,
Bjorn Schultheiss
> > >  wrote:
> > > >
> > > > does your app use modules, or built using multiple swfs?
> > > >
> > > >
> > > > On 06/02/2007, at 5:49 AM, zenwarden wrote:
> > > >
> > > > > There appears to be a failry serious bug that I think was
> > > introduced
> > > > > in the history manager in the latest release 2.0.1
> > > > >
> > > > > I

Re: [flexcoders] Re: Putting a Rectangle around a "selected" line in a List component

2007-02-08 Thread Michael Schmalle

Hi,

Do us a favor and try not to cross post with flexcoders and flexcomponents.

All the people that can answer your question, read both lists.

Don't waste Alex's valuable time. He is an asset.


I found the solution.


Alex gave you an answer yesterday on the flexcomponentst list. This just
wastes time.

Peace, Mike

On 2/8/07, Michael <[EMAIL PROTECTED]> wrote:


  I found the solution.

I had to override the ListBase class in my List compnent extention,
not the List class itself as it was just overriding the ListBase
class drawHighlightIndicator() function.

//
// Override drawHighlightIndicator() function from ListBase
//
/** Import ListBase, IListItemRenderer, Sprite and Graphics classes
* to override drawHighlightIndicator() function in ListBase
*/
override protected function drawHighlightIndicator(
indicator:Sprite, x:Number, y:Number,
width:Number, height:Number, color:uint,
itemRenderer:IListItemRenderer):void
{
var g:Graphics = Sprite(indicator).graphics;
g.clear();
//g.beginFill(color1); //** no fill on rollover highlight
g.lineStyle(3,color2,1);//add lineStyle to add 3 pt. border
g.drawRect(0, 01, width, height);
//g.endFill();

indicator.x = x;
indicator.y = y;
}
//

--- In flexcoders@yahoogroups.com ,
"Michael" <[EMAIL PROTECTED]> wrote:
>
> I'm fairly new at this and am trying to extend a List component so
> that a rectangle will appear round the selected line (and around
the
> roll-over) instead of a solid color.
>
> I'm assuming that the focusRect property that is inherited from
the
> InteractiveObject is the one I need to deal with, but I can't seem
to
> figure out how to use it.
>
> Are there any examples out there that I could see??
>

 





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

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

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


Re: [flexcoders] Scoping Issue

2007-02-08 Thread Michael Schmalle

Same issue here,

As a moderator of the flexcomponent mailing list, PLEASE do not cross post
on flexcoders and flexcomponents.

I guarantee you half your questions will not be answered when you do this.

If it is a component question dealing with the framework ask on flex
components, if it is anything other ask on flexcoders.

Peace, Mike

On 2/8/07, xmrcivicboix <[EMAIL PROTECTED]> wrote:


  Hi folks. I'm a novice at flex/as3. I ran into this scoping problem. I
want to find a way to store all the data I retrieve into a static class
member and access where ever and whenever I like. However, it seems as
if the static member is not in scope. Here are my codes

--

http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">









UserDataRequest.as
--
package com
{
import mx.rpc.http.HTTPService;
import mx.rpc.events.ResultEvent;
import com.UserData;
import mx.collections.ArrayCollection;
import mx.rpc.events.FaultEvent;

public class UserDataRequest extends HTTPService
{
public function UserDataRequest(URL:String)
{
super(URL);
this.url = URL;
this.resultFormat = "e4x";
this.addEventListener(ResultEvent.RESULT, resultListener);
this.addEventListener(FaultEvent.FAULT, faultLister);
this.send();
}

public function faultLister(event:FaultEvent): void
{
trace(event.fault.message);
}

public function resultListener(event:ResultEvent): void
{
UserData.userInfo = (event.result.user) as ArrayCollection;
}
}
}

UserData.as
--
package com
{
import mx.collections.ArrayCollection;

public class UserData
{
public static var userInfo:ArrayCollection = new
ArrayCollection;

public function UserData(){}

}
}

 





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

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

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


Re: [flexcoders] Re: Object.addEventListener vs.. adding them inline via MXML

2007-02-08 Thread Michael Schmalle

Ralf,

That is an interesting approach.

I just have never had the need for something like that.. yet.

Didn't I read somewhere that the order you add listeners is the order they
get dispatched in as3 now? Plus you can use priorities.

PS From an OOP standpoint, I wouldn't do it , I would just write a wrapper
method that calls it. Much better from a maintainence aspect and intent
aspect.

Peace, Mike

On 2/8/07, Ralf Bokelberg <[EMAIL PROTECTED]> wrote:


  Yes that's possible, but semantically it is slightly different.
Inside the binding tag, the sequence of function calls is given by the
sequence in your code.
If you use mulitple addEventListener calls the sequence is not guaranteed.


Another possibility, which maintains the sequence, would be to use an
anonymous function

myButton.addEventListener( MouseEvent.CLICK, function(){
 myFunction1();
 myFunction2();
 myFunction3();
})
Cheers,
Ralf.


On 2/7/07, dougmccune <[EMAIL PROTECTED]> wrote:
>
>   You can make as many calls to addEventListener as you want. So you can
> add 2 or more event listeners that get triggered for the same event.
>
> So something like:
> myButton.addEventListener(MouseEvent.CLICK, myFunction1);
> myButton.addEventListener(MouseEvent.CLICK, myFunction2);
> myButton.addEventListener(MouseEvent.CLICK, myFunction3);
>
> All three of the above functions would get called when the event
> triggers. You can remove each of these separately as well by using
> removeEventListener and specifying the particular function you want
> removed.
>
> Doug
>
> --- In flexcoders@yahoogroups.com , "Mike
> Anderson" <[EMAIL PROTECTED]> wrote:
> >
> > Hello All,
> >
> > I have a problem, and maybe I am overlooking something here...
> >
> > What I need to do, is attach multiple functions, to an Event for a
> > particular Component.
> >
> > Using inline MXML, this is easy - you just separate out each function,
> > with a semi-colon and list them one after another.
> >
> > BUT, I am trying NOT to put my functions within the MXML - I am using
> > Code-Behind, and I need to add my Event Listeners within the
> > ActionScript - using the Object.addEventListener() method.
> >
> > Thing is, how do I add several functions using this type of
> methodology?
> > Or can it even be done?
> >
> > Thanks in advance for any help you can offer regarding this,
> >
> > Mike
> >
>
>


--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35

 





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

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

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


Re: [flexcoders] tree of extended components? possible?

2007-02-08 Thread Michael Schmalle

Yes,

Look at the itemRenderer property of the Tree. It's exactly what you want.

You might also check out dataDescriptiors if your model is complicated and
you want to extend the tree using your custom component
children(itemRenderer) and model.

Peace, Mike

On 2/8/07, tinkiknit <[EMAIL PROTECTED]> wrote:


  Hello...

Here is my idea. I'm working on a query tool for a simple data
repository. I have 3 operators, AND, OR and NOT. What I would like to
do is use a tree control to form the queries.

Example in rudimentary text drawing:

AND
|
- query term
|
- query term
+

(the plus sign is to open up a new term builder (this is my custom
component, already coded)

Is it possible to have custom components as the children of a tree
node? ie to have them as leaves?

Tried to search the archive for this but I don't think I had a decent
search query to come up with anything...

Thanks for any help!

Christine

 





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

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

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


[flexcoders] Stealth-mode Startup seeks Superstar Software and User Interface Developer (SF Bay Area)

2007-02-08 Thread Michael Sha

Tired of working for a big company where things move slowly and it's hard to
make an impact at the level of shaping the course of the company?  Not
sharing in the upside when the projects you work so hard on are successful?
Want to join a small team of people passionate about creating something that
will have a huge impact on people?

We are a company who thinks figuring out how to invest your money is too
difficult.  We have a vision of how to revolutionize the way people invest
and are looking for a small number of talented superstars who are excited
about that vision.  If you want to play a critical role as an early member
of a consumer web startup which could put a lot of large financial services
companies out of business, we need to talk.  The founding team has years of
experience building consumer internet products that have been used by
millions of customers and have generated well over $100MM in profit.

You are someone who:

  - Is scary smart and someone we can trust will find the right answers
  to hard problems you may have never solved before.
  - Is technically brilliant, versatile, and creative.
  - Your teammates love working with.  You also have friends like you
  who would love to work with you as we continue to grow.
  - Will passionately bust your ass at the prospect of building
  something that will change the way people invest.

Specifically, we need people who have valuable experience designing and
building highly-available and fault tolerant consumer web applications with
performance,  scalability, stability, and security in mind.

We are looking for a user interface engineer who is very adept at:

  - Innovative approaches to UI design (AJAX, Flex/Actionscript/Flash)
  - Designing and implementing production websites (HTML, CSS, XML,
  Javascript, etc.)
  - HCI principles and UI best practices, and incorporating this
  experience into the concept development process
  - Building technology at the crossroads of back-end functionality and
  front-end design
  - Managing cross-browser compatibility issues
  - LAMP (PHP, Python, Perl)

We are also looking for a software engineer who is extremely versatile and
has particular experience with:

  - Distributed systems (hands-on experience preferred, academic
  experience is OK)
  - Database experience (optimizing SQL and writing software that uses
  SQL to access databases)
  - C/C++

You will:

  - Start with ideas, design products and features, architect a
  technical solution, then build, test, and launch it.
  - Be an integral member of our team and help shape our future.
  - Help build and grow the engineering team as we expand over time.  If
  you also want to lead this team, that's in the cards, if you show us you
  can.

We will:

  - Be a group of the smartest, most trustworthy, passionate, and
  interesting people you know.
  - Make sure you have what you need to be happy and productive.
  - Reward you with a rich mixture of cash and equity compensation (can
  be heavily weighted towards equity if you seek high risk for high reward)
  - Make great teammates united around a vision of how to solve some
  significant problems for people.

Interested candidates should send your resume to [EMAIL PROTECTED] .
Please also include in your email a summary what you're been up to for the
past few years that makes you the right person for our team.


Re: [flexcoders] Override owner in TreeItemRenderer

2007-02-10 Thread Michael Schmalle

Hi,

you need to;

ExtendedTree(owner).setPath([EMAIL PROTECTED]);

You have to cast.

Peace, Mike

On 2/10/07, syabro <[EMAIL PROTECTED]> wrote:


  I need a send [EMAIL PROTECTED] to an owner (tree). I've
extend Tree class and write function Tree.setPath();

But when I tried to use this function as owner.setPath Flex says
"Call to a possibly undefined method setPath through a reference with
static type flash.display:DisplayObjectContainer.";

How can I use this function?

package CellRenderers
{

import mx.controls.treeClasses.*;
import mx.collections.*;
import flash.ui.ContextMenu;
import flash.ui.ContextMenuItem;
import flash.ui.ContextMenuBuiltInItems;
import flash.events.ContextMenuEvent;
import flash.events.ContextMenuEvent;
import flash.events.MouseEvent;
import ed.ETree;


public class ETreeItemRenderer extends TreeItemRenderer
{

public function ETreeItemRenderer()
{
super();
this.addEventListener(MouseEvent.MOUSE_OVER,
mouseOverEvent);
}

public function mouseOverEvent(event:MouseEvent):void
{
owner.setPath([EMAIL PROTECTED]);
}
}
}

 





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

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

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


Re: [flexcoders] Re: Want the SWEETEST Flex theme(s) ever? Contest!

2007-02-11 Thread Michael Schmalle

Haha,

How can you even take this seriously?

This has 'infomercial' written all over it!

Peace, Mike

On 2/11/07, superstella_uk <[EMAIL PROTECTED]> wrote:


  --- In flexcoders@yahoogroups.com ,
"Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:

I agree. If it was a serious offer, the author would have some themes
to show, or at least a website.

As it stands, I suspect its just a way to collect your email address
and then spam you. I wish people wouldnt forward these 'offers' on,
but there you go

>
> Is there a site with these themes? I'm not sure if this is serious or
> not... if you're pushing Flex themes, why not show us?
>
> Brendan
>
>
>
> On 2/10/07, Chad <[EMAIL PROTECTED]> wrote:
> >
> > Thought my friends and fam here on the list would be very
interested:
> >
> > ---
> >
> > Would you like an eye-popping, application differentiating, super
fresh
> > theme for your
> > next RIA?
> >
> > Want an instant turn-key solution to give your app it's own unique
look
> > without needing to
> > spend a million bucks (and hours) hiring a savvy designer?
> >
> > Don't want to spend the next two weeks locked in your closet trying to
> > figure it out
> > yourself- just to come up with something half-assed?
> >
> > Let's be serious, you want to continue focusing on what you do best -
> > developing SWEET
> > RIAs'. Now, finally... you can!
> >
> > Win your FREE, beautifully designed, professional Flex Theme:
> > -
> >
> > We have some beautifully designed professional Flex themes that we've
> > spent weeks and
> > weeks developing. They are ready for instant use in your hot new
> > world-changing RIAs'.
> > We eat, drink, breath, and sleep shockingly beautiful UI design.
> >
> > HOW DO I WIN?
> >
> > Email me a quick note answering the following 10 questions:
> >
> > [EMAIL PROTECTED] 
> >
> > WHATS THE PRIZE?
> >
> > One theme that you PERSONALLY can use however you see fit. That's
right,
> > you can even
> > use it in corporate ($$$) applications with unrestricted usage.
Anything
> > you want, except
> > selling the theme itself or distributing it to others.
> >
> > WHO WINS?
> >
> > I will select a lucky handful of people- heck maybe a bunch
depending on
> > how good your
> > responses are!
> >
> > 10 SIMPLE QUESTIONS (please respond via EMAIL to be eligible -
> > [EMAIL PROTECTED] ):
> >
> > 1) On a scale of 1-10 (1 least, 10 the most) do you and your clients
> > realize how critically
> > important it is for your RIA's theme/look and feel to be visually
> > different than others
> > currently on the market?
> >
> > You: 
> >
> > Your clients: 
> >
> > 2) How many RIA's will you be working on in the coming year?
> >
> > 3) Percentage wise, will these apps be customer/public facing or
employee
> > facing?
> >
> > Customer/public: %
> > Employee: %
> > Other: %
> >
> > 4) Out of these, how many will require or benefit from a custom
theme's
> > look and feel?
> >
> > Require: %
> > Benefit from: %
> >
> > 5) What kind of cost and time do you budget for an RIA's UI (user
> > interface) theme / look
> > and feel?
> >
> > Time: 
> > Cost: $
> >
> > 6) How many design revisions does the theme/look and feel typically go
> > through until the
> > stake-holders give you the thumbs up?
> >
> > 7) How much MORE time and money do you typically end up spending on a
> > RIA's theme/
> > look and feel than originally had anticipated? What does the total
cost
> > end up being?
> >
> > More time: 
> > More money: $
> > Total amount of time: 
> > Total cost: $
> >
> > 8) What would you consider a fair price for a custom UI Theme
designed and
> > built uniquely
> > for your application? Including all time required to consult with
you or
> > your client to
> > determine the demographics, use cases, design direction,
specifications,
> > and all revisions.
> > Specifically, to not even think about the UI Theme mess so you can
focus
> > specifically on
> > the RIA development itself?
> >
> > a) $2+
> > b) $15000-$2
> > c) $1-$15000
> > d) $7500-$1
> > e) $5000-$7500
> > f) $3500-$5000
> > g) $2500-$3500
> > h) $1500-$2500
> > i) $750-$1500
> > j) $400-750
> > k) less than $400
> >
> > 9) What would you pay for a shared UI Theme? i.e.: a pre-built
> > high-quality theme that is
> > sold, but not necessarily used, to a limited or unlimited number
of people
> > as an instant
> > solution.
> >
> > Limited: $__
> > Unlimited: $__
> >
> > 10) What best describes you (pick all that apply):
> >
> > a) An individual consultant/freelancer
> > b) In a company that offers RIA development services
> > c) In a company that is interested in developing an RIA
> > d) In a company that has built RIAs in the past
> > e) a formally trained developer
> > f) a formally trained designer
> > g) management
> > g) Other: 
> >
> > Thats it! Thanks for the help and good luck!
> >
> > Chad
> >
> >
> >
>
>
>
> --
> Brendan Meutzne

Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Michael Schmalle

Hi,

I was expecting to get ready and fight over this stuff, but hey, you are
sticking with Adobe's conventions.

I don't think there is really anything I disagree with.

Although I do use in my component classes,

dragButton_mouseDownHandler(event:MouseEvent):void

When you start getting the same event handlers for differnet instances you
need this way to separate them.

IE
systemManager_mouseMouseDownHandler(event:MouseEvent):void

Thanks for getting this out.

Peace, Mike

On 2/10/07, jer_ela <[EMAIL PROTECTED]> wrote:


  Fabio, great work.


--- In flexcoders@yahoogroups.com , "Fabio
Terracini" <[EMAIL PROTECTED]> wrote:
>
> Folks,
>
> As my commitment to community I'm releasing, with DClick support, our
> "Adobe Flex Coding Guidelines", a document about Flex (MXML and
> ActionScript) coding conventions that we use on a regular basis.
>
> The objective is clear: provide a common and consistent language to
> help code comprehension between developers. The practices established
> in this document are based on Java conventions, Flex 2 SDK and DClick
> team experience (including myself).
>
> By releasing this document, the idea is to help the community improve
> their Flex code by using coding conventions as well and hear feedback
> from community to continuously improve this document, that by now is a
> community asset.
>
> I'll be happy to have volunteers to form a committee or something to
> evolve this project further.
>
> This way, comments on this document (including the best practices) are
> very welcome! Involve yourself in this flexcoders thread, at the
> flexdev (listaflexdev.org - portuguese list on Flex) or at DClick
> weblog
(http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/)
>
> English version:
>

http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf
>
> Portuguese version:
>

http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-portugues.pdf
>
> Thanks,
> Fabio Terracini
>

 





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

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

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


Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Michael Schmalle

 I think it makes code less readable and


Oh lets all agree to disagree on this one.

Which side do you butter your bread? On the top or bottom, what??? On the
sides!!! ?

I can't stand curly braces on the method line, doesn't allow a space from
the method signature to fully read and seems cramped to me.

But that is my point, you will never get people to agree on spaces, braces
and whatever else developers have a habit doing.

... Just because Java / C++ does it, doesn't mean its right. Things always
evolve.

just kidding, maybe.

Peace, Mike

On 2/11/07, lepusmars <[EMAIL PROTECTED]> wrote:


  I agree, a very interesting read, but one thing I have to disagree
with and bothers me a lot that Flex Builder does this when it creates
classes. "Close curly braces in its own line at the same position in
which the open curly brace is"... nothing bothers me more than a curly
brace on it's own line, I think it makes code less readable and
contributes to excessive scrolling when editing and reviewing code.
Oh and curly braces on case statements is weird, but actually a good
convention... that will take some relearning to work into my code.

For the most part I like what you have, I'd like to use it as a
starting point for my own organization. I think I've come from a
different wing of the java development community, since there is a lot
that bucks my own traditions.

Paul

--- In flexcoders@yahoogroups.com , "Ralf
Bokelberg"
<[EMAIL PROTECTED]> wrote:
>
> Hi Fabio
>
> I think it is a good document, beside the whitespace paragraphs.
> Distribution of whitespace is always worth a discussion :)
>
> There is only one thing, that makes me wonder.
> If methods should start with a verb, why don't you prefer
> handleMouseClick() over mouseClickHandler() ?
>
> Cheers,
> Ralf.
>
>
> On 2/10/07, Fabio Terracini <[EMAIL PROTECTED]> wrote:
> >
> > Folks,
> >
> > As my commitment to community I'm releasing, with DClick support, our
> > "Adobe Flex Coding Guidelines", a document about Flex (MXML and
> > ActionScript) coding conventions that we use on a regular basis.
> >
> > The objective is clear: provide a common and consistent language to
> > help code comprehension between developers. The practices established
> > in this document are based on Java conventions, Flex 2 SDK and DClick
> > team experience (including myself).
> >
> > By releasing this document, the idea is to help the community improve
> > their Flex code by using coding conventions as well and hear feedback
> > from community to continuously improve this document, that by now is a
> > community asset.
> >
> > I'll be happy to have volunteers to form a committee or something to
> > evolve this project further.
> >
> > This way, comments on this document (including the best practices) are
> > very welcome! Involve yourself in this flexcoders thread, at the
> > flexdev (listaflexdev.org - portuguese list on Flex) or at DClick
> > weblog
(http://blog.dclick.com.br/2007/02/10/adobe-flex-coding-guidelines/
> > )
> >
> > English version:
> >
> >

http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-english.pdf
> >
> > Portuguese version:
> >
> >

http://blog.dclick.com.br/wp-content/uploads/adobe-flex-coding-guidelines-v12-portugues.pdf
> >
> > Thanks,
> > Fabio Terracini
> >
> >
>
>
>
> --
> Ralf Bokelberg <[EMAIL PROTECTED]>
> Flex & Flash Consultant based in Cologne/Germany
> Phone +49 (0) 221 530 15 35
>

 





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

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

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


Re: [flexcoders] Re: No core library?

2007-02-13 Thread Michael Schmalle

Hi,

One solution although hack will work;

load up a UIComponent, call describeType()

flash.utils.describeType

either trace that to the output pane and copy or save it to a file during
runtime.

You will have ALL of the information you need regarding classes to Object in
the XML file.

This will get you Sprite, DisplayObject, InteractiveObject etc but not
Number etc.

Peace, Mike

PS with this way, there is no errors, just getting them all.

On 2/13/07, arne.deutsch <[EMAIL PROTECTED]> wrote:


  The problem with the xml files (that are in the SWCs, too) is, that
they only contain descriptions which classes exist. What I need is not
only the names but also a desription of the interface of these classes
(methods, method arguments, return types etc.). That is not in the
xml, is it?

 





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

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

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


Re: [flexcoders] Continuations support? or smart sleep()?

2007-02-14 Thread Michael Schmalle

Hi,

yeah he timer class does it but;

function example {
trace("before");
sleep(2000);
trace("after 2 seconds");
}

Will not work. The Flash player exectues in order of the stack. So, you
can't have a sleep method inside a method block and halt the method block.

Although something like this might be what you looking for.

function example {
trace("before");
sleep(2000, exectueAfter, "something", 1);
}

function sleep(milli:Number, func:Function, ...rest):void
{
callMethod = func
callArgs = rest
... set up timer and handlers, run timer
}

function timer_timerEndHandler(event:TimerEvent):void
{
  callMethod(callArgs)
}

function exectueAfter(arg1, arg2)
{
trace("after 2 seconds");
}

This is about as close as you will get to a 'sleep' method.

Peace, Mike

On 2/14/07, Igor Costa <[EMAIL PROTECTED]> wrote:


  Conley

You could check out the Timer Class that can do this for you exactly in
the way you need it.


On 2/14/07, j.conley < [EMAIL PROTECTED]> wrote:
>
>
> I was wondering if there are any plans to consider continuation
> support in flash/flex? ...predominantly to support the concept of a
> smarter "Thread.sleep(n)" without blocking or disrupting the
> single-threaded execution model.
>
> for context, here is a "sleep" pseudo-example using the continuations
> concept:
>
> function example {
> trace("before");
> sleep(2000);
> trace("after 2 seconds");
> }
>
> function sleep(sleep_millis:int) {
> var savepoint:Continuation = Continuations.new(); // creates a
> holder that will capture the execution stack state at the next suspend()
> setTimeout(function(event:Event):void {
> Continuations.resume(savepoint); // resumes the
> saved execution stack
> },sleep_millis);
> Continuations.suspend(savepoint);
> }
>
> For my purposes, I am writing a general-purpose tool for developers
> that would locate one or more components in the UI hierarchy (by some
> criteria), then return those components so they could interact with
> them.
> In searching for said components, I have come across embedded
> SWFLoaders which are not yet finished loading/reloading, and sleep()
> (via continuations) would allow checking it's state periodically and
> not disrupt the execution stack, callers code or block the overall
> application.
>
> There are several other cases where this would be useful, but I just
> wanted to start a dialog on it.
>
>


--

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

 





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

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

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


Re: [flexcoders] Continuations support? or smart sleep()?

2007-02-14 Thread Michael Schmalle

callMethod.apply(null, callArgs)


yeah, your right, always get those backwards.

Peace, Mike

On 2/14/07, Dirk Eismann <[EMAIL PROTECTED]> wrote:


 callMethod(callArgs)
should be

  callMethod.apply(null, callArgs)

instead I believe. Otherwise it would just pass the rest Array to the
function and not the single parameters contained within the rest Array.

Dirk.

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Michael Schmalle
*Sent:* Wednesday, February 14, 2007 4:32 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Continuations support? or smart sleep()?

Hi,

yeah he timer class does it but;

function example {
trace("before");
sleep(2000);
trace("after 2 seconds");
}

Will not work. The Flash player exectues in order of the stack. So, you
can't have a sleep method inside a method block and halt the method block.

Although something like this might be what you looking for.

function example {
trace("before");
sleep(2000, exectueAfter, "something", 1);
}

function sleep(milli:Number, func:Function, ...rest):void
{
callMethod = func
callArgs = rest
... set up timer and handlers, run timer
}

function timer_timerEndHandler(event:TimerEvent):void
{
   callMethod(callArgs)
}

function exectueAfter(arg1, arg2)
{
trace("after 2 seconds");
}

This is about as close as you will get to a 'sleep' method.

Peace, Mike

On 2/14/07, Igor Costa <[EMAIL PROTECTED]> wrote:
>
>   Conley
>
> You could check out the Timer Class that can do this for you exactly in
> the way you need it.
>
>
> On 2/14/07, j.conley < [EMAIL PROTECTED]> wrote:
> >
> >
> > I was wondering if there are any plans to consider continuation
> > support in flash/flex? ...predominantly to support the concept of a
> > smarter "Thread.sleep(n)" without blocking or disrupting the
> > single-threaded execution model.
> >
> > for context, here is a "sleep" pseudo-example using the continuations
> > concept:
> >
> > function example {
> > trace("before");
> > sleep(2000);
> > trace("after 2 seconds");
> > }
> >
> > function sleep(sleep_millis:int) {
> > var savepoint:Continuation = Continuations.new(); // creates a
> > holder that will capture the execution stack state at the next
> > suspend()
> > setTimeout(function(event:Event):void {
> > Continuations.resume(savepoint); // resumes the
> > saved execution stack
> > },sleep_millis);
> > Continuations.suspend(savepoint);
> > }
> >
> > For my purposes, I am writing a general-purpose tool for developers
> > that would locate one or more components in the UI hierarchy (by some
> > criteria), then return those components so they could interact with
> > them.
> > In searching for said components, I have come across embedded
> > SWFLoaders which are not yet finished loading/reloading, and sleep()
> > (via continuations) would allow checking it's state periodically and
> > not disrupt the execution stack, callers code or block the overall
> > application.
> >
> > There are several other cases where this would be useful, but I just
> > wanted to start a dialog on it.
> >
> >
>
>
> --
> 
> Igor Costa
> www.igorcosta.org
> www.igorcosta.com
> skype: igorpcosta
>
>


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

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

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

 





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

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

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


RE: [flexcoders] Right click on Tree's item

2007-02-14 Thread Michael Imhoff
Hi Pablo,

 

First, you need to use the itemRollOver event of the  component to
track the last item that was rolled over, and save it to a variable for
later use. Then when the ContextMenuEvent.MENU_SELECT event is triggered,
you will refer back to this variable as it holds a reference to the
itemRenderer and therefore the data you need access to.

 

I put a working example with source code up for you at the following url:

http://michael.omnicypher.com/2007/02/flex-trees-with-context-menu_14.html

 

Hope this helps and have a great day,

Michael

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pablo
Sent: Wednesday, February 14, 2007 11:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Right click on Tree's item

 

I have the Tree and ContextMenu associated with it. When I select menu item
from context menu I cant get Tree's item was right-clicked. How I can get
this Tree's item?

import mx.controls.listClasses.* ;

private function createContextMenu():void
{
m = new ContextMenu();
m.hideBuiltInItems();
var customItemsArr:Array = new Array();
var buy:ContextMenuItem = new ContextMenuItem("Detailed");
buy.addEventListener("menuItemSelect", buyHandler);
customItemsArr.push(buy);
m.customItems = customItemsArr;
callTree.contextMenu=m;
}

private function buyHandler(e:ContextMenuEvent):void
{
trace(e.mouseTarget);
trace(ListBaseContentHolder(e.mouseTarget).owner);
trace(ListBaseContentHolder(e.mouseTarget).name);
trace(ListBaseContentHolder(e.mouseTarget).instanceIndex);
}

in traces my trying to catch the Tree's item...

 



RE: [flexcoders] Windows Vista & Flex

2007-02-16 Thread Michael Imhoff
Hi Bryan,

 

Sorry to hear about your experiences.  I also have a Dell D820 running RC1
of Vista Ultimate and haven't had any of these issues.  The only issue I've
had was with incorrect problem information showing up in flex builder, which
I explained in the following blog post, but I honestly think this was a flex
builder issue.

 

http://michael.omnicypher.com/2007/01/wheres-problem.html

 

I was running Flex Builder 2.0 but have now upgraded to 2.0.1.  I hope I
don't run into these issues when installing the final release of Vista.

 

Has anyone else made the jump from RC1 to the Final?

 

Hope everyone has a good weekend,

Michael

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bryan Clover
Sent: Friday, February 16, 2007 10:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Windows Vista & Flex

 

Hi All,

I'm new to this group and thought I'd start a topic where people can 
post their experiences with Flex Builder 2 and Windows Vista. Here is 
mine:

1. Upgraded from Windows XP Home to Windows Vista Business.
Chose the upgrade path..not the full reformat and clean install.
(I wanted to see if I could get anway with not having to install the 
5 million apps & utilities I use. Might have been mistake #1)

2. Day 1 - Vista appeared to install and run fine. Flex Builder worked 
okay. However it did seem to compile / debug slower.

3. Day 2 - The trouble starts! Several times Flex Builder just freezes
up. I can't even use task mangager to quit the application. I'm
forced to do a manual reboot. Reminds me of the old Mac crashes!
Ek. You know this is just bad stuff! This happened 6 times or
so during a full day of work. Occurred when trying to SAVE WORK!
Ironic, but saving became something I was AFRAID TO DO!

4. Day 3 - Flex Builder really acting funky now. When I try to
compile / debug nothing appears in Firefox but a blank white page.
This happens every time I try to debug or run my apps. So I reboot.
Still nothing! Forced to uninstall Flex Builder.

5. After uninstalling Flex Builder I re-install it. Everything goes
smoothly during install. Attempt to start application and get
funky error that refers me to an error log. I locate error log,
read thru it, and realize I'm screwed and can't fix things.
Uninstall and re-install multiple times. Same deal!
NOTE: Using trial version installer of Flex Builder 2.0.1

6. Realizing I can no longer use Flex Builder, I am forced to go
back to Windows XP. While I reformat my machine (which is a
Dell Latitude D820, Dual Core, Vista Capable machine) I'll be
pulling out my Mac Powerbook.

Recommendation: Forget Windows Vista! Stay with XP...or even better,
just stick with the Mac in the first place! I always use both
platforms...just because...and my Mac always comes out on top!

I'm curious to hear what other people have experienced. Please share 
your experience

=BC=

 



RE: [flexcoders] How to show theme when app is loading?

2007-02-16 Thread Michael Imhoff
You might want to take a look at the following blog post which discusses
preloaders.

 

http://www.onflex.org/ted/2006/07/flex-2-custom-preloaders.php

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bartonlistick
Sent: Friday, February 16, 2007 4:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to show theme when app is loading?

 

I'm trying to figure out how to seemlessly display my theme's 
gradient (or background image) right at the start of the load phase 
and all the way through initialization. In other words, I don't want 
the default theme during the load, with a visual "glitch" when my 
custom theme kicks in.

Here's what I've learned so far:

- If you set the style on the app's "initialize" 
or "preinitialize", those changes aren't visible during the app's 
loading phase, so you end up getting the default theme until the 
loading is complete.

- The backgroundColor property takes effect right at the start of 
loading, but backgroundGradientColors (to get a nice gradient during 
the load) doesn't seem to work.

- The backgroundImage property will display an image after about 1 
second (into the load), but the image doesn't fill the window (i.e. 
it isn't scaled) until after the load.

Anyone have any ideas?

 



Re: [flexcoders] backgroundImage on Canvas, Not working in Skinned app?

2007-02-18 Thread Michael Schmalle

Code you post your code and css?

Can't really help without that.

Peace, Mike

On 2/18/07, lostinrecursion <[EMAIL PROTECTED]> wrote:


  Could someone help me with this? I am going bananas.

I have a skinned app that I am developing (custom skinned based on the
Obsidian theme, if you know what that is) - Despite every attempt to
apply a backgroundImage property to a Canvas, it does not stick.

The odd thing is that it does in fact show up in design view.

But when the application is compiled an run in a browser... no image
appears. It is an embedded image and I don't know why it doesn't show
in the final SWF.

Does anyone know what could be causing this?

Thanks!

 





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

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

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


Re: [flexcoders] This would make me very happy, a datagrid on STERIODS!

2007-02-19 Thread Michael Schmalle

I have been experimenting with styleNames in itemRenderers.

Which like he said would be;

styleNameField would access the correct formating in the model. It does
work.

There are a couple of options, still in the labs. ;-)

Peace, Mike

On 2/19/07, Ralf Bokelberg <[EMAIL PROTECTED]> wrote:


  How would you set these properties?

Cheers
Ralf.

On 2/19/07, boy_trike <[EMAIL PROTECTED]> wrote:
>
>   Am I the only poor slob out here who does NOT want to sub-class a
> datagrid to be able to
> control for each cell the:
>
> • Background color
> • Font Color
> • Font Size
> • Font Weight
>
> Is it possible that Adobe (or someone who I would be happy to pay $$$
> to) will come out
> with a datagrid with an option similar to the labelFunction that has
> these 4 fields passed to it
> so I can easily and programmatically set any of these parameters? Maybe
> its because I am
> coming from Delphi which has a few different grids that offer these
> features that I not
> satisfied with the current offerings. Please let me know if there are
> other BUSINESS
> developers who feel the same way. (if not, I will assume that I am more
> unique than my wife
> lets on!) However, I warn you, I do not handle disappointment very well!
>
> Bruce
>
>


--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35
 





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

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

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


Re: [flexcoders] broken: stacked AreaChart when using horizontal DateTimeAxis

2007-02-24 Thread Michael Luu
bump. can anyone help me out?


Re: [flexcoders] ButtonBar's child enabling

2007-02-26 Thread Michael Schmalle

Hi,

Try;

var searchIndex:int = 2;

var button:Button = getChildAt(searchIndex) as Button;
button.enable = false;

or use the other DisplayObjectContainer methods for getting a child
instance;

- getChildByName()
etc

Peace, Mike

On 2/24/07, metalbeard <[EMAIL PROTECTED]> wrote:


  Hi,
Is there anyway that we can set the enable property of a specific
button inside the buttonBar (a child of a buttonBar) to false?

I couldn't find it.

Wael

 





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

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

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


Re: [flexcoders] Finding out when an arraycollection in my model is set

2007-02-26 Thread Michael Schmalle

Hi,

Why not just make it a get, set bindable property in your ModelLocator? Then
you could dispatch and event or really whatever you want to do.

Peace, Mike

On 2/24/07, Webdevotion <[EMAIL PROTECTED]> wrote:


  Hello,

How can I now when my arraycollection in my modellocator is filled with
items ?
I tried using collectionEvent.collection_change, but it does not fire when

setting my AC like this in my command, after the remoting result handler:

model.library = new ArrayCollection(data.result);

What is the correct way ? ( I'm using Cairngorm )

 





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

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

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


Re: [flexcoders] ButtonBar's child enabling

2007-02-26 Thread Michael Schmalle

Oh, supposed to be

var button:Button = buttonBar.getChildAt(searchIndex) as Button;

Mike

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


Hi,

Try;

var searchIndex:int = 2;

var button:Button = getChildAt(searchIndex) as Button;
button.enable = false;

or use the other DisplayObjectContainer methods for getting a child
instance;

- getChildByName()
etc

Peace, Mike

On 2/24/07, metalbeard <[EMAIL PROTECTED]> wrote:
>
>   Hi,
> Is there anyway that we can set the enable property of a specific
> button inside the buttonBar (a child of a buttonBar) to false?
>
> I couldn't find it.
>
> Wael
>
>  
>




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

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

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





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

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

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


Re: [flexcoders] Basic inheritance question

2007-03-01 Thread Michael Schmalle

BTW,

You could put an else statement on that to throw() an error if you really
cared about the currentTarget not setting the style correctly.

I think this is the most elegantly decoupled way to attack the problem.

Peace, Mike

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


Or...

If you want to get really crazy and say what is the way you should do it
in perfection world, it would be;

if (event.currentTarget is IStyleClient)
   IStyleClient(e.currentTarget).setStyle("color", "red");

Peace, Mike

On 2/28/07, Jamal Romero <[EMAIL PROTECTED]> wrote:
>
>   Hi,
> Thanks for your reply. Yes that's what I wanted to
> say. The code will compile, I've tried it on
> www.flex.org online compiler and it did what expected
> without error. I think the compiler is not strict
> about type reference. But as has been said, it's
> better to type cast to the right ancestor or
> descendent an call the appropiate method. As coming
> from java land the java compiler won't tolerate this
> "error" if it is an error. When I get the target from
> the event it's not even a UIComponent, it's as been
> said an Object type. Anyway I'm still learning Flex.
> Java Swing id too slow, but I must say it wasn't a
> wast of time. It is a very elegant architecture but
> the problem is too slow. All the concept reading the
> Develp. Guide are familiar to me because they all
> implemented in Java Swing.
> Thanks
> Jairo
>
> --- Gordon Smith <[EMAIL PROTECTED] > wrote:
>
> > The Developer's Guide is wrong... you won't get a
> > compilation error if
> > you don't cast. However, casting is best practice so
> > that the compiler
> > can help you catch coding mistakes. For example,
> >
> > e.currentTarget.setSytle(...)
> >
> > would compile despite the typo, but throw a runtime
> > error. However,
> >
> > Button(e.currentTarget).setSytle(...)
> >
> > would not compile.
> >
> > - Gordon
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com ] On
> > Behalf Of Karl Johnson
> > Sent: Tuesday, February 27, 2007 10:27 AM
> > To: flexcoders@yahoogroups.com ;
> > flexcoders@yahoogroups.com 
> > Subject: RE: [flexcoders] Basic inheritance question
> >
> >
> >
> > In general you always want to cast something like
> > this - because
> > event.currentTarget is of type object and NOT
> > UIComponent or Button. But
> > since objects are loosely typed as type Object, then
> > you reference any
> > property or method you want at compile time. Often
> > at runtime though you
> > will hit errors unless it is properly casted. Your
> > sample application
> > was done in Flex 2 right?
> >
> > Definitely a best practice to be casting generic
> > objects like this to
> > the type of object you want to be working with to
> > avoid runtime errors
> >
> > Karl
> > Cynergy
> >
> > 
> >
> > From: flexcoders@yahoogroups.com  on
> behalf of
> > jairokan
> > Sent: Tue 2/27/2007 11:53 AM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Basic inheritance question
> >
> >
> >
> > Hi,
> > I'm reading the Developer's Guide and in the section
> > using Events, they
> > say on a paragraph that :
> > "If you try to call another method on the
> > currentTarget (for example,
> > the setStyle() method), Flex returns an error. The
> > setStyle() method is
> > defined on UIComponent, a subclass of DisplayObject.
> > Therefore, you must
> > cast currentTarget to UIComponent before calling the
> > setStyle() method"
> > for example:
> > 
> > 
> > 
> >
> > and e.currentTarget is of type Button. But Button
> > extends UIComponent,
> > so we don't have to upcast the reference because
> > setStyle method is
> > public and is available to Button object reference0.
> > I tried the code
> > without upcasting and it works.
> > Is the writer wrong or Am I missing something on the
> > concept.
> >
> > Thanks
> >
> > Jairo
> >
> >
> >
> >
> >
>
> __
> Food fight? Enjoy some healthy debate
> in the Yahoo! Answers Food & Drink Q&A.
> http://answers.yahoo.com/dir/?link=list&sid=396545367
>
>  
>




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

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

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





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

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

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


Re: [flexcoders] Getting a Third-Party Component into Builder 2?

2007-03-01 Thread Michael Schmalle

Hi,

Is it an SWC file?

If so, you need to go

CurrentProject -> right click, Properties -> Flex Build Path -> Library Path
Tab;

Then either choose, Add SWC Folder or Add swc.


From there you should be good to go.


Peace, Mike

On 2/28/07, Bruce H. Johnson <[EMAIL PROTECTED]> wrote:


  I downloaded a neat-looking speedometer chart component in a zip file.
I can extract with the directory structure (GaugeComponent\Gauge... etc.)

Now, how do I get Builder 2 to recognize the sucker is there? I've
tried File > Import..., pointing a Source Path at it, etc. I've spent
a couple hours in Builder Help so I'm obviously asking the wrong question.

 





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

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

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


Re: [flexcoders] Basic inheritance question

2007-03-01 Thread Michael Schmalle

Or...

If you want to get really crazy and say what is the way you should do it in
perfection world, it would be;

if (event.currentTarget is IStyleClient)
  IStyleClient(e.currentTarget).setStyle("color", "red");

Peace, Mike

On 2/28/07, Jamal Romero <[EMAIL PROTECTED]> wrote:


  Hi,
Thanks for your reply. Yes that's what I wanted to
say. The code will compile, I've tried it on
www.flex.org online compiler and it did what expected
without error. I think the compiler is not strict
about type reference. But as has been said, it's
better to type cast to the right ancestor or
descendent an call the appropiate method. As coming
from java land the java compiler won't tolerate this
"error" if it is an error. When I get the target from
the event it's not even a UIComponent, it's as been
said an Object type. Anyway I'm still learning Flex.
Java Swing id too slow, but I must say it wasn't a
wast of time. It is a very elegant architecture but
the problem is too slow. All the concept reading the
Develp. Guide are familiar to me because they all
implemented in Java Swing.
Thanks
Jairo

--- Gordon Smith <[EMAIL PROTECTED] > wrote:

> The Developer's Guide is wrong... you won't get a
> compilation error if
> you don't cast. However, casting is best practice so
> that the compiler
> can help you catch coding mistakes. For example,
>
> e.currentTarget.setSytle(...)
>
> would compile despite the typo, but throw a runtime
> error. However,
>
> Button(e.currentTarget).setSytle(...)
>
> would not compile.
>
> - Gordon
>
> 
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com ] On
> Behalf Of Karl Johnson
> Sent: Tuesday, February 27, 2007 10:27 AM
> To: flexcoders@yahoogroups.com ;
> flexcoders@yahoogroups.com 
> Subject: RE: [flexcoders] Basic inheritance question
>
>
>
> In general you always want to cast something like
> this - because
> event.currentTarget is of type object and NOT
> UIComponent or Button. But
> since objects are loosely typed as type Object, then
> you reference any
> property or method you want at compile time. Often
> at runtime though you
> will hit errors unless it is properly casted. Your
> sample application
> was done in Flex 2 right?
>
> Definitely a best practice to be casting generic
> objects like this to
> the type of object you want to be working with to
> avoid runtime errors
>
> Karl
> Cynergy
>
> 
>
> From: flexcoders@yahoogroups.com  on
behalf of
> jairokan
> Sent: Tue 2/27/2007 11:53 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Basic inheritance question
>
>
>
> Hi,
> I'm reading the Developer's Guide and in the section
> using Events, they
> say on a paragraph that :
> "If you try to call another method on the
> currentTarget (for example,
> the setStyle() method), Flex returns an error. The
> setStyle() method is
> defined on UIComponent, a subclass of DisplayObject.
> Therefore, you must
> cast currentTarget to UIComponent before calling the
> setStyle() method"
> for example:
> 
> 
> 
>
> and e.currentTarget is of type Button. But Button
> extends UIComponent,
> so we don't have to upcast the reference because
> setStyle method is
> public and is available to Button object reference0.
> I tried the code
> without upcasting and it works.
> Is the writer wrong or Am I missing something on the
> concept.
>
> Thanks
>
> Jairo
>
>
>
>
>

__
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

 





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

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

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


Re: [flexcoders] Can Flex really compete with AJAX?

2007-03-01 Thread Michael Schmalle

Heh,

And why is he 'comparing' Ajax to Flex.

Bottom line is, 'truly dynamic content' depends on what you are talking
about. If you are trying to take javascript and pigeon hole it into as3,
have fun, you can't.

The design patterns of the Flex framework are roots. A crafty developer can
spin almost anything dynamically with it.

Peace, Mike

On 3/1/07, slangeberg <[EMAIL PROTECTED]> wrote:


  You can do this in AS3:

var b:Button = new Button();
b.id = "myid" + 2;
trace( "b.id: "+b.id );

However, i'm guessing he means in the mxml, which i've experienced myself.
Hence you cannot do:



-Scott

On 3/1/07, Nick Collins <[EMAIL PROTECTED]> wrote:
>
>   What do you mean by "dynamic id"? I mean, you can pretty easily loop
> through a list of items in an XML file and assign one of their values as the
> id of the dynamically created object. Heck, I do this all the time with
> Actionscript 2 to create menus and such from an XML file.
>
> On 3/1/07, thetexaspsycho2003 < [EMAIL PROTECTED]> wrote:
> >
> >   I mean, creating something as simple as a dynamic ID is crucial in
> > creating truly dynamic content.
> >
> >
>


--

: : ) Scott
 





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

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

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


[flexcoders] firstTabStyleName?

2007-03-05 Thread Michael Imhoff
Does firstTabStyleName work for either the TabNavigator or TabBar?  I see
the style definitions in both classes, but I don't see how and/or if they
are implemented.

 

Thanks for your help,

Michael

 

 

 

 



Re: [flexcoders] File Exploer and Java + JRun4

2007-03-06 Thread Michael Schmalle

Hi as a moderator, could you please only post questions pertaining to
component development on flexcomponents, the question belongs on flexcoders.

Also, please do not cross post on the two lists.

Thanks, Mike

On 06 Mar 2007 00:48:59 -0800, Cato Paus <[EMAIL PROTECTED]> wrote:


  Hi All :)

I'm creating a File Explorer that grabs the files on your Java server,
I have made it so far that I can get dirs and files and uploading and
deliting files, and a viewer for img files and can run swf files inside
the main app. I started out with Kevin Hoyt's FileExplorer in Flex 1.5
But the java side are not my strong side. someone familier with the
java.io.* ? and want on to the project ?

Cato Paus

 





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

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

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


Re: [flexcoders] Overlaping tabs - is it possible ?

2007-03-07 Thread Michael Schmalle

Have fun,

One thing I think Tom is forgetting is that those tabs are arranged by
index. This also means that you have to accept that the order they appear is
the order of z index also.

The only way is to maintain a proxy array and completely re implement the
layout part of the tab bar.

This means ditching the box layout and doing it yourself.

Peace, Mike

On 3/7/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:


On Tuesday 06 Mar 2007, pitziilu wrote:
> Can this be done?

Sure, just extend the tab navigator and override the bits that draw the
buttons.

--
Tom Chiverton
Helping to proactively lead bleeding-edge functionalities
On: http://thefalken.livejournal.com



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







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

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

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


Re: [flexcoders] Set Button Icon at Runtime !!

2007-03-07 Thread Michael Schmalle

Hi,

You could use setStyle() at runtime and load a module that holds your assets
library.

Peace, Mike

On 3/7/07, bobrene07 <[EMAIL PROTECTED]> wrote:


  Hello,

i don't want to embed my image in my SWF, I want to set my button Icon
image at Runtime.

Do you know how i could possibly do that ??

Thx for ur help

Bob

 





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

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

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


Re: [flexcoders] Re: Set Button Icon at Runtime !!

2007-03-07 Thread Michael Schmalle

No,

You missed what I said..

A module library that has embedded images in the class library.

That is as close as you will get.

I have done this before.

Peace, Mike

On 07 Mar 2007 06:00:21 -0800, bobrene07 <[EMAIL PROTECTED]> wrote:


  It's not possible to creat a class object at runtime with an image in it
?

anyone ??

thx 4 ur help

bor

--- In flexcoders@yahoogroups.com , "Michael
Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> You could use setStyle() at runtime and load a module that holds
your assets
> library.
>
> Peace, Mike
>
> On 3/7/07, bobrene07 <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > i don't want to embed my image in my SWF, I want to set my button Icon
> > image at Runtime.
> >
> > Do you know how i could possibly do that ??
> >
> > Thx for ur help
> >
> > Bob
> >
> >
> >
>
>
>
> --
> Teoti Graphix
> http://www.teotigraphix.com
>
> Blog - Flex2Components
> http://www.flex2components.com
>
> You can find more by solving the problem then by 'asking the question'.
>

 





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

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

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


Re: [flexcoders] Panel height 100% don't scroll

2007-03-09 Thread Michael Schmalle
On 3/9/07, Norbert Csík <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have a simple Flex application running in a browser directly
> referencing the swf file. The application has a Panel element with
> height 100%. It works fine, has the correct size, but when the window
> gets too small the scroll bar appears in the Application not in the Panel.
>
> Can you tell me why? I thought the Panel should always be 100% of its
> parent container but it seems to be as big as its content.
>
> How can I achive that if the space is too small the scroll bar would
> be displayed in the Panel not in the Application?
>
> Thanks in advance, here's my sample code:
>
> 
> http://www.adobe.com/2006/mxml";>
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
>
> nOR
>
>

Hi, try adding this;



Peace, Mike

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

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

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


Re: [flexcoders] Mac style drop-down sheet

2007-03-10 Thread Michael Wills
Hmm something like this link?

http://weblogs.macromedia.com/mc/archives/2006/05/mac_os_x-lookin.cfm

Or something more specific to drop-downs?

Michael

ashifsayani wrote:
>
> Hi,
>
> I'd seen a posting where someone created a mac style drop-down sheet 
> in Flex. I can't seem
> to find the link anymore, does anyone remember who's blog it was on?
>
> thanks,
> Ashif
>
>  


Re: [flexcoders] Web Services: Nearing Wit's End

2007-03-10 Thread Michael Wills
Hi Shibli,

I defer to the experts on the details (I'm new to Flex) but I have 
gotten other services to work. A web service debugger has been a great 
asset in that development. Two popular ones are Charles 
(http://www.xk72.com/charles/) and Service Capture 
(http://kevinlangdon.com/serviceCapture/) although I can only vouch for 
Charles. I haven't used Service Capture before.

Perhaps using one of those or a utility like that you might be able to 
see what is and is not coming across the wire.

Hope that helps!

Michael

Shibli Zaman wrote:
>
> I’ve followed every single tutorial on consuming Web Services in Flex 
> and not a single one works with anything other than simple demo web 
> services available on the net. I’ve followed all the different methods 
> documented and followed each and every step in detail. Now, I’m at the 
> point that I am appealing for someone to take a look at my WSDL file 
> and tell me what I am doing wrong. If you’re interested in helping me 
> out please let me know. Thanks. --Shibli
>
>  


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

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

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

<*> 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] Chrome behind content?

2007-03-11 Thread Michael Schmalle

Well man, this is a hack and it works though :)

I had the same issue and so far this hasn't blown up in my face.

Try this on for size... the backgroundInstance is what is going behind the
content but infront of the border.

   override mx_internal function createContentPane():void
   {
   super.createContentPane();

   if (contentPane &&
   backgroundInstance)
   {
   var border:DisplayObject = rawChildren.getChildByName("border");
   var index:Number = (border) ? 0 : -1;

   rawChildren.setChildIndex(DisplayObject(backgroundInstance),
index + 1);
   rawChildren.setChildIndex(contentPane, index + 2);
   }
   }

Peace, Mike


On 10 Mar 2007 22:25:22 -0800, Jesse Warden <[EMAIL PROTECTED]>
wrote:


  I'm extending Canvas.  His base class, Container, decrees on line 4608
that all children are behind chrome.  I want the opposite.  I want my chrome
BEHIND the content; I want the content IN FRONT of my chrome.

However, since Container does all kinds of crazy over-writting of
DisplayObject methods and tucks them away in mx_internal and various other
private & final prefix's, I have no clue how to easily make my chrome inside
of rawChildren go backwards.  Obviously, setChildIndex doesn't work at this
point because the base class owns those methods as proxies now.

The hack, for now, is to NOT have my chrome draw a background.  If it
doesn't, I can click on children just fine.  That, however, sucks because I
want a background.  Figured 2nd hack is to just set the backgroundColor
property to my chrome's background, and redraw my chrome as a mask for the
background.  That is worse.

Suggestions?
 





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

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

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


Re: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Michael Schmalle

Paul > I'm not really sure what that is all about, Background isn't chrome
it
is background. Children need to be in front of background.

I have a spec where I need another background behind the view children and
in front of the border.

Trust me, I have 1000's of hours of investigation into this. This applies if
you are doing low level coding in the framework.

Not to mention, when the container holds more then 1 view child, the
children get put into a content pane. It is impossible to get something
behind child 0 without using this hack.

Jesse,

with the text area, after removing it from the display list did you set;

textField = null;

??

Peace, Mike

On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:


  Grr... works for everything but my Label.  Keeps whining about antiAlias
being null.  Had this happen last night (this morning?) when the TextField
isn't in the DisplayList, but gets measure called on 'em.  Fuggit,
everything else works; thanks a bunch Michael!


On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
>
> Thanks Michael, I'll try your code.
>
> Paul, if you look in mx.containers.Container, you can see how they
> override and abstract the DisplayList API so that you have 2 types of
> children; raw and regular.  This allows you to have "those you put in
> Canvas" and "those that make Panel".  For example, the title bar, close
> button, title, etc. are NOT something you want inside your Panel container
> to interact with your children.  If you put a CheckBox control into a Panel,
> you would expect only 1 child to be in your container (numChildren,
> getChildAt(0), etc.).  This allows you to build container components for
> others to use without "knowing" how your child setup works.
>
> On 3/11/07, Paul DeCoursey < [EMAIL PROTECTED]> wrote:
> >
> >   I'm not really sure what that is all about, Background isn't chrome
> > it
> > is background. Children need to be in front of background. I know at
> > one point I was having trouble with a background rendering over some
> > graphical elements that I had. So to fix that I did my graphical
> > elements on a child item, that way the canvas background rendered
> > behind my content. I'm not sure you have the same issue, but perhaps
> > you could use that technique to solve your issue. Create a container
> > with two children, one for display elements and one for chrome. Add
> > the chrome first and the children second and your children will be
> > above the chrome.
> >
> > Paul
> >
> >
> > --- In flexcoders@yahoogroups.com ,
> > "Jesse Warden" <[EMAIL PROTECTED]> wrote:
> > >
> > > I'm extending Canvas. His base class, Container, decrees on line
> > 4608 that
> > > all children are behind chrome. I want the opposite. I want my
> > chrome
> > > BEHIND the content; I want the content IN FRONT of my chrome.
> > >
> > > However, since Container does all kinds of crazy over-writting of
> > > DisplayObject methods and tucks them away in mx_internal and various
> > other
> > > private & final prefix's, I have no clue how to easily make my
> > chrome inside
> > > of rawChildren go backwards. Obviously, setChildIndex doesn't work
> > at this
> > > point because the base class owns those methods as proxies now.
> > >
> > > The hack, for now, is to NOT have my chrome draw a background. If it
> > > doesn't, I can click on children just fine. That, however, sucks
> > because I
> > > want a background. Figured 2nd hack is to just set the
> > backgroundColor
> > > property to my chrome's background, and redraw my chrome as a mask
> > for the
> > > background. That is worse.
> > >
> > > Suggestions?
> > >
> >
> >
>
 





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

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

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


Re: [flexcoders] Re: Chrome behind content?

2007-03-11 Thread Michael Schmalle

Could you post the code of the problem?


Are you talking to me?

I don't have a problem, Jesse asked a question, I threw some code at him to
try and that is that.

I don't want to create a second child and hack that way, I want a rawChild
that is it.

I was just responding to him, what I am doing works for the container I
made. It's a Container subclass not a composite.

Peace, Mike

On 11 Mar 2007 18:08:17 -0700, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  Could you post the code of the problem? I think I understand the
problem but I need to see what you are doing to help with the solution.

I understand the background in front of things now, but I don't think
that it was the wrong way to code chrome. It fits too narrow a use case.

p

--- In flexcoders@yahoogroups.com , "Michael
Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Paul > I'm not really sure what that is all about, Background isn't
chrome
> it
> is background. Children need to be in front of background.
>
> I have a spec where I need another background behind the view
children and
> in front of the border.
>
> Trust me, I have 1000's of hours of investigation into this. This
applies if
> you are doing low level coding in the framework.
>
> Not to mention, when the container holds more then 1 view child, the
> children get put into a content pane. It is impossible to get something
> behind child 0 without using this hack.
>
> Jesse,
>
> with the text area, after removing it from the display list did you set;
>
> textField = null;
>
> ??
>
> Peace, Mike
>
> On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> >
> > Grr... works for everything but my Label. Keeps whining about
antiAlias
> > being null. Had this happen last night (this morning?) when the
TextField
> > isn't in the DisplayList, but gets measure called on 'em. Fuggit,
> > everything else works; thanks a bunch Michael!
> >
> >
> > On 3/11/07, Jesse Warden <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks Michael, I'll try your code.
> > >
> > > Paul, if you look in mx.containers.Container, you can see how they
> > > override and abstract the DisplayList API so that you have 2
types of
> > > children; raw and regular. This allows you to have "those you
put in
> > > Canvas" and "those that make Panel". For example, the title
bar, close
> > > button, title, etc. are NOT something you want inside your Panel
container
> > > to interact with your children. If you put a CheckBox control
into a Panel,
> > > you would expect only 1 child to be in your container (numChildren,
> > > getChildAt(0), etc.). This allows you to build container
components for
> > > others to use without "knowing" how your child setup works.
> > >
> > > On 3/11/07, Paul DeCoursey < [EMAIL PROTECTED]> wrote:
> > > >
> > > > I'm not really sure what that is all about, Background isn't
chrome
> > > > it
> > > > is background. Children need to be in front of background. I
know at
> > > > one point I was having trouble with a background rendering
over some
> > > > graphical elements that I had. So to fix that I did my graphical
> > > > elements on a child item, that way the canvas background rendered
> > > > behind my content. I'm not sure you have the same issue, but
perhaps
> > > > you could use that technique to solve your issue. Create a
container
> > > > with two children, one for display elements and one for
chrome. Add
> > > > the chrome first and the children second and your children will be
> > > > above the chrome.
> > > >
> > > > Paul
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com 
,

> > > > "Jesse Warden"  wrote:
> > > > >
> > > > > I'm extending Canvas. His base class, Container, decrees on line
> > > > 4608 that
> > > > > all children are behind chrome. I want the opposite. I want my
> > > > chrome
> > > > > BEHIND the content; I want the content IN FRONT of my chrome.
> > > > >
> > > > > However, since Container does all kinds of crazy
over-writting of
> > > > > DisplayObject methods and tucks them away in mx_internal and
various
> > > > other
> > > > > private & final prefix's, I have no clue how to easily make my
> > > > chrome inside
> > > > > of rawChildren go backwards. Obviously, se

Re: [flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?

2007-03-13 Thread Michael Schmalle

However, the indicator is added as a child to rawChildren, which is

public. This means you could reach it without problems.

No, that is not true. You know why? They didn't name it! That should be a
requirement of all composites Aodbe people.

You need to name every instance, this way if us devs do want access to it we
can get it.

EECOLOR, as far as the indicator, you would have to call getStyle(), create
the class instance, loop through all the rawChildren and do an is
comparison. This is just to get a reference, it sucks.

But, Is possible through that hack, I haven't tried it though.

Peace, Mike

On 13 Mar 2007 03:10:38 -0700, EECOLOR <[EMAIL PROTECTED]> wrote:


  I ran into the same problem when i wanted to align the label to the
left. However, i found that there is a reference to the label in the
mx_internal namespace.

  override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
  {
   super.updateDisplayList(unscaledWidth, unscaledHeight);
   var labelAlign_str:String = getStyle("labelAlign");

   if (labelAlign_str == "left" && label.length)
   {
var vm:EdgeMetrics = viewMetricsAndPadding;
var labelObject:UIComponent = mx_internal::labelObject as UIComponent;
 labelObject.move(vm.left, labelObject.y);
   };
  };

This however does not work for you, since there is no equivalant for the
indicator. However, the indicator is added as a child to rawChildren, which
is public. This means you could reach it without problems.


Greetz Erik



On 3/12/07, Sean Sell <[EMAIL PROTECTED]> wrote:
>
>Alex,
>
> I understand exactly what you mean about testing requirements for public
> method and I can really only speak to the FormItem class, but here's my
> experience...
>
> The first thing I wanted to do was change where the required field
> asterisk is displayed; and put it in front of the label. No big deal right.
> To do it all I need to do is override updateDisplayList
> and move:
>
> // Position the "required" indicator.
> displayIndicator(left, y);
> left += indicatorGap;
>
> above
>
> // Position our label.
> if (labelObj)
> {...
>
> But there are calls to about 16 private methods or values within this
> function which I would have to re-write to make this work. Ironically I
> think all of those would work as written if I could just call them.
>
> --Sean
>
>
>  Recent Activity
>
>-  130
> New 
Members
>
> Visit Your Group
> 

> SPONSORED LINKS
>
>- Software development 
tool
>- Software 
development
>- Software development 
services
>- Home design 
software
>- Software development 
company
>
>  Cool Websites
>
> Know a good 
site?

Re: [flexcoders] Re: Are other developers hesitant to extend existing classes in Flex?

2007-03-13 Thread Michael Schmalle

I have tried...

Remeber FLex Builder is in 2.0 actual 1.0. There are a lot of rough spots
and design view is far from perfect.

There is no way to subclasss for stuff and keep the tricks going.

This is hardcoded into FlexBuilders code.

Would like to learn how to extend it though.

Peace, MIke

On 13 Mar 2007 04:26:19 -0700, Sean Sell <[EMAIL PROTECTED]> wrote:


  To the adobe developers,

I have found that I can extend the simpler display classes without much
issue, I have really only had issues with sub-classing the Form based
components. For our project (and probably many Flex projects) the form
concept is a strong one and the ability for designers to layout input
screens very quickly with Form,  FormItem and FormHeader is fantastic. I
want to extend these classes primarily to preserve the integration with Flex
Builder. Maybe trying to make these classes infinitely extensible is the
incorrect approach. Maybe a tool that would allow me to integrate my
components more tightly in Flex Builder would be a better solution.

Specifically when someone drags an NForm on the page I want flex builder
to automatically wrap other components in an NFormItem etc.

--Sean

- Original Message 
From: Michael Schmalle <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 13, 2007 6:42:00 AM
Subject: Re: [flexcoders] Re: Are other developers hesitant to extend
existing classes in Flex?

 > However, the indicator is added as a child to rawChildren, which is
public. This means you could reach it without problems.

No, that is not true. You know why? They didn't name it! That should be a
requirement of all composites Aodbe people.

You need to name every instance, this way if us devs do want access to it
we can get it.

EECOLOR, as far as the indicator, you would have to call getStyle(),
create the class instance, loop through all the rawChildren and do an is
comparison. This is just to get a reference, it sucks.

But, Is possible through that hack, I haven't tried it though.

Peace, Mike

On 13 Mar 2007 03:10:38 -0700, EECOLOR < [EMAIL PROTECTED] com<[EMAIL 
PROTECTED]>>
wrote:
>
>   I ran into the same problem when i wanted to align the label to the
> left. However, i found that there is a reference to the label in the
> mx_internal namespace.
>
>   override protected function updateDisplayList( unscaledWidth: Number,
> unscaledHeight: Number):void
>   {
>super.updateDisplay List(unscaledWid th, unscaledHeight) ;
>var labelAlign_str: String = getStyle("labelAlign");
>
>if (labelAlign_ str == "left" && label.length)
>{
> var vm:EdgeMetrics = viewMetricsAndPaddi ng;
> var labelObject: UIComponent = mx_internal: :labelObject as
> UIComponent;
>  labelObject. move(vm.left, labelObject. y);
>};
>   };
>
> This however does not work for you, since there is no equivalant for the
> indicator. However, the indicator is added as a child to rawChildren, which
> is public. This means you could reach it without problems.
>
>
> Greetz Erik
>
>
>
> On 3/12/07, Sean Sell >
> wrote:
> >
> >Alex,
> >
> > I understand exactly what you mean about testing requirements for
> > public method and I can really only speak to the FormItem class, but here's
> > my experience.. .
> >
> > The first thing I wanted to do was change where the required field
> > asterisk is displayed; and put it in front of the label. No big deal right.
> > To do it all I need to do is override updateDisplayList
> > and move:
> >
> > // Position the "required" indicator.
> > displayIndicator( left, y);
> > left += indicatorGap;
> >
> > above
> >
> > // Position our label.
> > if (labelObj)
> > {...
> >
> > But there are calls to about 16 private methods or values within this
> > function which I would have to re-write to make this work. Ironically I
> > think all of those would work as written if I could just call them.
> >
> > --Sean
> >
> >
> >  Recent Activity
> >
> >-  130
> > New 
Members<http://groups.yahoo.com/group/flexcoders/members;_ylc=X3oDMTJncGkyb2cwBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMTczNzMxNjY2>
> >
> > Visit Your Group
> > 
<http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJmM3ExYWtrBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzExNzM3MzE2NjY->
> > SPONSORED LINKS
> >
> >- Software development 
tool<http://group

Re: [flexcoders] Re: Mac style drop-down sheet

2007-03-13 Thread Michael Wills
No problem. But do you mean like a change of state with a transition then?

Michael

Ashif Sayani wrote:
>
> No, I was looking for the dialog box that drops down from the top of
> the application.
>
> thanks though,
> Ashif
>
>  


RE: [flexcoders] Re: Tree, drag+drop, and XML

2007-03-14 Thread Michael Imhoff
Hi Douglas,

 

It is carrying the leaf nodes properly; I think the issue revolved around
how you were trying to display the items.

 

public function handleMe(event:DragEvent) : void{

var ds:Array = event.dragSource.dataForFormat("treeItems") as
Array; 

for( var i:int = 0; i < ds.length; i++ ){

trace(XML(ds[i]).toXMLString());

}

}

 

Hope this helps,

Michael

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Wednesday, March 14, 2007 12:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree, drag+drop, and XML

 

here is example code of what I am seeing.  Why doesn't a leaf carry the data
in the drag event?


http://www.adobe.com/2006/mxml>
http://www.adobe.com/2006/mxml"; layout="vertical">






 



 




 








 
 
 
 





On 3/13/07, Douglas Knudsen mailto:[EMAIL PROTECTED]> gmail.com> wrote:

I have a Tree, and a dream it seems.  The Tree's dataProvider is XML based.
The Tree looks lovely and bares leaves.  I set dragEnabled = true.  On
another object in my app I am capturing the dragEnter event with this mehtod


privatefunction doDragEnter(event : DragEvent) : void {

 var ds:Array = event.dragSource.dataForFormat("treeItems") as
Array;
 
 Alert.show (ObjectUtil.toString(ds));return;
   
 }

Now, if I drag a leaf over this object, the Alert above displays
(Array)#0
[0]

as in it does NOT display the XML frag represented by the leaf. 

If I drag a branch, item with the folder icon, the Alert above displays
(Array)#0
[0]

it displays the XML frag for the branch and all its children?

WT?  

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




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

 



Re: [flexcoders] Flex 2.0 Primitive Explorer

2007-03-14 Thread Michael Schmalle

Great work Jason, surprises every month!

Peace, Mike

On 3/14/07, Brendan Meutzner <[EMAIL PROTECTED]> wrote:


  This is going to be incredibly useful... thanks Jason!


--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


On 3/14/07, Bruce H. Johnson <[EMAIL PROTECTED] > wrote:
>
>Nice. Exactly what I was look for to create a custom gauge componet
> in a half-circle.
>
>
> Bruce H. Johnson
> Sylmar, CA
>
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *sourcecoderia
> *Sent:* Wednesday, March 14, 2007 1:10 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Flex 2.0 Primitive Explorer
>
>  For your viewing pleasure...
>
> http://flexibleexperiments.wordpress.com/2007/03/14/flex-20-primitive-
> explorer/
>
> cheers.
>
> jason
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.11/721 - Release Date:
> 3/13/2007 4:51 PM
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.11/721 - Release Date:
> 3/13/2007 4:51 PM
>
>



 





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

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

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


RE: [flexcoders] Re: Fascinating problem hiding columns in a DataGrid

2007-03-16 Thread Michael Imhoff
Hi Peter,

 

I recently posted about a very similar issue that might be of some help.
Please take a look at
http://michael.omnicypher.com/2007/03/issues-with-datagrid-column-visibility
.html and let me know if that does the trick.

 

Hope this helps,

Michael

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Friday, March 16, 2007 1:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Fascinating problem hiding columns in a DataGrid

 

Hi,

I have done the same using remote object but didnt face this sort of 
problem. I am making the columns visible/invisible on the basis of 
value coming frm the database...

Thanks
Sanjay

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com,
"Peter Demling" <[EMAIL PROTECTED]> 
wrote:
>
> While a problem for me, I find the following behavior fascinating 
and
> inexplicable; so here's a good challenge for any Flexlock Holmes 
out
> there (full code is below - 26 lines, fairly simple):
> 
> I have a DataGrid that's using a RemoteObject as its dataProvider, 
and
> I initialize the 'visible' propery of its first dataGridColumn to
> "false". On startup, this column (labelled "Name") is hidden - so
> far, so good.
> 
> Next I click my "GetData" button to invoke the RemoteObject's 
service,
> and poof! The column becomes visible - even though the debugger
> verified that its visible property remains false!
> 
> So now I click my "HideName" Button, which forcibly sets the 
visible
> property of this "Name" column to false. The debugger verifies 
that
> its false before I click it, and its false after I click it. 
Still,
> the column remains visible.
> 
> So just for the heck of it I click my "ShowName" Button, which
> forcibly sets the visible property of the "Name" column to true. 
The
> debugger verifies that the value is changed to true - and as an 
added
> bonus, it increases the width of the Name column from 50 to 100! 
Okay...
> 
> Finally, I click the "HideName" Button, and *this* time it works - 
the
> Name column is now hidden, having worked only after I forced its
> visible prpoerty to true immediately beforehand.
> 
> I can replicate this ad nauseum (calling the RemoteObject service
> makes the hidden column visible without setting visible to true;
> forcing the visible value to false works only after forcing it to
> true), but it only happens when the dataProvider is remoteObject, 
and
> the forcing of the visible value only shows the column when done 
via
> Buttons (it does not work directly in code right after calling the
> RemoteObject service).
> 
> Full code is below. I tracked every single Name column variable
> through the debugger, and nothing changes, except for visible and
> width as noted above. I did track down the moment that 
the "ShowName"
> button expands the column width (in Button.as, line 2050, function
> focusOutHandler), but I don't know enough about Flex yet to know 
why
> that would enable column hiding; or why the call to RemoteObject is
> revealing my invisible column in the first place, for that matter.
> 
> Started out just wanting to hide some DataGrid columns, but went
> pretty far down the rabbit hole. Thanks for any input!
> 
> -Peter Demling
> Lexington, MA
> 
> 
> http://www.adobe.
<http://www.adobe.com/2006/mxml> com/2006/mxml"
> layout="absolute">
> 
> 
> 
>  dataProvider="{srv.getEmployees.lastResult}">
> 
>  headerText="Name" dataField="name" />
>  headerText="Group" dataField="group"/>
> 
> 
> 
>  x="10" y="170"/> 
>  click="myDataGrid.columns[0].visible=false;" 
> y="230" x="10"/> 
>  click="myDataGrid.columns[0].visible=true;"
> y="200" x="10"/>
> 
> 
>

 



Re: [flexcoders] set percent value to a Panel's width ?

2007-03-17 Thread Michael Schmalle

Hi,

panelID.percentWidth = 17;

Peace, Mike

On 16 Mar 2007 18:27:12 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


  how do i set percent values to a Panel's width and height in
ActionScript?

this is what I want :

panelID.setActualSize(17%,100%);   // this returns an error

 OR

panelID.width = 17%// this too returns an error


--
Bored stiff? Loosen 
up...
Download and play hundreds of games for 
freeon Yahoo! Games.

 





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

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

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


[flexcoders] User Interface Architect, Stealth-mode VC-backed Investing Web Startup (San Francisco, CA)

2007-03-18 Thread Michael Sha

Feel free to forward along to those UI gurus you know who want to join a
team building something big.
--
We are a well-funded, early-stage consumer web startup:
Who thinks figuring out how to invest your money is too difficult.  We have
a vision of how to revolutionize the way people invest and are looking for a
small number of talented superstars who are excited about that vision.  We
just raised a multi-million dollar round of financing from a top silicon
valley venture capital firm, and we are less than three months away from
launching our product.  If you want to play a critical role as an early
member of a consumer web startup which could put a lot of large financial
services companies out of business, we need to talk.  The founding team has
years of experience building consumer internet products (at companies
including Amazon, Google, Yahoo, and Facebook) that have been used by
millions of customers and have generated well over $100MM in profit.You are
a User Interface Architect who:

  - Is scary smart and someone we can trust will find the right answers
  to hard problems you may have never solved before
  - Is technically brilliant, versatile, and creative
  - Your teammates love working with (you also have friends like you who
  would love to work with you as we continue to grow)
  - Will passionately bust your ass at the prospect of building
  something that will change the way people invest
  - Has valuable* experience* designing and building highly-available
  and fault tolerant *consumer web *applications with *performance*, *
  scalability*, *stability*, and *security* in mind

You are adept at:

  - Innovative approaches to UI design (AJAX, Flex/Actionscript/Flash)
  - Designing and implementing production websites (HTML, CSS, XML,
  Javascript, etc.)
  - HCI principles and UI best practices, and incorporating this
  experience into the concept development process
  - Building technology at the crossroads of back-end functionality and
  front-end design
  - Managing cross-browser compatibility issues
  - LAMP (PHP, Python, Perl)

You will:

  - Lead the creation of a cutting edge user interface for our platform
  - Start with ideas, design products and features, architect a
  technical solution, then build, test, and launch it
  - Be an integral member of our team and help shape our future
  - Help build and grow the engineering team as we expand over time --
  if you also want to lead this team, that's in the cards depending on
  experience

We will:

  - Be a group of the smartest, most trustworthy, passionate, and
  interesting people you know.
  - Make sure you have what you need to be happy and productive.
  - Compensate you with a flexible mixture of cash and equity depending
  on your preference.
  - Make great teammates united around a vision of how to solve some
  significant problems for people.

*Interested candidates should send your resume to [EMAIL PROTECTED]
Please also include in your email a summary what you're been up to for the
past few years that makes you the right person for our team.*


Re: [flexcoders] Re: Apollo (Should Adobe Keep the Name)

2007-03-18 Thread Michael Schmalle

What do I care what they name the product.


Your missing the point, how many people play with their cell phones and are
amused with that?

:)

Peace, Mike

On 17 Mar 2007 08:55:39 -0700, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  You are missing the "I don't care" option. What do I care what they
name the product. They could call it Penciluarim and if it still did
what they promise then I'd use it.

p

--- In flexcoders@yahoogroups.com , "Rich
Tretola" <[EMAIL PROTECTED]> wrote:
>
> As of 10am est time on 3/17, the vote currently stands at:
>
>
> *Should Adobe keep code name Apollo as the official product name?*
yes
> 89% (174) no
> 11% (22)
>
> If you haven't voted yet, please visit:
> http://blog.everythingflex.com/2007/03/15/apollo-the-great-debate/
>
>
> Rich
>
>
>
> On 16 Mar 2007 14:49:31 -0700, shawn.gibson <[EMAIL PROTECTED]> wrote:
> >
> > Absolutely, Apollo was the God of Light, and he was strongly
associated
> > with the higher arts, as opposed to the baser arts of Dionysus (I'll
> > leave the analogues up to you...). Apollo is the best name ever for
> > what promises, in my limited knowledge so far, to be as important to
> > the web and application development for many people as light is and
> > higher art is to those who aim for somthing higher.
> >
> > Is this something we could petition them with? Does Adobe respond to
> > such requests? I would love to be involved in designing the artwork
> > revolving around its promotion etc.!
> >
> > Is there a reason they chose Apollo as the development name?
> >
> > Shawn - lover of anything Greek! haha...
> >
> >
> >
>
>
>
> --
> Rich Tretola
> 
> http://www.EverythingFlex.com
>

 





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

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

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


[flexcoders] Looking for Flex expert (project-based or full-time based in San Francisco)

2007-03-21 Thread Michael Sha

Hi,

I'm looking for a Flex guru who could help us build an interactive charting
application.  To give you a sense of the type of functionality we are
looking to build, Google Finance charts are a pretty good rough proxy:
http://finance.google.com/finance?q=goog

We have room on our team for someone full-time if there's a good match, and
would also be open to working together on a project basis if you prefer the
freelance route.

We're in San Francisco and looking for someone to work with ASAP!

Email me for more details --

Thanks,
Mike


[flexcoders] Re: How do you suppress repeating values in DataGrid columns?

2007-03-21 Thread Michael Levine
Thank you, everyone! I ended up solving the problem with the following
code:

/*
 XML from HTTPService looks like this:

 
 
 ...
 

 XMLListCollection is set as dataProvider for the DataGrid.

*/

var books:XMLListCollection = new
XMLListCollection(XMLList(event.result..books));

// Suppress repeating Author values
var lastAuthor:String = "";
var i:int = 0;
for each (var book:XML in books) {
 if ([EMAIL PROTECTED] == lastAuthor) {
 [EMAIL PROTECTED] = "";
 }
 lastAuthor = [EMAIL PROTECTED];
 i++;
}

Michael

--- In flexcoders@yahoogroups.com, "michael_p_levine"
<[EMAIL PROTECTED]> wrote:
>
> Given data that looks like this:
>
> Record #1: Author=John Doe, Title=Advanced Cat Juggling
> Record #2: Author=John Doe, Title=Surviving Cat Scratch Fever
> Record #3: Author=Bill Smith, Title=The Alligator Whisperer
> Record #4: Author=Bill Smith, Title=Living With One Ear
>
> How do I suppress the repeating Author name values in Rows #2 and #4
of
> a DataGrid so it looks like this?
>
> Author  Title
> --  -
> John DoeAdvanced Cat Juggling
>  Surviving Cat Scratch Fever
> Bill Smith  The Alligator Whisperer
>  Living With One Ear
>
> I've checked the group archives and haven't found a real answer to
this
> question. Has anyone else encountered and solved this?
>
> Thank you,
> Michael
>



[flexcoders] Re: How do you suppress repeating values in DataGrid columns?

2007-03-22 Thread Michael Levine
Adam,

You are correct, default datagrid sorting does not work properly with my
solution. I will either have to provide custom sorting or find another
solution.

I had thought that what I'm trying to accomplish here is not that
unusual in tabular data displays and have been somewhat surprised that I
haven't yet come across anyone else who has attempted and accomplished
this in Flex.

Perhaps another option is to restructuring the underlying data itself. I
will look into this and update this thread with any new
solutions/suggestions.

Thanks,
Michael

--- In flexcoders@yahoogroups.com, "Adam Royle" <[EMAIL PROTECTED]> wrote:
>
> Hi Michael,
>
> Haven't tried your code, but wondering if sorting the datagrid by
clicking the headers gives you inaccurate results?
>
> Or are you resetting the dataProvider on every sort?
>
> Cheers,
> Adam
>
>   - Original Message -
>   From: Michael Levine
>   To: flexcoders@yahoogroups.com
>   Sent: Thursday, March 22, 2007 9:44 AM
>   Subject: [flexcoders] Re: How do you suppress repeating values in
DataGrid columns?
>
>
>   Thank you, everyone! I ended up solving the problem with the
following code:
>
>   /*
>   XML from HTTPService looks like this:
>
>   
>  
>  ...
>   
>
>   XMLListCollection is set as dataProvider for the DataGrid.
>
>   */
>
>   var books:XMLListCollection = new
XMLListCollection(XMLList(event.result..books));
>
>   // Suppress repeating Author values
>   var lastAuthor:String = "";
>   var i:int = 0;
>   for each (var book:XML in books) {
>   if ([EMAIL PROTECTED] == lastAuthor) {
>   [EMAIL PROTECTED] = "";
>   }
>   lastAuthor = [EMAIL PROTECTED];
>   i++;
>   }
>
>   Michael
>
>   --- In flexcoders@yahoogroups.com, "michael_p_levine"
michaelplevine@ wrote:
>   >
>   > Given data that looks like this:
>   >
>   > Record #1: Author=John Doe, Title=Advanced Cat Juggling
>   > Record #2: Author=John Doe, Title=Surviving Cat Scratch Fever
>   > Record #3: Author=Bill Smith, Title=The Alligator Whisperer
>   > Record #4: Author=Bill Smith, Title=Living With One Ear
>   >
>   > How do I suppress the repeating Author name values in Rows #2 and
#4 of
>   > a DataGrid so it looks like this?
>   >
>   > Author Title
>   >  -- -
>   > John Doe Advanced Cat Juggling
>   > Surviving Cat Scratch Fever
>   > Bill Smith The Alligator Whisperer
>   > Living With One Ear
>   >
>   > I've checked the group archives and haven't found a real answer to
this
>   > question. Has anyone else encountered and solved this?
>   >
>   > Thank you,
>   > Michael
>   >
>




Re: [flexcoders] Relative paths in CSS embeds?

2007-03-22 Thread Michael Schmalle

Hi,

Use a url like;

source = "../../MyThemProject/images/bg_main.gif")'.

I do this for css outside of my current project and works fine.

Peace, Mike

On 3/22/07, Brett Levine <[EMAIL PROTECTED]> wrote:


  Yes, of course. If the .css file and the .mxml file using it are in
the same project that works great. However, since my css file is in
my theme project, it doesn't work. I get these errors:

Invalid Embed directive in stylesheet - can't resolve source 'Embed
(source = "/images/bg_main.gif")'.

brett


On Mar 22, 2007, at 8:52 AM, Tom Chiverton wrote:

> On Wednesday 21 Mar 2007, Brett Levine wrote:
>> I've built a theme swc in a library project using Flex Builder
>> 2.0.1. But I just can't figure out how to get Embeds in my theme's
>> CSS file to use relative paths. This is a problem since my team is
>> mixed between PC and Mac users. Here's an example:
>>
>> From application.css at Theme project's src folder:
>>
>> .main
>> {
>> backgroundImage: Embed(source="/Users/brett/Documents/dev/
>> repository/projects/flex/BlueTheme/src/images/bg_main.gif");
>> }
>
> You should use a path here relative to the source code root, not
> the file
> system root.
> I'd suggest '/images/bg_main.gif'
>
> --
> Tom Chiverton
> Helping to assertively maintain eigth-generation content
> On: http://thefalken.livejournal.com
>
> 
>
> 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
>
>
>

 





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

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

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


Re: [flexcoders] Apollo - multi-window communication

2007-03-22 Thread Michael Schmalle

I would go out on a limb and say yes.

Not in alpha but, if we are going to be able to addChild() on a newly
created window, I don't see why you could communicate with a window that you
created from the main app.

Peace, Mike

On 22 Mar 2007 14:32:13 -0700, Mark Doberenz <[EMAIL PROTECTED]> wrote:


  Oh yeah, I remember playing with those a long time ago... not the nicest
stuff to deal with from what I can remember.

Thanks

On 22 Mar 2007 14:28:43 -0700, Carlos Rovira <[EMAIL PROTECTED]>
wrote:
>
>   You should read about LocalConnection. It's an old Flash API to
> communicate between different flash movies
>
> 2007/3/22, Mark Doberenz < [EMAIL PROTECTED] >:
> >
> > I've been thinking about using Apollo for an extension to an app
> > I've been working on in Flex.
> >   The current issue with the Flex app is that it's locked to a web
> > browser and really only runs on one screen.  I know you can stretch the web
> > browser across multiple screens, but that's not quite what I want.
> >
> >   I know Apollo has windowing capabilities and it seems to be quite
> > nice as far as transparent / custom windows goes, which is pretty cool.
> >   However, one thing I'd need to be able to do is have one window
> > communicate with another window by passing certain bits of information back
> > and forth.
> >
> >   So, here's the $64,000 question "Does Apollo allow for
> > communication between different app windows?"
> >
> > Any info on this would be GREATLY appreciated!!!
> >
> > Mark
> >
>
>
>
> --
> ::| Carlos Rovira
> ::| http://www.carlosrovira.com
> ::| http://www.madeinflex.com
>
>
 





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

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

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


Re: [flexcoders] Relative paths in CSS embeds?

2007-03-23 Thread Michael Schmalle

Ah,

You are using a compiled theme? That is what it looks like.

So what I am getting at is, are you trying to access a gif inside an swc?

If you are trying to access embedded content inside an swc you need the
theme compiler arg in your apps config.

either in the flex buider compiler args;

-theme src/lib/theme.swc

or you could create a config xml file that does the same thing.

Sounds to me like I am confused as to what you are actually doing.

Where are you compiling the theme.swc? and is the contents of the swc
located in the theme.css?

Give me a bit more info and I can help. I struggled with this for months
getting the right set up. I use ant to build my components now. Much more
control.

Peace, Mike


On 3/22/07, Brett Levine <[EMAIL PROTECTED]> wrote:


  Hi Mike,

I'm curious about your project structure, because I've been trying this
but to no avail.

I have:

Theme
  src
theme.css

App
  src
app.mxml
lib
   theme.swc

So if app.mxml contains the  tag, I would think the path you
wrote should work.  On the other hand if the embeds are actually contained
in the theme swc, then I would guess the path would be relative to the css
location.  Maybe if I follow your example mine will work too.

brett

On Mar 22, 2007, at 11:25 AM, Michael Schmalle wrote:

Hi,

Use a url like;

source = "../../MyThemProject/images/bg_main.gif")'.

I do this for css outside of my current project and works fine.

Peace, Mike

On 3/22/07, Brett Levine <[EMAIL PROTECTED]> wrote:
>
> Yes, of course. If the .css file and the .mxml file using it are in
> the same project that works great. However, since my css file is in
> my theme project, it doesn't work. I get these errors:
>
> Invalid Embed directive in stylesheet - can't resolve source 'Embed
> (source = "/images/bg_main.gif")'.
>
> brett
>
>
> On Mar 22, 2007, at 8:52 AM, Tom Chiverton wrote:
>
> > On Wednesday 21 Mar 2007, Brett Levine wrote:
> >> I've built a theme swc in a library project using Flex Builder
> >> 2.0.1. But I just can't figure out how to get Embeds in my theme's
> >> CSS file to use relative paths. This is a problem since my team is
> >> mixed between PC and Mac users. Here's an example:
> >>
> >> From application.css at Theme project's src folder:
> >>
> >> .main
> >> {
> >> backgroundImage: Embed(source="/Users/brett/Documents/dev/
> >> repository/projects/flex/BlueTheme/src/images/bg_main.gif");
> >> }
> >
> > You should use a path here relative to the source code root, not
> > the file
> > system root.
> > I'd suggest '/images/bg_main.gif'
> >
> > --
> > Tom Chiverton
> > Helping to assertively maintain eigth-generation content
> > On: http://thefalken. <http://thefalken.livejournal.com>livejournal.
> com
> >
> > 
> >
> > 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.<http://www.halliwells.com>
> com.
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.<http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>
> yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-<http://www.mail-archive.com/flexcoders%25>
> archive.com/flexcoders%
> > 40yahoogroups. <http://40yahoogroups.com>com
> > Yahoo! Groups Links
> >
> >
> >
>
>


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

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

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


 





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

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

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


Re: [flexcoders] Can't add objects to a new Apollo window

2007-03-23 Thread Michael Schmalle

Hi,

If you read the docs, they say you cannot do this in the Alpha version of
Apollo.

It will be in a beta or for sure the final.

Peace, Mike

On 23 Mar 2007 08:50:22 -0700, Mark Doberenz <[EMAIL PROTECTED]> wrote:


  I have an Apollo app that I want to make open another window and load a
module into it.

I'm following the instructions from this page...

http://labs.adobe.com/wiki/index.php/Apollo:Documentation:Working_with_windows#Creating_windows

I can make the new window appear, but nothing ever shows up in it.

I then used the createNewWindow() method from the page above and that
worked fine.  It created a new window and showed a nice graphic in it.

I then tried just adding a Label to that window by doing the following bit
of code:
var label:Label = new Label();
label.text = "Test Label";
label.x = 10;
label.y = 10;
newWindow.stage.addChild (label);


However, that didn't add the Label to the window.

I had previously tried adding a new ModuleLoader to the new window.  I
added event listeners to the ModuleLoader and it seemed to be loading the
module, and then added the module to the child property of the
ModuleLoader.  However, just like the label, nothing appeared in the new
Apollo window.

Any help on this would be GREATLY appreciated.

Cheers,
Mark
 





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

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

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


  1   2   3   4   5   6   7   8   9   10   >