[Flashcoders] autosize and dropshadow

2008-12-15 Thread Hans Wichman
Hi list,

when creating a dynamic textfield with a dropshadow, autosize stops working
correctly.
Unfortunately only for some textfields so it's not easily reproduced.

I found someone with the same problem (
http://www.gotoandlearnforum.com/viewtopic.php?f=28t=15359 ) and applying
the filter after the text works, but I was wondering if someone knows what
causes this, and if there is another fix (which saves me from reapplying the
filter every time).

regards,
JC
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] LoaderInfo extremely annoying bug!!

2008-12-15 Thread Taka Kojima
private function loadImage(imageID:String):void{
var gallery:XML = XML(_xml.gallery.(@id == currentGallery));
var image:XML = XML(gallery.image.(@imageID == imageID));

if(ima...@bordersize == undefined){ima...@bordersize = 0;}

Gallery.getInstance().imageInfo._title.text = ima...@title;
Gallery.getInstance().imageInfo._description.text =
ima...@description;

imageLoader = new Loader();
imageLoader.contentLoaderInfo.addEventListener(Event.INIT,
onImageLoad);

imageLoader.load(new URLRequest(galle...@folder + / +
ima...@src));

function onImageLoad(e:Event):void{
addEventListener(Event.ENTER_FRAME, positionImage);
}

function positionImage(e:Event):void{
//imageLoader.x = -(imageLoader.width/2);
//imageLoader.y = -(imageLoader.height/2);

mainImage.border.width = imageLoader.width;
mainImage.border.height = imageLoader.height;

var borderWidth:Number = imageLoader.width +
(Number(ima...@bordersize)*2);
var borderHeight:Number = imageLoader.height +
(Number(ima...@bordersize)*2);

//mainImage.border.width = borderWidth;
//mainImage.border.height = borderHeight;
//mainImage.border.x = -(borderWidth/2);
//mainImage.border.y = -(borderHeight/2);

var tweenX:Tween = new Tween(mainImage.border, x,
Regular.easeOut, mainImage.border.x, -(borderWidth/2), 1, true);
var tweenY:Tween = new Tween(mainImage.border, y,
Regular.easeOut, mainImage.border.y, -(borderHeight/2), 1, true);
var tweenWidth:Tween = new Tween(mainImage.border, width,
Regular.easeOut, mainImage.border.width, borderWidth, 1, true);
var tweenHeight:Tween = new Tween(mainImage.border,
height, Regular.easeOut, mainImage.border.height, borderHeight, 1, true);

//TweenLite.to(mainImage.border, 1, {x:-(borderWidth/2),
y:-(borderHeight/2), width: borderWidth, height: borderHeight,
ease:Circ.easeIn});
//mainImage.addChild(imageLoader);
}

currentImage = imageID;

}

Okay, so here is the problem...

Using the Loader class totally screws up tweening for the width and height
properties of anything... the width/height props are coming back fine from
the event, my border MC will even position itself right if i don't tween it,
but as soon as I try to tween it, it jumps to the end value right away
(doesn't matter what tween class I use, TweenLight, or even the built in
Tween class)...

If you manually set borderWidth and borderHeight before the event handler
and try to tween it that way, it works 100% okay...

I really can't figure this out, this is the weirdest friggin' bug I have
experienced in the last year.

Any pointers?

Thanks!

- Taka
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: LoaderInfo extremely annoying bug!!

2008-12-15 Thread Muzak

Tried using Event.COMPLETE instead of Event.INIT?

regards,
Muzak

- Original Message - 
From: Taka Kojima t...@gigafied.com

To: flashcoders@chattyfig.figleaf.com
Sent: Monday, December 15, 2008 12:51 PM
Subject: [Flashcoders] Re: LoaderInfo extremely annoying bug!!



Whoops... sorry, pasted old code, you might have been wondering what was up
with that ENTER_FRAME...

   private function loadImage(imageID:String):void{

var gallery:XML = XML(_xml.gallery.(@id == currentGallery));
var image:XML = XML(gallery.image.(@imageID == imageID));

if(ima...@bordersize == undefined){ima...@bordersize = 0;}

Gallery.getInstance().imageInfo._title.text = ima...@title;
Gallery.getInstance().imageInfo._description.text =
ima...@description;

imageLoader = new Loader();
imageLoader.contentLoaderInfo.addEventListener(Event.INIT,
onImageLoad);

imageLoader.load(new URLRequest(galle...@folder + / +
ima...@src));

function onImageLoad(e:Event):void{

//imageLoader.x = -(imageLoader.width/2);
//imageLoader.y = -(imageLoader.height/2);

mainImage.border.width = imageLoader.width;
mainImage.border.height = imageLoader.height;

var borderWidth:Number = imageLoader.width +
(Number(ima...@bordersize)*2);
var borderHeight:Number = imageLoader.height +
(Number(ima...@bordersize)*2);

//mainImage.border.width = borderWidth;
//mainImage.border.height = borderHeight;
//mainImage.border.x = -(borderWidth/2);
//mainImage.border.y = -(borderHeight/2);

var tweenX:Tween = new Tween(mainImage.border, x,
Regular.easeOut, mainImage.border.x, -(borderWidth/2), 1, true);
var tweenY:Tween = new Tween(mainImage.border, y,
Regular.easeOut, mainImage.border.y, -(borderHeight/2), 1, true);
var tweenWidth:Tween = new Tween(mainImage.border, width,
Regular.easeOut, mainImage.border.width, borderWidth, 1, true);
var tweenHeight:Tween = new Tween(mainImage.border,
height, Regular.easeOut, mainImage.border.height, borderHeight, 1, true);

//TweenLite.to(mainImage.border, 1, {x:-(borderWidth/2),
y:-(borderHeight/2), width: borderWidth, height: borderHeight,
ease:Circ.easeIn});
//mainImage.addChild(imageLoader);
}

currentImage = imageID;

}



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: LoaderInfo extremely annoying bug!!

2008-12-15 Thread Taka Kojima
Whoops... sorry, pasted old code, you might have been wondering what was up
with that ENTER_FRAME...

private function loadImage(imageID:String):void{
 var gallery:XML = XML(_xml.gallery.(@id == currentGallery));
 var image:XML = XML(gallery.image.(@imageID == imageID));

 if(ima...@bordersize == undefined){ima...@bordersize = 0;}

 Gallery.getInstance().imageInfo._title.text = ima...@title;
 Gallery.getInstance().imageInfo._description.text =
 ima...@description;

 imageLoader = new Loader();
 imageLoader.contentLoaderInfo.addEventListener(Event.INIT,
 onImageLoad);

 imageLoader.load(new URLRequest(galle...@folder + / +
 ima...@src));

 function onImageLoad(e:Event):void{

 //imageLoader.x = -(imageLoader.width/2);
 //imageLoader.y = -(imageLoader.height/2);

 mainImage.border.width = imageLoader.width;
 mainImage.border.height = imageLoader.height;

 var borderWidth:Number = imageLoader.width +
 (Number(ima...@bordersize)*2);
 var borderHeight:Number = imageLoader.height +
 (Number(ima...@bordersize)*2);

 //mainImage.border.width = borderWidth;
 //mainImage.border.height = borderHeight;
 //mainImage.border.x = -(borderWidth/2);
 //mainImage.border.y = -(borderHeight/2);

 var tweenX:Tween = new Tween(mainImage.border, x,
 Regular.easeOut, mainImage.border.x, -(borderWidth/2), 1, true);
 var tweenY:Tween = new Tween(mainImage.border, y,
 Regular.easeOut, mainImage.border.y, -(borderHeight/2), 1, true);
 var tweenWidth:Tween = new Tween(mainImage.border, width,
 Regular.easeOut, mainImage.border.width, borderWidth, 1, true);
 var tweenHeight:Tween = new Tween(mainImage.border,
 height, Regular.easeOut, mainImage.border.height, borderHeight, 1, true);

 //TweenLite.to(mainImage.border, 1, {x:-(borderWidth/2),
 y:-(borderHeight/2), width: borderWidth, height: borderHeight,
 ease:Circ.easeIn});
 //mainImage.addChild(imageLoader);
 }

 currentImage = imageID;

 }


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] inversedMask method stopping any parent masks?

2008-12-15 Thread whispers
 
Hi this is my first post, so I hope I'm doing this correctly..LOL
 
 
This is AS2, not AS3, so if anyone could suggest something to search for I'd
appreciate it.
 
I am trying to use this method here: (found on Adobes forms)

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15cat
id=288threadid=1410897CFID=13151180CFTOKEN=5df21005bb1feb31-2CD5FFB4-F67E
-56DC-E1E8B1280EE0B55Cjsessionid=4830966da44a4398c212f6359546a572e3e3
catid=288threadid=1410897CFID=13151180CFTOKEN=5df21005bb1feb31-2CD5FFB4-
F67E-56DC-E1E8B1280EE0B55Cjsessionid=4830966da44a4398c212f6359546a572e3e3

to create an inversed mask of the shape I have drawn (lineTo) inside a
movieClip..

my clip layout/nesting is as follows:

parent.parent clip (contentContainer)
|
---parent clip (faceContainer)
|
lineContainer (holds the shape/object I'm using for my
source of the inverse mask
maskContainer (empty clip to hold the dynamically created
clip from the inverse mask method above)
imageContainer (the place where the dynamically loaded image
gets loaded into, and is 'masked' by the inversedMask method)

now this all works fine.. except I want to add a mask to the parent clip
thats holding these 3 nested clips...(faceContainer).. or even to the parent
clip of that (contentContainer)..

but when I do so.. and then invoke the inversedMask() method from
above,...the whole imageContainer goes blank...

now since the only REAL masking is the maskContainer, masking the
imageContainer.. why cant I add a mask manually or through AS to the
faceContainer or the contentContainer clips?

I cant seem to figure it out...  something with this inversedMethod() I've
found and am using?..or just an illegal (I don't believe so) application of
masks in Flash?

any ideas or suggestion is helpful..

this 'IS' AS2 by the way... (just to re-iterate)

thanks for the eyes.  =)
 
 
-xl97
 
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: A funny little hover problem with CSS

2008-12-15 Thread David Hershberger
We had a similar issue triggered by scaling.  When we rescaled objects with
Advanced Anti-Aliasing text, they wouldn't recompute their size properly and
would truncate themselves with ... at the end at some scales but not at
others.  We ended up just turning it off.  It's true that it looks better,
but if it doesn't work, it doesn't work. :-/

Dave

On 12/14/08, Ashim D'Silva as...@therandomlines.com wrote:

 Right. I recreated everything slowly in a new file, introducing things one
 by one and here's the culprit - Advanced Anti-Aliasing.Now I really would
 like to use advanced, because text looks dramatically better, but there has
 to be a solution, doesn't there?

 2008/12/15 Ashim D'Silva as...@therandomlines.com


  Hi all,
  I'm having a really odd problem, that I haven't been able to find
 anything
  about. I have a multiline, word wrapped TextField that uses CSS (built as
  objects), with content coming from HTML in an XML file.
  It all works fine, but for some reason, when I hover over a link (whether
 I
  have CSS for hover or not) it moves a pixel or two. Sometimes only the
 first
  time, sometimes all the time.
  If I have a a:hover in the CSS it definitely moves every time.
 
  Has anyone encountered this, got a solution or have any idea why this
 would
  happen?
 
  Thanks,
 
  Ashim
 
  --
  The Random Lines
  My online portfolio
  www.therandomlines.com
 



 --
 The Random Lines
 My online portfolio
 www.therandomlines.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] A funny little hover problem with CSS

2008-12-15 Thread Matt S.
I seem to remember solving this problem once by changing where the
stylesheet gets set, but I cant remember the order. I would try a few
options, like:

txt.htmlText = xmlTXT;  
CreateStyleSheet();

or

CreateStyleSheet();
txt.htmlText = xmlTXT;  

or even ( I know it looks stupid)

CreateStyleSheet();
txt.htmlText = xmlTXT;  
CreateStyleSheet();

kinda kludgy, but if it works...

.m

On Sun, Dec 14, 2008 at 7:33 PM, Ashim D'Silva as...@therandomlines.com wrote:
 Hi all,
 I'm having a really odd problem, that I haven't been able to find anything
 about. I have a multiline, word wrapped TextField that uses CSS (built as
 objects), with content coming from HTML in an XML file.
 It all works fine, but for some reason, when I hover over a link (whether I
 have CSS for hover or not) it moves a pixel or two. Sometimes only the first
 time, sometimes all the time.
 If I have a a:hover in the CSS it definitely moves every time.

 Has anyone encountered this, got a solution or have any idea why this would
 happen?

 Thanks,

 Ashim

 --
 The Random Lines
 My online portfolio
 www.therandomlines.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] A funny little hover problem with CSS

2008-12-15 Thread Ashim D'Silva
Thanks guys,
Still having trouble though. I have scaled anything, and I tried all those
combinations of resetting the style sheet each time.
I'm pretty close to giving up and sticking with normal anti-aliasing.

Flash's support for HTML and CSS has always been a bit iffy though. It's
just useful for CMS control.

Cheers,

Ashim

2008/12/16 Matt S. mattsp...@gmail.com

 I seem to remember solving this problem once by changing where the
 stylesheet gets set, but I cant remember the order. I would try a few
 options, like:

 txt.htmlText = xmlTXT;
 CreateStyleSheet();

 or

 CreateStyleSheet();
 txt.htmlText = xmlTXT;

 or even ( I know it looks stupid)

 CreateStyleSheet();
 txt.htmlText = xmlTXT;
 CreateStyleSheet();

 kinda kludgy, but if it works...

 .m

 On Sun, Dec 14, 2008 at 7:33 PM, Ashim D'Silva as...@therandomlines.com
 wrote:
  Hi all,
  I'm having a really odd problem, that I haven't been able to find
 anything
  about. I have a multiline, word wrapped TextField that uses CSS (built as
  objects), with content coming from HTML in an XML file.
  It all works fine, but for some reason, when I hover over a link (whether
 I
  have CSS for hover or not) it moves a pixel or two. Sometimes only the
 first
  time, sometimes all the time.
  If I have a a:hover in the CSS it definitely moves every time.
 
  Has anyone encountered this, got a solution or have any idea why this
 would
  happen?
 
  Thanks,
 
  Ashim
 
  --
  The Random Lines
  My online portfolio
  www.therandomlines.com
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
The Random Lines
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders