riaxe snippets
Susrut Mishra
This user hasn't shared any biographical information
Homepage: http://www.riaxe.com
Jabber/GTalk: susrut@riaxe.com
Posts by Susrut Mishra
Top 10 Transform Tools/Transform Managers built in AS3 for Flex and Flash
Jan 24th
AS3 Transform tool [Flex 4 Support] with text scaling and dynamic menu
Jan 22nd
New AS3 – Flex 4 Transform tool with text scaling
Features Listed:
Flex 3 and Flash Builder 4 support. Works on both mx and spark components
Attachable Menus where functionality can be added programmatically
Tranforms almost all the components – Video, Image, Buttons etc without creating bitmap
Advanced tranform features like – Scale, Rotate, Horizontal and Vertical Flip
Automatic calculation of boundary while live transforming
Scaling of target using width and height ratio
Ability to add dynamic controls onto the transform tool
Fully customizable design of the transform tool
100% customizable code and graphic assets
Well documented actionscript methods and properties
Live Example can be found here
Console Application in C++ to get Window Titles
Dec 25th
Hi All, I am not a .net guy but compiled this useful script to get the open window titles.
==============================================
#include <windows.h>
#include <cstdio>
BOOL CALLBACK MyEnumWindowsProc(HWND hwnd, LPARAM lparam)
{
HWND lShellWindow = GetShellWindow();
int& i = *(reinterpret_cast<int*>(lparam));
++i;
char title[256];
::GetWindowText(hwnd, title, sizeof(title));
if (hwnd == lShellWindow) return true;
if (!IsWindowVisible(hwnd)) return true;
int lLength = GetWindowTextLength(hwnd);
if (lLength == 0) return true;
::printf(title);
::printf(“\n”);
return TRUE;
}
int main()
{
int i = 0;
::EnumWindows(&MyEnumWindowsProc, reinterpret_cast<LPARAM>(&i));
return 0;
}
========================================
Hope this helps
loadMovie loadClip external image height width issue in AS2 [Solved]
Aug 5th
Recently while working on an AS2 project in flashlite we had a issue of getting the height and width of a dynamically loaded external image from a URL. Here is the solution we formulated:
var mclListener:Object = new Object();
mclListener.onLoadInit = function(targetmc:MovieClip) {
trace(“movie loaded”);
trace(targetmc._width);
};
var imagemcl:MovieClipLoader = new MovieClipLoader();
imagemcl.addListener(mclListener);
imagemcl.loadClip(URL, mc);









