Re: [Flashcoders] XML push() data scope issue?

2006-04-29 Thread zikey Han

you can read this article:http://www.person13.com/articles/proxy/Proxy.htm
or mx.utils.Delegate class
http://www.flashpixy.com/index.php?entry=entry060306-225238
i hope this can help you!
2006/4/29, Mandongo [EMAIL PROTECTED]:


i'm trying to figure out if it's a problem with scope, or if i'm
overlooking
something else?  this is a combination of moock's imageviewer walkthru
from
his essential as book, but with xml functionality which i'm trying to
implement.  i can't seem to keep the xml values in imageBank when i push()
them from _13 inside buildImageBank().

i can trace imageBank in loadImage() and get a type object but with no
children, yet i can trace the hell out of imageBank in buildImageBank()
and
get all the attribute values.  shed some light?  here's the class, broken
down:

class ImageViewBare {
private var _12;
private static var _11 = 0;
private static var _13;
private var imagePos = 0;

private var container;
private static var images;
private static var imageBank = [];

public function ImageViewBare (target, depth, xmlfile) {
container = target.createEmptyMovieClip(container + depth,
depth);
images = new XML();
images.ignoreWhite = true;
images.onLoad = buildImageBank;
images.load(xmlfile);
}

private function buildImageBank() {
_12 = images.firstChild.childNodes;
while (_11  _12.length) {
_13 = {
name: _12[_11].attributes.name,
notes: _12[_11].attributes.notes,
file: _12[_11].attributes.file,
width: _12[_11].attributes.width,
height: _12[_11].attributes.height
}
// this gets lost outside buildImageBank()
// how to make my push()'s to imageBank var permanent?
imageBank.push (_13);
_11++;
}
}

public function loadImage(posInc) {
container.loadMovie(imageBank[index].file);
}
}

on the fla that works this class, i have this:

var viewer = new ImageViewerBare(this, 1, images.xml);
viewer.loadImage(1);  // comes back undefined


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

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





--
亲爱的朋友,祝你天天快了!
http://www.flashpixy.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] Project 3:16

2006-04-29 Thread Helmut Granda
deja-vu?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
Sent: Monday, April 24, 2006 10:27 AM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Project 3:16

Project 3:16 - For Client so loved the work, that he told his one and  
only
Designer, that whosoever listens to him shall not finish, but have  
eternal
changes.

___
I thought you would enjoy this! ;)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] A different kind of FOR loop ???

2006-04-29 Thread Stephen Ford
Please advise,
 
What is this piece of code doing:
 
for (posArray = [], i = 0; i  this.length; posArray[i] = i++) {}
 
I though it might have been another way of coding:
 
for (i=0; ithis.length; i++) {posArray[i] = i;}
But what would be the point of that anyway ?
I have never seen a FOR loop like the above one until now.
Here is the complete slab of code that it comes from (see line 3):
 
Array.prototype.fullShuffle = function() { result = []; for (posArray = [], i = 
0; i  this.length; posArray[i] = i++) {} for (last = this.length - 1; last = 
0; last--)  {  selected = this[last];rand = random(posArray.length - 1);
lastPos = posArray.getPos(last);if (lastPos == null) {   
result[posArray[rand]] = selected;   posArray.splice(rand, 1);  } else {   
posArray.splice(lastPos, 1);   result[posArray[rand]] = selected;   
posArray.splice(rand, 1);   posArray.push(last);  } }
  return result;}
 
 
Thanks,
Stephen.___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Setting styles on components

2006-04-29 Thread Ryan Sabir
Hi,
 
Is it just me or is trying to work with components really frustrating...
 
I'm trying to change the style of componenets, e.g. by changing the border 
colour of them. I've come across this line in the documentation:

If we want to change the color on the face of the button, use the following 
code: 
ComponentName.setStyleProperty(face, 0x006699); 
 
Ok great... What if I want to change something else on the button? Where in the 
world do I find some sort of reference to the built in Flash components and all 
the style properties that are settable for them?

Is it hidden somewhere in the interface? Or is there some hidden reference doc 
that I need to find?

Thanks all.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] A different kind of FOR loop ???

2006-04-29 Thread ryanm

for (posArray = [], i = 0; i  this.length; posArray[i] = i++) {}

   It's just shorthand. The first part, seperated by a comma, is just a 
declaration within the scope of the loop. So posArray and i are declared and 
a value assigned to them. The second part is a simple conditional: 
ithis.length. When i is = this.length, the loop will end. The last part 
just assigns the value of i to the array and then increments it, in that 
order. If it said posArray[i] = ++i instead, it would increment i before 
assigning the value to the array.


   All that's really different about that loop is an extra declaration in 
the declaration parameter and an assignment in the increment parameter. It's 
valid syntax for most implementations of ECMAScript, and would work in 
JavaScript too.


   What confused me was the use of this.length, until I realized it was a 
prototype for the Array object, and this.length would be the length property 
of the array.


ryanm 


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

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


RE: [Flashcoders] Setting styles on components

2006-04-29 Thread jim
The best place to look is in the LiveDocs website. 

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/js/html/wwhelp.ht
m?href=Part6_Component_Reference.html#wp72388

All the info you need is under Using Components and Component Language
Reference

HTH
Jim 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan Sabir
Sent: 29 April 2006 08:18
To: 'flashcoders@chattyfig.figleaf.com'
Subject: [Flashcoders] Setting styles on components

Hi,
 
Is it just me or is trying to work with components really frustrating...
 
I'm trying to change the style of componenets, e.g. by changing the border
colour of them. I've come across this line in the documentation:

If we want to change the color on the face of the button, use the following
code: 
ComponentName.setStyleProperty(face, 0x006699); 
 
Ok great... What if I want to change something else on the button? Where in
the world do I find some sort of reference to the built in Flash components
and all the style properties that are settable for them?

Is it hidden somewhere in the interface? Or is there some hidden reference
doc that I need to find?

Thanks all.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Need flash coder for 1.5 week job in DC Metro area

2006-04-29 Thread Casey Wolfe
Hi.  Seeking someone to work with my team for 1.5 - 2 weeks on some
production flash assembly and coding.  Must be local to the Washington, DC
metro area.  Job starts late this coming week.

Job entails assembly of flash components of a pretty hip marketing web site.
Designs already in place.  Flash components will need to interact with their
surrounding Java environment a bit -- post/get form data to servlets, read
querystring values and advance movie to different sections, etc.

Exerience using source control systems a plus.  Please send a brief resume,
contact info, rate to [EMAIL PROTECTED]  

Thanks.

Casey Wolfe
WolfeReiter, LLC : Thoughtful Computing
www.thoughtfulcomputing.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] DCR (was (no subject))

2006-04-29 Thread Kenneth Kawamoto

Is there anyway to convert shockwave dcr files to video files ?

This is a Director question - anyway, you can use screen capture 
software to make a video file from whatever on the screen.


Kenneth Kawamoto
www.materiaprima.co.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] Project 3:16

2006-04-29 Thread John Grden

amen.  amenoh and, amen ;)

On 4/29/06, Steven Sacks [EMAIL PROTECTED] wrote:


I didn't send this a second time.  That's just weird.

-Steven


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Helmut Granda
 Sent: Saturday, April 29, 2006 1:00 AM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] Project 3:16

 deja-vu?


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Steven Sacks
 Sent: Monday, April 24, 2006 10:27 AM
 To: 'Flashcoders mailing list'
 Subject: [Flashcoders] Project 3:16

 Project 3:16 - For Client so loved the work, that he told his
 one and
 only
 Designer, that whosoever listens to him shall not finish, but have
 eternal
 changes.

 ___
 I thought you would enjoy this! ;)

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





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

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


Re: [Flashcoders] DCR (was (no subject))

2006-04-29 Thread Michael Bedar

Doesn't Director export Quicktime of Avi Files?




On Apr 29, 2006, at 2:32 PM, Kenneth Kawamoto wrote:


Is there anyway to convert shockwave dcr files to video files ?

This is a Director question - anyway, you can use screen capture  
software to make a video file from whatever on the screen.


Kenneth Kawamoto
www.materiaprima.co.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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] DCR (was (no subject))

2006-04-29 Thread Kenneth Kawamoto

Doesn't Director export Quicktime of Avi Files?

Yes it does, and you can actually just import the DCR and place it on 
the Stage, then export as MOV/AVI, if it's a linear animation.


Kenneth Kawamoto
www.materiaprima.co.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


[Flashcoders] Video capture

2006-04-29 Thread hbruyere
Hi,

I have to be able to turn on and off my webcam.
I mean to be able with a simple check box to start capturing and to stop
capturing video from a webcam.

I'm able to start the capture but I can't find the way to stop it when I
press the button.

Find below the code. 
I have tried many things in the function deleteCam.
The only test doing something is my_video.clear(); but this is just deleting
one frame and not the Camera on Video objet.
I haven't found anything else in the documentation.

The video object my_video is on the stage.

What am I missing 

Thanks,



var my_cam:Camera;
var my_video:Video;

//
var camera_lbl:mx.controls.Label;
var cameras_cb:mx.controls.ComboBox;
camera_lbl.text = my_cam.name; 
cameras_cb.dataProvider = Camera.names;
function changeCamera():Void {
my_cam = Camera.get(cameras_cb.selectedIndex);
my_video.attachVideo(my_cam);
camera_lbl.text = my_cam.name; 
}
cameras_cb.addEventListener(change, changeCamera);
camera_lbl.setStyle(fontSize, 9);
cameras_cb.setStyle(fontSize, 9);
//
//
var VideoTrigger_o:Object = new Object();
VideoTrigger_o.click = function(event_obj:Object) { 
if (VideoOnOff_c.selected){
activateCam_f();
} else if (!VideoOnOff_c.selected){
deleteCam_f();
}
};
//
//
VideoOnOff_c.addEventListener(click, VideoTrigger_o);
function activateCam_f():Void { 
my_cam = Camera.get();
my_video.attachVideo(my_cam);
}
//
//
function deleteCam_f():Void{
//delete my_cam;
//delete my_video;
//my_video.close() ;
//my_video.pause();
my_video.clear();
}


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

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