OEF Flash CS3 Tutorials: 360 view

OEF Flash CS3 Tutorials: 360 view

In this tutorial you'll learn how to create a 360 degree view using Adobe Flash CS3. I use ActionScript to go back and forth between frames. code:

cam.stop();

var frameTo:Number=0;

addEventListener(Event.ENTER_FRAME,goTo);

function goTo(e:Event):void{

frameTo=int(mouseX/stage.stageWidth*cam.totalFrames)+1;

cam.gotoAndStop(frameTo)

}


13 comments:

kyongenesis said...

why dun use youtube

jdehaan001 said...

Hi Waarith,

Nice job with this online tutorial! You are very knowledgeable. As a Flash novice who wishes to learn my new Adobe CS3 Suite, for applying applications to my website, I appreciate the way you deliver your material. I will be returning to your site here, and will familiarize myself with the rest of your well-explained tutorials. Thank you, -John DeHaan

Travis said...

Thank you so much for the great tutorial! I've been trying to find a good way to do this as mine keeps crashing, much more elegant solution than mine!

Anonymous said...

Hi,



My Flash CS3 says:

Error,
"The class or interface 'Event' could not be loaded."

There´s something wrong with this:
*function goTo(e:Event):void{*

Waarith Abdul-Majeed said...

I can't tell what you did wrong form one line of code.

Anonymous said...

I think i did nothing wrong but is it possible thath there´s some feature needed in this tutorial that is not included in my version of FLASH CS3..

Waarith Abdul-Majeed said...

no It's all your errors

Anonymous said...

code is anyway the same, i think i cant copy and paste it wrong.

Anonymous said...

Sorry, my bad.
I did this tutorial again and now it works!

Great tutorial thanks!

onurhan said...

Perfect web-site,
perfect instructor.

Waarith please check
barodox@gmail.com

:)

Plante Graffix said...

I am getting the same error as above... I am completely lost with this flash, any thing that would help would be appreciated. the error I am getting is: The class or interface 'Event' could not be loaded.

Chevin said...

Hey Waarith,

Thanks for the tutorial.
I've did every thing as you instructed. when i check the action script it says "no errors" , but when i play it it gives a error
"1046: Type was not found or was not a compile-time constant: Void.
function goto(e:Event):Void{"

if u don't mind could u please upload the FLA file so i cat get to know where i went wrong

sam said...

I'm Having these errors. Please Help

Scene 1, Layer 'Layer 2', Frame 1, Line 1 1172: Definition __AS3__.vec:Vector could not be found.
MainTimeline, Line 1 1172: Definition __AS3__.vec:Vector could not be found.
Scene 1, Layer 'Layer 2', Frame 1, Line 1 1172: Definition __AS3__.vec:Vector could not be found.
MainTimeline, Line 1 1172: Definition __AS3__.vec:Vector could not be found.
Scene 1, Layer 'Layer 2', Frame 1, Line 9 1120: Access of undefined property cam.
Scene 1, Layer 'Layer 2', Frame 1, Line 11 1120: Access of undefined property cam.
Scene 1, Layer 'Layer 2', Frame 1, Line 1 1120: Access of undefined property cam.
implicitImports, Line 1 1172: Definition __AS3__.vec:Vector could not be found.
implicitImports, Line 3 1172: Definition flash.desktop could not be found.
implicitImports, Line 10 1172: Definition flash.globalization could not be found.
implicitImports, Line 13 1172: Definition flash.net.drm could not be found.
implicitImports, Line 17 1172: Definition flash.sensors could not be found.
implicitImports, Line 21 1172: Definition flash.text.engine could not be found.