Giter VIP home page Giter VIP logo

arctic's People

Contributors

alstrup avatar

Watchers

 avatar

arctic's Issues

Button's click function is void -> void

What steps will reproduce the problem?
1. make a loop to make some Buttons
2. Make an onclick function
3. How can I tell which button I clicked on in the onclick function?

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


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

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 May 2010 at 4:05

Impossible use of the resources as picture source

Impossible use of the resources as picture source
      Picture(resource_picture_name, 25, 25, 1)

Solution:

Replace 

case Picture(url, w, h, scaling, resource, crop, cache, cbSizeDiff):
    if (mode == Metrics) {
        return { clip: null, width : w, height : h, growWidth : false, growHeight : false };
    }
    var clip : ArcticMovieClip = getOrMakeClip(p, mode, childNo);
    var width = w;
    var height = h;
    var checkSizes = function (realWidth : Float, realHeight : Float) {
        if (cbSizeDiff != null && (realWidth != w || realHeight != h)) {
            cbSizeDiff(realWidth, realHeight);
        }
    }
    #if flash9
        if (mode == Create) {
            if (Type.resolveClass(url) != null) {
                var loader = flash.Lib.attach(url);
                clip.addChild(loader);
            } else {


with lines



case Picture(url, w, h, scaling, resource, crop, cache, cbSizeDiff):
    if (mode == Metrics) {
        return { clip: null, width : w, height : h, growWidth : false, growHeight : false };
    }
    var clip : ArcticMovieClip = getOrMakeClip(p, mode, childNo);
    var width = w;
    var height = h;
    var checkSizes = function (realWidth : Float, realHeight : Float) {
        if (cbSizeDiff != null && (realWidth != w || realHeight != h)) {
            cbSizeDiff(realWidth, realHeight);
        }
    }
    #if flash9
        if (mode == Create) {
            var clResolved : Class<Dynamic> = Type.resolveClass(url);
            var clName : String = Type.getClassName(Type.getSuperClass(clResolved)).split('.').pop();
            if ( clResolved != null) {
                if (clName == "MovieClip") {
                    var loader = flash.Lib.attach(url);
                    clip.addChild(loader);
                } else if (clName == "Bitmap") {
                    var image:Bitmap = Type.createInstance(clResolved, []);
                    clip.addChild(image); 
                }
            } else {

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

Bug in ComponentTour

Open examples/componentTour9.swf
Click Arctic.makeCheckBox

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
    at arctic::ArcticView/build()[../arctic/ArcticView.hx:312]
    at MethodInfo-21()[../arctic/ArcticView.hx:885]
    at arctic::MutableBlock/update()[../arctic/ArcticBlock.hx:309]
    at arctic::MutableBlock/set()[../arctic/ArcticBlock.hx:302]
    at ComponentTour/chooseComponent()[ComponentTour.hx:90]
    at MethodInfo-84()[../arctic/Arctic.hx:365]
    at MethodInfo-85()[../arctic/Arctic.hx:370]
    at MethodInfo-20()[../arctic/ArcticView.hx:846]

Original issue reported on code.google.com by [email protected] on 26 Oct 2007 at 10:13

error when mouse pointer leaves browser window

Use same code as in Issue 3:

http://code.google.com/p/arctic/issues/detail?id=3&can=2&q=

The flash9 debug player whines when the mouse leaves 
the browser window. This is related to makeToolTip()

Error code is 1009.

See http://livedocs.macromedia.com/flex/2/langref/runtimeErrors.html

Original issue reported on code.google.com by [email protected] on 30 Nov 2006 at 9:19

Tooltip issue

What steps will reproduce the problem?
1. Open arctictest9.swf that comes within the examples folder
2. Press the first "Hello World" button
3. Roll the mouse over the "Continue" button slowly. The tool tip appears
before the mouse over event.

What is the expected output? What do you see instead?
- The roll over event and the tool tip event should be the same.

What version of the product are you using? On what operating system?
- version 0,4,1 on Windows XP

Original issue reported on code.google.com by ian.liu88 on 11 Nov 2006 at 11:54

[patch] arcticView.destroy() crashes with TextField

I'm a music technology researcher, working on a tool to collect musician's
perceptions about rhythmic errors.  I'm using haxe and arctic.

My app was crashing when I called .destroy();  After adding many traces()
in arctic/ArcticView.hx, I managed to find the place and create a patch to
fix it.  I'm not certain if this is a general solution; I check for
TextField directly, but it might affect other types of gui objects as well.
 I see a #debug section above my patch, but I don't understand it.  I'm
happy with my patch, but I thought I should send it to you for possible
inclusion in SVN.


I don't have a small example of the crash, but if you want to see it in my
large project, check out
   http://code.google.com/p/mewer/
SVN rev 86.  Go to the directory:
  other/listen-rhythms
and type "make".

Cheers,
- Graham Percival

Original issue reported on code.google.com by [email protected] on 19 Oct 2009 at 3:37

Attachments:

Are fillers to greedy?


ColumnStack([
ConstrainWidth(500,500,
LineStack( [
  Text("<font face='arial' size='40'>Visual settings</font>"),
   ColumnStack( [
     Arctic.makeTooltip(
       Border( 10, 10, Arctic.makeCheckbox( Text(""), function(state :
Bool) { trace(state); me.controlEnable("LogoBannerInput", state);} )),
         "Enable this feature (disable to use default)"),
       Text("<font face='arial' size='20'>Logo banner: </font>"),
       Id("LogoBannerInput",TextInput("", 150, 20, null, null, 100, false,
      0xFFFFFF, false))] ),
   ColumnStack( [
     Arctic.makeTooltip(
       Border( 10, 10, Arctic.makeCheckbox( Text(""))),
         "Enable this feature (disable to use default)"),
         Text("<font face='arial' size='20'>Logo banner: </font>"),
         Filler,
         TextInput("", 150, 20, null, null, 150, false, 0xFFFFFF, false)
    ] ),


Produces the attached...

Note the first columnstack has no filler.

Original issue reported on code.google.com by [email protected] on 29 Nov 2006 at 2:10

Attachments:

Floating text

I wonder if it could be possible to make text floating around an image for
example, like the css property "float"

Original issue reported on code.google.com by [email protected] on 15 Mar 2008 at 8:46

movie leak with Arctic.makeTooltip

Using of the Arctic.makeTooltip leads to movie leak. 

The problem arises after line 1962 :

         cursor = block;

The solution:

the lines 
// Since cursors are constructed lazily, we have to search for our child 
// because other Cursors might have gone before us changing the child numbering
for (i in 0...parent.numChildren) {
    var c : Dynamic = parent.getChildAt(i);
    if (c == cursorMc.clip) {
        build(cursor, parent, 0, 0, mode, i);
        break;
    }
}

have to be changed to 

// Since cursors are constructed lazily, we have to search for our child 
// because other Cursors might have gone before us changing the child numbering
for (i in 0...parent.numChildren) {
    var c : Dynamic = parent.getChildAt(i);
    if (c == cursorMc.clip) {
        switch (cursor) {
            case Offset(dx, dy, block) :
                build(block, parent, 0, 0, mode, i);
            default:
                break;
        }                           
        break;
    }
}

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

haxe 2.0

I use your library arctic and I find it great. However, as far as I know,
there is no haxe 2.0 compatible version, it's a shame. Are you planning to
update to it?

Original issue reported on code.google.com by [email protected] on 16 Sep 2008 at 11:29

cant get text from TextInput without change event

when using text input, the prescribed way to get the text is via the
validator function. however, that is only called onChange. 

since TextInput.text is not available, you can trigger the event as soon as
possible. e.g. in flash9, immediately after addEventListener.

txtInput.dispatchEvent(new flash.events.Event(flash.events.Event.CHANGE));



would it be possible to allow direct access to the txtInput.text ?

Original issue reported on code.google.com by bpederse on 29 Nov 2007 at 10:18

ArcticBlock.Grid, Border is Float

What steps will reproduce the problem?
1. Try to draw a light color on the border using ArcticBlock.Grid's border
argument
2. It always turns out black.
3. When I change the border argument to UInt instead of Float it seems to work.

What is the expected output? What do you see instead?
Expected a light color, got black instead.

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

Please provide any additional information below.
flash10 player

Original issue reported on code.google.com by [email protected] on 15 May 2010 at 4:08

ArcticView: In Flash9, null can't be used as basic type UInt

What steps will reproduce the problem?
1. Make a simple .hx file with import arctic.ArcticView
2.
3.

What is the expected output? What do you see instead?
I see the error "In Flash9, null can't be used as basic type UInt"

What version of the product are you using? On what operating system?
arctic 1.1.1, haxe 2.07

Please provide any additional information below.
To fix, in ArcticView add a cast() in line 1503...
g.lineStyle(borderSize, cast(borderColor,UInt), 1.0);


Original issue reported on code.google.com by [email protected] on 31 Jul 2011 at 8:41

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.