Re: [flexcoders] Re: 3.5 is out!!!

2009-12-21 Thread Andriy Panas
Hi all,

Most recent version of DMV components can be downloaded here:
http://download.macromedia.com/pub/flex/sdk/datavisualization_sdk3.5.zip

BTW, Flex 3.5 SDK breaks AIR app updates, if it is important to you, then do
not upgrade yet.
https://bugs.adobe.com/jira/browse/SDK-24766

--
Best regards,
Andriy Panas



2009/12/21 tntomek tnto...@yahoo.com



 Hmmm still no news of DMV ... oddly enough the 3.5 stable now has August
 date ... 3.5, 3.5.0.12683, Tue Aug 18, 2009

 Was there some last minute regression that we should wait for a more stable
 3.5?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Andriy
 Panas a.pa...@... wrote:
 
  Hi all,
 
  Here is the list of fixed issues in Flex 3.5 SDK, 25 in total
 
 https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hiderequestId=13381
 
  What is interesting is that mx:DataGrid finally gets some love from
  Adobe, and quite a few annoying bugs were fixed (mostly related to
  item renderers).
 
  Also DragManager received a couple of fixes too.
  --
  Best regards,
  Andriy Panas
 
 
 
 
  2009/12/14 Matt Chotin mcho...@...:

   3.5 is very minor, a few bug fixes including fixing a regression with
 the services from 3.4.
  
   Matt
  
   On Dec 13, 2009, at 7:47 PM, tntomek wrote:
  
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Penny Laus pennylaus@ wrote:
   
I haven't been following the SDK's progress closely so I'm not sure
 what 3.5
offers over what I'm using now (3.2). Can anyone point to a release
 document
or overview that explains the features and benefits of the 3.5 SDK?
 The SDK
download itself doesn't seem to have any 3.5 release notes.
   
Thanks in advance for any links.
   
  
   As Matt suggested they should have more info this week (look on flex
 team blog maybe). I would personally recommend upgrade to 3.5 for
 reliability reasons at a minimum. 3.2 was a rough release as it introduced a
 major feature (marshall plan), this had a few quirks which have since been
 fixed. You shouldn't see any difference in how your app runs. In my opinion
 Adobe Flex dot updates are very minor, 3.5 would be 3.05 in other SDKs
 (.NET/java)
  
  
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links
  
  
  
  
 

  



[flexcoders] Re: dynamic source for flvplayback in flex

2009-12-21 Thread valdhor
You can't use binding notation (ie. {} ) in ActionScript. Try this...

private var videoPath:String = assets/virtual_tour/ + 
parentDocument.home_tiles.selectedItem.tour

--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote:

 i tried that and its doesn't load the videos. here is the code i used
 
 private var videoPath:String = 
 assets/virtual_tour/{parentDocument.home_tiles.selectedItem.tour};
 
 and then set the source of the flvplayback(in this case vid) to the videoPath 
 above like this vid.source = videoPath;. any help?





[flexcoders] Re: Advice for flash, flex and action Script

2009-12-21 Thread valdhor
Start with http://www.adobe.com/devnet/flex/videotraining/

--- In flexcoders@yahoogroups.com, Juan jj101...@... wrote:

 Hello everyone 
 I'm new using flex and have done some staff in HTML and flash. 
 I would like some advice about flash and flex . 
 What's the best way to learn about flex ( books, websites) and action script 
 ! 
 
 Please some advice 
 I'm totally new using this software ! 
 
 Juan 
 New York, NY





[flexcoders] Re: dynamic source for flvplayback in flex

2009-12-21 Thread stinasius
i have tried that private var videoPath:String = assets/virtual_ tour/ + 
parentDocument.home_tiles.selectedItem.tour; and it doesn't work. it even does 
not show the player.



[flexcoders] Re: Flash CS4 component to Flex builder 3

2009-12-21 Thread Amy


--- In flexcoders@yahoogroups.com, Sergio Alvarez Real 
sergio.alvarez...@... wrote:

 Hello guys, I have an issue with developing a flash component I'm planning to 
 use in Flex...the thing is that it looks like there's a component kit for 
 flash CS4, but I can't seem to find that for CS4.
 
 Here's my trouble: I created a dynamic calendar in flash and would like to 
 use it within Flex, but need to share data between the calendar and the 
 application.
 
 What would be the best way of doing this?
 
 Thanks in advance
 Sergio

This might point you in the right direction 
http://blog.bluetubeinteractive.com/2009/02/flashloaded-3dwall-working-in-flex-as-flex-component.html



Re: [flexcoders] BlazeDZ messaging works good in FF and IE, but don't in the Opera

2009-12-21 Thread Andrew Voronin

Any ideas ?
-- 
View this message in context: 
http://old.nabble.com/BlazeDZ-messaging-works-good-in-FF-and-IE%2C-but-don%27t-in-the-Opera-tp26680163p26865730.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] specifying fontmanager in ant mxmlc task ?

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

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

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

[flexcoders] HTTP request error #2032

2009-12-21 Thread kenny14390
Hi,

I am using the HTTPService to send POST data to a PHP page in a widely 
distributed application. To catch HTTP errors with the fault parameter, I am 
assigning a method that takes a FaultEvent as its argument. (this is all 
standard).

That fault method writes to a file any time it is entered so as to log the 
error. I should also note that I have about 10 of these HTTPServices with 
corresponding result and fault methods.

I am noticing in the log file that only one HTTPService is faulting in 
particular. Over several hundred thousand (successful) calls to this 
HTTPService, a small handful of them are consistently passing the following 
FaultEvent message:

(mx.messaging.messages::ErrorMessage)#0
  body = (Object)#1
  clientId = DirectHTTPChannel0
  correlationId = A0C1443E-F9E2-61D7-7FAB-ADD18D4B0675
  destination = 
  extendedData = (null)
  faultCode = Server.Error.Request
  faultDetail = Error: [IOErrorEvent type=ioError bubbles=false 
cancelable=false eventPhase=2 text=Error #2032]. URL: {url here}
  faultString = HTTP request error
  headers = (Object)#2
  messageId = A04FD0F5-8732-1B3B-E253-ADD2572BE01E
  rootCause = (flash.events::IOErrorEvent)#3
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#4
  bytesLoaded = 0
  bytesTotal = 0
  data = 
  dataFormat = text
eventPhase = 2
target = (flash.net::URLLoader)#4
text = Error #2032
type = ioError
  timestamp = 0
  timeToLive = 0


I've researched this error and I've gotten many different results. Some say 
that it's a bad URL or the URL is too long -- not this case because the 
HTTPService succeeds 95% of the time. I've heard other suggestions that the 
server itself is to blame -- but the other 9 HTTPServices that call the same 
server (even ones that are more heavily used throughout the app) are all doing 
fine.


Does anyone know of a reasonable explanation to receive this error #2032? The 
way Flex describes this error is completely useless to debug.


Thanks in advance for the help!




[flexcoders] Re: Drag and drop, custom cursor during drag not working

2009-12-21 Thread invertedspear
Another topic bump, hoping someone can give me some insight.

--- In flexcoders@yahoogroups.com, invertedspear invertedsp...@... wrote:

 I have a datagrid that I want the user to sort the rows on. To make it 
 obvious that it's sortable I am implementing some custom cursors. But I'm 
 having a problem when I actually drag an item. Can anyone help me out?
 
 Thanks
 
 here's a psuedo demonstration of the problem
 
 Application = normal cursor // fine
 
 Rollover datagrid = open hand cursor // good so far
 
 mousedown on datagrid = closed hand cursor // good
 
 dragging item around = closed hand cursor // switches back to normal cursor 
 (if I move it around real fast I can see my custom curser for an instant)
 
 mouse up on datadrid = open hand cursor // not sure, after I drop it goes 
 back to open hand but if I mouse down, dont move and mouse up I have a closed 
 hand
 
 rollout of datagrid = normal cursor //good
 
 datagrid code:
 
 mx:DataGrid id=sectQuestionsDG x=10 y=204 width=558 height=277 
 headerHeight=0 selectable={editMode}
 dragMoveEnabled={editMode} dragEnabled={editMode} dropEnabled={editMode}
 dragDrop=sectQuestReOrder(event); rollOver=over(); mouseDown=down(); 
 mouseUp=up(); rollOut=out();/
 
 functions:
 
 public function over():void{
 CursorManager.setCursor(grabCursor,CursorManagerPriority.LOW,0,0);
 }
 public function down():void{
 CursorManager.setCursor(grabbingCursor,CursorManagerPriority.HIGH,0,0);
 }
 public function up():void{
 CursorManager.setCursor(grabCursor,CursorManagerPriority.LOW,0,0);
 }
 public function out():void{
 CursorManager.removeAllCursors();
 }





[flexcoders] Re: dynamic source for flvplayback in flex

2009-12-21 Thread valdhor
If you set a breakpoint and check the value of videoPath, is it something that 
you expect?

--- In flexcoders@yahoogroups.com, stinasius stinas...@... wrote:

 i have tried that private var videoPath:String = assets/virtual_ tour/ + 
 parentDocument.home_tiles.selectedItem.tour; and it doesn't work. it even 
 does not show the player.





Re: [flexcoders] Re: 3.5 is out!!!

2009-12-21 Thread Matt Chotin
August is just a typo on the form.

On Dec 21, 2009, at 4:21 AM, Andriy Panas wrote:

 
 Hi all,
 
 Most recent version of DMV components can be downloaded here:
 http://download.macromedia.com/pub/flex/sdk/datavisualization_sdk3.5.zip
 
 BTW, Flex 3.5 SDK breaks AIR app updates, if it is important to you, then do 
 not upgrade yet.
 https://bugs.adobe.com/jira/browse/SDK-24766
 
 --
 Best regards,
 Andriy Panas
 
 
 
 2009/12/21 tntomek tnto...@yahoo.com
  
 Hmmm still no news of DMV ... oddly enough the 3.5 stable now has August date 
 ... 3.5, 3.5.0.12683, Tue Aug 18, 2009
 
 Was there some last minute regression that we should wait for a more stable 
 3.5?
 
 
 
 --- In flexcoders@yahoogroups.com, Andriy Panas a.pa...@... wrote:
 
  Hi all,
  
  Here is the list of fixed issues in Flex 3.5 SDK, 25 in total
  https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hiderequestId=13381
  
  What is interesting is that mx:DataGrid finally gets some love from
  Adobe, and quite a few annoying bugs were fixed (mostly related to
  item renderers).
  
  Also DragManager received a couple of fixes too.
  --
  Best regards,
  Andriy Panas
  
  
  
  
  2009/12/14 Matt Chotin mcho...@...:
 
   3.5 is very minor, a few bug fixes including fixing a regression with the 
   services from 3.4.
  
   Matt
  
   On Dec 13, 2009, at 7:47 PM, tntomek wrote:
  
  
  
   --- In flexcoders@yahoogroups.com, Penny Laus pennylaus@ wrote:
   
I haven't been following the SDK's progress closely so I'm not sure 
what 3.5
offers over what I'm using now (3.2). Can anyone point to a release 
document
or overview that explains the features and benefits of the 3.5 SDK? 
The SDK
download itself doesn't seem to have any 3.5 release notes.
   
Thanks in advance for any links.
   
  
   As Matt suggested they should have more info this week (look on flex 
   team blog maybe). I would personally recommend upgrade to 3.5 for 
   reliability reasons at a minimum. 3.2 was a rough release as it 
   introduced a major feature (marshall plan), this had a few quirks which 
   have since been fixed. You shouldn't see any difference in how your app 
   runs. In my opinion Adobe Flex dot updates are very minor, 3.5 would be 
   3.05 in other SDKs (.NET/java)
  
  
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location: 
   https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives: 
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
   Links
  
  
  
  
 
 
 
 
 
 





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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] Re: Mate board?

2009-12-21 Thread jer_ela
http://mate.asfusion.com/forums/

--- In flexcoders@yahoogroups.com, Dan Pride danielpr...@... wrote:

 Is there a board specifically for Mate?
 Thanks
 Dan





[flexcoders] Re: Drag and drop, custom cursor during drag not working

2009-12-21 Thread invertedspear
I have a bounty on this at stackoverflow.com if you want to get some rep there.

--- In flexcoders@yahoogroups.com, invertedspear invertedsp...@... wrote:

 Another topic bump, hoping someone can give me some insight.
 
 --- In flexcoders@yahoogroups.com, invertedspear invertedspear@ wrote:
 
  I have a datagrid that I want the user to sort the rows on. To make it 
  obvious that it's sortable I am implementing some custom cursors. But I'm 
  having a problem when I actually drag an item. Can anyone help me out?
  
  Thanks
  
  here's a psuedo demonstration of the problem
  
  Application = normal cursor // fine
  
  Rollover datagrid = open hand cursor // good so far
  
  mousedown on datagrid = closed hand cursor // good
  
  dragging item around = closed hand cursor // switches back to normal cursor 
  (if I move it around real fast I can see my custom curser for an instant)
  
  mouse up on datadrid = open hand cursor // not sure, after I drop it goes 
  back to open hand but if I mouse down, dont move and mouse up I have a 
  closed hand
  
  rollout of datagrid = normal cursor //good
  
  datagrid code:
  
  mx:DataGrid id=sectQuestionsDG x=10 y=204 width=558 height=277 
  headerHeight=0 selectable={editMode}
  dragMoveEnabled={editMode} dragEnabled={editMode} 
  dropEnabled={editMode}
  dragDrop=sectQuestReOrder(event); rollOver=over(); mouseDown=down(); 
  mouseUp=up(); rollOut=out();/
  
  functions:
  
  public function over():void{
  CursorManager.setCursor(grabCursor,CursorManagerPriority.LOW,0,0);
  }
  public function down():void{
  CursorManager.setCursor(grabbingCursor,CursorManagerPriority.HIGH,0,0);
  }
  public function up():void{
  CursorManager.setCursor(grabCursor,CursorManagerPriority.LOW,0,0);
  }
  public function out():void{
  CursorManager.removeAllCursors();
  }
 





[flexcoders] Action Script Error ( Please Help- urgent)

2009-12-21 Thread Shashi
Hi,
 
 
I am getting an action script  error  that is displayed during the Grouping 
collection refresh in the advanced datagrid this basically happens when the 
array collection which is the source of the grouping collection is updated ( 
added or removed) , the updation of the array collection is done in an action 
script function in which the grouping collection is refreshed after updating 
the array collection.How to handle/resolve  the action script error ? can i 
handle it through try catch blocks ? 


The error I am getting is : 


Error: Bookmark no longer valid.
at.

 
Thanks  Regards
 
Ravisha



Re: [Spam] Re: [flexcoders] How to dispatchevent in popup window?

2009-12-21 Thread Nick Middleweek
Hi,

I'm quite new to Flex and was wondering if it's possible to use Meta Tags to
declare the custom Event that is to be fired from the 'popup' component.


And then assign that Custom Event to the function handler in the parent MXML
or AS file?


I guess this is the same as Geoff and Vaibhav's suggestion? Why do you guys
suggest that the parent dispatches the event. Doesn't that cause compoenent
coupling which I understand to be a bad thing?...


Thanks - as I say, I'm new to this stuff so am curious to the thoughts of
those in the know...


Cheers,
Nick





2009/12/18 Fotis Chatzinikos fotis.chatzini...@gmail.com



 Either what Valdor suggested, or in your pop window have a componentOwner
 refrence which you use to dispatch your event:


 popup:
 public var componentOwner:DisplayObject ;


 popup dispatches event:

 componentOwner.dispatchEvent(...your event...) ;


 application using the popup:

 thePopUp = new MyCustomPopUp() ;
 thePopUp.componentOwner = this ;
 PopUpManager.addPopUp(thePopUp) ;



 On Thu, Dec 17, 2009 at 10:05 PM, markflex2007 markflex2...@yahoo.comwrote:



 Hi,

 I want to dispatch event in popup window and capture the event
 in base page.

 Please give me a idea how to do this.

 Thanks

 Mark




 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 LivinData Technologies
 www.styledropper.com
 fotis.chatzini...@gmail.com,
  



Re: [Spam] Re: [flexcoders] Re: Passing parameters to flashplayer while launching from Flexbuilder

2009-12-21 Thread Nick Middleweek
Guys, what is wrong with Erdal's reponses? That is how I do it but am
curious to know why if it's not a good way?


Thanks,
Nick


[flexcoders] Using Cairngorm and how to display a Popup from a Command

2009-12-21 Thread Nick Middleweek
Hi,

If there's a preferred place to ask this, please let me know but I'm working
on my first Cairngorm project and am getting used to how it all works which
is great. I have a command that is fired after an event is notified that
data is received from a Web Service. If there is a Fault or Error I want to
show a custom Popup Component.

My question is how do others deal with this? If I use PopupManager.add or
create PopUp I need to pass in the parent : DisplayObject... What is best
practice to reference the parent ?

Would you create a reference on the model.rootApplication = this; and set
that on the initialise event and pass that reference in or perhaps you would
use ChangeWatcher to listen for changes on a model error property which
woudl fire the Action Script on the mediator to create the PopUp...


What is the best/ nicest/ standard approach to handling this?


Thanks for your help...


Nick


RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-12-21 Thread dennis
Hello to all

Can anybody else help on this topic???

Any other suggestion how to anchor an UIComponent object?

 

dennis

 

From: dennis [mailto:den...@anel.cc] 
Sent: Saturday, December 19, 2009 12:12 AM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

Hi Tracy. I hope you are ok.

 

I do the follow:

  var d:PanelGradient=new
PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
*1.5);

  d.setStyle(right,10);

  d.setStyle(bottom,10);

  addChild(d);

 

In the above code, setting the right and bottom, I expect, in case of
resizing the browser, the PanelGrandient must be kept anchored in the right
bottom corner. 

 

What I do wrong?

 

p.s. The PanelGradient extends the UIComponent and in real is a container of
a Shape with a matrix.

 

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, November 28, 2009 12:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

The constraints are styles, not properties.  So to use constraints in AS,
you need to define them in a style sheet, and/or use setStyle().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Thursday, November 26, 2009 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.

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


mx:Script
![CDATA[
import mx.core.UIComponent;

private function init():void{

var spTest:Sprite = new Sprite();
spTest.graphics.beginFill(0xFF);
spTest.graphics.drawRect(0, 0, 100, 100);
spTest.graphics.endFill();
logo.rawChildren.addChild(spTest);
}

]]
/mx:Script
mx:Canvas width=100 height=100 right=20 top=20 id=logo/

/mx:Application

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
dennis den...@... wrote:

 Hello people..
 
 
 
 I have an extended Sprite object and I put in on the Stage (via addChild).
 
 How may I anchor it on runtime on the Stage? 
 
 How may I constraint it in Columns and Rows?
 
 
 
 Suppose that I want a Sprite(Panel) object, to be always 20 pixels from
 right edge of the Stage, even if the Stage resized.
 
 
 
 Thank in advance.
 
 Dennis




__ NOD32 4618 (20091118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com





__ NOD32 4643 (20091127) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



[Spam] Re: [flexcoders] Re: Passing parameters to flashplayer while launching from Flexbuilder

2009-12-21 Thread Tibor
Hi Nick,

There's nothing wrong with Erdal's response.

Benjamin can't install the debug version of flash player, thus in order to be 
able to debug his application he is launching it in a standalone player (in 
which case the index-template isn't used).

Tibor.
www.tiborballai.com



--- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote:

 Guys, what is wrong with Erdal's reponses? That is how I do it but am
 curious to know why if it's not a good way?
 
 
 Thanks,
 Nick





[flexcoders] Flash components in Flex

2009-12-21 Thread djhatrick
I built a gauge component all in Actionscript, that I added to a uicomponent.  
My question is, what's the best way to use fonts from an actionscript based 
Flash component, in a uiComponent shell.

I tried using a UITextField in my component and using the textFormat class to 
set my fontFamily, which worked, however, when I change the values, the font's 
would revert to being not embedded, no matter if i set the textFormat on the 
uiTextField after the change, again.

I noticed the Font. top level class is not available to the flex SDK.  Any 
help, would be greatly appreciated.  My textfields are all dynamic, that show 
up around my circle... 

Thanks community.  Using 3.41 SDK.
Patrick



RE: [flexcoders] Flash components in Flex

2009-12-21 Thread Alex Harui
I'm not sure I understand your setup.  Is the font being embedded properly but 
you just can't use it?  You can look at the generated code to see if the font 
is being embedded.  For UITextField, you might want to use setStyle instead of 
textFormat to set fontFamily.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of djhatrick
Sent: Monday, December 21, 2009 11:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash components in Flex



I built a gauge component all in Actionscript, that I added to a uicomponent. 
My question is, what's the best way to use fonts from an actionscript based 
Flash component, in a uiComponent shell.

I tried using a UITextField in my component and using the textFormat class to 
set my fontFamily, which worked, however, when I change the values, the font's 
would revert to being not embedded, no matter if i set the textFormat on the 
uiTextField after the change, again.

I noticed the Font. top level class is not available to the flex SDK. Any help, 
would be greatly appreciated. My textfields are all dynamic, that show up 
around my circle...

Thanks community. Using 3.41 SDK.
Patrick



[Spam] Re: [flexcoders] How to dispatchevent in popup window?

2009-12-21 Thread Tibor
Hi Nick,

Yes, you can use Meta-data tags to declare an event in your component:
[Event(name=eventname, type=path.to.event.class)]

This will enable code completion for your custom event.

You can then add listeners to your event just as you would to other component 
events.


And no, the parent shouldn't dispatch the event, this does cause component 
coupling.

I'm pretty certain though that the people who suggested that did it for the 
sake of simplicity.
In case of a quick-and-dirty prototype, you might not want to extend 
TitleWindow to create a popup, you can simply create an instance of TitleWindow 
and add your content to it, in such a case, you don't have the ability to 
dispatch a custom event from within your popup.

Hope this helps,

Tibor.

www.tiborballai.com


--- In flexcoders@yahoogroups.com, Nick Middleweek n...@... wrote:

 Hi,
 
 I'm quite new to Flex and was wondering if it's possible to use Meta Tags to
 declare the custom Event that is to be fired from the 'popup' component.
 
 
 And then assign that Custom Event to the function handler in the parent MXML
 or AS file?
 
 
 I guess this is the same as Geoff and Vaibhav's suggestion? Why do you guys
 suggest that the parent dispatches the event. Doesn't that cause compoenent
 coupling which I understand to be a bad thing?...
 
 
 Thanks - as I say, I'm new to this stuff so am curious to the thoughts of
 those in the know...
 
 
 Cheers,
 Nick
 
 
 
 
 
 2009/12/18 Fotis Chatzinikos fotis.chatzini...@...
 
 
 
  Either what Valdor suggested, or in your pop window have a componentOwner
  refrence which you use to dispatch your event:
 
 
  popup:
  public var componentOwner:DisplayObject ;
 
 
  popup dispatches event:
 
  componentOwner.dispatchEvent(...your event...) ;
 
 
  application using the popup:
 
  thePopUp = new MyCustomPopUp() ;
  thePopUp.componentOwner = this ;
  PopUpManager.addPopUp(thePopUp) ;
 
 
 
  On Thu, Dec 17, 2009 at 10:05 PM, markflex2007 markflex2...@...wrote:
 
 
 
  Hi,
 
  I want to dispatch event in popup window and capture the event
  in base page.
 
  Please give me a idea how to do this.
 
  Thanks
 
  Mark
 
 
 
 
  --
  Fotis Chatzinikos, Ph.D.
  Founder,
  LivinData Technologies
  www.styledropper.com
  fotis.chatzini...@...,
   
 





[flexcoders] Web Service result length limit?

2009-12-21 Thread boneoh
Hi, all.

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

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

I hope someone out there has an idea about this.

Thanks is advance.

Pete





[flexcoders] Re: Drag and drop, custom cursor during drag not working

2009-12-21 Thread invertedspear
I managed to finally get this one figured out

here is what I had to do:

1)remove the listeners for rollOver, rollOut, and mouseUp from the mxml and add 
rollOver and rollOutthem through the addEventListener method in AS

2) add the listener dragComplete to the mxml and assign the function previously 
assigned to mouseUP to it

3) change the main function to this:

public function over(evt:Event):void{ //on mouse over, added with AS
CursorManager.removeAllCursors();
CursorManager.setCursor(grabCursor,CursorManagerPriority.LOW,-7,-7);
var styleSheet:CSSStyleDeclaration = 
StyleManager.getStyleDeclaration(DragManager);
styleSheet.setStyle(moveCursor,grabbingCursor); //style set for the drag 
cursor
}
public function down(evt:Event):void{ // on mouse down
CursorManager.removeAllCursors();
CursorManager.setCursor(grabbingCursor,CursorManagerPriority.LOW,-7,-7);
sectQuestionsDG.removeEventListener(MouseEvent.ROLL_OVER,over);
sectQuestionsDG.removeEventListener(MouseEvent.ROLL_OUT,out);
//this is why I had to take it off the mxml, can only remove listeners
//added with the addEventListener, I don't remember where I read that.
}
public function up(evt:Event):void{
CursorManager.removeAllCursors();
CursorManager.setCursor(grabCursor,CursorManagerPriority.LOW,-7,-7);
sectQuestionsDG.addEventListener(MouseEvent.ROLL_OVER,over);
sectQuestionsDG.addEventListener(MouseEvent.ROLL_OUT,out);
}
public function out(evt:Event):void{
CursorManager.removeAllCursors();
}




RE: [flexcoders] Web Service result length limit?

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


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

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

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

I hope someone out there has an idea about this.

Thanks is advance.

Pete





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

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

Re: [flexcoders] Re: drawing horizontal line in ADG based on data

2009-12-21 Thread venkateswarlu naidu
Steve thanks for your reply.

My aim is to draw horizontal line for entire grid, not for single item.
Please give me a clue 

thanks a lot.

 Thanks  Regards,
Venkat.





From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Wed, 16 December, 2009 10:15:20 AM
Subject: [flexcoders] Re: drawing horizontal line in ADG based on data

  
You have completely gone down the wrong track here.

If you need to do anything in a datagrid based on data in the dat provider, you 
need to use an item renderer. I would recommend reading Alex Harui's blog 
postings regarding Item Renderers and also to modify someone's working code 
before embarking on creating your own.

The following is an example showing how to draw a horizontal line based on data 
in the grid:

?xml version=1.0 encoding=utf- 8?
mx:Application xmlns:mx=http: //www.adobe. com/2006/ mxml layout=absolute 
creationComplete= onCreationCompl ete()
mx:Script
![CDATA[
import mx.collections. SortField;
import mx.collections. Sort;
import mx.collections. IHierarchicalCol lectionView;

[Bindable] private var myDP:Array = [
{Office:Atlanta ,Month:Oct. 2009,Sales: 2000,Rejection 
s:102,SortDate :new Date('10/1/2009' )},
{Office:Atlanta ,Month:Sept. 2009,Sales: 2000,Rejection 
s:102,SortDate :new Date('9/1/2009' )},
{Office:Atlanta ,Month:Aug. 2009,Sales: 1000,Rejection 
s:102,SortDate :new Date('8/1/2009' )},
{Office:Atlanta ,Month:Jul. 2009,Sales: 2000,Rejection 
s:102,SortDate :new Date('7/1/2009' )},
{Office:Atlanta ,Month:Jun. 2009,Sales: 2000,Rejection 
s:102,SortDate :new Date('6/1/2009' )},
{Office:Atlanta ,Month:May 2009,Sales: 2000,Rejection 
s:102,SortDate :new Date('5/1/2009' )},
{Office:Dallas ,Month:Oct. 2009,Sales: 2000,Rejection 
s:102,SortDate :new Date('10/1/2009' )},
{Office:Dallas ,Month:Sept. 2009,Sales: 1000,Rejection 
s:102,SortDate :new Date('9/1/2009' )}
];

private function onCreationComplete( ):void
{
gc.refresh() ; 
dg.validateNow( );

var sort:Sort = new Sort();
sort.fields = [new SortField(SortDate )];
IHierarchicalCollec tionView( dg.dataProvider) .sort = sort;
IHierarchicalCollec tionView( dg.dataProvider) .refresh( );
}
]]
/mx:Script
mx:AdvancedDataGrid id=dg height=80% width=80% textAlign=center
mx:dataProvider
mx:GroupingCollecti on id=gc source={myDP} 
mx:Grouping
mx:GroupingField name=Office /
/mx:Grouping
/mx:GroupingCollect ion
/mx:dataProvider
 mx:columns
mx:AdvancedDataGrid Column dataField=Month textAlign=left /
mx:AdvancedDataGrid Column dataField=Sales textAlign=left 
itemRenderer= BGRenderer /
mx:AdvancedDataGrid Column dataField=Rejectio ns 
textAlign=left itemRenderer= BGRenderer /
/mx:columns
/mx:AdvancedDataGri d
/mx:Application

And the item renderer (BGRenderer.as) :
package
{
import flash.display. Graphics;
import mx.controls. Text;
import mx.controls. dataGridClasses. DataGridListData ;
import mx.utils.StringUtil ; 

public class BGRenderer extends Text
{
public function BGRenderer()
{
super();
}

override public function set data(value:Object) :void
{
if(value != null)
{
super.data = value;
text = StringUtil.trim( value[DataGridLi stData(listData) 
.dataField] );
}
}

override protected function updateDisplayList( unscaledWidth: Number, 
unscaledHeight: Number):void 
{ 
super.updateDisplay List(unscaledWid th, unscaledHeight) ;
if(data != null  data.Sales == 2000)
{
var g:Graphics = graphics; 
g.clear();
g.lineStyle( 1, 0x00ff00);
g.moveTo(0, this.height / 2);
g.lineTo(this. width, this.height / 2);
}
}
}
}


HTH.



Steve


--- In flexcod...@yahoogro ups.com, venkateswarlu naidu contactvenku@ ... 
wrote:

 Tried below but still getting the horizontal grid lines drawn for all rows 
 when i start scrolling down :(
 
 1.
  = = = =
 override protected function drawHorizontalLine( s:Sprite, rowIndex:int, 
 color:uint, y:Number):void { 
  if(indexToItemRende rer(rowIndex) != null) { 
  var myObj:Object = indexToItemRenderer (rowIndex) .data; 
  var g:Graphics = s.graphics; 
  if (myObj.name == John) { 
  g.lineStyle( 1, 0xff); 
   

[flexcoders] Flex, BlazeDS and Cairngorm tutorial?

2009-12-21 Thread flexnewbie999
Can someone point me to a working Flex, BlazeDS and Cairngorm tutorial?







[flexcoders] FlashBuilder, FlexBuilder 3 and Flash Players

2009-12-21 Thread flexnewbie999
I understand FlashBuilder uses v.10 of the Flash Player while FlexBuilder 3 
uses v. 9. I've been using FlexBuilder. Is there a way to swap these 2 players 
installed at the same time (if this is possible) via the 2 different 
development environments? 



[flexcoders] Re: dynamic source for flvplayback in flex

2009-12-21 Thread stinasius
yes i tested that path and it points to the video clip but when i use it as a 
source for the flvplayback, it doesn't work. is it really possible to use 
dynamic paths in flvplayback?



Re: [flexcoders] Action Script Error ( Please Help- urgent)

2009-12-21 Thread kanu kukreja
If you are using ArrayCollection then:
Just filter that ArrayCollection, set it as source for the grouping
collection and refresh the collection.

ac.refresh();
ac.disableAutoUpdate();


On Mon, Dec 21, 2009 at 11:33 PM, Shashi shashi_cs...@yahoo.com wrote:



 Hi,


 I am getting an action script error that is displayed during the Grouping
 collection refresh in the advanced datagrid this basically happens when the
 array collection which is the source of the grouping collection is updated (
 added or removed) , the updation of the array collection is done in an
 action script function in which the grouping collection is refreshed after
 updating the array collection.How to handle/resolve the action script error
 ? can i handle it through try catch blocks ?

 The error I am getting is :

 Error: Bookmark no longer valid.
 at.

 Thanks  Regards

 Ravisha