FlipPapervision3D
This movie requires Flash Player 9
This entry was posted
on Monday, November 3rd, 2008 at 6:22 pm and is filed under org.efflex.viewStackEffects.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
November 4th, 2008 at 10:15 am
Nice. I will definitely be using this stuff.
November 5th, 2008 at 11:10 am
Hello,
IS IT POSSIBLE TO VIEW THE SOURCE CODE ?
REGARDS
November 5th, 2008 at 11:13 am
YEAH
RIGHT CLICK, SELECT VIEW SOURCE.
November 5th, 2008 at 12:07 pm
THANKS
November 5th, 2008 at 12:08 pm
I HAD SOME PROBLEMS TO VIEW THE PDF FIEL (EXPLCATIONS), IMPOSSIBLE TO LOAD IT
November 6th, 2008 at 5:28 pm
I’m using in my application
‘Papervision3D’;
‘Beta 1.7′;
‘20.08.07′;
Which version should I use to use this feature?
November 6th, 2008 at 5:33 pm
Papervision3D
Public Alpha 2.0 - Great White
24.03.08
November 6th, 2008 at 5:33 pm
Now i create a new application using
‘Papervision3D’;
‘Public Beta 2.0 - Great White’;
‘September 9th, 2008′;
I am using the following example as a basis
http://www.efflex.org/examples/viewStackEffects/FlipPapervision3D/srcview/index.html
But in the Flex Builder appears the following error
—————–
1119: Access of possibly undefined property VERBOSE through a reference with static type Class.
Papervision3DViewStackInstance.as
efflex/src/org/efflex/viewStackEffects/effectClasses
line 84
—————–
1137: Incorrect number of arguments. Expected no more than 3.
Papervision3DViewStackInstance.as
efflex/src/org/efflex/viewStackEffects/effectClasses
line 144
—————–
November 6th, 2008 at 5:57 pm
I coment
//Papervision3D.VERBOSE = false;
in line 84 in efflex/src/org/efflex/viewStackEffects/effectClasses/Papervision3DViewStackInstance.as
And in
_renderer.renderScene( _scene, _camera, _viewport, true );
i”m using 3 arguments
I remove the param TRUE
Doing so most of the examples worked with the exception of
http://www.efflex.org/examples/MovieClipEffect/srcview/index.html
What happens the following error
——————
[SWF] /webserver/aplicativos_flex/efflex/bin-debug/index.swf - 813.217 bytes after decompression
Error: Frame label ‘null’ could not be found
at org.efflex.effectClasses::MovieClipInstance/play()[C:\Inetpub\wwwroot\webserver\aplicativos_flex\efflex\src\org\efflex\effectClasses\MovieClipInstance.as:70]
at mx.effects::EffectInstance/startEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:569]
at mx.effects::Effect/play()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\Effect.as:930]
at mx.effects::EffectManager$/createAndPlayEffect()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:716]
at mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\effects\EffectManager.as:575]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
at mx.core::UIComponent/setVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1903]
at mx.core::UIComponent/set visible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1870]
at index/___index_Button1_click()[C:\Inetpub\wwwroot\webserver\aplicativos_flex\efflex\src\index.mxml:15]
——————
November 7th, 2008 at 5:56 pm
A lot of problem to compile your work …
Why don’t you put a good compiled swc for we use it ??!!
I don’t understand …
Same bad compilation for tink project …
November 7th, 2008 at 9:52 pm
Keeping the SWC’s up-to-date takes more work for myself (and at the moment there is only me working on this project), but for me a SWC would be more hassle.
I check the source of all projects out into a library and every project I create I link to that source folder. I can then keep this library up-to-date by just updating the SVN.
You wanna keep the SWC’s updated if I send you an email each time there’s a change in Efflex?
November 7th, 2008 at 9:55 pm
@ Marcio
‘Papervision3D’;
‘Public Beta 2.0 - Great White’;
‘September 9th, 2008′;
Isn’t the same as the version what Efflex was built around, and therefore there may be lots of changes in the code (I don’t know as I haven’t done a diff on them).
You could edit the code for the latest version of PV3D, post it back and I’ll update the SVN, or otherwise wait until I have some time on my hands to do it for you.
November 11th, 2008 at 11:05 am
I had a quick look into this pv3d flip and the solution is really simple.
I briefly looked at it and the solution is here:
In Papervision3DViewStackInstance.as
comment out line 84
//Papervision3D.VERBOSE = false;
VERBOSE only makes you see more detailed log, I didnt investigate why it’s not working
Change render method to:
protected function render():void
{
_renderer.renderScene( _scene, _camera, _viewport);
}
render takes only 3 parameters.
Also in
FlipPapervision3DInstance.as there is an import that Tink didn’t include, line 26
import ws.tink.utils.MathUtil;
this results in error in onTweenUpdate method around lines 189 and 196
simply replace:
MathUtil.degreesToRadians( _plane.rotationX )
to manual calculation, which is
Math.PI * _plane.rotationX / 180
same for _plane.rotationY.
The entire method with the changes below:
override public function onTweenUpdate( value:Object ):void
{
super.onTweenUpdate( value );
switch( state )
{
case SHOWING :
case SHOWING_AFTER_INTERRUPT :
{
var v:Number = Number( value );
var targetRotation:Number = _rotationStart + ( _rotationDiff * v );
if( targetRotation 90 )
{
_rotationStart -= 180;
targetRotation -= 180;
_plane.material = getBitmapMaterialAt( selectedIndexTo );
}
switch( direction )
{
case FlipPapervision3D.DOWN :
case FlipPapervision3D.UP :
{
_plane.rotationX = targetRotation
if( viewStack.clipContent ) _plane.z = Math.abs( Math.sin( Math.PI * _plane.rotationX / 180 ) * ( contentHeight / 2 ) );
break;
}
case FlipPapervision3D.LEFT :
case FlipPapervision3D.RIGHT :
{
_plane.rotationY = targetRotation;
if( viewStack.clipContent ) _plane.z = Math.abs( Math.sin( Math.PI * _plane.rotationY / 180 ) * ( contentWidth / 2 ) );
break;
}
}
}
}
}
That should work.
Tom
November 11th, 2008 at 11:29 am
Thanks Tom!
November 19th, 2008 at 8:40 pm
I am using flex 3.01 and when I try to compile the code right from your example it gives me a error.
I get a:
1046:type was not found or was not a compile-time constant: FlipPapervision3d
for this line:
November 19th, 2008 at 9:39 pm
Hi Darrin
You’ll need to download all the source from the repository.
http://code.google.com/p/efflex/
November 25th, 2008 at 8:37 pm
I fancied whipping this all together and getting the examples running, so after a good ol search to get the necessary classes I have built a working swc for the current Efflex code library:
http://www.nutrixinteractive.com/blog/?p=263
Cheers,
Simon
December 4th, 2008 at 8:58 am
thanks!
Successful operation of your project