[Flashcoders] Eolas "fix" and backspace key flash bug

2006-06-13 Thread Alec Matusis
I have to embed flash applets into web pages directly, without Javascript
Eolas "workaround". The users therefore have to "click to activate" the
flash movie in IE. 
 
After that, the Flash movie properly receives the text input, EXCEPT for
Backspace and Tab keys. Pressing Backspace has an action of "Back" button in
the browser, it takes a user back one page. Pressing Tab moves the focus
into another object in the browser.  
 
So it looks like when the control is "activated" , the Flash receives only a
PARTIAL focus: it accepts all text input except Backspace and Tab. When you
click on Flash the second time, it receives full focus, and Backspace and
Tab function properly. 
 
Can anyone explain this behavior? Is this an IE bug? 

 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] bitmap.draw problem in flash 8

2006-05-04 Thread Alec Matusis
Actually I solved this problem myself.

Bitmap.draw(source) has an (undocumented) security restriction:  source
movieclip has to be loaded from exactly the same domain as the hosted movie
(including the subdomain).

Otherwise draw() just silently fails, WITHOUT producing a security warning.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alec Matusis
Sent: Thursday, May 04, 2006 4:29 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] bitmap.draw problem in flash 8 

 
I need to do the following:
 
1) load a jpg image into a movie clip A from a remote server (same as the
server where flash the movie resides)
2) create a bitmap 
3) attach this bitmap movie clip B
4) draw the jpg from movie clip A into the bitmap, so that it appears in
movie clip B
 
This works properly in the Flash composer, but stops working as soon as I
put the swf file on the server.
No security violation dialog appears, and it should not, since the image and
the movie are loaded from exactly the same domain. 
 
 
I use this code
 
 
downloadListener.onLoadInit = function(source:MovieClip){
 var bitmap = new flash.display.BitmapData(source._width,
source._height);
 _level0.mcB.attachBitmap(bitmap, _level0.mcB.getNextHighestDepth());
 bitmap.draw(source);
}
 
var imgLoader:MovieClipLoader = new MovieClipLoader();
imgLoader.addListener(downloadListener);
imgLoader.loadClip(image_url,_level0.mcA);
 
 
When I put the swf on the server, all pixels of mcB (the target) have color
value 16777215 , which is clearly an error, since this is 2^24 - 1, maximum
color value.
In the flash composer, the pixels have correct color values.
 
Any idea why this is happening?  

 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] bitmap.draw problem in flash 8

2006-05-04 Thread Alec Matusis
 
I need to do the following:
 
1) load a jpg image into a movie clip A from a remote server (same as the
server where flash the movie resides)
2) create a bitmap 
3) attach this bitmap movie clip B
4) draw the jpg from movie clip A into the bitmap, so that it appears in
movie clip B
 
This works properly in the Flash composer, but stops working as soon as I
put the swf file on the server.
No security violation dialog appears, and it should not, since the image and
the movie are loaded from exactly the same domain. 
 
 
I use this code
 
 
downloadListener.onLoadInit = function(source:MovieClip){
 var bitmap = new flash.display.BitmapData(source._width,
source._height);
 _level0.mcB.attachBitmap(bitmap, _level0.mcB.getNextHighestDepth());
 bitmap.draw(source);
}
 
var imgLoader:MovieClipLoader = new MovieClipLoader();
imgLoader.addListener(downloadListener);
imgLoader.loadClip(image_url,_level0.mcA);
 
 
When I put the swf on the server, all pixels of mcB (the target) have color
value 16777215 , which is clearly an error, since this is 2^24 - 1, maximum
color value.
In the flash composer, the pixels have correct color values.
 
Any idea why this is happening?  

 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com