( January 8th, 2009 )
As requested, I have added the source files for the post AS3 Papervision3D Website
Although I have not corrected any issues yet, I will get around to it. I am open to suggestions though.
( December 25th, 2008 )
Here is the final version of the ActionScript 3.0 XML News Ticker. I tried using the Tween class as well as Tweener and both produced very little improvement to the scrolling animation. My method gives you easier control over the speed of the animation.
I have also embedded multiple styles of the font, so you are able to apply normal, bold and italic styles to the text field via xml. Depending on what font you choose to embed, you can add all styles of that font simply by adding the additional styles to the library and setting their linkage.
I am going to add a tutorial on how to work with text fields and embedding fonts. One very exciting thing in ActionScript 3.0 is the ability to align your text to tabs in a text field.
I have also added an error handler to check whether the xml loads or not. If it does not, a default error message appears in the text field. This can be customized in the fla file.
(This file will open in Flash CS3) (Preview File)
Get Source
( December 24th, 2008 )
It was brought to my attention that the zip file did not have the fla in it. I have added the fla to the zip file in the original post.
I have also succeeded in using multiple font styles in the text field. So you will be able to use standard, bold and italic styles in the XML file.
I am also adding error handling for the XML load as well as trying out the Tween class for smoother scrolling.
Watch this space for the next release.
( December 23rd, 2008 )
I made a small update which stops the scrolling when you move your mouse over the text field.
I added the updated file to the original post.
( December 23rd, 2008 )
Here is an ActionScript 3.0 XML News Ticker. I have embedded the font so that it displays in the masked area. I still need to figure out how to add bold and italic formatting to the embedded font via xml. When I do, I will update the post.
(This file will open in Flash CS3) (Preview File)
Get Source
( November 18th, 2008 )
Flash file previews are now available in their respective posts. They will open in a new window so please ensure that popups are not blocked.
( November 6th, 2008 )
I haven’t posted anything for a while. I will be posting a bunch of useful Flash Lite files soon as well as updates to:
- AS2 and AS3 XML Scrollbar Class
- AS2 Presentation Template
- AS3 Papervision3D Menu System
I will also be adding Flash file previews for each post.
Thanks for your patience.
( September 2nd, 2008 )
It was pointed out to me that the paragraph formatting was not actually showing correctly. The paragraph formatting in the XML file was overriding the paragraph formatting in the FLA file.
Instead of using the following code in the FLA file:
var newFormat:TextFormat = new TextFormat();
newFormat.align = TextFormatAlign.JUSTIFY;
yourtextvariable.setTextFormat(newFormat);
One should just add <p align='justify'> to the beginning of the text in the XML file and close with </p> at the end of the text.
The new files have been placed in their respective posts.
( August 31st, 2008 )
I am creating a Papervision3D website. This is a work in progress. It’s still early stages.
It runs a lot better in Firefox 3 than IE 7. Please let me know if your browser crashes.
I have used the Tweener Class to smooth all the movement.
Have a look here: …/experiments/pv3dwebsite
As requested, here is the source
Also, here are the Papervision3D classes used to publish the file: Get Source
To point to the Classpath in Flash, go to Publish Settings / Settings / Classpath and add the path to the src folder i.e. …\src (”…” refers to the path on your system)
( August 30th, 2008 )
Here is a Papervision3d and ActionScript 3.0 3D model viewer. It uses the COLLADA (.dae) file format, so you will need a 3D modeling application which supports the COLLADA file export function. You can control the rotation of the object with mouse movement and zoom with the mouse wheel.
My next version will allow the viewing of multiple files in the viewer.
(This file will open in Flash CS3) (Preview File)
Get Source