Giter Site home page Giter Site logo

mad-components's People

Contributors

danfreeman avatar

Watchers

 avatar

mad-components's Issues

Getting started

Okay, so I'm a simple guy with a simple development background. I saw this 
library recently and it seems to be a good fit to the iphone app that I'm 
building.

Here is my issue. I have read all your blog posts and have been looking at as 
many examples as I can, and I still don't understand this library. I don't 
understand why I have to define 500 lines of XML in order to get a tab 
navigation working.

Is there any way to simply do something like

var uiTabPages:UITabPages = new UITabPages(this, new Attributes()); // notice 
how i would love to just skip the xml attribute
uiTabPages.setTab(0, "FirstNav", optionalImage,optionalHighlightedImage);
uiTabPages.setTab(1,"SecondNav");
addChild(uiTabPages);

uiTabPages.addEventListeners(... // you get the idea

It would really ease my simple mind. Again, I'm sure your library is massively 
robust and can do a ton of stuff - but I can't use your library if I'm going to 
have to define a hundred lines of XML to get things working. It's going to be a 
big obstacle for a lot of developers like me from using your library! 

Original issue reported on code.google.com by [email protected] on 9 Aug 2011 at 5:49

Once in a while: Error #2044: Unhandled ioError:. text=Error #2036: Load Never Completed.

What steps will reproduce the problem?
1. assign to text property of ImageLoader - a valid URL, of an image file that 
exists.


What is the expected output? What do you see instead?

Occassionally, (rarely, not all the time) the following error is reported: 
"Error #2044: Unhandled ioError:. text=Error #2036: Load Never Completed. URL: 
http://...etc.,..."

Within the code, the Loader is appropriately surrounded by try, catch, there 
are listeners for errors, yet the problem still happens (sometimes).  Any 
suggestions from users would be appreciated.


Original issue reported on code.google.com by [email protected] on 14 Jun 2011 at 9:24

Can you tell me how to compile powerflasher.SampleApp ?

I use svn checkout to get all source codes from your library.
As I can see, we have 3 library folders :

MadComponentsLib has madcomponents
ExtendedMadnessLib has extendedMadness
MadComponents3D has both madcomponents and extendedMadness

and 4 example folders

MadComponentStuff has examples for madcomponents
ExtendedMadnessStuff has examples for extendedMadness
PureMadComponents has examples for madcomponents but does not use XML

and 
MadComponents3D has powerflasher.SampleApp which is example for MadComponents3D 
only.

How is the issue :

I can not compile examples from powerflasher.SampleApp using library from 
MadComponents3D.

So my question is :

How to compile examples from powerflasher.SampleApp ?

Even I use SWC from Download such as ExtendedMadnessLib0_2_0b.swc and 
MadComponentsLib0_7_8b.swc,  I still can not compile examples from 
powerflasher.SampleApp ?

Thank you very much for the great library.

Original issue reported on code.google.com by [email protected] on 25 Sep 2013 at 3:53

UIList have a litter bug when custom renderer components

What steps will reproduce the problem?
  Custom list render with a image, the image source is a displayobject not a string, like:
 image:String = '<image width="'+w+'" height="'+h+'" scale="true" id="thumbImg"></image>',
 listData:XML = <list id="idList" autoResize="false">                                              <vertical>                                       {new XML(image)}                                        <label id="labelPage"/>                                 </vertical>
</list>; 

What is the expected output? What do you see instead?
It will en-count a error, no image showed.


What version of the product are you using? On what operating system?
I do not know where to get the version, but I download it from svn at 5/17/2013

Please provide any additional information below.
This bug can be fixed by modify only one line in UIList:
change line 798:
  var value:String = record[id];
to:
  var value:* = record[id];

author is from smlme.com

Original issue reported on code.google.com by [email protected] on 20 May 2013 at 3:14

Fix for sendModel sending in JSON the data of the sendModel XML item rather than the localName

What steps will reproduce the problem?
With 
                    <login>
                        <email>emailId</email>
                        <password>passwordId</password>
                    </login>

What goes to the server is:
emailId=foo&passwordId=bar


What is the expected output? What do you see instead?
email=foo&password=bar

What version of the product are you using? On what operating system?
0.7.1

Please provide any additional information below.

Patch is provided, if I understood how it's supposed to work

Original issue reported on code.google.com by [email protected] on 4 Mar 2012 at 2:53

Attachments:

Index out of range error in segmented control

What steps will reproduce the problem?

1. Use the following code:

var TEST_DATA:XML = <data><units label="1"/><units label="2"/><units 
label="3"/></data>;
var attributes:Attributes = new Attributes(0,0,250,40);
attributes.parse(<style background="#FFFFFF,#0055FF"/>);            
var UnitSelector:UISegmentedControl = new UISegmentedControl(this, TEST_DATA, 
attributes);

What is the expected output? What do you see instead?

RangeError: Error #1125: The index 1 is out of range 0.
    at com.danielfreeman.extendedMadness::UISegmentedControl/showPressed()[/Users/danielfreeman/Documents/Adobe Flash Builder 4/ExtendedMadnessLib/src/com/danielfreeman/extendedMadness/UISegmentedControl.as:163]
    at com.danielfreeman.extendedMadness::UISegmentedControl/set index()[/Users/danielfreeman/Documents/Adobe Flash Builder 4/ExtendedMadnessLib/src/com/danielfreeman/extendedMadness/UISegmentedControl.as:87]
    at com.danielfreeman.extendedMadness::UISegmentedControl()[/Users/danielfreeman/Documents/Adobe Flash Builder 4/ExtendedMadnessLib/src/com/danielfreeman/extendedMadness/UISegmentedControl.as:76]

What version of the product are you using? On what operating system?
ExtendedMadnessLib_0_1_2.swc
ExtendedMadnessLib_0_1_1.swc
ExtendedMadnessLib_0_1_0.swc

Please provide any additional information below.
Does not occur in ExtendedMadnessLib_0_0_9.swc

Original issue reported on code.google.com by [email protected] on 20 Feb 2012 at 9:30

UILabel and UIPages details

UILabel.fixWidth should remove autoSize.

I think UIPages.STEPS should be an instance property, changing it after 
creating some UIPages instance causes undesired behavior. Also, although the 
previousPage() method is memory-efficient, I find it to be a bit useless, I'd 
say most people prefer something more along the lines of a stack, and Flex 
Navigator.popView method.

Original issue reported on code.google.com by [email protected] on 29 Jun 2012 at 10:04

background colour on groups only setting first row

What steps will reproduce the problem?

<group gapV="25" background="#f3f3f3">
    <columns widths="85,100%">
        <label id="tmd_lastActionDate" alignH="right" width="85"/>
        <label id="tmd_lastAction" alignH="left"/>
    </columns>
    <columns widths="85,100%">
        <label id="tmd_lastActionDate2" alignH="right" width="85"/>
        <label id="tmd_lastAction2" alignH="left"/>
    </columns>
    <columns widths="85,100%">
        <label id="tmd_lastActionDate3" alignH="right" width="85"/>
        <label id="tmd_lastAction3" alignH="left"/>
    </columns>
</group>

What is the expected output? 

background colour of entire group set to #f3f3f3


What do you see instead?

top row of group has background colour set correctly - each additional row 
defaults to white background.


What version of the product are you using? On what operating system?
0.5.3 - Windows 7 - Flex 4.5.1 - Mobile ActionScript Project


Please provide any additional information below.

Tried other ways of setting background colour without success - not a major 
problem - if there is a work-a-round, happy to use it - if not - it's low 
priority (can't find a way of setting an issue's priority)

Regards

Rich

Original issue reported on code.google.com by [email protected] on 6 Jul 2011 at 12:58

Crash when have more than 150 items in UIList

What steps will reproduce the problem?
protected static const LIST0:XML =  <list id="list0" colour="#FFFFFF" 
background="#000000,#000000">                                                   

                                                    <horizontal>
                                                            <image id="image">48</image>
                                                            <vertical>
                                                                    <label id="label"><font size="24" color="#FFFFFF"/></label>
                                                                    <label id="label2"><font color="#666666" size="11"/></label>
                                                            </vertical>
                                                    </horizontal>
                                            </list>;

protected static const LAYOUT0:XML = <columns widths="300"  
background="#000000,#FFFFFF">
                                                    {LIST0}
                                                    <label id="desc"><font color="#FFFFFF"/>Test description</label>
                                            </columns>;

protected static const NAVIGATOR:XML = <viewFlipper title="lists" 
background="#FFFFFF" colour="#666677" id="navigator">
                                                        {LAYOUT0}
                                                </viewFlipper>; 

protected function construct():void
{
UI.create(this, NAVIGATOR);

for (var i:int = 0; i < 150; i++)
{
data0.push({label:"test", label2:'Unknwown theme', 
image:getQualifiedClassName(MELON)});
}
uiList0 = UIList(UI.findViewById("list0"));
uiList0.data = data0;
}



What is the expected output? What do you see instead?
The list displays fine, but whe I try to scroll it, the application exists. 
This is not reproduced on adl emulator.
I'm using an Android tablet (Asus transformer)

What version of the product are you using? On what operating system?
I'm using the cvs version.

Please provide any additional information below.
The pictures are very small 128x128 px png about 4.5KB
I love the components. This is the only issue that prevents me from using it :(

Thanks!


Original issue reported on code.google.com by [email protected] on 18 Mar 2012 at 7:11

Removing UIList container from stage imediatly after Event CLICKED

What steps will reproduce the problem?
1. I'm listening for UIList Clicked event
2. After I received selection from List, I remove UIList container (before that 
I'm trying to call UIList.destructor() and UI.clean, but bug repeats).
3. Stage is null in UIList.activate method

What is the expected output? What do you see instead?
I removed line:
stage.removeEventListener(MouseEvent.MOUSE_UP,mouseUp);
to the top of the activate() method (before Event CLICKED) and bug is gone. I 
don't know is this ok?

What version of the product are you using? On what operating system?
0.6.9

Please provide any additional information below.

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at com.danielfreeman.madcomponents::UIList/activate()[H:\rad\Flex4\RestaurantMenu4.6\InnMenuAndroidASFree\src\com\danielfreeman\madcomponents\UIList.as:604]
    at com.danielfreeman.madcomponents::UIList/pressButton()[H:\rad\Flex4\RestaurantMenu4.6\InnMenuAndroidASFree\src\com\danielfreeman\madcomponents\UIList.as:569]
    at com.danielfreeman.madcomponents::UIScrollVertical/mouseUp()[H:\rad\Flex4\RestaurantMenu4.6\InnMenuAndroidASFree\src\com\danielfreeman\madcomponents\UIScrollVertical.as:303]

Original issue reported on code.google.com by [email protected] on 18 Feb 2012 at 6:30

I am working on the mad components tutorial number 7 and i am getting error.

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

The expected output is list of employees displayed. I am getting error
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: 
flash.net.NetConnection was unable to invoke callback AppendToGatewayUrl. 
error=ReferenceError: Error #1069: Property AppendToGatewayUrl not found on 
flash.net.NetConnection and there is no default value.

What version of the product are you using? On what operating system?
I am using mad components version 0.6, OS is windows 7.

Please provide any additional information below.
I am giving url as 
model url="http://localhost:8080/testdrive/messagebroker/amf" 
service="EmployeeService.getEmployeesSummary" action="loadAMF"

Original issue reported on code.google.com by [email protected] on 28 Nov 2011 at 5:41

Some rows not clickable in UILongList

What steps will reproduce the problem?
1. Set data of UILongList with costumRenderers
2. Scroll down
3. Click last row

What is the expected output? What do you see instead?
The click dispatches an event

What version of the product are you using? On what operating system?
ExtendedMadness (version 0.1.5),  Mac OS X


Please provide any additional information below.
It looks like var startIndex:int = Math.floor(-_slider.y/_cellHeight); in 
sliderMoved (UILongList) is off, because illuminate() in UIList fails in 
_pressedCell < _count. Somehow _count is bigger.


Original issue reported on code.google.com by [email protected] on 25 Jun 2012 at 12:49

Ulist does not work with android-Crash

Ulist does not work with android.Io use falsh cs6 - Air 3.5
Crash When I have more than 200 items in UIList.
I can not use "GPU rendering mode" for video problems, and text input problems. 
As recommended adobe: 
http://help.adobe.com/en_US/as3/mobile/WS901d38e593cd1bac-3d719af412b2b394529-80
00.html
My code:

import com.danielfreeman.madcomponents.*
import flash.display.Sprite;

var placeholder:Sprite =new Sprite;


this.addChild(placeholder);
var data0:Array = []; 
for(var i:Number = 0; i<300; i++)
{
  data0.push({label:'<font size="18" color="#333333">'+i+' anni</font>'})
}

var LIST0:XML = <list id="list0" recycle="true"  mask ="true" colour="#cccccc"  
autoScale  = "false" autoResize = "false" >  

                                                <horizontal><label id="label"/></horizontal>  
                                            </list> 

UI.create(placeholder, LIST0,420,280);
var uiList1:UIList = UIList(UI.findViewById("list0"));
uiList1.data = data0;
uiList1.y=0
uiList1.x=0

What is the expected output? What do you see instead?
The list displays fine, but whe I try to scroll it, the application exists. 

What version of the product are you using? On what operating system?
I'm using Samsung galaxy2, Samsung S3, Samusung s2, Iphone 4s.

Please provide any additional information below.


Please help we are 7 days I lose my mind. I'm stuck and do not know how to 
proceed.

Original issue reported on code.google.com by [email protected] on 4 Feb 2013 at 12:04

UI.findViewById() broken

What steps will reproduce the problem?
1. Run the attached TestList.as
2. Click the row labeled "Pineapple"
3. UI.findViewById() returns another row
4. CLick the row labeled "Apple" 
5. A TypeError is returned:
Type Coercion failed: cannot convert 
com.danielfreeman.madcomponents::UILabel@3888191 to 
com.danielfreeman.madcomponents.UIForm

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?

0.4.8

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Jun 2011 at 10:54

Attachments:

App cant exit

What steps will reproduce the problem?
1. I press back button on android mobile to exit the demo mad component app but 
cant exit.


What is the expected output? What do you see instead?
It's supposed to exit the app when press back button on android mobile.

What version of the product are you using? On what operating system?
Android 2.3

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 18 Aug 2012 at 2:39

JSON parsing

I have a rather big JSON string to parse, and decided to make some tests with 
varying amounts of data. For all my tests the native JSON class is from 8.5 to 
12 times faster than the TinyJSON class included.

Have you made any further test? Different environments can give different 
results, although I'd be surprised if TinyJSON were better on an actual device.

I've removed TinyJSON, although I see ExtendedMadness also uses it and for it I 
use the SWC.

Original issue reported on code.google.com by [email protected] on 9 Sep 2012 at 11:51

Attachments:

SendModel send to server doesn't work because of a typo

What steps will reproduce the problem?
1. Try to send data to the server

What is the expected output? What do you see instead?
It should send the schema in <sendModel> but instead the schema in <model> is 
sent

What version of the product are you using? On what operating system?
0.7.1

Please provide any additional information below.
Fix is in the attached patch

Original issue reported on code.google.com by [email protected] on 4 Mar 2012 at 2:03

Attachments:

Fix for padding attributes not being read in Attributes.as

What steps will reproduce the problem?
Set paddingH or paddingV to something other than 8

What is the expected output? What do you see instead?
change in padding. No change.

What version of the product are you using? On what operating system?
0.7.1

Please provide any additional information below.

Fix attached, it's a typo

Original issue reported on code.google.com by [email protected] on 10 Mar 2012 at 2:11

Attachments:

Image sizing doesn't work in the <image height="20"> tage

What steps will reproduce the problem?
set the size of a GIF to something other than its native size

What is the expected output? What do you see instead?
scale should adjust but it's 1 instead

What version of the product are you using? On what operating system?
0.7.1

Please provide any additional information below.
Patch attached but it looks to me like Attributes.widthH and Attributes.heightV 
should be used everywhere because otherwise set values for width and height 
will be ignored, right?

Also, the way height and width are handled in Attributes makes it possible for 
_height to have a value of 50 and height to have a value of 300. That seems 
confusing to me and may deserve another look.

thanks!

Original issue reported on code.google.com by [email protected] on 6 Mar 2012 at 5:08

Attachments:

UIPages and subclasses change?

This is something that's been going around my head for some days, although I've 
not settled down on anything.

The current change of pages in a navigation container could be improved, right 
now only a couple of events are dispatched (change and complete), and from my 
experience this is somewhat limited. One can get the desired features with 
what's available right now, but this could come out of the box with the 
framework.

One way of improving this would be to make each "page" to dispatch events, 
instead of the container. I think this is a more proper way of knowing when the 
old page is being removed, and completely removed, and when the new page is 
being added and completely added. The problem with this approach, since a page 
can be "anything" is that some documentation is being lost, and it would be a 
breaking change (I think keeping old code is what causes projects to end being 
fat).

Another advantage this has is that it could, in some cases, improve an app 
performance, since we know if we need to dispatch an event, we may only launch 
events for some of our pages, instead of all of them like the current model 
does.

Well, this is just something bugging me lately.

Original issue reported on code.google.com by [email protected] on 22 Aug 2012 at 11:58

UINavigation.nextPage(UIPages.SLIDE_LEFT) and UINavigation.goToPage(1, UIPages.SLIDE_LEFT) always navigates to last page when there are more than two pages in list

What steps will reproduce the problem?
UINavigation.nextPage(UIPages.SLIDE_LEFT) and UINavigation.goToPage(1, 
UIPages.SLIDE_LEFT) always navigates to last page when there are three or more 
pages in list.

What is the expected output? What do you see instead?
1. UINavigation.nextPage(UIPages.SLIDE_LEFT) should navigate to immediate next 
page.  
2. UINavigation.goToPage(1, UIPages.SLIDE_LEFT) should navigate to page 1 if we 
are currently on page zero.

What version of the product are you using? On what operating system?
0.4.3 on Windows 7

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 5 Jun 2011 at 4:45

space after UIPicker banks in layout increases after every screen rotation.

What steps will reproduce the problem?
1. <vertical><columns><picker/><picker/></columns></vertical>
2. Rotate screen. 

What is the expected output? What do you see instead?

The vertical space between the picker and the next component increases on every 
orientation change - (until the components after the picker disappear off the 
bottom of the page).

What version of the product are you using? On what operating system?

0.5.1

Please provide any additional information below.

Will be fixed in 0.5.2 - due in a day or two.

Original issue reported on code.google.com by [email protected] on 26 Jun 2011 at 10:01

UINavigation.navigationBar.rightButton does not work with UIButton.CLICKED listener with or without UINavigation.autoBack = false;

What steps will reproduce the problem?
UINavigation.navigationBar.rightButton does not work with UIButton.CLICKED 
listener with or without setting UINavigation.autoBack = false;
It appears from observing the button in the UI, that it is not getting 
clicked/tapped since it does not change its color (or appearance) at all.


What is the expected output? What do you see instead?
UIButton.CLICKED listener should call the listening method on button click.


What version of the product are you using? On what operating system?
0.4.3 on Windows 7

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 5 Jun 2011 at 5:04

ReferenceError on UINavigation.goToPage() when clicking first group only

What steps will reproduce the problem?
1. Use the attached TestList.as file
2. Click a row in the first group
3. You will see a ReferenceError: Error #1069

Strangely, the error only occurs when a row in first group is clicked. The the 
second group (or third or fourth if they exist) do not show this bug.

What version of the product are you using? On what operating system?

0.4.9

Please provide any additional information below.

This appears related to defect 6 that was fixed in 0.4.9

Original issue reported on code.google.com by [email protected] on 17 Jun 2011 at 8:44

Attachments:

UIPicker will not choose index on large values

So I made a year-picker and filled it with quite a few values. If I choose a 
value that's over a certain threshold, the index function fails. It sets the 
index correctly (i.e. I can call pickerYear.index and get 80), but it's not 
showing in the control.

It works for smaller values, but I'm guessing there's something in the 
scrolling logic that's breaking for bigger numbers.

(and apologies for the odd two-step positioning code. That's another bug, but 
it's one I figured out how to work around)

var pickerYear:UIPicker = new UIPicker(this, <picker/>, new 
Attributes(0,0,120,0), false, false, 120)
var d = []
for (i = 1910; i<=2011; i++)
    d.push({label:i.toString()});
pickerYear.data = d
pickerYear.x = 228
pickerYear.y = 102
pickerYear.index = 80  // does not show in the control

Original issue reported on code.google.com by [email protected] on 9 Aug 2011 at 5:24

MadComponents 0.7.6

Looking at latest version I've noticed several things that could be improved.

- UIPages.as:

Why the change from:

                    var page:DisplayObject = new UI.FormClass(this, child, newAttributes);


to

                    var page:* = new UI.FormClass(this, child, newAttributes);


?

Is there any case in which it may not be a DisplayObject? Because if so, I see 
several places where it could fail, like attachPages().

Also:

                    _pages[_pages.length] = page;

Is faster than:

                    _pages.push(page);


You could always declare some:

var i:int = _pages.length;

Begore for each, and then change:

                    _pages[_pages.length] = page;

Into

                    _pages[i++] = page;

Also _pages could be changed from a simple Array to a Vector.<DisplayObject> or 
Vector.<IContainerUI>. I do not know which one would be more appropriate...

- UILabel:

Missed the report from here?

https://code.google.com/p/mad-components/issues/detail?id=33&can=1

- UI.as (and general):


        public static function clear(item:Sprite = null):void {

            if (!item) item = _root;

            for (var i:int = item.numChildren-1; i>=0; i--) {

                var child:DisplayObject = DisplayObject(item.getChildAt(i));

                if (child.hasOwnProperty("destructor")) {

                    Object(child).destructor();

                }

                item.removeChildAt(i);

            }

        }

        public static function clear(item:Sprite = null):void {

            if (!item) item = _root;

            for (var i:int = item.numChildren-1; i>=0; i--) {

                var child:DisplayObject = DisplayObject(item.getChildAt(i));

                if (child.hasOwnProperty("destructor")) {

                    Object(child).destructor();

                }

            }

            item.removeChildren();

        }


removeChildren() can be from 3 to 6 (or even more) times faster depending of 
the number of children. It may not be noticeable when there are just a few 
children, but it's better.

- UIForm.as (and general)

            public function clear():void {
                for (var i:int = 0; i < numChildren; i++) {
                    var item:DisplayObject = getChildAt(i);
                    if (item is IContainerUI) {
                        IContainerUI(item).clear();
                        IContainerUI(item).destructor();
                    }
                    removeChild(item);
                }
            }


            public function clear():void {
                for (var i:int = 0; i < numChildren; i++) {
                    var item:IContainerUI = getChildAt(i) as IContainerUI;
                    if (item != null) {
                        item.clear();
                        item.destructor();
                    }
                }
                removeChildren();
            }

Using as is often better that doing an explicit cast, the gain is ridiculous, 
but in this case I think it also looks better.

I may have missed more places where these can be applied. Also, sorry for all 
my issues with the ugly formatting, I don't know if there is a way for 
formatting code.

Original issue reported on code.google.com by [email protected] on 7 Aug 2012 at 2:27

autoLayout="true" is not supported by UILongList

What steps will reproduce the problem?

<longList autoLayout="true">....

What is the expected output?

List with varying row heights 

What do you see instead?

Possible RTE.


Note this is an error in the documentation.  UILongList does not currently 
support autoLayput="true", and this fact hasn't been made clear.

Original issue reported on code.google.com by [email protected] on 9 Mar 2012 at 5:38

UIList lines = false still draws lines

What steps will reproduce the problem?
1. Create a UIList, like <list autoLayout="true" id="wallList"  alignH="left" 
alignV="fill" lines="false" mask="true">
2. Set data to list
3.

What is the expected output? What do you see instead?
Expected is no divider lines. I do see divider lines


What version of the product are you using? On what operating system?
ExtendedMadnessLib0_1_5, Mac OS X


Please provide any additional information below.
Looks like drawSimpleCell in UIList is creating a line:
_slider.graphics.beginFill(_colour);
_slider.graphics.drawRect(0, position, _width, 1);


Original issue reported on code.google.com by [email protected] on 26 Jun 2012 at 10:26

stage3Dacceleration.LongListScrolling causes bug with Flash Builder simulator

What steps will reproduce the problem?
1. run SLIDE_OUT_NAVIGATION example with Stage 3D (use Context3D)
2. customized renderer of the DIVIDED_LIST in that example
3. Using Flash Builder 4.6, Flex SDK 4.6, AIR 3.7

Run in simulator and there is an error :

RangeError: Error #1125: The index 2 is out of range 2.
    at com.danielfreeman.stage3Dacceleration::LongListScrolling/drawLists()[com\danielfreeman\stage3Dacceleration\LongListScrolling.as:637]

and the source code of that line is :

_context3D.setTextureAt(0, _listRowTextures[listRecord.textureIndex][j]);

But running in Device is fine.

Thank you Dan, but how to fix it ?

Original issue reported on code.google.com by [email protected] on 30 Sep 2013 at 1:17

Bug when scrolling clickableGroup

What steps will reproduce the problem?
1. Take the MadGroups example and copy/paste the clickableGroup block a few 
times so that the content is too long for the screen.

2. directly after the opening vertical tag of CONTACTS add a scrollVertical - 
close it just before the last line of XML (close vertical tag)

3. Run the app and scroll up and down.

What is the expected output? 
The screen scrolling up and down with no errors.

What do you see instead?

A fairly regular error (particularly easy to trigger if you click on the 
background near the three buttons)

TypeError: Error #1010: A term is undefined and has no properties.
    at com.danielfreeman.madcomponents::UIForm/resetGroupClicked()[/Users/danielfreeman/Documents/Adobe Flash Builder 4/MadComponentsLib/src/com/danielfreeman/madcomponents/UIForm.as:541]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.danielfreeman.madcomponents::UIScrollVertical/mouseUp()[/Users/danielfreeman/Documents/Adobe Flash Builder 4/MadComponentsLib/src/com/danielfreeman/madcomponents/UIScrollVertical.as:227]


What version of the product are you using? 
0.5.2

On what operating system?
Windows 7 x64

Please provide any additional information below.

My modified MadGroups.as attached.

Original issue reported on code.google.com by [email protected] on 30 Jun 2011 at 1:30

Attachments:

UIList Model refresh issue

What steps will reproduce the problem?
1. Enable UIList.pullDownRefresh
2. Issue a UIList.model.loadJSON("", URLRequest) call, or similar;
3. Pull down.

What is the expected output? What do you see instead?
The list data should be reloaded, but it fails to do so since the URLRequest 
parameter isn't being saved.


What version of the product are you using? On what operating system?
Latest one.

Please provide any additional information below.
I added a new protected var for the request, and replaced these lines in 
loadJSON and loadXML:

            if (!request)
                request = new URLRequest(url);

with:

            if (!request)
                request = _request ? _request : new URLRequest(url);
            else
                _request = request;

If not, maybe the pulldown refresh could launch a custom function instead of 
forcing a refresh.

Original issue reported on code.google.com by [email protected] on 14 Jul 2012 at 1:00

setIndex not working when animation is true

What steps will reproduce the problem?
1. create a list with items
2. call setIndex(someIndex, true);
3.

What is the expected output? What do you see instead?

I expect the list to scroll to someIndex row

What version of the product are you using? On what operating system?

MadComponentsLib0_7_8b.swc

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 3 Oct 2013 at 8:28

Tiled layout

Made changes to slightly optimize performance and memory in UIForm layout, and 
added tiled layouts. They work as expected where I've used them.

The patch can be downloaded from https://gist.github.com/791fed07152ca88ce2fd

I can't tell for sure if it's mandatory to apply before the other patches I've 
posted, I think it shouldn't.

I'm not 100% happy with some things, but they'd require deeper changes and 
don't want to do so. Also, before introducing these ones, I thought of adding 
some overflow property to horizontal and vertical, but didn't it that way to 
not introduce a new variable and some extra checks.

Also, with ASC 2.0, maybe the layout could be done in some function to be 
inlined, that way code wouldn't be duplicated in parseBlock and layout.

Lastly, I removed a (xml.localName().indexOf("Horizontal")>0) condition, seems 
to be some hack or some patch for some unexpected behaviour or unintended/old 
tag? it was a problem for tileHorizontal. If the overflow attribute were added, 
the check could be added back.

BTW, I don't use FB but happened to read on the group that you are thinking of 
moving to Git... I know it's better for projects with big colaboration, but 
actually, I prefer SVN :P. Just my opinion.

Original issue reported on code.google.com by [email protected] on 30 Aug 2012 at 10:09

divided list

What steps will reproduce the problem?
1. run divided list example in browser
2. click and hold on list item as if to scroll list

What is the expected output? What do you see instead?
list should scroll, but click initiates navigation to detail page

What version of the product are you using? On what operating system?
6.0 mac 

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 14 Sep 2011 at 2:50

check for custom labels during XML parsing

What steps will reproduce the problem?
1. Extend UILabel with a custom class
2. Register Class
3. When parsing occurs the text is not passed to the label

What is the expected output? What do you see instead?
The text in the XML should be displayed by the custom label class

What version of the product are you using? On what operating system?
0.7.6

Fix:
in UIForm at line 418, adding the following fixes the issue
if( child is TextField && !(child is UILabel))
{
(child as TextField).htmlText = line;
}


Original issue reported on code.google.com by [email protected] on 30 Aug 2012 at 3:39

MadComponents + StageVideo example problem

What steps will reproduce the problem?
1. Copy and pasted and saved code from 
http://madskool.wordpress.com/2012/03/01/madcomponents-stagevideo-stagewebview-s
tagetext-extendedmadness-callouts/ in file MadVideo.as
2. In Flash CS6 , added following to action script
   import MadVideo;
    new MadVideo(this);

What is the expected output? What do you see instead?
<PATH> MadVideo.as, Line 31 1086: Syntax error: expecting semicolon before id.


What version of the product are you using? On what operating system?
ExtendedMadnessLib0_2_0b.swc + Flash CS6

Please provide any additional information below.
I was trying to learn mad-components by goign through tutorials.I ran 
successfully MadHelloWorld.as example. But StageVideo exampel is giving me 
syntax error.
Belwo is the code where I get error but doesnt make sense ...

        protected static const LAYOUT:XML =


                <label id="label">Stage Video Demo</label>

                <button id="button">start</button>
            ;

Original issue reported on code.google.com by [email protected] on 13 Nov 2013 at 10:28

Using alignH="centre" in a vertical layout within a horizontal layout gives major layout problems

What steps will reproduce the problem?
1. See the attached program
2.
3.

What is the expected output? What do you see instead?
It should layout normally with alignH="centre"

What version of the product are you using? On what operating system?
ExtendedMadnessLib0_1_3.swc

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 20 Mar 2012 at 12:07

Attachments:

UINavigation.goToPage(); does not work properly

What steps will reproduce the problem?

1. Perform UINavigation.goToPage(0); on page 1 or 2. I used the 
navigationBar.rightButton to execute goToPage(0);

What is the expected output? What do you see instead?

Instead of going to the first page, I see the current page contents disappear 
and the back button still visible and un-clickable. 

What version of the product are you using? On what operating system?
0.4

Please provide any additional information below.

Screen Shots attached for before and after executing goToPage(0);

Original issue reported on code.google.com by [email protected] on 2 Jun 2011 at 10:28

Attachments:

UIList alt pull down refresh

Modified UIList to support pull down refresh as in other apps, where you have 
to pull down, and then release to start the update.

Also, while looking into adding this I happened to see a performance 
improvement possible inside clearCells (the previous code was being evaluated 
constantly).

Original issue reported on code.google.com by [email protected] on 2 Sep 2012 at 1:09

Attachments:

Controls placement

It would be nice if we could set the controls location through XML (and even 
nicer if we could set right and bottom properties).

Original issue reported on code.google.com by [email protected] on 28 Jun 2012 at 9:15

UIForm change

I've added the following code before return label; inside parseLabel:

                if ([email protected]() > 0 && xml.@autosize != "false")
                    label.autoSize = TextFieldAutoSize.LEFT;

And added:

                            if ([email protected]() > 0 && line.@autosize != "false") {
                                UILabel(child).autoSize = TextFieldAutoSize.LEFT;
                            }
After:

                            if (childAttributes.fillH || [email protected]()>0) {
                                UILabel(child).fixwidth = childAttributes.widthH;
                            }
Inside layout.

The reason of it? well, because I wanted to add a label inside a 
UIScrollVertical component, with a fixed width, but enabling auto sizing, that 
way the textfield would automatically increase its height, and vertical 
alignment would work as expected.

Original issue reported on code.google.com by [email protected] on 14 Jul 2012 at 4:50

Auto scale bug?

What steps will reproduce the problem?
1. Set xml root tag dpi attribute a value of 320, and make a design adapted to 
that size.
2. Simulate or test on a smaller screen.

What is the expected output? What do you see instead?
I'd expect the displayed layout to be resized to match the smaller screen, but 
it remains to be the same.

What version of the product are you using? On what operating system?
Tested on Flash Develop, Windows 7, AIR 3.3, although all this doesn't matter 
much.

Please provide any additional information below.
I know the dpi attribute is somehow undocumented, but I consider it to be 
rather important.

The cause of the problem is in UI.as, in the newAttributes function replace:

        if (_autoScale && Capabilities.screenDPI > _dpi) {

with:

        if (_autoScale) {

It seems to work fine, I don't know if there is any case where removing the 
extra condition will bring problems. Maybe the framework should standardize the 
dpis to 160, 240 and 320?

Original issue reported on code.google.com by [email protected] on 24 Jun 2012 at 11:23

Button within each list row not able to findViewById

I don't necessarily think this is a BUG but there is no examples for this in 
the documentation and I can't get it to work with the obvious attemps.  The 
list has buttons in it to try to go to settings screens or other screens(kind 
of like your example with switches in the lists).  I can't get them to respond 
to anything.

What steps will reproduce the problem?
1. made list: LISTBRUSHES:XML = <list id="list0" colour="#FFFFFF" 
background="#CCCCCC,#FFFFFF">                       <horizontal>
    <image id="image">48</image>
        <vertical>
        <horizontal><label id="label"><font size="18"/></label>         <button id="brushsettings"><font size="12">SETTINGS</font></button>
    </horizontal>
    <label id="label2"><font color="#666666" size="11"/></label>
        </vertical>
        <label id="labelpurchase" alignH="right"><font color="#009900" size="18"/></label>
    <button id="button2" alignH="right" colour="#00FF00"/>
    </horizontal>
    </list>;
2. list works fine on all other accounts.  but this doesn't work... 


var settingBtn:UIButton = UIButton(UI.findViewById("brushsettings"));
settingBtn.addEventListener(MouseEvent.MOUSE_UP, goSettings);
settingBtn.addEventListener(UIButton.CLICKED, goSettings);
function goSettings(event:Event) :void {
    _styles.goToPage(1,UIPages.SLIDE_LEFT);
}


What is the expected output? What do you see instead?

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at photopaintFree_fla::MainTimeline/frame1()[photopaintFree_fla.MainTimeline::frame1:3276]

---shouldn't this work? or does it need some reference to the parent? not sure 
and documentation doesn't help on this.

What version of the product are you using? On what operating system?
windows 7, Flash Pro cS6 mad-components 0.7.6

Please provide any additional information below.

 The code I sent is dumbed down, eventually once I get it working I need it to use the list .index to tell it what row was clicked

Original issue reported on code.google.com by [email protected] on 11 Mar 2013 at 8:53

TinyJSON doesn't handle null

What steps will reproduce the problem?
Send null, e.g. '...,"description":null,...'

What is the expected output? What do you see instead?
expect '', get 'null'

What version of the product are you using? On what operating system?
0.7.1

Please provide any additional information below.
Fix attached, see patch

Original issue reported on code.google.com by [email protected] on 9 Mar 2012 at 11:35

Attachments:

switch.mouseEnabled = false doesn't appear to work

What steps will reproduce the problem?

var switch:UISwitch = UISwitch(UI.findViewById("switch"));
switch.mouseEnabled = false;
switch.state = true;

What is the expected output? 
Switch is set to true through code and the user cannot change the state.


What do you see instead?
mouseEnabled has no effect and the user can still change the state of the 
switch.


What version of the product are you using? On what operating system?
0.5.3

Please provide any additional information below.
I've tested it thoroughly this time.

Regards

Rich


Original issue reported on code.google.com by [email protected] on 6 Jul 2011 at 12:27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.