Full Browser Flash Blog with Five3D

July 11th, 2008

Recently I have been evaluating some of the open source flash 3D engines. I checked out Papervision3D, Sandy3D and Away3D. These are large full featured engines however there is also Five3D which allows you to render smooth shapes and text.

Full Browser 3D with Flash ActionScript3.0

I was thinking about how great it would be to have a full web page that looks just like a normal html page but is infact a full browser 3D flash page. The aim would be to briefly trick an html/css purist before unleashing some 3D trickery. Anyway I downloaded the Five3D library and expanded one of the examples to recreate my blog in 3D.

3D Blog

Check out the result here.

The page looks and scales like normal html, but doesn’t reveal it’s 3Dness until you click on it. I expect stuff like this will probably explode onto the web with the next few versions of the flash player. Google’s new ability to index swf’s in a human clicking style might just satisfy the SEO slaves.

Unfortunately at the moment the performance drops off rapidly as more text is added. For that reason I haven’t put too much onto the page. If you play with the code you can uncomment the next few paragraphs and see how it performs. In his interview with FWA, Mathieu Badimon says that he thinks Flash Player10 will offer some of the same functionality as Five3D. So this should give the performance a boost.

The Code

You will need the Five3D classes in your classpath to compile it of course, get them from the Five3D site. For flash to always fill the browser I refered to these articles, at adobe and here (AS2 but gives html publish settings).

To get your swf to always fill the browser you need these html publish settings.

Set dimensions, width and height to 100%.
Set Scale to noscale
Alignment: Set horizontal to left. Set vertical to top

The code wont teach you anything more about five3D than the basic tutorials do. You will see that the code laboriously places everything sentence by sentence, shape by shape.

If anybody writes code to process generalized html and display it in 3D, please let me know!! Adobe???

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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
package
{
import flash.display.*;
import flash.display.StageAlign;
import flash.events.*;

// We import the FIVe3D classes needed.
import five3D.display.DynamicText3D;
import five3D.display.Scene3D;
import five3D.display.Shape3D;
import five3D.display.Sprite3D;
import five3D.typography.HelveticaMedium;
import five3D.typography.HelveticaLight;
import five3D.utils.Drawing;

public class Main extends Sprite
{
var go:Boolean = false;

var scene:Scene3D = new Scene3D();
var renderClip:Sprite3D = new Sprite3D();

var mainPanel:Sprite3D = new Sprite3D();

var searchBox:Sprite3D = new Sprite3D();
var searchButton:Sprite3D = new Sprite3D();
var searchButtonText:DynamicText3D = new DynamicText3D(HelveticaLight);

var header:Sprite3D = new Sprite3D();
var titleText:DynamicText3D = new DynamicText3D(HelveticaMedium);
var titleCaption:DynamicText3D = new DynamicText3D(HelveticaLight);

var targetDot:Shape3D = new Shape3D();

var pagesHeader:DynamicText3D = new DynamicText3D(HelveticaMedium);
var pagesLink1:DynamicText3D = new DynamicText3D(HelveticaLight);

var ArchivesHeader:DynamicText3D = new DynamicText3D(HelveticaMedium);
var archivesLink1:DynamicText3D = new DynamicText3D(HelveticaLight);
var archivesLink2:DynamicText3D = new DynamicText3D(HelveticaLight);

var categoriesHeader:DynamicText3D = new DynamicText3D(HelveticaMedium);

var categoriesLink1:DynamicText3D = new DynamicText3D(HelveticaLight);
var categoriesLink2:DynamicText3D = new DynamicText3D(HelveticaLight);

var friendsHeader:DynamicText3D = new DynamicText3D(HelveticaMedium);
var friendsLink1:DynamicText3D = new DynamicText3D(HelveticaLight);
var friendsLink1Box:Sprite3D = new Sprite3D();

var friendsLink2:DynamicText3D = new DynamicText3D(HelveticaLight);
var friendsLink2Box:Sprite3D = new Sprite3D();

var friendsLink3:DynamicText3D = new DynamicText3D(HelveticaLight);

var firstHeader:DynamicText3D = new DynamicText3D(HelveticaMedium);
var firstHeaderDate:DynamicText3D = new DynamicText3D(HelveticaLight);
var firstParagraph_l1:DynamicText3D = new DynamicText3D(HelveticaLight);
var firstParagraph_l2:DynamicText3D = new DynamicText3D(HelveticaLight);
var firstParagraph_l3:DynamicText3D = new DynamicText3D(HelveticaLight);

var secondHeader:DynamicText3D = new DynamicText3D(HelveticaMedium);
var secondParagraph_l1:DynamicText3D = new DynamicText3D(HelveticaLight);
var secondParagraph_l2:DynamicText3D = new DynamicText3D(HelveticaLight);
var secondParagraph_l3:DynamicText3D = new DynamicText3D(HelveticaLight);
var secondParagraph_l4:DynamicText3D = new DynamicText3D(HelveticaLight);
var secondParagraph_l5:DynamicText3D = new DynamicText3D(HelveticaLight);
var secondParagraph_l6:DynamicText3D = new DynamicText3D(HelveticaLight);

var thirdHeader:DynamicText3D = new DynamicText3D(HelveticaMedium);
var thirdParagraph_l1:DynamicText3D = new DynamicText3D(HelveticaLight);
var thirdParagraph_l2:DynamicText3D = new DynamicText3D(HelveticaLight);
var thirdParagraph_l3:DynamicText3D = new DynamicText3D(HelveticaLight);
var thirdParagraph_l4:DynamicText3D = new DynamicText3D(HelveticaLight);
var thirdParagraph_l5:DynamicText3D = new DynamicText3D(HelveticaLight);
var thirdParagraph_l6:DynamicText3D = new DynamicText3D(HelveticaLight);

public function onMouseClickEvent( event:MouseEvent):void
{
go = true;
}

public function handleFriendsLink1Clicked( event:MouseEvent):void
{
trace("clicked mark - http://www.bigkidsdidit.co.uk/");
}

public function handleFriendsLink2Clicked( event:MouseEvent):void
{
trace("clicked mike - http://mike.duguid.co.uk/");
}

public function handleWebDevelopmentLink1Clicked( event:MouseEvent):void
{
trace("clicked eastcoast - http://www.eastcoastinteractive.co.uk");
}

public function Main()
{
renderClip.addEventListener(MouseEvent.CLICK, onMouseClickEvent);
friendsLink1.buttonMode = true;
friendsLink1.addEventListener(MouseEvent.MOUSE_DOWN, handleFriendsLink1Clicked);
friendsLink1Box.buttonMode = true;
friendsLink1Box.addEventListener(MouseEvent.MOUSE_DOWN, handleFriendsLink1Clicked);

friendsLink2.buttonMode = true;
friendsLink2.addEventListener(MouseEvent.MOUSE_DOWN, handleFriendsLink2Clicked);
friendsLink2Box.buttonMode = true;
friendsLink2.addEventListener(MouseEvent.MOUSE_DOWN, handleFriendsLink2Clicked);

stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
stage.addEventListener (Event.RESIZE,resizeHandler);

var sw:Number=stage.stageWidth;
var sh:Number=stage.stageHeight;

// We create a new Scene3D named "scene", center it and add it to the display list.
scene.x = sw/2;
scene.y = sh/2;
addChild(scene);

scene.addChild(renderClip);
renderClip.x = -sw/2;
renderClip.y = -sh/2;
renderClip.z = 0;

renderClip.addChild(mainPanel);
renderClip.addChild(header);
renderClip.addChild(targetDot);

mainPanel.addChild(searchBox);
mainPanel.addChild(searchButton);
mainPanel.addChild(searchButtonText);

mainPanel.addChild(pagesHeader);
mainPanel.addChild(pagesLink1);
mainPanel.addChild(ArchivesHeader);
mainPanel.addChild(archivesLink1);
mainPanel.addChild(archivesLink2);
mainPanel.addChild(categoriesHeader);
mainPanel.addChild(categoriesLink1);
mainPanel.addChild(categoriesLink2);
mainPanel.addChild(friendsHeader);
mainPanel.addChild(friendsLink1Box);
mainPanel.addChild(friendsLink1);
mainPanel.addChild(friendsLink2);
mainPanel.addChild(friendsLink3);

mainPanel.addChild(firstHeader);
mainPanel.addChild(firstHeaderDate);
mainPanel.addChild(firstParagraph_l1);
mainPanel.addChild(firstParagraph_l2);
mainPanel.addChild(firstParagraph_l3);

mainPanel.addChild(secondHeader);
mainPanel.addChild(secondParagraph_l1);
mainPanel.addChild(secondParagraph_l2);
mainPanel.addChild(secondParagraph_l3);
mainPanel.addChild(secondParagraph_l4);
mainPanel.addChild(secondParagraph_l5);
mainPanel.addChild(secondParagraph_l6);

mainPanel.addChild(thirdHeader);
mainPanel.addChild(thirdParagraph_l1);
mainPanel.addChild(thirdParagraph_l2);
mainPanel.addChild(thirdParagraph_l3);
mainPanel.addChild(thirdParagraph_l4);
mainPanel.addChild(thirdParagraph_l5);
mainPanel.addChild(thirdParagraph_l6);

header.addChild(titleText);
header.addChild(titleCaption);

//targetDot.graphics3D.clear();
//targetDot.graphics3D.beginFill(0xff0000);
//targetDot.graphics3D.drawRoundRect(-4, -4, 4, 4, 2, 2);
//targetDot.graphics3D.endFill();

// We attribute a random value to the rotations on the X, Y and Z axes of the "mainPanel".
//renderClip.rotationX = Math.random()*100-50;
//renderClip.rotationY = Math.random()*100-50;
//renderClip.rotationZ = Math.random()*100-50;

renderClip.addEventListener(Event.ENTER_FRAME, loopHandler);

// We register the class Main as a listener for the "click" mouse event of the "mainPanel" and modify some of its mouse-related properties.
//mainPanel.addEventListener(MouseEvent.CLICK, mainPanelClickHandler);
//mainPanel.mouseChildren = false;
//mainPanel.buttonMode = true;

// initialize sizing
resizeHandler (null);
}

function resizeHandler (event:Event):void
{
var zz:Number = 0;
// draw main panel
var sw:Number=stage.stageWidth;
var sh:Number=stage.stageHeight;
var centreX:Number = sw/2;
var mainPanelWidth:Number = 750;
var mainPanelX:Number;
var mainPanelY:Number = 30;
var mainPanelHeight:Number = 800;

if( mainPanelHeight < 220 )
{
mainPanelHeight = 220;
}

scene.x = sw/2;
scene.y = sh/2;
renderClip.x = 0;
renderClip.y = 0;

if( sw > mainPanelWidth+5 )
{
mainPanelX = sw/2 - mainPanelWidth/2;
}
else
{
mainPanelX = 5;
}

mainPanelX -= sw/2;
mainPanelY -= sh/2;
mainPanel.graphics3D.clear();
mainPanel.graphics3D.lineStyle(2,0x888888);
mainPanel.graphics3D.beginFill(0xffffff);
mainPanel.graphics3D.drawRoundRect(mainPanelX, mainPanelY, mainPanelWidth, mainPanelHeight , 10, 10);
mainPanel.graphics3D.endFill();

/*trace("renderClip.x: " + renderClip.x );
trace("renderClip.y: " + renderClip.y );
trace("mainPanel.x: " + mainPanel.x );
trace("mainPanel.y: " + mainPanel.y );
trace("mainPanelX: " + mainPanelX );
trace("mainPanelY: " + mainPanelY );*/


// draw header
var headerWidth:Number = mainPanelWidth - 20;
var headerHeight:Number = 200;
var headerX:Number = mainPanelX + 10;
var headerY:Number = mainPanelY + 10;
header.z = zz;
header.graphics3D.clear();
header.graphics3D.lineStyle(2,0xeeeeee);
header.graphics3D.beginFill(0x5A9DD4);
header.graphics3D.drawRoundRect(headerX, headerY, headerWidth, headerHeight, 10, 10);
header.graphics3D.endFill();

//trace("header.x: " + header.x);
//trace("header.y: " + header.y);
//trace("headerX: " + headerX);
//trace("headerY: " + headerY);

titleText.z = zz;
titleText.size = 45;
titleText.color = 0xFFFFFF;
titleText.text = "The Datafake blog";
titleText.x = headerX+175;
titleText.y = headerY+70;

titleCaption.z = zz;
titleCaption.size = 16;
titleCaption.color = 0xFFFFFF;
titleCaption.text = "Web fun with Actionscript PHP and MySQL";
titleCaption.x = headerX+225;
titleCaption.y = headerY+120;

searchBox.z = zz;
searchBox.x = mainPanelX+574;
searchBox.y = mainPanelY+260;
searchBox.graphics3D.clear();
searchBox.graphics3D.lineStyle(1,0x5A9DD4);
searchBox.graphics3D.drawRect(-50, -10, 100, 22);
searchBox.graphics3D.endFill();

searchButton.z = zz;
searchButton.x = mainPanelX+685;
searchButton.y = mainPanelY+260;
searchButton.graphics3D.clear();
searchButton.graphics3D.lineStyle(0,0x000000);
//searchButton.graphics3D.beginFill(1,0xaaaaaa);
searchButton.graphics3D.drawRoundRect(-50, -10, 90, 22,6,6);
searchButton.graphics3D.endFill();

searchButtonText.z = zz;
searchButtonText.size = 16;
searchButtonText.color = 0x000000;
searchButtonText.text = "Search";
searchButtonText.x = headerX+646;
searchButtonText.y = headerY+241;

//var pagesHeader:DynamicText3D = new DynamicText3D(HelveticaMedium);
//var pagesLink1:DynamicText3D = new DynamicText3D(HelveticaLight);

pagesHeader.z = zz;
pagesHeader.size = 16;
pagesHeader.color = 0x000000;
pagesHeader.text = "Pages";
pagesHeader.x = mainPanelX+574;
pagesHeader.y = mainPanelY+320;

pagesLink1.z = zz;
pagesLink1.size = 11;
pagesLink1.color = 0x0000ff;
pagesLink1.text = "About";
pagesLink1.x = mainPanelX+584;
pagesLink1.y = mainPanelY+340;

ArchivesHeader.z = zz;
ArchivesHeader.size = 16;
ArchivesHeader.color = 0x000000;
ArchivesHeader.text = "Archives";
ArchivesHeader.x = mainPanelX+574;
ArchivesHeader.y = mainPanelY+370;

archivesLink1.z = zz;
archivesLink1.size = 11;
archivesLink1.color = 0x0000ff;
archivesLink1.text = "July 2008";
archivesLink1.x = mainPanelX+584;
archivesLink1.y = mainPanelY+390;

archivesLink2.z = zz;
archivesLink2.size = 11;
archivesLink2.color = 0x0000ff;
archivesLink2.text = "June 2008";
archivesLink2.x = mainPanelX+584;
archivesLink2.y = mainPanelY+410;

categoriesHeader.z = zz;
categoriesHeader.size = 16;
categoriesHeader.color = 0x000000;
categoriesHeader.text = "Web Development";
categoriesHeader.x = mainPanelX+574;
categoriesHeader.y = mainPanelY+454;

categoriesLink1.z = zz;
categoriesLink1.size = 11;
categoriesLink1.color = 0x0000ff;
categoriesLink1.text = "East Coast Interactive";
categoriesLink1.x = mainPanelX+584;
categoriesLink1.y = mainPanelY+474;

/*
categoriesLink2.z = zz;
categoriesLink2.size = 11;
categoriesLink2.color = 0x0000ff;
categoriesLink2.text = "Web Development(1)";
categoriesLink2.x = mainPanelX+584;
categoriesLink2.y = mainPanelY+494;
*/


friendsHeader.z = zz;
friendsHeader.size = 16;
friendsHeader.color = 0x000000;
friendsHeader.text = "Friends";
friendsHeader.x = mainPanelX+574;
friendsHeader.y = mainPanelY+504;

friendsLink1.z = zz;
friendsLink1.size = 11;
friendsLink1.color = 0x0000ff;
friendsLink1.text = "Mark McAulay";
friendsLink1.x = mainPanelX+584;
friendsLink1.y = mainPanelY+524;

friendsLink1Box.z = zz;

friendsLink1Box.graphics3D.clear();
friendsLink1Box.graphics3D.beginFill(0xffff00);
friendsLink1Box.graphics3D.drawRect(0, 0, 70, 15);
friendsLink1Box.graphics3D.endFill();
friendsLink1Box.x = mainPanelX+584;
friendsLink1Box.y = mainPanelY+524;

friendsLink2.z = zz;
friendsLink2.size = 11;
friendsLink2.color = 0x0000ff;
friendsLink2.text = "Mike Duguid";
friendsLink2.x = mainPanelX+584;
friendsLink2.y = mainPanelY+546;

/*
mainPanel.addChild(flash3DHeader);
mainPanel.addChild(flash3DLink1);
mainPanel.addChild(flash3DLink2);
mainPanel.addChild(flash3DLink3);
*/


firstHeader.z = zz;
firstHeader.size = 20;
firstHeader.color = 0x000000;
firstHeader.text = "The Library, Classes and MovieClips in AS3";
firstHeader.x = mainPanelX+40;
firstHeader.y = mainPanelY+250;

firstHeaderDate.z = zz;
firstHeaderDate.size = 12;
firstHeaderDate.color = 0x000000;
firstHeaderDate.text = "July 7th, 2008";
firstHeaderDate.x = mainPanelX+40;
firstHeaderDate.y = mainPanelY+275;

firstParagraph_l1.z = zz;
firstParagraph_l1.size = 16;
firstParagraph_l1.color = 0x000000;
firstParagraph_l1.text = "This post describes some of the differences I have stumbled over";
//"whilst working with actionscript 3.0 and Flash CS3 compared to earlier versions.";
firstParagraph_l1.x = mainPanelX+40;
firstParagraph_l1.y = mainPanelY+320;

firstParagraph_l2.z = zz;
firstParagraph_l2.size = 16;
firstParagraph_l2.color = 0x000000;
firstParagraph_l2.text = "whilst working with actionscript 3.0 and Flash CS3 compared to ";
firstParagraph_l2.x = mainPanelX+40;
firstParagraph_l2.y = mainPanelY+340;

firstParagraph_l3.z = zz;
firstParagraph_l3.size = 16;
firstParagraph_l3.color = 0x000000;
firstParagraph_l3.text = "earlier versions....";
firstParagraph_l3.x = mainPanelX+40;
firstParagraph_l3.y = mainPanelY+360;

/*
secondHeader.z = zz;
secondHeader.size = 20;
secondHeader.color = 0x000000;
secondHeader.text = "It starts with Export for Actionscript";
secondHeader.x = mainPanelX+40;
secondHeader.y = mainPanelY+400;

secondParagraph_l1.z = zz;
secondParagraph_l1.size = 16;
secondParagraph_l1.color = 0x000000;
secondParagraph_l1.text = "In AS2 if you wanted to access the properties of an instance on the ";
secondParagraph_l1.x = mainPanelX+40;
secondParagraph_l1.y = mainPanelY+430;

secondParagraph_l2.z = zz;
secondParagraph_l2.size = 16;
secondParagraph_l2.color = 0x000000;
secondParagraph_l2.text = "stage from code you had to ensure that the export for actionscript...";
secondParagraph_l2.x = mainPanelX+40;
secondParagraph_l2.y = mainPanelY+450;

secondParagraph_l3.z = zz;
secondParagraph_l3.size = 16;
secondParagraph_l3.color = 0x000000;
secondParagraph_l3.text = "checkbox was selected in the linkage properties for that MovieClip in ";
secondParagraph_l3.x = mainPanelX+40;
secondParagraph_l3.y = mainPanelY+470;

secondParagraph_l4.z = zz;
secondParagraph_l4.size = 16;
secondParagraph_l4.color = 0x000000;
secondParagraph_l4.text = "the library. If it wasnt your code wouldnt see the instance and would ";
secondParagraph_l4.x = mainPanelX+40;
secondParagraph_l4.y = mainPanelY+490;

secondParagraph_l5.z = zz;
secondParagraph_l5.size = 16;
secondParagraph_l5.color = 0x000000;
secondParagraph_l5.text = "fail silently. This was pretty confusing at first and even once you got ";
secondParagraph_l5.x = mainPanelX+40;
secondParagraph_l5.y = mainPanelY+510;

secondParagraph_l6.z = zz;
secondParagraph_l6.size = 16;
secondParagraph_l6.color = 0x000000;
secondParagraph_l6.text = "used to it there would be times that it would still catch you out.";
secondParagraph_l6.x = mainPanelX+40;
secondParagraph_l6.y = mainPanelY+530;

thirdHeader.z = zz;
thirdHeader.size = 20;
thirdHeader.color = 0x000000;
thirdHeader.text = "When you dont need to Export for ActionScript";
thirdHeader.x = mainPanelX+40;
thirdHeader.y = mainPanelY+580;

thirdParagraph_l1.z = zz;
thirdParagraph_l1.size = 16;
thirdParagraph_l1.color = 0x000000;
thirdParagraph_l1.text = "In AS3 you do not need to select the export for actionscript checkbox ";
thirdParagraph_l1.x = mainPanelX+40;
thirdParagraph_l1.y = mainPanelY+610;

thirdParagraph_l2.z = zz;
thirdParagraph_l2.size = 16;
thirdParagraph_l2.color = 0x000000;
thirdParagraph_l2.text = "to access the properties of an instance on the stage. Any MovieClip ";
thirdParagraph_l2.x = mainPanelX+40;
thirdParagraph_l2.y = mainPanelY+630;

thirdParagraph_l3.z = zz;
thirdParagraph_l3.size = 16;
thirdParagraph_l3.color = 0x000000;
thirdParagraph_l3.text = "instance you drag onto the stage at design time becomes a property";
thirdParagraph_l3.x = mainPanelX+40;
thirdParagraph_l3.y = mainPanelY+650;

thirdParagraph_l4.z = zz;
thirdParagraph_l4.size = 16;
thirdParagraph_l4.color = 0x000000;
thirdParagraph_l4.text = "of the document class and can be accessed from code as long as it has";
thirdParagraph_l4.x = mainPanelX+40;
thirdParagraph_l4.y = mainPanelY+670;

thirdParagraph_l5.z = zz;
thirdParagraph_l5.size = 16;
thirdParagraph_l5.color = 0x000000;
thirdParagraph_l5.text = "an instance name.";
thirdParagraph_l5.x = mainPanelX+40;
thirdParagraph_l5.y = mainPanelY+690;

thirdParagraph_l6.z = zz;
thirdParagraph_l6.size = 16;
thirdParagraph_l6.color = 0x000000;
thirdParagraph_l6.text = "If you do select export for actionscript for a clip in the library, like this";
thirdParagraph_l6.x = mainPanelX+40;
thirdParagraph_l6.y = mainPanelY+730;

*/

//renderClip.y = - 400;
}

public function loopHandler(e:Event)
{
if( go )
{
if( renderClip.z > - 400 )
{
renderClip.z-=0.5;
}
renderClip.rotationX -=.5;
renderClip.rotationZ -=.05;
}
}

}
}

Or get everything here.

Entry Filed under: flash

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed

Calendar

May 2017
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Categories

Most Recent Posts

Feeds