Mensagens neste resumo (15 Mensagens)
- 1.1.
- Re: VGroup e HGroup e a propriedade Background De: Igor Costa
- 2.1.
- Re: [flex-brasil] MUDAR COR DE BOTÃO E COLOCAR EFEITO De: Igor Costa
- 2.2.
- RES: [flex-brasil] MUDAR COR DE BOTÃO E COLOCAR EFEITO De: roger.rayner
- 3.
- Application De: Douglas Lira
- 4.1.
- Re: Download do SDK Open Source De: fourctv
- 5.
- ERRO EM CHAMADA REMOTA De: roger.rayner
- 6.1.
- Som no Flex De: wellingtonsousa
- 6.2.
- Re: Som no Flex De: Mário Júnior
- 6.3.
- Re: Som no Flex De: Wellington Gonçalves de Sousa
- 6.4.
- Res: [flex-brasil] Som no Flex De: Rodrigo Nunes
- 6.5.
- Re: Som no Flex De: Wellington Gonçalves de Sousa
- 7.
- RES: [flexdev] ERRO EM CHAMADA REMOTA De: roger.rayner
- 8.
- FlexPrintJob mudar nome da impressão De: c4viny
- 9.
- Para projeto em BH De: Hudson Yahoo
- 10.
- Custom click em Componente Proprio De: Ricardo Cardoso
Mensagens
- 1.1.
-
Re: VGroup e HGroup e a propriedade Background
Enviado por: "Igor Costa" igorcosta@gmail.com igorfrombrazil
Dom, 17 de Out de 2010 6:16 pm
Boa tarde Luis
O caso é que no Flex 4 tudo está desacoplado do componente, seja Skins,
Estilos e até comportamento, tudo é agnóstico ao componente.
Então para você colocar um background em um VGroup ou HGroup, você terá que
desenhar usando o FXG ou criar um skin para que isso ocorra.
Assim voce pode usar qualquer cor que queira. O exemplo abaixo mostra
justamente um desenho de um objeto primitivo FXG.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/ "2009
xmlns:s="library://ns.adobe.com/ "flex/spark
xmlns:mx="library://ns.adobe.com/ " minWidth="955"flex/mx
minHeight="600">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here
-->
</fx:Declarations>
<s:Group x="359" y="91" width="214" height="208">
<s:Rect width="100%" height="100%">
<s:fill>
<s:SolidColor color="#000000"/>
</s:fill>
</s:Rect>
<s:HGroup >
<s:Button label="Luis Quinhone"/>
<s:Button label="Luis Quinhone"/>
<s:Button label="Luis Quinhone"/>
</s:HGroup>
</s:Group>
</s:Application>
O uso do borderContainer eu desaconselho agora justamente por que é um
"memory fog" consome muita memória. No SDK 4.5 eles melhoraram bastante a
maneira do re-desenho constante do BorderContainer, e pode ser usado.
Anterior ao 4.5 a melhor forma é assim.
Att
--------------------- -------
Igor Costa
www.igorcosta.com
www.igorcosta.org
2010/10/16 Luis Carlos Quinhone <lcquinhone@yahoo.com.br >
>
>
> Olá pessoal, no Flex 3, sempre usava o HBox e VBox para posicionar
> componentes, hoje no Flex 4 mudou para HGroup e VGroup
> mas agora ele não tem a propriedade background não tem como colocar uma
> cor nele, alguém sabe se tem algum segredo pra isso?
>
> Alguns vão dizer pra usar o borderContainer ou o BorderSkining, mas
> esses não tem a propriedade horizontalAlign e VerticalAlign.
>
> Eu até consegui fazer mas achei muito POG pro meu gosto.
>
> Att
>
> Luis Carlos
>
>
[As partes desta mensagem que não continham texto foram removidas]
- 2.1.
-
Re: [flex-brasil] MUDAR COR DE BOTÃO E COLOCAR EFEITO
Enviado por: "Igor Costa" igorcosta@gmail.com igorfrombrazil
Dom, 17 de Out de 2010 6:40 pm
Roger
Espero que esteja com o Flex 3.x, Veja como voce pode fazer abaixo.
package com.datasul
{
import flash.events.MouseEvent;
import mx.controls.Button;
import mx.styles.StyleManager;
public class LiveButtonRoger extends Button
{
public function LiveButtonRoger()
{
super();
this.addEventListener(MouseEvent. MOUSE_OVER, mouse_sobreHandl er);
this.addEventListener(MouseEvent. MOUSE_OUT, remover_foraHand ler);
}
private function remover_foraHandler(event:MouseEven t):void
{
var coresOriginaisdoFlex3:Array = [0xffffff, 0xcccccc, 0xffffff,
0xeeeeee];
this.setStyle('fillColors' ,coresOriginaisd oFlex3);
}
private function mouse_sobreHandler(event:MouseEvent ):void
{
this.setStyle('textRollOverCol or',0xff9900) ;
var cores:Array = [0x000000, 0x333333, 0x000000, 0x000000];
this.setStyle('fillColors' ,cores);
}
}
}
Att
Igor Costa
--------------------- -------
Igor Costa
www.igorcosta.com
www.igorcosta.org
2010/10/16 roger.rayner <roger.rayner@totvs.com. >br
>
>
> Boa noite galera....
>
> Estou tentando criar um Button customizado e estou meio que barrado numa
> pequena parte... eu quero incluir evento para quando o mouse passe em cima
> do botão ou que saia dele mude a cor do botão.... fiz como abaixo... só que
> quando incluo esse meu botão num application para testar da o seguinte
> erro... Alguem poderia me dar uma luz?
>
> public class LiveSystemButton extends Button
>
> {
>
> private var _mouseUpDownColorStart:uint;
>
> private var _mouseUpDownColorEnd:uint;
>
> private var _mouseUpDownColor:uint;
>
> public function LiveSystemButton()
>
> {
>
> super();
>
> this.addEventListener(MouseEvent. MOUSE_UP, mouseUpEvent) ;
>
> }
>
> private function mouseUpEvent(evt:MouseEvent) :void{
>
> this.setStyle("color", _mouseUpDownColor) ;
>
> this.setStyle("fillColors" ,
>
> [ColorUtils.interpolateColor s( _mouseUpDownColorSt art,
> _mouseUpDownColorEnd, 1),
>
> ColorUtils.interpolateColors(
> _mouseUpDownColorStart, _mouseUpDownColorEn d, 1),
>
> ColorUtils.interpolateColors(
> _mouseUpDownColorStart, _mouseUpDownColorEn d, 1),
>
> ColorUtils.interpolateColors(
> _mouseUpDownColorStart, _mouseUpDownColorEn d, 1)]);
>
> }
>
> Error: Error #1023: Estouro de pilha.
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\ src\br\com\ livesystem\ components\ LiveSystemBut
> ton.as:36]
>
> at br.com.livesystem.components: :LiveSystemButto n/set
> mouseUpDownColorEnd()[D:\PROGRAMAÇÃO\PROGRAMAS
>
> JAVA-FLEX\FrameworkLiveSystem\