New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Flash bitmap rendering problem in FireFox


Post Reply New Thread Subscribe

 
Thread Tools
VictorObretin

 
Member Since: Jan 16, 2012
Posts: 1
VictorObretin is on a distinguished road

VictorObretin is offline
Hello,

I've been working on a flash web application and ran into some problems with the Flash Player for Mac running in FireFox. Was wondering if anyone might help me with some suggestions on how to solve it.

So I have a Sprite object in which I have 10 to 20 MovieClip children. Each child has other 2 to 6 MovieClip children and each child has set blending options (NORMAL, MULTIPLY or LIGHTEN), alpha (most of them are 1) and cacheAsBitmap = true.

Then from this container I create a bitmap which I add to the stage. The result has some rendering bugs as you can see in the image



This is the function I use to create the bitmap

Code:
private function getBitmap(scale:Number = 0.2):Bitmap
{
	var image:Bitmap;
	var scaleMatrix:Matrix = new Matrix();
	var transformMatrix:Matrix = new Matrix();
	
	var _bounds:Rectangle = this.getBounds(this);
	var bitmapData:BitmapData = new BitmapData(_bounds.width, _bounds.height, true, 0x00000000);
	
	transformMatrix.translate( -_bounds.x, -_bounds.y);
	
	scaleMatrix.scale(scale, scale);
	
	transformMatrix.concat(scaleMatrix);
	
	bitmapData.draw(this, transformMatrix, null, null, null, true);
	
	image = new Bitmap(bitmapData);
	image.pixelSnapping = PixelSnapping.NEVER;
	image.smoothing = true;
	
	image.x = _bounds.x * scale;
	image.y = _bounds.y * scale;
	
	return image;
}
I must mention that this happens only on Mac computers if ran in the latest FireFox and if the Flash Player was updated (older versions render it correctly).

Any suggestions will be gratefully appreciated.
Thanks
Attached Images
File Type: png PastedGraphic-1.png (41.8 KB, 18 views)
QUOTE Thanks
Groovetube

 
Groovetube's Avatar
 
Member Since: Nov 15, 2011
Location: Toronto
Posts: 290
Groovetube has a spectacular aura about
Mac Specs: Retina MBP 2.7 768ssd/16gig ram /30" dell 3008. and bunch of other mac/apple stuff

Groovetube is offline
That's bizarre. I use the bitmap class for many projects but haven't seen this behaviour in firefox.

edit: just noticed in this: new BitmapData(_bounds.width, _bounds.height, true, 0x00000000);

the hex value has more 0s than I generally enter. Probably nothing (or something I don't know heh) but I just put: 0x000000
QUOTE Thanks

Post Reply New Thread Subscribe


« Newbie here seeking nav bar help | Problem with Iweb and saving multiple sites »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Some On-line video not playing - A Flash problem? obleyo OS X - Operating System 19 08-16-2011 01:50 PM
Firefox and FlashPlayer Problem megamogs Switcher Hangout 4 03-19-2011 06:53 AM
Flash Player Problem Strange bigg512 OS X - Operating System 2 11-17-2008 08:11 PM
Firefox Problem beastykato Switcher Hangout 7 04-03-2008 11:55 AM
Problem with USB 128mb Flash Drive.... Bright_Eyes Other Hardware and Peripherals 2 10-27-2004 04:07 PM

All times are GMT -4. The time now is 08:45 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?