[Flashcoders] ForceSmoothing a movie clip in ActionScript 2

2010-05-29 Thread Amol
Hi all,
 
   
 Is there any script for ForceSmoothing  a movie clip  in ActionScript 2
 I am using given below script for smothing a movie clip but it is not 
working properly

import flash.display.BitmapData; 
function smooth(bt_mc:MovieClip)
{
var bitmap:BitmapData = new BitmapData(bt_mc._width, bt_mc._height, true, 
0x00);
bt_mc.attachBitmap(bitmap, 80, auto, true);
bitmap.draw(bt_mc);
}
smooth(bt_mc);

bt_mc.forceSmoothing = true;




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


Re: [Flashcoders] GPU, Direct or Normal?

2010-05-29 Thread tom rhodes
Please do not blindly enable either new mode (gpu or direct) in your
content. Creating a GPU based context in the browser is very expensive and
will drain memory and CPU resources to the point where the browser will
become unresponsive. It is usually best practice to limit yourself to one
SWF per HTML page using these modes. The target should be content taking
over most of the page and doing full frame changes like video. Never ever,
ever enable this for banners. Plain Flex applications should not use these
modes either if they are not doing full screen refreshes.


On 29 May 2010 03:23, Kevin Newman capta...@unfocus.com wrote:

 Is that information still current? I was under the impression that much of
 that was dropped from release players (can the Flash Player make a
 Direct3D/OpenGL surface from within a browser plugin?).

 The post also says that content should be specifically designed for GPU if
 you set wmode to GPU, but doesn't really say very much more, which is the
 important part. Exactly what considerations should we take when designing
 for GPU compositing?

 Kevin N.



 On 5/28/10 5:23 AM, tom rhodes wrote:

 http://www.kaourantin.net/2008/05/what-does-gpu-acceleration-mean.html

 http://www.kaourantin.net/2008/05/what-does-gpu-acceleration-mean.html
 google
 has a lot more too.


 On 28 May 2010 07:35, Fahim Akhterakhter.fa...@gmail.com  wrote:



 That makes two of us brother.

 Fahim Akhter
 Game Developer | White Rabbit Studios |
 http://apps.facebook.com/feline-frenzy/


 On Thu, May 27, 2010 at 9:33 PM, Kevin Newmancapta...@unfocus.com
 wrote:



 I'd like a lot more info on this subject as well - general info - when
 is
 which mode better, what happens if the GPU isn't supported on the


 particular


 hardware, how can I take better advantage of GPU, etc.

 Kevin N.




 On 5/24/10 8:28 AM, Fahim Akhter wrote:



 Hi,

 In a event driven game with lots of graphics (static essentially )
 which
 mode would you suggest ? Direct/GPU or normal?

 Fahim Akhter
 Game Developer | White Rabbit Studios |
 http://apps.facebook.com/feline-frenzy/
 ___
 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



 ___
 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



 ___
 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] File Downloads

2010-05-29 Thread Henrik Andersson

Karl DeSaulniers wrote:

Limited edition releases.



Because people obviously can't copy files once they are downloaded.

There is no reason to not allow someone who has been granted a copy to 
get another copy. Unless they do something naughty like violating 
copyright laws.

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


Re: [Flashcoders] GPU, Direct or Normal?

2010-05-29 Thread Fahim Akhter
I think turning on GPU specially for something that would go to a million
users would be a bad idea. If its something specific, a video player or say
a game with hardcore followers then its a good idea.

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/


On Sat, May 29, 2010 at 2:27 PM, tom rhodes tom.rho...@gmail.com wrote:

 Please do not blindly enable either new mode (gpu or direct) in your
 content. Creating a GPU based context in the browser is very expensive and
 will drain memory and CPU resources to the point where the browser will
 become unresponsive. It is usually best practice to limit yourself to one
 SWF per HTML page using these modes. The target should be content taking
 over most of the page and doing full frame changes like video. Never ever,
 ever enable this for banners. Plain Flex applications should not use these
 modes either if they are not doing full screen refreshes.


 On 29 May 2010 03:23, Kevin Newman capta...@unfocus.com wrote:

  Is that information still current? I was under the impression that much
 of
  that was dropped from release players (can the Flash Player make a
  Direct3D/OpenGL surface from within a browser plugin?).
 
  The post also says that content should be specifically designed for GPU
 if
  you set wmode to GPU, but doesn't really say very much more, which is the
  important part. Exactly what considerations should we take when designing
  for GPU compositing?
 
  Kevin N.
 
 
 
  On 5/28/10 5:23 AM, tom rhodes wrote:
 
  http://www.kaourantin.net/2008/05/what-does-gpu-acceleration-mean.html
 
  http://www.kaourantin.net/2008/05/what-does-gpu-acceleration-mean.html
  google
  has a lot more too.
 
 
  On 28 May 2010 07:35, Fahim Akhterakhter.fa...@gmail.com  wrote:
 
 
 
  That makes two of us brother.
 
  Fahim Akhter
  Game Developer | White Rabbit Studios |
  http://apps.facebook.com/feline-frenzy/
 
 
  On Thu, May 27, 2010 at 9:33 PM, Kevin Newmancapta...@unfocus.com
  wrote:
 
 
 
  I'd like a lot more info on this subject as well - general info - when
  is
  which mode better, what happens if the GPU isn't supported on the
 
 
  particular
 
 
  hardware, how can I take better advantage of GPU, etc.
 
  Kevin N.
 
 
 
 
  On 5/24/10 8:28 AM, Fahim Akhter wrote:
 
 
 
  Hi,
 
  In a event driven game with lots of graphics (static essentially )
  which
  mode would you suggest ? Direct/GPU or normal?
 
  Fahim Akhter
  Game Developer | White Rabbit Studios |
  http://apps.facebook.com/feline-frenzy/
  ___
  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
 
 
 
  ___
  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
 
 
 
  ___
  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

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


Re: [Flashcoders] Font embedding with Regular Bold versions

2010-05-29 Thread dopeco...@hotmail.com
Thanks mate, but kind of defeats the purpose of choosing a different 
font than a system standard, need the embedding for correct display. 
Problem did rear it's ugle head again in another section, despit auto 
kerning turned off ... working around it for now, it is a wierd one.


Cor wrote:

It's very simpel. :-)
Select the dynamic textfield, click Character Embedding and click don't
embed.
In AS if you like, set testField.embedFonts = false;


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
dopeco...@hotmail.com
Sent: vrijdag 28 mei 2010 2:55
To: Flash Coders List
Subject: [Flashcoders] Font embedding with Regular  Bold versions

Hi all,

I have searched far and wide for the solution on this one, but to no
avail. The old chestnut of font issue rears it's head again (reminds me
of good old Flash 4 days), the basic scenario is this, and a link to a
sample file is below:

Two textfields on stage, the first, a static text field using a regular
weighting of a font, for example Arial Regular. The second, a dynamic
text field, using a bold weighting of the same font, e.g. Arial Bold.
The dynamic field has its character embedding set appropriately, but
here is the kicker. If I manually type something into this field and
publish, all is well in font land .. however if I set it's .text
property in AS, the bold text field will not render while the static
field is using the regular version of the font.

To add more fun and games, if I set the static field to the italic or
anything else version of the same font, the dynamic bold field shows
fine ... this happens on multiple fonts, the test file below uses Arial
in an attempt to have something most people will have on their system.

Any ideas at all? .. Even embedding the entire bold font as a library
item doesn't work (and is not practical for what it is for), so any help
would be most appreciated.

Sample file:

http://singlenotion.com/tmp/fontTest.zip

Cheers
Adam
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.819 / Virusdatabase: 271.1.1/2892 - datum van uitgifte: 05/23/10
20:26:00

___
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


[Flashcoders] Time To Notify Adobe Of a Bug? Please Comment...

2010-05-29 Thread John Singleton
Hi;
I sent the following email to this list a couple days ago and nobody commented, 
which makes me think that nobody saw a problem/solution, which makes me think 
that Adobe's latest Flash CS5 has a bug. So, please consider reviewing the 
below and, if necessary, informing me how to inform Adobe of their failure.
TIA,
John

Ok, I've nailed down where the problem is as to why my silly little *.as file 
that worked so well before won't work with minor changes in my 
latest *.as file. The problem appears to be that Flash freaks out over 
different image files! Here's the code, simplified:

package 
{
import flash.display.Sprite;
import 
flash.text.TextLineMetrics;
import flash.text.TextField;

import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.text.TextFieldAutoSize;
import flash.net.navigateToURL;
import 
flash.display.Bitmap;
import flash.events.Event;
import 
flash.events.MouseEvent;
import flash.display.MovieClip;

import com.greensock.*;
import com.greensock.easing.*;

import flash.display.Loader;
import flash.events.ProgressEvent;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
import flash.net.URLRequest;

[SWF(backgroundColor=0x565656)]

public class 
DeJonghPreloader extends MovieClip
{
var loader:Loader = new Loader();
private var myTextField:TextField = new 
TextField();
var imgFlag1:Boolean = new Boolean(false);

public function DeJonghPreloader()
{

addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}

private function init(e:Event)
{
var clientName:TextField = new TextField();

var format:TextFormat = new TextFormat();
format.font = 
'Arial';
format.size = 35;

clientName.textColor = 0x023048;
clientName.text = 'Delta Electric';
clientName.autoSize = TextFieldAutoSize.LEFT;
clientName.setTextFormat(format);
var 
nameSprite:Sprite = new Sprite();
nameSprite.x = 
stage.stageWidth/2 - 70;
nameSprite.y = 
stage.stageHeight/2 - 40;
nameSprite.alpha = 0;
TweenLite.to(nameSprite, 2, {alpha:1});
addChild(nameSprite);

nameSprite.addChild(clientName);

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
loader.load(new URLRequest(images/charles.jpg));
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, 
loop);
removeEventListener(Event.ADDED_TO_STAGE, init);
addChild(myTextField);
myTextField.width = 
250;
myTextField.x = stage.stageWidth/2;

myTextField.y = stage.stageHeight/2;

myTextField.selectable = false;
myTextField.border = 
false;
myTextField.borderColor = 0xAA;
myTextField.autoSize = TextFieldAutoSize.LEFT;
var 
myFormat:TextFormat = new TextFormat();
myFormat.color = 
0x023048;
myFormat.size = 24;

myFormat.italic = true;
myTextField.defaultTextFormat = 
myFormat;
}

private function 
imageLoaded(event:Event):void
{
imgFlag1 = 
true;
completePreloader();
}

function completePreloader()
{
var 
req:URLRequest = new URLRequest('index.py');
navigateToURL(req, '_self');
}


function loop(e:ProgressEvent):void
{
var 
perc:Number = e.bytesLoaded/e.bytesTotal;

myTextField.text = Math.ceil(perc*100).toString() + %;
}
}
}

Now, that code works just fine. However, if I change 
the image from charles.jpg to left1.png it doesn't work. What 
breaks? Who knows? If I put a trace in completePreloader(), it traces, 
so one would thing that the URLRequest works, right? Wrong. The page is 
never sought, witnessed by the fact that, if charles.jpg is in, an 
error is traced on my Mac when trying to find the relative address, but 
if left1.png is in, no error. Now, it doesn't matter if it's a png or a jpg, 
because the original file that works has a couple pngs as well. 
I've gone so far as to copy and rename the working files in the same 
directory as the originals, prove they work, copy over my images and 
change them and watch this code break. So it _is_ the images that are 
causing the problem. But why, o why???
John


  

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


Re: [Flashcoders] Time To Notify Adobe Of a Bug? Please Comment...

2010-05-29 Thread Paul Andrews

On 29/05/2010 14:30, John Singleton wrote:

Hi;
I sent the following email to this list a couple days ago and nobody commented, 
which makes me think that nobody saw a problem/solution, which makes me think 
that Adobe's latest Flash CS5 has a bug. So, please consider reviewing the 
below and, if necessary, informing me how to inform Adobe of their failure.
TIA,
John

Ok, I've nailed down where the problem is as to why my silly little *.as file 
that worked so well before won't work with minor changes in my
latest *.as file. The problem appears to be that Flash freaks out over
different image files! Here's the code, simplified:
   


If you are going to provide a simplified example, you can simplify it 
a LOT more than you have done.

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


RE: [Flashcoders] Font embedding with Regular Bold versions

2010-05-29 Thread Cor
You could try adding your fonts in the library:
Right click in library, add New Font, set your settings and load it like a
normal Class

HTH
cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
dopeco...@hotmail.com
Sent: zaterdag 29 mei 2010 15:25
To: Flash Coders List
Subject: Re: [Flashcoders] Font embedding with Regular  Bold versions

Thanks mate, but kind of defeats the purpose of choosing a different 
font than a system standard, need the embedding for correct display. 
Problem did rear it's ugle head again in another section, despit auto 
kerning turned off ... working around it for now, it is a wierd one.

Cor wrote:
 It's very simpel. :-)
 Select the dynamic textfield, click Character Embedding and click don't
 embed.
 In AS if you like, set testField.embedFonts = false;


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
 dopeco...@hotmail.com
 Sent: vrijdag 28 mei 2010 2:55
 To: Flash Coders List
 Subject: [Flashcoders] Font embedding with Regular  Bold versions

 Hi all,

 I have searched far and wide for the solution on this one, but to no
 avail. The old chestnut of font issue rears it's head again (reminds me
 of good old Flash 4 days), the basic scenario is this, and a link to a
 sample file is below:

 Two textfields on stage, the first, a static text field using a regular
 weighting of a font, for example Arial Regular. The second, a dynamic
 text field, using a bold weighting of the same font, e.g. Arial Bold.
 The dynamic field has its character embedding set appropriately, but
 here is the kicker. If I manually type something into this field and
 publish, all is well in font land .. however if I set it's .text
 property in AS, the bold text field will not render while the static
 field is using the regular version of the font.

 To add more fun and games, if I set the static field to the italic or
 anything else version of the same font, the dynamic bold field shows
 fine ... this happens on multiple fonts, the test file below uses Arial
 in an attempt to have something most people will have on their system.

 Any ideas at all? .. Even embedding the entire bold font as a library
 item doesn't work (and is not practical for what it is for), so any help
 would be most appreciated.

 Sample file:

 http://singlenotion.com/tmp/fontTest.zip

 Cheers
 Adam
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 Geen virus gevonden in het binnenkomende-bericht.
 Gecontroleerd door AVG - www.avg.com
 Versie: 9.0.819 / Virusdatabase: 271.1.1/2892 - datum van uitgifte:
05/23/10
 20:26:00

 ___
 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
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.819 / Virusdatabase: 271.1.1/2900 - datum van uitgifte: 05/27/10
20:30:00

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


Re: [Flashcoders] Time To Notify Adobe Of a Bug? Please Comment...

2010-05-29 Thread Eric E. Dolecki
Like Paul said, I'm not going to read all that code - but do you have
different file permissions on the files? Are your PNGs encoded in an odd
way? Are they corrupt? Etc.

On Sat, May 29, 2010 at 9:41 AM, Paul Andrews p...@ipauland.com wrote:

 On 29/05/2010 14:30, John Singleton wrote:

 Hi;
 I sent the following email to this list a couple days ago and nobody
 commented, which makes me think that nobody saw a problem/solution, which
 makes me think that Adobe's latest Flash CS5 has a bug. So, please consider
 reviewing the below and, if necessary, informing me how to inform Adobe of
 their failure.
 TIA,
 John

 Ok, I've nailed down where the problem is as to why my silly little *.as
 file that worked so well before won't work with minor changes in my
 latest *.as file. The problem appears to be that Flash freaks out over
 different image files! Here's the code, simplified:



 If you are going to provide a simplified example, you can simplify it a
 LOT more than you have done.

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Regain stage focus

2010-05-29 Thread Karina Steffens

Hi List,

I'm working on a flash dropdown menu for an html site (AS3 FP10). After a
wasted Friday and Saturday morning I finally figured out how to get the
menus appear above html items in Firefox without obscuring mouse input on
items below them (in case anyone's interested, using ExternalIntertface to
change the height of the menu bar Object with JavaScript seems to be the
only way).

(And yes, it would have been better to use a CSS menu, or even dhtml for the
animation, but my client insisted on Flash).

But now I'm having another Firefox related issue - sometimes interacting
with other page elements, or even scrolling the page, seems to lose the
focus on the Flash object, and the rollovers stop working until the swf
receives a click. It only seems to happen in Firefox, so far - IE8 behaves
as expected, and I've yet to test on other browsers (oh joy...).

So the question is, what's the best way to regain stage focus without
clicking on it? Is it even possible?

Thanks,
Karina


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


Re: [Flashcoders] File Downloads

2010-05-29 Thread Dave Watts
 Limited edition releases.

If it can be represented by a sequence of zeroes and ones, I submit to
you that it's not a limited edition. That only really makes sense
for physical objects.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] File Downloads

2010-05-29 Thread Dave Watts
 Yes the users will have gone through a registration and login to get to the
 downloads.
 The files will be served from MySQL and output to HTML of Flash.
 This is for a small project of limited edition audio or pictures or scripts,
 etc.
 Hens, I'd like to limit each user in the allotted 150 to be able to
 download (whatever it is) only once.
 But up to 150 users can get in on it kind of thing.

I think you'd be better off simply allowing the logged-in users access
to the download for a fairly short period of time - a week, or maybe
just a couple of days. Downloads can fail, after all.

This is the approach that some epublishers use. For example, I buy a
decent number of books from Manning. When I buy them, or later when
they've been updated, I get an email with a link good for a week.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ForceSmoothing a movie clip in ActionScript 2

2010-05-29 Thread Hans Wichman
Hi,

You might wanna try it without a recursive loop. bitmap is now attached to
bt_mc, and then you are drawing bt_mc into bitmap...
In addition although it's as2, it's only player 9 and up.

On Sat, May 29, 2010 at 8:55 AM, Amol a...@yonearth.com wrote:

 Hi all,


 Is there any script for ForceSmoothing  a movie clip  in
 ActionScript 2
 I am using given below script for smothing a movie clip but it is
 not working properly

 import flash.display.BitmapData;
 function smooth(bt_mc:MovieClip)
 {
 var bitmap:BitmapData = new BitmapData(bt_mc._width, bt_mc._height, true,
 0x00);
 bt_mc.attachBitmap(bitmap, 80, auto, true);
 bitmap.draw(bt_mc);
 }
 smooth(bt_mc);

 bt_mc.forceSmoothing = true;




 Regards
 amol
 ___
 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] ticker

2010-05-29 Thread Hans Wichman
Not sure what your ticker looks like, but a very simply solution I sometimes
use is to place 2 copies of the complete ticker with all elements in a row,
and then I simply update those two while modding the x positions of the
ticker, instead of modding x's of every item in the ticker separately. Might
be completely different from what you are doing, but it reduces the wrapping
code for the items in a ticker to about 1 line ;).


On Fri, May 28, 2010 at 11:07 PM, John R. Sweeney Jr jr.swee...@comcast.net
 wrote:

 Like breadcrumbs. :)


 on 5/28/10 10:14 AM, Glen Pike at g...@engineeredarts.co.uk wrote:

  If you then get stuck trying to do stuff, we help a
  bit more ;)


 John R. Sweeney Jr.
 Interactive Multimedia Developer


 OnDemand Interactive Inc
 945 Washington Blvd.
 Hoffman Estates, IL 60169
 Office/Fax: 847.310.5959
 Cellular: 847.651.4469
 www.ondemandinteractive.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] Regain stage focus

2010-05-29 Thread Kerry Thompson
Karina Steffens  wrote:

 So the question is, what's the best way to regain stage focus without
 clicking on it? Is it even possible?

AFAIK, no, it's not possible. It's a security issue--less scrupulous
people could wreak havoc by forcing focus on a .swf. Anyway, it rais
too much in Dublin ;-)

Cordially,

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


Re: [Flashcoders] AS2 ComboBox only showing 2 rows when embedded in Adobe Connect

2010-05-29 Thread Hans Wichman
Hi Andrew,

this is a wild guess, but I once had a similar issue, though it's long ago
and can't quite remember. The thing was that there was a difference in the
ComboBox implementation between Flash MX2004 and Flash 8 I think, although
it wasn't documented.

You would first have to pinpoint of course if that is indeed the issue. It
might also be the issue that some v2 components need to be present in the
parent swf in order to be used succesfully in child swf's.

If the class difference is the problem, you could try copy and pasting your
flash versions combobox.as (with which your application does work) into a
combobox class of your own, extending the old one for polymorphism and
overriding everything, and then set yourCombo.__proto__ to
YourComboBoxClass.prototype. Just a hack to see if that is where the problem
lies :).

regards,
JC




On Fri, May 28, 2010 at 3:36 PM, Andrew Sinning and...@learningware.comwrote:

 We've built an AS2 application that can be embedded into various LMSs, etc.

 Curiously, when embedded in Adobe Connect (also written in AS2), the
 ComboBoxes aren't rendered correctly.  Rather than dropping down, the menus
 are displaying above the widget, even though there is plenty of room below.
  Even worse, only the first two rows are displayed, so to select any other
 rows you have to use the arrow keys.

 My guess is that the ComboBox is trying to determine how much room it has
 to render its menus, and that this is going awry.

 _lockRoot is set to true

 I think this might be handled by the PopUpManager, perhaps by its setSize
 function, but I can't figure out where this is defined.  It's simply listed
 as a property:
 var setSize:Function;


 Any ideas?  Thanks!
 ___
 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


[Flashcoders] Dylan responds to e-mails at 12pm and 4pm. (Auto-Response)

2010-05-29 Thread dylan
Hello Friends and Colleagues, 

In order to continuously focus my attention on the large projects I am working 
on,  I am currently checking and responding to e-mail twice daily, at 12pm PST 
and 4pm PST. 

If you require immediate assistance (please ensure it is urgent and it cannot 
wait until either 12pm or 4pm) please contact me via phone at 323-963-3307.

Thank you for understanding this move to a more productive work flow.

Dylan Fergus

o 323 963 3307

dy...@ontheriverent.com

www.ontheriverent.com

www.flooredandlifted.com

www.dylanfergus.com

This message and any attached documents contain information that may be 
confidential and/or privileged. If you are not the intended recipient, you may 
not read, copy, distribute, or use this information. If you have received this 
transmission in error, please notify the sender immediately by reply e-mail and 
then delete this message.

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


RE: [Flashcoders] Regain stage focus

2010-05-29 Thread Karina Steffens
You mean rains, right? :P 

So, there's no way to regain (or at least to rain...) focus without clicking
at all? Not even by using a mouseover event or a timer inside flash?

And more rain on my parade: After uploading the flash movie to the server,
some of the links in the dropdown menu have stopped working - clicking on
the doesn't do anything, while others seem to be ok. And it's arbitrary per
click... And this appears to be cross browser, while locally it's fine. Any
ideas what I should be looking for here?

Karina


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
 Sent: 29 May 2010 6:29
 To: Flash Coders List
 Subject: Re: [Flashcoders] Regain stage focus
 
 Karina Steffens  wrote:
 
  So the question is, what's the best way to regain stage focus without
  clicking on it? Is it even possible?
 
 AFAIK, no, it's not possible. It's a security issue--less scrupulous
 people could wreak havoc by forcing focus on a .swf. Anyway, it rais
 too much in Dublin ;-)
 
 Cordially,
 
 Kerry Thompson
 ___
 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] Regain stage focus

2010-05-29 Thread Kerry Thompson
Karina Steffens wrote:

 You mean rains, right? :P

Darn! My e-mail program drops keystrokes. Don't know why--I'm using
the GMail Web interface. I just type too fast.


 So, there's no way to regain (or at least to rain...) focus without clicking
 at all? Not even by using a mouseover event or a timer inside flash?

No, not as far as I know. You can set the focus on an input field, of
course, but that won't take effect until the user gives your .swf
focus. You understand the security issues, so I won't belabor them.

I've run into the same problem. I'm writing a math game where the
user's response time is important. If they have to click on the
browser window before typing the answer, that skews the results. We
got around it by having the user log in, so the browser window should
have focus when the problem is presented. If the user switches to
another program--say, during the intoduction--we have no way of
getting focus back until the user clicks on the browser. I'm working
with a couple of the best in the business--Mark Jonkman and Raman
Pfaf--and they both tell me the same.

 And more rain on my parade: After uploading the flash movie to the server,
 some of the links in the dropdown menu have stopped working - clicking on
 the doesn't do anything, while others seem to be ok. And it's arbitrary per
 click... And this appears to be cross browser, while locally it's fine. Any
 ideas what I should be looking for here?

Not much. I assume you've checked the usual culprits--the URL is
formed correctly, your .swf isn't busy in a loop, no security issues
involved, etc. I'd use the debug Flash player and FlashDevelop to
trace out what happens when the button is clicked.

Cordially,

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


Re: [Flashcoders] ForceSmoothing a movie clip in ActionScript 2

2010-05-29 Thread Karl DeSaulniers

Hi
I have used martijndevisser ImageLoader.as and it has smoothing and  
it works with FP 7  8.


Google martijndevisser ImageLoader.as
I believe there is even a AS3 version now.

He has an interesting way about getting the image smoothed.
The originally loaded image by the end is removed and a bitmap is  
copied into a blank MC.
I have used it on a few of my projects and they date back to FP 7, I  
think even FP 6. Been a minute.

He doesn't use a directive forceSmooth, that may be FP 9.

HTH

Karl


On May 29, 2010, at 12:15 PM, Hans Wichman wrote:


Hi,

You might wanna try it without a recursive loop. bitmap is now  
attached to

bt_mc, and then you are drawing bt_mc into bitmap...
In addition although it's as2, it's only player 9 and up.

On Sat, May 29, 2010 at 8:55 AM, Amol a...@yonearth.com wrote:


Hi all,


Is there any script for ForceSmoothing  a movie clip  in
ActionScript 2
I am using given below script for smothing a movie clip  
but it is

not working properly

import flash.display.BitmapData;
function smooth(bt_mc:MovieClip)
{
var bitmap:BitmapData = new BitmapData(bt_mc._width,  
bt_mc._height, true,

0x00);
bt_mc.attachBitmap(bitmap, 80, auto, true);
bitmap.draw(bt_mc);
}
smooth(bt_mc);

bt_mc.forceSmoothing = true;




Regards
amol
___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


RE: [Flashcoders] Regain stage focus

2010-05-29 Thread Karina Steffens
This is getting weirder by the moment...

It's not even a question of regaining focus anymore, but why is it losing it
in the first place?

When first going to the page, the rollovers work fine with no need to
activate. 
Then if you click somewhere on the page (or even a different window) without
scrolling, it's still ok. 
But after scrolling the page (scrollbar or scroll wheel), the rollovers stop
responding until you click somewhere in the movie. 
More than that, in Safari (Windows) I can't even click anywhere anymore -
it becomes completely unresponsive.

HOWEVER - I found plenty of examples of flash movies embedded in html that
didn't do it, including some of my own.
 
I'm using SwfObject2 to embed the flash (in a CMS Made Simple Framework).
Could that have anything to do with it? 

The generated object looks like this:

object style=visibility: visible; data=uploads/theme/menu.swf
name=menu id=flash-menu type=application/x-shockwave-flash width=900
align=left height=35param value=true name=playparam value=true
name=loopparam value=false name=menuparam value=high
name=qualityparam value=showall name=scaleparam value=t
name=salignparam value=transparent name=wmodeparam value=#FF
name=bgcolorparam value=false name=devicefontparam value=true
name=seamlesstabbingparam value=false name=swliveconnectparam
value=false name=allowfullscreenparam value=sameDomain
name=allowscriptaccessparam value=all name=allownetworking/object
script type=text/javascript


Karina

PS: The links problem is solved. Using an attribute instead of an element in
the XML to store the url did it. 




 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
 Sent: 29 May 2010 7:06
 To: Flash Coders List
 Subject: Re: [Flashcoders] Regain stage focus
 
 Karina Steffens wrote:
 
  You mean rains, right? :P
 
 Darn! My e-mail program drops keystrokes. Don't know why--I'm using
 the GMail Web interface. I just type too fast.
 
 
  So, there's no way to regain (or at least to rain...) focus without
 clicking
  at all? Not even by using a mouseover event or a timer inside flash?
 
 No, not as far as I know. You can set the focus on an input field, of
 course, but that won't take effect until the user gives your .swf
 focus. You understand the security issues, so I won't belabor them.
 
 I've run into the same problem. I'm writing a math game where the
 user's response time is important. If they have to click on the
 browser window before typing the answer, that skews the results. We
 got around it by having the user log in, so the browser window should
 have focus when the problem is presented. If the user switches to
 another program--say, during the intoduction--we have no way of
 getting focus back until the user clicks on the browser. I'm working
 with a couple of the best in the business--Mark Jonkman and Raman
 Pfaf--and they both tell me the same.
 
  And more rain on my parade: After uploading the flash movie to the
 server,
  some of the links in the dropdown menu have stopped working -
 clicking on
  the doesn't do anything, while others seem to be ok. And it's
 arbitrary per
  click... And this appears to be cross browser, while locally it's
 fine. Any
  ideas what I should be looking for here?
 
 Not much. I assume you've checked the usual culprits--the URL is
 formed correctly, your .swf isn't busy in a loop, no security issues
 involved, etc. I'd use the debug Flash player and FlashDevelop to
 trace out what happens when the button is clicked.
 
 Cordially,
 
 Kerry Thompson
 ___
 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] AS2 ComboBox only showing 2 rows when embedded in Adobe Connect

2010-05-29 Thread Andrew Sinning

Thanks Hans.

So, the problem might be that the ComboBox class that in my movie is 
never getting loaded because a same-named version is already present in 
the parent (Adobe Connect).  I've seen this before.


Question:  If I have my own version of the ComboBox, say CB2 and it 
extends all the usual chain of classes, but those extended classes are 
already present in the parent, when CB2 gets loaded will it be extending 
the already loaded classes, or will it bring with it its own chain of 
classes?


Hans Wichman wrote:

Hi Andrew,

this is a wild guess, but I once had a similar issue, though it's long ago
and can't quite remember. The thing was that there was a difference in the
ComboBox implementation between Flash MX2004 and Flash 8 I think, although
it wasn't documented.

You would first have to pinpoint of course if that is indeed the issue. It
might also be the issue that some v2 components need to be present in the
parent swf in order to be used succesfully in child swf's.

If the class difference is the problem, you could try copy and pasting your
flash versions combobox.as (with which your application does work) into a
combobox class of your own, extending the old one for polymorphism and
overriding everything, and then set yourCombo.__proto__ to
YourComboBoxClass.prototype. Just a hack to see if that is where the problem
lies :).

regards,
JC




On Fri, May 28, 2010 at 3:36 PM, Andrew Sinning and...@learningware.comwrote:

  

We've built an AS2 application that can be embedded into various LMSs, etc.

Curiously, when embedded in Adobe Connect (also written in AS2), the
ComboBoxes aren't rendered correctly.  Rather than dropping down, the menus
are displaying above the widget, even though there is plenty of room below.
 Even worse, only the first two rows are displayed, so to select any other
rows you have to use the arrow keys.

My guess is that the ComboBox is trying to determine how much room it has
to render its menus, and that this is going awry.

_lockRoot is set to true

I think this might be handled by the PopUpManager, perhaps by its setSize
function, but I can't figure out where this is defined.  It's simply listed
as a property:
var setSize:Function;


Any ideas?  Thanks!
___
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

  


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