myLib



© 2016 myLib
Based on DemusDesign and Eric Séguin Themes
Mar
6
myLib 0.8 (only available) on github

https://github.com/SamYStudiO/myLib

Enjoy!

comments (3) | read more...

Mar
6
myLib 0.7.8

Finally here it is!

As usual you can read changes log from forum.

If you come from 0.7.7 you’ll see only few changes with this release, if you come from 0.7.2 you can also read 0.7.7 beta changes log.

Have fun with it and don’t forget >still need feedback!

Download

comments (9) | read more...

Apr
9
assets/skins

Here is a mail discussion about skinning with mylib, really interresting specially when using swc library.


Yeah, that’s good, but the skins should have something like “simple mode”, for example, you only give a color and it uses the color as a “base”, only subtracting or adding tons to it.

Unfortunatly that’s not how assets/skins factory from myLib is designed BUT it’s design so you could make any kind of skin possible.
For example if you often want to use a color skin system you may be able to create a skin set for each components that you will able to use later for your projects.

With Button skin for example.
create your colorized asset class :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package
{
    import myLib.assets.Asset;
    import flash.display.Graphics;

    public class ButtonColorAsset extends Asset
    {
        protected var _color : uint;
       
        public function ButtonColorAsset ( color : uint )
        {
            super( );

            _color = color;
           
            // actually required check http://mylib.samystudio.net/forum/viewtopic.php?f=26&t=55
            _width = 100;
            _height = 20;
            draw();
        }
       
        public override function draw(  ) : void
        {
            var g : Graphics = graphics;
            g.beginFill( _color , 1 );
            g.drawRect( 0 , 0 , _width , _height );
            g.endFill();
        }
    }
}

create your own Button skin class :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
package
{
    import myLib.assets.TextFieldAsset;
    import myLib.assets.IAsset;
    import myLib.assets.ITextFieldAsset;
    import myLib.controls.skins.ASkin;
    import myLib.controls.skins.IButtonSkin;

    public class ButtonColorSkin extends ASkin implements IButtonSkin
    {
        protected var _colorUp : uint;
        protected var _colorOver : uint;
        protected var _colorDown : uint;
        protected var _colorDisabled : uint;
       
        public function ButtonColorSkin ( colorUp : uint , colorOver : uint ,
                                              colorDown : uint , colorDisabled : uint )
        {
            super( );
           
            _colorUp = colorUp;
            _colorOver = colorOver;
            _colorDown = colorDown;
            _colorDisabled = colorDisabled;
        }
       
        public function getTextFieldAsset (  ) : ITextFieldAsset
        {
            return new TextFieldAsset();
        }

        public function getUpAsset (  ) : IAsset
        {
            return new ButtonColorAsset( _colorUp );
        }

        public function getUpSelectedAsset (  ) : IAsset
        {
            return new ButtonColorAsset( _colorUp );
        }

        public function getOverAsset (  ) : IAsset
        {
            return new ButtonColorAsset( _colorOver );
        }

        public function getOverSelectedAsset (  ) : IAsset
        {
            return new ButtonColorAsset( _colorOver );
        }

        public function getDownAsset (  ) : IAsset
        {
            return new ButtonColorAsset( _colorDown );
        }

        public function getDownSelectedAsset (  ) : IAsset
        {
            return new ButtonColorAsset( _colorDown );
        }

        public function getDisabledAsset (  ) : IAsset
        {
            return new ButtonColorAsset( _colorDisabled );
        }

        public function getDisabledSelectedAsset (  ) : IAsset
        {
            return new ButtonColorAsset( _colorDisabled );
        }

        public function getIconUpAsset ( icon : * = null ) : IAsset
        {
            return null;
        }

        public function getIconUpSelectedAsset ( icon : * = null ) : IAsset
        {
            return null;
        }

        public function getIconOverAsset ( icon : * = null ) : IAsset
        {
            return null;
        }

        public function getIconOverSelectedAsset ( icon : * = null ) : IAsset
        {
            return null;
        }

        public function getIconDownAsset ( icon : * = null ) : IAsset
        {
            return null;
        }

        public function getIconDownSelectedAsset ( icon : * = null ) : IAsset
        {
            return null;
        }

        public function getIconDisabledAsset ( icon : * = null ) : IAsset
        {
            return null;
        }

        public function getIconDisabledSelectedAsset ( icon : * = null ) : IAsset
        {
            return null;
        }
    }
}

From there instantiate your component :

1
var b : Button = new Button ( this , null , new ButtonColorSkin( 0xFF0000 , 0x00FF00 , 0x0000FF , 0x999999 ) );

Once you’ve done your skin set for all components you can easily used it for next projects.

Hope this will help, and yes i will write documentation… :D

comments (4) | read more...

Feb
27
myLib 0.7.7 beta is out

Hey,

Happy to introduce you new myLib 0.7.7 beta release!

The keys for this release are :

- MediaPlayer review (FMS and HTTPPseudoStream>http://xmoov.com/ now include)
- new ComboBoxStepper component
- FocusManager review

Since¬† i have done huge changes from MediaPlayer, specially to include FMS and HTTPPseudoStream, this release is only available from google code SVN repository. I will make it downloadable as zip file soon as i’m sure it’s stable enough. Check download page at the bottom to get informations on how checkout repository and so get files.

I will start writing documentation next week starting with MediaPlayer.
Waiting for documentation here is HTTPPseudoStream example : http://test.samystudio.net/xmoov/HTTPPseudoStreamExample.swf.
You can download example files here.

Changes log.

Download (SVN checkout/update)

Hope you will enjoy this release, really need feedback so waiting for you now :)

comments (7) | read more...

Feb
10
Looking for testers for next release

Hey,

Next release coming soon, and i wish beta testing it before final release.
So if you’re interesting for beta testing, let me know.

Thx

comments (3) | read more...

Nov
29
ScrollBar patch before next release

When using scrollbar with 0.7.2 release, you may have notice a problem while dragging scroll thumb.
When hiting up or down asset buttons while dragging thumb, scroll thumb hang and you have to release an press it again to continue scrolling.

Here is the solution :

StyleManager.getInstance().setClassStyle( Button , { disabledDragRollState : true } );

Place it anywhere in your code and don’t forget StyleManager and Button classes import.

comments (6) | read more...

Nov
17
News from next release

No updates for a long time, but i’m still working on myLib, just not enough time atually.

Next release will be available with some new interesting features :
- FMS stream with MediaPlayer
- HTTPPseudoStream with MediaPlayer (http://xmoov.com/xmoov-php/)
- ComboBoxStepper components
- FocusManager improvement
- And of course lots of bugs fix and other minor new features

So be patient and stay tuned!

comments (7) | read more...

Apr
26
0.7.2 release with new licence under MPL

Note that myLib license change with this new release, now under MPL (Mozilla public license).

Download

More informations

Don’t forget to give feedback!

comments (2) | read more...

Feb
7
Update 0.7.1 available and demo update

myLib 0.7.1 is a minor update which fix severals problems, all download page packages and SVN repository have been update.  You can get fixed bug overview from forum or from history file available with downloaded packages.

Demo is also now available from myLib website (ColorPicker and Stpper/NumericStepper demo have been added)

See demo update

Download update

comments (2) | read more...

Jan
4
myLib 0.7 now available!

Here it is!

myLib is finally available for download. 3 packages are available :

Please use bugtracker and forum if you have any problems.

Enjoy!

Download now

comments (4) | read more...

« Older Entries