-
I posted to delicious.com
Ten Reasons to Use Flash (Deitte.com)
http://www.deitte.com/archives/2010/02/ten_reasons_to.htm
- Tags:
- Flash
February 10 2010, 10:25pm | Comments »
-
I posted to delicious.com
3D Fractals (Ray-traced with Flash)
- Tags:
- 3d
- Flash
- PixelBender
February 8 2010, 6:48am | Comments »
-
I posted to delicious.com
Using Away3D with Flex > Tutorials > Flash Magazine
http://www.flashmagazine.com/tutorials/detail/using_away3d_with_flex/
February 8 2010, 6:47am | Comments »
-
I posted to i-create.org
404 Errors Hyped With PaperVision3d pt. 2
http://i-create.org/2010/02/07/404-errors-hyped-with-papervision3d-pt-2/
Capture URL for search with JavaScript and Pass it to Flash Search Google from URL parsing Use of Random Range Create an Array of Spheres that holds the Google results Apply the title field to a Text3D and add that as a child to the Sphere Apply an Event to the Sphere to navigate to the Google result. How to trace out events from flash to Firebug
This tutorial uses the following libraries of code: Hype PaperVision3d googleas3api I chose to omit the parallax effect. You can find an excellent example of the parallax effect on gotoandlearn.com, .Net , and web designer magazine. I might modify this swf later to have youtube results and render them as planes. If you go to seacloud9.org and look for a page that you know is not on that web server it will serve up google results and display them in three dimensions randomly. This page is distracting on purpose but It was kind of fun to make. You can go to the page results by clicking on the sphere. You can move the viewport of the search results by moving the sliders. JavaScript to retrieve the url location and parse it:
?View Code JAVASCRIPT var gResult; var gResultL; function getQueryString(){ var qString = [removed]; myReg = new RegExp("http://seacloud9.org/"); var url = qString.href.replace(myReg, ""); return url; } function googleResultArray(googleResult){ gResult = googleResult; } function getGoogleTitle(titleNum){ return gResult[titleNum]; }
ActionScript 3 Code behind for SWF all Google Search code and Debugging
?View Code ACTIONSCRIPTpackage { import flash.display.*; import flash.events.*; import flash.events.Event; import flash.filters.BitmapFilterQuality; import flash.filters.BlurFilter; import fl.transitions.*; import flash.media.Sound; import flash.net.URLLoader; import flash.net.URLRequest; import flash.net.URLRequestMethod; import flash.net.navigateToURL; import org.papervision3d.cameras.Camera3D; import org.papervision3d.objects.primitives.Plane; import org.papervision3d.objects.primitives.Sphere; import org.papervision3d.render.BasicRenderEngine; import org.papervision3d.scenes.Scene3D; import org.papervision3d.view.Viewport3D; import org.papervision3d.typography.Font3D; import org.papervision3d.typography.Text3D; import org.papervision3d.materials.BitmapFileMaterial; import org.papervision3d.materials.special.Letter3DMaterial; import org.papervision3d.typography.fonts.HelveticaBold; import org.papervision3d.materials.MovieMaterial; import org.papervision3d.materials.*; import org.papervision3d.events.InteractiveScene3DEvent; import hype.framework.core.TimeType; import hype.framework.rhythm.SimpleRhythm; import hype.framework.sound.SoundAnalyzer; import org.papervision3d.lights.PointLight3D; import org.papervision3d.materials.shadematerials.CellMaterial; import flash.external.ExternalInterface; import be.boulevart.google.events.*; import be.boulevart.google.ajaxapi.search.web.*; import be.boulevart.google.ajaxapi.search.web.data.*; import be.boulevart.google.ajaxapi.search.*; public class e404 extends MovieClip { public var viewport:Viewport3D; public var scene:Scene3D; public var camera:Camera3D; public var viewport2:Viewport3D; public var scene2:Scene3D; public var camera2:Camera3D; public var plane:Plane; public var plane2:Plane; public var plane3:Plane; public var sphere:Sphere; public var font3d:Font3D; public var text3d:Text3D; public var fontMat:Letter3DMaterial; private var cell:CellMaterial; private var sphereArr:Array; public var light:PointLight3D; public var renderer:BasicRenderEngine; public var renderer2:BasicRenderEngine; public var googleTitle:Array = new Array(); public var googleLink:Array = new Array(); public var googleWebSearch:GoogleWebSearch=new GoogleWebSearch(); public var googURL:URLRequest; public function e404():void { addEventListener( Event.ENTER_FRAME, e404Go ); } private function onWebResults(e:GoogleSearchEvent):void { var resultObject:GoogleSearchResult=e.data as GoogleSearchResult; ExternalInterface.call( "console.log" ,"Estimated Number of Results: "+resultObject.estimatedNumResults); ExternalInterface.call( "console.log" ,"Current page index: "+resultObject.currentPageIndex); ExternalInterface.call( "console.log" ,"Number of pages: "+resultObject.numPages); for each (var result:GoogleWebItem in resultObject.results) { googleTitle.push(result.title); googURL = new URLRequest (result.url); googleLink.push(googURL); ExternalInterface.call( "console.log" ,"link:"+result.url+"title:"+result.title ); } ExternalInterface.call( "googleResultArray" , googleTitle ); //build 3d world now that we have our google search! init3D(); createSearch(); addEventListeners(); } private function onAPIError(evt:GoogleAPIErrorEvent):void { trace("An API error has occured: " + evt.responseDetails, "responseStatus was: " + evt.responseStatus); } public function e404Go(e:Event):void { removeEventListener(Event.ENTER_FRAME,e404Go ); // Create the container Sprite stage.scaleMode=StageScaleMode.NO_SCALE; stage.align=StageAlign.TOP_LEFT; //this javascript function returns the query string from the window location googleWebSearch.search(ExternalInterface.call( "getQueryString" ),0,"english"); googleWebSearch.addEventListener(GoogleAPIErrorEvent.API_ERROR,onAPIError); googleWebSearch.addEventListener(GoogleSearchEvent.WEB_SEARCH_RESULT,onWebResults); } private function init3D():void { // VIEWPORT viewport=new Viewport3D(0,0,true,false); viewport2=new Viewport3D(stage.width,stage.height,true,true); addChild( viewport ); addChild( viewport2 ); // // RENDERER renderer = new BasicRenderEngine(); renderer2 = new BasicRenderEngine(); // // SCENE scene = new Scene3D(); scene2 = new Scene3D(); // // CAMERA camera = new Camera3D(); camera.zoom=11; camera.focus=100; camera2 = new Camera3D(); camera2.zoom=11; camera2.focus=100; } private function createSearch():void { // Set some colors so we can see if loading is still happening, // or if it failed BitmapFileMaterial.LOADING_COLOR=0x000000; BitmapFileMaterial.ERROR_COLOR=0xFF0000; // var material:BitmapFileMaterial=new BitmapFileMaterial("404e.png"); material.doubleSided=true; var material2:BitmapFileMaterial=new BitmapFileMaterial("404e2.png"); material2.doubleSided=true; var material3:ColorMaterial=new ColorMaterial(0xFC0606,.3); material3.doubleSided=true; light=new PointLight3D(true); light.z=0; light.y=randomRange(-30,280); light.x=randomRange(-350,500); // plane=new Plane(material,300,100,10,10); plane.x=-350; plane.y=265; // Second ViewPort objects sphere and text from google sphereArr = new Array(); for (var i:int = 0; i < googleTitle.length; i++) { var myPattern:RegExp = /<b>/g; var myPattern2:RegExp = /<\/b>/g; var googSearch:String = new String(googleTitle[i].toString()); googSearch = googSearch.replace(myPattern, ""); googSearch = googSearch.replace(myPattern2, ""); sphere=new Sphere(buildCell(),randomRange(10,100),randomRange(5,20),10); sphere.x=randomRange(-500,500); sphere.y=randomRange(-500,500); sphere.z=randomRange(-500,500); try{ var colorPoolCell:Array = new Array(0x9F3F11, 0xFC0606, 0x9FC1BE, 0x787D29, 0xE0D4BA, 0x911F15, 0xBFCDF2, 0xF0EEF1); var colorID:int = randomRange(7, 0);
fontMat = new Letter3DMaterial(colorPoolCell[colorID]); font3d = new HelveticaBold(); text3d = new Text3D(googSearch, font3d, fontMat); text3d.x = sphere.x + googSearch.length + 10; text3d.y = sphere.y + 10; //text3d.z = sphere.z + 10; sphere.addChild(text3d); sphere.id = i; scene2.addChild( sphere ); sphereArr.push(sphere); } catch(e:Error){ // Sometimes the google title font3D will fail but we can catch it so it doesn't // have a nasty flash epic fail warning.. ExternalInterface.call( "console.log" , "Error Reached = " + e); } } //create the 3D planes for the first ViewPort plane2=new Plane(material2,300,100,10,10); plane2.x=-350; plane2.y=265; plane2.z=-60; plane3=new Plane(material3,800,150,10,10); plane3.x=-350; plane3.y=285; plane3.z=80; // scene.addChild( plane ); scene.addChild( plane2 ); scene.addChild( plane3 ); addListner(); } function addListner():void{ for(var i:int = 0; i < sphereArr.length; i++){ try{ sphereArr[i].addEventListener( InteractiveScene3DEvent.OBJECT_PRESS, callLink ); ExternalInterface.call( "console.log" , "Event Added" + i); }catch(e:Error){ ExternalInterface.call( "console.log" , e); } } } function callLink(e:InteractiveScene3DEvent):void { try { navigateToURL(googleLink[e.target.id], '_blank'); ExternalInterface.call( "console.log" , "link Clicked --" + e.target.id + "Link Called - " + googleLink[e.target.id]); } catch (err:Error) { ExternalInterface.call( "console.log" , err + " id: " + e.target.id + "Errored on: " + googleLink[e.target.id].toString() ); } } function buildCell():CellMaterial { var colorPoolCell:Array = new Array(0x9F3F11, 0xFC0606, 0x9FC1BE, 0x787D29, 0xE0D4BA, 0x911F15, 0xBFCDF2, 0xF0EEF1); var colorID:int = randomRange(7, 0); var colorID2:int = randomRange(7, 0); //random color material generation returns cellMaterial //cell=new CellMaterial(light,Math.round(Math.random()*0xFFFFFF),Math.round(Math.random()*0xFFFFFF),100); cell=new CellMaterial(light,colorPoolCell[colorID],colorPoolCell[colorID2],100); cell.interactive=true; return cell; } function randomRange(max:Number, min:Number = 0):Number { return Math.random() * (max - min) + min; } private function addEventListeners():void { addEventListener( Event.ENTER_FRAME, __onEnterFrame ); } private function removeEventListeners():void { removeEventListener( Event.ENTER_FRAME, __onEnterFrame ); } /*===================================================================\ ||Listener Functions || \===================================================================*/ private function __onEnterFrame( e:Event ):void { //moves the error planes viewort according to mouse position plane.rotationY=viewport.mouseX/4; plane.rotationX=viewport.mouseY/4; plane2.rotationY=viewport.mouseX/4; plane2.rotationX=viewport.mouseY/4; plane3.rotationY=viewport.mouseX/4; plane3.rotationX=viewport.mouseY/4; light.rotationX=viewport2.mouseY/4; light.rotationY=viewport2.mouseY/4; // sldWorld.addEventListener("change", updateWorldAxisValue); sldZoomCam.addEventListener("change", updateCamerValue); this.setChildIndex(sldWorld, this.numChildren-1); this.setChildIndex(sldZoomCam, this.numChildren-1); renderer.renderScene( scene, camera, viewport ); renderer2.renderScene( scene2, camera2, viewport2 ); } function updateWorldAxisValue(argument) { var sldWorld_value:Number=this.sldWorld.value; camera2.rotationY=sldWorld_value; } function updateCamerValue(argument) { var sldZoomCam_value:Number=this.sldZoomCam.value; camera2.zoom=sldZoomCam_value; } } }ActionScript3 Timeline Code for Sound Analysis and Image Effects
?View Code ACTIONSCRIPTimport hype.extended.behavior.FunctionTracker; import hype.extended.behavior.Oscillator; import hype.extended.color.ColorPool; import hype.extended.layout.GridLayout; import hype.framework.display.BitmapCanvas; import hype.framework.sound.SoundAnalyzer; import hype.extended.behavior.FixedVibration; var myWidth = stage.stageWidth; var myHeight = stage.stageHeight; var clipCanvas:BitmapCanvas = new BitmapCanvas(myWidth, myHeight); addChild(clipCanvas); var clipContainer:Sprite = new Sprite(); var soundAnalyzer:SoundAnalyzer = new SoundAnalyzer(); soundAnalyzer.start(); var colorPool:ColorPool = new ColorPool( 0x9F3F11, 0xFC0606, 0x9FC1BE, 0x787D29, 0xE0D4BA, 0x911F15, 0xBFCDF2, 0xF0EEF1 ); // xStart, yStart, xSpacing, ySpacing, columns var layout:GridLayout = new GridLayout(0, myHeight / 2, 10, 0, 34); var numItems:int = 64; var freq:int = 120; for (var i:uint = 0; i < numItems; ++i) { var clip:MySquare = new MySquare(); layout.applyLayout(clip); colorPool.colorChildren(clip); // object, property, soundAnalyzer.getFrequencyRange, [startRange, endRange, min, max] var aTracker:FunctionTracker = new FunctionTracker(clip.myFill, "alpha", soundAnalyzer.getFrequencyRange, [i4, i4+4, 0.25, 1.0]); var sTracker:FunctionTracker = new FunctionTracker(clip.myFill, "scaleY", soundAnalyzer.getFrequencyRange, [i4, i4+4, 0.5, 30.0]); aTracker.start(); sTracker.start(); // target Object, property, waveFunction, frequency, min, max, start value var yOsc:Oscillator = new Oscillator(clip, "y", Oscillator.sineWave, freq, 60, 600, i/(180/2));
yOsc.start(); clipContainer.addChild(clip); } clipCanvas.startCapture(clipContainer, true); var sound:Sound = new Sound(); sound.load(new URLRequest("http://i-create.org/actionscript/404e/shortCircuitE1.mp3")); sound.play(); var aVibration:FixedVibration = new FixedVibration(cBagHead, "alpha", 0.9, 0.1, 0.0, 1.0, false); aVibration.start();You find working examples of this 404 error page working at the following location: http://seacloud9.org/Processing.org http://seacloud9.org/Context Free Art http://seacloud9.org/Generative Art A few articles that are good reads: Web development will become much more complicated The Future of Web Content Bookmark and Share More »Powered by Bookmarkify™
- Tags:
- 3d
- ActionScript
- Flash
- i-create
- MashUp
- API
- javascript
- Experiment
- Adobe Flash
- Computer programming
February 7 2010, 12:14pm | Comments »
-
I posted to delicious.com
PreFab3D Air tool for augmented workflow export to #as3 #awesome
February 6 2010, 9:39am | Comments »
-
I posted to delicious.com
RMI Giving away free online training #as3
http://rockonflash.wordpress.com/2010/02/05/rmi-giving-away-free-online-training/
February 5 2010, 12:04pm | Comments »
-
I posted to delicious.com
Complicated Web Dev.
http://theflashblog.com/?p=1743
I credit this job for getting me interested in #Flash. I was fed up of dealing with browsers and just wanted to create a single experience that would work everywhere.
February 5 2010, 7:55am | Comments »
-
I posted to delicious.com
purePDF, a complete actionscript PDF library - sephiroth.it
http://www.sephiroth.it/weblog/archives/2010/02/purepdf_a_complete_actionscript_pdf_l.php
February 3 2010, 2:16pm | Comments »
-
I posted to delicious.com
Future of #Flash
http://blogs.adobe.com/conversations/2010/02/open_access_to_content_and_app.html
Adobe's Kevin Lynch Responds to #Apple
February 2 2010, 2:52pm | Comments »
-
I posted to delicious.com
@Snook #Adobe and #HTML5 Canvas Retooling Flash for the future
http://snook.ca/archives/opinion/adobe-html5-canvas
February 2 2010, 11:43am | Comments »
-
I posted to delicious.com
Apple, Flash the iPad and premature speculation
http://www.dgrigg.com/post.cfm/01/31/2010/Apple-Flash-the-iPad-and-premature-speculation
- Tags:
- Flash
- Apple
- technology
January 31 2010, 9:16pm | Comments »
-
I posted to i-create.org
Reloaded..
http://i-create.org/2010/01/29/reloaded/
Quick Tip: Utilize Firebug with ActionScript to trace out tough Bugs Add the import statment at the Top and then call it anywhere Handy:) Note I was having troubles getting it to work with Firebug 1.5 but on Firebug 1.4.5 works like a charm!
?View Code ACTIONSCRIPTimport flash.external.ExternalInterface; ExternalInterface.call( "console.log" , "Omaha Winter. Camera Z:" + cam.z);
The example below will show it in action if you have Firebug 1.4.5 I will print out a message. This example was built off of Away3d use your arrow keys to move and your “w” and “s” key to zoom. On a side note – I am looking forward to reading the Essential Guide to 3D in flash it goes over the Away3D engine indepth
Reloaded I have been making style changes and I am not done with making those changes; I am just glad the old version is gone for good! I have been very busy at work and working on several other websites simultaneously. I have been working on my wordpress blog lately and rearranged some things. First of all this blog will NO LONGER Supports IE6 on purpose! I personally have a great disdain for IE6 and I don’t want to spend my free time programming for it unless it is absolutely required. In short this browser is no longer supported and this is for many reasons so many that I can’t post them all here. So if your using IE6 or lower please upgrade and you might even want to try something new like Chrome or Firefox both of these browsers in my opinion are better suited for the web. I really just wanted to make my blog brighter and more easily read. I also need to make the loading a little more graceful I just simply haven’t had the time yet. I guess, I will just apply agile and continually improve it:) I will be updating my 404 Error tutorials soon maybe even this weekend if I get ahead. I have been spending my time working on redoing my interactive portfolio. I have also been experimenting with Processing on Android and my initial reaction to programming with Processing and Android in my opinion have been very positive. I have a couple of books that I have been reading and I might put together a video tutorial of my new apps I have been working on. I am also really looking forward to Verizon updating to Android 2.1! Processing / Android kit targets 2.0 and higher. I think Android has lots of potential for developers in my opinion it is an excellent time to be a developer things are really booming and changing in the tech industry and they will trickle down to everyday life and really change the way people go about everyday tasks. Reading lately: The Essential Guide to Processing for the Flash Developer Tutorial on Away3D Bookmark and Share More »Powered by Bookmarkify™
- Tags:
- 3d
- ActionScript
- Flash
- i-create
- android
- quick tip
- Firebug
- Internet Explorer 6
- Panoramic
- Smartphones
January 28 2010, 9:56pm | Comments »
-
I posted to delicious.com
FITC Amsterdam : Building High Performance iPhone Applications w/ #AS3 at Mike Chambers
January 27 2010, 8:15am | Comments »
-
I posted to delicious.com
jQuery on the rise & FlexPaper update
January 26 2010, 9:34pm | Comments »
-
I posted to delicious.com
Drawing a spring in #AS3 using recursion
http://blog.shadowhelm.com/?p=90
January 26 2010, 9:34pm | Comments »
-
I posted to delicious.com
Flashbelt 2008 #Tween #Papervision3D
http://blog.hydrotik.com/2008/06/08/flashbelt-2008-animation-to-go-hydrotween-papervision3d/
Animation
- Tags:
- Flash
January 26 2010, 9:27pm | Comments »
-
I posted to delicious.com
Experiments in the Third Dimension: FIVe3D
http://pixelwelders.com/blog/3d/2008/experiments-in-the-third-dimension-five3d/
January 25 2010, 4:58pm | Comments »
-
I posted to delicious.com
Flexperiments » 3D Text with Away3d, pt.2
http://labs.flexperiments.nl/3d-text-with-away3d-pt2/
January 25 2010, 4:54pm | Comments »
-
I posted to delicious.com
#as3 Warping Text To Bézier curves
http://www.planetclegg.com/projects/WarpingTextToSplines.html
- Tags:
- Flash
January 25 2010, 4:46pm | Comments »
-
I posted to delicious.com
Bypassing 16769025 pixel limit in FP 10
https://cynergysystems.com/blogs/page/andrewtrice?entry=bypassing_16769025_pixel_limit_in
January 25 2010, 8:01am | Comments »

