Re: [Flashcoders] Taking a "screenshot" from a FLVPlayback compon entusing AS

2006-05-03 Thread Oleg Filipchuk

You may send data to some server side script, but currently in FP8 it is not
really efficient due to the size of data sent over wire. There is an
interesting example from Alessandro Crugnola -
http://sephiroth.it/tutorials/flashPHP/print_screen/

Cheers,
Oleg
___
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] Taking a "screenshot" from a FLVPlayback componentusing AS

2006-05-03 Thread Oleg Filipchuk

HI,
I have the familar task so I've been using BitmapCopy class for that
purpose:

[as]

import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Matrix;
import flash.geom.ColorTransform;

class com.justversus.utils.BitmapCopy extends MovieClip {

private static  var instance:BitmapCopy;
private static var bmp:BitmapData;

private function BitmapCopy () {};

public static function getInstance():BitmapCopy {
   if ( instance == null ) {
   instance  = new BitmapCopy ();
}
   return instance;
  }

 public static function copy( source:MovieClip, target:MovieClip,
matrix:Matrix, colorTransform:ColorTransform, blendMode:Object,
clipRect:Rectangle, smooth:Boolean):Void {
  if (clipRect ! = undefined ){
  var w:Number = clipRect.width;
  var h:Number = clipRect.height;
   } else {
var w:Number = source._width;
var h:Number = source._height;
   }
  bmp.dispose();
  bmp = new BitmapData( w, h );
  bmp.draw (source, matrix, colorTransform, blendMode, clipRect,
smooth);
  target.attachBitmap (bmp, target.getNextHighestDepth() );
   }
}

[/as]

Cheers,
Oleg
___
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] Flash to jpg

2006-04-18 Thread Oleg Filipchuk
Hello,
if you can track all the manipulation user does with the image you may use
GD library in PHP or MagicWand of ImageMagick.
To make communication easy try to use AMFPHP.
If you look for an example check www.edipix.com - I've implement only the
simplest image manipulations like crop, compositing, text, drawing and geom
figures overlaying.
But there are API for implementing filters, blending etc...

Best wishes,
Oleg
___
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] Duplicate Class errors

2006-04-09 Thread Oleg Filipchuk
Hello,
I've got the same issue when the team member had clocked shifted by month
ahead ( do not know how why he had it). The quick solution was to shift my
clock ahead as well and after that all files were compiled without any
problem.
But after putting my clock back the problem had reappeared. The solution
I've found was the PHP script that open file, copy it's content and put it
into new filewith the same name ( for automation).


Regards,
Oleg
___
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] loading images into in cell renderer datagrid

2006-03-21 Thread Oleg Filipchuk
Hello,
May you provide your setValue function for your ImageCellRenderer?

Oleg

On 3/20/06, Rich Rodecker <[EMAIL PROTECTED]> wrote:
>
> i have a datagrid that uses a cell renderer for one of the columns.
> This cell renderer uses a Loader component to an load image into it.
> For most of the rows in the dg, that works fine, but some rows just
> refuse to load the image...and it's always the same images.
>
> I thought that the images might have been bad, but i tested them in a
> Loader in a new doc and they load fine, so I'm guessing i'm running
> into some wierd dg issue.
>
> I also thought it may have been the fact that some of my rows were not
> visible at the time the datagrid loads...and maybe the dg would render
> those rows until needed.  however I made all my rows fit into the
> visible area of the datagrid, and the same problem, some images just
> wont load.
>
> any ideas whats goin on?
> ___
> 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


Re: [Flashcoders] storing embedded font data in local shared objects(LSOs)?

2006-03-14 Thread Oleg Filipchuk
Hey Ken,
why not keeping font libraries in exeternal swf files so when user loads it
once it will stay in user's cache?

Oleg
___
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] Q:Tween Class..detect tween in progress

2006-03-07 Thread Oleg Filipchuk
Hi,
there is tween.onMotionChanged ( obj:Object )
___
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] How to remove component listener in CellRenderer

2006-02-27 Thread Oleg Filipchuk
Hi list,
I use my custom components in tree and other list based components with
CellRenderer API. I create it with createChildren method:

function createChildren(Void) : Void{
combo = JViewCreator.createView (ComboBox, this,
this.getNextHighestDepth(), "combo", {width: 97, height: 20, _x: 0, _y: 0});
combo.addEventListener("change", this);
}

How I can remove listener from combo when the row is deleted?
I've just noticed memory leak when some list deleted and created several
times. And that's only the reason left
___
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] how to make single cell in the grid non editable?

2006-02-23 Thread Oleg Filipchuk
I hope it would be better. It's nothing else left. :(

So does anyone know any smart solution about making individual cell
non/editable?
___
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] how to make single cell in the grid non editable?

2006-02-22 Thread Oleg Filipchuk
eric, thanx for your advise.

I made it invoking cellPress listener. It's really messy and I DO NOT LIKE
this solution at all.

private function cellPress(evt:Object):Void {
   if ( dataGrid.selectedItem.UserType == 3 ) {
dataGrid.editable = false;
} else {
dataGrid.editable = true;
}
}

And it's not fully working in case when user navigates trough datagrid using
arrows or enter key. I REALLY REALLY start to hate  this  v2 standard
DataGrid and can't wait until I can use  Flex2 components.

Is this any way to do it trough CellRenderer?
___
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] how to make single cell in the grid non editable?

2006-02-22 Thread Oleg Filipchuk
Hi list.
Is it possible to make single cell in the grid non editable?
I can do make non-editable column but that is not what I need.

thx.
Oleg
___
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] DataGrid Columns question

2006-02-22 Thread Oleg Filipchuk
Thanks all,
I've found solution by setting up columns ahead of time:

private function createColumn( prop:String, label:String ):DataGridColumn {
var clmn:DataGridColumn = new DataGridColumn(prop);
clmn.headerText = label;
   return clmn;
}

dataGrid.addColumn(createColumn("nickname", "NickName"));
dataGrid.addColumn(createColumn("fullname", "Full name"));
dataGrid.addColumn(createColumn("tel", "Telephone"));
dataGrid.addColumn(createColumn("address", "Address"));

and after that I can asign data provider safely.

But there is the nasty quirk - if I call dataGrid.spaceColumnsEqually()  -
dataGrid shows no column at all, so I have to set up width of every column
individually.

Thanks all for help,
Oleg
___
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] DataGrid Columns question

2006-02-22 Thread Oleg Filipchuk
Hello list,
I'm populating DataGrid component from DB. And I need to specify what
columns have to be shown to user. I remember  that there is DataGrid column
wizard, but unfortunately it doesn't work with Flash 8.
This is the value object:

class vo.User {
var nickname:String;
var fullname:String;
var userid:Number;
var tel:Number
var address:String;
}

I want to show in DataGrid all the data except userid. Is there any simple
way to od it?

thanks,
Oleg
___
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: RE : [Flashcoders] External Imaging Nightmares

2006-02-16 Thread Oleg Filipchuk
Here is the working example, without gotoAndStop etc. DO NOT USE
onLoadComplete, use onLoadInit


System.security.allowDomain ("google.com");

function onLoadStart( target:MovieClip ):Void {
trace ( "load start")
}

function onLoadError( target:MovieClip, errorCode:String ):Void {
trace( 'loadError '+ errorCode );
}

function onLoadProgress( target:MovieClip, loadedBytes:Number,
totalBytes:Number ):Void {
trace ( "progress " + Math.round ( loadedBytes/totalBytes*100) );
}

function onLoadInit( target:MovieClip ):Void {
target._width = 500;
target._height = 300;
}

var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(this);
mcl.loadClip( "http://www.google.com/logos/olympics06_luge.gif";,
this.createEmptyMovieClip( "contHolder", 0 ));


best wishes,
Oleg
___
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] External Imaging Nightmares

2006-02-15 Thread Oleg Filipchuk
Hi Jamie,
you have to use MovieClipLoader.onLoadInit(). The onLoadComplete event only
tell you that external content had been finished loading, but not yet
initialised.

Oleg
___
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] Flash Lite 2.0 phone list

2006-01-13 Thread Oleg Filipchuk
Does anybody know about any plans for Palm OS flash player?

On 1/12/06, Nick Gerig <[EMAIL PROTECTED]> wrote:
>
>
> The majority of Non-Nokia devices listed are Japanese handsets with
> FL1.1 or FL1.0 preinstalled.
>
> >
> >
> > - All the phones that could be supported using the current technology
> > once distribution deals
> > with the manufacturers are sorted out
>
>
> No - any phones there are because the deals have already been done
>
> >
> > - All the phones that the current player will run on once the current
> > testing period
> > is over.
> >
> I assumed  FL2.0 is final and only  the IDE extension is pre-release
> software
>
> > - All the phones that the Flash Lite 2.0 player could be ported to if
> > someone pays
> > Macrobe to do it.
>
>
> FL2.0 could be ported to literally any phone if someone pays :)
>
> >
> > Which of these applies will make a big difference to the speed of
> > adoption - if
> > the current player will be released for all these models in a few
> > months then
> > this could become quite big pretty quickly - otherwise its going to
> > take a while.
> >
>
> The issue currently is that is that although there is a long list of
> Nokias that FL will run on, will a player ever be distributed for those
> phones? The short answer is that unless the old MM policy has changed
> with Adobe - NO! Nokia will distribute the FL player in its emerging
> handsets, in fact it has already started in Asia with the N90, most
> probably worldwide with the N91 this month. But the older Nokia's will
> never get a FL player unless someone pays for it. IMHO this is a massive
> hit that only the developer community and consumers take, even if it
> does also have a slight impact on the growth of the FL content market
> which is still pretty immature outside Japan. The only situation where
> older Nokias will get FL2 is where a service provide/operator decides to
> license the player for its customers with existing Nokia handsets,
> however that is not necessarily a smooth process because each player is
> IMEI tied and therefore cumbersome to deliver OTA.
>
> Hope that helps a little.
>
>
>
> cheers
>
>
> Nick
>
>
>
> ___
> 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] [ANN] FlashDevelop beta8 release

2006-01-12 Thread Oleg Filipchuk
Thanks for info and new release Phillipe.
It's really great develop IDE.
The only thing I miss comparing to PrimalScript (that I've been using before
I've got known FlashDevelop ) is creating project from existing directory.

Oleg.

On 1/12/06, Philippe <[EMAIL PROTECTED]> wrote:
>
> Hello coders,
>
> FlashDevelop is an opensource lighweight & smart Flash development
> environment (AS, XML, HTML/PHP, CSS, JS), created by Flash coders to
> be easily used with your Flash IDE or as a seemlessly integrated
> MTASC+SWFMILL solution.
>
> The team is proud to announce the new beta8 release, with lots
> improvements thanks to a growing community of FlashDevelop users and
> developers.
>
> Beta8 changes & download (2.2MB):
> http://www.flashdevelop.org/community/viewtopic.php?t=164
>
> Features:
> http://www.flashdevelop.org/community/viewtopic.php?t=23
> ___
> 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] Attach MC with a custom Class

2006-01-12 Thread Oleg Filipchuk
Hi Bruno,

import mycustompackage.MyCustomClass;
var myCustomMC:MyCustomClass = MyCustomClass ( this.attachMovieClip (
customMCSymbol, myCustomMC, depth, initObj) );

or you may use JViewCreator - http://www.j3r.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Forcing Flash going to next frame while executing code? + MultiThreading in Flash?

2005-11-02 Thread Oleg Filipchuk
Hi,
why don't you parse your xml with using of setInterval?

 On 11/2/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Is this possible ? I have a large xml-file which is parsed. This tends
> to freeze help of setIntervalapplication several seconds (in case of a
> really big
> xml-file, a popup can occur whith script time out error). Is it possible
> to force Flash to jump to a next frame without stopping the execution of
> code? And is it possible to set this script time out higher?
>
>
>
> Breaking the xml in several peaces is an option we have already done,
> but still I would like to know if it is possible to force flash to a
> next frame.
>
>
>
> Another question : Is it possible to start another thread to execute
> some operations in the background?
>
>
>
> Thx, Lieven Cardoen
>
> ___
> 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] TextField - how to put caret into textfield?

2005-10-21 Thread Oleg Filipchuk
Hi list.
maybe this is trivial question but I didn't google the way to do it. I need
to create TextField and put the blinking caret into TextField without user
clicking on TextField.

var my_tf:TextField = this.createTextField ( '_tf', 0, 0, 0, 100, 20);
my_tf.border = true;
my_tf.type = 'input';
Selection.setFocus('my_tf'); 


thanx,

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