Deprecated: Assigning the return value of new by reference is deprecated in /home/datafake/public_html/blog/wp-settings.php on line 468

Deprecated: Assigning the return value of new by reference is deprecated in /home/datafake/public_html/blog/wp-settings.php on line 483

Deprecated: Assigning the return value of new by reference is deprecated in /home/datafake/public_html/blog/wp-settings.php on line 490

Deprecated: Assigning the return value of new by reference is deprecated in /home/datafake/public_html/blog/wp-settings.php on line 526

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 594

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 594

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 594

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 594

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 611

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 705

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 705

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 705

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 705

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/datafake/public_html/blog/wp-includes/classes.php on line 728

Strict Standards: Redefining already defined constructor for class wpdb in /home/datafake/public_html/blog/wp-includes/wp-db.php on line 306

Deprecated: Assigning the return value of new by reference is deprecated in /home/datafake/public_html/blog/wp-includes/cache.php on line 103

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/datafake/public_html/blog/wp-includes/cache.php on line 425

Deprecated: Assigning the return value of new by reference is deprecated in /home/datafake/public_html/blog/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/datafake/public_html/blog/wp-includes/theme.php on line 618

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /home/datafake/public_html/blog/wp-includes/class.wp-dependencies.php on line 15

Warning: Illegal string offset 'trackoutbound' in /home/datafake/public_html/blog/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 489

Warning: Illegal string offset 'trackadsense' in /home/datafake/public_html/blog/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 501

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically in /home/datafake/public_html/blog/wp-includes/plugin.php on line 311
Full Browser Flash Blog with Five3D

Full Browser Flash Blog with Five3D

Post Page Rank

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???

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.

Tags: , , , ,

5 Responses to “Full Browser Flash Blog with Five3D”

  1. d Says:

    i like it

  2. Mathieu Badimon | FIVe3D | Blog » Blog Archive » Full Browser Flash Blog with Five3D Says:

    [...] Direct link: click here [...]

  3. michael Says:

    you could get around much of the performance issues by not using vector text.

    example:
    (temp contains a dynamic textfield, with filled out information)
    var t_bmp:BitmapData = new BitmapData(temp.width,temp.height, true, 0×000000);
    t_bmp.draw(temp);
    var bmp3D:Bitmap3D = new Bitmap3D(t_bmp);
    var spr:Sprite3D = new Sprite3D();
    spr.addChild(bmp3D);
    scene.addChild(spr);

    assuming your fonts are embedded, this will give you good looking text without screwing too much with processing/memory.

  4. sandrar Says:

    Hi! I was surfing and found your blog post… nice! I love your blog. :) Cheers! Sandra. R.

  5. Flash AS3 and Five3D - a quick test | wasted potential Says:

    [...] A fun Five3D experiment [...]

Leave a Reply