My favorites | Sign in
Project Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0" encoding="utf-8"?>
<!--

////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008 Gabriel Montagné Láscaris-Comneno and Alberto
// Brealey-Guzmán.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
////////////////////////////////////////////////////////////////////////////

$Id$

-->
<rojored:RojoRed

xmlns:blog="com.rojored.view.blog.*"
xmlns:business="com.rojored.control.delegates.*"
xmlns:control="com.rojored.control.*"
xmlns:header="com.rojored.view.header.*"
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:preloaders="com.rojored.view.preloaders.*"
xmlns:rojored="com.rojored.*"
xmlns:startup="com.rojored.control.events.startup.*"
xmlns:virtual="com.rojored.view.virtual.*"

viewSourceURL="http://code.google.com/p/rojored/source/browse/trunk/docs/examples/sites/rojored.com"

backgroundGradientColors="null"
historyManagementEnabled="false"
preloader="com.rojored.view.preloaders.CountDown"
layout="absolute"

currentState="{model.guiData.state}"
creationComplete="startup.start()"
>
<mx:Metadata>
[ResourceBundle("Main")]
</mx:Metadata>
<mx:Style source="styles/main.css" />

<mx:Script>
<![CDATA[

import com.rojored.model.data.GUIData;
import com.rojored.model.ModelLocator;

//--------------------------------------------------------------------------
//
// Variables
//
//--------------------------------------------------------------------------

[Bindable]

/**
* @private
*/
private var model:ModelLocator = ModelLocator.getInstance();

]]>
</mx:Script>

<control:FrontController />
<business:Services />
<startup:StartupEventGenerator id="startup" />

<virtual:BrowserManagerView />
<preloaders:ProgressIndicator id="progressIndicator" />

<rojored:states>
<mx:State name="{GUIData.BLOG}">
<mx:AddChild
relativeTo="{progressIndicator}"
position="before"
creationPolicy="all"
>
<blog:Blog id="blog" />
</mx:AddChild>
<mx:AddChild
relativeTo="{progressIndicator}"
position="before"
creationPolicy="all"
>
<header:Header id="header" />
</mx:AddChild>
<mx:RemoveChild target="{progressIndicator}" />
</mx:State>
<mx:State name="{GUIData.BOOKMARKS}" basedOn="{GUIData.BLOG}" />
</rojored:states>
<rojored:transitions>
<mx:Transition fromState="" toState="{GUIData.BLOG}">
<mx:Sequence>
<mx:AddChildAction target="{blog}" />
<mx:AddChildAction target="{header}" />
<mx:Pause duration="2000" />
<mx:Fade target="{progressIndicator}" duration="700" alphaFrom="1" alphaTo="0" />
<mx:RemoveChildAction target="{progressIndicator}" />
</mx:Sequence>
</mx:Transition>
</rojored:transitions>
</rojored:RojoRed>
Show details Hide details

Change log

r86 by gabriel.montagne on Sep 15, 2008   Diff
 r11@emma:  gabriel | 2008-09-14 11:02:45
-0600
 loading del.icio.us data
 r12@emma:  gabriel | 2008-09-14 12:51:22
-0600
 simple experiments with joining feeds for
the carousel; adding a still unused
'bookmarks' gui state and renaming 'home'
to 'blog'
 r13@emma:  gabriel | 2008-09-14 13:35:43
-0600
 initial tests in changing carousel layout
...
Go to: 
Sign in to write a code review

Older revisions

r75 by gabriel.montagne on Sep 12, 2008   Diff
adding the rojored.com code as another
site example
All revisions of this file

File info

Size: 4300 bytes, 120 lines

File properties

svn:keywords
Id
Hosted by Google Code