Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Hi! I cleaned up your code for you! #364

Merged
merged 1 commit into from
Oct 31, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 10 additions & 10 deletions examples/DockingToolBar1/src/as/EditingToolbar.as
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import mx.controls.Menu;
import mx.events.MenuEvent;
import mx.controls.Alert;
import Iconassets.*;
[Bindable]
private var alignButtonsArray:Array = [
[Bindable]
private var alignButtonsArray:Array = [
{icon:IconAlignLeft, action:"left", tooltip:"Align Left"},
{icon:IconAlignCenter, action:"center", tooltip:"Center"},
{icon:IconAlignRight, action:"right", tooltip:"Align Right"},
Expand All @@ -37,10 +37,10 @@ import Iconassets.*;
,"Courier","Courier New","Geneva","Georgia","Helvetica","Times","Verdana" ];
[Bindable]
private var fontSizeArray:Array = [8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72];

//MenuBar
[Bindable]
private var myMenuBarXML:XMLList =
private var myMenuBarXML:XMLList =
<>
<menuitem label= "File">
<menuitem label= "Open"/>
Expand All @@ -51,21 +51,21 @@ import Iconassets.*;
<menuitem label= "Paste"/>
<menuitem label= "Send"/>
</menuitem>
<menuitem label= "View">
<menuitem label= "View">
<menuitem label= "ToolBars">
<menuitem label="Formatting" type="Check" toggled="true"/>
</menuitem>
<menuitem label= "PageLayout"/>
<menuitem label= "FullScreen"/>
</menuitem>
<menuitem label= "Window">
<menuitem label= "Window">
<menuitem label= "Tile"/>
</menuitem>
</>;

//Add remove buttons
[Bindable]
private var formatingtoolBarXML:XMLList =
private var formatingtoolBarXML:XMLList =
<>
<toolBarItem label= "Font" type="Check" toggled="true" />
<toolBarItem label= "Font Size" type="Check" toggled="true" />
Expand All @@ -76,7 +76,7 @@ import Iconassets.*;
<toolBarItem label= "AlignButtons" type="Check" toggled="true"/>
<toolBarItem label= "Bullets" type="Check" toggled="true"/>
</>;

private function ToggleToolbars(event:MenuEvent):void
{
switch (event.label)
Expand All @@ -101,7 +101,7 @@ import Iconassets.*;
break;
default:
break;
}
}
}
private function ToggleButtonsinToolBar(event:MenuEvent):void
{
Expand Down
4 changes: 2 additions & 2 deletions examples/DockingToolBar1/src/css/docker.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ flexlib|DockableToolBar
paddingRight: 8;
paddingTop: 0;
backgroundColor: #9199A4;
}
}

.dockingArea
{
horizontalScrollPolicy: "off";
verticalGap: 0;
borderStyle: "applicationControlBar";
dropShadowEnabled: true;
dropShadowEnabled: true;
}

.dockingRow
Expand Down
20 changes: 10 additions & 10 deletions examples/DockingToolBar2/src/as/EditingToolbar.as
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import mx.controls.Menu;
import mx.events.MenuEvent;
import mx.controls.Alert;
import Iconassets.*;
[Bindable]
private var alignButtonsArray:Array = [
[Bindable]
private var alignButtonsArray:Array = [
{icon:IconAlignLeft, action:"left", tooltip:"Align Left"},
{icon:IconAlignCenter, action:"center", tooltip:"Center"},
{icon:IconAlignRight, action:"right", tooltip:"Align Right"},
Expand All @@ -37,10 +37,10 @@ import Iconassets.*;
,"Courier","Courier New","Geneva","Georgia","Helvetica","Times","Verdana" ];
[Bindable]
private var fontSizeArray:Array = [8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72];

//MenuBar
[Bindable]
private var myMenuBarXML:XMLList =
private var myMenuBarXML:XMLList =
<>
<menuitem label= "File">
<menuitem label= "Open"/>
Expand All @@ -51,21 +51,21 @@ import Iconassets.*;
<menuitem label= "Paste"/>
<menuitem label= "Send"/>
</menuitem>
<menuitem label= "View">
<menuitem label= "View">
<menuitem label= "ToolBars">
<menuitem label="Formatting" type="Check" toggled="true"/>
</menuitem>
<menuitem label= "PageLayout"/>
<menuitem label= "FullScreen"/>
</menuitem>
<menuitem label= "Window">
<menuitem label= "Window">
<menuitem label= "Tile"/>
</menuitem>
</>;

//Add remove buttons
[Bindable]
private var formatingtoolBarXML:XMLList =
private var formatingtoolBarXML:XMLList =
<>
<toolBarItem label= "Font" type="Check" toggled="true" />
<toolBarItem label= "Font Size" type="Check" toggled="true" />
Expand All @@ -76,7 +76,7 @@ import Iconassets.*;
<toolBarItem label= "AlignButtons" type="Check" toggled="true"/>
<toolBarItem label= "Bullets" type="Check" toggled="true"/>
</>;

private function ToggleToolbars(event:MenuEvent):void
{
switch (event.label)
Expand All @@ -101,7 +101,7 @@ import Iconassets.*;
break;
default:
break;
}
}
}
private function ToggleButtonsinToolBar(event:MenuEvent):void
{
Expand Down
4 changes: 2 additions & 2 deletions examples/DockingToolBar2/src/css/docker.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ flexlib|DockableToolBar
paddingRight: 8;
paddingTop: 0;
backgroundColor: #9199A4;
}
}

.dockingArea
{
horizontalScrollPolicy: "off";
verticalGap: 0;
borderStyle: "applicationControlBar";
dropShadowEnabled: true;
dropShadowEnabled: true;
}

.dockingRow
Expand Down
10 changes: 5 additions & 5 deletions examples/EnhancedButton/src/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";

s|Application
s|Application
{
color: #FFFFFF;
font-family: Arial;
font-size: 10;
}

s|Button {
upSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
overSkin:ClassReference('flexlib.skins.EnhancedButtonSkin');
Expand Down Expand Up @@ -71,7 +71,7 @@ mx|HSlider
rounded-bottom-corners: true;
}

.areaPanelTitle
.areaPanelTitle
{
/*letter-spacing: 4;*/
/*color: #ffffff;*/
Expand Down Expand Up @@ -106,10 +106,10 @@ mx|HSlider
corner-radii: 12, 0, 0, 12;
fill-colors: #557AB7, #91A8D0, #3A66AC, #7F9AC8;
fill-color-ratios: 0, 40, 80, 255;

over-fill-colors: #FF0000, #00FF00, #0000FF, #333333;
over-fill-color-ratios: 0, 80, 160, 255;

}

.niceButton
Expand Down
10 changes: 5 additions & 5 deletions examples/EnhancedButton/src/events/SetStyleEvent.as
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ package events
{
public var styleProp : String;
public var styleVal : *;

public static const TYPE : String = "setStyle";
public function SetStyleEvent( styleProp : String, styleVal : * )


public function SetStyleEvent( styleProp : String, styleVal : * )
{
super( TYPE, true );
this.styleProp = styleProp;
this.styleVal = styleVal;
}

}
}