Arul's Blog On Multimedia, Flash MX, Director And Dreamweaver MX
Recent Entries | Guest Book | QuickView | XML-RSS feed | My Profile | Home
::: About this Blog :::
Welcome to Arul's Blog!
Weblog on Multimedia,
Macromedia Flash MX Flash MX
Macromedia Director Shockwave Studio 8.51 Director
Macromedia Dreamweaver MX Dreamweaver MX
View my profile And me :)
Here I'm going to share my views, opinions and code with you all.

::: Services :::

:. ActionScript Highlighting
:. AS Highlighter v2 new!


::: ActionScript :::
:. toString
:. skipCache
:. getWords
:. getDateFromString
:. colorUtils
:. XMLNode-transformTags
:. Object-copyProperties
:. Object-clone

::: ActionScript 2 :::
:. XMLHighlighter
:. PriorityQueue

::: Archives :::
[September 2002]
[October 2002]
[November 2002]
[December 2002]
[January 2003]
[February 2003]
[March 2003]
[April 2003]
[May 2003]
[June 2003]
[July 2003]
[September 2003]
[October 2003]
[December 2003]
[January 2004]
[February 2004]
[March 2004]
[April 2004]
[May 2004]
[June 2004]
[July 2004]
[December 2004]
[January 2005]
[February 2005]
[March 2005]
[May 2005]
[June 2005]
[July 2005]
[August 2005]
[June 2006]
[July 2006]
[November 2006]
[December 2006]
[January 2007]

::: Time Zone :::
All Times on this blog are
GMT + 5:30 Hours
(Indian Standard Time)

::: Flash Resources :::
:. Flash Components
:. Were-Here Forum
:. Digital Illusion
:. Flashmove Forum
:. Flash Goddess
:. Prototypes
:. Actionscript Toolbox
:. UltraShock
:. Chattyfig
:. Full as a Goog
:. Flog

::: Flashers :::
:. Mike Chambers
:. Greg Burch
:. Branden Hall
:. Samuel Wan
:. Stuart Schoneveld
:. Guy Watson
:. Robin Debreuil
:. Mario Klingemann
:. Moises
:. Aral Balkan
:. Peter Hall
:. Josh Dura
:. Alessandro
:. Brajeshwar
:. Nik Khilnani

::: Small Print :::

© Copyright 2002
R.Arul Kumaran

[Made with Blogger]


Monday, September 30, 2002

News.Flash MX: Tooltip Component Demo by Stuart.

Stuart has created a nice demo for Tooltip Component that comes with Flash UI Components Set 3
(Which is part of The Macromedia MX Developer Resource Kit)
You can have a look at it Here

posted by Arul | link | ^top | next> | add comment
Sunday, September 29, 2002

News.Director: Director projectors for Pocket PC!

Werner Sharp has just announced a public beta of the "Export to Pocket PC Xtra" for Director 8/8.5.
This Xtra will actually take your .DIR and convert it into eMbedded Visual C++ code that will then compile in the freely available eVC IDE from Microsoft. All your Lingo and cast members are converted into eVC code and assets, and compiled into a native Pocket PC application.

For Director/Flash developers who've run into a wall with the relative slow speeds of Flash rendering and ActionScript performance on a Pocket PC, this will provide an highly optimized playback engine capable of twitch game performance on the Pocket PC. Plus the power of Director.
[via: flashthefuture]

posted by Arul | link |<prev. | ^top | next> | add comment
Saturday, September 28, 2002

Bug.Flash MX: Unable to *continue* with Auto Format!

Beware that auto formatting eats your actionscript some times !!!

See the following code

for (var i = 0; i<5; i++) {
        if (i == 2) {
                continue;
        }
        trace(i);
        //traces 0, 1, 3, 4 (skips 2)
}

If you apply Auto Format to the code it becomes

for (var i = 0; i<5; i++) {
        if (i == 2) {
        }
        trace(i);
        //traces 0, 1, 2, 3, 4 (OOPS!!!)
}

posted by Arul | link |<prev. | ^top | next> | comments [1]
Thursday, September 26, 2002

News.Flash MX: The 'Object-Oriented Programming with ActionScript' Book.

Thanks to New Riders, today I received the most awaited book written by Branden Hall and Samuel Wan

You can get more info about this book here. I will post more about this book as and when I finish reading it.

posted by Arul | link |<prev. | ^top | next> | add comment
Thursday, September 26, 2002

News.Flash MX: Flash Remoting MX Launched.

Flash Remoting for .NET and Java App Servers now launched, for more info:

posted by Arul | link |<prev. | ^top | next> | add comment
Tuesday, September 24, 2002

Tips.Flash MX: Corrupt Movieclip?

Yesterday I faced this problem.
When I imported a audio file into a movieclip of a heavy flash file, It imported the audio but it was truncated (the end portion of the audio is missing)

I even tried importing the audio into new flash file and drag and drop it in the library but still got the same problem

Finally I managed the situation by
  • Recreating the movieclip in a new flash file
  • Dragging and dropping it in to my project file’s library
  • Swapping the old movieclip with this new one using swap option in properties window
Then it worked :)

posted by Arul | link |<prev. | ^top | next> | add comment
Monday, September 23, 2002

Tips.Flash MX: Problem importing sound?

When our flash file becomes big and complex we often face this problem.
When we try to import the audio we get "One or more files were not imported because there were problems reading them" even when you are sure that the audio format is flash compatible.

Solution?
Import the audio into a new blank flash file once done drag the imported audio from this library to your project files library.
It works!!!!

posted by Arul | link |<prev. | ^top | next> | add comment
Sunday, September 22, 2002

Tips.General: Dedicated Project Explorer.

It is always better to keep all our current project files under projects folder in properly named sub folders particularly in a collaborative environment. Also you may be keeping your project files in a server. In such cases the following tip really helps!

You can create My Projects shortcut in the desktop. Which will open a dedicated Explorer for your projects.

Just create a shortcut with

%SystemRoot%\Explorer.exe /e, /root,C:\Project as the Target.

See the Image below for reference



You can replace "C:\Project" with whatever folder you use for keeping your project files (even use a network path).
You can use the same technique for Install folder where you keep all software installation files.

posted by Arul | link |<prev. | ^top | next> | add comment
Friday, September 20, 2002

Tips.Flash MX: Reducing the file size of Your FLA file.

If your flash project includes sound, import the audio as a MP3 file instead of Wave files (convert your wave files to mp3 in your audio editing software).
This not only helps to reduce the file size of your .fla file, also reduces the time taken to publish an swf file out of it. This Projects using wave files take longer time to publish because every time it will be compressed based on your publish setting.

When handing multiple audio and video files in a project and keep on changing the audio and video also increasing your Fla file size. In my current project which is using only one wave file of 3.5 MB size. After lot of updates Fla size became 30 MB.
Reason for this is because flash file has some unwanted junk data.
Solution for this is saving the file to a different name, using file>save as menu then the junk data is cleared and file size is reduced. My Fla file became 14.45 MB after that

posted by Arul | link |<prev. | ^top | next> | add comment
Thursday, September 19, 2002

Code.Flash MX: Cloning objects.

In ActionScript we cannot pass objects by value. It always passes objects by reference. If you need to create a perfect copy of an object you can make use of the following code. I have modified Flash Guru's clone with support for Array Objects
Source code is available at http://www.shockwave-india.com/blog/actionscript/Object-clone.as

posted by Arul | link |<prev. | ^top | next> | add comment
Wednesday, September 18, 2002

Code.Flash MX: Splitting String to Words Array.

Now I'm in the process of creating Action Script (or any script) color highlighter in flash. Which can be used in forums to post the ActionScript
As and when the user types a property or keyword it will highlight in the specified color.

I'm planning to set the .htmlText property every time he types some thing.
That is I will find and replace all the keywords with appropriate <font> tags.
This process will become complicated when the string is too long (too many looping) to avoid this what I'm planning is to split the string in to words & non words put into an Array

For example
txt="Huh! Multimedia?"
will be kept in Words List like this
WordsArr=["Huh", "! ", "Multimedia", "?"]
in which first element is the word and second is the nonword and so on

Once I have this array I can get the HTML formatting just by replacing the keywords in the array with <font color="#0000DD">+keyword+</font>
finally setting the .htmlText as wordArr.join('');
When the user continues typing with the Caret position I will find out and add it to the appropriate portion of the array or append a new element to the array.
for splitting up the words I use is available at
http://www.shockwave-india.com/blog/ActionScript/getWords.as

posted by Arul | link |<prev. | ^top | next> | comments [1]
Wednesday, September 18, 2002

Code.Flash MX: Working with color HEX & RGB.

If any one working with color HEX values and RGB values might find this useful
I’m in the process of creating a colorscheme component with which you can specify the color scheme of all the UI elements by just defining the base color
It will calculate the highlight, highlight3D, shadow, darkshadow colors and assign them to globalStyleFormat object.
This code is the byproduct of that and is available at
http://www.shockwave-india.com/blog/ActionScript/colorUtils.as

posted by Arul | link |<prev. | ^top | next> | add comment
Friday, September 13, 2002

Update.Arul's Blog: Welcome to Arul's Blog!

Here I'm going to share my views, opinions and code with you all
It is taking too long to update my shockwave-india.com site
So I thought of having the blog first
Regards
R.Arul Kumaran

posted by Arul | link |<prev. | ^top | next> | add comment

footnote:-
Also check the recent entries and feel free to add your comments. I need your comments to improve this blog