Re: [Flashcoders] coverting video to flv on the server

2007-03-26 Thread Ian Thomas

Hi Robin,
 Take a look at ffmpeg.

http://ffmpeg.mplayerhq.hu/

HTH,
  Ian

On 3/26/07, Robin Burrer <[EMAIL PROTECTED]> wrote:

Hi there,

Somebody told me the other day there are tools that can convert the most
common video formats to flvs. Unfortunately I can't remeber the names of
these products.

My company wants to create a youTube like web application where the user
can upload a video which then gets converted to an flv.

Any recommendations and/or thoughts?

Cheers

Robin

___
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] Re: empty textfield of type "input" and embedded font

2007-03-26 Thread Matthias Dittgen

when not using html = true and htmlText, the solution is the
setNewTextFormat method, which seems not to work in combination with
htmlText. :-(
There must be a pendant to..
___
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] (no subject)

2007-03-26 Thread Arun
 
___
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] As3 Reccomended Book

2007-03-26 Thread Merrill, Jason
AS3 Cookbook is really great -  I just picked it up last week and feel
like I can write AS3 scripts without too much transition issues.  I just
recommend you buy it instead of download it from someone else. :) 

Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


 
___
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] Image resizer that maintains ratio

2007-03-26 Thread Adrian Lynch
Any examples out there?

I've got as far as resizing a user supplied image and am about to work on
the ratio remaining fixed. Just thought I'd throw this out there as I think
it may be tricky.

Ta.

Adrian

___
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] FW: Image resizer that maintains ratio

2007-03-26 Thread Adrian Lynch

Should have pointed out, the resizing will happen by the user dragging
anchor points on the corners of the images.

Ta.

-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 26 March 2007 13:08
To: Flashcoders
Subject: Image resizer that maintains ratio


Any examples out there?

I've got as far as resizing a user supplied image and am about to work on
the ratio remaining fixed. Just thought I'd throw this out there as I think
it may be tricky.

Ta.

Adrian

___
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] Problems when loading SWF (with screens in forms format) in Flash MX 2004 Pro

2007-03-26 Thread Benjamin Baudel

Hi

I'm creating an application which use multiples modules (swf files) in 
flash mx 2004 pro.


Each module (swf) is made in Flash Pro with many forms screens (and a 
shared library with my personnals components used in screens).


The main application call a method which use the MovieClipLoader object 
and which check if all forms of the module are correctly loaded (in a 
setInterval because after the onLoadInit method all screens are not 
completely loaded, but only the first one).


When all seems ok, I create my module object with it's classes and I 
load it's model, then it's controller, then an XML language file (with 
XML.load and setInterval into), then I init each form screen into the 
module file and I load the main screen of the module.


This works well, but sometimes all the screens appears for the first to 
the last before my init functions. All is good after due to my init and 
main screen functions, but when loading I've the display of all the 
forms (like a double click on le module swf) and the error message "A 
script in the movie is causing Macromedia Flash to run slowly " due 
to the length for the display of all the screens !


I've this problem with big module which contains many forms and too when 
memory is used a lot it seems.


Someone to solve this problem ? or have the same experience ?
or solution to "rewrite" my code ?
Thanks :)

Note :
- main application 400 ko (with all classes)
- shared library (used in main application and in all modules) : 190 ko
- language file xml : 30 ko max. each
- module swf file : 80 ko max. each (components are in the shared library)
All classes are put into the main application and modules classes called 
only when module is loaded.


---
Benjamin
___
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] Site Check [dm9ddb.com.br]

2007-03-26 Thread Mauricio Furtado Massaia

Hi guys,

Wagner Paula and I have worked on DM9DDB´s WebSite and we are really proud
of this job.
The navigation and design are a little bit oldskool. In fact everything on
this site was made by OOP Classes and Standard code what really makes me
happy about that.

I would like to get some comments about how is it for you guys.

Looking forward for your comments.


http://dm9ddb.com.br

MauricioMassaia
___
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] setting a timer in flash 8

2007-03-26 Thread Parvaiz Patel
Hi Gustave,
 
Here is the answer to your query.
 
The best way for any timing related task is to use Interval.
 
Here is the syntax:
var :Number = setInterval(, );
 
function (){
 
//do your task here..
 
}
 

 
The following is the example for your inderstanding & testing.
 
 
 
this.createTextField("date_txt", this.getNextHighestDepth(), 10, 10,
100, 22);
date_txt.autoSize = true;
date_txt.selectable = true;
 
var date_interval:Number = setInterval(updateTime, 500, date_txt);
 
function updateTime(my_txt:TextField) {
my_txt.text = new Date().toString();
trace(my_txt.text);
}
 
 
I hope, this is well enough to solve your problem.
 
Thanks & regards,
 
Parvaiz Patel.  
 
 
 
 
> Gustavo Duenas wrote:
>> Hi, I'm trying to set a timer to trigger a event after 20 seconds or 
>> less, but so far i have this code, but with no results
>> someone help me? .
>> I don't know how could I got into but some help might be needed
>>
>>
>> this is the code: is inside the first frame of a movie clip and the 4

>> frame has: gotoAndPlay(1);
>>
>>
>> var now = getTimer();
>> var seconds:Number = now/1000;
>> var later:Number = seconds+20;
>> this.onEnterFrame= function (){
>> if(seconds == later){
>> trace("llegamos");
>>}
>> }
>> trace(seconds);
>>
>>
>>
>> Regards
>>
>>
>> Gustavo Duenas
>>
>>
>>
>> ___
>> 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@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] Image resizer that maintains ratio

2007-03-26 Thread eric e. dolecki

Ok that is SO weird. I was just thinking about this...

myListener.onLoadInit = function( target_mc:MovieClip ):Void
{
   target_mc._xscale = target_mc._yscale = Math.max( target_mc._width,
target_mc._height );
};

- Eric


On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:


Any examples out there?

I've got as far as resizing a user supplied image and am about to work on
the ratio remaining fixed. Just thought I'd throw this out there as I
think
it may be tricky.

Ta.

Adrian

___
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





--
eric e. dolecki
senior interactive engineer
http://www.ericd.net
___
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] Text to MP3

2007-03-26 Thread iestyn lloyd

Hey list,

Does anyone know of an easy way to convert text to mp3 on the fly?
Ideally some company would run a service with a REST interface, so I
could just send my text via a querystring, and it would send back some
XML detailing the URL of the mp3, and maybe an indication of when the
mp3 might be converted... well that's what i'd like ideally...

I guess the other possibility is finding some component to install on
my own server, but this might not be possible...

any ideas anyone?

Cheers

iestyn
___
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] Image resizer that maintains ratio

2007-03-26 Thread Danny Kodicek
 > Any examples out there?
> 
> I've got as far as resizing a user supplied image and am 
> about to work on the ratio remaining fixed. Just thought I'd 
> throw this out there as I think it may be tricky.

How are they resizing? Which bit is tricky? Maintaining an aspect ratio
isn't too hard - you're just losing a degree of freedom from the user input.


Danny

___
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] FW: Image resizer that maintains ratio

2007-03-26 Thread Hans Wichman

Hi,
shouldnt be too tricky, set the actual x and y scale to the minimum of the
preferred x and y scale.

Might be wrong about this, but shouldnt it be something like:
eg:
var prefXScale:Number = //get preferred x scale eg based on x mouse
var prefYScale:Number = //get preferred y scale eg based on y mouse

var constrainedScale:Number = Math.min(prefXScale, prefYScale);

myClip._xscale = myClip._yscale = constrainedScale;

greetz
JC




On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:



Should have pointed out, the resizing will happen by the user dragging
anchor points on the corners of the images.

Ta.

-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED]
Sent: 26 March 2007 13:08
To: Flashcoders
Subject: Image resizer that maintains ratio


Any examples out there?

I've got as far as resizing a user supplied image and am about to work on
the ratio remaining fixed. Just thought I'd throw this out there as I
think
it may be tricky.

Ta.

Adrian

___
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] Image resizer that maintains ratio

2007-03-26 Thread Guilherme Cruz

eg. if your original image size is 800x600 and you want it to be 500 x ? :

(pseudo code)

//store original sizes
originalWidth = myImage._width;
originalHeight = myImage._width;

//get the ratio
finalRatio = originalWidth/500;
myImage._width = originalWidth * finalRatio;
myImage._height = originalHeight * finalRatio;




On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:


Any examples out there?

I've got as far as resizing a user supplied image and am about to work on
the ratio remaining fixed. Just thought I'd throw this out there as I
think
it may be tricky.

Ta.

Adrian

___
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] Image resizer that maintains ratio

2007-03-26 Thread Guilherme Cruz

Ops..

//store original sizes
originalWidth = myImage._width;
originalHeight = myImage._height;

//get the ratio
finalRatio = originalWidth/500;
myImage._width = originalWidth * finalRatio;
myImage._height = originalHeight * finalRatio;
___
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] Font variation issues in flash 8

2007-03-26 Thread Andreas R
Trying to access a specific font variation (like one is called "black", 
and one is called "Bold") , but all Flash 8 is giving me access to is 
archetypes.

Is there a way to circumvent this filtering?

- Andreas R
___
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] Re: attachMovie vs createClassObject

2007-03-26 Thread Andy Herrman

I think the root movie clip does extend UIObject, as createClassObject
works for me.  And the objects I'm creating aren't custom ones, but
things like mx.controls.ComboBox, so I don't have to worry about
symbol* variables.

I may have to look into UIObject a bit more.  I've been making some of
my own controls, but doing it using Composition, with the class that
handles the control creating (or being passed) an movie clip to use.
Maybe extending UIObject would make more sense.

  -Andy

On 3/24/07, Yehia Shouman <[EMAIL PROTECTED]> wrote:

createClassObject is defined in UIObject core object. I don't think it can
be called as a method of any movieclip. It also requires that you define

static var symbolName : String = "linkageID";
static var symbolOwner : Object = com.myclass;


and at the end of the day It calls createObject which basically uses
attachMovie passing on the symbolName. Use it if your host mc is a UIObject
(inheriting from mx.core.UIComponent or mx.core.UIObject).

I use
var myInstance:ClassType=ClassType(mc.attachMovie(ClassType.symbolName
,"instanceName",depth))

Sometimes, if there is any pending code in the draw method of the created
class instance, I wait for a frame using doLater.

I hope this helps
Yehia Shouman

On 3/23/07, Andy Herrman <[EMAIL PROTECTED]> wrote:
>
> Just to amend my previous comment, in the case where I said
> `createClassObject()` failed but `attachMovie()` didn't, that ended up
> to be not quite true.  `createClassObject()` didn't do anything, but
> `attachMovie()` created the visual portions of the clip, but it looks
> like none of the component's code was actually loaded, so while it
> appeared to be working it really wasn't.
>
> But in the cases where one works the other seems to work as well, so
> I'm still wondering what the difference is.
>
>-Andy
>
> On 3/20/07, Andy Herrman <[EMAIL PROTECTED]> wrote:
> > I'm wondering if there are any significant differences between using
> > `attachMovie()` and `createClassObject()` for creating components (I'm
> > targeting for Flash 7).  I just ran into a weird issue creating a
> > ComboBox where I was using `createClassObject()` to instantiate it,
> > but saw that elsewhere in the code it was using `attachMovie()` to
> > create one, and both were working.
> >
> > Specifically, both this:
> > mc.attachMovie("ComboBox", "myComboBox", mc.getNextHighestDepth());
> > and this:
> > mc.createClassObject(ComboBox, "myComboBox", mc.getNextHighestDepth());
> >
> > seems to give the same results in most cases.  Is there any benefit to
> > using `createClassObject()` over `attachMovie()` for components?
> >
> > The one situation I ran into where it gives different results is when
> > using multiple SWFs from different places.  I have a main movie which
> > loads another movie that contains all the UI resources (makes branding
> > easier).  The UI resources movie contains the ComboBox in its library.
> >  If both the movies are on the local filesystem then it works fine,
> > but if the resources SWF is on a remote web server the
> > `createClassObject()` call fails.  However, if I change it to use
> > `attachMovie()` it works fine.  So I'm leaning towards using
> > `attachMovie()`, just to make my life easier for testing (don't have
> > to upload the main movie every time I want to test it), but I'm
> > wondering if that will cause issues later.
> >
> >-Andy
> >
> ___
> 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@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] Senior Flex/Flash Developer

2007-03-26 Thread elibol

http://www.krop.com/jobs/b8c2d/http://www.pierinc.com/

PIER, Inc. Boston, MA, USA Senior Flex/Flash
Developer

*Description*

It has always been PIER's goal to think differently about what the web is
capable of, and to push that agenda through cutting edge design and
development. PIER is now looking to expand its team of professional
developers in order to meet this challenge, and in doing so shift the way
that people think about software. PIER is seeking an experienced Flash RIA
developer who understands the new standard for application development. They
must be designed as solidly as they are programmed. We are looking for
someone with a passion for Flash development and a willingness to work in a
highly specialized team of designers, developers, and project managers to
build cutting edge products for PIER's worldwide clients.

*Responsibilities include the following:*

  - Develop dynamic data-driven interactive applications
  - Work closely in an integrated team of Project Managers, Designers,
  Interface/CSS Developers, and client staff
  - Manage multiple projects with multiple deadlines efficiently and
  effectively
  - Communicate within a team to ensure projects hit budget and time
  deadlines
  - Further PIER's process and product lines
  - Push the envelope on projects in need of cutting edge technologies
  - Help PIER continue to forge ahead into the forefront of Ajax, Flash,
  Flex and Apollo application development

*Qualifications & Skills:*

  - 5 years of studio/corporate experience
  - Expertise in ActionScript 2.0
  - Knowledge of ActionScript 3.0, Flex framework, and development
  processes
  - Knowledge of ColdFusion, XML, XHTML, JS, and Ajax a plus
  - Knowledge of database design and development a big plus

*About PIER*

Pier integrates business strategy, interactive design, and technology
development services for changing companies worldwide. Our process consists
of distilling our client's most complex challenges into a singular vision,
and executing that vision with pioneering design and development solutions.

Pier has helped clients like Microsoft, HP, Honeywell, and many others by
increasing workplace efficiency, building flexible, web-based
infrastructures, and dramatically improving customer experiences. With
S.W.A.T. style development capabilities, Pier architects complex web-based
systems, while hiding that complexity behind minimal and efficient
interfaces.

___
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] Actionscript 3.0 help w/ simple HelloWorld

2007-03-26 Thread Rob Romanek

Hi Ron,

Thanks for the suggestion but still no luck on my end.

It seems that on my set up I need to have a constructor named the same as  
the .as file and that constructor has to be initiated prior to any of the  
other classes being initiated. So I set up


public class MyPackage{
public function MyPackage{
}
}

and then can either do an import or set up the .as file as my document  
class and after that I can access HelloWorld or MyClass. This seems to  
follow the examples that came with the Flash 9 alpha, which all use the  
document class approach and none of the .as files has more than one class  
in them, even though you can put more than one class inside. So I'm still  
a bit flummoxed as to how the package is working for Jason and not me, ah  
well. Probably something stupid I'm doing and the light will go in a few  
days.


Just to complete this I've also tried creating a folder called MyPackage  
and putting the .as files in there and again without the constructor named  
the same as the .as file it did not work


My understanding of 'package' is that the dot path that occurs after it is  
the path to the .as file so if the MyPackage.as is sitting in the same  
directory as your .fla then I would only have 'package' at the top of the  
file, if it were in a directory called MyPackage then the syntax would be


package MyPackage

thanks for ideas,

Rob

On Sat, 24 Mar 2007 09:26:10 -0400, Ron Wheeler  
<[EMAIL PROTECTED]> wrote:



Something to try

change
import MyPackage.*;
to import myPackage.HelloWorld

import myPackage.MyClass


See if the errors change.

Ron

Merrill, Jason wrote:

I dunno, that's how I have it set up and it works fine for me - Perhaps
your Flash 9 Preview Alpha is messed up.  I assume your publish settings
are all correct, - I don't know why it would do that.

Jason Merrill
Bank of America  GT&O Learning & Leadership Development
eTools & Multimedia Team

___
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] empty textfield of type "input" and embedded font

2007-03-26 Thread white song

You can put some text (for example:  type here:) and when the textfield gets
the focus you can detele the text.

Bianca


On 3/26/07, Matthias Dittgen <[EMAIL PROTECTED]> wrote:


Hello list,

I have a dynamic textfield like this in the constructor of a class
extending MovieClip:

createTextField("tf", getNextHighestDepth(),0,0,__width,__height);
__textField = this["tf"];
__textField.type = "input";
__textField.selectable = true;
__textField.embedFonts = true;
__textField.border = false;
__textField.background = false;
__textField.html = true;
setText(__text);

setText looks like this:

public function setText(text:String)
{
__text = text;
__textField.htmlText = ''
+(__text!=undefined?__text:'')
+'';
}

If the TextField is left empty on start, it is impossible to write to
the textfield or even to get a cursor to appear in the textfield.
If the TextField has content on start, it is possible to change the
text. It is also possible to delete all characters and enter new.
But it is not possible to click behind the last character and type
something behind on start. After marking the whole text, this is
possible.

Is this a focus problem? I really searched for this problem this list
as well as many forums, but could not find a real solution. I could
switch back to using html=false and using TextFormat, but I would
really like to use htmlText.

Every suggestion is welcome.
Matthias
___
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] Image resizer that maintains ratio

2007-03-26 Thread Hans Wichman

Hi,
that IS weird, because if your image is 800x600, you are saying:
  target_mc._xscale = target_mc._yscale = 800;

which is probably not what you want^^

greetz
JC


On 3/26/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:


Ok that is SO weird. I was just thinking about this...

myListener.onLoadInit = function( target_mc:MovieClip ):Void
{
   target_mc._xscale = target_mc._yscale = Math.max( target_mc._width,
target_mc._height );
};

- Eric


On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:
>
> Any examples out there?
>
> I've got as far as resizing a user supplied image and am about to work
on
> the ratio remaining fixed. Just thought I'd throw this out there as I
> think
> it may be tricky.
>
> Ta.
>
> Adrian
>
> ___
> 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
>



--
eric e. dolecki
senior interactive engineer
http://www.ericd.net
___
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] Site Check [dm9ddb.com.br]

2007-03-26 Thread Lars Schwarz

wasn't there a sitecheck list once?

Am 26.03.2007 um 14:39 schrieb Mauricio Furtado Massaia:


Hi guys,

Wagner Paula and I have worked on DM9DDB´s WebSite and we are  
really proud

of this job.
The navigation and design are a little bit oldskool. In fact  
everything on
this site was made by OOP Classes and Standard code what really  
makes me

happy about that.

I would like to get some comments about how is it for you guys.

Looking forward for your comments.


http://dm9ddb.com.br

MauricioMassaia
___
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


bitrocker & typographique
Lars Schwarz
Gottorpstrasse 20
26122 Oldenburg
T +49(0)441 2171 354 0
F +49(0)441 2171 354 2
M [EMAIL PROTECTED]
W www.bitrocker.com
W www.typographique.de




___
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] Site Check [dm9ddb.com.br]

2007-03-26 Thread Wagner Amaral

Just a tip?

http://blog.deconcept.com/swfobject/

It's nice, anyway
(e vai brasil! =P)



On 3/26/07, Mauricio Furtado Massaia <[EMAIL PROTECTED]> wrote:


Hi guys,

Wagner Paula and I have worked on DM9DDB´s WebSite and we are really proud
of this job.
The navigation and design are a little bit oldskool. In fact everything on
this site was made by OOP Classes and Standard code what really makes me
happy about that.

I would like to get some comments about how is it for you guys.

Looking forward for your comments.


http://dm9ddb.com.br

MauricioMassaia
___
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] Re: Senior Flex/Flash Developer

2007-03-26 Thread elibol

To apply, email a cover letter and resume with salary requirements and
three references to: [EMAIL PROTECTED]
___
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] As3 Reccomended Book

2007-03-26 Thread Omar Fouad

ok thanks i'll do it but any other recommendations???

On 3/26/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:


AS3 Cookbook is really great -  I just picked it up last week and feel
like I can write AS3 scripts without too much transition issues.  I just
recommend you buy it instead of download it from someone else. :)

Jason Merrill
Bank of America
GT&O Learning & Leadership Development
eTools & Multimedia Team



___
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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
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] Image resizer that maintains ratio

2007-03-26 Thread Adrian Lynch
Yup, sorry for being vague.

It's the maintaining of the ratio while the user resizes that I'm after.

A user uploads an image, I load this image into a container and force it to
fit into a maximum and minimum width and height. Within this container the
user can resize the image without expanding out of the container and all the
time maintaining the original ratio.

The resizing will be done by dragging an anchor point like this:

http://www.adrianlynch.co.uk/temp/resizer.gif

I have it working but it allows the image to be resized anyway the user
chooses. I also need to make the anchor stick to the bottom right hand
corner of the image.

I think I will work this out eventually but I wanted to see if there was
anything out there already that I could glean some ideas from.

Thanks.

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Danny
Kodicek
Sent: 26 March 2007 14:03
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Image resizer that maintains ratio


 > Any examples out there?
>
> I've got as far as resizing a user supplied image and am
> about to work on the ratio remaining fixed. Just thought I'd
> throw this out there as I think it may be tricky.

How are they resizing? Which bit is tricky? Maintaining an aspect ratio
isn't too hard - you're just losing a degree of freedom from the user input.


Danny

___
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] Image resizer that maintains ratio

2007-03-26 Thread Jack Doyle
This might be overkill, but feel free to use the TransformManager and/or
TransformItem class(es) available at
http://www.greensock.com/ActionScript/TransformManager. You can just set the
constrainScale_boolean property to true. 

Jack Doyle


-Original Message-
Date: Mon, 26 Mar 2007 13:08:09 +0100
From: "Adrian Lynch" <[EMAIL PROTECTED]>
Subject: [Flashcoders] Image resizer that maintains ratio
To: "Flashcoders" 
Message-ID: <[EMAIL PROTECTED]>

Any examples out there?

I've got as far as resizing a user supplied image and am about to work on
the ratio remaining fixed. Just thought I'd throw this out there as I think
it may be tricky.

Ta.

Adrian

***



___
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] Re: attachMovie vs createClassObject

2007-03-26 Thread Arul Prasad M L

createClassObject and createObject (and a few more) methods are defined in
the mx.core.ext.UIObjectExtensions class, and are added to MovieClip's
prototype when UIObjectExtensions gets 'initialized'. This happens, if you
have a UIComponent in your library. So createClassObject  method will work,
ONLY if you got a UIComponent based on macromedia's V2 architecture in your
library.

createClassObject essentially boils down to a attachMovie internall. I think
the createClassObject ( and subsequently createObject) implement a
'enhanced' depthTable,  which basically helps the components like ComboBox
work properly.

Its bedtime for me ( its singapore standard time here!), (and thanks to the
beer :P ), so I can't write any more. Hope all the above info helps you.

regards,
Arul Prasad.


On 3/26/07, Andy Herrman <[EMAIL PROTECTED]> wrote:


I think the root movie clip does extend UIObject, as createClassObject
works for me.  And the objects I'm creating aren't custom ones, but
things like mx.controls.ComboBox, so I don't have to worry about
symbol* variables.

I may have to look into UIObject a bit more.  I've been making some of
my own controls, but doing it using Composition, with the class that
handles the control creating (or being passed) an movie clip to use.
Maybe extending UIObject would make more sense.

   -Andy

On 3/24/07, Yehia Shouman <[EMAIL PROTECTED]> wrote:
> createClassObject is defined in UIObject core object. I don't think it
can
> be called as a method of any movieclip. It also requires that you define
>
> static var symbolName : String = "linkageID";
> static var symbolOwner : Object = com.myclass;
>
>
> and at the end of the day It calls createObject which basically uses
> attachMovie passing on the symbolName. Use it if your host mc is a
UIObject
> (inheriting from mx.core.UIComponent or mx.core.UIObject).
>
> I use
> var myInstance:ClassType=ClassType(mc.attachMovie(ClassType.symbolName
> ,"instanceName",depth))
>
> Sometimes, if there is any pending code in the draw method of the
created
> class instance, I wait for a frame using doLater.
>
> I hope this helps
> Yehia Shouman
>
> On 3/23/07, Andy Herrman <[EMAIL PROTECTED]> wrote:
> >
> > Just to amend my previous comment, in the case where I said
> > `createClassObject()` failed but `attachMovie()` didn't, that ended up
> > to be not quite true.  `createClassObject()` didn't do anything, but
> > `attachMovie()` created the visual portions of the clip, but it looks
> > like none of the component's code was actually loaded, so while it
> > appeared to be working it really wasn't.
> >
> > But in the cases where one works the other seems to work as well, so
> > I'm still wondering what the difference is.
> >
> >-Andy
> >
> > On 3/20/07, Andy Herrman <[EMAIL PROTECTED]> wrote:
> > > I'm wondering if there are any significant differences between using
> > > `attachMovie()` and `createClassObject()` for creating components
(I'm
> > > targeting for Flash 7).  I just ran into a weird issue creating a
> > > ComboBox where I was using `createClassObject()` to instantiate it,
> > > but saw that elsewhere in the code it was using `attachMovie()` to
> > > create one, and both were working.
> > >
> > > Specifically, both this:
> > > mc.attachMovie("ComboBox", "myComboBox", mc.getNextHighestDepth());
> > > and this:
> > > mc.createClassObject(ComboBox, "myComboBox", mc.getNextHighestDepth
());
> > >
> > > seems to give the same results in most cases.  Is there any benefit
to
> > > using `createClassObject()` over `attachMovie()` for components?
> > >
> > > The one situation I ran into where it gives different results is
when
> > > using multiple SWFs from different places.  I have a main movie
which
> > > loads another movie that contains all the UI resources (makes
branding
> > > easier).  The UI resources movie contains the ComboBox in its
library.
> > >  If both the movies are on the local filesystem then it works fine,
> > > but if the resources SWF is on a remote web server the
> > > `createClassObject()` call fails.  However, if I change it to use
> > > `attachMovie()` it works fine.  So I'm leaning towards using
> > > `attachMovie()`, just to make my life easier for testing (don't have
> > > to upload the main movie every time I want to test it), but I'm
> > > wondering if that will cause issues later.
> > >
> > >-Andy
> > >
> > ___
> > 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 S

[Flashcoders] Design Work in London, UK

2007-03-26 Thread Trevor Burton
Hi List,

 

This is OT, I know, but I know a lot of flashers come from a design
background... so here goes.

 

VirtueFusion (www.virtuefusion.com  ) are
looking to hire good designers to work on a range of online gambling
games. Currently our main product is Bingo - we produce Bingo apps for
just about everyone - William Hill, Ladbrokes, Mecca etc. etc. But we
also produce a range of other games and you'd be invited to come up with
new concepts for games, new takes on old games, all ideas are welcome,
the management are very open to new ideas, if it sounds good they'll
give it a go and if it works you'll be rewarded!

 

Location: Covent Garden, London, UK

 

Skills: Proficiency in the usual stuff, Photoshop, Illustrator etc.etc. 

 

Experience: Not nearly as important as a good eye for detail, design
talent and a willingness to learn all the secrets of the online gambling
industry!

 

Salary: Negotiable - depends on experience and how impressive you are at
interview (this is not a lie to make it sound more impressive - I know
this from personal experience!)

 

If anyone's interested they can drop me a line offlist and I'll be happy
to give you any more details or anything you need. They're a great firm
to work for - you'll be working with my flash team and if you want to
pick up some serious actionscript knowledge at the same time then
there's all the more reason to hire you! They're really looking for
full-timers but get in touch anyway even if you're looking for something
contract/temporary.

 

Trevor Burton

Flash Developer

 

Virtue Fusion Ltd

14-16 Betterton Street 

Covent Garden 

London

WC2H 9AH

 

Tel: +44 (0) 20 7420 6420

Fax: +44(0) 20 7420 6449

Mob: +44(0) 7990 813 039

 

___
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] empty textfield of type "input" and embedded font

2007-03-26 Thread Arul Prasad M L

try moving your
setText(__text);

call from constructor to the onLoad method ?

like

private function onLoad()
{
   setText(__text);
}



On 3/26/07, Matthias Dittgen <[EMAIL PROTECTED]> wrote:


Hello list,

I have a dynamic textfield like this in the constructor of a class
extending MovieClip:



--
Arul Prasad
http://arulprasad.blogspot.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] Image resizer that maintains ratio

2007-03-26 Thread Andreas R
My scaleToFit function. Probably not the most awesome thing, but it does 
the job


private function 
scaleToFit(target:Object,clipRect:Rectangle,maintainAspect:Boolean){

   var w:Number = clipRect.width;
   var h:Number = clipRect.height;
   var ratio:Number;
   var scalew:Number;
   var scaleh:Number;
   if(target._width>w||target._height>h){
   if(maintainAspect){
   //height
   ratio = target._width/target._height;
   scalew = w;
   scaleh = scalew/ratio;
   if(scaleh>h){
   //width
   ratio = target._height/target._width;
   scaleh = h;
   scalew = scaleh/ratio;
   }
   }else{
   scalew = w;
   scaleh = h;
   }
   target._width = scalew;
   target._height = scaleh;
   }
   }

eric e. dolecki wrote:

Ok that is SO weird. I was just thinking about this...

myListener.onLoadInit = function( target_mc:MovieClip ):Void
{
   target_mc._xscale = target_mc._yscale = Math.max( target_mc._width,
target_mc._height );
};

- Eric


On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:


Any examples out there?

I've got as far as resizing a user supplied image and am about to 
work on

the ratio remaining fixed. Just thought I'd throw this out there as I
think
it may be tricky.

Ta.

Adrian

___
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] OT - Installing PHP, MySQL?

2007-03-26 Thread Dave Mennenoh
Thanks everyone, for the advice. They're giving remote desktop access, so 
I'm going to install and see how it goes...


Anyone know a good SQL group?



Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


___
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] Actionscript 3.0 help w/ simple HelloWorld

2007-03-26 Thread elibol

Hi Rob,

The ability to define multiple classes in a single package was removed as of
Flex 1.5. It was removed with the class modifier *private*. There is still a
way to do it though.

First you need to change your file name to match the main class that is
being defined. The main class is the class that is within the package block.
You can then define any additional classes *outside* of the package block.
Classes outside of the package block cannot have any modifiers. The classes
are scoped to the classes within the .as file; no class outside of the .as
file can access these classes.

On 3/26/07, Rob Romanek <[EMAIL PROTECTED]> wrote:


Hi Ron,

Thanks for the suggestion but still no luck on my end.

It seems that on my set up I need to have a constructor named the same as
the .as file and that constructor has to be initiated prior to any of the
other classes being initiated. So I set up

public class MyPackage{
public function MyPackage{
}
}

and then can either do an import or set up the .as file as my document
class and after that I can access HelloWorld or MyClass. This seems to
follow the examples that came with the Flash 9 alpha, which all use the
document class approach and none of the .as files has more than one class
in them, even though you can put more than one class inside. So I'm still
a bit flummoxed as to how the package is working for Jason and not me, ah
well. Probably something stupid I'm doing and the light will go in a few
days.

Just to complete this I've also tried creating a folder called MyPackage
and putting the .as files in there and again without the constructor named
the same as the .as file it did not work

My understanding of 'package' is that the dot path that occurs after it is
the path to the .as file so if the MyPackage.as is sitting in the same
directory as your .fla then I would only have 'package' at the top of the
file, if it were in a directory called MyPackage then the syntax would be

package MyPackage

thanks for ideas,

Rob

On Sat, 24 Mar 2007 09:26:10 -0400, Ron Wheeler
<[EMAIL PROTECTED]> wrote:

> Something to try
>
> change
> import MyPackage.*;
> to import myPackage.HelloWorld
>
> import myPackage.MyClass
>
>
> See if the errors change.
>
> Ron
>
> Merrill, Jason wrote:
>> I dunno, that's how I have it set up and it works fine for me - Perhaps
>> your Flash 9 Preview Alpha is messed up.  I assume your publish
settings
>> are all correct, - I don't know why it would do that.
>>
>> Jason Merrill
>> Bank of America  GT&O Learning & Leadership Development
>> eTools & Multimedia Team
___
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] Actionscript 3.0 help w/ simple HelloWorld

2007-03-26 Thread elibol

Here is a good article on class/package syntax and structure:

http://probertson.com/articles/2006/07/28/one-file-many-as3-classes/

It turns out that one class per package is a Flex limitation.

On 3/26/07, elibol <[EMAIL PROTECTED]> wrote:


Hi Rob,

The ability to define multiple classes in a single package was removed as
of Flex 1.5. It was removed with the class modifier *private*. There is
still a way to do it though.

First you need to change your file name to match the main class that is
being defined. The main class is the class that is within the package block.
You can then define any additional classes *outside* of the package block.
Classes outside of the package block cannot have any modifiers. The classes
are scoped to the classes within the .as file; no class outside of the .as
file can access these classes.

On 3/26/07, Rob Romanek <[EMAIL PROTECTED]> wrote:
>
> Hi Ron,
>
> Thanks for the suggestion but still no luck on my end.
>
> It seems that on my set up I need to have a constructor named the same
> as
> the .as file and that constructor has to be initiated prior to any of
> the
> other classes being initiated. So I set up
>
> public class MyPackage{
> public function MyPackage{
> }
> }
>
> and then can either do an import or set up the .as file as my document
> class and after that I can access HelloWorld or MyClass. This seems to
> follow the examples that came with the Flash 9 alpha, which all use the
> document class approach and none of the .as files has more than one
> class
> in them, even though you can put more than one class inside. So I'm
> still
> a bit flummoxed as to how the package is working for Jason and not me,
> ah
> well. Probably something stupid I'm doing and the light will go in a few
> days.
>
> Just to complete this I've also tried creating a folder called MyPackage
>
> and putting the .as files in there and again without the constructor
> named
> the same as the .as file it did not work
>
> My understanding of 'package' is that the dot path that occurs after it
> is
> the path to the .as file so if the MyPackage.as is sitting in the same
> directory as your .fla then I would only have 'package' at the top of
> the
> file, if it were in a directory called MyPackage then the syntax would
> be
>
> package MyPackage
>
> thanks for ideas,
>
> Rob
>
> On Sat, 24 Mar 2007 09:26:10 -0400, Ron Wheeler
> <[EMAIL PROTECTED]> wrote:
>
> > Something to try
> >
> > change
> > import MyPackage.*;
> > to import myPackage.HelloWorld
> >
> > import myPackage.MyClass
> >
> >
> > See if the errors change.
> >
> > Ron
> >
> > Merrill, Jason wrote:
> >> I dunno, that's how I have it set up and it works fine for me -
> Perhaps
> >> your Flash 9 Preview Alpha is messed up.  I assume your publish
> settings
> >> are all correct, - I don't know why it would do that.
> >>
> >> Jason Merrill
> >> Bank of America  GT&O Learning & Leadership Development
> >> eTools & Multimedia Team
> ___
> 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] As3 Reccomended Book

2007-03-26 Thread Merrill, Jason
there just aren't a lot of AS3 specific books out there yet.  There are
several in the works though.  

Jason Merrill
Bank of America  
GT&O Learning & Leadership Development
eTools & Multimedia Team


 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Omar Fouad
>>Sent: Monday, March 26, 2007 10:43 AM
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: Re: [Flashcoders] As3 Reccomended Book
>>
>>ok thanks i'll do it but any other recommendations???
>>
>>On 3/26/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> AS3 Cookbook is really great -  I just picked it up last 
>>week and feel 
>>> like I can write AS3 scripts without too much transition issues.  I 
>>> just recommend you buy it instead of download it from 
>>someone else. :)
>>>
>>> Jason Merrill
>>> Bank of America
>>> GT&O Learning & Leadership Development eTools & Multimedia Team
>>>
>>>
>>>
>>> ___
>>> 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
>>>
>>
>>
>>
>>-- 
>>Omar Fouad - Digital Emotions...
>>
>>Love is always patient and kind. It is never jealous. Love is 
>>never boastful
>>nor conceited It is never rude or selfish. It does not take 
>>offense and is
>>not resentful. Love takes no pleasure in other people's 
>>sins...but delights
>>in the truth. It is always ready to excuse, to trust, to 
>>hope... and to
>>endure... whatever comes.
>>___
>>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] Image resizer that maintains ratio

2007-03-26 Thread Adrian Lynch
Ah nice one Jack. That's just what I was looking for.

Will let you know how I get on.

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jack
Doyle
Sent: 26 March 2007 15:59
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Image resizer that maintains ratio


This might be overkill, but feel free to use the TransformManager and/or
TransformItem class(es) available at
http://www.greensock.com/ActionScript/TransformManager. You can just set the
constrainScale_boolean property to true.

Jack Doyle


-Original Message-
Date: Mon, 26 Mar 2007 13:08:09 +0100
From: "Adrian Lynch" <[EMAIL PROTECTED]>
Subject: [Flashcoders] Image resizer that maintains ratio
To: "Flashcoders" 
Message-ID: <[EMAIL PROTECTED]>

Any examples out there?

I've got as far as resizing a user supplied image and am about to work on
the ratio remaining fixed. Just thought I'd throw this out there as I think
it may be tricky.

Ta.

Adrian

___
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] Re: empty textfield of type "input" and embedded font

2007-03-26 Thread Steven Sacks | BLITZ
That's because you do your text formatting with HTML tags.


BLITZ | Steven Sacks - 310-551-0200 x209
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Matthias Dittgen
> Sent: Monday, March 26, 2007 12:50 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Re: empty textfield of type "input" 
> and embedded font
> 
> when not using html = true and htmlText, the solution is the 
> setNewTextFormat method, which seems not to work in 
> combination with htmlText. :-( There must be a pendant to..
> ___
> 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] Re: empty textfield of type "input" and embedded font

2007-03-26 Thread Steven Sacks | BLITZ
And setTextFormat works fine with HTML textfields.  I've been using it
throughout an application I just built.  I never use setNewTextFormat.
___
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] As3 Reccomended Book

2007-03-26 Thread Cutter (FlashRelated)

Advanced ActionScript 3 with Design Patterns
ActionScript 3 Bible
The Essential Guide to Flex 2 with ActionScript 3.0
ActionScript 3.0 Essential Training
Learning ActionScript 3.0: The Non-Programmer's Guide to ActionScript 3

Amazon is your friend;) (not all titles currently available, check 
website for listing information)



Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Omar Fouad wrote:

ok thanks i'll do it but any other recommendations???

On 3/26/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:



AS3 Cookbook is really great -  I just picked it up last week and feel
like I can write AS3 scripts without too much transition issues.  I just
recommend you buy it instead of download it from someone else. :)

Jason Merrill
Bank of America
GT&O Learning & Leadership Development
eTools & Multimedia Team



___
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] Actionscript 3.0 help w/ simple HelloWorld

2007-03-26 Thread Ron Wheeler



Rob Romanek wrote:

Hi Ron,

Thanks for the suggestion but still no luck on my end.

It seems that on my set up I need to have a constructor named the same 
as the .as file and that constructor has to be initiated prior to any 
of the other classes being initiated. So I set up


Cat.as should contain the class Cat which should have a constructor 
called Cat.


Package is not required but helps group your classes into families 
(directories).

public class MyPackage{
public function MyPackage{
}
}

and then can either do an import or set up the .as file as my document 
class and after that I can access HelloWorld or MyClass. This seems to 
follow the examples that came with the Flash 9 alpha, which all use 
the document class approach and none of the .as files has more than 
one class in them, even though you can put more than one class inside. 
So I'm still a bit flummoxed as to how the package is working for 
Jason and not me, ah well. Probably something stupid I'm doing and the 
light will go in a few days.


Just to complete this I've also tried creating a folder called 
MyPackage and putting the .as files in there and again without the 
constructor named the same as the .as file it did not work


My understanding of 'package' is that the dot path that occurs after 
it is the path to the .as file so if the MyPackage.as is sitting in 
the same directory as your .fla then I would only have 'package' at 
the top of the file, if it were in a directory called MyPackage then 
the syntax would be


I do all my work in Eclipse but I think that the root of your classes is 
your classpath which you will set somewhere in the Flash IDE
The following would be a good directory structure for your 
documentation, sources and test specifications (there could be lots of 
other directories but the main one is the source directory


myproject
  docs
   src  //root of classpath
  com//start of package names
 manbus //com.manbus makes your packages unique
testproj // one of your projects so that package 
names are unique within your company

   animals // individual package directory
  animal.as
   cat.as  //sources
  dog.as
   view // another package
  listanimals.as  //source in the ...view package
   testspec_dir// jsut another project folder - no concern 
to Flash

.
.
.

src would be the root of my classpath
  
Cat.as would start

package com.manbus.testproj.animals
import com.manbus.testproj.animals.animal  //interface definition for 
all animals


class Cat implements Animal{
   private name:String
   public function Cat(name){this.name=name;}// Constructor for Cat
}
  
Dog.as would start

package com.manbus.testproj.animals
import com.manbus.testproj.animals.animal  //interface definition for 
all animals


class Dog implements Animal{
   private name:String
   public function Dog(name){this.name=name;}
}


I hope that this helps.


package MyPackage

thanks for ideas,

Rob

On Sat, 24 Mar 2007 09:26:10 -0400, Ron Wheeler 
<[EMAIL PROTECTED]> wrote:



Something to try

change
import MyPackage.*;
to import myPackage.HelloWorld

import myPackage.MyClass


See if the errors change.

Ron

Merrill, Jason wrote:

I dunno, that's how I have it set up and it works fine for me - Perhaps
your Flash 9 Preview Alpha is messed up.  I assume your publish 
settings

are all correct, - I don't know why it would do that.

Jason Merrill
Bank of America  GT&O Learning & Leadership Development
eTools & Multimedia Team




___
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] empty textfield of type "input" and embedded font

2007-03-26 Thread Steven Sacks | BLITZ
VM1 requires that you wait a frame before certain methods of dynamically
attached clips are available.  The easiest way around this is to put a
method configUI(); on frame 1 of the timeline in your clip and put that
method in your class to do what you need to do.

And if any of y'all on Flashcoders think that's dirty, go on back to
whatever language you came from.  This here is Flash territory and we
don't kin to you uppity Java types. Yee-haw!  ;)

The alternatives are:

private var fCount:Number = 0;

function ClassName()
{
this.onEnterFrame = function() {
if (this.fCount++ > 0) {
configUI();
}
};
}
function configUI()
{
// do whatever
}

OR

private var frameInterval:Number;

function ClassName()
{
frameInterval = setInterval(this, "configUI", 50);
}
function configUI()
{
clearInterval(frameInterval);
// do whatever
}
___
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] Image resizer that maintains ratio

2007-03-26 Thread Guilherme Cruz

The "_scale" property is a percentage value
if you have a 800x600 image and set _xscale=50 and _yscale=50, you get a
400x300 image




On 3/26/07, Hans Wichman < [EMAIL PROTECTED]> wrote:


Hi,
that IS weird, because if your image is 800x600, you are saying:
   target_mc._xscale = target_mc._yscale = 800;

which is probably not what you want^^

greetz
JC


On 3/26/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
>
> Ok that is SO weird. I was just thinking about this...
>
> myListener.onLoadInit = function( target_mc:MovieClip ):Void
> {
>target_mc._xscale = target_mc._yscale = Math.max( target_mc._width,
> target_mc._height );
> };
>
> - Eric
>
>
> On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:
> >
> > Any examples out there?
> >
> > I've got as far as resizing a user supplied image and am about to work
> on
> > the ratio remaining fixed. Just thought I'd throw this out there as I
> > think
> > it may be tricky.
> >
> > Ta.
> >
> > Adrian
> >
> > ___
> > 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
> >
>
>
>
> --
> eric e. dolecki
> senior interactive engineer
> http://www.ericd.net
> ___
> 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@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] OT - Installing PHP, MySQL?

2007-03-26 Thread Gustavo Duenas

mysql.com

On Mar 26, 2007, at 11:54 AM, Dave Mennenoh wrote:

Thanks everyone, for the advice. They're giving remote desktop  
access, so I'm going to install and see how it goes...


Anyone know a good SQL group?



Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
___
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] Site Check [dm9ddb.com.br]

2007-03-26 Thread Mauricio Furtado Massaia

Thx Wag.

[]s

On 3/26/07, Wagner Amaral <[EMAIL PROTECTED]> wrote:


Just a tip?

http://blog.deconcept.com/swfobject/

It's nice, anyway
(e vai brasil! =P)



On 3/26/07, Mauricio Furtado Massaia <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> Wagner Paula and I have worked on DM9DDB´s WebSite and we are really
proud
> of this job.
> The navigation and design are a little bit oldskool. In fact everything
on
> this site was made by OOP Classes and Standard code what really makes me
> happy about that.
>
> I would like to get some comments about how is it for you guys.
>
> Looking forward for your comments.
>
>
> http://dm9ddb.com.br
>
> MauricioMassaia
> ___
> 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@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] As3 Reccomended Book

2007-03-26 Thread Jim Armstrong

Merrill, Jason wrote:

there just aren't a lot of AS3 specific books out there yet.  There are
several in the works though.  
  

Moock's EAS3 is available for preorder,

http://www.amazon.com/exec/obidos/ASIN/0596526946/ref=nosim/moockorg

regards,

- jim


--
Jim Armstrong::Mathematician::Algorithmist::Programmer
Singularity::www.algorithmist.net
Blog::algorithmist.wordpress.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] Actionscript 3.0 help w/ simple HelloWorld

2007-03-26 Thread Rob Romanek
On Mon, 26 Mar 2007 12:17:10 -0400, elibol <[EMAIL PROTECTED]>  
wrote:



Here is a good article on class/package syntax and structure:

http://probertson.com/articles/2006/07/28/one-file-many-as3-classes/


___
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] Actionscript 3.0 help w/ simple HelloWorld

2007-03-26 Thread Rob Romanek

Hi Ron and elibol,

Thanks for the explanations and link both helped straighten out my  
understanding of the packaging structure.


Rob

On Mon, 26 Mar 2007 12:17:10 -0400, elibol <[EMAIL PROTECTED]>
wrote:


Here is a good article on class/package syntax and structure:

http://probertson.com/articles/2006/07/28/one-file-many-as3-classes/


and

On Mon, 26 Mar 2007 13:08:48 -0400, Ron Wheeler  
<[EMAIL PROTECTED]> wrote:


The following would be a good directory structure for your  
documentation, sources and test specifications (there could be lots of  
other directories but the main one is the source directory

___
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] flash and Arabic

2007-03-26 Thread James Tu
We have an approach to deal with a list of 100 phrases in Arabic.   
When you copy and paste a phrase of Arabic into a Flash textbox,  
Flash reverses it!  So, we first reversed the characters outside of  
Flash and then copied and pasted the phrases into Flash.  Problem  
solved right?


We'll, when someone that can read Arabic read it, they told us that  
the characters look funny.  In essence, the characters weren't  
connecting to each other correctly!  It's as if you took a cursive  
font and laid out the characters and the cursive writing was not  
continuous.


Does anyone have any suggestions on handling Flash and Arabic?  I did  
some extensive searching and there aren't any definitive  
solutions...Some suggested using a special Flash Arabic font, which I  
couldn't find.


Help!
-James

___
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] Site Check [dm9ddb.com.br]

2007-03-26 Thread Jonathan Fung

Very slick :)

another quick observation - some items get overlapped
since placement appears random, i can't provide a reliable example

might be a good idea to hide/fade out items that are less than an arbitrary
distance from the viewer's position to avoid this.

On 3/26/07, Wagner Amaral <[EMAIL PROTECTED]> wrote:


Just a tip?

http://blog.deconcept.com/swfobject/

It's nice, anyway
(e vai brasil! =P)



On 3/26/07, Mauricio Furtado Massaia <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> Wagner Paula and I have worked on DM9DDB´s WebSite and we are really
proud
> of this job.
> The navigation and design are a little bit oldskool. In fact everything
on
> this site was made by OOP Classes and Standard code what really makes me
> happy about that.
>
> I would like to get some comments about how is it for you guys.
>
> Looking forward for your comments.
>
>
> http://dm9ddb.com.br
>
> MauricioMassaia
> ___
> 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@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] Site Check [dm9ddb.com.br]

2007-03-26 Thread dr.ache

when you use fullscreen flash, take care of the people with
greater solutions on their screens. my ibm has 1920 pixels in
width and i see white space left and right.

all in all, good job

Mauricio Furtado Massaia schrieb:

Hi guys,

Wagner Paula and I have worked on DM9DDB´s WebSite and we are really 
proud

of this job.
The navigation and design are a little bit oldskool. In fact 
everything on

this site was made by OOP Classes and Standard code what really makes me
happy about that.

I would like to get some comments about how is it for you guys.

Looking forward for your comments.


http://dm9ddb.com.br

MauricioMassaia
___
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] empty textfield of type "input" and embedded font

2007-03-26 Thread Matthias Dittgen

Thanks to you all, even Steven! ;-)
I now use setNewTextFormat again, which worked and works best for me.
It works not in combination with htmlText, so I still use plain text
for my input fields. I make a note to myself to not trying to change
again. :-)))

@Bianca: Yes this workaround with react on getting focus is possible
but makes things very complicated.

@Arul: I am not so convinced of using onLoad(), because I don't see
any advantages, because my MovieClips are made by classes only and
everything they use like embedded fonts are already existent/loaded to
the flashplayer, that I am sure.
And in the API Doc stands "You use this handler only with movie clips
for which you have a symbol in the library that is associated with a
class.", so I don't know, if it makes a difference to my textfield
problem. I am going to check this..

@Steven: I am into Flash for a while now! I am not going back! :-) I
don't like to always wait for one frame, because these frames would
become more&more the more UI classes I would attach within the
configUI methods of their parents.. you know.
Hacks and workaround are not so special to ActionScript, I think. I
think, Javascript is beating AS a lot since AJAX arrived.

But thanks to all again for sharing their suggestions and experience,
because this is, what makes Flashcoders and the Flash community that
great.

Regards,
Matthias
___
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] Video Gallery

2007-03-26 Thread Juan Anzaldo
I am doing a Video Gallery in flash, Im loading the FLV files dynamically, I 
want to know the totalTime of the new video loaded, Im using the totalTime 
property after load the FLV but It doesnt work.
I need the total duration of each video, how can I do?, any ideas?

function carga() 
{
video_mc.visible = false;
video_mc.stop();
video_mc.setMedia("video1.flv");
//video_mc.contentPath = "video1.flv";
onEnterFrame = function() 
  {
btotal = video_mc.bytesTotal;
bcargados = video_mc.bytesLoaded;
redondeo = Math.round((bcargados*100)/btotal);
barraProgreso_mc.barra_mc._xscale = redondeo;
if (redondeo >= 100) 
{
delete onEnterFrame;
cargado = true; 
   
duracionTotal  = video_mc.totalTime;
}
  }
}//carga


 
Ing. Juan Anzaldo
Tel Cel. 614 427-6523
Blog : http://janzaldo.wordpress.com

- Original Message 
From: Rob Romanek <[EMAIL PROTECTED]>
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, March 26, 2007 10:59:46 AM
Subject: Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

On Mon, 26 Mar 2007 12:17:10 -0400, elibol <[EMAIL PROTECTED]>  
wrote:

> Here is a good article on class/package syntax and structure:
>
> http://probertson.com/articles/2006/07/28/one-file-many-as3-classes/
>
___
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







 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
___
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] Image resizer that maintains ratio

2007-03-26 Thread Joe Wheeler
Here's how I do it:

function maintainAspect ( mc:MovieClip, maxW:Number, maxH:Number ) :Void
{
mc._width  = maxW;
mc._height = maxH;
mc._xscale = mc._yscale = Math.min( mc._xscale, mc._yscale );
}



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Guilherme
Cruz
Sent: 26 March 2007 18:15
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Image resizer that maintains ratio

The "_scale" property is a percentage value if you have a 800x600 image and
set _xscale=50 and _yscale=50, you get a 400x300 image




On 3/26/07, Hans Wichman < [EMAIL PROTECTED]> wrote:
>
> Hi,
> that IS weird, because if your image is 800x600, you are saying:
>target_mc._xscale = target_mc._yscale = 800;
>
> which is probably not what you want^^
>
> greetz
> JC
>
>
> On 3/26/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
> >
> > Ok that is SO weird. I was just thinking about this...
> >
> > myListener.onLoadInit = function( target_mc:MovieClip ):Void {
> >target_mc._xscale = target_mc._yscale = Math.max( 
> > target_mc._width, target_mc._height ); };
> >
> > - Eric
> >
> >
> > On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:
> > >
> > > Any examples out there?
> > >
> > > I've got as far as resizing a user supplied image and am about to 
> > > work
> > on
> > > the ratio remaining fixed. Just thought I'd throw this out there 
> > > as I think it may be tricky.
> > >
> > > Ta.
> > >
> > > Adrian
> > >
> > > ___
> > > 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
> > >
> >
> >
> >
> > --
> > eric e. dolecki
> > senior interactive engineer
> > http://www.ericd.net
> > ___
> > 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@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] setting a timer in flash 8

2007-03-26 Thread Joe Wheeler
Don't forget to clear the interval inside the function you call - otherwise
it will repeat on and on. It's also best practice to clear an interval
before you set it (in case it gets set twice). 

If you only want the function called once you can also use
_global.setTimeout( func, time ).

J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Parvaiz
Patel
Sent: 26 March 2007 13:51
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] setting a timer in flash 8

Hi Gustave,
 
Here is the answer to your query.
 
The best way for any timing related task is to use Interval.
 
Here is the syntax:
var :Number = setInterval(, );
 
function (){
 
//do your task here..
 
}
 

 
The following is the example for your inderstanding & testing.
 
 
 
this.createTextField("date_txt", this.getNextHighestDepth(), 10, 10, 100,
22); date_txt.autoSize = true; date_txt.selectable = true;
 
var date_interval:Number = setInterval(updateTime, 500, date_txt);
 
function updateTime(my_txt:TextField) {
my_txt.text = new Date().toString(); trace(my_txt.text); }
 
 
I hope, this is well enough to solve your problem.
 
Thanks & regards,
 
Parvaiz Patel.  
 
 
 
 
> Gustavo Duenas wrote:
>> Hi, I'm trying to set a timer to trigger a event after 20 seconds or 
>> less, but so far i have this code, but with no results someone help 
>> me? .
>> I don't know how could I got into but some help might be needed
>>
>>
>> this is the code: is inside the first frame of a movie clip and the 4

>> frame has: gotoAndPlay(1);
>>
>>
>> var now = getTimer();
>> var seconds:Number = now/1000;
>> var later:Number = seconds+20;
>> this.onEnterFrame= function (){
>> if(seconds == later){
>> trace("llegamos");
>>}
>> }
>> trace(seconds);
>>
>>
>>
>> Regards
>>
>>
>> Gustavo Duenas
>>
>>
>>
>> ___
>> 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@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@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] Multiple streaming sounds cut off during playback

2007-03-26 Thread Ryan Burrell

Hello all,

I am experiencing an issue with some streaming sounds that I pull in. I have
an example up here: http://www.humanussonus.org/flash/co.../conflict.html.
Basically, the problem is that after rolling over these images (which then
dynamically stream in a random sound) the sounds will cutoff mid-go. This
appears to be entirely at random as well, so I've been having a hard time
troubleshooting it. I have the source file and needed sounds available here:
http://www.humanussonus.org/flash/conflict/conflict.zip.

Any ideas that anyone has are more than welcome. I've tried several
different approaches, including putting a control in to only allow a certain
number of sounds to be playing at any one time. I have been unable to find
mention of this sort of problem through my searches; I'm wondering if my
approach needs to be re-evaluated as to how I am pulling in these random
sounds dynamically.

In this particular file (I have others I am working on) the cutoff normally
occurs when multiple sounds are playing at the same time. According to my
research, Flash is *supposed* to be able to have 32 channels of sound in FP
8 & 9. However, the cutoff does not occur when hitting the 32 sound mark (or
even 16, not certain if it tracks stereo as dual-channel or not).

To complicate things more, I have put in code to limit the simultaneous
sounds to 6 at any given time (this code is commented out in the version I
have up on the web; it is in the source file however). I figured that this
would fix the issue, but the problem still occurs if you get multiple
streaming sounds going at the same time*and* it still doesn't happen
consistently.

Are there other methods to load sound in dynamically from a source directory
without using Media Server? Perhaps storing things in an array? (why this
would matter I don't know).  I'd prefer to get my current setup working as
it is easy to add more sound files to and very low in size.

Thank you in advance for any help.
RB
___
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] Multiple streaming sounds cut off during playback

2007-03-26 Thread Jason Cordial

First suggestion, keep all your actionscript on one frame. Searching through
everything is making it a real pain to debug. I'm looking at it right now,
if I find anything I'll let you know.

On 3/26/07, Ryan Burrell <[EMAIL PROTECTED]> wrote:


Hello all,

I am experiencing an issue with some streaming sounds that I pull in. I
have
an example up here: http://www.humanussonus.org/flash/co.../conflict.html.
Basically, the problem is that after rolling over these images (which then
dynamically stream in a random sound) the sounds will cutoff mid-go. This
appears to be entirely at random as well, so I've been having a hard time
troubleshooting it. I have the source file and needed sounds available
here:
http://www.humanussonus.org/flash/conflict/conflict.zip.

Any ideas that anyone has are more than welcome. I've tried several
different approaches, including putting a control in to only allow a
certain
number of sounds to be playing at any one time. I have been unable to find
mention of this sort of problem through my searches; I'm wondering if my
approach needs to be re-evaluated as to how I am pulling in these random
sounds dynamically.

In this particular file (I have others I am working on) the cutoff
normally
occurs when multiple sounds are playing at the same time. According to my
research, Flash is *supposed* to be able to have 32 channels of sound in
FP
8 & 9. However, the cutoff does not occur when hitting the 32 sound mark
(or
even 16, not certain if it tracks stereo as dual-channel or not).

To complicate things more, I have put in code to limit the simultaneous
sounds to 6 at any given time (this code is commented out in the version I
have up on the web; it is in the source file however). I figured that this
would fix the issue, but the problem still occurs if you get multiple
streaming sounds going at the same time*and* it still doesn't happen
consistently.

Are there other methods to load sound in dynamically from a source
directory
without using Media Server? Perhaps storing things in an array? (why this
would matter I don't know).  I'd prefer to get my current setup working as
it is easy to add more sound files to and very low in size.

Thank you in advance for any help.
RB
___
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





--
Jason Cordial
VIA 2 Lab Grunt - Waist deep beneath the borderline...
Life is a euhemerism...
http://bsu.edu/blogcaster2/jason/
___
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] Multiple streaming sounds cut off during playback

2007-03-26 Thread Ryan Burrell

Thank you for your help.  I have several other options that I am going to
try out to see if I can get something working, but anything that anyone may
happen to notice or suggest on this is appreciated.  I work tech support for
a living and the worst type of problem to fix is one that is sporadic...just
like this one.

On 3/26/07, Jason Cordial <[EMAIL PROTECTED]> wrote:


First suggestion, keep all your actionscript on one frame. Searching
through
everything is making it a real pain to debug. I'm looking at it right now,
if I find anything I'll let you know.

On 3/26/07, Ryan Burrell <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I am experiencing an issue with some streaming sounds that I pull in. I
> have
> an example up here:
http://www.humanussonus.org/flash/co.../conflict.html.
> Basically, the problem is that after rolling over these images (which
then
> dynamically stream in a random sound) the sounds will cutoff mid-go.
This
> appears to be entirely at random as well, so I've been having a hard
time
> troubleshooting it. I have the source file and needed sounds available
> here:
> http://www.humanussonus.org/flash/conflict/conflict.zip.
>
> Any ideas that anyone has are more than welcome. I've tried several
> different approaches, including putting a control in to only allow a
> certain
> number of sounds to be playing at any one time. I have been unable to
find
> mention of this sort of problem through my searches; I'm wondering if my
> approach needs to be re-evaluated as to how I am pulling in these random
> sounds dynamically.
>
> In this particular file (I have others I am working on) the cutoff
> normally
> occurs when multiple sounds are playing at the same time. According to
my
> research, Flash is *supposed* to be able to have 32 channels of sound in
> FP
> 8 & 9. However, the cutoff does not occur when hitting the 32 sound mark
> (or
> even 16, not certain if it tracks stereo as dual-channel or not).
>
> To complicate things more, I have put in code to limit the simultaneous
> sounds to 6 at any given time (this code is commented out in the version
I
> have up on the web; it is in the source file however). I figured that
this
> would fix the issue, but the problem still occurs if you get multiple
> streaming sounds going at the same time*and* it still doesn't happen
> consistently.
>
> Are there other methods to load sound in dynamically from a source
> directory
> without using Media Server? Perhaps storing things in an array? (why
this
> would matter I don't know).  I'd prefer to get my current setup working
as
> it is easy to add more sound files to and very low in size.
>
> Thank you in advance for any help.
> RB
> ___
> 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
>



--
Jason Cordial
VIA 2 Lab Grunt - Waist deep beneath the borderline...
Life is a euhemerism...
http://bsu.edu/blogcaster2/jason/
___
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] Got milk? (the game)

2007-03-26 Thread Mauricio Furtado Massaia

See how it how it was built at : http://www.h4che.com/Milko/

=P


On 3/23/07, laurent untereiner <[EMAIL PROTECTED]> wrote:


Selon Matthias Dittgen <[EMAIL PROTECTED]>:

> The big plus for this game is the idea.

It's the key! sure it's technicaly "trop fort", but I think the first
parameter for a success game
is the idea.

I seek literature on this subject, some ideas?


> And there's too much preloading which lasts too long, even with fast
DSL.
> That's annoying.
> The big plus for this game is the idea.
>
> 2007/3/22, Kerem Ýþeri <[EMAIL PROTECTED]>:
> > Really amazing game but i dont think there is hard programming behind
it.
> > Maximum 2 developer can handle the coding. I think graphics and 3d's
are so
> > cool. It takes a lot of time to get these kind of qualified and
optimized
> > renders. Its beautiful.
> >
> > Respect!! :)
> >
> > Kerem.
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > [EMAIL PROTECTED]
> > Sent: Thursday, March 22, 2007 4:16 PM
> > To: flashcoders@chattyfig.figleaf.com
> > Subject: RE: [Flashcoders] Got milk? (the game)
> >
> > WOW!
> >
> >
> > http://www.gettheglass.com
> >
> > How much time for this game project? How much developer?
> >
> > C'est magnifique!
> >
> > --
> > Laurent Untereiner
> >
> > > skype : laurentuntereiner
> > > aim   : luntereiner
> > > icq   : 294429730
> > > msn   : [EMAIL PROTECTED]
> >
> > > http://www.untereiner.com <
> >
> > mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
> > ___
> > 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
> >
> > __ NOD32 1.1391 (20060201) Information __
> >
> > This message was checked by NOD32 antivirus system.
> > http://www.eset.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
> >
>


--
Laurent Untereiner

> skype : laurentuntereiner
> aim   : luntereiner
> icq   : 294429730
> msn   : [EMAIL PROTECTED]

> http://www.untereiner.com <

mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
___
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] timer question

2007-03-26 Thread Mauricio Furtado Massaia

Or u can use a setTimeout in Flash 8.

example:



function aaa():Void
{
   trace( "aaa called!");
}

setTimeout( this , "aaa" , 1000); // 1000 milli = 1sec





or use setInterval :

var myInterval;

function aaa()
{
   trace( "aaa called!" )
   clearInterval( myInterval );
}

myInterval = setInterval( this , "aaa" , 1000 );



hugs

MauricioMassaia


On 3/23/07, Pedro Taranto <[EMAIL PROTECTED]> wrote:


you should use setInterval, see it in documentation

--Pedro Taranto


Gustavo Duenas escreveu:
> Hi, I'm trying to launch an event using a timer so far the code for
> trace something is this:
>
> var now = new Date();
>
> var seconds:Number = now.getSeconds();
>
> trace(seconds);
>
> var newSeconds: Number = seconds+10;
>
> if ( seconds == newSeconds){
> trace("plus 10");
> }
>
> var seconds:Number = seconds;
>
>
>
> the problem is that this ones doesn't trace" plus 10", instead just
> traces the var seconds.
>
> Do you know what is wrong here?
>
>
> Regards.
>
>
>
> Gustavo Duenas
>
> ___
> 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@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] As3 Reccomended Book

2007-03-26 Thread sean
There's a new book from Friends of Ed called Foundation AS3 for Flex and
Flash which will be an excellent intro to AS3.

> Hi List, I just wanted to ask about the best AS3 Book to begin my path to
> AS3I allready code in As2 but know nothing about AS3 yet... What would
> recommend???
>
> --
> Omar Fouad - Digital Emotions...
>
> Love is always patient and kind. It is never jealous. Love is never
> boastful
> nor conceited It is never rude or selfish. It does not take offense and is
> not resentful. Love takes no pleasure in other people's sins...but
> delights
> in the truth. It is always ready to excuse, to trust, to hope... and to
> endure... whatever comes.
> ___
> 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] Video Gallery

2007-03-26 Thread Mauricio Furtado Massaia

Juan,

You can also check the metadata of the FLV video (
http://livedocs.adobe.com/flash/8/main/2562.html
).

i hope it helps.

MauricioMassaia

On 3/26/07, Juan Anzaldo <[EMAIL PROTECTED]> wrote:


I am doing a Video Gallery in flash, Im loading the FLV files dynamically,
I want to know the totalTime of the new video loaded, Im using the totalTime
property after load the FLV but It doesnt work.
I need the total duration of each video, how can I do?, any ideas?

function carga()
{
video_mc.visible = false;
video_mc.stop();
video_mc.setMedia("video1.flv");
//video_mc.contentPath = "video1.flv";
onEnterFrame = function()
  {
btotal = video_mc.bytesTotal;
bcargados = video_mc.bytesLoaded;
redondeo = Math.round((bcargados*100)/btotal);
barraProgreso_mc.barra_mc._xscale = redondeo;
if (redondeo >= 100)
{
delete onEnterFrame;
cargado = true;
duracionTotal  = video_mc.totalTime;
}
  }
}//carga



Ing. Juan Anzaldo
Tel Cel. 614 427-6523
Blog : http://janzaldo.wordpress.com

- Original Message 
From: Rob Romanek <[EMAIL PROTECTED]>
To: flashcoders@chattyfig.figleaf.com
Sent: Monday, March 26, 2007 10:59:46 AM
Subject: Re: [Flashcoders] Actionscript 3.0 help w/ simple HelloWorld

On Mon, 26 Mar 2007 12:17:10 -0400, elibol <[EMAIL PROTECTED]>
wrote:

> Here is a good article on class/package syntax and structure:
>
> http://probertson.com/articles/2006/07/28/one-file-many-as3-classes/
>
___
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










Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
___
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] Got milk? (the game)

2007-03-26 Thread Joe Wheeler
The burning question is - what was the budget?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mauricio
Furtado Massaia
Sent: 26 March 2007 22:41
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Got milk? (the game)

See how it how it was built at : http://www.h4che.com/Milko/

=P


On 3/23/07, laurent untereiner <[EMAIL PROTECTED]> wrote:
>
> Selon Matthias Dittgen <[EMAIL PROTECTED]>:
>
> > The big plus for this game is the idea.
>
> It's the key! sure it's technicaly "trop fort", but I think the first 
> parameter for a success game is the idea.
>
> I seek literature on this subject, some ideas?
>
>
> > And there's too much preloading which lasts too long, even with fast
> DSL.
> > That's annoying.
> > The big plus for this game is the idea.
> >
> > 2007/3/22, Kerem Ýþeri <[EMAIL PROTECTED]>:
> > > Really amazing game but i dont think there is hard programming 
> > > behind
> it.
> > > Maximum 2 developer can handle the coding. I think graphics and 
> > > 3d's
> are so
> > > cool. It takes a lot of time to get these kind of qualified and
> optimized
> > > renders. Its beautiful.
> > >
> > > Respect!! :)
> > >
> > > Kerem.
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > > [EMAIL PROTECTED]
> > > Sent: Thursday, March 22, 2007 4:16 PM
> > > To: flashcoders@chattyfig.figleaf.com
> > > Subject: RE: [Flashcoders] Got milk? (the game)
> > >
> > > WOW!
> > >
> > >
> > > http://www.gettheglass.com
> > >
> > > How much time for this game project? How much developer?
> > >
> > > C'est magnifique!
> > >
> > > --
> > > Laurent Untereiner
> > >
> > > > skype : laurentuntereiner
> > > > aim   : luntereiner
> > > > icq   : 294429730
> > > > msn   : [EMAIL PROTECTED]
> > >
> > > > http://www.untereiner.com <
> > >
> > > mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
> > > ___
> > > 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
> > >
> > > __ NOD32 1.1391 (20060201) Information __
> > >
> > > This message was checked by NOD32 antivirus system.
> > > http://www.eset.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
> > >
> >
>
>
> --
> Laurent Untereiner
>
> > skype : laurentuntereiner
> > aim   : luntereiner
> > icq   : 294429730
> > msn   : [EMAIL PROTECTED]
>
> > http://www.untereiner.com <
>
> mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
> ___
> 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@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] another setInterval question

2007-03-26 Thread Raphael Villas

I have got a setInterval like this:

-
var autoID = setInterval(autoPilot,5000);

function autoPilot():Void {
nextScene();
};
-

If a rollover occurs, I'd like to pause the setInterval until the  
rollout occurs. Is there a way to suspend the setInterval during a   
rollover and then restart it onRollOut?


Thanks in advance...
___
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] Multiple streaming sounds cut off during playback

2007-03-26 Thread Jason Cordial

I tried the online version, and I saw your problem.

Off the top of my head, declare an array for all the different sounds. Like

var soundsNowPlaying:Array = new Array();

keep setting sounds like

soundsNowPlaying[soundsNowPlaying.length+1] = new Sound blah blah

I think the problem might be that you're overwriting the sound every time
the next one starts playing, which causes the problem.



On 3/26/07, Ryan Burrell <[EMAIL PROTECTED]> wrote:


Thank you for your help.  I have several other options that I am going to
try out to see if I can get something working, but anything that anyone
may
happen to notice or suggest on this is appreciated.  I work tech support
for
a living and the worst type of problem to fix is one that is
sporadic...just
like this one.

On 3/26/07, Jason Cordial <[EMAIL PROTECTED]> wrote:
>
> First suggestion, keep all your actionscript on one frame. Searching
> through
> everything is making it a real pain to debug. I'm looking at it right
now,
> if I find anything I'll let you know.
>
> On 3/26/07, Ryan Burrell <[EMAIL PROTECTED]> wrote:
> >
> > Hello all,
> >
> > I am experiencing an issue with some streaming sounds that I pull in.
I
> > have
> > an example up here:
> http://www.humanussonus.org/flash/co.../conflict.html.
> > Basically, the problem is that after rolling over these images (which
> then
> > dynamically stream in a random sound) the sounds will cutoff mid-go.
> This
> > appears to be entirely at random as well, so I've been having a hard
> time
> > troubleshooting it. I have the source file and needed sounds available
> > here:
> > http://www.humanussonus.org/flash/conflict/conflict.zip.
> >
> > Any ideas that anyone has are more than welcome. I've tried several
> > different approaches, including putting a control in to only allow a
> > certain
> > number of sounds to be playing at any one time. I have been unable to
> find
> > mention of this sort of problem through my searches; I'm wondering if
my
> > approach needs to be re-evaluated as to how I am pulling in these
random
> > sounds dynamically.
> >
> > In this particular file (I have others I am working on) the cutoff
> > normally
> > occurs when multiple sounds are playing at the same time. According to
> my
> > research, Flash is *supposed* to be able to have 32 channels of sound
in
> > FP
> > 8 & 9. However, the cutoff does not occur when hitting the 32 sound
mark
> > (or
> > even 16, not certain if it tracks stereo as dual-channel or not).
> >
> > To complicate things more, I have put in code to limit the
simultaneous
> > sounds to 6 at any given time (this code is commented out in the
version
> I
> > have up on the web; it is in the source file however). I figured that
> this
> > would fix the issue, but the problem still occurs if you get multiple
> > streaming sounds going at the same time*and* it still doesn't
happen
> > consistently.
> >
> > Are there other methods to load sound in dynamically from a source
> > directory
> > without using Media Server? Perhaps storing things in an array? (why
> this
> > would matter I don't know).  I'd prefer to get my current setup
working
> as
> > it is easy to add more sound files to and very low in size.
> >
> > Thank you in advance for any help.
> > RB
> > ___
> > 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
> >
>
>
>
> --
> Jason Cordial
> VIA 2 Lab Grunt - Waist deep beneath the borderline...
> Life is a euhemerism...
> http://bsu.edu/blogcaster2/jason/
> ___
> 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





--
Jason Cordial
VIA 2 Lab Grunt - Waist deep beneath the borderline...
Life is a euhemerism...
http://bsu.edu/blogcaster2/jason/
___
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] openBound Class

2007-03-26 Thread Martin Klasson

Hi all,

I found a jsfl-script which opens up the selected library-items class in 
the Flash IDE,
but is there so that i can open the class-file through jsfl in another 
application, as in FlashDevelop

-even if it surely means hardcoding the path to my FlashDevelop.

is that possible?
___
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] another setInterval question

2007-03-26 Thread Helmut Granda

yourbutton.onRollOver = function

clearInterval(autoID);

}

yourbutton.onRollOut = function() {
setInterval(autoPilot, 5000);
}

On 3/26/07, Raphael Villas <[EMAIL PROTECTED]> wrote:


I have got a setInterval like this:

-
var autoID = setInterval(autoPilot,5000);

function autoPilot():Void {
nextScene();
};
-

If a rollover occurs, I'd like to pause the setInterval until the
rollout occurs. Is there a way to suspend the setInterval during a
rollover and then restart it onRollOut?

Thanks in advance...
___
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] setting a timer in flash 8

2007-03-26 Thread Gustavo Duenas
thanks to all of you guys..now I did it and I've just trigger an  
event using the time.

  thanks to all.


Gustavo Duenas
On Mar 26, 2007, at 4:24 PM, Joe Wheeler wrote:

Don't forget to clear the interval inside the function you call -  
otherwise

it will repeat on and on. It's also best practice to clear an interval
before you set it (in case it gets set twice).

If you only want the function called once you can also use
_global.setTimeout( func, time ).

J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of  
Parvaiz

Patel
Sent: 26 March 2007 13:51
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] setting a timer in flash 8

Hi Gustave,

Here is the answer to your query.

The best way for any timing related task is to use Interval.

Here is the syntax:
var :Number = setInterval(,  

interval in millisecond>);

function (){

//do your task here..

}



The following is the example for your inderstanding & testing.



this.createTextField("date_txt", this.getNextHighestDepth(), 10,  
10, 100,

22); date_txt.autoSize = true; date_txt.selectable = true;

var date_interval:Number = setInterval(updateTime, 500, date_txt);

function updateTime(my_txt:TextField) {
my_txt.text = new Date().toString(); trace(my_txt.text); }


I hope, this is well enough to solve your problem.

Thanks & regards,

Parvaiz Patel.





Gustavo Duenas wrote:

Hi, I'm trying to set a timer to trigger a event after 20 seconds or
less, but so far i have this code, but with no results someone help
me? .
I don't know how could I got into but some help might be needed


this is the code: is inside the first frame of a movie clip and  
the 4



frame has: gotoAndPlay(1);


var now = getTimer();
var seconds:Number = now/1000;
var later:Number = seconds+20;
this.onEnterFrame= function (){
if(seconds == later){
trace("llegamos");
   }
}
trace(seconds);



Regards


Gustavo Duenas



___
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@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@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] another setInterval question

2007-03-26 Thread Mauricio Furtado Massaia

i think so , like this :

var intervalID;

function initInterva()
{
   intervalID = setInterval( this , "nextScene" , 5000 );
}

function stopInterval()
{
   clearInterval( intervalID );
}


// onRollOver will stop the interval
my_mc.onRollOver = function (){
   stopInterval();
}

// onRollOut restart the interval
my_mc.onRollOut = function(){
   initInterval();
}


// start your interval
initInterval();


I wish it helps

hugs

MauricioMassaia




On 3/26/07, Raphael Villas <[EMAIL PROTECTED]> wrote:


I have got a setInterval like this:

-
var autoID = setInterval(autoPilot,5000);

function autoPilot():Void {
nextScene();
};
-

If a rollover occurs, I'd like to pause the setInterval until the
rollout occurs. Is there a way to suspend the setInterval during a
rollover and then restart it onRollOut?

Thanks in advance...
___
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] Determining the final URL of a resource

2007-03-26 Thread Daniel Thompson
I am attempting to determine the final URL of a resource on the web (an
MP3). When the URLRequest is provided to the Sound object, it handles
(transparently) the redirects (301, 302). I need access to those server
messages.

I have tried creating a socket in order to do simple HEAD requests... but
the crossdomain policy requirement is stopping this path short.

How can I determine the final location of a file in ActionScript 3?

Thanks,
-DT


___
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] Video Gallery

2007-03-26 Thread Muzak
http://livedocs.adobe.com/flash/8/main/3622.html
http://livedocs.adobe.com/flash/8/main/3561.html
http://livedocs.adobe.com/flash/8/main/3560.html



- Original Message - 
From: "Juan Anzaldo" <[EMAIL PROTECTED]>
To: 
Sent: Monday, March 26, 2007 9:35 PM
Subject: [Flashcoders] Video Gallery


>I am doing a Video Gallery in flash, Im loading the FLV files dynamically, I 
>want to know the totalTime of the new video loaded, Im 
>using the totalTime property after load the FLV but It doesnt work.
> I need the total duration of each video, how can I do?, any ideas?
>
> function carga()
>{
>video_mc.visible = false;
>video_mc.stop();
>video_mc.setMedia("video1.flv");
>//video_mc.contentPath = "video1.flv";
>onEnterFrame = function()
>  {
>btotal = video_mc.bytesTotal;
>bcargados = video_mc.bytesLoaded;
>redondeo = Math.round((bcargados*100)/btotal);
>barraProgreso_mc.barra_mc._xscale = redondeo;
>if (redondeo >= 100)
>{
>delete onEnterFrame;
>cargado = true;
>duracionTotal  = video_mc.totalTime;
>}
>  }
>}//carga
>
>
>
> Ing. Juan Anzaldo


___
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] another setInterval question

2007-03-26 Thread Muzak
Might as well throw in Delegate while you're at it:

import mx.utils.Delegate;
var intervalID:Number;

function rolloverHandler() {
// always clear interval before setting a new one
clearInterval(intervalID);
intervalID = setInterval(this , "nextScene" , 5000 );
}
function rolloutHandler() {
clearInterval(intervalID);
}

my_mc.onRollOver = Delegate.create(this, rolloverHandler);
my_mc.onRollOut = Delegate.create(this, rolloutHandler);

rolloverHandler();

regards,
Muzak

- Original Message - 
From: "Mauricio Furtado Massaia" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 27, 2007 12:46 AM
Subject: Re: [Flashcoders] another setInterval question


>i think so , like this :
>
> var intervalID;
>
> function initInterva()
> {
>intervalID = setInterval( this , "nextScene" , 5000 );
> }
>
> function stopInterval()
> {
>clearInterval( intervalID );
> }
>
>
> // onRollOver will stop the interval
> my_mc.onRollOver = function (){
>stopInterval();
> }
>
> // onRollOut restart the interval
> my_mc.onRollOut = function(){
>initInterval();
> }
>
>
> // start your interval
> initInterval();
>
>
> I wish it helps
>
> hugs
>
> MauricioMassaia
>
>
>
>
> On 3/26/07, Raphael Villas <[EMAIL PROTECTED]> wrote:
>>
>> I have got a setInterval like this:
>>
>> -
>> var autoID = setInterval(autoPilot,5000);
>>
>> function autoPilot():Void {
>> nextScene();
>> };
>> -
>>
>> If a rollover occurs, I'd like to pause the setInterval until the
>> rollout occurs. Is there a way to suspend the setInterval during a
>> rollover and then restart it onRollOut?
>>
>> Thanks in advance...


___
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] Multiple streaming sounds cut off during playback

2007-03-26 Thread Ryan Burrell

Can you give me a more specific example of how to go about setting up the
array and pulling sounds from it?  I've worked with arrays before, but not
extensively.  I'm just unsure of the syntax.

On 3/26/07, Jason Cordial <[EMAIL PROTECTED]> wrote:


I tried the online version, and I saw your problem.

Off the top of my head, declare an array for all the different sounds.
Like

var soundsNowPlaying:Array = new Array();

keep setting sounds like

soundsNowPlaying[soundsNowPlaying.length+1] = new Sound blah blah

I think the problem might be that you're overwriting the sound every time
the next one starts playing, which causes the problem.



On 3/26/07, Ryan Burrell <[EMAIL PROTECTED]> wrote:
>
> Thank you for your help.  I have several other options that I am going
to
> try out to see if I can get something working, but anything that anyone
> may
> happen to notice or suggest on this is appreciated.  I work tech support
> for
> a living and the worst type of problem to fix is one that is
> sporadic...just
> like this one.
>
> On 3/26/07, Jason Cordial <[EMAIL PROTECTED]> wrote:
> >
> > First suggestion, keep all your actionscript on one frame. Searching
> > through
> > everything is making it a real pain to debug. I'm looking at it right
> now,
> > if I find anything I'll let you know.
> >
> > On 3/26/07, Ryan Burrell <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello all,
> > >
> > > I am experiencing an issue with some streaming sounds that I pull
in.
> I
> > > have
> > > an example up here:
> > http://www.humanussonus.org/flash/co.../conflict.html.
> > > Basically, the problem is that after rolling over these images
(which
> > then
> > > dynamically stream in a random sound) the sounds will cutoff mid-go.
> > This
> > > appears to be entirely at random as well, so I've been having a hard
> > time
> > > troubleshooting it. I have the source file and needed sounds
available
> > > here:
> > > http://www.humanussonus.org/flash/conflict/conflict.zip.
> > >
> > > Any ideas that anyone has are more than welcome. I've tried several
> > > different approaches, including putting a control in to only allow a
> > > certain
> > > number of sounds to be playing at any one time. I have been unable
to
> > find
> > > mention of this sort of problem through my searches; I'm wondering
if
> my
> > > approach needs to be re-evaluated as to how I am pulling in these
> random
> > > sounds dynamically.
> > >
> > > In this particular file (I have others I am working on) the cutoff
> > > normally
> > > occurs when multiple sounds are playing at the same time. According
to
> > my
> > > research, Flash is *supposed* to be able to have 32 channels of
sound
> in
> > > FP
> > > 8 & 9. However, the cutoff does not occur when hitting the 32 sound
> mark
> > > (or
> > > even 16, not certain if it tracks stereo as dual-channel or not).
> > >
> > > To complicate things more, I have put in code to limit the
> simultaneous
> > > sounds to 6 at any given time (this code is commented out in the
> version
> > I
> > > have up on the web; it is in the source file however). I figured
that
> > this
> > > would fix the issue, but the problem still occurs if you get
multiple
> > > streaming sounds going at the same time*and* it still doesn't
> happen
> > > consistently.
> > >
> > > Are there other methods to load sound in dynamically from a source
> > > directory
> > > without using Media Server? Perhaps storing things in an array? (why
> > this
> > > would matter I don't know).  I'd prefer to get my current setup
> working
> > as
> > > it is easy to add more sound files to and very low in size.
> > >
> > > Thank you in advance for any help.
> > > RB
> > > ___
> > > 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
> > >
> >
> >
> >
> > --
> > Jason Cordial
> > VIA 2 Lab Grunt - Waist deep beneath the borderline...
> > Life is a euhemerism...
> > http://bsu.edu/blogcaster2/jason/
> > ___
> > 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
>



--
Jason Cordial
VIA 2 Lab Grunt

[Flashcoders] Flash modify

2007-03-26 Thread Phil Smith
Hi. I am using a Flash template and I want to modify it so that it starts at 
frame 161 each time, as a return page without intro. Anyone got an easy 
solution?
Cheers, Phil Smith.
___
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] Embedded video playback problem?

2007-03-26 Thread Martin Scott Goldberg
Having an issue with video playback in AS2/Flash 8 I'm hoping someone can
help with. I created an .swf that's just for playing back an .flv that's
stored on my website.

The content path in the FLVPlayback component was provided in the form of
a url to the location on my web server.

The issue is: when I test the swf from directly in Flash 8
(ctrl-enter), it works fine and plays the flv that's stored on the
website.  The selected media skin controller comes up fine as well.  

However, when I publish it and attempt to play it loaded through the
browser, it just sits on the first frame and the media skin
controller doesn't come up as either:

http://www.atarihq.com/pongtest/pongcommercial.html


Anyone know what's going on?



Marty
___
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] Embedded video playback problem?

2007-03-26 Thread Martin Scott Goldberg
I should also add, in the browser (FireFox) info bar at the bottom, it
states:

"Read www.atarihq.com" and just sits there like that.


Marty


>Having an issue with video playback in AS2/Flash 8 I'm hoping someone can
>help with. I created an .swf that's just for playing back an .flv that's
>stored on my website.
>
>The content path in the FLVPlayback component was provided in the form of
>a url to the location on my web server.
>
>The issue is: when I test the swf from directly in Flash 8
>(ctrl-enter), it works fine and plays the flv that's stored on the
>website.  The selected media skin controller comes up fine as well.  
>
>However, when I publish it and attempt to play it loaded through the
>browser, it just sits on the first frame and the media skin
>controller doesn't come up as either:
>
>http://www.atarihq.com/pongtest/pongcommercial.html
>
>
>Anyone know what's going on?
>
>
>
>Marty
>___
>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] Embedded video playback problem?

2007-03-26 Thread Muzak
set autoPlay to true or listen for the ready event and start the video then.

Upload the skin swf that should be in the same directory as the compiled swf.
Something like: SteelExternalAll.swf

regards,
Muzak

- Original Message - 
From: "Martin Scott Goldberg" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 27, 2007 2:09 AM
Subject: [Flashcoders] Embedded video playback problem?


> Having an issue with video playback in AS2/Flash 8 I'm hoping someone can
> help with. I created an .swf that's just for playing back an .flv that's
> stored on my website.
>
> The content path in the FLVPlayback component was provided in the form of
> a url to the location on my web server.
>
> The issue is: when I test the swf from directly in Flash 8
> (ctrl-enter), it works fine and plays the flv that's stored on the
> website.  The selected media skin controller comes up fine as well.
>
> However, when I publish it and attempt to play it loaded through the
> browser, it just sits on the first frame and the media skin
> controller doesn't come up as either:
>
> http://www.atarihq.com/pongtest/pongcommercial.html
>
>
> Anyone know what's going on?
>
>
>
> Marty


___
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] Embedded video playback problem?

2007-03-26 Thread Martin Scott Goldberg
That's the step that was missing, thanks a million.


Marty



>Upload the skin swf that should be in the same directory as the compiled swf.
>Something like: SteelExternalAll.swf
>
>regards,
>Muzak
>
>- Original Message - 
>From: "Martin Scott Goldberg" <[EMAIL PROTECTED]>
>To: 
>Sent: Tuesday, March 27, 2007 2:09 AM
>Subject: [Flashcoders] Embedded video playback problem?
>
>
>> Having an issue with video playback in AS2/Flash 8 I'm hoping someone can
>> help with. I created an .swf that's just for playing back an .flv that's
>> stored on my website.
>>
>> The content path in the FLVPlayback component was provided in the form of
>> a url to the location on my web server.
>>
>> The issue is: when I test the swf from directly in Flash 8
>> (ctrl-enter), it works fine and plays the flv that's stored on the
>> website.  The selected media skin controller comes up fine as well.
>>
>> However, when I publish it and attempt to play it loaded through the
>> browser, it just sits on the first frame and the media skin
>> controller doesn't come up as either:
>>
>> http://www.atarihq.com/pongtest/pongcommercial.html
>>
>>
>> Anyone know what's going on?
>>
>>
>>
>> Marty
>
>
>___
>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] Multiple streaming sounds cut off during playback

2007-03-26 Thread Jason Cordial

Alright, where you have

//Hold playhead here
stop();

//Declare global variable for tracking the number of sounds currently
playing
_global.soundsPlaying = 0;

//Create function to load in random sound file onRollOver
this.onRollOver = function() {
   //Check to see if soundsPlaying is less than specified limit
   if (_global.soundsPlaying < 6) {
   //Define variable for random sound file number
   soundNumber = Math.round(Math.random()*7)+1;
   var soundFile:Sound = new Sound();
   soundFile.loadSound("sounds_library/conflict_"+soundNumber+".mp3",
true);
   soundFile.onLoad = function(success:Boolean):Void  {
   if (success) {
   soundFile.start();
   }
   };
   //Increment soundsPlaying variable
   _global.soundsPlaying++;
   trace(soundsPlaying);
   //Decrement soundsPlaying variable when sound finishes
   soundFile.onSoundComplete = function(){
   _global.soundsPlaying--;
   trace(soundsPlaying);
   };
   }
   //Define function to load a new random image onRelease
   frameNumber = Math.round(Math.random()*3)+1;
   maskBox.gotoAndPlay("tran"+frameNumber);
};


replace it with this:



//Hold playhead here
stop();
var soundsNowPlaying:Array = new Array();
_global.counterJ = 0;
//Declare global variable for tracking the number of sounds currently
playing
_global.soundsPlaying = 0;

//Create function to load in random sound file onRollOver
this.onRollOver = function() {
   //Check to see if soundsPlaying is less than specified limit
   if (_global.soundsPlaying < 10) {
   //Define variable for random sound file number
   soundNumber = Math.round(Math.random()*7)+1;
   soundsNowPlaying[counter] = new Sound();

soundsNowPlaying[counter].loadSound("sounds_library/conflict_"+soundNumber+".mp3",
true);
   soundsNowPlaying[counter].onLoad = function(success:Boolean):Void  {
   if (success) {
   this.start();
   }
   }
   //Increment soundsPlaying variable
   _global.soundsPlaying++;
   //trace(soundsPlaying);
   //Decrement soundsPlaying variable when sound finishes
   soundsNowPlaying[counter].onSoundComplete = function(){
   _global.soundsPlaying--;
   delete this;
   };
   _global.counterJ++;
   trace(_global.counterJ);
   }
   //Define function to load a new random image onRelease
   frameNumber = Math.round(Math.random()*3)+1;
   maskBox.gotoAndPlay("tran"+frameNumber);
}


and tell me if that helps out. If yes I'll explain whats happening and if
no, then I'll try and find something else.
On 3/26/07, Ryan Burrell < [EMAIL PROTECTED]> wrote:


Can you give me a more specific example of how to go about setting up the
array and pulling sounds from it?  I've worked with arrays before, but not
extensively.  I'm just unsure of the syntax.

On 3/26/07, Jason Cordial <[EMAIL PROTECTED] > wrote:
>
> I tried the online version, and I saw your problem.
>
> Off the top of my head, declare an array for all the different sounds.
> Like
>
> var soundsNowPlaying:Array = new Array();
>
> keep setting sounds like
>
> soundsNowPlaying[soundsNowPlaying.length+1] = new Sound blah blah
>
> I think the problem might be that you're overwriting the sound every
time
> the next one starts playing, which causes the problem.
>
>
>
> On 3/26/07, Ryan Burrell <[EMAIL PROTECTED]> wrote:
> >
> > Thank you for your help.  I have several other options that I am going

> to
> > try out to see if I can get something working, but anything that
anyone
> > may
> > happen to notice or suggest on this is appreciated.  I work tech
support
> > for
> > a living and the worst type of problem to fix is one that is
> > sporadic...just
> > like this one.
> >
> > On 3/26/07, Jason Cordial <[EMAIL PROTECTED]> wrote:
> > >
> > > First suggestion, keep all your actionscript on one frame. Searching

> > > through
> > > everything is making it a real pain to debug. I'm looking at it
right
> > now,
> > > if I find anything I'll let you know.
> > >
> > > On 3/26/07, Ryan Burrell < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Hello all,
> > > >
> > > > I am experiencing an issue with some streaming sounds that I pull
> in.
> > I
> > > > have
> > > > an example up here:
> > > http://www.humanussonus.org/flash/co.../conflict.html .
> > > > Basically, the problem is that after rolling over these images
> (which
> > > then
> > > > dynamically stream in a random sound) the sounds will cutoff
mid-go.
> > > This
> > > > appears to be entirely at random as well, so I've been having a
hard
> > > time
> > > > troubleshooting it. I have the source file and needed sounds
> available
> > > > here:
> > > > http://www.humanussonus.org/flash/conflict/conflict.zip.
> > > >
> > > > Any ideas that anyone has are more than welcome. I've tried
several
> > > > different approaches, including putting a control in to only allow
a
> > > > certain
> > > > number of sounds to be playing at any one time.

Re: [Flashcoders] Multiple streaming sounds cut off during playback

2007-03-26 Thread Jason Cordial

It's a very cool little app, so I hope it starts working.

On 3/26/07, Jason Cordial <[EMAIL PROTECTED]> wrote:


Alright, where you have

 //Hold playhead here
stop();

//Declare global variable for tracking the number of sounds currently
playing
_global.soundsPlaying = 0;

//Create function to load in random sound file onRollOver
this.onRollOver = function() {
//Check to see if soundsPlaying is less than specified limit
if (_global.soundsPlaying < 6) {
//Define variable for random sound file number
soundNumber = Math.round(Math.random()*7)+1;
var soundFile:Sound = new Sound();
soundFile.loadSound("sounds_library/conflict_"+soundNumber+".mp3",
true);
soundFile.onLoad = function(success:Boolean):Void  {
if (success) {
soundFile.start();
}
};
//Increment soundsPlaying variable
_global.soundsPlaying++;
trace(soundsPlaying);
//Decrement soundsPlaying variable when sound finishes
soundFile.onSoundComplete = function(){
_global.soundsPlaying--;
trace(soundsPlaying);
};
}
//Define function to load a new random image onRelease
frameNumber = Math.round(Math.random()*3)+1;
maskBox.gotoAndPlay("tran"+frameNumber);
};


replace it with this:



//Hold playhead here
stop();
var soundsNowPlaying:Array = new Array();
_global.counterJ = 0;
//Declare global variable for tracking the number of sounds currently
playing
_global.soundsPlaying = 0;

//Create function to load in random sound file onRollOver
this.onRollOver = function() {
//Check to see if soundsPlaying is less than specified limit
if (_global.soundsPlaying < 10) {
//Define variable for random sound file number
soundNumber = Math.round(Math.random()*7)+1;
soundsNowPlaying[counter] = new Sound();

soundsNowPlaying[counter].loadSound("sounds_library/conflict_"+soundNumber+".mp3",
true);
soundsNowPlaying[counter].onLoad = function(success:Boolean):Void
{
if (success) {
this.start();
}
}
//Increment soundsPlaying variable
_global.soundsPlaying++;
//trace(soundsPlaying);
//Decrement soundsPlaying variable when sound finishes
soundsNowPlaying[counter].onSoundComplete = function(){
_global.soundsPlaying--;
delete this;
};
_global.counterJ++;
trace(_global.counterJ);
}
//Define function to load a new random image onRelease
frameNumber = Math.round(Math.random()*3)+1;
maskBox.gotoAndPlay("tran"+frameNumber);
}


and tell me if that helps out. If yes I'll explain whats happening and if
no, then I'll try and find something else.
On 3/26/07, Ryan Burrell < [EMAIL PROTECTED]> wrote:
>
> Can you give me a more specific example of how to go about setting up
> the
> array and pulling sounds from it?  I've worked with arrays before, but
> not
> extensively.  I'm just unsure of the syntax.
>
> On 3/26/07, Jason Cordial < [EMAIL PROTECTED] > wrote:
> >
> > I tried the online version, and I saw your problem.
> >
> > Off the top of my head, declare an array for all the different sounds.
> > Like
> >
> > var soundsNowPlaying:Array = new Array();
> >
> > keep setting sounds like
> >
> > soundsNowPlaying[soundsNowPlaying.length+1] = new Sound blah blah
> >
> > I think the problem might be that you're overwriting the sound every
> time
> > the next one starts playing, which causes the problem.
> >
> >
> >
> > On 3/26/07, Ryan Burrell < [EMAIL PROTECTED]> wrote:
> > >
> > > Thank you for your help.  I have several other options that I am
> going
> > to
> > > try out to see if I can get something working, but anything that
> anyone
> > > may
> > > happen to notice or suggest on this is appreciated.  I work tech
> support
> > > for
> > > a living and the worst type of problem to fix is one that is
> > > sporadic...just
> > > like this one.
> > >
> > > On 3/26/07, Jason Cordial < [EMAIL PROTECTED]> wrote:
> > > >
> > > > First suggestion, keep all your actionscript on one frame.
> Searching
> > > > through
> > > > everything is making it a real pain to debug. I'm looking at it
> right
> > > now,
> > > > if I find anything I'll let you know.
> > > >
> > > > On 3/26/07, Ryan Burrell < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hello all,
> > > > >
> > > > > I am experiencing an issue with some streaming sounds that I
> pull
> > in.
> > > I
> > > > > have
> > > > > an example up here:
> > > > http://www.humanussonus.org/flash/co.../conflict.html .
> > > > > Basically, the problem is that after rolling over these images
> > (which
> > > > then
> > > > > dynamically stream in a random sound) the sounds will cutoff
> mid-go.
> > > > This
> > > > > appears to be entirely at random as well, so I've been having a
> hard
> > > > time
> > > > > troubleshooting it. I have the source file and needed sounds
> > available
> > > 

[Flashcoders] Sending binary data to server - NO HEADERS

2007-03-26 Thread Carlos Saenz
I am trying to send binary data to a server side script which takes a  
variable called file, and saves it as a binary file.


so if I have a variable in my flash movie "myfile", with a value of  
"asdf", and I send that to the server, it will make a file on the  
filesystem called "myfile", and the contents of it will be asdf


Now, the trick is to send the script an image or video file. I have  
tried the following ways:


1) Using FileReference class (Flash 8)
--- This works with php and move_uploaded_file.
--- This does NOT work the server side script mentioned above. It  
adds headers to the file. Same headers found here:


http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/ 
wwhelp.htm?context=LiveDocs_Parts&file=2225.html


Namely:
Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data; name="Filedata"; filename="example.jpg"
Content-Type: application/octet-stream
... contents of example.jpg ...
--AaB03x--

PHP can handle this, the other script cannot. Unfortunately we are  
stuck with the other script. So I looked at different ways to send  
binary data to the server, without using FileReference.



2) Flex Builder 2.

Here we have some new classes. Such as URLRequest and URLLoader,  
where you can use URLLoaderDataFormat.BINARY. This transferred the  
file to the server side script we are stuck with perfectly. No errors  
or problems.


Unfortunately they want a Flash Player 8 solution.


3) Some examples on the web where people have taken a BitmapData  
object in Flash 8 and programmatically convert a bitmap into an array  
of string data which represents pixel data, which is converted on the  
server to an image.
-- Is this method possible with LoadVars to send a binary stream of  
data to a script via POST, which will make it think it's the same as  
a file upload???



Well these are my three options
1) FileReference -- Flash 8 --> Is there a way to eliminate the  
headers its sending by default?
2) Flex Builder 2 - URLLoader class --> Any way to use this in Flash  
Player 8? (Doesn't seem possible)
3) Manually encode binary data into a variable and pass it through  
loadVars making the server think it's a file upload. Possible???


OR

4) Any other possibility I may have overlooked?

Thanks for any help,
-Carlos-
___
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] Free AS2 Filter Tweening Engine - TweenFilterLite

2007-03-26 Thread Jack Doyle
For those of you using the TweenLite tweening engine, I just released the
TweenFilterLite class which extends TweenLite, adding the following
capabilities:
- Tween filters like Blurs, Glows, DropShadows, and Bevels
- Tween ColorMatrixFilter effects like colorization, hue, saturation,
brightness, contrast, and threshold 

I tried to make it extremely easy to use, and I created an interactive
sample that demonstrates a lot of the features and even generates the code
for you.

http://www.greensock.com/ActionScript/TweenFilterLite

It's free. This isn't a sales pitch; I just thought some of you FlashCoders
out there could benefit from the time I poured into this. I'm grateful for
the community of experts out there who take time from their valuable day to
answer questions from me and many others.

If you haven't checked out the lightweight (2kb) TweenLite tweening engine,
have a look: http://www.greensock.com/ActionScript/TweenLite

Cheers.

Jack Doyle




___
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 modify

2007-03-26 Thread Hans Wichman

Hi,
you mean gotoAndPlay(161) on frame 1?

greetz
JC


On 3/27/07, Phil Smith <[EMAIL PROTECTED]> wrote:


Hi. I am using a Flash template and I want to modify it so that it starts
at frame 161 each time, as a return page without intro. Anyone got an easy
solution?
Cheers, Phil Smith.
___
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] another setInterval question

2007-03-26 Thread Hans Wichman

Hi,
note that the proposed solutions restart the interval, they do not pause it.

Otherwise calculate how much time there is still left of the interval.

greetz
JC

On 3/27/07, Muzak <[EMAIL PROTECTED]> wrote:


Might as well throw in Delegate while you're at it:

import mx.utils.Delegate;
var intervalID:Number;

function rolloverHandler() {
   // always clear interval before setting a new one
   clearInterval(intervalID);
   intervalID = setInterval(this , "nextScene" , 5000 );
}
function rolloutHandler() {
   clearInterval(intervalID);
}

my_mc.onRollOver = Delegate.create(this, rolloverHandler);
my_mc.onRollOut = Delegate.create(this, rolloutHandler);

rolloverHandler();

regards,
Muzak

- Original Message -
From: "Mauricio Furtado Massaia" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 27, 2007 12:46 AM
Subject: Re: [Flashcoders] another setInterval question


>i think so , like this :
>
> var intervalID;
>
> function initInterva()
> {
>intervalID = setInterval( this , "nextScene" , 5000 );
> }
>
> function stopInterval()
> {
>clearInterval( intervalID );
> }
>
>
> // onRollOver will stop the interval
> my_mc.onRollOver = function (){
>stopInterval();
> }
>
> // onRollOut restart the interval
> my_mc.onRollOut = function(){
>initInterval();
> }
>
>
> // start your interval
> initInterval();
>
>
> I wish it helps
>
> hugs
>
> MauricioMassaia
>
>
>
>
> On 3/26/07, Raphael Villas <[EMAIL PROTECTED]> wrote:
>>
>> I have got a setInterval like this:
>>
>> -
>> var autoID = setInterval(autoPilot,5000);
>>
>> function autoPilot():Void {
>> nextScene();
>> };
>> -
>>
>> If a rollover occurs, I'd like to pause the setInterval until the
>> rollout occurs. Is there a way to suspend the setInterval during a
>> rollover and then restart it onRollOut?
>>
>> Thanks in advance...


___
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] Image resizer that maintains ratio

2007-03-26 Thread Hans Wichman

The more I read these post, the more I wonder whether people actually read
what others have already replied.

On 3/26/07, Joe Wheeler <[EMAIL PROTECTED]> wrote:


Here's how I do it:

function maintainAspect ( mc:MovieClip, maxW:Number, maxH:Number ) :Void
{
   mc._width  = maxW;
   mc._height = maxH;
   mc._xscale = mc._yscale = Math.min( mc._xscale, mc._yscale );
}



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Guilherme
Cruz
Sent: 26 March 2007 18:15
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Image resizer that maintains ratio

The "_scale" property is a percentage value if you have a 800x600 image
and
set _xscale=50 and _yscale=50, you get a 400x300 image




On 3/26/07, Hans Wichman < [EMAIL PROTECTED]> wrote:
>
> Hi,
> that IS weird, because if your image is 800x600, you are saying:
>target_mc._xscale = target_mc._yscale = 800;
>
> which is probably not what you want^^
>
> greetz
> JC
>
>
> On 3/26/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
> >
> > Ok that is SO weird. I was just thinking about this...
> >
> > myListener.onLoadInit = function( target_mc:MovieClip ):Void {
> >target_mc._xscale = target_mc._yscale = Math.max(
> > target_mc._width, target_mc._height ); };
> >
> > - Eric
> >
> >
> > On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:
> > >
> > > Any examples out there?
> > >
> > > I've got as far as resizing a user supplied image and am about to
> > > work
> > on
> > > the ratio remaining fixed. Just thought I'd throw this out there
> > > as I think it may be tricky.
> > >
> > > Ta.
> > >
> > > Adrian
> > >
> > > ___
> > > 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
> > >
> >
> >
> >
> > --
> > eric e. dolecki
> > senior interactive engineer
> > http://www.ericd.net
> > ___
> > 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@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@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] another setInterval question

2007-03-26 Thread Muzak
Since the interval is only 5 seconds, I wouldn't bother with a timer and what 
not to achieve a "real pause" and just go with 
resetting the interval.

regards,
Muzak

- Original Message - 
From: "Hans Wichman" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, March 27, 2007 9:18 AM
Subject: Re: [Flashcoders] another setInterval question


> Hi,
> note that the proposed solutions restart the interval, they do not pause it.
>
> Otherwise calculate how much time there is still left of the interval.
>
> greetz
> JC
>


___
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