[flexcoders] Re: Rotate Button label without embedding fonts

2008-03-27 Thread joan_lynn
One of our developers suggested putting  a 0-value BlurFilter on the
Button. This puts the button into bitmap mode, which will allow it to
be rotated, text and all. 

Joan

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

 Hi,
 
 I am trying to create a custom Button class that can have its label
 text rotated (but not the button itself). I know that this can be
 achieved by embedding fonts, but ideally I don't want to have to do
this.
 
 In my research I came across this site, which contains a method for
 rotating labels without embedding fonts:
 

http://www.gonnen.com/2007/11/rotating-text-in-actionscript-3-without.html
 
 It's fairly simple, in the label's updateDisplayList(), a rotated
 Bitmap of the label is drawn.
 
 I looked into following the same principle for the button text but
 this is much less straightforward (especially as the label is actually
 a UITextField). I've tried adding one of the custom labels as a new
 child of the button but that does not appear to do anything...
 
 Does anyone have any ideas?
 
 Thanks,
 
 Iain





[flexcoders] Re: scrolling question

2008-03-24 Thread joan_lynn
When you advance to the next page, set the verticalScrollPosition
property of your List to 0.

Joan

--- In flexcoders@yahoogroups.com, Body Works Studio
[EMAIL PROTECTED] wrote:

 I have a report using a list component with a custom renderer. We have
 a paging controller on the page that when you click it , the data set
 will advance to the next page. 
 
 What happens is the new data set is inserted in the the list view, and
 keeps the viewer exactly same position where they where on the page
 when they clicked the button .
 
 So say you scrolled to the bottom of the first page and you click to
 view the next page, the data gets loaded in, but the list view still
 is at the bottom of the page.
 
 Is there a way to make the component scroll back to the top when the
 user clicks to a different page?
 
 
 thanks
 
 Jeff





[flexcoders] Re: Flex2 versus Flex3 font size

2008-03-21 Thread joan_lynn
I'm pretty sure that your problem with Button labels is not because of
a font change, but, rather, a change in our default Button. In Flex 2,
the styles paddingLeft, paddingRight, paddingTop and paddingBottom
didn't work. So, Button had some hacky code to figure out how much
spacing there was around Button labels. Depending on your label, the
space around the label varied. In Flex 3, these padding styles now
work and the default for paddingRight and paddingLeft is 10 pixels. As
a result, for Buttons that had less space on the left and right of the
label, the labels became truncated when migrating to Flex 3. 

To fix this problem, you can change the styles of your Button to use a
smaller value for paddingLeft and paddingRight. I wrote a bit about
this migration issue here:

http://butterfliesandbugs.wordpress.com/2008/03/04/understanding-flex-3-migration-issues-part-i/

Unrelated to these Button changes, we also updated the font engine
used by our compiler. However, this change only changed fonts by a few
pixels and should not have affected the components and their size very
much. Internally, on our QA team, we had hundreds of bitmap test
failures when we did this change, but, the font differences were all
very minor (just a few pixels here and there)

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

 On Thu, Mar 20, 2008 at 05:57:35PM -, dougco2000 wrote:
 
  I switched to Flex3 the other day and found that the font sizing for
  the default font has changed! So on most of my applications where I
  painstakingly sized buttons so that they exactly fit the text label, I
  know see the text does NOT FIT anymore and has ... at the end!
 
 Same thing here, text wouldn't fit buttons, bottom of windows were
cutting off controls, controls that were previously horizontally
aligned were no 
 longer in line, listboxes without default selections that previously
returned 0 as the selected index returned -1 in Flex 3.  We went
through all the 
 apps and adjusted everything, it was far from a drop-in-place
upgrade for us and we don't really have any complicated code or layouts.
 
 
 Jeff





[flexcoders] Re: Adding parallel transition effect or filter to target when create on Base St

2008-02-15 Thread joan_lynn
Your code works fine for me. I tried it in Flex 3 and Flex 2.0.1. What
build are you using. Please be sure that you have the panLogin object
in your application. Here is the entire application that I compiled:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical creationComplete=createEffect(event)
mx:Script
![CDATA[
import mx.effects.*;

public var myZoomShow:Zoom;
public var myRotateShow:Rotate;
public var ZRShow:Parallel;

private function createEffect(eventObj:Event):void {
// Create a Zoom effect.
myZoomShow=new Zoom(panLogin);
myZoomShow.zoomHeightFrom=0.0;
myZoomShow.zoomWidthFrom=0.0;
myZoomShow.zoomHeightTo=1.0;
myZoomShow.zoomWidthTo=1.0;
// Initialize a Rotate effect.
myRotateShow=new Rotate(panLogin);
// Initialize a Parallel effect.
ZRShow=new Parallel();
ZRShow.addChild(myZoomShow);
ZRShow.addChild(myRotateShow);
ZRShow.play();
}
]]
/mx:Script

mx:TitleWindow id=panLogin title=blue moon showCloseButton=true
mx:Button label=open popup/
mx:TextInput /
/mx:TitleWindow
/mx:Application

Hope this helps,
Joan



[flexcoders] Re: DragManager broken in beta 3? Or my code broken?

2008-02-08 Thread joan_lynn
This is probably because the item you are dragging is not serializable.

You need to add:

[RemoteClass(com.my.company.Product)] metadata to their Product class.

Joan 

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

 im having similar problems with DragManager in beta 3





[flexcoders] Re: SoundEffectInstance Bug on Resume in Flex 2

2008-02-04 Thread joan_lynn
I am not seeing the bug with this simple code:

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
horizontalAlign=left

mx:Script
  [Bindable]
  [Embed (source=../assets/jazz.mp3)]
  public var soundClass:Class;
/mx:Script

mx:SoundEffect id=mySound2 source={soundClass} duration=2 /

mx:Button label=playMusic with no pan set  mouseDownEffect=mySound2/

mx:Button label=pause sound click=mySound2.pause() /
mx:Button label=resume sound click=mySound2.resume() /
/mx:Application

If I play, pause and then resume the pause, the SoundEffect seems to
do the right thing. If you have another scenario where pausing the
SoundEffect doesn't work, please file a bug at bugs.adobe.com/flex.

Joan



[flexcoders] Re: Passing data from TitleWindow to application

2007-03-02 Thread joan_lynn
I believe that you need to dispatch an event from the PopUp with all
of the information that you want to pass to the main Application. Here
is an example of what I think you want to do:

FILE: heightEvent .as
package
{
import flash.events.Event;

public class heightEvent extends flash.events.Event
{

public var heightProperty : int;
   
public function heightEvent(_heightProperty:int)
{
super(changeHeight);
heightProperty = _heightProperty;
}

}
}

FILE: MyTitleWindow.mxml
?xml version=1.0?

mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml;
title=Details showCloseButton=true close=closeDialog();
mx:Script
![CDATA[
import mx.managers.PopUpManager;
import mx.controls.Alert;

public var slotHeight:Number;

public function closeDialog():void {
var sizeNum:Number = 0;
sizeNum = slotSize.value * 2.5;
slotHeight = sizeNum;
dispatchEvent(new heightEvent(slotHeight));

PopUpManager.removePopUp(this);
}

]]
/mx:Script

mx:Label text=Size/
mx:NumericStepper id=slotSize maximum=1440 minimum=10/
mx:Button label=Done click=closeDialog()/

/mx:TitleWindow

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

mx:Script
![CDATA[
import mx.controls.TileList;
import mx.controls.Button;
import mx.controls.Alert;
import mx.events.DragEvent;
import mx.controls.List;
import mx.managers.DragManager;
import mx.core.DragSource;
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;
import heightEvent;

public var w:IFlexDisplayObject;

private function initApp():void {
var dp:Array = ([
{label:First, data:25},
{label:Second, data:50},
]);
listOne.dataProvider = dp;
box001A.dataProvider = [];

}

public function slotDetails(slot:TileList):void {
var w:MyTitleWindow = MyTitleWindow
(PopUpManager.createPopUp
(this, MyTitleWindow, true));
w.addEventListener(changeHeight, changeHeightHandler);

w.height=200;
w.width=340;
w.slotHeight = slot.height;
PopUpManager.centerPopUp(w);
}

public function changeHeightHandler(event:heightEvent)
{
box001A.height = event.heightProperty;
}

]]
/mx:Script

mx:List id=listOne dragEnabled=true
dropEnabled=false x=10 y=10/mx:List
mx:TileList x=10 y=172 dropEnabled=true
dragMoveEnabled=true dragDrop=slotDetails(box001A)
dragEnabled=true id=box001A rowCount=1 columnCount=1
height=25 width=162

/mx:TileList
mx:Text x=10 y=289 text={box001A.height}
width=82/


/mx:Application


I hope this helps.
Joan 

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

 I've attempted to model this after an Adobe example found here: 
 
 http://livedocs.adobe.com/flex/201/html/textcontrols_060_19.html
 
 I'm trying to take that example and apply it to set the height of a 
 control, based on logic in the TitleWindow popup. When you close the 
 TitleWindow, I want the height value of the List to be updated.
 
 FILE: test.mxml:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute creationComplete=initApp()
 
 mx:Script
   ![CDATA[
   import mx.controls.TileList;
   import mx.controls.Button;
   import mx.controls.Alert;
 import mx.events.DragEvent;
 import mx.controls.List;
 import mx.managers.DragManager;
 import mx.core.DragSource;
 import mx.managers.PopUpManager;
 import mx.core.IFlexDisplayObject;
 
 public var w:IFlexDisplayObject;
 
   private function initApp():void {
   var dp:Array = ([
   {label:First, data:25},
 {label:Second, data:50},
 ]);
 listOne.dataProvider = dp;
 box001A.dataProvider = [];
 }
 
   public function slotDetails(slot:TileList):void {
  var w:MyTitleWindow = MyTitleWindow
 (PopUpManager.createPopUp
   (this, MyTitleWindow, true));
  w.height=200;
  w.width=340;
  w.slotHeight = slot.height;
  PopUpManager.centerPopUp(w);
 }
 
   ]]
 /mx:Script
 
   mx:List id=listOne dragEnabled=true 
 dropEnabled=false x=10 y=10/mx:List
   mx:TileList x=10 y=172 dropEnabled=true 
 dragMoveEnabled=true dragDrop=slotDetails(box001A) 
 dragEnabled=true id=box001A rowCount=1 columnCount=1 
 height=25 width=162
   
   /mx:TileList
   mx:Text x=10 y=289 text={box001A.height} 
 width=82/
   
   
 /mx:Application
 
 
 
 FILE: MyTitleWindow.mxml
 
 ?xml version=1.0?
 
 mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; 
 title=Details showCloseButton=true close=closeDialog();
 mx:Script
 ![CDATA[
 import mx.managers.PopUpManager;
   import mx.controls.Alert;

[flexcoders] Re: Strange issue with drag and drop between Lists

2006-07-21 Thread joan_lynn
We got the bugs from Todd and Jeff and are looking at the issue now.
You will run into the problem with any Drag and Drop operation in
PopUps.  I'll report back if we come up with a workaround.

Thanks,
Joan

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

 I've submitted a bug report now.
 --- In flexcoders@yahoogroups.com, jeff tapper jeff@ wrote:
 
  I'm running into a similar issue.  I can tell you that the height of
  the dead space is directly related to the header height of the Panel
  (or title window in your case).  To prove this out, try adding
  headerHeight=100 to the root titleWindow tag.
 
  --- In flexcoders@yahoogroups.com, Pan Troglodytes
  chimpathetic@ wrote:
  
   Well, I can certainly confirm what you're seeing.  It's not just a
  dead area
   at the top, it seems it's thinking you're still in the box when
  you're
   actually below it.  So it seems like there's something screwed up
  in its
   detection of where the mouse is that only comes out in popups.
  
   I'd say you have a pretty solid test case to submit to
   http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
  
   On 7/20/06, gotgoose09 thegoosmans@ wrote:
   
  I'm beginning to think that this is a bug. Is there something
  I'm
missing here?
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
gotgoose09 thegoosmans@ wrote:

 In one of my projects, I create a new TitleWindow that has two
  Lists
in
 which can drag items from one to the other. However, when I try
 dragging items from one to the other, there is a blank space
  at the
top
 of each list that I can not drop items into - I have to drop
  the items
 in the bottom of the list. If I have the same two lists not in
  a
 TitleWindow, dragging and dropping works fine, with
  no barrier. You
 can view the problem at the link below, and recreate the
  problem with
 the steps below.


  http://www.thegoosmans.com/flexproblem/TitleWindowDragAndDrop.swf

  http://www.thegoosmans.com/flexproblem/TitleWindowDragAndDrop.swf

 Hi, to recreate my problem:

 1. Create a new project (basic)

 2. In the application mxml file, paste this code in:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
 mx:Script
 ![CDATA[
 import mx.managers.PopUpManager;
 private function makePopUp():void
 {
 PopUpManager.createPopUp(this, MyPopup, true);
 }
 ]]
 /mx:Script
 mx:Button label=Make Popup id=bPopup click=makePopUp
  (); /
 mx:HBox
 mx:List id=list1 dragEnabled=true dragMoveEnabled=true
 dropEnabled=true width=100 height=100
 mx:dataProvider
 mx:StringItem 1/mx:String
 mx:StringItem 2/mx:String
 /mx:dataProvider
 /mx:List
 mx:List id=list2 dragEnabled=true dragMoveEnabled=true
 dropEnabled=true width=100 height=100 /
 /mx:HBox
 /mx:Application


 3. Create a new MXML Component, base it off of TitleWindow,
  call it
 MyPopup.mxml

 4. Paste this code into that file:
 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
 mx:HBox
 mx:List id=list1 dragEnabled=true dragMoveEnabled=true
 dropEnabled=true width=100 height=100
 mx:dataProvider
 mx:StringItem 1/mx:String
 mx:StringItem 2/mx:String
 /mx:dataProvider
 /mx:List
 mx:List id=list2 dragEnabled=true dragMoveEnabled=true
 dropEnabled=true width=100 height=100 /
 /mx:HBox
 /mx:TitleWindow

 5. Run the application.

 6. Try dragging items from list to list on the main
  application.
Then,
 click the button and try dragging and dropping, notice the
  difference
in
 where you can drop items.

   
   
   
  
  
  
   --
   Jason
  
 








 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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: Menu - handle sub-menu clicks

2006-07-11 Thread joan_lynn
Dmitry,

You can try to keep track of the last menu item that your mouse rolled
over by using the itemRollOver event. Then, in the menuShow event,
check this value. See if that works.

Joan

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

 --- In flexcoders@yahoogroups.com, Deepa Subramaniam dsubrama@
 wrote:
 
  What build of Flex are you using? I see MenuEvent.ITEM_CLICK  being
  dispatched for sub-menu selections as well as root menu selections.
 
 Basically I need to get CategoryID after click on sub-menu item on any
 level, which, in turn, has own sub-menu (has a child). But I can do it
 only for normal menu items (without sub-menus).
 
 Thank you,
 
 Dmitry.








 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/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: columnCount prop doesn't work in TileList(Flex2.0)

2005-12-15 Thread joan_lynn
This is a bug logged in our system and it should be fixed in upcoming 
builds of Flex2.

Joan

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

 If your test case is that simple it may be that TileList has a 
bug.  
 
 It mostly worked when I just tested it on a local build now, though 
I
 noticed that it was off by one at first and required a slight 
resize to
 get correct (it showed 6 instead of 7).
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of keishichi2001
 Sent: Monday, December 12, 2005 6:02 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: columnCount prop doesn't work in
 TileList(Flex2.0)
 
 --- In flexcoders@yahoogroups.com, keishichi2001
 [EMAIL PROTECTED] wrote:
 
  any info?
  
 In case if you guys are confused with my explanation, i would 
explain
 it more simply
 
 mx:TileList id=tl_month width=100% height=100% 
columnCount=7
 ...
 /mx:TileList
 
 With above code, the TileList should have 7 columns, but 4 
columns...
 
 Is it a bug on Flex2?
 
 
 -k
 
 
  -k
  
  --- In flexcoders@yahoogroups.com, keishichi2001
  [EMAIL PROTECTED] wrote:
  
   My application has a TileList as following.
   
   mx:TileList id=tl_month width=100% height=100%
 columnCount=7
   borderStyle=none dataProvider={myService.getData.result}
   listItemRenderer=myCellRenderer showEffect=Dissolve 
   
   myCellRenders is a custom component based on Canvas, and it has 
no
   definition both on height and width.
   
   The problem is, the TileList displays only 4 columns and 5th 
element
   is displayed in next row.
   I want that to be showed as 7 x N.
   
   Note that the TileList shows a monthly calendar.
   
   
   Thanks,
   Keishichi
  
 
 
 
 
 
 
 
 
 
 
 --
 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







 Yahoo! Groups Sponsor ~-- 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/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/