Is it possible to handle shockwave objects in flash? - actionscript-3

I want to know, Is there any way to handle or control the shockwave objects in flash by using 'as3'? I know this is possible in 'Director' by using 'Lingo'. But I am not able to find any way or any articles from where i can get some idea about this. In the director, I've seen there is way to set some properties like camera position, light affects etc. with the shockwave objects. But I am not sure about the FLASH. Can it possible to use these type of properties with shockwave objects in flash, which could be controlled in action script3 ???
Any kind of help would be greatly appreciated.
Thanks in advance!!!

To my knowledge there is no such possibility in flash.
If you want complicated 3D in flash, I suggest you use something like papervision3D
Flash only has basic 3D transformation since version CS4, Director (ShockWave) have had advanced, hardware accelerated 3D for many years. But I think Director is in some sort of limbo and Idon't know if Adobe is going to continue to develop it.
The Flash player has also become faster and Actionscript more powerful, so I think that something like papervision3D may be a good alternative for the most part.
Also bare in mind that the Flash player is much more widespread than the ShockWave Player

Related

Is it possible to call html5 in an flash swf?

I have a html5 to flash related question. Because flash to html5 is so common, it is hard to search for. So I want to ask this question directly now:
Is there a way to use flash to call or embed a html5 game inside the swf?
background: I have a 2d html5 game, which I want to bring to some gaming portals. There are still many portals, which just add flash games to their sides.
That made me thinking about a walk around to bring my game to this portals as swf in some way. But is it worth thinking about it? I have no clue where to start >.<'
Is it possible?

Refactoring for starling

I'm making a flash app for AIR. The app is mostly made, but I'm not happy with rendering speed on mobile (render mode - gpu).
I know there is a framework that allows user-friendly way to work with Stage3d called Starling, but I've never used it.
After looking into it and following through some tutorials I've noticed that I need to rename all package flash default classes, e.g flash.display.DisplayObject -> starling.display.DisplayObject.
But such action might be destructive to my code base, plus, I have other frameworks attached that work with some flash package classes.
Is there a way to attach Starling to a complete project without re-naming all the package names, changing assets and re-factoring all frameworks that work with default AIR API?
If you're thinking of switching to Starling, you'll have to redesign your whole rendering code. Starling is no drop-in solution. Just renaming classes in your existing code will not do because it completely replaces flash display list for Direct3D, which does all it's rendering with GPU, with all the differences it brings: bitmapped graphics, texture atlases, careful draw ordering. Learning curve can be a bit steep in the beginning but once you get familiar with basic concepts it's a breeze to work with.
IMHO, it's well worth the effort, especially on mobile. Code that ran in low 10s of FPS in classic display list can easily be made to run at solid 60fps with Starling. Basically, for flash on mobile, Stage3D is the only game in town. And Starling is the best supported and widely accepted framework for 2D stuff on Stage3D, with lots of supporting libraries and a very helpful community of developers.
Go on, take the plunge, you won't regret it.
You can run Starling and a native flash application layer at the same time but it wouldn't give you an optimum experience.
If you want to take full advantage of the gpu acceleration of Stage3d and Starling though it would be preferable to refactor your existing code to use Starling display objects rather than Flash display objects.
You might want to post this question on the Starling forum, they are very helpful guys and it's a thriving developer community! - http://forum.starling-framework.org

Emulating Photoshop color levels in AS3

I'm making an app in which I need to make some photo effects similar to Instagram's effects. I was wondering if it's possible to somehow emulate the work of Photoshop's color levels in AS3.
I've tried using AdjustColor, ColorMatrixFilter and ColorTransform classes but desired image is very hard to achieve using those.
So does anyone have a solution easier than that? or maybe someone knows a library that I couldn't find on Google?
You should have a look at Joa's image processing library.
Have a look on this library:
http://peternitsch.net/bitmapdata.js/
This is actually implemented in Javascript, but it's based on the Flash API. All You need is there. Or i can recommend Foundation ActionScript 3.0 Image Effects by Todd Yard.
Flash API reference is another good resource for inspiration.
There is another good resource for pixel manipulation found here: http://evanw.github.com/webgl-filter/. This is done in WebGL but if your target API is still Flash, then you can easily transposed the GLSL language into Pixelbender and inject the shader
into the Flash by making reference to the pbj file.
Check Grant Skinner's TweenMax plugins, especially ColorMatrixFilter.

Best way to create interactive 3d rooms with Flash

Just after some quick advice. I want to create an interactive animated flash music website that involves the user being able to wander around a rehersal room and interact with objects.
Can anyone recommend a good 3d tool to use along with Flash. Ideally something that I can use Illustrator tpo draw the room/objects, but not essential.
thanks for your help.
Not sure how you would use illustrator to create 3d assets, but I think papervision looks like your best bet.
Otherwise you could use Unity instead of flash. You would get a much better result from Unity.
Another 3D engine for Flash is Away3D. I mention it because Eminem's Relapse album website was built with it and from the sounds of things is simlar to what you are trying to achieve http://www.therelapse.com/#/?room=entrance - in saying so the site could be built with papervision too.

AS3 Audio Effects

I want to apply some effects to a sound but I couldn't find one library which has all these effects. Do you know any?
Effects are:
Phaser
Delay
Distortion
Cut Filter
This might be what you're looking for. SoundFX, out-of-the-box audio filters with actionscript 3
As far as I know sound libraries are still rather rare for flash. The only one i'm aware of is this one.