Align Components (Version 4.0.3)
1124 downloads / 8598 views
Rating: 4.19
Author
- Name
- Elvis Mehmedovic
- Site
- http://emehmedovic.com/
- Contact
- mailto:me@emehmedovic.com
Release Date
14 Feb 2008 18:55
Platform
AS 2.0, Flash Player 7/8/9
Description
Components made to align movie clips to the Stage object (or any movie clip implementing width and height properties, and resize event). Stage replacement object, gStage, can be used to impose aligning constraints (minimal/maximal width/height). All components based on V2 architecture are supported. Dynamically calculated center/right point of components can be used to align components; resizing the component will automatically cause realigning. redrawInertness property is supported to limit excessive and processor intensive updatings.
aligner class can be used for an ActionScript-only solution.
Use these components to create resolution independent interfaces and resizable components.
Version 4.0.1: This update contains important fixes; please upgrade from version 4.0.0. Additionally, xm.corpus.resizableComponent and xm.components.SimplePaneComponent classes have been added into distribution.
Version 4.0.2: Updated to XMCA 0.3. Additionally, PaneNineComponent class has been added into distribution.
Version 4.0.3: Miscellaneous updates: dead preview rectangle is now invisible, and gStage.as is provided to create the gStage object without having to use the Align Component (gStage).
After installing the extension, you can find Align Components in the Components Panel in Flash. API documentation for the components will be available in the Help Panel. Code hints and syntax highlighting are also available.
Preview and Downloads
Discussion
Alex (10 Dec 2004 19:55)
Hi!
Awesome aligning components! You Rock!
The site I made using these components is < http://www.tesoromusic.com >
Some people are having trouble with the site, however, when they use FireFox or Mozilla, and I suspect it has to do with aligning - they see half of the content at the top of the page... Any ideas?
Thank You,
Alex
Elvis Mehmedovic (10 Dec 2004 22:41)
Your XHTML doesn't work with Firefox. You could copy the XHTML that I use on this site (View Source), or remove DOCTYPE from your existing HTML and it will work.
Mail me if you need help with this.
Onur Orhon (15 Mar 2005 16:23)
I was just wondering if your align components work properly in Firefox. Thanks, -Onur
Jazzybeat (2 Apr 2005 20:21)
Hi
This componet looks very nice but for some reason its not working very well for me. I wish to see some sample fla files and see where I making a mistakes. Also I did't found anought information about what kind of Flash version I should use.
Regards Paulius
Elvis Mehmedovic (2 Apr 2005 20:31)
Align Components V4 is for Flahs MX 2004. V3 is an older version for Flash MX.
As for examples, did you check out the example for the component (it includes AC4Demo.fla)?
I really don't heave any really simple examples :-), but, let me know what do you want to achieve, and I'll help you out, write a tutorial, maybe. :-)
Elvis Mehmedovic (2 Apr 2005 20:33)
To address the Firefox question, yes, components work fine with all browsers.
Elvis Mehmedovic (23 Jul 2005 8:55)
Version 4.0.2: Updated to XMCA 0.3. Additionally, PaneNineComponent class has been added into distribution.
Ben (25 Jul 2005 21:08)
Awesome !
your resizing component are awesome !
thanks !
Thummper (4 Sep 2005 8:26)
ok you just rock! Ive been resizing my flash sites using a 3x3 html table with the flash in the middle and % sizing. In some circumstances it would get really hairy as I would want, say, a top and bottom titlebar to scale differently, and the main problem has always been the difference in how browsers handle the scaling table thing. I came to a stop when using ssdesigns yamzbrowser patch for as2 as it demands using a fixed flashlayer size, so this should salve all my problems with that in the future.
Just a note, a tutorial on this would be awesome. There seems to be a ton of settings and such without any clear 1,2,3 explanation. Its too late for this project but id love to really learn the ins and outs of this, as it is im gonna have to reverse engeneer your sample. Dooable, and thank you for those, but would be a HUGE bonus to have some kind of tutorial or more comprehensive directions. Thanks a ton,
-Thummp
Paulius (7 Oct 2005 19:45)
Hi Elvis
First thank you for such a great component, you can imagine how happy I am having Flash in full screen :-)
But I have some problem and I don't know how to solve it so I thought maybe you will be bale to help me.
I publish the sample in online if you can take a look
< http://identity5.com/files/align/ >
I can understand why the component doesn't set the Properties right away. If you will try to minimize your browser and open my link you will see that component doesn't set the properties, but when you click the Right Down corner of you browser than it resize to the Properties that I set. I am trying to make it appear right away with 10px margin from the top if you have small screen if not than of course
it can be in the middle.
I tried a lot of things and I give up, do you have any suggestions.
If you want to take a look at the FLA file you can grab it here
< http://identity5.com/files/align/align.zip >
Thanks
Paulius
Elvis Mehmedovic (7 Oct 2005 20:13)
You could force an update:
gStage.onResize();
Or, better, drop a single align component in the first frame (this is to ensure that gStage object is created), set minWidht and minHeight, and move everything else in the second frame. (Or something like that.)
felix (14 Nov 2005 5:05)
I'm having a problem using the code-only version of the aligner class. I can create an aligner with 'Stage' as the host ok. The problem is creating an aligner that works within a moviclip, using 'this' as the host. The aligner does not seem to work.
Also what is 'gStage'? How is it different to 'Stage'? Thanks for the great components!
Van (3 Dec 2005 5:38)
Can you update this component to new Flash 8 ?
andre (6 Dec 2005 23:54)
I downloaded the component and installed but i put them in the stage and try to make them work and nothing happened i am using flash mx 2004. I have a flash beackground for the stage and want it to be resize to any browser size resolution and also the external loadmovies i want them to be located in a specific place according to resolutions.
Can you give me some documentation how to do it simply and fast. I dont get how to make this component work,
Maybe do u have some documentation to tell thanx.
explorer (3 Jan 2006 19:18)
hey.
the component is great, but i could use a tutorial.
i have this kind of problem.
i have a movieclip (horizontal box) witch i want to strech to the width of a stage - simple. but inside of that movieclip i have a movieclip containing a logo. a want the logo not to streach with the box.
how do to it while keeping the logo nested inside of the box moviexlip?
James Rowley (7 Feb 2006 10:56)
These components seem to stop working properly when i add an FLVPlayback component dynamically into a dynamic movieClip.
Van (8 Feb 2006 19:40)
Is this component compatible with the new Flash 8 version?
chespi (21 Feb 2006 18:06)
exelent! great components, it in particulare shock me!
thanks for share your knowlage!
gburks (5 Aug 2006 1:16)
Hi,
I am migrating an ActionScript 2.0 project to ActionScript 3.0. Flash 9 Alpha does not allow components, and the project I am migrating uses your components.
Can you suggest any easy workarounds for now to enable your code to run? Can I manually grab some of your aligning code and include it in a movie clip's action script?
Alex (15 Aug 2006 16:54)
Hi, Elvis!
Can you give an example of a Stage-similar movie clip that implements width and height properties, and broadcasts resize message?
Thanks!
Andres Santos (4 Sep 2006 1:24)
Hi!!, i tested your components, they are very useful...but after test them i got some doubts, for example if i resize a movieclip where some assets are, do you think it will be distorted? also i have some doubts using 'this' instead of gStage, could you provide with a sample assets using 'this' :-D
btw great work!
Juan Ignacio (13 Feb 2007 19:55)
I have a movie clip with a fade ineffect made with a alpha 0% -> alpha 100% tween.
As a tween requieres the frame to only have a single object in it, I moved the component to a layer above the one where the tween is.
If the component starts in the same frame number where the tween start, when i publish th swf, on the SAFlashPlayer orks fine. But in Firefox and Safari, the tween never happens. If i put the component in the last frame of the tween, the effect happens not resized and at the ends, it rezies.
Is there a way to TILE a motion tween?
Blue (19 Nov 2007 6:02)
I hope this work.!!! If so, great job.
Francois Patry (30 Nov 2007 16:56)
Hi. Do you have a tutorial on how to use your component? I can't figuring out how to make it work.
Thanks.
Dave Langley (info@davelangley.com) (28 Feb 2008 16:18)
very nice align components. i dont suppose there's a way to retrieve the .target attribute from the eventObject parameter in the resize handler? it doesnt seem to work. eventObject.type works just dandy. Thanks Dave
Elvis Mehmedovic (28 Feb 2008 16:35)
It doesn't pass the target. However, perhaps addEventListenerL could help? See:
http://emehmedovic.com/xmca/toobplayer/toobplayer_api_reference.html#addEventListenerL
(Event system is the same for all components.)
vanessa@hypermodeinc.com (27 May 2008 4:32)
Hi!! I have downloaded your component but cant get it to work properly, I can't find any HELP documentation, any tutorials or docs i can reference? need ur component urgently!!thnx Vanessa
HELP (4 Dec 2008 1:00)
UM, no help files with this component... Are we psychic? ;)
salman uppal (29 May 2009 6:55)
could have saved a lot of time if there was a guide or a help file
tr (30 Oct 2009 9:12)
rt