Re: [Flashcoders] If a URL starts with “http://” will clip always be loaded into REMOTE sandbox?

2010-06-06 Thread Pavel Repkin
Anthony, thank you!
How is it possible?


On 6 June 2010 19:50, Anthony Pace anthony.p...@utoronto.ca wrote:

 You can bypass this with javascript, and canvas.


 On 6/5/2010 1:58 PM, Henrik Andersson wrote:

 Pavel Repkin wrote:

 Seems to be a question for a Flash security guru.

 Suppose we are loading an external SWF movie with
 MovieClipLoader.loadMovie(url:String) Is it safe to assume that if url
 starts with http://;, the movie will be loaded in REMOTE sandbox?


 Yes

 ___
 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] If a URL starts with “http:// ” will clip always be loaded into REMOTE sandbo x?

2010-06-05 Thread Pavel Repkin
Seems to be a question for a Flash security guru.

Suppose we are loading an external SWF movie with
MovieClipLoader.loadMovie(url:String) Is it safe to assume that if url
starts with http://;, the movie will be loaded in REMOTE sandbox?

We need to tell local SWFs from remote ones to close a security hole.

If you need the context read on.

We have developed a Projector, written in C++ embedding Flash Player
ActiveX. Our Flash application runs inside the Projector. Soon we want to
give our users a way to create plugins for the application. The plugins are
obviously will be SWF movies.

The case I'm afraid of is the following. A bad person creates a malicious
evil.swf pretending it to be nice plugin for our app. In case evil.swf is
loaded from the local file system it is granted an access to the whole
MovieClip tree and Projector API, opening C++ file access operations.

On the other hand if evil.swf is loaded from the internet, remotely, it will
be locked in REMOTE sandbox by Flash security model.

Because of this, we need a reliable way to tell local SWF from remote one
before loading it. And we must not make a mistake.

So again, is it safe to assume that if url begins with http://;, the clip
will be loaded inside REMOTE sandbox?


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


[Flashcoders] Flash http request does not call back inside IE ActiveX occasionally.

2009-10-01 Thread Pavel Repkin
My Windows (C++) program hosts Flash ActiveX. I use XML.sendAndLoad() to
communicate to the server inside Flash part of the application. Occasionally
XML.sendAndLoad() does not call back. That makes the whole application
useless. Only restart helps.

I have found using HTTP Analyser, that the requests even do not go to the
internet. There is something that prevents the request way from Flash to
ActiveX to Internet Explorer to Internet.

I use AS 2.0

Please help! This problem is driving me mad.

It seems to be a very advanced question, I wonder if anyone has a clue :(
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Ads inside Flash application

2009-10-01 Thread Pavel Repkin
I want to publish ads inside Flash application.
Do you know any ad-network that allows publishing ads inside Flash apps?
There is a Mochi ads network, they do publish the ads inside Flash, but they
accept only games.
And my app is not a game.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] legal: Flash player ActiveX usage on Windows

2009-06-18 Thread Pavel Repkin
Hey!

I want to embed Flash ActiveX control inside my C++ application.
Does Adobe allow to embed Flash control inside Windows application?
Do you know what are the license requirements should I comply with if any?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Fast color-transformation over MovieClip with cacheAsBitmap

2009-06-18 Thread Pavel Repkin
Primary because it's hard to track cumulative scale changes from the
containers up the tree.
It seems I have to workaround this problem and write my own bitmap-caching
based on BitmapData. Thanks!

On Tue, Jun 9, 2009 at 6:15 PM, Ruy Adorno r...@lesite.ca wrote:

 Why don't you create a BitmapData from the original background and apply
 the light on this new bitmapdata which even yourself said it's faster. Then,
 everytime the stage is resized you can just create another BitmapData from
 the original background.
 This is not really a solution, but seems a nice and fast workaround.
 ___
 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] Re: Fast color-transformation over MovieClip with cacheAsBitmap

2009-06-09 Thread Pavel Repkin
One week has gone, there is no answer, I'm in despair :(
If you think there is no way to apply the color transfromation to cached
bitmap, just write it.
Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Fast color-transformation over MovieClip with cacheAsBitmap

2009-06-03 Thread Pavel Repkin
Hey!

I have a very complex vector symbol on the Stage - background_mc .
I have set background_mc.cacheAsBitmap = true.
This turns background to bitmap and makes Stage repaint fast.

Every frame the background light changes.
I use the following code to alter the light.

(new Color(background_mc)).setTransform(light);

And here is the problem.
The code works very slow.
I guess because the light is applied to the contents of the background_mc.
And then a new cached bitmap is rasterized once again.

The same code over BitmapData of the same size works much faster!

Is there a way to tell Flash to apply color-transformation to the cached
bitmap, instead of underlying vector symbols?


Note, that background_mc is scaled when Stage is resized.
This is not so fast, but it's good, because the picture quality preserved.
If I convert background_mc to BitmapData, bitmap would be scaled.

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


Re: [Flashcoders] How to smooth bitmap?

2009-04-17 Thread Pavel Repkin
Because of the very very security issue I cannot use this code.
You are not allowed to use BitmapData.draw to retrieve pixels containing
media from a domain other than your own.

On Fri, Apr 17, 2009 at 10:41 AM, Karl DeSaulniers k...@designdrumm.comwrote:

 You could try this one.
 This is an imageLoader class that smooths dynamic images.
 Dont know about the whole security issue though.
 This loads the initial image into a MC, then deletes it, then draws the
 bitmap into another MC.
 GL

 By martijndevisser.

 


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com




 On Apr 17, 2009, at 12:36 AM, Pavel Repkin wrote:

  Yes, I can, it does not work either :-(

 On Wed, Apr 15, 2009 at 7:48 PM, Anthony Pace anthony.p...@utoronto.ca
 wrote:

  Can you put the bitmap inside a movie clip, and get pixel data from a
 parent to make a new bitmapdata object?

 It seems like that would enable you to get around that problem; yet,
 again,
 I haven't played with this, nor do I have time to unfortunately, so I am
 not
 sure.


 Pavel Repkin wrote:

  Thanks, I've already written this code by myself.

 Unfortunately, it does not work because of security issues.
 You are not allowed to use BitmapData.draw to retrieve pixels containing
 media from a domain other than your own.


 On Mon, Apr 13, 2009 at 8:34 PM, Ian Thomas i...@eirias.net wrote:



  Alternatively, just copy the bitmap and smooth it:

 http://code.awenmedia.com/node/27

 HTH,
  Ian

 On Sat, Apr 11, 2009 at 3:16 PM, Pavel Repkin pavel.rep...@gmail.com
 wrote:


  Hey!

 I have a bitmap image loaded from external site (Facebook user
 avatar).
 Its size is 50x50 pixels and it looks very pixelated when the Flash
 Stage
 size changes.
 The image would look much better if it was smoothed.

 But, smoothing does not work for images loaded from external domains.
 MovieClip.forceSmoothing = true just does not work.
 However if the image resides on the same server as the script,
 smoothing
 works like a charm.

 Do you know how can I smooth the bitmap?
 Is it possible?

 AS 2.0, FP 9.0

 Pasha.
 ___
 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


[Flashcoders] AS 2.0, checking allowFullScreen inside action script

2009-04-17 Thread Pavel Repkin
Hey!

Fullscreen mode feature can be enabled/disabled with allowFullScreen
attribute of the embed/object tag.

Is it possible to know inside action script code if the fullscreen mode is
allowed .

I want to hide fullscreen button in my app if fullscreen mode is not
available.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] How much bytes ActionScript classes take in SWF?

2009-04-17 Thread Pavel Repkin
Yes, but does not display how much does packages or individual classes take.
Just tells how much ActionScript code takes.

On Wed, Apr 15, 2009 at 2:55 PM, Glen Pike g...@engineeredarts.co.ukwrote:

 Sorry, misread your email and jumped the gun - the size report should tell
 you how big your classes are though...


 Pavel Repkin wrote:

 There are 500 KB of ActionScript code in our project (according to Flash
 size-report)
 That is a lot.
 I want to find the classes (packages) that take most space.
 And then to optimize them.
 And throw away classes that were linked by a mistake.

 So I want to find out how much space take individual classes and packages
 in
 the swf.

 Do you know a tool that can help me?
 Ideally the app should display class tree with size in KB beside each
 node.

 Pasha.
 ___
 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] How much bytes ActionScript classes take in SWF?

2009-04-17 Thread Pavel Repkin
Thanks, Juan, this is exactly what I'm looking for!
Does flex compiler work with ActionScript 2.0?
I forgot to mention that we are working with 2.0.

On Wed, Apr 15, 2009 at 5:40 PM, Juan Pablo Califano 
califa010.flashcod...@gmail.com wrote:

 PS: a couple of notes since my last message could be misleading:

 1) By easy to compile I didn't mean that the result of using the SDK
 compiler will produce the same swf. I just mean it could be a good way to
 check what classes are included.

 2) Any code in the fla will not be included, of course. If you create a ref
 to some class only in timeline code, it will not be included in the swf
 compiled with the sdk



 2009/4/15, Juan Pablo Califano califa010.flashcod...@gmail.com:
 
  If you have a document class in place, it should be easy to compile your
  project with the flex SDK compiler. You could compile on the command
 line,
  which is not too hard or try some IDE like Flashdevelop (if you're on
  windows), where setting up a project is pretty stright forward.
 
  The extra compiler argument you need is -link-report
  size-report.xml. This will generate an xml detailed information about
 all
  compiled classes, theirs dependencies, and the optimized and unoptimized
  size. You could then parse this xml and create your own report as you
  like.
 
  Cheers
  Juan Pablo Califano
 
 
  2009/4/15, Pavel Repkin pavel.rep...@gmail.com:
 
  There are 500 KB of ActionScript code in our project (according to Flash
  size-report)
  That is a lot.
  I want to find the classes (packages) that take most space.
  And then to optimize them.
  And throw away classes that were linked by a mistake.
 
  So I want to find out how much space take individual classes and
 packages
  in
  the swf.
 
  Do you know a tool that can help me?
  Ideally the app should display class tree with size in KB beside each
  node.
 
  Pasha.
  ___
  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] How to smooth bitmap?

2009-04-16 Thread Pavel Repkin
Yes, I can, it does not work either :-(

On Wed, Apr 15, 2009 at 7:48 PM, Anthony Pace anthony.p...@utoronto.cawrote:

 Can you put the bitmap inside a movie clip, and get pixel data from a
 parent to make a new bitmapdata object?

 It seems like that would enable you to get around that problem; yet, again,
 I haven't played with this, nor do I have time to unfortunately, so I am not
 sure.


 Pavel Repkin wrote:

 Thanks, I've already written this code by myself.

 Unfortunately, it does not work because of security issues.
 You are not allowed to use BitmapData.draw to retrieve pixels containing
 media from a domain other than your own.


 On Mon, Apr 13, 2009 at 8:34 PM, Ian Thomas i...@eirias.net wrote:



 Alternatively, just copy the bitmap and smooth it:

 http://code.awenmedia.com/node/27

 HTH,
   Ian

 On Sat, Apr 11, 2009 at 3:16 PM, Pavel Repkin pavel.rep...@gmail.com
 wrote:


 Hey!

 I have a bitmap image loaded from external site (Facebook user avatar).
 Its size is 50x50 pixels and it looks very pixelated when the Flash
 Stage
 size changes.
 The image would look much better if it was smoothed.

 But, smoothing does not work for images loaded from external domains.
 MovieClip.forceSmoothing = true just does not work.
 However if the image resides on the same server as the script, smoothing
 works like a charm.

 Do you know how can I smooth the bitmap?
 Is it possible?

 AS 2.0, FP 9.0

 Pasha.
 ___
 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] How to smooth bitmap?

2009-04-15 Thread Pavel Repkin
Thanks, I've already written this code by myself.

Unfortunately, it does not work because of security issues.
You are not allowed to use BitmapData.draw to retrieve pixels containing
media from a domain other than your own.


On Mon, Apr 13, 2009 at 8:34 PM, Ian Thomas i...@eirias.net wrote:

 Alternatively, just copy the bitmap and smooth it:

 http://code.awenmedia.com/node/27

 HTH,
Ian

 On Sat, Apr 11, 2009 at 3:16 PM, Pavel Repkin pavel.rep...@gmail.com
 wrote:
  Hey!
 
  I have a bitmap image loaded from external site (Facebook user avatar).
  Its size is 50x50 pixels and it looks very pixelated when the Flash Stage
  size changes.
  The image would look much better if it was smoothed.
 
  But, smoothing does not work for images loaded from external domains.
  MovieClip.forceSmoothing = true just does not work.
  However if the image resides on the same server as the script, smoothing
  works like a charm.
 
  Do you know how can I smooth the bitmap?
  Is it possible?
 
  AS 2.0, FP 9.0
 
  Pasha.
  ___
  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] How much bytes ActionScript classes take in SWF?

2009-04-15 Thread Pavel Repkin
There are 500 KB of ActionScript code in our project (according to Flash
size-report)
That is a lot.
I want to find the classes (packages) that take most space.
And then to optimize them.
And throw away classes that were linked by a mistake.

So I want to find out how much space take individual classes and packages in
the swf.

Do you know a tool that can help me?
Ideally the app should display class tree with size in KB beside each node.

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


Re: [Flashcoders] How to smooth bitmap?

2009-04-11 Thread Pavel Repkin
Thanks, Latcho!

Inside discussions over BitmapData.draw() on Flash-help site I've found this
script
?php
$file = $_GET[file];
header(Content-Type: image/jpg);
readfile($file);
?

But it looks very insecure.
Do you know a proper one with correct input checking?
I'm a new to PHP and it's hard for me to make this script secure.

Yes, there is the crossdomain.xml on Facebook, but it opens Facebook for a
small set of domains, mostly of them are Facebook servers. Have a look
facebook.com/crossdomain.xml

Of course there are several Facebook APIs, but the ones I've seen do nothing
special about image download. Though they help to easily access image url.
And, as far as I know, there are no official Facebook Flash API.


On Sat, Apr 11, 2009 at 7:29 PM, Latcho spamtha...@gmail.com wrote:

 I'm afraid that you need to implement a proxy script on your own server
 that loads the image from facebook.
 But isn't there a crossdomain.xml to load from FB ? Or isn't there an API
 (yet) ?
 Latcho

 Pavel Repkin wrote:

 Hey!

 I have a bitmap image loaded from external site (Facebook user avatar).
 Its size is 50x50 pixels and it looks very pixelated when the Flash Stage
 size changes.
 The image would look much better if it was smoothed.

 But, smoothing does not work for images loaded from external domains.
 MovieClip.forceSmoothing = true just does not work.
 However if the image resides on the same server as the script, smoothing
 works like a charm.

 Do you know how can I smooth the bitmap?
 Is it possible?

 AS 2.0, FP 9.0

 Pasha.
 ___
 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] Is it possible to embed Flash player inside C++ application on MacOS?

2009-04-08 Thread Pavel Repkin
Hey!

My Windows application embeds Flash player.

Now I want to port the application to MacOS.
But I was not able to find any tutorial or an article on the subject.

Do you know how to embed Flash player inside MacOS application?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] XML loading. Why file is cached, but script response is not?

2009-04-03 Thread Pavel Repkin
Hey!
My program loads XML data from the server.
I want the data to cache, so the loading happens only once.
When I load a simple xml file from the server, the caching works like a
charm.

But when I load xml from a Perl script response, the cache does not work.
The data are being loaded every time I call XML.load(...)
The request URL is simple and does not change over time: 
http://repkasoft.com/cgi-bin/test/responseCache/provider.pl;


Do you know why caching does not work for script response?
Is it possible to make it work?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders