tapsiking / minimalcomps

Automatically exported from code.google.com/p/minimalcomps
0 stars 0 forks source link

Errors with Flash CS5 #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make new Flash as3 project
2. set classpath and link swc
3. add code to timeline:
import com.bit101.components.*;
var myCheckBox:CheckBox = new CheckBox(this, 70, 80, "CheckBox");
var myColorChooser:ColorChooser = new ColorChooser(this, 50, 110, 0xff0000);

What is the expected output? What do you see instead?
Expect a CheckBox and ColorChooser instead only errors:
VerifyError: Error #1014: Class mx.core::FontAsset could not be found.
ReferenceError: Error #1065: Variable Component_Ronda is not defined.
ReferenceError: Error #1065: Variable Component_Ronda is not defined.
ReferenceError: Error #1065: Variable MainTimeline is not defined.

What version of the product are you using? On what operating system?
Flash cs5 on OSX 10.6.6

Please provide any additional information below.
files attached

Thanks!

Original issue reported on code.google.com by dgrisha...@gmail.com on 22 Mar 2011 at 3:01

Attachments:

GoogleCodeExporter commented 9 years ago
I'm having the exact same problem. This doesn't seem to work in CS5.

Original comment by zerominu...@gmail.com on 5 Apr 2011 at 10:10

GoogleCodeExporter commented 9 years ago
I'm experiencing the same issue in Flash CS4 on Mac OS X 10.6.6.

Original comment by stephen....@gmail.com on 7 Apr 2011 at 2:13

GoogleCodeExporter commented 9 years ago
you need to add the flex.swc to your library path. The flex.swc is distributed 
with CS5 and should be in the Flash configuration folder, like 
"Configuration\ActionScript 3.0\flex_sdk\4.0.0\frameworks\libs\"

Original comment by k...@bit-101.com on 7 Apr 2011 at 2:25

GoogleCodeExporter commented 9 years ago

Original comment by k...@bit-101.com on 7 Apr 2011 at 2:26

GoogleCodeExporter commented 9 years ago
Hey Keith,

Awesome, thanks for the quick response can't wait to start using 
MinimalConfigurator!

For anyone else reading this thread using Flash CS4 (on Mac?) the libaray path 
to the flex.swc is:

$(AppConfig)/ActionScript 3.0/libs/flex_sdk_3/frameworks/libs/

Original comment by stephen....@gmail.com on 7 Apr 2011 at 2:33

GoogleCodeExporter commented 9 years ago
Adding flex.swc didn't fix the issue for me. But adding framework.swc did.
Flash IDE > Publish > Profile > ActionScript settings > Library Path >
[ path-to-sdk ]/frameworks/libs/framework.swc

Original comment by bruno.im...@gmail.com on 30 Nov 2011 at 5:54

GoogleCodeExporter commented 9 years ago
Dear Keith,

 I would like to use your package to Using a MinimalComps’ Scrollbar as mentioned below. I'm using flash cs5.5 version. So I downloaded your package minimalcomps and I copied the folder assets and com folder within my project actionscript 3 flash folder. I downloaded as well the package flex_sdk_4.6.0.23201B last version on my desktop. I downloaded as well the following Component_Ronda class:

package com.bit101.components
{
    import mx.core.*;

    public class Component_Ronda extends FontAsset
    {

        public function Component_Ronda()
        {
            return;
        }// end function

    }
}

and I copy it within the folder components of your package I downloaded. 
Finally I've used publish setting to import framework.swc or flex.swc as you 
can see in figure 2 attached. When I run the project , as you can see in figure 
1 attached I get the following error message;

Impossible to find definition of basic class FontAsset!

 Than appear a message within a window that suggest to me to find the right path where is located the class FontAsset. I set the right path but it does not work.  I'm getting cracy but I'm still not able to sort out the matter. Please help me to find out the solution in order to run correctly my project.
Thanks in advance. Looking forward to hearing from you I attend here my best 
regards to you,

   Salvatore Mandarini

--------------------------------------------------------

import flash.display.Sprite;
import flash.geom.Rectangle;
import com.bit101.components.VScrollBar;
import flash.events.Event;

var sprite:Sprite = new Sprite();
sprite.graphics.beginFill(0xeeeeee);
sprite.graphics.drawRect(0, 0, 100, 500);
sprite.graphics.endFill();
sprite.graphics.lineStyle(0);
for(var i:int = 0; i < 100; i++)
{
    sprite.graphics.lineTo(Math.random() * 100, Math.random() * 500);
}
sprite.scrollRect = new Rectangle(0, 0, 100, 100);
addChild(sprite);

var scrollbar:VScrollBar = new VScrollBar(this, 100, 0, onScroll);
scrollbar.setThumbPercent(100 / sprite.height);
scrollbar.maximum = sprite.height - 100;
scrollbar.pageSize = 100;
scrollbar.lineSize = 1;

function onScroll(event:Event):void
{
    sprite.scrollRect = new Rectangle(0, scrollbar.value, 100, 100);
}

Original comment by sasa78...@gmail.com on 22 Jan 2012 at 8:57

Attachments:

GoogleCodeExporter commented 9 years ago
This post helped me in same problem:

http://www.thewhitewood.com/?p=550

Original comment by sat...@mail.ru on 18 Feb 2012 at 8:30