[Flashcoders] How to remove scrollbar on Flash Paper via Flash Paper component

2007-02-01 Thread Paul Steven
Hi list

I am using the FlashPaper Component 0.7 to display flashpaper elements in my
Flash movie (Flash 8 PC CDROM)

Does anyone know how to remove the scrollbar? I have managed to remove all
the other UI elements with the following code but a scrollbar is still
appearing on the right hand side. I do not want my user to be able to scroll
the document.

FP_Object.document_fp.showUIElement(Close, false);
FP_Object.document_fp.showUIElement(Brand, false);
FP_Object.document_fp.showUIElement(ZoomKeys, false);
FP_Object.document_fp.showUIElement(Overflow, false);
FP_Object.document_fp.showUIElement(Page, false);
FP_Object.document_fp.showUIElement(Sidebar, false);
FP_Object.document_fp.showUIElement(Pop, false);
FP_Object.document_fp.showUIElement(Find, false);
FP_Object.document_fp.showUIElement(Zoom, false);
FP_Object.document_fp.showUIElement(Tool, false);
FP_Object.document_fp.showUIElement(Print, false);
FP_Object.document_fp.showUIElement(PrevNext, false);

I also tried the following but it does not seem to have any affect:

FP_Object.document_fp.enableScrolling(false);

Btw, I have put my flash paper component inside a container movie clip,
which I am attaching and removing on the fly as and when it is needed.

Thanks

Paul

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Transformation Matrix to MovieClip properties

2007-02-01 Thread Andre

Hi,

I'm working on a jsfl script that should get movieclips properties for
future use. Taking a look at the jsfl reference, I realized that's possible
to get the Transformation Matrix of an element, instead of getting the
_xscale, _yscale and _rotation directly.

The thing is I didn't get it how to convert the Transformation Matrix to
MovieClip properties values.. Can anyone of you guys help me about it?

The matrix returned via jsfl has the a, b, c, d, tx and ty parameters, and I
need to know the _xscale, _yscale and _rotation of the movieclips.

Thank you in advance!

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

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


Re: [Flashcoders] How to remove scrollbar on Flash Paper via FlashPaper component

2007-02-01 Thread Muzak
google
http://www.google.com/search?hl=enq=flashpaper+component+remove+scrollbarmeta=

http://blog.lastashero.com/flash_actionscript/


- Original Message - 
From: Paul Steven [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 01, 2007 8:59 AM
Subject: [Flashcoders] How to remove scrollbar on Flash Paper via FlashPaper 
component


 Hi list

 I am using the FlashPaper Component 0.7 to display flashpaper elements in my
 Flash movie (Flash 8 PC CDROM)

 Does anyone know how to remove the scrollbar? I have managed to remove all
 the other UI elements with the following code but a scrollbar is still
 appearing on the right hand side. I do not want my user to be able to scroll
 the document.

 FP_Object.document_fp.showUIElement(Close, false);
 FP_Object.document_fp.showUIElement(Brand, false);
 FP_Object.document_fp.showUIElement(ZoomKeys, false);
 FP_Object.document_fp.showUIElement(Overflow, false);
 FP_Object.document_fp.showUIElement(Page, false);
 FP_Object.document_fp.showUIElement(Sidebar, false);
 FP_Object.document_fp.showUIElement(Pop, false);
 FP_Object.document_fp.showUIElement(Find, false);
 FP_Object.document_fp.showUIElement(Zoom, false);
 FP_Object.document_fp.showUIElement(Tool, false);
 FP_Object.document_fp.showUIElement(Print, false);
 FP_Object.document_fp.showUIElement(PrevNext, false);

 I also tried the following but it does not seem to have any affect:

 FP_Object.document_fp.enableScrolling(false);

 Btw, I have put my flash paper component inside a container movie clip,
 which I am attaching and removing on the fly as and when it is needed.

 Thanks

 Paul


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flair Pattern bad mixins good (?)

2007-02-01 Thread Keith Salisbury

Funny enough, they are also less widely known as the Four Gangsters
after a someone with limited English skills referred to them this way at
a conference.




Perhaps it was actually English skillz ;-)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] How to remove scrollbar on Flash Paper viaFlashPaper component

2007-02-01 Thread Paul Steven
Thanks Muzak

Strange as I did google it and didn't come up with anything though it was
the wee early hours of the morning and I was not fully functional!!

Cheers anyway - that looks like just the trick!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: 01 February 2007 11:09
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How to remove scrollbar on Flash Paper
viaFlashPaper component

google
http://www.google.com/search?hl=enq=flashpaper+component+remove+scrollbarm
eta=

http://blog.lastashero.com/flash_actionscript/


- Original Message - 
From: Paul Steven [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 01, 2007 8:59 AM
Subject: [Flashcoders] How to remove scrollbar on Flash Paper via FlashPaper
component


 Hi list

 I am using the FlashPaper Component 0.7 to display flashpaper elements in
my
 Flash movie (Flash 8 PC CDROM)

 Does anyone know how to remove the scrollbar? I have managed to remove all
 the other UI elements with the following code but a scrollbar is still
 appearing on the right hand side. I do not want my user to be able to
scroll
 the document.

 FP_Object.document_fp.showUIElement(Close, false);
 FP_Object.document_fp.showUIElement(Brand, false);
 FP_Object.document_fp.showUIElement(ZoomKeys, false);
 FP_Object.document_fp.showUIElement(Overflow, false);
 FP_Object.document_fp.showUIElement(Page, false);
 FP_Object.document_fp.showUIElement(Sidebar, false);
 FP_Object.document_fp.showUIElement(Pop, false);
 FP_Object.document_fp.showUIElement(Find, false);
 FP_Object.document_fp.showUIElement(Zoom, false);
 FP_Object.document_fp.showUIElement(Tool, false);
 FP_Object.document_fp.showUIElement(Print, false);
 FP_Object.document_fp.showUIElement(PrevNext, false);

 I also tried the following but it does not seem to have any affect:

 FP_Object.document_fp.enableScrolling(false);

 Btw, I have put my flash paper component inside a container movie clip,
 which I am attaching and removing on the fly as and when it is needed.

 Thanks

 Paul


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Antialiasing BitmapData in AS2?

2007-02-01 Thread Henry Cooke

Hey all,

I've been mucking about with a metablob-type thing, and have got it
rendering quite nicely. However, it only renders a black-or-white (1bit)
bitmap - does anyone know of a good technique to do fast antialiasing on
such a bitmap? I've tried blurring a bit (which is slow as hell, and looks
crap) and rendering at 1/2 res and scaling up with a draw() with smoothing
on, which also looks crap. Any better suggestions?

Example image attached.

h.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] SCORM?

2007-02-01 Thread Dave Mennenoh
Thanks for all the info on SCORM, it really helped a lot. Carolina mentioned 
using objectives to record all 21 answers. Nice idea... But I'm not entirely 
sure about what you mentioned regarding having to initialize them all first. 
I have an array of 21 values - can I just iterate that and set the 
objectives at the end, before closing the LMS?


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


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

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


[Flashcoders] streaming SWF

2007-02-01 Thread Thomas Silver

Hi there!

Is it it possible to play a loaded swf without it being fully downloaded?
Right now I'm using the movieClipLoader class to download a big swf
animation but it won't play until it's downloaded completely.
The strange thing is that it does display the first frame of the target swf
(this one doesn't contain stop actions).

the code looks like this:

var movieLoader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();

movieLoader.addListener(listener)
movieLoader.loadClip(test.swf, target_mov)

Best Regards,

Thomas
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] streaming SWF

2007-02-01 Thread Hans Wichman

Hi,
yes it is, but if you have a very big movie, and everything is exported on
frame 1, it almost amounts to the same thing as waiting until its fully
loaded.

greetz
JC


On 2/1/07, Thomas Silver [EMAIL PROTECTED] wrote:


Hi there!

Is it it possible to play a loaded swf without it being fully downloaded?
Right now I'm using the movieClipLoader class to download a big swf
animation but it won't play until it's downloaded completely.
The strange thing is that it does display the first frame of the target
swf
(this one doesn't contain stop actions).

the code looks like this:

var movieLoader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();

movieLoader.addListener(listener)
movieLoader.loadClip(test.swf, target_mov)

Best Regards,

Thomas
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread moveup
Hi
I'm cuurrently refactoring some code in a project with lots of extended classes.

What is the recommended practice in declaring static vs non-static (private 
static vs private)
variables?
Should they be declared in both the super and sub classes?

My goal is to avoid any redundant code.
Thanks


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] streaming SWF

2007-02-01 Thread Thomas Silver

Yes!
now it works...great!
Thank you JC!

Thomas


On 2/1/07, Hans Wichman [EMAIL PROTECTED] wrote:


Hi,
yes it is, but if you have a very big movie, and everything is exported on
frame 1, it almost amounts to the same thing as waiting until its fully
loaded.

greetz
JC


On 2/1/07, Thomas Silver [EMAIL PROTECTED] wrote:

 Hi there!

 Is it it possible to play a loaded swf without it being fully
downloaded?
 Right now I'm using the movieClipLoader class to download a big swf
 animation but it won't play until it's downloaded completely.
 The strange thing is that it does display the first frame of the target
 swf
 (this one doesn't contain stop actions).

 the code looks like this:

 var movieLoader:MovieClipLoader = new MovieClipLoader();
 var listener:Object = new Object();

 movieLoader.addListener(listener)
 movieLoader.loadClip(test.swf, target_mov)

 Best Regards,

 Thomas
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Flash 8 Pro - new interface (for me)

2007-02-01 Thread BOYD SPEER
just a quick question..
I just upgraded to Flash 8 and am switching back to Flash after a Director 
project so my mind is trying to overcome inertia and go back to actionscript 
mode.

Is there a way in Flash 8 to search all scripts in a project for instances of a 
phrase (as we can in Director)???

Thanks for any suggestions..

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

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


RE: [Flashcoders] Flash 8 Pro - new interface (for me)

2007-02-01 Thread Alain Rousseau
 While in the workspace you can do CTRL-F (PC)   or Command-F (Mac) to open
the search window. It will search in all frames, all clips, etc ...

Alain

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of BOYD SPEER
Sent: 1 février 2007 09:32
To: Flashcoders mailing list
Subject: [Flashcoders] Flash 8 Pro - new interface (for me)

just a quick question..
I just upgraded to Flash 8 and am switching back to Flash after a Director
project so my mind is trying to overcome inertia and go back to actionscript
mode.

Is there a way in Flash 8 to search all scripts in a project for instances
of a phrase (as we can in Director)???

Thanks for any suggestions..

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

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.18/662 - Release Date: 2007-01-31
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.18/662 - Release Date: 2007-01-31
 

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

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


Re: [Flashcoders] Flash 8 Pro - new interface (for me)

2007-02-01 Thread Matthias Dittgen

in the german version it is called Film Explorer (Alt+F3), where you
can look through your scripts and such. If you speak of class file
(.as-Files), I suggest using some external tool.

hth,
Matthias

2007/2/1, BOYD SPEER [EMAIL PROTECTED]:

just a quick question..
I just upgraded to Flash 8 and am switching back to Flash after a Director 
project so my mind is trying to overcome inertia and go back to actionscript 
mode.

Is there a way in Flash 8 to search all scripts in a project for instances of a 
phrase (as we can in Director)???

Thanks for any suggestions..

-Boyd
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Job - Flash Designer

2007-02-01 Thread Bill Abel

Birmingham, AL
Flash Designer

About The Slaughter Group:

The Slaughter Group is a brand development firm providing sound  
strategy and exceptional creativity in Corporate and Brand Identity  
and Strategic Design.  The firm has a depth of experience in serving  
clients with the highest quality products and services across a range  
of businesses and industries, including professional services, real  
estate, healthcare, financial services, and not-for-profit  
organizations. Founded in 1976, the Slaughter Group continues to be  
the recipient of top national and international creative awards.


More information can be found at www.slaughtergroup.com.

Job Summary:

As a Flash Designer at the Slaughter Group, you function as a key  
member of the Creative Design team responsible for the development  
and execution of Websites and multimedia.


Key Responsibilities:

•   Provide excellent design skills.
•	Work closely with designers and team members to develop dynamic,  
interactive websites and multimedia using Flash and other technologies.
•	Ability to translate a wireframe and style guide into a production  
page.
•	Provide solid experience in graphic manipulation in Photoshop and  
Illustrator.

•   Resolve bugs and cross browser compatibility issues
•	Identify tools, templates, and techniques that evolve existing  
approaches


Job Requirements:

•   Solid skills in Web Standards, HTML, XHTML, CSS, and Javascript
•   Solid skills in Flash 8 and Actionscript 2.0
•   Knowledge of PHP, AJAX, or Ruby on Rails desired
•   Strong Photoshop and Illustrator skills
•   Strong organizational skills
•   Heroic get-it-done attitude
•   Ability to thrive under tight deadlines
•   Bachelor’s degree in design-related discipline preferred
•   1+ years of industry experience preferred
•   Must provide samples*


*Submit samples as URLs or PDF with no more than five examples.  
Please provide a brief description of your role in each project.



Keywords: flash designer, flash developer, web designer, web  
developer, web programmer




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Job - Flash Designer

2007-02-01 Thread Bill Abel

Send inquiries/resumes/portfolios to [EMAIL PROTECTED]


On Feb 1, 2007, at 9:02 AM, Bill Abel wrote:


Birmingham, AL
Flash Designer


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Cancelling a load in progress : has this issue ever been fully resolved ???

2007-02-01 Thread David Bellerive
Hi! Just wondering if anyone ever found a solution to stop loading something 
that is currently loading in the Flash Player (an image, a sound, an XML file, 
etc.)?

I've heard and tried about loading a dummy (non-existent) file in place of the 
file being loaded to stop the load process. When I used it, it seemed to work 
but I've read it doesn't work in all OS/Browser combinations. I think there are 
issues with this on the Mac, in Safari and/or IE 5. Is that right? Does this 
method effectively stops a load in progress in all OS/Browser combinations?

With this method, I noticed that if I halted a load in progress at say 75% by 
loading a dummy file in place of the one currently being loaded, and then 
restarted loading that file later on, the load starts at 75%. So where is this 
partial file being stored? Is it in memory? Is it in the browser cache (even 
if it's only partial)?

David






 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread Andy Herrman

You only need to declare things in child classes if you're overriding
them, so unless you're doing that you should just declare them in the
super class.

Also, I tend to think it's bad idea to override variables, but that
may just be me.

 -Andy

On 2/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi
I'm cuurrently refactoring some code in a project with lots of extended classes.

What is the recommended practice in declaring static vs non-static (private 
static vs private)
variables?
Should they be declared in both the super and sub classes?

My goal is to avoid any redundant code.
Thanks


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Highlighting dates in DateChooser SOLVED

2007-02-01 Thread Jonathan Berry

Hello all,
I used the following code to clear all the dates on scroll and to highlight
the events each month. Tell me if you think I am just hacking it here and
that there is something that is more efficient/correct. Thanks!

for(var q=0;q8;q++){
   for(var r=1;r7;r++){
   enttab_mc.chooser_dc[dateGrid][dayBlock + q +
label + r].background = false;
   }
   }
   for(var s=0;sxmlDoc.firstChild.childNodes
[p].childNodes.length;s++){
   var entEventDate = new Date(today.getFullYear(),
xmlDoc.firstChild.childNodes[p].childNodes[s].attributes.month,
xmlDoc.firstChild.childNodes[p].childNodes[s].attributes.date);
   if(enttab_mc.chooser_dc.displayedMonth ==
xmlDoc.firstChild.childNodes[p].childNodes[s].attributes.month){
   var monthBeginDate = new Date(today.getFullYear(),
xmlDoc.firstChild.childNodes[p].childNodes[s].attributes.month, 1);
   var firstWeekOffset = monthBeginDate.getDay();
   var weekNum = Math.ceil((Number(
xmlDoc.firstChild.childNodes
[p].childNodes[s].attributes.date)+firstWeekOffset)/7);
   enttab_mc.chooser_dc[dateGrid][dayBlock +
entEventDate.getDay() + label + weekNum].background = true;
   enttab_mc.chooser_dc[dateGrid][dayBlock +
entEventDate.getDay() + label + weekNum].setStyle(backgroundColor,
0xfe9a9a);
   }
   }

On 1/29/07, Jonathan Berry [EMAIL PROTECTED] wrote:


Hello all,
I am using a datechooser component for an events calendar and wondered if
you knew of a way to highlight other dates beside today's date (showToday).
I've googled this, but cannot seem to find anything. Any hints or articles
much to be appreciated.

--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

---





--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting NaN

2007-02-01 Thread Andy Herrman

I'm trying to convert an arbitrary object into a Number, and then
detect if the conversion actually succeeded.  In theory I would
convert it and then check if the converted value is NaN, but this
doesn't seem to work.

Here's my test.  In a blank FLA I put the following code:

--
var foo = foobar;
var fooN:Number = Number(foo);
trace(typeof(fooN));
if(fooN == NaN) {
trace(fooN is NaN);
} else {
trace(fooN is a number:  + fooN);
}
--

This should output:
number
fooN is NaN

but instead I get:
number
fooN is a number: NaN

For some reason the check to see if it's NaN isn't working, and I have
no idea why.

It looks like I can use isNaN(fooN) for the check instead, but I'm
wondering why == doesn't work.

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

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


[Flashcoders] sort 2d array

2007-02-01 Thread Kevin . Dowd


Hello,

Can anybody tell me how to sort the following array based upon the second
value
within each array item

myArray:Array = [ [20,40],[20,10],[30,15],[30,35],[40,100],[1000,1]];

this should be something like

[[1000,1], [20,10], .

Faster the better cos its for a game and gets called a lot of times.


regards

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Detecting NaN

2007-02-01 Thread Alain Rousseau
Simply use isNAN() method :
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Partsfile=1737.html

if (isNAN(fooN)¨{
// do stuff
else {
// do else stuff
} 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman
Sent: 1 février 2007 12:12
To: Flashcoders
Subject: [Flashcoders] Detecting NaN

I'm trying to convert an arbitrary object into a Number, and then detect if
the conversion actually succeeded.  In theory I would convert it and then
check if the converted value is NaN, but this doesn't seem to work.

Here's my test.  In a blank FLA I put the following code:

--
var foo = foobar;
var fooN:Number = Number(foo);
trace(typeof(fooN));
if(fooN == NaN) {
trace(fooN is NaN);
} else {
trace(fooN is a number:  + fooN);
}
--

This should output:
number
fooN is NaN

but instead I get:
number
fooN is a number: NaN

For some reason the check to see if it's NaN isn't working, and I have no
idea why.

It looks like I can use isNaN(fooN) for the check instead, but I'm wondering
why == doesn't work.

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

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.18/662 - Release Date: 2007-01-31
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.18/662 - Release Date: 2007-01-31
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] sort 2d array

2007-02-01 Thread eka

Hello :)

you must creates benchs to test all solutions but the first is the sort()
method with a custom method

var myArray:Array = [
   [20,40],
   [20,10],
   [30,15],
   [30,35],
   [40,100],
   [1000,1]
];

var compare:Function = function ( a , b )
{

 if ( a[1]  b[1] )
 {
   return -1 ;
 }
 else if (a[1]  b[1] )
 {
   return 1 ;
 }
 else
 {
  return 0 ;
 }
}

trace(myArray) ;

myArray.sort( compare ) ;

trace(myArray) ;

I think the Actionscript in FP8 or FP9 really speed !

EKA+ :)

2007/2/1, [EMAIL PROTECTED] [EMAIL PROTECTED]:




Hello,

Can anybody tell me how to sort the following array based upon the second
value
within each array item

myArray:Array = [ [20,40],[20,10],[30,15],[30,35],[40,100],[1000,1]];

this should be something like

[[1000,1], [20,10], .

Faster the better cos its for a game and gets called a lot of times.


regards

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 2-d sort solver

2007-02-01 Thread Kevin . Dowd


Hello,


aa = [ [20,40],[20,10],[30,15],[30,35],[40,100],[1000,1]];


aa.sort( mySorter)


function mySorter(a,b){
  if (a[1]  b[1]){
return 1
  }
}


for (var i = 0; iaa.length; i++) {
  trace([  + aa[i][0] +  ,  +  aa[i][1] +  ])
}

returns

[ 1000 , 1 ]
[ 20 , 10 ]
[ 30 , 15 ]
[ 30 , 35 ]
[ 20 , 40 ]
[ 40 , 100 ]


this seems to work - not sure how robust it might be though - time to test

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 2-d sort solver

2007-02-01 Thread Andy Herrman

Shouldn't your mySorter() function have a return at the end or in an
'else' block?  Otherwise you're only returning a value when the
condition passes, which isn't really a good idea.

  -Andy

On 2/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



Hello,


aa = [ [20,40],[20,10],[30,15],[30,35],[40,100],[1000,1]];


aa.sort( mySorter)


function mySorter(a,b){
  if (a[1]  b[1]){
return 1
  }
}


for (var i = 0; iaa.length; i++) {
  trace([  + aa[i][0] +  ,  +  aa[i][1] +  ])
}

returns

[ 1000 , 1 ]
[ 20 , 10 ]
[ 30 , 15 ]
[ 30 , 35 ]
[ 20 , 40 ]
[ 40 , 100 ]


this seems to work - not sure how robust it might be though - time to test

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 1D Perlin Noise

2007-02-01 Thread Mike Cobb

-

Hello,

Has anybody successfully created a 1-dimensional perlin number generator 
in actionscript? I had built one in Lingo using this website: 
http://freespace.virgin.net/hugo.elias/models/m_perlin.htm to help me, 
but when I converted it into actionscript, the numbers just kept rising!


Anyone have anything similar? Here's my lingo behaviour:

--PERLIN NOISE GENERATOR

property pSprite, pTime

on beginsprite me
  pSprite = me.spritenum
  pTime   = 0.1
end

on exitframe me
  pTime = pTime + 0.1
  vBlend = myPerlin()
  sprite(pSprite).blend = vBlend
end


on myPerlin me

  vTotal = 0

  repeat with i = 0 to 4

vFreq = 2 * i
vAmpl = i

vTotal = vTotal + interpolateNoise(float(pTime) * vFreq) * vAmpl

  end repeat

  return vTotal

end

on interpolateNoise vX

  vIntX = integer(vX)
  vFraX = vX - vIntX

  v1 = smoothNoise(vIntX)
  v2 = smoothNoise(vIntX + 1)

  return interpolateCosine(v1, v2, vFraX)

end

on interpolateCosine a, b, vX
  ft = vX * 3.1415927
  f = (1 - cos(ft)) * .5

  return  a*(1-f) + b*f
end

on smoothNoise vX
  vX = float(vX)
  return noise(vX)/2 + noise(vX-1)/4 + noise(vX+1)/4
end

on noise vX
  vX = integer(vX)
  return (1.0 - ((vX * (vX * vX * 15731 + 789221) + 1376312589) + 79) / 
1073741824.0)

end



--
-
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] sort 2d array

2007-02-01 Thread Thomas Fowler

/**
* @param myArray, sortIndex, left, right
*
* @usage where myArray is the 2d array you want to sort, sortIndex is
*the index of the second array on which you wish to sort,
*left is the lower bound of myArray and right is the upper
*bound of myArray
*
*/
function quickSort(myArray : Array, sortIndex : Number, left : Number, right 
: Number) : Array

{
   var arrayLen : Number= myArray.length;
   var lHold: Number= left;
   var rHold: Number= right;
   var pivot: Number= myArray[left][sortIndex];

   while(left  right)
   {
   while( (myArray[right][1] = pivot)  (left  right) )
   right--;

   if(left != right)
   {
   myArray[left][sortIndex] = myArray[right][sortIndex];
   left++;
   }

   while( (myArray[left][sortIndex] = pivot)  (left  right)
   left++;

   if(left != right)
   {
   myArray[right][sortIndex] = myArray[left][sortIndex];
   right--;
   }

   }

   myArray[left][sortIndex]= pivot;
   pivot   = left;
   left= lHold;
   right   = rHold;

   if( left  pivot)
   {
   qSort(myArray, sortIndex, left, pivot - 1);
   }

   if( right  pivot)
   {
   qSort(myArray, sortIndex, pivot + 1, right);
   }

   return myArray;
}

- Original Message -
From: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 01, 2007 11:08 AM
Subject: [Flashcoders] sort 2d array




Hello,

Can anybody tell me how to sort the following array based upon the second
value
within each array item

myArray:Array = [ [20,40],[20,10],[30,15],[30,35],[40,100],[1000,1]];

this should be something like

[[1000,1], [20,10], .

Faster the better cos its for a game and gets called a lot of times.


regards

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread T. Michael Keesey

On 2/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi
I'm cuurrently refactoring some code in a project with lots of extended classes.

What is the recommended practice in declaring static vs non-static (private 
static vs private)
variables?
Should they be declared in both the super and sub classes?

My goal is to avoid any redundant code.
Thanks


Note:

class SuperClass {
   public static var CONSTANT:String = SuperClass;
   public function toString():String {
   return CONSTANT;
   }
}

class SubClass extends SuperClass {
   public static var CONSTANT:String = SubClass;
}

var obj:SubClass = new SubClass();
trace(obj.toString());
// Traces SuperClass.


Overriding static variables does not work as you might expect. To get
this to work correctly, the variable would have to be non-static.

Other than that, you should never have to redundantly add anything to
the subclass. If the superclass and the subclass both use a string
variable called name, just declare it in the superclass--there's no
point at all in redeclaring it in the subclass. The whole idea of
inheritance was created to avoid just that type of redundancy.

--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] fullscreen javascript

2007-02-01 Thread Gustavo Duenas
hi guys Iknow this is not for javascript but I think you might know  
of this, is a easy thing, I'm trying to open a browser window  
fullscreen, using javascript, in safari looks great and maybe in IE  
but in firefox,

open the window but less than I expect in size.

the code is.
 If one of you can help me out, I'll appreciate.

  area shape=rect coords=216,310,370,334  onclick= javaScript:  
window.open('fullpage.html', 'LRS', 'fullScreen', 'scrollBars')  /



regards

Gustavo Duenas

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

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


Re: [Flashcoders] sort 2d array

2007-02-01 Thread Joshua Sera
Just as a fun thing to do on the side, I'd try
researching priority queues, which were designed for
exactly this sort of problem.

They get used a lot in pathfinding algorithms for
games, which probably makes them doubly relevant.

--- [EMAIL PROTECTED] wrote:

 
 
 Hello,
 
 Can anybody tell me how to sort the following array
 based upon the second
 value
 within each array item
 
 myArray:Array = [
 [20,40],[20,10],[30,15],[30,35],[40,100],[1000,1]];
 
 this should be something like
 
 [[1000,1], [20,10], .
 
 Faster the better cos its for a game and gets called
 a lot of times.
 
 
 regards
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the
 archive:

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



 

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.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


Re: [Flashcoders] fullscreen javascript

2007-02-01 Thread Helmut Granda

Gustavo,

the fullScreen command only works in IE (I didnt know it did work in
Safari). So you have to look for an alternative to launch a fullscreen in
FF/Netscape/Moz



On 2/1/07, Gustavo Duenas [EMAIL PROTECTED] wrote:


hi guys Iknow this is not for javascript but I think you might know
of this, is a easy thing, I'm trying to open a browser window
fullscreen, using javascript, in safari looks great and maybe in IE
but in firefox,
open the window but less than I expect in size.

the code is.
  If one of you can help me out, I'll appreciate.

   area shape=rect coords=216,310,370,334  onclick= javaScript:
window.open('fullpage.html', 'LRS', 'fullScreen', 'scrollBars')  /


regards

Gustavo Duenas

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

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


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

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


Re: [Flashcoders] fullscreen javascript

2007-02-01 Thread Gustavo Duenas
well it works on safari, there is a way to detect the browser type in  
order to redirect or to open a window




Regards.



On Feb 1, 2007, at 1:58 PM, Helmut Granda wrote:


Gustavo,

the fullScreen command only works in IE (I didnt know it did work in
Safari). So you have to look for an alternative to launch a  
fullscreen in

FF/Netscape/Moz



On 2/1/07, Gustavo Duenas [EMAIL PROTECTED] wrote:


hi guys Iknow this is not for javascript but I think you might know
of this, is a easy thing, I'm trying to open a browser window
fullscreen, using javascript, in safari looks great and maybe in IE
but in firefox,
open the window but less than I expect in size.

the code is.
  If one of you can help me out, I'll appreciate.

   area shape=rect coords=216,310,370,334  onclick= javaScript:
window.open('fullpage.html', 'LRS', 'fullScreen', 'scrollBars')  /


regards

Gustavo Duenas

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

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


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

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



Gustavo Duenas

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

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


Re: [Flashcoders] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread Paul V.
Hi, I am not an expert, but from what I have read.  Private variables, don't
need to be declared, so if you don't need them outside the function, or
event I think you can keep things neat by not declaring them at all until
you assign them.
   And non-static variables, (dynamic variables) I would assign to an
instance. VarInstanceName  = eval(varNameDynamicInstance+i)l for exapmle
if you are using calling them via a for loop. (for i=   value ; i  condition
;i++){code;} .
   Unless you need them outside of the sub Class you can just leave them in
the function without declairing them.  If you need them in across the Class,
define them in the class function declaration. eg.
_global.myClassName=function(){
varName1 = 1;
varName2 = Some String;}

 And of course if you need them across Seperate Classes define them as
_global.varName.

Hope this helps.

Like to hear other solutions.

Paul Vds

- Original Message - 
From: T. Michael Keesey [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 01, 2007 12:36 PM
Subject: Re: [Flashcoders] Q:Extending Class with Static
Variables,recommended practice


 On 2/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi
  I'm cuurrently refactoring some code in a project with lots of extended
classes.
 
  What is the recommended practice in declaring static vs non-static
(private static vs private)
  variables?
  Should they be declared in both the super and sub classes?
 
  My goal is to avoid any redundant code.
  Thanks

 Note:
 
 class SuperClass {
 public static var CONSTANT:String = SuperClass;
 public function toString():String {
 return CONSTANT;
 }
 }
 
 class SubClass extends SuperClass {
 public static var CONSTANT:String = SubClass;
 }
 
 var obj:SubClass = new SubClass();
 trace(obj.toString());
 // Traces SuperClass.
 

 Overriding static variables does not work as you might expect. To get
 this to work correctly, the variable would have to be non-static.

 Other than that, you should never have to redundantly add anything to
 the subclass. If the superclass and the subclass both use a string
 variable called name, just declare it in the superclass--there's no
 point at all in redeclaring it in the subclass. The whole idea of
 inheritance was created to avoid just that type of redundancy.

 -- 
 T. Michael Keesey
 Director of Technology
 Exopolis, Inc.
 2894 Rowena Avenue Ste. B
 Los Angeles, California 90039
 --
 The Dinosauricon: http://dino.lm.com
 Parry  Carney: http://parryandcarney.com
 ISPN Forum: http://www.phylonames.org/forum/
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] controlling quicktime and windows media player from flash via javascript

2007-02-01 Thread Josh Santangelo

Longest. Subject line. Ever.

I have a project which requires a Flash UI to control either a  
Quicktime or Windows Media Player plugin instance (based on a user  
preference). I'm guessing the way to do this is using  
externalinterface, javascript, and each player's respective UI. I can  
figure it out, but I'm wondering if anyone's seen/done examples of  
this before I just dive right in.


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

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


Re: [Flashcoders] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread Andy Herrman

I think you might be a bit confused.  private variables aren't ones
that are just used in individual functions, but are data that the
class needs to persist but doesn't want visible to those using the
class.  These should always be declared (and I think they have to be
or the compiler will choke, at least doing strict AS2).  Even if
you're extending Object (so you can do things like this.foo = stuff
without foo being declared) it's still a good idea to declare them.
If you're using the variable to store information that needs to
persist you really want it declared so you can be sure you're using
the right variable.  If you need that data later (or if someone else
is working on the code and needs it) and it isn't declared it could be
difficult to figure out where the data is stored if it isn't declared.

And I'm not sure what you mean by your non-static variables thing
(assign to an instance).  From your example I think you're mixing
that up as well.  Static variables are variables that are shared
between all instances of a particular class, and don't need an
instance of the class to be accessed (most commonly used for constants
or singleton instances).  Non-static variables are tied to a
particular instance of a class.

Also, in general I don't think it's a good idea to use _global.
Global variables aren't really things that should be needed in good
OOP design.  For things that you need to access from anywhere and want
only a single instance of then that's what Singletons are for, and
they're a bit safer than global variables.

The main reason I think global variables are dangerous is that they're
shared by *everything*.  This makes it very difficult to avoid name
collisions unless you go with really convoluted variable names.  You
have no way of knowing if some other code or package is using the same
global variable as you.

  -Andy

  -Andy

On 2/1/07, Paul V. [EMAIL PROTECTED] wrote:

Hi, I am not an expert, but from what I have read.  Private variables, don't
need to be declared, so if you don't need them outside the function, or
event I think you can keep things neat by not declaring them at all until
you assign them.
   And non-static variables, (dynamic variables) I would assign to an
instance. VarInstanceName  = eval(varNameDynamicInstance+i)l for exapmle
if you are using calling them via a for loop. (for i=   value ; i  condition
;i++){code;} .
   Unless you need them outside of the sub Class you can just leave them in
the function without declairing them.  If you need them in across the Class,
define them in the class function declaration. eg.
_global.myClassName=function(){
varName1 = 1;
varName2 = Some String;}

 And of course if you need them across Seperate Classes define them as
_global.varName.

Hope this helps.

Like to hear other solutions.

Paul Vds

- Original Message -
From: T. Michael Keesey [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 01, 2007 12:36 PM
Subject: Re: [Flashcoders] Q:Extending Class with Static
Variables,recommended practice


 On 2/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi
  I'm cuurrently refactoring some code in a project with lots of extended
classes.
 
  What is the recommended practice in declaring static vs non-static
(private static vs private)
  variables?
  Should they be declared in both the super and sub classes?
 
  My goal is to avoid any redundant code.
  Thanks

 Note:
 
 class SuperClass {
 public static var CONSTANT:String = SuperClass;
 public function toString():String {
 return CONSTANT;
 }
 }
 
 class SubClass extends SuperClass {
 public static var CONSTANT:String = SubClass;
 }
 
 var obj:SubClass = new SubClass();
 trace(obj.toString());
 // Traces SuperClass.
 

 Overriding static variables does not work as you might expect. To get
 this to work correctly, the variable would have to be non-static.

 Other than that, you should never have to redundantly add anything to
 the subclass. If the superclass and the subclass both use a string
 variable called name, just declare it in the superclass--there's no
 point at all in redeclaring it in the subclass. The whole idea of
 inheritance was created to avoid just that type of redundancy.

 --
 T. Michael Keesey
 Director of Technology
 Exopolis, Inc.
 2894 Rowena Avenue Ste. B
 Los Angeles, California 90039
 --
 The Dinosauricon: http://dino.lm.com
 Parry  Carney: http://parryandcarney.com
 ISPN Forum: http://www.phylonames.org/forum/
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 

Re: [Flashcoders] fullscreen javascript

2007-02-01 Thread Andy Herrman

It would probably be better if you find one solution that works for
all browsers (that you want to support) instead of trying to switch
between different methods for different browsers.  Browser detection
isn't always completely accurate, and it adds unnecessary complexity.

We do something like this in our product.  I don't remember the
specific code for it, but we use javascript to detect the screen size
and then open the window with that size.  It's worked for every
browser we've thrown it at.

  -Andy

On 2/1/07, Gustavo Duenas [EMAIL PROTECTED] wrote:

well it works on safari, there is a way to detect the browser type in
order to redirect or to open a window



Regards.



On Feb 1, 2007, at 1:58 PM, Helmut Granda wrote:

 Gustavo,

 the fullScreen command only works in IE (I didnt know it did work in
 Safari). So you have to look for an alternative to launch a
 fullscreen in
 FF/Netscape/Moz



 On 2/1/07, Gustavo Duenas [EMAIL PROTECTED] wrote:

 hi guys Iknow this is not for javascript but I think you might know
 of this, is a easy thing, I'm trying to open a browser window
 fullscreen, using javascript, in safari looks great and maybe in IE
 but in firefox,
 open the window but less than I expect in size.

 the code is.
   If one of you can help me out, I'll appreciate.

area shape=rect coords=216,310,370,334  onclick= javaScript:
 window.open('fullpage.html', 'LRS', 'fullScreen', 'scrollBars')  /


 regards

 Gustavo Duenas

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

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

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

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


Gustavo Duenas

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

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


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

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


RE: [Flashcoders] fullscreen javascript

2007-02-01 Thread Hairy Dog Digital
Gustavo,

You could write a Javascript function that resizes the browser window to
screen size. it's not exactly the same and maximizing, but it would fill the
screen. 

...Rob


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Thursday, February 01, 2007 2:03 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] fullscreen javascript

well it works on safari, there is a way to detect the browser type in order
to redirect or to open a window



Regards.



On Feb 1, 2007, at 1:58 PM, Helmut Granda wrote:

 Gustavo,

 the fullScreen command only works in IE (I didnt know it did work in 
 Safari). So you have to look for an alternative to launch a fullscreen 
 in FF/Netscape/Moz



 On 2/1/07, Gustavo Duenas [EMAIL PROTECTED] wrote:

 hi guys Iknow this is not for javascript but I think you might know
 of this, is a easy thing, I'm trying to open a browser window
 fullscreen, using javascript, in safari looks great and maybe in IE
 but in firefox,
 open the window but less than I expect in size.

 the code is.
   If one of you can help me out, I'll appreciate.

area shape=rect coords=216,310,370,334  onclick= javaScript:
 window.open('fullpage.html', 'LRS', 'fullScreen', 'scrollBars')  /


 regards

 Gustavo Duenas

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

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

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

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


Gustavo Duenas

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

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

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

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


Re: [Flashcoders] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread T. Michael Keesey

On 2/1/07, Andy Herrman [EMAIL PROTECTED] wrote:

Even if
you're extending Object (so you can do things like this.foo = stuff
without foo being declared) it's still a good idea to declare them.


Actually, you have to even if extending Object. The only time you
don't have to declare private variables is if you specifically set
your class to be dynamic:

class FixedObject extends Object {
   public function FixedObject() {
   foo = bar; // Throws an error, since foo was never declared.
   }
}

dynamic class DynamicObject extends Object {
   public function FixedObject() {
   foo = bar; // Works fine.
   foo = new Date(); // Also works fine.
   }
}

Generally using dynamic classes is not a good practice, since you
can't do compile-time type checking on dynamic classes.

(Incidentally, it is possible to create a dynamic subclass of a fixed
class, too.)

--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] (no subject)

2007-02-01 Thread Robert W Johnson

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

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


[Flashcoders] Flash diagnostic tools

2007-02-01 Thread David Ham
I am working on a Flash app and it is starting to exhibit some  
performance problems. Is there any tool or technique people use to  
analyze Flash apps as they are running? Aside from the beloved trace 
() of course?


Thanks for any advice you can offer,

OK
DAH
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Simple clip stop problem?

2007-02-01 Thread Martin Scott Goldberg
Hey all, I'm having what should be a simple thing turn in to a problem.

Have a ship sprite for my game, that's a movie clip.  I designed it with
two layers (one for the images, one for actionscript).  The clip contains
three sections - 

1) Plain ship (1 keyframe), 2) Ship with engine on (1 keyframe), 3)Ship
expoloding (8 keyframes).

I call the first to with .gotoAndStop(1) and .gotoAndStop(2) respectively 
(and each one of those frames has a stop() in the actionscript layer).
When I call the third one with .gotoAndPlay(3), it plays the explosion but
loops back around to keyframe 1, which I of course don't want.  I just
want it to play that explosion and stop on the last keyframe (which is a
blank keyframe).

I tried putting a stop() in the last keyframe of the actionscript layer in
that clip, which didn't help.  I would appreciate help, as the coder in me
just wants to do a routine then in the main stage actionscript that would
just do an counter that increments during each frame of the main movie
and manually call each frame of the ship movie.  But I shouldn't have to
do that, as how I'm trying to do it now should be old hat for a Flash
animation.

Thanks!


Marty

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

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


Re: [Flashcoders] Detecting NaN

2007-02-01 Thread Brandon Barkley

Andy,
Like the other poster said, us isNaN, but I was also curious about why 
this might be true.


I found this link on the subject that will be helpful (original page 
down): 
http://209.85.165.104/search?q=cache:ilnSqw-hBjwJ:livedocs.macromedia.com/flex/2/langref/package.html+Flash+NaN+equalityhl=engl=usct=clnkcd=3


The |*NaN*| value is not considered equal to any other value, including 
|*NaN*|, which makes it impossible to use the *equality* operator to 
test whether an expression is |*NaN*|. To determine whether a number is 
the |*NaN*| function, use |isNaN()|.


Brandon

-

I'm trying to convert an arbitrary object into a Number, and then
detect if the conversion actually succeeded.  In theory I would
convert it and then check if the converted value is NaN, but this
doesn't seem to work.

Here's my test.  In a blank FLA I put the following code:

--
var foo = foobar;
var fooN:Number = Number(foo);
trace(typeof(fooN));
if(fooN == NaN) {
   trace(fooN is NaN);
} else {
   trace(fooN is a number:  + fooN);
}
--

This should output:
number
fooN is NaN

but instead I get:
number
fooN is a number: NaN

For some reason the check to see if it's NaN isn't working, and I have
no idea why.

It looks like I can use isNaN(fooN) for the check instead, but I'm
wondering why == doesn't work.

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

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


Re: [Flashcoders] Simple clip stop problem?

2007-02-01 Thread Helmut Granda

The way you described it should work, maybe there is something else that is
triggering the loop.

What else is happening on your stage after the explosion?

On 2/1/07, Martin Scott Goldberg [EMAIL PROTECTED] wrote:


Hey all, I'm having what should be a simple thing turn in to a problem.

Have a ship sprite for my game, that's a movie clip.  I designed it with
two layers (one for the images, one for actionscript).  The clip contains
three sections -

1) Plain ship (1 keyframe), 2) Ship with engine on (1 keyframe), 3)Ship
expoloding (8 keyframes).

I call the first to with .gotoAndStop(1) and .gotoAndStop(2) respectively
(and each one of those frames has a stop() in the actionscript layer).
When I call the third one with .gotoAndPlay(3), it plays the explosion but
loops back around to keyframe 1, which I of course don't want.  I just
want it to play that explosion and stop on the last keyframe (which is a
blank keyframe).

I tried putting a stop() in the last keyframe of the actionscript layer in
that clip, which didn't help.  I would appreciate help, as the coder in me
just wants to do a routine then in the main stage actionscript that would
just do an counter that increments during each frame of the main movie
and manually call each frame of the ship movie.  But I shouldn't have to
do that, as how I'm trying to do it now should be old hat for a Flash
animation.

Thanks!


Marty

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

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


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

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


Re: [Flashcoders] Q:Extending Class with Static Variables, recommended practice

2007-02-01 Thread Andy Herrman

Nothing to apologize for.  These are the kinds of things that help you
become the expert. :)

I realized after posting that that it might have sounded a bit
degrading towards you, and if it came off that way I didn't mean it
to.  Just trying to be helpful.

 -Andy

On 2/1/07, Paul V. [EMAIL PROTECTED] wrote:

Well.  I appologize, I thought I would give it a go.  I will stick witth
trying to answer the newbie questions that I know.  Sorry for the side track
if there was any.  Maybe I should do some digging into private variables,
Good Gracious.  Well I'm out.

Like I said I am not an expert.




- Original Message -
From: Andy Herrman [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 01, 2007 1:23 PM
Subject: Re: [Flashcoders] Q:Extending Class with Static
Variables,recommended practice


 I think you might be a bit confused.  private variables aren't ones
 that are just used in individual functions, but are data that the
 class needs to persist but doesn't want visible to those using the
 class.  These should always be declared (and I think they have to be
 or the compiler will choke, at least doing strict AS2).  Even if
 you're extending Object (so you can do things like this.foo = stuff
 without foo being declared) it's still a good idea to declare them.
 If you're using the variable to store information that needs to
 persist you really want it declared so you can be sure you're using
 the right variable.  If you need that data later (or if someone else
 is working on the code and needs it) and it isn't declared it could be
 difficult to figure out where the data is stored if it isn't declared.

 And I'm not sure what you mean by your non-static variables thing
 (assign to an instance).  From your example I think you're mixing
 that up as well.  Static variables are variables that are shared
 between all instances of a particular class, and don't need an
 instance of the class to be accessed (most commonly used for constants
 or singleton instances).  Non-static variables are tied to a
 particular instance of a class.

 Also, in general I don't think it's a good idea to use _global.
 Global variables aren't really things that should be needed in good
 OOP design.  For things that you need to access from anywhere and want
 only a single instance of then that's what Singletons are for, and
 they're a bit safer than global variables.

 The main reason I think global variables are dangerous is that they're
 shared by *everything*.  This makes it very difficult to avoid name
 collisions unless you go with really convoluted variable names.  You
 have no way of knowing if some other code or package is using the same
 global variable as you.

-Andy

-Andy

 On 2/1/07, Paul V. [EMAIL PROTECTED] wrote:
  Hi, I am not an expert, but from what I have read.  Private variables,
don't
  need to be declared, so if you don't need them outside the function, or
  event I think you can keep things neat by not declaring them at all
until
  you assign them.
 And non-static variables, (dynamic variables) I would assign to an
  instance. VarInstanceName  = eval(varNameDynamicInstance+i)l for
exapmle
  if you are using calling them via a for loop. (for i=   value ; i
condition
  ;i++){code;} .
 Unless you need them outside of the sub Class you can just leave them
in
  the function without declairing them.  If you need them in across the
Class,
  define them in the class function declaration. eg.
  _global.myClassName=function(){
  varName1 = 1;
  varName2 = Some String;}
 
   And of course if you need them across Seperate Classes define them as
  _global.varName.
 
  Hope this helps.
 
  Like to hear other solutions.
 
  Paul Vds
 
  - Original Message -
  From: T. Michael Keesey [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Thursday, February 01, 2007 12:36 PM
  Subject: Re: [Flashcoders] Q:Extending Class with Static
  Variables,recommended practice
 
 
   On 2/1/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi
I'm cuurrently refactoring some code in a project with lots of
extended
  classes.
   
What is the recommended practice in declaring static vs non-static
  (private static vs private)
variables?
Should they be declared in both the super and sub classes?
   
My goal is to avoid any redundant code.
Thanks
  
   Note:
   
   class SuperClass {
   public static var CONSTANT:String = SuperClass;
   public function toString():String {
   return CONSTANT;
   }
   }
   
   class SubClass extends SuperClass {
   public static var CONSTANT:String = SubClass;
   }
   
   var obj:SubClass = new SubClass();
   trace(obj.toString());
   // Traces SuperClass.
   
  
   Overriding static variables does not work as you might expect. To get
   this to work correctly, the variable would have to be non-static.
  
   Other than 

Re: [Flashcoders] Simple clip stop problem?

2007-02-01 Thread Joseph McHeffey
Not sure why it would repeat like that. 

You can try making a new movieclip for the explosion
then place that on the 3rd frame. In that case you
would just have to call .gotoAndStop(3); 


--- Martin Scott Goldberg [EMAIL PROTECTED] wrote:

 Hey all, I'm having what should be a simple thing
 turn in to a problem.
 
 Have a ship sprite for my game, that's a movie clip.
  I designed it with
 two layers (one for the images, one for
 actionscript).  The clip contains
 three sections - 
 
 1) Plain ship (1 keyframe), 2) Ship with engine on
 (1 keyframe), 3)Ship
 expoloding (8 keyframes).
 
 I call the first to with .gotoAndStop(1) and
 .gotoAndStop(2) respectively 
 (and each one of those frames has a stop() in the
 actionscript layer).
 When I call the third one with .gotoAndPlay(3), it
 plays the explosion but
 loops back around to keyframe 1, which I of course
 don't want.  I just
 want it to play that explosion and stop on the last
 keyframe (which is a
 blank keyframe).
 
 I tried putting a stop() in the last keyframe of the
 actionscript layer in
 that clip, which didn't help.  I would appreciate
 help, as the coder in me
 just wants to do a routine then in the main stage
 actionscript that would
 just do an counter that increments during each frame
 of the main movie
 and manually call each frame of the ship movie.  But
 I shouldn't have to
 do that, as how I'm trying to do it now should be
 old hat for a Flash
 animation.
 
 Thanks!
 
 
 Marty
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the
 archive:

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



 

Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] sort 2d array

2007-02-01 Thread neo binedell
Consider:

myArray.sortOn( 1, Array.NUMERIC );

From a quick test this is 2-3 times faster than the callback compare way.

10K entries sorted in:

sortOn(1) :  5ms
sort(compare) : 13ms
 
This works because array indices are considered as keys just like normal
objects.

cheers
~neo

-Original Message-
From: eka [mailto:[EMAIL PROTECTED] 
Sent: 01 February 2007 07:25 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] sort 2d array

Hello :)

you must creates benchs to test all solutions but the first is the sort()
method with a custom method

var myArray:Array = [
[20,40],
[20,10],
[30,15],
[30,35],
[40,100],
[1000,1]
];

var compare:Function = function ( a , b ) {

  if ( a[1]  b[1] )
  {
return -1 ;
  }
  else if (a[1]  b[1] )
  {
return 1 ;
  }
  else
  {
   return 0 ;
  }
}

trace(myArray) ;

myArray.sort( compare ) ;

trace(myArray) ;

I think the Actionscript in FP8 or FP9 really speed !

EKA+ :)

2007/2/1, [EMAIL PROTECTED] [EMAIL PROTECTED]:



 Hello,

 Can anybody tell me how to sort the following array based upon the 
 second value within each array item

 myArray:Array = [ [20,40],[20,10],[30,15],[30,35],[40,100],[1000,1]];

 this should be something like

 [[1000,1], [20,10], .

 Faster the better cos its for a game and gets called a lot of times.


 regards

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Simple clip stop problem?

2007-02-01 Thread Joseph McHeffey
Not sure why it would repeat like that. 

You can try making a new movieclip for the explosion
then place that on the 3rd frame. In that case you
would just have to call .gotoAndStop(3); 


--- Martin Scott Goldberg [EMAIL PROTECTED] wrote:

 Hey all, I'm having what should be a simple thing
 turn in to a problem.
 
 Have a ship sprite for my game, that's a movie clip.
  I designed it with
 two layers (one for the images, one for
 actionscript).  The clip contains
 three sections - 
 
 1) Plain ship (1 keyframe), 2) Ship with engine on
 (1 keyframe), 3)Ship
 expoloding (8 keyframes).
 
 I call the first to with .gotoAndStop(1) and
 .gotoAndStop(2) respectively 
 (and each one of those frames has a stop() in the
 actionscript layer).
 When I call the third one with .gotoAndPlay(3), it
 plays the explosion but
 loops back around to keyframe 1, which I of course
 don't want.  I just
 want it to play that explosion and stop on the last
 keyframe (which is a
 blank keyframe).
 
 I tried putting a stop() in the last keyframe of the
 actionscript layer in
 that clip, which didn't help.  I would appreciate
 help, as the coder in me
 just wants to do a routine then in the main stage
 actionscript that would
 just do an counter that increments during each frame
 of the main movie
 and manually call each frame of the ship movie.  But
 I shouldn't have to
 do that, as how I'm trying to do it now should be
 old hat for a Flash
 animation.
 
 Thanks!
 
 
 Marty
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the
 archive:

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



 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.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


RE: [Flashcoders] Flash diagnostic tools

2007-02-01 Thread Trevor Burton
I had similar issues a while ago - there's not a great deal out there,
there's asprof ( http://www.nochump.com/asprof/ )- which you'll need to
integrate with your code - I've never used it but it looks like it'll do
what it says on the tin - there's also Xray ( http://osflash.org/xray )
- which is pretty cool for messing about in the guts of your swf at
runtime (also handles as3 now) - other than that check the archives of
this list for logging tools, there have been a couple of discussions
lately of stuff that may help you out.

Hope that's a bit helpful

T

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Ham
Sent: 01 February 2007 20:40
To: FlashCoders
Subject: [Flashcoders] Flash diagnostic tools

I am working on a Flash app and it is starting to exhibit some  
performance problems. Is there any tool or technique people use to  
analyze Flash apps as they are running? Aside from the beloved trace 
() of course?

Thanks for any advice you can offer,

OK
DAH
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] how do I setvalue and then getvalue between flash and scorm server

2007-02-01 Thread Zhu dan

Hello all,
I am working on a flash video learning program. I have encoded the FLV video 
with 5 cuepoints that set to navigation cuepoint. I have full playback 
features for this video and five buttons to let the audiences to directly go 
to the cuepoint if they want to.


Here is my problem, I can't get the FSCommand to track and record the 
prograss of the video. And if I can use FSCommand to track and record 
prograss, can I use this track information to resume video playback? For 
example, an audience closed the webpage at cuepoint 3, is it possible I can 
use the FSCommand's tracking information to let the audience resume where he 
stopped? The code I have is below without the resume playback part. Thank 
you very much.



Here is the code I have so far.
video learning program. I have encoded the FLV video with 5 cuepoints that 
set to navigation cuepoint. I have full playback features for this video and 
five buttons to let the audiences to directly go to the cuepoint if they 
want to.


Here is my problem, I can't get the FSCommand to track and record the 
prograss of the video. And if I can use FSCommand to track and record 
prograss, can I use this track information to resume video playback? For 
example, an audience closed the webpage at cuepoint 3, is it possible I can 
use the FSCommand's tracking information to let the audience resume where he 
stopped? The code I have is below without the resume playback part. Thank 
you very much.



Code:
import mx.video.FLVPlayback;
var my_flvPb:FLVPlayback;
my_flvPb.autoPlay = false;
btn1.label = Part1;
btn2.label = Part2;
btn3.label = Part3;
btn4.label = Part4;
btn5.label = Part5;
function clickMe1() {
my_flvPb.seekToNavCuePoint(cue1);
trace(Cue point 1)
FSCommand(LMSSetValue,cmi.core.score.raw, 20);
FSCommand(LMSSetValue,cmi.core.lesson_status, failed);
}
function clickMe2() {
my_flvPb.seekToNavCuePoint(cue2);
trace(Cue point 2)
FSCommand(LMSSetValue,cmi.core.score.raw, 40);
FSCommand(LMSSetValue,cmi.core.lesson_status, failed);
}
function clickMe3() {
my_flvPb.seekToNavCuePoint(cue3);
trace(Cue point 3)
FSCommand(LMSSetValue,cmi.core.score.raw, 60);
FSCommand(LMSSetValue,cmi.core.lesson_status, failed);
}
function clickMe4() {
my_flvPb.seekToNavCuePoint(cue4);
trace(Cue point 4)
FSCommand(LMSSetValue,cmi.core.score.raw, 80);
FSCommand(LMSSetValue,cmi.core.lesson_status, failed);
}
function clickMe5() {
my_flvPb.seekToNavCuePoint(cue5);
trace(Cue point 5)
FSCommand(LMSSetValue,cmi.core.score.raw, 100);
FSCommand(LMSSetValue,cmi.core.lesson_status, finished);
}
btn1.addEventListener(click, clickMe1);
btn2.addEventListener(click, clickMe2);
btn3.addEventListener(click, clickMe3);
btn4.addEventListener(click, clickMe4);
btn5.addEventListener(click, clickMe5);

the FSCommand works everytime I click on the button, how can I make them 
work when the video playback reach a cuepoint automatically?


Thanks.

Sincerely,
Daniel Zhu

_
Check out all that glitters with the MSN Entertainment Guide to the Academy 
Awards®   http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Class Initiation Q:

2007-02-01 Thread eric dolecki

http://www.bit-101.com/blog/?p=857

not sure you can completely get away with code on timeline, unless its an
as3 document class.



On 2/1/07, Helmut Granda [EMAIL PROTECTED] wrote:


I created a simple class for an object that would be attached to the Stage
with a simple:

attachMovie(blah, bla);

it all works great, but I wanted to move the code completely away from the
timeline and move it into
a new class that will initiate the whole process.

So my first thought was attach the Movie within the original class, but of
course now my events wont have effect into the new created object.

So what would be the best approach?

In the perfect world I would have a class that will then use the class
that
I created to create new items without having to do any coding in the
timeline

One more thing, I tried registerClass after creating the objects within
the
original class, it works but for some odd reason it adds 2 items on the
stage
rather than only 1 as requested.

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

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





--
eric e. dolecki
senior interactive engineer
http://www.ericd.net
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] sort 2d array

2007-02-01 Thread Thomas Fowler

Sorry, had a 1 instead of SortIndex in there earlier

/**
* @param myArray, sortIndex, left, right
*
* @usage where myArray is the 2d array you want to sort, sortIndex is
*the index of the second array on which you wish to sort,
*left is the lower bound of myArray and right is the upper
*bound of myArray
*
*/
function quickSort(myArray : Array, sortIndex : Number, left : Number, 
right : Number) : Array

{
   var arrayLen : Number= myArray.length;
   var lHold: Number= left;
   var rHold: Number= right;
   var pivot: Number= myArray[left][sortIndex];

   while(left  right)
   {
   while( (myArray[right][sortIndex] = pivot)  (left  right) )
   right--;

   if(left != right)
   {
   myArray[left][sortIndex] = myArray[right][sortIndex];
   left++;
   }

   while( (myArray[left][sortIndex] = pivot)  (left  right)
   left++;

   if(left != right)
   {
   myArray[right][sortIndex] = myArray[left][sortIndex];
   right--;
   }

   }

   myArray[left][sortIndex]= pivot;
   pivot   = left;
   left= lHold;
   right   = rHold;

   if( left  pivot)
   {
   qSort(myArray, sortIndex, left, pivot - 1);
   }

   if( right  pivot)
   {
   qSort(myArray, sortIndex, pivot + 1, right);
   }

   return myArray;
}

- Original Message -
From: Thomas Fowler [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 01, 2007 12:35 PM
Subject: Re: [Flashcoders] sort 2d array


/**
* @param myArray, sortIndex, left, right
*
* @usage where myArray is the 2d array you want to sort, sortIndex is
*the index of the second array on which you wish to sort,
*left is the lower bound of myArray and right is the upper
*bound of myArray
*
*/
function quickSort(myArray : Array, sortIndex : Number, left : Number, 
right : Number) : Array

{
   var arrayLen : Number= myArray.length;
   var lHold: Number= left;
   var rHold: Number= right;
   var pivot: Number= myArray[left][sortIndex];

   while(left  right)
   {
   while( (myArray[right][sortIndex] = pivot)  (left  right) )
   right--;

   if(left != right)
   {
   myArray[left][sortIndex] = myArray[right][sortIndex];
   left++;
   }

   while( (myArray[left][sortIndex] = pivot)  (left  right)
   left++;

   if(left != right)
   {
   myArray[right][sortIndex] = myArray[left][sortIndex];
   right--;
   }

   }

   myArray[left][sortIndex]= pivot;
   pivot   = left;
   left= lHold;
   right   = rHold;

   if( left  pivot)
   {
   qSort(myArray, sortIndex, left, pivot - 1);
   }

   if( right  pivot)
   {
   qSort(myArray, sortIndex, pivot + 1, right);
   }

   return myArray;
}

- Original Message -
From: [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 01, 2007 11:08 AM
Subject: [Flashcoders] sort 2d array




Hello,

Can anybody tell me how to sort the following array based upon the second
value
within each array item

myArray:Array = [ [20,40],[20,10],[30,15],[30,35],[40,100],[1000,1]];

this should be something like

[[1000,1], [20,10], .

Faster the better cos its for a game and gets called a lot of times.


regards

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] fullscreen javascript

2007-02-01 Thread Cay Garrido H.

man, I hate that... ^^

Hairy Dog Digital escribió:

Gustavo,

You could write a Javascript function that resizes the browser window to
screen size. it's not exactly the same and maximizing, but it would fill the
screen. 


...Rob


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Thursday, February 01, 2007 2:03 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] fullscreen javascript

well it works on safari, there is a way to detect the browser type in order
to redirect or to open a window



Regards.



On Feb 1, 2007, at 1:58 PM, Helmut Granda wrote:

  

Gustavo,

the fullScreen command only works in IE (I didnt know it did work in 
Safari). So you have to look for an alternative to launch a fullscreen 
in FF/Netscape/Moz




On 2/1/07, Gustavo Duenas [EMAIL PROTECTED] wrote:


hi guys Iknow this is not for javascript but I think you might know
of this, is a easy thing, I'm trying to open a browser window
fullscreen, using javascript, in safari looks great and maybe in IE
but in firefox,
open the window but less than I expect in size.

the code is.
  If one of you can help me out, I'll appreciate.

   area shape=rect coords=216,310,370,334  onclick= javaScript:
window.open('fullpage.html', 'LRS', 'fullScreen', 'scrollBars')  /


regards

Gustavo Duenas

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

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

  

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

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




Gustavo Duenas

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

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

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

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

  

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

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


[Flashcoders] Q:Hittest and transparent PNG's

2007-02-01 Thread moveup
Hi
Does anyone know if there is a way to get hitTest to ignore transparent areas 
in dynamically loaded PNG's?

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Q:Hittest and transparent PNG's

2007-02-01 Thread Cay Garrido H.
You could convert it to a bitmapData and check the transparency level 
with getPixel32...


[EMAIL PROTECTED] escribió:

Hi
Does anyone know if there is a way to get hitTest to ignore transparent areas 
in dynamically loaded PNG's?

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Q:Hittest and transparent PNG's

2007-02-01 Thread David Ham
You could also create another movieclip in the shape of the area you  
want to hitTest, and set the hitArea of your main movieclip to point  
to it.


OK
DAH


On Feb 1, 2007, at 8:20 PM, Cay Garrido H. wrote:

You could convert it to a bitmapData and check the transparency  
level with getPixel32...


[EMAIL PROTECTED] escribió:

Hi
Does anyone know if there is a way to get hitTest to ignore  
transparent areas in dynamically loaded PNG's?


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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


--
David Ham
http://anthropomorphy.org   ::  +1 630 297 1273
http://davidham.com ::  [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] Class Initiation Q:

2007-02-01 Thread Alain Rousseau


check out also this link :

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

I've used it a few times and it works great !



Helmut Granda wrote:
I created a simple class for an object that would be attached to the 
Stage

with a simple:

attachMovie(blah, bla);

it all works great, but I wanted to move the code completely away from 
the

timeline and move it into
a new class that will initiate the whole process.

So my first thought was attach the Movie within the original class, 
but of

course now my events wont have effect into the new created object.

So what would be the best approach?

In the perfect world I would have a class that will then use the class 
that

I created to create new items without having to do any coding in the
timeline

One more thing, I tried registerClass after creating the objects 
within the

original class, it works but for some odd reason it adds 2 items on the
stage
rather than only 1 as requested.

TIA
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] how do I setvalue and then getvalue between flash and scorm server

2007-02-01 Thread Alain Rousseau
if you can use ExternalInterface (Flash 8)  or the Javascript 
Integration Kit (http://osflash.org/flashjs) to communicate back and 
forth with your LMS.
As for having cuepoints triggering your actions you should look up 
FLVPlayback.cuePoint events

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=3488.html#wp3773909

// from livedocs

var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
   trace(Elapsed time in seconds:  + my_FLVPlybk.playheadTime);
   trace(Cue point name is:  + eventObject.info.name);
   trace(Cue point type is:  + eventObject.info.type);
}
my_FLVPlybk.addEventListener(cuePoint, listenerObject);

inside your listener function you could define your LMS actions.

Zhu dan wrote:

Hello all,
I am working on a flash video learning program. I have encoded the FLV 
video with 5 cuepoints that set to navigation cuepoint. I have full 
playback features for this video and five buttons to let the audiences 
to directly go to the cuepoint if they want to.


Here is my problem, I can't get the FSCommand to track and record the 
prograss of the video. And if I can use FSCommand to track and record 
prograss, can I use this track information to resume video playback? 
For example, an audience closed the webpage at cuepoint 3, is it 
possible I can use the FSCommand's tracking information to let the 
audience resume where he stopped? The code I have is below without the 
resume playback part. Thank you very much.



Here is the code I have so far.
video learning program. I have encoded the FLV video with 5 cuepoints 
that set to navigation cuepoint. I have full playback features for 
this video and five buttons to let the audiences to directly go to the 
cuepoint if they want to.


Here is my problem, I can't get the FSCommand to track and record the 
prograss of the video. And if I can use FSCommand to track and record 
prograss, can I use this track information to resume video playback? 
For example, an audience closed the webpage at cuepoint 3, is it 
possible I can use the FSCommand's tracking information to let the 
audience resume where he stopped? The code I have is below without the 
resume playback part. Thank you very much.



Code:
import mx.video.FLVPlayback;
var my_flvPb:FLVPlayback;
my_flvPb.autoPlay = false;
btn1.label = Part1;
btn2.label = Part2;
btn3.label = Part3;
btn4.label = Part4;
btn5.label = Part5;
function clickMe1() {
my_flvPb.seekToNavCuePoint(cue1);
trace(Cue point 1)
FSCommand(LMSSetValue,cmi.core.score.raw, 20);
FSCommand(LMSSetValue,cmi.core.lesson_status, failed);
}
function clickMe2() {
my_flvPb.seekToNavCuePoint(cue2);
trace(Cue point 2)
FSCommand(LMSSetValue,cmi.core.score.raw, 40);
FSCommand(LMSSetValue,cmi.core.lesson_status, failed);
}
function clickMe3() {
my_flvPb.seekToNavCuePoint(cue3);
trace(Cue point 3)
FSCommand(LMSSetValue,cmi.core.score.raw, 60);
FSCommand(LMSSetValue,cmi.core.lesson_status, failed);
}
function clickMe4() {
my_flvPb.seekToNavCuePoint(cue4);
trace(Cue point 4)
FSCommand(LMSSetValue,cmi.core.score.raw, 80);
FSCommand(LMSSetValue,cmi.core.lesson_status, failed);
}
function clickMe5() {
my_flvPb.seekToNavCuePoint(cue5);
trace(Cue point 5)
FSCommand(LMSSetValue,cmi.core.score.raw, 100);
FSCommand(LMSSetValue,cmi.core.lesson_status, finished);
}
btn1.addEventListener(click, clickMe1);
btn2.addEventListener(click, clickMe2);
btn3.addEventListener(click, clickMe3);
btn4.addEventListener(click, clickMe4);
btn5.addEventListener(click, clickMe5);

the FSCommand works everytime I click on the button, how can I make 
them work when the video playback reach a cuepoint automatically?


Thanks.

Sincerely,
Daniel Zhu

_
Check out all that glitters with the MSN Entertainment Guide to the 
Academy Awards®   
http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Cancelling a load in progress : has this issue ever been fully resolved ???

2007-02-01 Thread Omar Fouad

currently using actionScript 1 or 2 is not possible. AS 3 has this function
but if you wont use it so i try loading into the same level or the same
container a an swf that doesnt exists. Since you are trying to load an swf
into the same level or movie it will override the firsl loading and trying
to load something else that, obviously doesn't exist. When flash try to load
an sfw from a broken link and founds out it is not working, the loadMovie
process stops.



On 2/1/07, David Bellerive [EMAIL PROTECTED] wrote:


Hi! Just wondering if anyone ever found a solution to stop loading
something that is currently loading in the Flash Player (an image, a sound,
an XML file, etc.)?

I've heard and tried about loading a dummy (non-existent) file in place of
the file being loaded to stop the load process. When I used it, it seemed to
work but I've read it doesn't work in all OS/Browser combinations. I think
there are issues with this on the Mac, in Safari and/or IE 5. Is that right?
Does this method effectively stops a load in progress in all OS/Browser
combinations?

With this method, I noticed that if I halted a load in progress at say 75%
by loading a dummy file in place of the one currently being loaded, and then
restarted loading that file later on, the load starts at 75%. So where is
this partial file being stored? Is it in memory? Is it in the browser
cache (even if it's only partial)?

David









Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





--
Omar Fouad - Digital Emotions...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Cancelling a load in progress : has this issue ever been fully resolved ???

2007-02-01 Thread Omar Fouad

*Reviewed **
currently using actionScript 1 or 2 is not possible. AS 3 has this function
but if you wont use it so i ADVICE to load an SWF that doesnt exists into
the same level or the same container Since you are trying to load an swf
into the same level or movie it will override the firsl loading process and
try to load than, something else, that obviously doesn't exist. When flash
try to load an SWF from a broken link and founds out it is not working, the
loadMovie process stops.


On 2/2/07, Omar Fouad [EMAIL PROTECTED] wrote:


currently using actionScript 1 or 2 is not possible. AS 3 has this
function but if you wont use it so i try loading into the same level or the
same container a an swf that doesnt exists. Since you are trying to load an
swf into the same level or movie it will override the firsl loading and
trying to load something else that, obviously doesn't exist. When flash try
to load an sfw from a broken link and founds out it is not working, the
loadMovie process stops.



On 2/1/07, David Bellerive [EMAIL PROTECTED] wrote:

 Hi! Just wondering if anyone ever found a solution to stop loading
 something that is currently loading in the Flash Player (an image, a sound,
 an XML file, etc.)?

 I've heard and tried about loading a dummy (non-existent) file in place
 of the file being loaded to stop the load process. When I used it, it seemed
 to work but I've read it doesn't work in all OS/Browser combinations. I
 think there are issues with this on the Mac, in Safari and/or IE 5. Is that
 right? Does this method effectively stops a load in progress in all
 OS/Browser combinations?

 With this method, I noticed that if I halted a load in progress at say
 75% by loading a dummy file in place of the one currently being loaded, and
 then restarted loading that file later on, the load starts at 75%. So where
 is this partial file being stored? Is it in memory? Is it in the browser
 cache (even if it's only partial)?

 David








 

 Bored stiff? Loosen up...
 Download and play hundreds of games for free on Yahoo! Games.
 http://games.yahoo.com/games/front
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
Omar Fouad - Digital Emotions...





--
Omar Fouad - Digital Emotions...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Cancelling a load in progress : has this issue ever been fully resolved ???

2007-02-01 Thread Omar Fouad

*BUT*
if you try to use the same process i told you about to stop loading an xml
file. i think the entire flash movie will freeze...
Just check it out and let me update

Thanks in advance

On 2/2/07, Omar Fouad [EMAIL PROTECTED] wrote:


*Reviewed **
currently using actionScript 1 or 2 is not possible. AS 3 has this
function but if you wont use it so i ADVICE to load an SWF that doesnt
exists into the same level or the same container Since you are trying to
load an swf into the same level or movie it will override the firsl loading
process and try to load than, something else, that obviously doesn't exist.
When flash try to load an SWF from a broken link and founds out it is not
working, the loadMovie process stops.


 On 2/2/07, Omar Fouad [EMAIL PROTECTED] wrote:

 currently using actionScript 1 or 2 is not possible. AS 3 has this
 function but if you wont use it so i try loading into the same level or the
 same container a an swf that doesnt exists. Since you are trying to load an
 swf into the same level or movie it will override the firsl loading and
 trying to load something else that, obviously doesn't exist. When flash try
 to load an sfw from a broken link and founds out it is not working, the
 loadMovie process stops.



 On 2/1/07, David Bellerive [EMAIL PROTECTED]  wrote:
 
  Hi! Just wondering if anyone ever found a solution to stop loading
  something that is currently loading in the Flash Player (an image, a sound,
  an XML file, etc.)?
 
  I've heard and tried about loading a dummy (non-existent) file in
  place of the file being loaded to stop the load process. When I used it, it
  seemed to work but I've read it doesn't work in all OS/Browser combinations.
  I think there are issues with this on the Mac, in Safari and/or IE 5. Is
  that right? Does this method effectively stops a load in progress in all
  OS/Browser combinations?
 
  With this method, I noticed that if I halted a load in progress at say
  75% by loading a dummy file in place of the one currently being loaded, and
  then restarted loading that file later on, the load starts at 75%. So where
  is this partial file being stored? Is it in memory? Is it in the browser
  cache (even if it's only partial)?
 
  David
 
 
 
 
 
 
 
 
  

  Bored stiff? Loosen up...
  Download and play hundreds of games for free on Yahoo! Games.
  http://games.yahoo.com/games/front
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 Omar Fouad - Digital Emotions...




--
Omar Fouad - Digital Emotions...





--
Omar Fouad - Digital Emotions...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Q:Dynamically Scale a MovieClip by dragging

2007-02-01 Thread Omar Fouad

that's soo cool!!!
Just what i needed
Good work man!
I wish i could be fluible with using class that way one day :(

add me on your msn [EMAIL PROTECTED]

Thanks so much


On 2/2/07, Jack Doyle [EMAIL PROTECTED] wrote:


To interactively scale/rotate/move any MoveClip in an intuitive way at
runtime in a manner similar to modern-day graphics applications like
Photoshop and Illustrator, feel free to use my TransformManager class:

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

There's an interactive sample there. I put a lot of time into attempting
to
making it user-friendly and relatively intuitive, but I haven't tested it
extensively yet so your comments/suggestions are welcome. It should handle
just about any MovieClip regardless of where the registration point is,
etc.

Hope it helps.

Jack Doyle


-Original Message-
Date: Tue, 23 Jan 2007 16:07:39 -0800
From: [EMAIL PROTECTED]
Subject: [Flashcoders] Q:Dynamically Scale a MovieClip by dragging
To: flashcoders@chattyfig.figleaf.com
Message-ID:
   [EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

I am creating a 'clip-art' type illustration application. users will have
the ability to move, rotate and scale movielip objects they drag from a
palette.

I'd like to allow interactive scaling and rotating via dragging the
bounding
box (as well as thru a slider), but am not sure how to first proceed.

Can anyone point me in the right direction, either pseudo-code or an
existing example online?

Thanks in advance!


[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
- Bruce Mau,'LifeStyle'



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

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





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

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