Re: [Flashcoders] Problem with removeEventListener and Delegate

2006-04-27 Thread Stéphane Bebrone

Hi Manuel,

You must declare a reference to your delegate function to safety remove it
with removeEventListener.

Here is a code snippet:

var fdel:Function = Delegate.create(this, videoUpdates);

public function videoUpdates(ev)
{
   ...
   this.removeEventListener(fdel);
}

2006/4/27, Manuel Saint-Victor <[EMAIL PROTECTED]>:


I am using the following code to add an eventListener
VideoModel.getInstance().addEventListener("startUpdates",
Delegate.create(this, videoUpdates));


Later when this dispatched event is caught I'm using the following to try
to
remove the listener but it is not working- Am I missing some other detail.


public function videoUpdates(ev){
Logger.info("updated");
Logger.info("source:"+ ev.source._name);
if(ev.source._name==targetVideo || targetVideo=="defaultVideo"){
Logger.info("BINGO");
this.assignedStream=ev.stream;
Logger.debug(ev.target);
VideoModel.getInstance().removeEventListener("startUpdates",
this.videoUpdates);
}
Logger.info("i am "+ this  +" my targetVideo is"+ targetVideo);

}
I also tried removing the listener using  a reference that was passes in
through the event object with no success.
Please help- I can't figure out why it's failing.

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





--
Regards,
Stéphane Bebrone
--
Flash | ASP.NET | Web Developer
http://weblog.shaoken.be
--
___
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] Xray Trouble Shooting

2006-04-27 Thread John Grden
labs.blitzagency.com - that's the official home / information source for
xray

Let me know if I can help out,

JG

On 4/27/06, Charles Parcell <[EMAIL PROTECTED]> wrote:
>
> Is there a document/web site that outlines specific issues revolving
> around
> Xray?  I have encountered a project where the primary Flash file was
> developed by someone else. After adding the Xray component I am unable to
> get Xray to connect. I have gone through all of the code in this primary
> file and there is nothing obvious that I can see as to why I am unable to
> get connection between the component and the client.
>
> I was just wondering if there was a "Things that could break Xray" or
> "Things to watch out for when injecting Xray" site some where?
>
> Many thanks.
> Charles P.
> ___
> 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
>



--
John Grden - Blitz
___
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] Green Keyline

2006-04-27 Thread Drew Foehn
Hello,

I have built an application that uses extended Macromedia components
(buttons), this application is loaded inside of another swf. In order to
make sure that the _root targets are correct for the app I've used
_lockroot (I know, it's a bad idea). The problem I am having is when the
application is loaded into another swf a green key line appears around
buttons when they are clicked. When the swf is loaded by itself the
problem disappears. 

Has anyone else encountered this issue? 

Regards,

Drew Foehn
Actionscript Developer
HotHouse Interactive
___
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] Xray Trouble Shooting

2006-04-27 Thread Charles Parcell

Is there a document/web site that outlines specific issues revolving around
Xray?  I have encountered a project where the primary Flash file was
developed by someone else. After adding the Xray component I am unable to
get Xray to connect. I have gone through all of the code in this primary
file and there is nothing obvious that I can see as to why I am unable to
get connection between the component and the client.

I was just wondering if there was a "Things that could break Xray" or
"Things to watch out for when injecting Xray" site some where?

Many thanks.
Charles P.
___
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] TextField as Menu?

2006-04-27 Thread Marc Hoffman
If you use HTML text, you can use "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] TextField as Menu?

2006-04-27 Thread August Gresens
My client wants a list style menu with a transparent background  - this
doesn't seem possible with the (clunky looking) List component (right?).

The TextField Class supports scrolling, and determining the mouse location
within it's region. Is there any way to determine which line was clicked,
and getting the contents of the line?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[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] createClassObject with List Class funky

2006-04-27 Thread Fumio Nonaka
mx.core.ext.UIObjectExtensions class, which is initialized in the 
UIComponent symbol, do that.

_
Jim Armstrong wrote:
If memory serves, MovieClip is a dynamic class and createClassObject() 
is added to the MovieClip prototype by the V2 framework at runtime.


class mx.core.ext.UIObjectExtensions
{
// ...[snip]...

static function Extensions():Boolean
{
// ...[snip]...
var ui:Object = UIObject.prototype;
// ...[snip]...
var mc:Object = MovieClip.prototype;
// ...[snip]...
mc.createObject = ui.createObject;
mc.createClassObject = ui.createClassObject;
mc.createEmptyObject = ui.createEmptyObject;
mc.destroyObject = ui.destroyObject;

// ...[snip]...
static var UIObjectExtended = Extensions();

Good luck,

Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My books
Flash community

___
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] Listeners / ASBroadcasters / Event Dispatchers confusion

2006-04-27 Thread Manuel Saint-Victor
ASBroadcaster.initialize(acrobat_mc);

I think you could add a method on your audience object that does
acrobat_mc.addListener( this);
and a  method
onTrickCompleted=function(){
   applaud();
}
from the acrobat_mc you would call a broadcastMessage("onTrickCompleted");



The best explanation that I found when I was trying to learn it is here:
http://www.kirupa.com/developer/actionscript/asbroadcaster.htm

not sure if this is clear but I have to run out of here to beat the Atlanta
traffic.

If it's no good I'll follow up when I get home.

M





On 4/27/06, Mark Burvill <[EMAIL PROTECTED]> wrote:
>
> Hi group,
>
> AS2 newbie question here...
>
> I've been going round and round in circles trying to work out the best
> way of doing this, so maybe someone can help me.
>
> Let's say I have a movieclip on the main timeline of my fla called
> acrobat_mc which is an animation of a little man doing a somersault.
>
> I also have a bunch of movieclips of audience members each controlled by
> thier own instance of an AudienceMember object. The AudienceMember
> object contains a method called applaud().
>
> When the acrobat has finished doing his somersault, I want all the
> instances of audienceMember to have their applaud methods triggered.
>
> Now obviously, I could put a whole bunch of commands on the final frame
> of my somersault animation such as:
> _parent.audienceMember1.applaud();
> _parent.audienceMember2.applaud();
> _parent.audienceMember3.applaud();
>
> etc...etc...
> But what I really want is to just broadcast some message from that frame
> on the acrobat's timeline which all the audience members will listen to
> and automatically applaud.
>
> How should I be doing this?
> Cheers.
> Mark.
>
>
> ___
> 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: Flash Player 6 on PSP

2006-04-27 Thread Weyert de Boer
You would expect the player is damn Flash, if you at games such as GTA. 
High-quality 3d gaming, I can't believe you can misuse the GPU of th 
device for the heavy lifting.

___
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] Test - ignore

2006-04-27 Thread Merrill, Jason
Hmm - yeah, well nothing I can do about that I guess. I've never had
this problem before, but we recently changed our name to "ICF
International" and our e-mail addresses changed as well.  Now
everything's wonky.  Oh well, thanks.

Jason Merrill   |   E-Learning Solutions   |  ICF International










>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Dave Watts
>>Sent: Thursday, April 27, 2006 4:41 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Test - ignore
>>
>>> Yeah, I saw your reply, but not my post.  In my list
>>> subscription options on chattyfig.figleaf.com, I have
>>> "Receive your own posts to the list?" set to be "Yes" but I
>>> still don't see my own posts.  Anyone know how to fix this?
>>
>>I suspect this may be a configuration issue with your mail server.
>>
>>Dave Watts, CTO, Fig Leaf Software
>>http://www.figleaf.com/
>>
>>Fig Leaf Software provides the highest caliber vendor-authorized
>>instruction at our training centers in Washington DC, Atlanta,
>>Chicago, Baltimore, Northern Virginia, or on-site at your location.
>>Visit http://training.figleaf.com/ for more information!
>>
>>___
>>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: Flash Player 6 on PSP

2006-04-27 Thread John Dowdell

Ryan Creighton wrote:

i work on the support site for a kids' TV station, and am watching Flash
development on portable devices very, very closely.  We put one of our
most simple games from our site on the PSP yesterday and it was DOG
slow.  And the edges of the swf weren't masked, so you got to see all of
the supposedly off-screen goodies.

Ideally, we'd like to make our games library available to kids on the
PSP and the DS, but it'll be a tough sell if we have to meticulously
develop every game to fit such a finicky device.  Just as i'm hanging
out until cell phones unanimously ship with FlashLite 2.0, i'm more
comfortable waiting until this bleeding edge PSP support clots a little.


Yes, the file format runs on multiple devices, but not all content will 
run identically on all devices. In hallway talks with other Adobe 
staffers today this is something we'll have to work on, cross-device 
creation guides, not just for SWF but also for HTML and video.


But those are developer issues. Today I'm more concerned about consumer 
issues. Lots of PSP fansites took up Sony's announcement, and from blog 
trawls I'm getting the sense that lots of raw PSP consumers are visiting 
random WWW sites, and seeing that content tested on PCs does not perform 
the same on their smaller device. This happened with HTML files last 
summer, when Sony introduced a web browser, but I'm apprehensive we'll 
see some "flash sux!" posts from people who find a long StrongBad 
episode doesn't play well when only 1.5 megabytes RAM is available.



Ryan, do you have any background on the "visible offstage area" issue 
mentioned above? Is it one SWF in one HTML which displays this way, or 
any SWF in one HTML, or one SWF in any HTML... what's the variable, if 
you can tell yet?
   (For consumers I'd likely phrase this as "You may see some Flash 
files which don't have the firm rectangular boundaries you see on your 
computer's browser; this is due to XYZ in the HTML and is not something 
you can change while viewing"... see where I'm trying to go, with this 
distinction between developers and consumers...?)



Summary: My main action item today is to try to collect guidelines for 
consumers, on what they should expect with playback of arbitrary WWW 
sites via the Adobe Flash Player in the Sony PSP browser. If you could 
check my blog later today and add the advice you'd want your own 
audiences to have, then I'd appreciate the help greatly, thanks!


jd




--
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.
___
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] calculating dates based on a starting date.

2006-04-27 Thread matt ganz
very nice. thank you very much. 
- Original Message - 
From: "Merrill, Jason" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Thursday, April 27, 2006 4:27 PM
Subject: RE: [Flashcoders] calculating dates based on a starting date.


Here is a SuperDate class I wrote if it's of use to you.  You can get a
future date and also get the elapsed number of days since a date, get
the ordinal date etc.  


/*
Name: SuperDate Class
Author: Jason Merrill
Date: 1/10/2006

Description:  Some methods to help with date class needs - still
a work in progress.  See descriptions beside each method.

Usage Example:  
var thisMonthAbreviated:String =

SuperDate.getMonthName(myMonthNumber, true);
*/

class com.icfconsulting.utils.SuperDate extends Date{

function SuperDate(){
};

public static function getMonthName(mo:Number,
abreviated:Boolean):String{//returns the name of the month in full or
abbreviated.
var months:Array = new Array("January", "February",
"March", "April", "May", "June", "July", "August", "September",
"October", "November", "December");
var monthsAbreviated:Array = new Array("Jan", "Feb",
"Mar", "Apr," ,"May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var month:String;
if(abreviated){
month = monthsAbreviated[mo];
}else{
month = months[mo];
}
return month;
};

public static function getOrdinalDate(num:Number):String{//adds
the ordinal to the date - i.e. 15th, 21st, 2nd, 3rd. etc.
var ordinal:String;
if(num ==1 || num == 21 || num == 31){
ordinal = "st";
}else if (num == 2 || num == 22 ){
ordinal = "nd"; 
}else if (num == 3 || num == 23){

ordinal = "rd"
}else{
ordinal = "th"; 
}

return num+ordinal;
};

public static function formatDate(date:Date):String{//formats
the date object into somehting readable.
var thisMonth:Number = date.getMonth()+1;
var thisDay:Number = date.getDate();
var thisYear:Object = date.getUTCFullYear()-2000;
if(thisYear <10){
thisYear = "0"+String(thisYear);
};
var thisDate:String =
thisMonth+"/"+thisDay+"/"+thisYear;
return thisDate;
};

public static function getElapsedDays(earlierDay:Date,
laterDay:Date):Number{//calculated the number of days elapsed since the
input date.
var dms:Number = laterDay-earlierDay; // difference in
milliseconds
dms = Math.floor(dms/1000/60/60/24); // difference in
days
return dms;
};

public static  function returnDate(initDate:Date,
daysToAdd:Number):Date{//calculates a date in the future based on an
initial date.
var newDate:Date = new Date(initDate.getTime());
var newDateNum:Number =
newDate.setDate(newDate.getDate() + daysToAdd);
return new Date(newDateNum);
};

}



Jason Merrill   |   E-Learning Solutions   |  ICF International







___
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: Flash Player 6 on PSP

2006-04-27 Thread clark slater
Forgot to add that one of the reasons I am really surprised at the
difference in performance of the same SWF content on PPC versus PSP is
because I believe the PPC I am using has a very similar processor to the PSP
(312MHz vs 333MHz).

Then I found out the PSP processor is itself neutered to help with the
battery life issues Sony encountered prior to launch. This might explain the
difference in performance from PPC to PSP.

*333MHz PSP processor runs at 222MHz*
http://www.geek.com/news/geeknews/2005Mar/bga20050418030068.htm

Damn! They need to uncork that baby!

Clark
___
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] Test - ignore

2006-04-27 Thread Dave Watts
> Yeah, I saw your reply, but not my post.  In my list 
> subscription options on chattyfig.figleaf.com, I have 
> "Receive your own posts to the list?" set to be "Yes" but I 
> still don't see my own posts.  Anyone know how to fix this?

I suspect this may be a configuration issue with your mail server.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
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] Test - ignore

2006-04-27 Thread Merrill, Jason
>>Mine never show up unless someone replies...so, do you see it now?

Yeah, I saw your reply, but not my post.  In my list subscription
options on chattyfig.figleaf.com, I have "Receive your own posts to the
list?" set to be "Yes" but I still don't see my own posts.  Anyone know
how to fix this?

Jason Merrill   |   E-Learning Solutions   |  ICF International








___
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] calculating dates based on a starting date.

2006-04-27 Thread Merrill, Jason
Here is a SuperDate class I wrote if it's of use to you.  You can get a
future date and also get the elapsed number of days since a date, get
the ordinal date etc.  

/*
Name: SuperDate Class
Author: Jason Merrill
Date: 1/10/2006

Description:  Some methods to help with date class needs - still
a work in progress.  See descriptions beside each method.

Usage Example:  
var thisMonthAbreviated:String =
SuperDate.getMonthName(myMonthNumber, true);
*/

class com.icfconsulting.utils.SuperDate extends Date{

function SuperDate(){
};

public static function getMonthName(mo:Number,
abreviated:Boolean):String{//returns the name of the month in full or
abbreviated.
var months:Array = new Array("January", "February",
"March", "April", "May", "June", "July", "August", "September",
"October", "November", "December");
var monthsAbreviated:Array = new Array("Jan", "Feb",
"Mar", "Apr," ,"May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var month:String;
if(abreviated){
month = monthsAbreviated[mo];
}else{
month = months[mo];
}
return month;
};

public static function getOrdinalDate(num:Number):String{//adds
the ordinal to the date - i.e. 15th, 21st, 2nd, 3rd. etc.
var ordinal:String;
if(num ==1 || num == 21 || num == 31){
ordinal = "st";
}else if (num == 2 || num == 22 ){
ordinal = "nd"; 
}else if (num == 3 || num == 23){
ordinal = "rd"
}else{
ordinal = "th"; 
}
return num+ordinal;
};

public static function formatDate(date:Date):String{//formats
the date object into somehting readable.
var thisMonth:Number = date.getMonth()+1;
var thisDay:Number = date.getDate();
var thisYear:Object = date.getUTCFullYear()-2000;
if(thisYear <10){
thisYear = "0"+String(thisYear);
};
var thisDate:String =
thisMonth+"/"+thisDay+"/"+thisYear;
return thisDate;
};

public static function getElapsedDays(earlierDay:Date,
laterDay:Date):Number{//calculated the number of days elapsed since the
input date.
var dms:Number = laterDay-earlierDay; // difference in
milliseconds
dms = Math.floor(dms/1000/60/60/24); // difference in
days
return dms;
};

public static  function returnDate(initDate:Date,
daysToAdd:Number):Date{//calculates a date in the future based on an
initial date.
var newDate:Date = new Date(initDate.getTime());
var newDateNum:Number =
newDate.setDate(newDate.getDate() + daysToAdd);
return new Date(newDateNum);
};

}



Jason Merrill   |   E-Learning Solutions   |  ICF International







___
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] HTML templates in Flash

2006-04-27 Thread Geoff Stearns

oh and you should use swfobject to embed your stuff anyway :)

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


On Apr 27, 2006, at 3:41 PM, Alejandro Diaz wrote:


y, it always remain
very short). But I will certainly take your advice


___
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] HTML templates in Flash

2006-04-27 Thread Alejandro Diaz
Unfortunatelly, I am sort of forced to use .swf? as it is one of the
requirements for the delivery of the flash movies I am working on (I
deliver them using a couple of different values only, it always remain
very short). But I will certainly take your advice when I am doing
similar projects not constrained by the requirements of this one

I am now writing a JSFL command so I can just export to each of those
two different templates with a shortkey, rather than having to select
template / profile each time.

Thanks once again!

On 4/27/06, Chris Hill <[EMAIL PROTECTED]> wrote:
> This information is in the help files, but pretty hidden:
> http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0824.html
>
> On a similar note I've got a flashObject template that I use:
> http://ubergeek.tv/article.php?pid=111
>
> But I'd like it so that Flash will automatically copy over the
> SWFObject.as for me. Is this possible?
>
> Thanks
> C
>
>
> Alejandro Diaz wrote:
> > Hello again everyone,
> >
> > Does anyone know of any documentation or explanation about some of the
> > variables in the Flash  HTML template files?
> >
> > For example, the actual name of the file is sent through a variable named
> > $PO, but I seem to be unable to find anything regarding how to break this
> > down (since this variable apparently has a whole bunch of code in it, not
> > just the file name) and edit the file name.
> > I am basically trying to create a couple of HTML templates that have a
> > ?myVariable=myValue  after the .swf, and I can't seem to find any
> > documentation or any other information online on how to do this.
> >
> > Thanks in advance!
> > -Alex
> > ___
> > 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] calculating dates based on a starting date.

2006-04-27 Thread matt ganz

hi karina.

that looks very useful. yes, please post it on your blog. i'm not sure it's
an exact fit for my problem but i'm making some progess here.

for example, i have a starting date as a date object and based upon what the 
user
selects, i can calculate an increment. the only remaining unknown is how to 
calculate it over a 13 month period. here is what i've got so far:


infusionDates.push( startingDate ); // set the initial start date in the 
array.


// user selects 1 infusion once a week
if( infusions == 1 && weeks == 1 )
{
 increment = 7;
 for( i:Number=0; i<4; i++ ) // but '4' here is wrong. what value do i use 
to represent 13 months??

 {
 infusionDates.push( startingDate += increment );
 }
}

thank you very much for your help. -- matt.
- Original Message - 
From: "Karina Steffens" <[EMAIL PROTECTED]>

To: "'Flashcoders mailing list'" 
Sent: Thursday, April 27, 2006 2:19 PM
Subject: RE: [Flashcoders] calculating dates based on a starting date.



Hi Matt,

If what you're looking for is a way to subtract two dates, then it's your
lucky day...
I just wrote an Age Counter component that displays how long it's been
since
a specific date (years, months, hours, minutes, and seconds). It's for a
client who wants to show how long his pediatric center has been running (a
very long time...): http://www.belilovskypediatrics.com/en/about.htm


Anyway, you don't need the whole class, just the relevant function which
is:

function getAge (year:Number, month:Number, day:Number):Date {
//Founded day or birthday
var founded:Date = new Date (year, month, day);
//Today
var today:Date = new Date ();
//Time difference in milliseconds
var mil:Number = today.getTime () - founded.getTime ();
//The age, in a date format
var age:Date = new Date ();
//Set the age (in relateion to 1970)
age.setTime (mil);
//Adjust the year
age.setYear (age.getYear () - 70);
return age;
}

The function returns a Date format, from which you can easily extrapolate
everything you need -

var age:Date = AgeCounter.getAge (1970, 6, 12); //That's my birthday, send
me a card ;)

Note: The month is 0 based, so don't send me that card in June, but in
July
;)
The day is 1 based, so my birthday is indeed on the 12th

And get the various age differences between dates like this:
age.getYear(),
age.getMonth(), age.getDate(), age.getHour(), age.getSecond()

If you need exact hours, just add them to the method. See docs for
creating
a Date object.

Anyone - let me know if you want the AgeCounter component itself, I'll
post
it on the blog.

Cheers,
Karina









-Original Message-
From: matt ganz [mailto:[EMAIL PROTECTED]
Sent: 27 April 2006 18:18
To: Flashcoders mailing list
Subject: [Flashcoders] calculating dates based on a starting date.

hi.

i'm building a scheduler app for people who need infusions
over a 1 year period.  a user selects the following info to begin:

1. a starting date for first infusion - day, month, and year
2. number of infusions - 1-4 3. frequency of infusions -
every 1, 2, 3, or 4 weeks.

i have to come up with a schedule of infusion dates over the
next 13 months.

the breakdown of infusion frequency goes like this:

CASE 1: user selects infusions per 1 week period.
a. 1 infusion every week -> increment every 7 days b. 2
infusions "" -> increment every 4 days c. 3 infusions "" ->
increment every 2 days d. 4 infusions "" -> alert ("max 3
infusions/week" );

CASE 2: user selects infusions per 2 week period.
a. 1 infusion every 2 weeks -> increment every 14 days b. 2
infusions "" -> increment every 7 days c. 3 infusions "" ->
increment every 4 days d. 4 infusions "" -> increment every 4 days

CASE 3: user selects infusions per 3 week period.
a. 1 infusion every 3 weeks -> increment every 21 days b. 2
infusions "" -> increment every 10 days c. 3 infusions "" ->
increment every 7 days d. 4 infusions "" -> increment every 5 days

CASE 4: user selects infusions per 4 week period.
a. 1 infusion every 4 weeks -> increment every 28 days b. 2
infusions "" -> increment every 14 days c. 3 infusions "" ->
increment every 9 days d. 4 infusions "" -> increment every 7 days

the way i figured to do it would be to capture the starting
day and month and then calculate ( based on number of
infusions and frequency ) every other day and month over a 13
month period. i'd throw all of these values into an
'infusionDates' array and then i can loop over them and
change the properties of the DateChooser that i need.

i just need help figuring out how to populate the
infusionDates array. can anyone help me get started, please?

thanks for any tips. -- matt.
___
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] HTML templates in Flash

2006-04-27 Thread Chris Hill

This information is in the help files, but pretty hidden:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0824.html

On a similar note I've got a flashObject template that I use:
http://ubergeek.tv/article.php?pid=111

But I'd like it so that Flash will automatically copy over the 
SWFObject.as for me. Is this possible?


Thanks
C


Alejandro Diaz wrote:

Hello again everyone,

Does anyone know of any documentation or explanation about some of the
variables in the Flash  HTML template files?

For example, the actual name of the file is sent through a variable named
$PO, but I seem to be unable to find anything regarding how to break this
down (since this variable apparently has a whole bunch of code in it, not
just the file name) and edit the file name.
I am basically trying to create a couple of HTML templates that have a
?myVariable=myValue  after the .swf, and I can't seem to find any
documentation or any other information online on how to do this.

Thanks in advance!
-Alex
___
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] HTML templates in Flash

2006-04-27 Thread Geoff Stearns
you should use flashvars instead of the .swf? - that way your swf  
will be cached properly and you don't have any limits (or at least  
much higher limits) than the query string.




On Apr 27, 2006, at 2:48 PM, Alejandro Diaz wrote:

Thanks! the explanation of some of those variables and a bit of  
thinking got

me to do exactly what I wanted.

In case anyone is interested, what I ended up doing is just doing  
away with
using $PO and $PE and building the file name using $TI and  
adding .swf? plus

the variables I am trying to pass.  I had to add in some of the other
parameters in that list that were part of $PO/E, like quality, etc.  
but that

link you sent me had the information I needed for that.

Thanks!
-Alex


On 4/27/06, Geoff Stearns <[EMAIL PROTECTED]> wrote:


this page has a list of all the stuff:

http://www.123flashchat.com/flash/20_publish16.html




___
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: Flash Player 6 on PSP

2006-04-27 Thread Alejandro Diaz
Disappointing. I was eagerly awaiting for this to add to my reasons
for getting a PSP, but it seems that either it simply can't handle it
(which I find hard to believe, after seeing the games it runs), or
Sony is intentionally crippling things.

The PSP seems to be the poster child of missed opportunity, and it
apparently all because of an insatiable need to control everything
that goes on it by Sony, to the point of suffocation.

On 4/27/06, clark slater <[EMAIL PROTECTED]> wrote:
> I have been testing side by side performance of SWF content on a pocket pc
> (Asus 636) versus PSP and the difference is stunning. Surprisingly the
> performance of the Flash 6 player on the PPC is much, much better than on
> the PSP.
>
> Not what I expected, comparing a device running the Windows PPC platform to
> a dedicated gaming device.
>
> I can only see that this will add significant fuel to the conspiracy fire in
> respect of an intentionally neutered Flash player for the PSP.
>
> Clark
> ___
> 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] HTML templates in Flash

2006-04-27 Thread Alejandro Diaz
Thanks! the explanation of some of those variables and a bit of thinking got
me to do exactly what I wanted.

In case anyone is interested, what I ended up doing is just doing away with
using $PO and $PE and building the file name using $TI and adding .swf? plus
the variables I am trying to pass.  I had to add in some of the other
parameters in that list that were part of $PO/E, like quality, etc. but that
link you sent me had the information I needed for that.

Thanks!
-Alex


On 4/27/06, Geoff Stearns <[EMAIL PROTECTED]> wrote:
>
> this page has a list of all the stuff:
>
> http://www.123flashchat.com/flash/20_publish16.html
>
>
>
___
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] Listeners / ASBroadcasters / Event Dispatchers confusion

2006-04-27 Thread Mark Burvill

Hi group,

AS2 newbie question here...

I've been going round and round in circles trying to work out the best 
way of doing this, so maybe someone can help me.


Let's say I have a movieclip on the main timeline of my fla called 
acrobat_mc which is an animation of a little man doing a somersault.


I also have a bunch of movieclips of audience members each controlled by 
thier own instance of an AudienceMember object. The AudienceMember 
object contains a method called applaud().


When the acrobat has finished doing his somersault, I want all the 
instances of audienceMember to have their applaud methods triggered.


Now obviously, I could put a whole bunch of commands on the final frame 
of my somersault animation such as:

_parent.audienceMember1.applaud();
_parent.audienceMember2.applaud();
_parent.audienceMember3.applaud();

etc...etc...
But what I really want is to just broadcast some message from that frame 
on the acrobat's timeline which all the audience members will listen to 
and automatically applaud.


How should I be doing this?
Cheers.
Mark.


___
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] Event listeners and memory waste...

2006-04-27 Thread Julien

Thanks for the link Manuel!
I guess I will have to create a reference to the delegated function for 
each of my events... I'll try to do it and see if my objects are now 
well destroyed in the memory.
By the way I found this article about the scope chain and persistent 
activation of objects, which prevent us from deleting them... Pretty 
interesting stuff!



Manuel Saint-Victor a écrit :

Here's an example I came across this morning that has helped me to cut back
on my ram waste

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=2401.html

On 4/27/06, Julien Vignali <[EMAIL PROTECTED]> wrote:

Hi guys,
I am getting memory problems when I remove and recreate all my objects
several times (the flash player eats up RAM, and I have to minimize it
and maximize to force the garbage collector).There must be something
wrong in the way I destroy my objects :-(

So I am wondering what is the best way to handle event listeners and to
be able to remove the listeners afterwards in order to avoid memory
waste...

I've seen on some page that using Delegate (or Lott's Proxy class) is a
good practice, but how do you properly remove the listener when you're
done with the object ?

For example in class A (see below), how do you remove "this" from
listening to every elements' "myevent" event in the destroy() method ?

Thanks!
Julien


public classA extends MovieClip {

   public function addElement(data:Object):Void {
 var elt:CustomMC = attachMovie("Test", "test"+data.id,
getNextHighestDepth());
 elt.addEventListener("myevent", Delegate.create(this,
this.onMyEvent));
elements[data.id] = elt;
   }

   public function destroy():Void {
 for(var i:String in elements){
   var elt:CustomMC = elements[i];
   // remove listener object... ???
   elt.removeMovieClip();
   elements[i] = null;
 }
   }

   private function onMyEvent(event:Object):Void {
 // handle the event...
   }
}




___
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] HTML templates in Flash

2006-04-27 Thread Geoff Stearns

this page has a list of all the stuff:

http://www.123flashchat.com/flash/20_publish16.html


On Apr 27, 2006, at 1:57 PM, Alejandro Diaz wrote:


Hello again everyone,

Does anyone know of any documentation or explanation about some of the
variables in the Flash  HTML template files?

For example, the actual name of the file is sent through a variable  
named
$PO, but I seem to be unable to find anything regarding how to  
break this
down (since this variable apparently has a whole bunch of code in  
it, not

just the file name) and edit the file name.
I am basically trying to create a couple of HTML templates that have a
?myVariable=myValue  after the .swf, and I can't seem to find any
documentation or any other information online on how to do this.

Thanks in advance!
-Alex
___
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] File upload: Reference to absolute path of file on hard drive?

2006-04-27 Thread Dave Watts
> I have a project where I need to perform a file upload. The 
> file is displayed online for viewing. When an order happens I 
> need to know the original file path of the file that was 
> uploaded. This will all in an admin section so I can assume 
> that the file exists on the clients computer.
> 
> I can get the file name of the uploaded file but I can't seem 
> to figure out a way to find that the file before upload resided 
> in:
> 
> c:\users\mydocumets\desktop\uploadFiles\thefile.jpg

This will depend on the server-side program used to receive the uploaded
file. In ColdFusion, you'd reference CFFILE.ClientFile.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
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] calculating dates based on a starting date.

2006-04-27 Thread Karina Steffens
Hi Matt,

If what you're looking for is a way to subtract two dates, then it's your
lucky day...
I just wrote an Age Counter component that displays how long it's been since
a specific date (years, months, hours, minutes, and seconds). It's for a
client who wants to show how long his pediatric center has been running (a
very long time...): http://www.belilovskypediatrics.com/en/about.htm


Anyway, you don't need the whole class, just the relevant function which is:

 function getAge (year:Number, month:Number, day:Number):Date {
//Founded day or birthday
var founded:Date = new Date (year, month, day);
//Today
var today:Date = new Date ();
//Time difference in milliseconds
var mil:Number = today.getTime () - founded.getTime ();
//The age, in a date format
var age:Date = new Date ();
//Set the age (in relateion to 1970)
age.setTime (mil);
//Adjust the year
age.setYear (age.getYear () - 70);
return age;
}

The function returns a Date format, from which you can easily extrapolate
everything you need -

var age:Date = AgeCounter.getAge (1970, 6, 12); //That's my birthday, send
me a card ;)

Note: The month is 0 based, so don't send me that card in June, but in July
;)
The day is 1 based, so my birthday is indeed on the 12th

And get the various age differences between dates like this: age.getYear(),
age.getMonth(), age.getDate(), age.getHour(), age.getSecond()

If you need exact hours, just add them to the method. See docs for creating
a Date object.

Anyone - let me know if you want the AgeCounter component itself, I'll post
it on the blog.

Cheers,
Karina






  

> -Original Message-
> From: matt ganz [mailto:[EMAIL PROTECTED] 
> Sent: 27 April 2006 18:18
> To: Flashcoders mailing list
> Subject: [Flashcoders] calculating dates based on a starting date.
> 
> hi. 
> 
> i'm building a scheduler app for people who need infusions 
> over a 1 year period.  a user selects the following info to begin:
> 
> 1. a starting date for first infusion - day, month, and year 
> 2. number of infusions - 1-4 3. frequency of infusions - 
> every 1, 2, 3, or 4 weeks.
> 
> i have to come up with a schedule of infusion dates over the 
> next 13 months. 
> 
> the breakdown of infusion frequency goes like this:
> 
> CASE 1: user selects infusions per 1 week period.
> a. 1 infusion every week -> increment every 7 days b. 2 
> infusions "" -> increment every 4 days c. 3 infusions "" -> 
> increment every 2 days d. 4 infusions "" -> alert ("max 3 
> infusions/week" );
> 
> CASE 2: user selects infusions per 2 week period.
> a. 1 infusion every 2 weeks -> increment every 14 days b. 2 
> infusions "" -> increment every 7 days c. 3 infusions "" -> 
> increment every 4 days d. 4 infusions "" -> increment every 4 days
>  
> CASE 3: user selects infusions per 3 week period.
> a. 1 infusion every 3 weeks -> increment every 21 days b. 2 
> infusions "" -> increment every 10 days c. 3 infusions "" -> 
> increment every 7 days d. 4 infusions "" -> increment every 5 days
> 
> CASE 4: user selects infusions per 4 week period.
> a. 1 infusion every 4 weeks -> increment every 28 days b. 2 
> infusions "" -> increment every 14 days c. 3 infusions "" -> 
> increment every 9 days d. 4 infusions "" -> increment every 7 days
> 
> the way i figured to do it would be to capture the starting 
> day and month and then calculate ( based on number of 
> infusions and frequency ) every other day and month over a 13 
> month period. i'd throw all of these values into an 
> 'infusionDates' array and then i can loop over them and 
> change the properties of the DateChooser that i need. 
> 
> i just need help figuring out how to populate the 
> infusionDates array. can anyone help me get started, please? 
> 
> thanks for any tips. -- matt. 
> ___
> 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] File upload: Reference to absolute path of file on hard drive?

2006-04-27 Thread Wade Arnold
I have a project where I need to perform a file upload. The file is
displayed online for viewing. When an order happens I need to know the
original file path of the file that was uploaded. This will all in an admin
section so I can assume that the file exists on the clients computer.

I can get the file name of the uploaded file but I can't seem to figure out
a way to find that the file before upload resided in:

c:\users\mydocumets\desktop\uploadFiles\thefile.jpg

Thanks for any insight. 


___
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] HTML templates in Flash

2006-04-27 Thread Alejandro Diaz
Hello again everyone,

Does anyone know of any documentation or explanation about some of the
variables in the Flash  HTML template files?

For example, the actual name of the file is sent through a variable named
$PO, but I seem to be unable to find anything regarding how to break this
down (since this variable apparently has a whole bunch of code in it, not
just the file name) and edit the file name.
I am basically trying to create a couple of HTML templates that have a
?myVariable=myValue  after the .swf, and I can't seem to find any
documentation or any other information online on how to do this.

Thanks in advance!
-Alex
___
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] Font jumping cross platform

2006-04-27 Thread Julian 'Julik' Tarkhanov


On 27-apr-2006, at 18:59, Kevin Newman wrote:

Most of the fonts that I use are not free or come from Adobe Font  
Folio OpenType edition. It doesn't happen with all fonts, but it is  
definitely a problem with the Macromedia programs (I think this is  
a problem in Freehand and Fireworks also, though I haven't tested  
that in a while) since this problem doesn't exist in other programs  
(like adobe's). So I really think this is a bug in the framework,  
and that workarounds should only be considered in that light  
(meaning, Adobe/Macromedia should fix this, so we don't have to  
employ workarounds).


I'm also pretty sure that this happens with PostScript outline  
fonts (OpenType can contain either TrueType or PostScript  
outlines), but I'll keep a closer eye on that, and let you know if  
I find something out that differs from this description. Also, the  
fonts that I've converted with CrossFont have all always been Mac  
PostScript fonts. I originally thought this was a problem with  
CrossFont, but have since learne


AFAIK, all font handling in MM apps on the Mac has remained 100%  
borked (that means: as in MacOS 7) since Flash MX hit the streets. I  
doubt any MM product properly supports OTF, and I am pretty sure all  
of them have broken Unicode font support.


--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl


___
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: Flash Player 6 on PSP

2006-04-27 Thread clark slater
I have been testing side by side performance of SWF content on a pocket pc
(Asus 636) versus PSP and the difference is stunning. Surprisingly the
performance of the Flash 6 player on the PPC is much, much better than on
the PSP.

Not what I expected, comparing a device running the Windows PPC platform to
a dedicated gaming device.

I can only see that this will add significant fuel to the conspiracy fire in
respect of an intentionally neutered Flash player for the PSP.

Clark
___
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] hideBuiltInItems and settings and about...hide everything

2006-04-27 Thread Ryan Matsikas
No. You can't.

On 4/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Is there a work around that will let me get rid of the settings choice in
> the contextMenu for example when I right click on a particular movie clip.
> I would like to right click on an mc and be able to have complete control
> of what it says in the contextMenu. I have used hideBuiltInItems, but I
> want to get rid of settings... and the About macromedia flash 8 menuItems
> as well.
>
> Stanford
>
> ___
> 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] calculating dates based on a starting date.

2006-04-27 Thread matt ganz
hi. 

i'm building a scheduler app for people who need infusions over a 1 year 
period.  a user selects the following info to begin:

1. a starting date for first infusion - day, month, and year
2. number of infusions - 1-4
3. frequency of infusions - every 1, 2, 3, or 4 weeks.

i have to come up with a schedule of infusion dates over the next 13 months. 

the breakdown of infusion frequency goes like this:

CASE 1: user selects infusions per 1 week period.
a. 1 infusion every week -> increment every 7 days
b. 2 infusions "" -> increment every 4 days
c. 3 infusions "" -> increment every 2 days
d. 4 infusions "" -> alert ("max 3 infusions/week" );

CASE 2: user selects infusions per 2 week period.
a. 1 infusion every 2 weeks -> increment every 14 days
b. 2 infusions "" -> increment every 7 days
c. 3 infusions "" -> increment every 4 days
d. 4 infusions "" -> increment every 4 days
 
CASE 3: user selects infusions per 3 week period.
a. 1 infusion every 3 weeks -> increment every 21 days
b. 2 infusions "" -> increment every 10 days
c. 3 infusions "" -> increment every 7 days
d. 4 infusions "" -> increment every 5 days

CASE 4: user selects infusions per 4 week period.
a. 1 infusion every 4 weeks -> increment every 28 days
b. 2 infusions "" -> increment every 14 days
c. 3 infusions "" -> increment every 9 days
d. 4 infusions "" -> increment every 7 days

the way i figured to do it would be to capture the starting day and month and 
then calculate ( based on number of infusions and frequency ) every other day 
and month over a 13 month period. i'd throw all of these values into an 
'infusionDates' array and then i can loop over them and change the properties 
of the DateChooser that i need. 

i just need help figuring out how to populate the infusionDates array. can 
anyone help me get started, please? 

thanks for any tips. -- matt. 
___
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] Font jumping cross platform

2006-04-27 Thread Kevin Newman
Most of the fonts that I use are not free or come from Adobe Font Folio 
OpenType edition. It doesn't happen with all fonts, but it is definitely 
a problem with the Macromedia programs (I think this is a problem in 
Freehand and Fireworks also, though I haven't tested that in a while) 
since this problem doesn't exist in other programs (like adobe's). So I 
really think this is a bug in the framework, and that workarounds should 
only be considered in that light (meaning, Adobe/Macromedia should fix 
this, so we don't have to employ workarounds).


I'm also pretty sure that this happens with PostScript outline fonts 
(OpenType can contain either TrueType or PostScript outlines), but I'll 
keep a closer eye on that, and let you know if I find something out that 
differs from this description. Also, the fonts that I've converted with 
CrossFont have all always been Mac PostScript fonts. I originally 
thought this was a problem with CrossFont, but have since learned that 
this affects other cross platform fonts as well (OpenType).


Kevin N.



Adrian Penn wrote:

Hello.
 
This would make sense I think. However, I'm nearly certain that the font we'd used and experienced problems with, Rotis, is an Adobe font (of one flavor or another) and not a free Truetype font. I'll check in a couple days and report back if I learn anything of interest.
 
Thanks!
 
-Adrian




From: Roman Blöth [mailto:[EMAIL PROTECTED]
Sent: Wed 4/26/2006 11:50 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Font jumping cross platform



Hello there,


Adrian Penn schrieb:
  

I've also experienced this problem or something very similar.

I was given a handful of .fla files for a project a while back. All of these 
files were authored on a Mac. When we opened them on a PC - many of the text 
fields looked substantially different. The vertical positioning was off a bit 
as described here but worse still, the leading between characters was 
different. It looked fine when opening the same file in Flash on a Mac. The 
leading appeared much tighter on the PC than on the Mac. If we fixed the 
leading on the PC then it was too spaced-out on the Mac.

If memory serves, we only saw this problem with one of the fonts used in the 
project. I think it was Rotis. I do not recall its format. I'm curious to go 
have a look again based on this thread however.

Not being able to resolve the issue on the PC - we were left with having to do 
the final compile on a Mac.


Same same...
Here we face this phenomenon every day - unfortunately normally
designers work on Mac whileas programmers work on PCs.

I assume it has to do with the fonts you use - I believe ATM fonts on a
PC (using ATM - though I thought since w2k you wouldn't need ATM any
more to use ATM fonts) work much better than TTF. And probably
(expensive) high quality fonts also work better than one of those
thousands free TTF fonts out there...


Regards,
Roman.

--

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.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] Test - ignore

2006-04-27 Thread Jordan Snyder
Mine never show up unless someone replies...so, do you see it now?

Cheers

On 4/27/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> Test - ignore
>
>  my messages don't seem to be getting through.
>
> Jason Merrill   |   E-Learning Solutions   |  ICF International
>
>
>
>
> ___
> 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
>


--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.com
http://www.jordansnyder.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] 1st May Sydney Developers study group

2006-04-27 Thread Chris Velevitch
Monday 1st May is the next meeting of the study group. We will be
studying Flex MXML. Please read the articles prior to the meeting (see
http://www.flashdev.org.au/program). At the meeting, the moderator
will lead discussion and with questions about the topic. The meeting
is on at 6:30pm for 7pm start and finishes around 8:30pm.

Details about the group, venue and program are available from
http://www.flashdev.org.au. Please note, whilst the meetings and the
use of the club are free, the club does require us to purchase
beverages and/or snacks in exchange.

Please RSVP at http://www.flashdev.org.au/rsvp.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
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] Font jumping cross platform

2006-04-27 Thread Adrian Penn
Hello.
 
This would make sense I think. However, I'm nearly certain that the font we'd 
used and experienced problems with, Rotis, is an Adobe font (of one flavor or 
another) and not a free Truetype font. I'll check in a couple days and report 
back if I learn anything of interest.
 
Thanks!
 
-Adrian



From: Roman Blöth [mailto:[EMAIL PROTECTED]
Sent: Wed 4/26/2006 11:50 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Font jumping cross platform



Hello there,


Adrian Penn schrieb:
> 
> I've also experienced this problem or something very similar.
> 
> I was given a handful of .fla files for a project a while back. All of these 
> files were authored on a Mac. When we opened them on a PC - many of the text 
> fields looked substantially different. The vertical positioning was off a bit 
> as described here but worse still, the leading between characters was 
> different. It looked fine when opening the same file in Flash on a Mac. The 
> leading appeared much tighter on the PC than on the Mac. If we fixed the 
> leading on the PC then it was too spaced-out on the Mac.
> 
> If memory serves, we only saw this problem with one of the fonts used in the 
> project. I think it was Rotis. I do not recall its format. I'm curious to go 
> have a look again based on this thread however.
> 
> Not being able to resolve the issue on the PC - we were left with having to 
> do the final compile on a Mac.
Same same...
Here we face this phenomenon every day - unfortunately normally
designers work on Mac whileas programmers work on PCs.

I assume it has to do with the fonts you use - I believe ATM fonts on a
PC (using ATM - though I thought since w2k you wouldn't need ATM any
more to use ATM fonts) work much better than TTF. And probably
(expensive) high quality fonts also work better than one of those
thousands free TTF fonts out there...


Regards,
Roman.

--

---
 gosub communications gmbh | fredersdorfer str. 10  | 10243 berlin
t [030] 29 36 39 1 - 43 | f [030] 29 66 88 84 | http://www.gosub.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


[Flashcoders] Class Dropdowns in Flash

2006-04-27 Thread Doug Coning
I believe I read somewhere, but can't locate it, where you can add a
feature that allows the properties of custom created classes to show in
Flash when you are developing.  I'd like to add some frequently used
classes so that when I type the class out: myClass.myMethod, that the
methods for the class show.

Is this possible?  How would I do this?

Thanks,

Doug Coning 
Senior Web Development Programmer
FORUM Solutions, LLC
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please "reply to" sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.
___
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: Flash Player 6 on PSP

2006-04-27 Thread JesterXL
Most of the performance problems I've found with content is that people 
expect too much per frame.  If you spread the damage, such as attaching 15 
movieclips over 15 frames vs. 1, you'd be surprised how forgiving the player 
will be.  I've been pretty impressed with Flash Lite 2 on my Nokia 6680, so 
I'm sure the PSP is the same way.  It just takes patience and knowledge of 
how to optimize in Flash.

Regardless, no matter how good you are, you can't fit 15 megs into 1 meg on 
a device, your' 800x600 designed content isn't magically going to look good 
if you didn't design it for such a small device, and you can't expect 
Pentium 4 power from such a small device.  Either way, it's good to see 
these high expectations.


- Original Message - 
From: "Ryan Creighton" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, April 27, 2006 12:02 PM
Subject: [Flashcoders] Re: Flash Player 6 on PSP



i work on the support site for a kids' TV station, and am watching Flash
development on portable devices very, very closely.  We put one of our
most simple games from our site on the PSP yesterday and it was DOG
slow.  And the edges of the swf weren't masked, so you got to see all of
the supposedly off-screen goodies.

Ideally, we'd like to make our games library available to kids on the
PSP and the DS, but it'll be a tough sell if we have to meticulously
develop every game to fit such a finicky device.  Just as i'm hanging
out until cell phones unanimously ship with FlashLite 2.0, i'm more
comfortable waiting until this bleeding edge PSP support clots a little.


Ryan Creighton
Senior Game Developer, CORUS Interactive

http://www.ytv.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] Re: Flash Player 6 on PSP

2006-04-27 Thread Ryan Creighton
 
i work on the support site for a kids' TV station, and am watching Flash
development on portable devices very, very closely.  We put one of our
most simple games from our site on the PSP yesterday and it was DOG
slow.  And the edges of the swf weren't masked, so you got to see all of
the supposedly off-screen goodies.

Ideally, we'd like to make our games library available to kids on the
PSP and the DS, but it'll be a tough sell if we have to meticulously
develop every game to fit such a finicky device.  Just as i'm hanging
out until cell phones unanimously ship with FlashLite 2.0, i'm more
comfortable waiting until this bleeding edge PSP support clots a little.


Ryan Creighton
Senior Game Developer, CORUS Interactive

http://www.ytv.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] Are you a help vampire?

2006-04-27 Thread Jonathan Berry
Thanks, Jim, but you didn't read my e-mail.

On 4/27/06, Jim Tann <[EMAIL PROTECTED]> wrote:
>
> http://www.osflash.org/flashcoders/as2#handling_scope_in_event_handlers
>
>
___
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] hideBuiltInItems and settings and about...hide everything

2006-04-27 Thread chattystan
Is there a work around that will let me get rid of the settings choice in
the contextMenu for example when I right click on a particular movie clip.
I would like to right click on an mc and be able to have complete control
of what it says in the contextMenu. I have used hideBuiltInItems, but I
want to get rid of settings... and the About macromedia flash 8 menuItems
as well.

Stanford

___
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] createClassObject with List Class funky

2006-04-27 Thread Jim Armstrong

Stefan Thurnherr wrote:

and according to the AS2.0 Language Reference, MovieClip
does not have any createClassObject() member...so now I don't
understand why aMovieClip.createClassObject() works at all, eventhough
I am successfully using it.

Can someone else shed some light on this issue?
  
If memory serves, MovieClip is a dynamic class and createClassObject() 
is added to the MovieClip prototype by the V2 framework at runtime.


hth,


- jim


--
2112 FX :: Singularity
[Business Intelligence][Custom Programming]
Flash Math Blog :: www.2112fx.com/blog


___
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] Event listeners and memory waste...

2006-04-27 Thread Manuel Saint-Victor
Here's an example I came across this morning that has helped me to cut back
on my ram waste

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=2401.html

On 4/27/06, Julien Vignali <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
> I am getting memory problems when I remove and recreate all my objects
> several times (the flash player eats up RAM, and I have to minimize it
> and maximize to force the garbage collector).There must be something
> wrong in the way I destroy my objects :-(
>
> So I am wondering what is the best way to handle event listeners and to
> be able to remove the listeners afterwards in order to avoid memory
> waste...
>
> I've seen on some page that using Delegate (or Lott's Proxy class) is a
> good practice, but how do you properly remove the listener when you're
> done with the object ?
>
> For example in class A (see below), how do you remove "this" from
> listening to every elements' "myevent" event in the destroy() method ?
>
> Thanks!
> Julien
>
>
> public classA extends MovieClip {
>
>public function addElement(data:Object):Void {
>  var elt:CustomMC = attachMovie("Test", "test"+data.id,
> getNextHighestDepth());
>  elt.addEventListener("myevent", Delegate.create(this,
> this.onMyEvent));
> elements[data.id] = elt;
>}
>
>public function destroy():Void {
>  for(var i:String in elements){
>var elt:CustomMC = elements[i];
>// remove listener object... ???
>elt.removeMovieClip();
>elements[i] = null;
>  }
>}
>
>private function onMyEvent(event:Object):Void {
>  // handle the event...
>}
> }
>
>
>
>
> ___
> 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] createClassObject with List Class funky

2006-04-27 Thread Stefan Thurnherr
On 4/27/06, August Gresens <[EMAIL PROTECTED]> wrote:
> No, that didn't work. Actually, I'm doing this within a non-movieclip
> extended class, so the syntax is like this:
>
> clip_mc.createClassObject(List, "listText_lst", clip.getNextHighestDepth()
> );
> clip_mc.listText_lst.setSize(550, 150);
> clip_mc.listText_lst.move(listText.x+50, listText.y+50);
>
> But that doesn't work either.
>
> Would it make a difference if this is happening outside a movieclip class?
>
> In the documentation, it does say that that the UIObject class "wraps" the
> MovieClip class - so I'm wondering if that is the problem. The
> createClassObject method does not come up in the code hinting for the
> MovieClip class either. Perhaps the method does not exist in the plain old
> MovieClip class?

I just checked with the Macromedia livedocs, and createClassObject()
indeed is a member of the UIObject class. MovieClip is the superclass
of UIObject, and according to the AS2.0 Language Reference, MovieClip
does not have any createClassObject() member...so now I don't
understand why aMovieClip.createClassObject() works at all, eventhough
I am successfully using it.

Can someone else shed some light on this issue?

Cheers,
 stefan.

>
> Thanks,
>
> August
>
> On 4/27/06, Stefan Thurnherr <[EMAIL PROTECTED]> wrote:
> >
> > On 4/27/06, August Gresens <[EMAIL PROTECTED]> wrote:
> > > Trying to create a List Class instance and having trouble. The list
> > shows up
> > > on the stage, but the variable returned from createClassObject is null,
> > so I
> > > cannot change the format or reposition it.
> > >
> > > This code is based on an example in the Mook Essential ActionScript
> > book.
> > > The List composnent is in the Library and placed on frame after the
> > classes
> > > have loaded.
> > >
> > > //  begin code snippet
> > >
> > > import mx.controls.List
> > >
> > > var listText:List;
> > >
> > > clip_mc = parent_mc.createEmptyMovieClip( "clip",
> > parent.getNextHighestDepth()
> > > );
> > > listText =   clip_mc.createClassObject(List, "listText_lst",
> > > clip.getNextHighestDepth() );
> > >
> > > // these commands have no effect -- debugger shows that listText is
> > null.
> > > listText.setSize(550, 150);
> > > listText.move(listText.x+50, listText.y+50);
> >
> > Have you tried
> >
> > listText_lst.setSize(550, 150);
> > listText_lst.move(listText.x+50, listText.y+50);
> >
> > instead? I am not sure whether createClassObject returns the created
> > class object...
> >
> > HTH,
> > stefan.
> >
> > >
> > >
> > > Any thoughts?
> > >
> > > Thanks,
> > >
> > > August
> > >
> > > --
> > > -
> > > 
> > >
> > > August Gresens
> > > Technical Director
> > > Black Hammer Productions, NYC
> > > [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
> > >
> > ___
> > 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
> >
>
>
>
> --
> -
> 
>
> August Gresens
> Technical Director
> Black Hammer Productions, NYC
> [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
>
___
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] Luminicbox / xray

2006-04-27 Thread John Grden
Yep, thats in the works, but Red5 stuff has just taken over in the last
month cause of FITC.  But now I'm passed that, I'm getting back to xray on
not only that, but an updated UI ;)

If you wouldn't mind, would you pass along what you've created so I could
blog it and provide a link for download until I can get the external loader
worked out?

Thanks JC!

JG

On 4/27/06, j.c.wichman <[EMAIL PROTECTED]> wrote:
>
> Hi peeps,
>
> I downloaded luminicbox in addition to Xray, which I have been using
> already
> for some time, but I thought it would be nice to just use m both, Xray for
> the introspection and luminicbox for the logging. I think I heard John
> mention at one point he was going to try to incorporate luminic into xray
> (is that right john?), but until that time comes I'm writing a simple
> static
> log wrapper around the LuminicBox Logger class and a publisher to Xray for
> this logger.
> I agree it's very simple, but since any double work is a shame:), I'd like
> to know if it's:
> A) something that's already available for download
> B) something you'd like available for download when done...
>
> greetz
> Hans
>
> ___
> 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
>



--
John Grden - Blitz
___
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: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey
Cool, thanks for that. It's strange the holes you find in your AS  
knowledge sometimes...


On 27 Apr 2006, at 15:29, Zeh Fernando wrote:

That is exactly what it does, eg 0x73 becomes 7558485, but  
that's  not what I need. I need it to stay hexadecimal, but to be  
recognised  as a number type. It shouldn't be converted, its type  
needs to be  changed.


Well, a number is a number - 0xff *is* 255. If you need it to be  
hexadecimal for some visual or string reason, you need to convert  
it back to an hex string - with .toString(16).



Hey, it's Zeh, it's your mc tween class I'm using isn't it? :>   
Fantastic script...


Yes, it probably is. Thanks!


The docs only have hex numbers used in the colorTo() function, so  
I assumed that's what I needed - can I use a normal int too?


Sure, you can. Like I said, a number is a number - whether you're  
seeing it as "F" or "15" is just a matter of visual representation  
under a certain base. If you want to write something using hex  
numbers, you can use, say, 0xff2101 because it's easier; but if you  
pass the parameter as being 16720129 instead, it's the same thing.  
You could even use 077620401 as an octal number, it's no different  
to Flash. The same applies to any method or function that 'usually'  
an hex number as input - say, the setRGB method (colorTo uses the  
same color input parameter).


In the end,

trace (0xff === 255);

Traces "true".


- Zeh
___
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] Event listeners and memory waste...

2006-04-27 Thread Julien Vignali

Hi guys,
I am getting memory problems when I remove and recreate all my objects 
several times (the flash player eats up RAM, and I have to minimize it 
and maximize to force the garbage collector).There must be something 
wrong in the way I destroy my objects :-(


So I am wondering what is the best way to handle event listeners and to 
be able to remove the listeners afterwards in order to avoid memory waste...


I've seen on some page that using Delegate (or Lott's Proxy class) is a 
good practice, but how do you properly remove the listener when you're 
done with the object ?


For example in class A (see below), how do you remove "this" from 
listening to every elements' "myevent" event in the destroy() method ?


Thanks!
Julien


public classA extends MovieClip {

  public function addElement(data:Object):Void {
var elt:CustomMC = attachMovie("Test", "test"+data.id, 
getNextHighestDepth());
elt.addEventListener("myevent", Delegate.create(this, 
this.onMyEvent));

   elements[data.id] = elt;
  }

  public function destroy():Void {
for(var i:String in elements){
  var elt:CustomMC = elements[i];
  // remove listener object... ???
  elt.removeMovieClip();
  elements[i] = null;
}
  }

  private function onMyEvent(event:Object):Void {
// handle the event...
  }
}




___
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] Solved Re: Problem with removeEventListener and Delegate

2006-04-27 Thread Manuel Saint-Victor
I found the anser through the docs and some blog posts

http://blogs.katapultmedia.com/jb2/flash/
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=2401.html


Hope this helps someone else from suffering through this!

Mani


On 4/27/06, Manuel Saint-Victor <[EMAIL PROTECTED]> wrote:
>
> I am using the following code to add an eventListener
> VideoModel.getInstance().addEventListener("startUpdates",
> Delegate.create(this, videoUpdates));
>
>
> Later when this dispatched event is caught I'm using the following to try
> to remove the listener but it is not working- Am I missing some other
> detail.
>
>
> public function videoUpdates(ev){
> Logger.info("updated");
> Logger.info("source:"+ ev.source._name);
> if(ev.source._name==targetVideo || targetVideo=="defaultVideo"){
> Logger.info("BINGO");
> this.assignedStream=ev.stream;
> Logger.debug(ev.target);
> VideoModel.getInstance().removeEventListener("startUpdates",
> this.videoUpdates );
> }
> Logger.info("i am "+ this  +" my targetVideo is"+ targetVideo);
>
> }
> I also tried removing the listener using  a reference that was passes in
> through the event object with no success.
> Please help- I can't figure out why it's failing.
>
> Mani
>
>
>
>
>
___
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] Code-created textfield doesn't re nder À

2006-04-27 Thread Lieven Cardoen
I've created a textfield with embedded fonts. The Character 'À' doesn't appear. 
The font Frutiger is in my library.

 

 

When I put a textfield on my stage, embed fonts, and add 'À', then in this 
textfield the À does appear, but still not in my code-created textfield. I've 
also put a textfield with frutiger and À embedded on the root of my stage, but 
still no À appears in my textfield.

 

Is there a way to embed certain characters when a font is in your library???

 

 

Code : 

 

txt_MenuItemDescription = idiomaticComponentFactory.createTextField(this, 
"description" + depth, depth);

txt_MenuItemDescription._width = 300;

txt_MenuItemDescription._x = MenuItem.XOFFSETTXT;

//txt_MenuItemDescription.html = true;

var textFormat:TextFormat = txt_MenuItemDescription.getNewTextFormat();

textFormat.font = "Frutiger";

txt_MenuItemDescription.setNewTextFormat(textFormat);

txt_MenuItemDescription.antiAliasType = "advanced";

txt_MenuItemDescription.embedFonts = true;

 

txt_MenuItemDescription.text = "À L'hypermarché!"

 

lieven cardoen

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 
T +32 (0)56/361 197
// communicatie bij voorkeur op [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: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Zeh Fernando
That is exactly what it does, eg 0x73 becomes 7558485, but that's  not 
what I need. I need it to stay hexadecimal, but to be recognised  as a 
number type. It shouldn't be converted, its type needs to be  changed.


Well, a number is a number - 0xff *is* 255. If you need it to be hexadecimal 
for some visual or string reason, you need to convert it back to an hex 
string - with .toString(16).



Hey, it's Zeh, it's your mc tween class I'm using isn't it? :>  Fantastic 
script...


Yes, it probably is. Thanks!


The docs only have hex numbers used in the colorTo() function, so I 
assumed that's what I needed - can I use a normal int too?


Sure, you can. Like I said, a number is a number - whether you're seeing it 
as "F" or "15" is just a matter of visual representation under a certain 
base. If you want to write something using hex numbers, you can use, say, 
0xff2101 because it's easier; but if you pass the parameter as being 
16720129 instead, it's the same thing. You could even use 077620401 as an 
octal number, it's no different to Flash. The same applies to any method or 
function that 'usually' an hex number as input - say, the setRGB method 
(colorTo uses the same color input parameter).


In the end,

trace (0xff === 255);

Traces "true".


- Zeh 


___
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] createClassObject with List Class funky

2006-04-27 Thread August Gresens
No, that didn't work. Actually, I'm doing this within a non-movieclip
extended class, so the syntax is like this:

clip_mc.createClassObject(List, "listText_lst", clip.getNextHighestDepth()
);
clip_mc.listText_lst.setSize(550, 150);
clip_mc.listText_lst.move(listText.x+50, listText.y+50);

But that doesn't work either.

Would it make a difference if this is happening outside a movieclip class?

In the documentation, it does say that that the UIObject class "wraps" the
MovieClip class - so I'm wondering if that is the problem. The
createClassObject method does not come up in the code hinting for the
MovieClip class either. Perhaps the method does not exist in the plain old
MovieClip class?

Thanks,

August

On 4/27/06, Stefan Thurnherr <[EMAIL PROTECTED]> wrote:
>
> On 4/27/06, August Gresens <[EMAIL PROTECTED]> wrote:
> > Trying to create a List Class instance and having trouble. The list
> shows up
> > on the stage, but the variable returned from createClassObject is null,
> so I
> > cannot change the format or reposition it.
> >
> > This code is based on an example in the Mook Essential ActionScript
> book.
> > The List composnent is in the Library and placed on frame after the
> classes
> > have loaded.
> >
> > //  begin code snippet
> >
> > import mx.controls.List
> >
> > var listText:List;
> >
> > clip_mc = parent_mc.createEmptyMovieClip( "clip",
> parent.getNextHighestDepth()
> > );
> > listText =   clip_mc.createClassObject(List, "listText_lst",
> > clip.getNextHighestDepth() );
> >
> > // these commands have no effect -- debugger shows that listText is
> null.
> > listText.setSize(550, 150);
> > listText.move(listText.x+50, listText.y+50);
>
> Have you tried
>
> listText_lst.setSize(550, 150);
> listText_lst.move(listText.x+50, listText.y+50);
>
> instead? I am not sure whether createClassObject returns the created
> class object...
>
> HTH,
> stefan.
>
> >
> >
> > Any thoughts?
> >
> > Thanks,
> >
> > August
> >
> > --
> > -
> > 
> >
> > August Gresens
> > Technical Director
> > Black Hammer Productions, NYC
> > [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
> >
> ___
> 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
>



--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[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: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey

Just did it, and yes, it doesn't have to be a hex - sweet!

Thanks for the help guys.

On 27 Apr 2006, at 15:14, Kent Humphrey wrote:

The docs only have hex numbers used in the colorTo() function, so I  
assumed that's what I needed - can I use a normal int too?


___
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] Test - ignore

2006-04-27 Thread Merrill, Jason
Test - ignore

 my messages don't seem to be getting through.  

Jason Merrill   |   E-Learning Solutions   |  ICF International




___
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: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey


On 27 Apr 2006, at 15:00, Zeh Fernando wrote:


trace(bgColour[0]) returns the correct value, but
trace(Number(bgColour[0])) returns NaN - so how do I make it a  
real  number?
The help docs say that a string that starts with 0x will be  
treated  as hexadecimal.


Use parseInt() to convert a string into a number



That is exactly what it does, eg 0x73 becomes 7558485, but that's  
not what I need. I need it to stay hexadecimal, but to be recognised  
as a number type. It shouldn't be converted, its type needs to be  
changed.


Hey, it's Zeh, it's your mc tween class I'm using isn't it? :>  
Fantastic script...


The docs only have hex numbers used in the colorTo() function, so I  
assumed that's what I needed - can I use a normal int too?

___
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] createClassObject with List Class funky

2006-04-27 Thread Stefan Thurnherr
On 4/27/06, August Gresens <[EMAIL PROTECTED]> wrote:
> Trying to create a List Class instance and having trouble. The list shows up
> on the stage, but the variable returned from createClassObject is null, so I
> cannot change the format or reposition it.
>
> This code is based on an example in the Mook Essential ActionScript book.
> The List composnent is in the Library and placed on frame after the classes
> have loaded.
>
> //  begin code snippet
>
> import mx.controls.List
>
> var listText:List;
>
> clip_mc = parent_mc.createEmptyMovieClip( "clip", parent.getNextHighestDepth()
> );
> listText =   clip_mc.createClassObject(List, "listText_lst",
> clip.getNextHighestDepth() );
>
> // these commands have no effect -- debugger shows that listText is null.
> listText.setSize(550, 150);
> listText.move(listText.x+50, listText.y+50);

Have you tried

listText_lst.setSize(550, 150);
listText_lst.move(listText.x+50, listText.y+50);

instead? I am not sure whether createClassObject returns the created
class object...

HTH,
 stefan.

>
>
> Any thoughts?
>
> Thanks,
>
> August
>
> --
> -
> 
>
> August Gresens
> Technical Director
> Black Hammer Productions, NYC
> [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
>
___
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: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Zeh Fernando

trace(bgColour[0]) returns the correct value, but
trace(Number(bgColour[0])) returns NaN - so how do I make it a real  
number?
The help docs say that a string that starts with 0x will be treated  
as hexadecimal.


Use parseInt() to convert a string into a number.




- Zeh
___
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] Problem with removeEventListener and Delegate

2006-04-27 Thread Manuel Saint-Victor
I am using the following code to add an eventListener
VideoModel.getInstance().addEventListener("startUpdates",
Delegate.create(this, videoUpdates));


Later when this dispatched event is caught I'm using the following to try to
remove the listener but it is not working- Am I missing some other detail.


public function videoUpdates(ev){
Logger.info("updated");
Logger.info("source:"+ ev.source._name);
if(ev.source._name==targetVideo || targetVideo=="defaultVideo"){
Logger.info("BINGO");
this.assignedStream=ev.stream;
Logger.debug(ev.target);
VideoModel.getInstance().removeEventListener("startUpdates",
this.videoUpdates);
}
Logger.info("i am "+ this  +" my targetVideo is"+ targetVideo);

}
I also tried removing the listener using  a reference that was passes in
through the event object with no success.
Please help- I can't figure out why it's failing.

Mani
___
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: AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey

 of course...

so the return from XPath is an object/array containing a string, and  
I need it as a number.


trace(bgColour[0]) returns the correct value, but

trace(Number(bgColour[0])) returns NaN - so how do I make it a real  
number?


The help docs say that a string that starts with 0x will be treated  
as hexadecimal.




On 27 Apr 2006, at 13:11, Kerem Gülensoy wrote:


Number

cheers | kerem

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Kent
Humphrey
Gesendet: Donnerstag, 27. April 2006 13:54
An: Flashcoders mailing list
Betreff: [Flashcoders] Is a colour stated as 0xFF00FF an object?

Is a colour stated as 0xFF00FF an object?

I am getting a colour from an xml attribute with XPath  
(colour="0xFF00FF"),

and then trying to use that colour with the mc tween class -
my_mc.colorTo(bgColour, 1). But it always changes to black.

If I trace() the bgColour, it has the correct value.

If I trace the typeof() the bgColour, it returns object.

What should the type be for this to work?

Thanks for your time.
___
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] createClassObject with List Class funky

2006-04-27 Thread August Gresens
Trying to create a List Class instance and having trouble. The list shows up
on the stage, but the variable returned from createClassObject is null, so I
cannot change the format or reposition it.

This code is based on an example in the Mook Essential ActionScript book.
The List composnent is in the Library and placed on frame after the classes
have loaded.

//  begin code snippet

import mx.controls.List

var listText:List;

clip_mc = parent_mc.createEmptyMovieClip( "clip", parent.getNextHighestDepth()
);
listText =   clip_mc.createClassObject(List, "listText_lst",
clip.getNextHighestDepth() );

// these commands have no effect -- debugger shows that listText is null.
listText.setSize(550, 150);
listText.move(listText.x+50, listText.y+50);


Any thoughts?

Thanks,

August

--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[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: [OBORONA-SPAM] RE: [Flashcoders] Are you a help vampire?

2006-04-27 Thread elibol
Shh back off man he's got it under control.

On 4/27/06, ? ??? <[EMAIL PROTECTED]> wrote:
>
> Jim Tann ?:
> > http://www.osflash.org/flashcoders/as2#handling_scope_in_event_handlers
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan
> > Berry
> > Sent: 26 April 2006 23:53
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] Are you a help vampire?
> >
> > I want to offer a basic counterpoint to this: what if the question is
> > just
> > from a beginner, who has in fact researched a problem found the
> > documentation/resources incomplete in some way? Is it just because a
> > person
> > is a beginner that you will not offer help?
> >
> > Case in point, and be patient with me. I am not by any means venting
> > here,
> > but I offered a question some time ago about the basic placement of
> > anonymous functions like btn1.onRelease =
> > function(){getURL(_root.variable_name,"_blank");} and also asked about
> > whether or not such a function required the _root if it was in fact on
> > the
> > _root timeline. I actually received some very nice assistance on this
> > and I
> > appreciate the poster, since though I did discover that this was true
> > through experimentation myself, he did give me a short lesson on scope.
> > I
> > had already learned about the Delegate class, but this basic issue was
> > not
> > clear in my reading, so I would not know I had to use _root or Delegate
> > or
> > what have you. I do know some Javascript and PHP and so programming is
> > not
> > beyond me, but learning a new technology from the ground up is the way I
> > learn generally. I like to know *all* the aspects. So please permit
> > those
> > who are learning and obviously trying the benefit of the doubt.
> >
> > Another thing is further questions on the same subject. In this same
> > issue,
> > I had the question "are such function assignments applicable to a button
> > if
> > the code is placed before the button on the timeline?" I got a no, of
> > course, which was a basic thing I had sketchy knowledge on. What I had
> > was
> > an ad sent to us by a client wherein the previous coder had used on()
> > handlers on the clips and I was trying to rewrite it to include the
> > anonymous functions and our variables, as stated before. When I wrote in
> > the
> > code in a keyframe in the actions layer above where the button was
> > instantiated, it worked, but when a new keyframe in the button layer
> > came
> > up, I had to re-enter the code there as well. This seemed like
> > repetitive
> > work and my further question about this was not answered.
> >
> > My point is, does this make me dumb? No. It would make me lazy however
> > if I
> > did not research this. But this basic practice of where code should be
> > written and how often was not clear to me since the project was not
> > working
> > in subsequent frames and the documentation I had read seemed to say
> > write
> > and be done with it.
> >
> > I suppose I am both asking this general question again, to help solidify
> > my
> > knowledge, and also pointing out that this does not make those who try
> > but
> > fail stupid. All I am saying is that I appreciate all your knowledge on
> > this
> > subject, but please have patience with those who are trying to learn and
> > distinguish them from the vampires who ask questions that are so general
> > that they lack any knowledge of Flash.
> > ___
> > 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
> >
> >
> > I suppose I am both asking this general question again, to help
> > solidify my knowledge, and also pointing out that this does not make
> > those who try but fail stupid. All I am saying is that I appreciate
> > all your knowledge on this subject, but please have patience with
> > those who are trying to learn and distinguish them from the vampires
> > who ask questions that are so general that they lack any knowledge of
> > Flash.
> Entirely and completely I support this comrade.
>
> ___
> 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 Con

[Flashcoders] Luminicbox / xray

2006-04-27 Thread j.c.wichman
Hi peeps,

I downloaded luminicbox in addition to Xray, which I have been using already
for some time, but I thought it would be nice to just use m both, Xray for
the introspection and luminicbox for the logging. I think I heard John
mention at one point he was going to try to incorporate luminic into xray
(is that right john?), but until that time comes I'm writing a simple static
log wrapper around the LuminicBox Logger class and a publisher to Xray for
this logger.
I agree it's very simple, but since any double work is a shame:), I'd like
to know if it's:
A) something that's already available for download
B) something you'd like available for download when done...

greetz
Hans

___
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


AW: [Flashcoders] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kerem Gülensoy
Number

cheers | kerem 

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Kent
Humphrey
Gesendet: Donnerstag, 27. April 2006 13:54
An: Flashcoders mailing list
Betreff: [Flashcoders] Is a colour stated as 0xFF00FF an object?

Is a colour stated as 0xFF00FF an object?

I am getting a colour from an xml attribute with XPath (colour="0xFF00FF"),
and then trying to use that colour with the mc tween class -
my_mc.colorTo(bgColour, 1). But it always changes to black.

If I trace() the bgColour, it has the correct value.

If I trace the typeof() the bgColour, it returns object.

What should the type be for this to work?

Thanks for your time.
___
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] Is a colour stated as 0xFF00FF an object?

2006-04-27 Thread Kent Humphrey

Is a colour stated as 0xFF00FF an object?

I am getting a colour from an xml attribute with XPath  
(colour="0xFF00FF"), and then trying to use that colour with the mc  
tween class - my_mc.colorTo(bgColour, 1). But it always changes to  
black.


If I trace() the bgColour, it has the correct value.

If I trace the typeof() the bgColour, it returns object.

What should the type be for this to work?

Thanks for your time.
___
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: [OBORONA-SPAM] RE: [Flashcoders] Are you a help vampire?

2006-04-27 Thread ????? ???????

Jim Tann ?:

http://www.osflash.org/flashcoders/as2#handling_scope_in_event_handlers


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan
Berry
Sent: 26 April 2006 23:53
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Are you a help vampire?

I want to offer a basic counterpoint to this: what if the question is
just
from a beginner, who has in fact researched a problem found the
documentation/resources incomplete in some way? Is it just because a
person
is a beginner that you will not offer help?

Case in point, and be patient with me. I am not by any means venting
here,
but I offered a question some time ago about the basic placement of
anonymous functions like btn1.onRelease =
function(){getURL(_root.variable_name,"_blank");} and also asked about
whether or not such a function required the _root if it was in fact on
the
_root timeline. I actually received some very nice assistance on this
and I
appreciate the poster, since though I did discover that this was true
through experimentation myself, he did give me a short lesson on scope.
I
had already learned about the Delegate class, but this basic issue was
not
clear in my reading, so I would not know I had to use _root or Delegate
or
what have you. I do know some Javascript and PHP and so programming is
not
beyond me, but learning a new technology from the ground up is the way I
learn generally. I like to know *all* the aspects. So please permit
those
who are learning and obviously trying the benefit of the doubt.

Another thing is further questions on the same subject. In this same
issue,
I had the question "are such function assignments applicable to a button
if
the code is placed before the button on the timeline?" I got a no, of
course, which was a basic thing I had sketchy knowledge on. What I had
was
an ad sent to us by a client wherein the previous coder had used on()
handlers on the clips and I was trying to rewrite it to include the
anonymous functions and our variables, as stated before. When I wrote in
the
code in a keyframe in the actions layer above where the button was
instantiated, it worked, but when a new keyframe in the button layer
came
up, I had to re-enter the code there as well. This seemed like
repetitive
work and my further question about this was not answered.

My point is, does this make me dumb? No. It would make me lazy however
if I
did not research this. But this basic practice of where code should be
written and how often was not clear to me since the project was not
working
in subsequent frames and the documentation I had read seemed to say
write
and be done with it.

I suppose I am both asking this general question again, to help solidify
my
knowledge, and also pointing out that this does not make those who try
but
fail stupid. All I am saying is that I appreciate all your knowledge on
this
subject, but please have patience with those who are trying to learn and
distinguish them from the vampires who ask questions that are so general
that they lack any knowledge of Flash.
___
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

  
I suppose I am both asking this general question again, to help 
solidify my knowledge, and also pointing out that this does not make 
those who try but fail stupid. All I am saying is that I appreciate 
all your knowledge on this subject, but please have patience with 
those who are trying to learn and distinguish them from the vampires 
who ask questions that are so general that they lack any knowledge of 
Flash.

Entirely and completely I support this comrade.

___
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] Are you a help vampire?

2006-04-27 Thread Jim Tann
http://www.osflash.org/flashcoders/as2#handling_scope_in_event_handlers


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan
Berry
Sent: 26 April 2006 23:53
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Are you a help vampire?

I want to offer a basic counterpoint to this: what if the question is
just
from a beginner, who has in fact researched a problem found the
documentation/resources incomplete in some way? Is it just because a
person
is a beginner that you will not offer help?

Case in point, and be patient with me. I am not by any means venting
here,
but I offered a question some time ago about the basic placement of
anonymous functions like btn1.onRelease =
function(){getURL(_root.variable_name,"_blank");} and also asked about
whether or not such a function required the _root if it was in fact on
the
_root timeline. I actually received some very nice assistance on this
and I
appreciate the poster, since though I did discover that this was true
through experimentation myself, he did give me a short lesson on scope.
I
had already learned about the Delegate class, but this basic issue was
not
clear in my reading, so I would not know I had to use _root or Delegate
or
what have you. I do know some Javascript and PHP and so programming is
not
beyond me, but learning a new technology from the ground up is the way I
learn generally. I like to know *all* the aspects. So please permit
those
who are learning and obviously trying the benefit of the doubt.

Another thing is further questions on the same subject. In this same
issue,
I had the question "are such function assignments applicable to a button
if
the code is placed before the button on the timeline?" I got a no, of
course, which was a basic thing I had sketchy knowledge on. What I had
was
an ad sent to us by a client wherein the previous coder had used on()
handlers on the clips and I was trying to rewrite it to include the
anonymous functions and our variables, as stated before. When I wrote in
the
code in a keyframe in the actions layer above where the button was
instantiated, it worked, but when a new keyframe in the button layer
came
up, I had to re-enter the code there as well. This seemed like
repetitive
work and my further question about this was not answered.

My point is, does this make me dumb? No. It would make me lazy however
if I
did not research this. But this basic practice of where code should be
written and how often was not clear to me since the project was not
working
in subsequent frames and the documentation I had read seemed to say
write
and be done with it.

I suppose I am both asking this general question again, to help solidify
my
knowledge, and also pointing out that this does not make those who try
but
fail stupid. All I am saying is that I appreciate all your knowledge on
this
subject, but please have patience with those who are trying to learn and
distinguish them from the vampires who ask questions that are so general
that they lack any knowledge of Flash.
___
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] Problem with TextField.tabIndex

2006-04-27 Thread Andy Kirkham


I've found the solution.

Just set focusManager.enabled = false

Andy

- Original Message - 
From: "Andy Kirkham" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 26, 2006 12:56 PM
Subject: [Flashcoders] Problem with TextField.tabIndex



I have a very simple Flash 8 movie with two (UI component) buttons and
two input TextFields on the stage.

Automatic tabbing works fine, but if I try to change the tab order by
setting tabIndex on the four objects, thus...

Button1.tabIndex = 4;
text1.tabIndex = 3;
text2.tabIndex = 2;
Button2.tabIndex = 1;

...tabbing only works on the buttons and omits the text fields.

Thus it seems that setting tabIndex on any MovieClip-based instance will
disable tabbing on TextFields, even when the TextFields have tabIndex
set.

Can anyone suggest how to remedy this?

Andy Kirkham.

___
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] Problem with TextField.tabIndex

2006-04-27 Thread Andy Kirkham

Thanks. Excellent advice. However, the "very simple Flash movie" was
just for illustration: my real problem is that I'm dealing with a legacy
project that worked fine in Flash 6, but no longer works now that I've
updated it to Flash 8. Changing all the TextFields to TextInputs may
involve rather more work. Still, I'll try it.

I'd also welcome any confirmation that this is a genuine Flash bug, so
if necessary I can tell my boss it's not my fault :-)

Andy

- Original Message - 

Dont' use TextFields; use a TextInput or TextArea and style accordingly.

They have built-in focus & tab management just like buttons.

- Original Message - 
From: "Andy Kirkham" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 26, 2006 12:56 PM
Subject: [Flashcoders] Problem with TextField.tabIndex



I have a very simple Flash 8 movie with two (UI component) buttons and
two input TextFields on the stage.

Automatic tabbing works fine, but if I try to change the tab order by
setting tabIndex on the four objects, thus...

Button1.tabIndex = 4;
text1.tabIndex = 3;
text2.tabIndex = 2;
Button2.tabIndex = 1;

...tabbing only works on the buttons and omits the text fields.

Thus it seems that setting tabIndex on any MovieClip-based instance will
disable tabbing on TextFields, even when the TextFields have tabIndex
set.

Can anyone suggest how to remedy this?

Andy Kirkham.


___
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] Are you a help vampire?

2006-04-27 Thread ryanm
I've been a member of a group , more "strict" than any other groups. It's 
a place for C/C++ programmers where Help Vampires more than often get 
these replies :


   Heh, that's old school. Back in the day, when all this kind of 
discussion took place on newsgroups, that was standard fare. Except that 
there wasn't any google, and vampires were told to restate their questions 
in the form of a haiku.


   Ah, the good old days when flame cascades were relegated to afk-mn 
(alt.fan.karl-malden.nose for the uninitiated)... good stuff. There is no 
cabal.


ryanm 


___
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