RE: [Flashcoders] proportional image/clip scaling

2006-03-21 Thread Jim Tann
This is a very old function and needs tidying up but I tink it should
help



public function
getScaleToFit(mcChild:MovieClip,intHeight:Number,intWidth:Number,
blnOver100:Boolean):Number{
var intScale:Number = 100;

if(intHeight == undefined){intHeight = _root._height;}
if(intWidth == undefined){intWidth = _root._width;}
if(blnOver100 == undefined){blnOver100 = false;}

while((mcChild._height/100)*intScale  (intHeight)){
intScale--;
}
while((mcChild._width/100)*intScale  (intWidth)){
intScale--;
}

if((intScale == 100)  blnOver100){
while((mcChild._height/100)*intScale 
(intHeight)){
intScale++;
}
while((mcChild._width/100)*intScale 
(intWidth)){
intScale++;
}
intScale--;
}

return intScale;
}

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alan
Queen
Sent: 20 March 2006 23:07
To: Flashcoders mailing list
Subject: [Flashcoders] proportional image/clip scaling

anybody have the math handy to proportionally scale one clip to another?

Meaning, let's say I load in an image that is 100w - 300h.

and I want to display it in an area that is 320w - 240h.

So I want to scale the original image clip to fit within the display
area, but show the entire image.

--
- Alan Queen
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] proportional image/clip scaling

2006-03-21 Thread Ramon Miguel M. Tayag
Here are two functions I just copied from a class of mine:
_nScale is the scale it will be, assuming that a perfect fit to the
container box is 100%.

nLPW - is the width of the container box
nLPH - is the height of the container box

the code also centers the mc to the box.

private function resize(mc:MovieClip):Void
{
mc._xscale = mc._yscale = 100;

var nRatio:Number = 0;

if (isWider(mc))
{
nRatio = _nLPW / mc._width;
}
else
{
nRatio = _nLPH / mc._height;
}

mc._xscale = mc._yscale = nRatio * _nScale;

mc._x = _nLPW / 2 - mc._width / 2;
mc._y = _nLPH / 2 - mc._height / 2;
}

private function isWider(mc:MovieClip):Boolean
{
var nProportionPhoto:Number = mc._width / mc._height;
var nProportionBox:Number = _nLPW / _nLPH;

return nProportionPhoto  nProportionBox;
}

On 3/21/06, Alan Queen [EMAIL PROTECTED] wrote:
 anybody have the math handy to proportionally scale one clip to another?

 Meaning, let's say I load in an image that is 100w - 300h.

 and I want to display it in an area that is 320w - 240h.

 So I want to scale the original image clip to fit within the display
 area, but show the entire image.

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

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



--
Ramon Miguel M. Tayag
Managing Director
Quirkworks
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] loading images into in cell renderer datagrid

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

Oleg

On 3/20/06, Rich Rodecker [EMAIL PROTECTED] wrote:

 i have a datagrid that uses a cell renderer for one of the columns.
 This cell renderer uses a Loader component to an load image into it.
 For most of the rows in the dg, that works fine, but some rows just
 refuse to load the image...and it's always the same images.

 I thought that the images might have been bad, but i tested them in a
 Loader in a new doc and they load fine, so I'm guessing i'm running
 into some wierd dg issue.

 I also thought it may have been the fact that some of my rows were not
 visible at the time the datagrid loads...and maybe the dg would render
 those rows until needed.  however I made all my rows fit into the
 visible area of the datagrid, and the same problem, some images just
 wont load.

 any ideas whats goin on?
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] once again: How to interrupt MovieClipLoader.loadClip()

2006-03-21 Thread Roman Blöth

Roman Blöth schrieb:
[..] In any case the MovieClipLoader finishes the loading progress 
currently running before handling the empty or the new download, no 
matter when I try to interrupt the download.


Man, there must be some way to interrupt a running loadClip-progress!?
Finally I found the information needed where I didn't expect it: On 
Adobe's website!


The really working way for interrupting a running 
MovieClipLoader.load(theFile.swf, mcName)-progress is by invoking 
MovieClipLoader.unloadClip(mcName) AND not to test it locally within 
your file system, but remotely via some http-server.



Best regards,
Roman.

--

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


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

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


Re: [Flashcoders] Flex demos

2006-03-21 Thread Arul Prasad
http://weblogs.macromedia.com/flex_samples/


On 3/21/06, Jim Kremens [EMAIL PROTECTED] wrote:

 Hi all,

 I'm trying to sell a client on Flex.  I want to be able to show him some
 examples.

 I've seen this page:

 http://www.macromedia.com/cfusion/showcase/index.cfm
 ?event=finderresultscontenttype=casestudyproductID=26724loc=en_us

 but even using the links provided there, it's pretty hard to find the Flex
 app.  These are all RIAs of course, but they require login, and so don't
 make the best demos.


 Is there a page with links to some demo-type, completely public apps?

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

2006-03-21 Thread Laurent CUCHET
Good morning, 

1) I  create dynamic textfield with while option
I try to create dynamic border and content without success

Have you got a tips to done it

Thank you

/
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
dtd.text=spa1;
dtd.border=true;
dtd.selectable=false;
dt++;
}



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

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


Re: [Flashcoders] While and Var

2006-03-21 Thread Janis Radins
createTextField() returns refference to textfield object only since flash 8

2006/3/21, Arul Prasad [EMAIL PROTECTED]:

 var dtd;
 var spa;
 var spa1;
 var dt = 0;
 while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
_root[dtd].text=spa1;
_root[dtd].border=true;
_root[dtd].selectable=false;
dt++;
 }

 note: var dtd;
 var spa;
 var spa1;
 var dt = 0;
 while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
_root[dtd].text=spa1;
_root[dtd].border=true;
_root[dtd].selectable=false;
dt++;
 }

 ~Arul Prasad


 On 3/21/06, Laurent CUCHET [EMAIL PROTECTED] wrote:
 
  Good morning,
 
  1) I  create dynamic textfield with while option
  I try to create dynamic border and content without success
 
  Have you got a tips to done it
 
  Thank you
 
  /
  var dtd;
  var spa;
  var spa1;
  var dt = 0;
  while (dt=99) {
  dtd = var+dt;
  spa = dt*5;
  spa1 = (dt*15)+45;
  _root.createTextField(dtd, dt, 0, spa1, 100, 15);
  dtd.text=spa1;
  dtd.border=true;
  dtd.selectable=false;
  dt++;
  }
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] While and Var

2006-03-21 Thread Arul Prasad
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt=99) {
   dtd = var+dt;
   spa = dt*5;
   spa1 = (dt*15)+45;
   _root.createTextField(dtd, dt, 0, spa1, 100, 15);
   _root[dtd].text=spa1;
   _root[dtd].border=true;
   _root[dtd].selectable=false;
   dt++;
}

note: var dtd;
var spa;
var spa1;
var dt = 0;
while (dt=99) {
   dtd = var+dt;
   spa = dt*5;
   spa1 = (dt*15)+45;
   _root.createTextField(dtd, dt, 0, spa1, 100, 15);
   _root[dtd].text=spa1;
   _root[dtd].border=true;
   _root[dtd].selectable=false;
   dt++;
}

~Arul Prasad


On 3/21/06, Laurent CUCHET [EMAIL PROTECTED] wrote:

 Good morning,

 1) I  create dynamic textfield with while option
 I try to create dynamic border and content without success

 Have you got a tips to done it

 Thank you

 /
 var dtd;
 var spa;
 var spa1;
 var dt = 0;
 while (dt=99) {
 dtd = var+dt;
 spa = dt*5;
 spa1 = (dt*15)+45;
 _root.createTextField(dtd, dt, 0, spa1, 100, 15);
 dtd.text=spa1;
 dtd.border=true;
 dtd.selectable=false;
 dt++;
 }



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

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

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

2006-03-21 Thread Johnny Zen
capturephp = new LoadVars();



nr = nr + 0;
ticker = null;

setInterval (refresh_loadvars_timer,5000);

//rotate timer//
var crt_comp = 0;
function rotate_timer() {
i = current_comp;
comp_name = eval(comp_name+i);
comp_date = eval(date_from_php+i);
reg_players = eval(reg_players+i);
comp_status = eval(comp_status+i);
//rotate fields
current_comp = (current_comp + 1) % nr;
};


refresh loadvars
function refresh_loadvars_timer() {
rotate_timer();
capturephp.load(https://secure.*.co.uk/***/infoflash.php;);
test.text = (output + capturephp);
registered_comp.text = comp_name;
date_time_starting.text = comp_date;
players_registered.text = reg_players;
current_status.text = status;

};

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

2006-03-21 Thread Adrian Lynch
You're reference to the new text field is off, try storing the reference
like this:

dtd = _root.createTextField(dtd, dt, 0, spa1, 100, 15);

So the working code is:

var dtd;
var spa;
var spa1;
var dt = 0;
while (dt=99) {
trace(dt);
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
dtd = _root.createTextField(dtd, dt, 0, spa1, 100, 15);
dtd.text=spa1;
dtd.border=true;
dtd.selectable=false;
dt++;
}

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Laurent
CUCHET
Sent: 21 March 2006 11:29
To: Flashcoders mailing list
Subject: [Flashcoders]  While and Var


Good morning,

1) I  create dynamic textfield with while option
I try to create dynamic border and content without success

Have you got a tips to done it

Thank you

/
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
dtd.text=spa1;
dtd.border=true;
dtd.selectable=false;
dt++;
}



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

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


Re: [Flashcoders] While and Var

2006-03-21 Thread Arul Prasad
Dunno why I copy pasted 2 times!

The only changes were in the three lines where I replaced dtd with
_root[dtd]

You could use _root. dtd as well.

Of course you will have to optimize the code.


var dtd;
var spa;
var spa1;
var _txt:TextField;
var dt = 0;
while (dt=99) {
   dtd = var+dt;
   spa = dt*5;
   spa1 = (dt*15)+45;
   _root.createTextField(dtd, dt, 0, spa1, 100, 15);
   _txt = _root[dtd];
   _txt.text=spa1;
   _txt.border=true;
   _txt.selectable=false;
   dt++;
}

Reason why it didnt work in your case - when you said dtd.text you were
actually trying to access a text property of the string dtd. And it silently
failed ( coz dtd was not strictly typed)

You would've caught these kinda issues if you had used strict data typing :)

~Arul Prasad.




On 3/21/06, Arul Prasad [EMAIL PROTECTED] wrote:

 var dtd;
 var spa;
 var spa1;
 var dt = 0;
 while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
_root[dtd].text=spa1;
_root[dtd].border=true;
_root[dtd].selectable=false;
dt++;
 }

 note: var dtd;

 var spa;
 var spa1;
 var dt = 0;
 while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
_root[dtd].text=spa1;
_root[dtd].border=true;
_root[dtd].selectable=false;
dt++;
 }

 ~Arul Prasad



 On 3/21/06, Laurent CUCHET [EMAIL PROTECTED] wrote:
 
  Good morning,
 
  1) I  create dynamic textfield with while option
  I try to create dynamic border and content without success
 
  Have you got a tips to done it
 
  Thank you
 
  /
  var dtd;
  var spa;
  var spa1;
  var dt = 0;
  while (dt=99) {
  dtd = var+dt;
  spa = dt*5;
  spa1 = (dt*15)+45;
  _root.createTextField(dtd, dt, 0, spa1, 100, 15);
  dtd.text=spa1 ;
  dtd.border=true;
  dtd.selectable=false;
  dt++;
  }
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


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

2006-03-21 Thread Luca Candela
Anyone knows where to find a brief tutorial or some idea on how to replicate
the sliding panel menu in this website?

http://www.deejay.it/default.jsp?s=home
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] LOADVARS not working IE

2006-03-21 Thread Johnny Zen
HI all

My flash using Loadvars within a secure webpage works in FIREFOX but not in IE.

I've tried to find the reasons why, and have got lost in headers, web
server configs, dummy variables and IE settings.

Can someone please explain, if possible, a simple answer (so I can
understand) the reason or reasons why there is a problem with flash
using Loadvars in IE on a secure webpage(if it makes a diference)


Many thanks



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

2006-03-21 Thread Adrian Lynch
Got any code to see?

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Johnny
Zen
Sent: 21 March 2006 12:28
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] LOADVARS not working IE


HI all

My flash using Loadvars within a secure webpage works in FIREFOX but not in
IE.

I've tried to find the reasons why, and have got lost in headers, web
server configs, dummy variables and IE settings.

Can someone please explain, if possible, a simple answer (so I can
understand) the reason or reasons why there is a problem with flash
using Loadvars in IE on a secure webpage(if it makes a diference)


Many thanks



Johnny

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

2006-03-21 Thread Danny Kodicek

Hello,

is possible to make a wait or sleep (like java) to stop a code 
execution and after n seconds  return to execute?


Not directly, but you can create the same functionality with setInterval()

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

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


[Flashcoders] 27th March Sydney Developers study group

2006-03-21 Thread Chris Velevitch
On Monday 27th March is the next meeting of the study group we will be
studying the flash application framework ARP. Please read the articles
prior to the meeting (see http://www.flashdev.org.au/program). At the
meeting, the moderator
will lead discussion and with questions about the topic. The meeting
is on at 6:30pm for 7pm start and finishes around 8:30pm.

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

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


Chris--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] sliding panels menu anyone?

2006-03-21 Thread eric dolecki
Actually the way that one is set up, there doesn't seem to be any timers, so
essentially you can build that using some XML and build the subMenu clips
ahead of time, and place them on rollovers. And use FlashVars to send the
same SWF a different variable on each page so it knows what to draw.

On 3/21/06, Luca Candela [EMAIL PROTECTED] wrote:

 Anyone knows where to find a brief tutorial or some idea on how to
 replicate
 the sliding panel menu in this website?

 http://www.deejay.it/default.jsp?s=home
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Loading local Html File from offline Presentation

2006-03-21 Thread Alfredo Laguia Laborda

if the file first.html is in the same directory than the .swf
just call getUrl('first.html','_blank');

bye
- Original Message - 
From: Rob [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 21, 2006 3:24 PM
Subject: [Flashcoders] Loading local Html File from offline Presentation



Hello Flashfriends,

I'd like to open a local html site from a projector-presentation on CD.
I need to point to an relative (because I dont know the CD-Driveletter of 
the running Systems) URL on the CD (absolute path: 
CD-DriveLetter:\websites\first.html) . I've tried:


getUrl('file://websites/first.html','_blank');
getUrl('websites/first.html','_blank');

There are around 200 sites in my websites-folder, so I don't like to use 
fscommand because of the fact that I need a entire .exe/.bat-file for 
every site, because you can't pass parameters with fscommand...


Any sugestions on that issue?
Thank you in advance.

Robert

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

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

__ Información de NOD32, revisión 1.1441 (20060313) __

Este mensaje ha sido analizado con  NOD32 antivirus system
http://www.nod32.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] While and Var

2006-03-21 Thread Roman Blöth

Laurent CUCHET schrieb:

1) I  create dynamic textfield with while option
I try to create dynamic border and content without success

/
var dtd;
var spa;
var spa1;
var dt = 0;
while (dt=99) {
dtd = var+dt;
spa = dt*5;
spa1 = (dt*15)+45;
_root.createTextField(dtd, dt, 0, spa1, 100, 15);
  

Call

   dtd = _root.createTextField(dtd, dt, 0, spa1, 100, 15);

before calling

dtd.text=spa1;
dtd.border=true;
dtd.selectable=false;
dt++;
}
  

Since else dtd IS NOT your textfield, but simply a string.


Best regards,
Roman.

--

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

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

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


Re: [Flashcoders] Flex demos

2006-03-21 Thread Jim Kremens
thanks!

On 3/21/06, Arul Prasad [EMAIL PROTECTED] wrote:

 http://weblogs.macromedia.com/flex_samples/


 On 3/21/06, Jim Kremens [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I'm trying to sell a client on Flex.  I want to be able to show him some
  examples.
 
  I've seen this page:
 
  http://www.macromedia.com/cfusion/showcase/index.cfm
  ?event=finderresultscontenttype=casestudyproductID=26724loc=en_us
 
  but even using the links provided there, it's pretty hard to find the
 Flex
  app.  These are all RIAs of course, but they require login, and so don't
  make the best demos.
 
 
  Is there a page with links to some demo-type, completely public apps?
 
  --
  Jim Kremens
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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




--
Jim Kremens
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 would I use an insert target path dialog in my own components?

2006-03-21 Thread Manuel Saint-Victor
How do I put the insert target path dialog in a component so that people
can target a particular component?

Thanks-

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

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


Re: [Flashcoders] wait or sleep

2006-03-21 Thread iashido

http://proto.layer51.com/d.aspx?f=454


On Mar 21, 2006, at 4:13 PM, Danny Kodicek wrote:




Using setInterval, I can only call a method (or funciton) same time
later. I can't continue to run from the same point, at same function.
Exist another solution for this?


Yes, put your remaining code into a separate function:

id=setInterval(function(){myRemainingCode},2000)

You can comfortably (well, messily) create a whole set of commands  
that run at intervals. The only problem is that you might want to  
avoid any other functions running in the intervening time.


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

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





www.itseveryday.ro
www.iashido.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] wait or sleep

2006-03-21 Thread [EMAIL PROTECTED]
Using setInterval, I can only call a method (or funciton) same time 
later. I can't continue to run from the same point, at same function.

Exist another solution for this?
Schramm

Danny Kodicek wrote:


Hello,

is possible to make a wait or sleep (like java) to stop a code 
execution and after n seconds  return to execute?



Not directly, but you can create the same functionality with 
setInterval()


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

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





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

2006-03-21 Thread Gabriel Belvedere
you don't need a wait, the way you are doing its correct, except for the
order

mclip.onLoad()
{
   continue();
}

mclip.loadMovie();

if you end your code right after the loadmovie it will continue on the
onLoad.

cheers
GaB.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading local Html File from offline Presentation

2006-03-21 Thread Rob

Hello Flashfriends,

I'd like to open a local html site from a projector-presentation on CD.
I need to point to an relative (because I dont know the CD-Driveletter 
of the running Systems) URL on the CD (absolute path: 
CD-DriveLetter:\websites\first.html) . I've tried:


getUrl('file://websites/first.html','_blank');
getUrl('websites/first.html','_blank');

There are around 200 sites in my websites-folder, so I don't like to use 
fscommand because of the fact that I need a entire .exe/.bat-file for 
every site, because you can't pass parameters with fscommand...


Any sugestions on that issue?
Thank you in advance.

Robert

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

2006-03-21 Thread [EMAIL PROTECTED]

If you are inside a loop, and need to wait you have a big problem!

I would like a semaphore for syncronization. :-\
The Adobe/Macromedia must put this on Flash. (AS) :'( .


Danny,  thanks for you help! ;-)
Rodrigo Schramm

Danny Kodicek wrote:




Using setInterval, I can only call a method (or funciton) same time
later. I can't continue to run from the same point, at same function.
Exist another solution for this?



Yes, put your remaining code into a separate function:

id=setInterval(function(){myRemainingCode},2000)

You can comfortably (well, messily) create a whole set of commands 
that run at intervals. The only problem is that you might want to 
avoid any other functions running in the intervening time.


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

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





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

2006-03-21 Thread elibol
I believe the effect of a wait() function in Flash would cause an
application to freeze/hang. Actionscript is a single threaded language, I
don't even think a wait() type function could be implemented with sufficient
practicality. Wouldn't it just stop the entire thread from executing any
further, then resume it, leaving the state of the application identical to
the state it was in prior to calling the wait() function? Is Java not multi
threaded? Am I wrong?

M.

On 3/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 If you are inside a loop, and need to wait you have a big problem!

 I would like a semaphore for syncronization. :-\
 The Adobe/Macromedia must put this on Flash. (AS) :'( .


 Danny,  thanks for you help! ;-)
 Rodrigo Schramm

 Danny Kodicek wrote:

 
  Using setInterval, I can only call a method (or funciton) same time
  later. I can't continue to run from the same point, at same function.
  Exist another solution for this?
 
 
  Yes, put your remaining code into a separate function:
 
  id=setInterval(function(){myRemainingCode},2000)
 
  You can comfortably (well, messily) create a whole set of commands
  that run at intervals. The only problem is that you might want to
  avoid any other functions running in the intervening time.
 
  Danny
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 

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

2006-03-21 Thread Danny Kodicek



Using setInterval, I can only call a method (or funciton) same time
later. I can't continue to run from the same point, at same function.
Exist another solution for this?


Yes, put your remaining code into a separate function:

id=setInterval(function(){myRemainingCode},2000)

You can comfortably (well, messily) create a whole set of commands that run 
at intervals. The only problem is that you might want to avoid any other 
functions running in the intervening time.


Danny 


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

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


RE: [Flashcoders] wait or sleep

2006-03-21 Thread Mike Mountain
 Wouldn't it just stop the entire thread from executing any further, 
 then resume it, leaving the state of the application 
 identical to the state it was in prior to calling the wait() 
 function? 

Yes, but this would be very handy to free up CPU cycles to allow other
processes to execute. I'm sick and tired of my C++ co workers accusing
Flash of being CPU hungry.

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


Re: [Flashcoders] wait or sleep

2006-03-21 Thread eric dolecki
F8 has addressed some of those concerns - and AS3/FP8.5 looks to make major
improvements. Your C++ co-workers are just jealous that you're having fun :)

On 3/21/06, Mike Mountain [EMAIL PROTECTED] wrote:

  Wouldn't it just stop the entire thread from executing any further,
  then resume it, leaving the state of the application
  identical to the state it was in prior to calling the wait()
  function?

 Yes, but this would be very handy to free up CPU cycles to allow other
 processes to execute. I'm sick and tired of my C++ co workers accusing
 Flash of being CPU hungry.

 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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] PrintJob causes Abort Script message to appear

2006-03-21 Thread

I'm working on a complex Flash online application. Its all done in code and 
components, consisting of over 200 classes and probably around 50,000 lines of 
code. 

Unfortunately we have one unresolved issue. In a couple of places we have print 
functionality. When the print job system dialogue appears, the Flash player 
seems to treat it as a loop - after the usual 15 seconds, cascading Abort 
Script messages appear across the screen (A script in this movie is causing 
Macromedia Flash 8 to run slowly. If it continues to run, your computer may 
become unresponsive. Do you want to abort the script?). 
I have tried putting a simple print button on the stage, which calls the 
example code from Flash Help to test printing in isolation from the rest of the 
application, but the problem still occurs.

My question is... is there any undocumented way of temporarily disabling the 
Script running slowly alert? Or any other workaround? Our application is going 
to look seriously unprofessional if we can't find a way out. I've double-posted 
this plea on a Macromedia forum, hope noone takes offence.

Thanks.

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Custom V2 Components - Compiled vs. StandardComponents.fla

2006-03-21 Thread Keith Takayesu
We've been building some custom V2 components in Flash 8, and have found
some issues regarding the Uncompiled components found in
StandardComponents.fla, vs. the compiled SWCs.

For example, the Label from the StandardComponents.fla file will not
accept styles for font after we instantiate it using
createClassObject(). Using the compiled Label instead, works fine.

Also, the TextArea from the StandardComponents.fla file will not always
output its text properly. Often after a compile it will have HTML
wrappers around its text instead of just the text. Again, using the
compiled SWC works.

Has anyone else encountered such problems? If so, are there other
solutions to using the uncompiled versions, rather than resorting to
using the SWCs?

Thanks,
Keith
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Object.watch overhead?

2006-03-21 Thread Julien Vignali

Hi list,
I am playing around with the Object.watch() function in my custom UI 
components classes... I wanted to know if having 8-10 watches in a class 
would create some CPU overhead, or does it just work like an internal 
classic Delegate (which also requires an unwatch() upon object 
deletion)? Note that I don't watch get and set functions, just simple 
private members of the class...


Thanks for the reply,

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

2006-03-21 Thread elibol
yes, we did a recent benchmark for a client that requires some real power,

running the same set of arithmetic calculations this is what we discovered:

as2 finished executing the code in approximately 20 seconds

Java finished executing the code, in 3 renditions, 1422/ 1402/ 1438
milliseconds

as3 finished executing the code, in 3 renditions, 1402/ 1438/ 1402
milliseconds

These approximations would fluctuate between as3 and Java, but the bottom
line is that as3 is just as powerful as Java in processing power.

On 3/21/06, eric dolecki [EMAIL PROTECTED] wrote:

 F8 has addressed some of those concerns - and AS3/FP8.5 looks to make
 major
 improvements. Your C++ co-workers are just jealous that you're having fun
 :)

 On 3/21/06, Mike Mountain [EMAIL PROTECTED] wrote:
 
   Wouldn't it just stop the entire thread from executing any further,
   then resume it, leaving the state of the application
   identical to the state it was in prior to calling the wait()
   function?
 
  Yes, but this would be very handy to free up CPU cycles to allow other
  processes to execute. I'm sick and tired of my C++ co workers accusing
  Flash of being CPU hungry.
 
  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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Images in textFields..

2006-03-21 Thread Karim Beyrouti
Wow - I posted this at least 3 weeks ago... 

I did try that .. Kinda exhausted my options.. And ended up not using the
images inside textfields. I am dynamically building all the interface
elements into a scrollable pane... Much better, at least it works as
expected this way round.. 

Thanks for the reply, seems those little textfields have been an issue to a
few of us as of late.. At least since flash 8 they are now more readable
than they use to be... Hmmm...

Cheers

Karim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ivan
valadares
Sent: 20 March 2006 11:24
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Images in textFields..

for the seconf problem try this
img hspace='4' vspace='4' src='myimg.jpg'

horizontal around space and vertical around space!!!

Karim Beyrouti wrote:

Hello !...

I am working with HTML and images in textField's, and am wondering how 
one would keep images ( img src=myimg.jpg ) inline with the text?  
I am trying to have text on one line then the image on another line.

Also Another problem I get with img src=myimg1.jpgimg 
src=myimg2.jpg is that images overlap...its a bit anoying to say the 
least, as HTML behaves differently. Any way arround this, without inserting
lots of br tags?

I am Publishing for Flash 7 player...



Many thanks


Karim

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

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

  



--
Ivan Valadares
http://www.ydreams.com/ydreams_2005/index.php?page=44view=team:Detailszep
p_obj_id=242%22 
| Software Engineer | +351 966719984
YDreams - Informática S.A. | http://www.ydreams.com/ | +351 212949683

Disclaimer and Confidentiality Notice: YDreams accepts no responsibility or
liability whatsoever with regard to the information herein contained. This
message including any attachment hereof is confidential and may be
privileged or otherwise legally protected from disclosure and may only be
read, copied and used by the intended recipient. If you are not the intended
recipient, please contact the sender immediately (+351 21 294 9683) and
delete this email and any attachment permanently from your system. You must
not copy this email or any attachment or disclose its/their contents to any
other person or entity. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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.385 / Virus Database: 268.2.6/286 - Release Date: 20/03/2006


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

2006-03-21 Thread Patrick Jean
Greetings. I'm pretty new to the external AS files concept and I have a
quick question.

 

I made a first external class, let's call it Class A

 

I also created a second external class. Let's call it Class B

 

If I want to properly reference Class B from within the Class A  AS file ,
what is the best way to do it ?

 

Do I just have to import class B before class A within my FLA ? That sounds
not very efficient. So I assume there's a way to make classe B accessible by
class A from within the AS file.

 

Thanks a lot.

 

 

Patrick Jean

Directeur de projets internet

Monac'OH Data Mercantour

http://www.monacoh.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] Un-HQX, Burn in Mac, make ISO in PC, and make copies in PC

2006-03-21 Thread erixtekila

This question is pretty usefull.

I presume that the .hqx files that are Mac's flash projector use a 
ressource fork.

Once you copy this on another os, you loose it.
Without it the file won't launch again.

Zipping it is not a solution as it doesn't preserve ressource forks.
You could use .sit, but there are no AFAIK a windows analog.

The .iso is a good alternative.

BTW, is there a utility to give a broken .hqx is resource again ?
Thanks.
---
erixtekila
http://blog.v-i-a.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] AS Files question

2006-03-21 Thread elibol
There is, import class B within class A, having multiple imports of the same
class won't cause the compiler to compile the same class more than once.

import B;

class A {

function A(){
var bInstance = new B();
}

}

you can also do something like this:

import B;

class A {

private var _bInstance:B;

function A(bInstanceArg:B){
_bInstance = bInstance;
}

}

hope this helps,

M.
On 3/21/06, Patrick Jean [EMAIL PROTECTED] wrote:

 Greetings. I'm pretty new to the external AS files concept and I have a
 quick question.



 I made a first external class, let's call it Class A



 I also created a second external class. Let's call it Class B



 If I want to properly reference Class B from within the Class A  AS file ,
 what is the best way to do it ?



 Do I just have to import class B before class A within my FLA ? That
 sounds
 not very efficient. So I assume there's a way to make classe B accessible
 by
 class A from within the AS file.



 Thanks a lot.





 Patrick Jean

 Directeur de projets internet

 Monac'OH Data Mercantour

 http://www.monacoh.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] AS Files question

2006-03-21 Thread Roman Blöth

Patrick Jean schrieb:

Greetings. I'm pretty new to the external AS files concept and I have a
quick question.

 


I made a first external class, let's call it Class A

 


I also created a second external class. Let's call it Class B

 


If I want to properly reference Class B from within the Class A  AS file ,
what is the best way to do it ?

 


Do I just have to import class B before class A within my FLA ? That sounds
not very efficient. So I assume there's a way to make classe B accessible by
class A from within the AS file.
  
I'm not quite sure whether I got your issue right, but I can tell you 
that - as long as the classes and FLAs reside in the _same_ directory, 
they automatically know each other.


But since you might place your AS files in a separate directory - or 
even in a separate directory structure (when using packages) - you 
have to tell Flash (and SEPY, MTASC etc.) the path where your directory 
structure begins...



Best regards,
Roman.

--

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

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

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


Re: [Flashcoders] Object.watch overhead?

2006-03-21 Thread elibol
I see, just for some info, the compiler won't allow the watching of getter
and setter functions. It should yield less overhead than any alternative,
such as observer/listener patterns with ASBroadcast, otherwise I don't see
the purpose in having it at all. I'm not sure about the garbage collection,
but based on the functions they provide for you, I would assume that the
Object class has an internal watch list that would be removed with the
removal of the object, so if you're deleting the object then I don't think
you should call unwatch before doing so, otherwise, I think there is as much
a reason for the unwatch function for managing the object as is to
controlling its watch refrences, as this is the only thing that should
pertain to overhead.

I mean, if you remove a property in a dynamic object class, then you should
probably remove it with a wrapper function, passing the property name as an
argument, the idea is to unwatch it if it's being watched before deleting
it. I would guess that this is most optimal, unless however an object does
this before removing a property of itself anyways. I don't know the answer
to this question.

I hope this helps,

M.

On 3/21/06, Julien Vignali [EMAIL PROTECTED] wrote:

 Hi list,
 I am playing around with the Object.watch() function in my custom UI
 components classes... I wanted to know if having 8-10 watches in a class
 would create some CPU overhead, or does it just work like an internal
 classic Delegate (which also requires an unwatch() upon object
 deletion)? Note that I don't watch get and set functions, just simple
 private members of the class...

 Thanks for the reply,

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

2006-03-21 Thread eric dolecki
would this work?

import SequencerOBJ;
class ComOBJ extends LoadVars {
private var myTest:SequencerOBJ;
public function ComOBJ() {
myTest=new SequencerOBJ(It works);
 }
}


On 3/21/06, Patrick Jean [EMAIL PROTECTED] wrote:

 I get the idea, but it doesn't seem to work on my side. Maybe I declared
 something wrong.

 The class I want to access from my 2nd AS file is that one :

 
 class SequencerOBJ {
 public function SequencerOBJ(aTest:String) {
 trace(SEQUENCER WORKS =  + aTest);
 }
 }
 -

 So in my 2nd Class , I put :

 -
 import SequencerOBJ;

 class ComOBJ extends LoadVars {

 private var myTest:SequencerOBJ=new SequencerOBJ(It works);

 public function ComOBJ() {

 }
 }
 -

 Finally, in my FLA , I have :

 import ComOBJ;
 _global.myComOBJ = new ComOBJ();


 And when I compile I get an error saying :

 **Error** C:\!PROJECTS\Resweb\ComOBJ.as:
 Line 6: A class's instance variables may only be initialized to
 compile-time
 constant expressions.
 private var myTest:SequencerOBJ=new SequencerOBJ(It works);

 -

 Did I screw up on the syntax or something ?

 Thanks a lot




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of elibol
 Sent: Tuesday, March 21, 2006 11:14 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] AS Files question

 There is, import class B within class A, having multiple imports of the
 same
 class won't cause the compiler to compile the same class more than once.

 import B;

 class A {

 function A(){
 var bInstance = new B();
 }

 }

 you can also do something like this:

 import B;

 class A {

 private var _bInstance:B;

 function A(bInstanceArg:B){
 _bInstance = bInstance;
 }

 }

 hope this helps,

 M.
 On 3/21/06, Patrick Jean [EMAIL PROTECTED] wrote:
 
  Greetings. I'm pretty new to the external AS files concept and I have a
  quick question.
 
 
 
  I made a first external class, let's call it Class A
 
 
 
  I also created a second external class. Let's call it Class B
 
 
 
  If I want to properly reference Class B from within the Class A  AS file
 ,
  what is the best way to do it ?
 
 
 
  Do I just have to import class B before class A within my FLA ? That
  sounds
  not very efficient. So I assume there's a way to make classe B
 accessible
  by
  class A from within the AS file.
 
 
 
  Thanks a lot.
 
 
 
 
 
  Patrick Jean
 
  Directeur de projets internet
 
  Monac'OH Data Mercantour
 
  http://www.monacoh.com
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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

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

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


Re: [Flashcoders] AS Files question

2006-03-21 Thread Roman Blöth

Patrick Jean schrieb:
[..]

So in my 2nd Class , I put :

-
import SequencerOBJ;

class ComOBJ extends LoadVars {

private var myTest:SequencerOBJ=new SequencerOBJ(It works);

public function ComOBJ() {

}   
}
-

Finally, in my FLA , I have :

import ComOBJ;
_global.myComOBJ = new ComOBJ();


And when I compile I get an error saying :

**Error** C:\!PROJECTS\Resweb\ComOBJ.as: 
Line 6: A class's instance variables may only be initialized to compile-time

constant expressions.
private var myTest:SequencerOBJ=new SequencerOBJ(It works);

-

Did I screw up on the syntax or something ?
Yeah, you should - besides your issue - NEVER rely on values passed 
during variable declaration! These values sometimes are not stored 
inside the variables...


To make your code work (I hope) you'd better write your class as follows:

-
import SequencerOBJ;

class ComOBJ extends LoadVars {

private var myTest:SequencerOBJ=null;

public function ComOBJ() {
myTest = new SequencerOBJ(It works);
}   
}
-

This should do the job.


Best regards,
Roman.

--

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

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

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


[Flashcoders] AS Files question [FIXED]

2006-03-21 Thread Patrick Jean
Yes it works !! Thanks a lot.

What is the problem with creating object variables outside the constructor ?

As far as I remember from my C++ time , java  c++ were allowing you to do
that so I thought AS2 would.

Thanks again, and thanks to the other people that gave me extra information.
That is well appreciated.





Patrick Jean
Directeur de projets internet
Monac'OH Data Mercantour
http://www.monacoh.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki
Sent: Tuesday, March 21, 2006 11:34 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] AS Files question

would this work?

import SequencerOBJ;
class ComOBJ extends LoadVars {
private var myTest:SequencerOBJ;
public function ComOBJ() {
myTest=new SequencerOBJ(It works);
 }
}


On 3/21/06, Patrick Jean [EMAIL PROTECTED] wrote:

 I get the idea, but it doesn't seem to work on my side. Maybe I declared
 something wrong.

 The class I want to access from my 2nd AS file is that one :

 
 class SequencerOBJ {
 public function SequencerOBJ(aTest:String) {
 trace(SEQUENCER WORKS =  + aTest);
 }
 }
 -

 So in my 2nd Class , I put :

 -
 import SequencerOBJ;

 class ComOBJ extends LoadVars {

 private var myTest:SequencerOBJ=new SequencerOBJ(It works);

 public function ComOBJ() {

 }
 }
 -

 Finally, in my FLA , I have :

 import ComOBJ;
 _global.myComOBJ = new ComOBJ();


 And when I compile I get an error saying :

 **Error** C:\!PROJECTS\Resweb\ComOBJ.as:
 Line 6: A class's instance variables may only be initialized to
 compile-time
 constant expressions.
 private var myTest:SequencerOBJ=new SequencerOBJ(It works);

 -

 Did I screw up on the syntax or something ?

 Thanks a lot




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of elibol
 Sent: Tuesday, March 21, 2006 11:14 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] AS Files question

 There is, import class B within class A, having multiple imports of the
 same
 class won't cause the compiler to compile the same class more than once.

 import B;

 class A {

 function A(){
 var bInstance = new B();
 }

 }

 you can also do something like this:

 import B;

 class A {

 private var _bInstance:B;

 function A(bInstanceArg:B){
 _bInstance = bInstance;
 }

 }

 hope this helps,

 M.
 On 3/21/06, Patrick Jean [EMAIL PROTECTED] wrote:
 
  Greetings. I'm pretty new to the external AS files concept and I have a
  quick question.
 
 
 
  I made a first external class, let's call it Class A
 
 
 
  I also created a second external class. Let's call it Class B
 
 
 
  If I want to properly reference Class B from within the Class A  AS file
 ,
  what is the best way to do it ?
 
 
 
  Do I just have to import class B before class A within my FLA ? That
  sounds
  not very efficient. So I assume there's a way to make classe B
 accessible
  by
  class A from within the AS file.
 
 
 
  Thanks a lot.
 
 
 
 
 
  Patrick Jean
 
  Directeur de projets internet
 
  Monac'OH Data Mercantour
 
  http://www.monacoh.com
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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

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

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

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

Brought to 

RE: [Flashcoders] AS Files question

2006-03-21 Thread Patrick Jean
That works. Thanks for the information :)


Patrick Jean
Directeur de projets internet
Monac'OH Data Mercantour
http://www.monacoh.com

-Original Message-

Yeah, you should - besides your issue - NEVER rely on values passed 
during variable declaration! These values sometimes are not stored 
inside the variables...

To make your code work (I hope) you'd better write your class as follows:

-
import SequencerOBJ;

class ComOBJ extends LoadVars {

private var myTest:SequencerOBJ=null;

public function ComOBJ() {
myTest = new SequencerOBJ(It works);
}   
}
-

This should do the job.


Best regards,
Roman.

-- 

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

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

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Save file from Mac / Pc Projector on CDROM to Hard drive

2006-03-21 Thread Paul Steven
I need to include a button in a cdrom projector that when clicked will copy
a particular file from the CDROM to the users hard drive with a dialogue box
asking them where to save it to.

Any suggestions?

It must work on PC and MAC

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] Un-HQX, Burn in Mac, make ISO in PC, and make copies in PC

2006-03-21 Thread Sam Thorne
hqx are not macintosh projectors per se, they are the encoded  
versions of Macintosh (including the rsrc fork) projectors that _can_  
be copied around, you would then decode the hqx on a Mac or using  
something like CDEverywhere on a PC, which decodes the hqx on the fly  
as it creates a disc image to burn in Nero et al.


It's a bit old now, but I wrote the FAQ and tutorial on FlashKit in  
the Macintosh forum http://flashkit.com/board/showthread.php?t=396320


On 21 Mar 2006, at 15:31PM, erixtekila wrote:


This question is pretty usefull.

I presume that the .hqx files that are Mac's flash projector use a  
ressource fork.

Once you copy this on another os, you loose it.
Without it the file won't launch again.

Zipping it is not a solution as it doesn't preserve ressource forks.
You could use .sit, but there are no AFAIK a windows analog.

The .iso is a good alternative.

BTW, is there a utility to give a broken .hqx is resource again ?
Thanks.
---
erixtekila
http://blog.v-i-a.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


Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


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

2006-03-21 Thread Joshua Buhler

That's what I actually ended up doing, and it worked out pretty good:

private function getClosest (red1:Number, green1:Number,  
blue1:Number):Number {


var totalColors:Number = __palette.length;
var tempDistance:Number;
var closestColor:Number;

for (var i:Number = 0; i  totalColors; i++) {
// first, break up the color to check
var red2:Number = (__palette[i]  0xFF)  16;
var green2:Number = (__palette[i]  0x00FF00)  8;
var blue2:Number = __palette[i]  0xFF;

// now, get the distance from the source
			var tempD:Number = Math.sqrt ((Math.abs(red1 - red2) ^ 2) +  
(Math.abs(green1 - green2) ^ 2) + (Math.abs(blue1 - blue2) ^ 2));


if ((tempD = tempDistance) || tempDistance == 
undefined) {
tempDistance = tempD;
closestColor = __palette[i];
}
}

return closestColor;
}


- Josh


On Mar 16, 2006, at 7:59 PM, Ron Wheeler wrote:

If a color can be treated as a point in a 3-d cube 256 units on  
each side, you can use the formula in this reference

http://www.uwm.edu/~ericskey/TANOTES/Ageometry/node10.html
to calculate the distance between 2 colors.

I have not tried this but it would seem logical that this would work

Ron

elibol wrote:

K, here is some better math for getRGB, performance will probably be
important:

return [c16, c8~0xFF00, c~0xF00];

You can also try using the ColorTransform or Color class to get  
the rgb

values, except they might be slower than getting the raw math right.

M.

On 3/15/06, Josh Buhler [EMAIL PROTECTED] wrote:


Thanks - I'll give it a shot and see how it goes.


- Josh

On Mar 15, 2006, at 3:10 PM, elibol wrote:



I tried comparing the hex values directly, but there were
inaccuracies,
maybe the same ones you've been having. I think since the value  
of a

particular color precedes with a 0 even when it's below 17(0F), the
preceding 0 causes a shifting in the comparison. It would, for
example,
cause 0x00 to seem farther to 0x123456 than 0x00FF00, where
visually you
can see clearly that black is closer to 0x00.

btw in my example, var a = 0x12345 where it should be 0x123456.

The numbers hold to be accurate after correcting this typo.

On 3/15/06, Josh Buhler [EMAIL PROTECTED] wrote:

I'm working on a project that requires that I take an uploaded  
image,

and convert it to use a limited palette of colors - around 5-10
colors.

I've got the custom palette I have to work with stored in an  
array,
and for each color in my image, I've got it finding the color  
in the

array it's closest to numerically, but the results aren't exactly
what I'm looking for.

Does anybody know of any formulas available for comparing multiple
colors and finding the ones that are the closest matches? I've  
been

searching Google for a while, with no luck. Any good resources on
color formulas  such would be appreciated.

- 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



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

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


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

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



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

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





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

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


___

Re: [Flashcoders] Save file from Mac / Pc Projector on CDROM to Hard drive

2006-03-21 Thread Flapflap

Paul Steven a écrit :

I need to include a button in a cdrom projector that when clicked will copy
a particular file from the CDROM to the users hard drive with a dialogue box
asking them where to save it to.

Any suggestions?

It must work on PC and MAC
  

Zinc
mProjector
SwfStudio

ScreenWeaverOS is still in progress I think

Hopes it helps

--
Flapflap[at]sans-facon.net --
DevBlog : http://www.kilooctet.net

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

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


[Flashcoders] international keyboards

2006-03-21 Thread Jon Rowe
Hi All,

 

I'm trying to localize a site for Swedish peeps and I'm having trouble
displaying those Nordic characters in an input text field for an email
form. My file uses shared fonts, principally Univers, the correct font
outlines for these characters are contained in the embedded fonts - I
know this because if I change my (English UK) keyboard to English US -
International I can type the characters I need using Alt-Gr + a key
shortcuts. 

 

What I need to know is how to enable users of Swedish keyboards to input
the correct characters without changing their keyboard setup.

 

Any ideas?

 

Thanks

 

Jon

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Save file from Mac / Pc Projector on CDROM to Hard drive

2006-03-21 Thread Sam Thorne
I wrote an applescript a few years back that does this on Mac, on PC  
you'll need to use something like a batch script or one of those  
proxy exes you can call with fscommand.

http://flashkit.com/board/showthread.php?t=396320
(There are lots of free ones which will do just that, rather than  
something bigger (and more expensive) like Zinc).


On 21 Mar 2006, at 16:49PM, Paul Steven wrote:

I need to include a button in a cdrom projector that when clicked  
will copy
a particular file from the CDROM to the users hard drive with a  
dialogue box

asking them where to save it to.

Any suggestions?

It must work on PC and MAC

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


Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Save file from Mac / Pc Projector on CDROM to Harddrive

2006-03-21 Thread Paul Steven
Thanks Sam

Looks like you are opening the file

tell application Finder
open file targetFile
end tell

Is there an equivalent to just copy / save the file to the users hard drive?

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Sam
Thorne
Sent: 21 March 2006 17:14
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Save file from Mac / Pc Projector on CDROM to
Harddrive


I wrote an applescript a few years back that does this on Mac, on PC
you'll need to use something like a batch script or one of those
proxy exes you can call with fscommand.
http://flashkit.com/board/showthread.php?t=396320
(There are lots of free ones which will do just that, rather than
something bigger (and more expensive) like Zinc).

On 21 Mar 2006, at 16:49PM, Paul Steven wrote:

 I need to include a button in a cdrom projector that when clicked
 will copy
 a particular file from the CDROM to the users hard drive with a
 dialogue box
 asking them where to save it to.

 Any suggestions?

 It must work on PC and MAC

 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

Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 would I use an insert target path dialog in my own components?

2006-03-21 Thread elibol
those are inspectable properties, you use meta tags to identify them:

[Inspectable]
 private var item_library_ID:String;

or something like:

[Inspectable(enumeration='vertical,horizontal', defaultValue='vertical')]
private var proportion:String;

Search Flash help for Inspectable to get a better idea of what you can do.

M.

On 3/21/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 How do I put the insert target path dialog in a component so that people
 can target a particular component?

 Thanks-

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

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Un-HQX, Burn in Mac, make ISO in PC, and make copies in PC

2006-03-21 Thread erixtekila
hqx are not macintosh projectors per se, they are the encoded versions  
of Macintosh (including the rsrc fork) projectors that _can_ be copied  
around

Hm… you're right.
.hqx is binhex encoded file (something like uuencode)

BTW I've made a confusion.
I meant : Is it possible to give a resource fork back to a projector  
that loose it ?


For ex, someone put a mac projector in a zip file.
How is it possible to make it launchable again as an application ?

Here is an example of the issue.
Grab the huge archive there (very interesting stuff from Etienne  
Mineur):
http://www.my-os.net/blog/index.php?2005/08/29/107-issey-miyake- 
nouveau-site

Could some mac user open the projector file ?
Not /me.

Any idea ?
---
erixtekila
http://blog.v-i-a.net/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] OT: Disney-esque designer folios

2006-03-21 Thread Dan Thomas
Hey am looking for some Disney-esque designer portfolios for a potential
future flash project. Anyone have any suggestions or can point me in the
right direction?

Cheers
Dan

This message and any attachments should only be read by those persons to whom 
it is addressed and be used by them for its intended purpose.  It must not 
otherwise be reproduced, modified, distributed, published or actioned. If you 
have received this e-mail in error, please notify us immediately by telephone 
on 01202 237000 and delete it from your computer immediately. This e-mail 
address must not be passed to any third party or be used for any other purpose. 
Every reasonable precaution has been taken to ensure that this e-mail, 
including attachments, does not contain any viruses. However, no liability can 
be accepted for any damage sustained as a result of such viruses, and 
recipients are advised to carry out their own checks. 


Moov2 Ltd cannot accept liability for statements made which are clearly the 
senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this 
address may be subject to interception or monitoring for operational reasons or 
for lawful business purposes.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Save file from Mac / Pc Projector on CDROM to Harddrive

2006-03-21 Thread Sam Thorne

Oops, yes sorry.


I'd posted a copy script there before, but obviously not put it in  
the FAQ, here  you go:


--set the name of the file to copy
property fileName : my file.doc
--get the path to the containing folder
set myPath to (path to me as string)
set AppleScript's text item delimiters to :
set the parentFolder to ¬
((text items 1 thru -2 of myPath)  ) as string
set AppleScript's text item delimiters to 
-- find the flash file
try
set targetFile to alias (the parentFolder  fileName)
on error
--ie if there's no file here by this name, it will quit.
return quit
end try
tell application Finder
move file targetFile to desktop
--If it's a read only volume (like a cd), move will actually copy
end tell



On 21 Mar 2006, at 17:21PM, Paul Steven wrote:


Thanks Sam

Looks like you are opening the file

tell application Finder
open file targetFile
end tell

Is there an equivalent to just copy / save the file to the users  
hard drive?


Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Sam
Thorne
Sent: 21 March 2006 17:14
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Save file from Mac / Pc Projector on  
CDROM to

Harddrive


I wrote an applescript a few years back that does this on Mac, on PC
you'll need to use something like a batch script or one of those
proxy exes you can call with fscommand.
http://flashkit.com/board/showthread.php?t=396320
(There are lots of free ones which will do just that, rather than
something bigger (and more expensive) like Zinc).

On 21 Mar 2006, at 16:49PM, Paul Steven wrote:


I need to include a button in a cdrom projector that when clicked
will copy
a particular file from the CDROM to the users hard drive with a
dialogue box
asking them where to save it to.

Any suggestions?

It must work on PC and MAC

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


Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


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


Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 would I use an insert target path dialog in my own components?

2006-03-21 Thread Manuel Saint-Victor
elibol,

Thanks for the quick response.  I understand that part.  Where I'm stuck is
trying to create a window like the one in the actionspanel where a person
can select an instance name from the hierarchy of instances on the stage.
Would you happen to know how to get that to appear.  I'm starting to think
it might be only available if I create a dialog.

Mani

On 3/21/06, elibol [EMAIL PROTECTED] wrote:

 those are inspectable properties, you use meta tags to identify them:

 [Inspectable]
 private var item_library_ID:String;

 or something like:

 [Inspectable(enumeration='vertical,horizontal', defaultValue='vertical')]
 private var proportion:String;

 Search Flash help for Inspectable to get a better idea of what you can do.

 M.

 On 3/21/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
 
  How do I put the insert target path dialog in a component so that
 people
  can target a particular component?
 
  Thanks-
 
  Mani
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] LOADVARS not working IE

2006-03-21 Thread Robert Leisle
I had this same issue last month. Here's the advice I got (Thanks to 
Mark Llobrera) on this board. It was right on target for me. Hope it 
helps you too.


You may want to check this posting: http://www.blog.lessrain.com/?p=276. As I 
understand it, if the server is returning no-cache headers for the data you're 
trying to load it may fail in IE. I say may because I've only run into this 
problem when loading XML data over SSL in IE, not a plain .txt file. Something 
tells me your problem may be related, however.

Good luck


Johnny Zen wrote:


capturephp = new LoadVars();



nr = nr + 0;
ticker = null;

setInterval (refresh_loadvars_timer,5000);

//rotate timer//
var crt_comp = 0;
function rotate_timer() {
i = current_comp;
comp_name = eval(comp_name+i);
comp_date = eval(date_from_php+i);
reg_players = eval(reg_players+i);
comp_status = eval(comp_status+i);
//rotate fields
current_comp = (current_comp + 1) % nr;
};


refresh loadvars
function refresh_loadvars_timer() {
rotate_timer();
capturephp.load(https://secure.*.co.uk/***/infoflash.php;);
test.text = (output + capturephp);
registered_comp.text = comp_name;
date_time_starting.text = comp_date;
players_registered.text = reg_players;
current_status.text = status;

};

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

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

 



--
~
Bob Leisle 
Headsprout Software  Engineering

http://www.headsprout.com
Where kids learn to read!


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

2006-03-21 Thread Ryan Potter
Here is another way that might help.  You can use Fuse to sequence and wait.
Code Post:
http://thoughtwillrise.com/
 
Fuse:
http://mosessupposes.com/Fuse/index.html
 
 

-Original Message- 
From: [EMAIL PROTECTED] on behalf of iashido 
Sent: Tue 3/21/2006 7:16 AM 
To: Flashcoders mailing list 
Cc: 
Subject: Re: [Flashcoders] wait or sleep



http://proto.layer51.com/d.aspx?f=454


On Mar 21, 2006, at 4:13 PM, Danny Kodicek wrote:


 Using setInterval, I can only call a method (or funciton) same time
 later. I can't continue to run from the same point, at same function.
 Exist another solution for this?

 Yes, put your remaining code into a separate function:

 id=setInterval(function(){myRemainingCode},2000)

 You can comfortably (well, messily) create a whole set of commands 
 that run at intervals. The only problem is that you might want to 
 avoid any other functions running in the intervening time.

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

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




www.itseveryday.ro
www.iashido.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] referencing my main movieclip in a movie clip that is above(i think)

2006-03-21 Thread Jose Maria Barros
Hi...i know that is a newbie question, but..here it goes:

I have a swf A. When i press a button in it, i load an external swf B into
swf A.

When i click a button in swf A , i wanted to swf B reach a variable that is
in an movieclip that is in swf A.


I tried this in the end of the main timeline of swf B:

_level0.movieclip_in_A.myvar;

So, _level0 is supposed to be the main swf A and movieclip_in_A is the movie
clip inside the main swf, that have nested a variable called myvar.

Im wrong?

Oh and the swf B is loaded in a empty movieclip.


Thanks in advance.


 this doesnt work..
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] referencing my main movieclip in a movie clip that is above(i think)

2006-03-21 Thread Roman Blöth

Jose Maria Barros schrieb:

Hi...i know that is a newbie question, but..here it goes:

I have a swf A. When i press a button in it, i load an external swf B into
swf A.

When i click a button in swf A , i wanted to swf B reach a variable that is
in an movieclip that is in swf A.


I tried this in the end of the main timeline of swf B:

_level0.movieclip_in_A.myvar;

So, _level0 is supposed to be the main swf A and movieclip_in_A is the movie
clip inside the main swf, that have nested a variable called myvar.

Im wrong?
Anyway this is bad style: If _root/_level0 changes, then your code will 
cease working as expected. You can evade this situation by simply 
referencing the other way round:


In the timeline of clipB write:

   this._parent.myvar


Regards,
Roman.

--

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

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

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


[Flashcoders] Browse folders from flash

2006-03-21 Thread Felipe Fernandez
Hi all, is it possible open a windows browser in order to user choose a
local directory/folder?
Of course, from flash (8 or, best, MX 2004)

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] Save file from Mac / Pc Projector on CDROM toHarddrive

2006-03-21 Thread Paul Steven
Thanks Sam - much appreciated!!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Sam
Thorne
Sent: 21 March 2006 17:39
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Save file from Mac / Pc Projector on CDROM
toHarddrive


Oops, yes sorry.


I'd posted a copy script there before, but obviously not put it in
the FAQ, here  you go:

--set the name of the file to copy
property fileName : my file.doc
--get the path to the containing folder
set myPath to (path to me as string)
set AppleScript's text item delimiters to :
set the parentFolder to ¬
((text items 1 thru -2 of myPath)  ) as string
set AppleScript's text item delimiters to 
-- find the flash file
try
set targetFile to alias (the parentFolder  fileName)
on error
--ie if there's no file here by this name, it will quit.
return quit
end try
tell application Finder
move file targetFile to desktop
--If it's a read only volume (like a cd), move will actually copy
end tell



On 21 Mar 2006, at 17:21PM, Paul Steven wrote:

 Thanks Sam

 Looks like you are opening the file

 tell application Finder
   open file targetFile
 end tell

 Is there an equivalent to just copy / save the file to the users
 hard drive?

 Thanks

 Paul

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Sam
 Thorne
 Sent: 21 March 2006 17:14
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Save file from Mac / Pc Projector on
 CDROM to
 Harddrive


 I wrote an applescript a few years back that does this on Mac, on PC
 you'll need to use something like a batch script or one of those
 proxy exes you can call with fscommand.
 http://flashkit.com/board/showthread.php?t=396320
 (There are lots of free ones which will do just that, rather than
 something bigger (and more expensive) like Zinc).

 On 21 Mar 2006, at 16:49PM, Paul Steven wrote:

 I need to include a button in a cdrom projector that when clicked
 will copy
 a particular file from the CDROM to the users hard drive with a
 dialogue box
 asking them where to save it to.

 Any suggestions?

 It must work on PC and MAC

 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

 Regards,

 Sam Thorne
 Interaction Design

 Web: http://www.native.com/
 Tel: +44 (0)207 588 7970
 Fax: +44 (0)207 588 7971


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

Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


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

2006-03-21 Thread Ettwein, Josh
...and in mx04, you would need to use javascript or some other slightly
kludgey solution, like the yamzbrowser one. Basically use a hidden form
field and javascript to trigger a 'press' of the 'browse' button on the
hidden form in a 0% height frame or some such thing. I have used it in
the past with mixed degrees of success. Search the archives for flash
file upload - this has been discussed a lot in the past. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Bedar
Sent: Tuesday, March 21, 2006 10:19 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Browse folders from flash

In Flash 8 you can open a file browser to upload/download a file


On Mar 21, 2006, at 12:57 PM, Felipe Fernandez wrote:

 Hi all, is it possible open a windows browser in order to user choose 
 a local directory/folder?
 Of course, from flash (8 or, best, MX 2004)

 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] Browse folders from flash

2006-03-21 Thread Felipe Fernandez
Yeah, I know it but I wanna choose a folder, not a file.

Thanks.

On 3/21/06, Michael Bedar [EMAIL PROTECTED] wrote:

 In Flash 8 you can open a file browser to upload/download a file


 On Mar 21, 2006, at 12:57 PM, Felipe Fernandez wrote:

  Hi all, is it possible open a windows browser in order to user
  choose a
  local directory/folder?
  Of course, from flash (8 or, best, MX 2004)
 
  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] referencing my main movieclip in a movie clip that is above(i think)

2006-03-21 Thread Jose Maria Barros
Hello Roman.

I tried this in my swf B:

this._parent.animBotoes_mc.gotoAndStop(link);

but...it doesnt work...



On 3/21/06, Roman Blöth [EMAIL PROTECTED] wrote:

 Jose Maria Barros schrieb:
  Hi...i know that is a newbie question, but..here it goes:
 
  I have a swf A. When i press a button in it, i load an external swf B
 into
  swf A.
 
  When i click a button in swf A , i wanted to swf B reach a variable that
 is
  in an movieclip that is in swf A.
 
 
  I tried this in the end of the main timeline of swf B:
 
  _level0.movieclip_in_A.myvar;
 
  So, _level0 is supposed to be the main swf A and movieclip_in_A is the
 movie
  clip inside the main swf, that have nested a variable called myvar.
 
  Im wrong?
 Anyway this is bad style: If _root/_level0 changes, then your code will
 cease working as expected. You can evade this situation by simply
 referencing the other way round:

 In the timeline of clipB write:

 this._parent.myvar


 Regards,
 Roman.

 --

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

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

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

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Custom V2 Components - Compiled vs. StandardComponents.fla

2006-03-21 Thread Rich Rodecker
i just asked recently on this list about using the uncompiled
component clips from the StandardComponents.fla instead of the
compiled clips in my custom component (like it says to do in the
documentation).

the answer i got was to just use the precompiled clips anyway.  I've
been using them and havent run into any issues yet.





On 3/21/06, Keith Takayesu [EMAIL PROTECTED] wrote:
 We've been building some custom V2 components in Flash 8, and have found
 some issues regarding the Uncompiled components found in
 StandardComponents.fla, vs. the compiled SWCs.

 For example, the Label from the StandardComponents.fla file will not
 accept styles for font after we instantiate it using
 createClassObject(). Using the compiled Label instead, works fine.

 Also, the TextArea from the StandardComponents.fla file will not always
 output its text properly. Often after a compile it will have HTML
 wrappers around its text instead of just the text. Again, using the
 compiled SWC works.

 Has anyone else encountered such problems? If so, are there other
 solutions to using the uncompiled versions, rather than resorting to
 using the SWCs?

 Thanks,
 Keith
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Browse folders from flash

2006-03-21 Thread Rich Rodecker
as far as I know you cant just select a folder...flash needs to create
a FileReference object for each file in a directory, and it will only
do that for each individual item that the user selected.  Why they
couldnt just create one for every file in a directory I don't know,
but I would imagine it was a security concern.



On 3/21/06, Felipe Fernandez [EMAIL PROTECTED] wrote:
 Yeah, I know it but I wanna choose a folder, not a file.

 Thanks.

 On 3/21/06, Michael Bedar [EMAIL PROTECTED] wrote:
 
  In Flash 8 you can open a file browser to upload/download a file
 
 
  On Mar 21, 2006, at 12:57 PM, Felipe Fernandez wrote:
 
   Hi all, is it possible open a windows browser in order to user
   choose a
   local directory/folder?
   Of course, from flash (8 or, best, MX 2004)
  
   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

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

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


[Flashcoders] Problem

2006-03-21 Thread Christopher Whiteford
I am having a problem with figuring out why I am having scoping issues with
a rollover button. I am trying to load a swf file outside_btn.swf in that
has a movie with an instance name of smBtn on the main timeline. now I have
done traces from the button that indeed returns _level.smFindBtn1_mc.smBtn
but yet I still cant get teh onRelease to execute.

var smFindBtn1_mc:MovieClip = this.createEmptyMovieClip(smFindBtn1_mc,
this.getNextHighestDepth());
var smFindBtn1:MovieClipLoader = new MovieClipLoader();
smFindBtn1.loadClip(outside_btn.swf, smFindBtn1_mc);
smFindBtn1_mc.smBtn.onRelease = function(){
getURL(www.yahoo.com)
};

Does anyone have any ideas?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 would I use an insert target path dialog in my own components?

2006-03-21 Thread elibol
I'm sorry Mani, I think I know what you're talking about however I don't
know how to do it, but might I suggest, the answer should be found in
documentation, however I do not doubt that you've already gone through it,
in which case you should try searching the flashcoders list archives for
keywords that might describe what you're needing.

Best of luck,

M.

On 3/21/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:

 elibol,

 Thanks for the quick response.  I understand that part.  Where I'm stuck
 is
 trying to create a window like the one in the actionspanel where a person
 can select an instance name from the hierarchy of instances on the stage.
 Would you happen to know how to get that to appear.  I'm starting to think
 it might be only available if I create a dialog.

 Mani

 On 3/21/06, elibol [EMAIL PROTECTED] wrote:
 
  those are inspectable properties, you use meta tags to identify them:
 
  [Inspectable]
  private var item_library_ID:String;
 
  or something like:
 
  [Inspectable(enumeration='vertical,horizontal',
 defaultValue='vertical')]
  private var proportion:String;
 
  Search Flash help for Inspectable to get a better idea of what you can
 do.
 
  M.
 
  On 3/21/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
  
   How do I put the insert target path dialog in a component so that
  people
   can target a particular component?
  
   Thanks-
  
   Mani
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] Browse folders from flash

2006-03-21 Thread Felipe Fernandez
Yes, I'm agree with you, Rich. I know about FileReference but FileReference
works with files, not directories.
Any suggest?

Thanks all.

On 3/21/06, Rich Rodecker [EMAIL PROTECTED] wrote:

 as far as I know you cant just select a folder...flash needs to create
 a FileReference object for each file in a directory, and it will only
 do that for each individual item that the user selected.  Why they
 couldnt just create one for every file in a directory I don't know,
 but I would imagine it was a security concern.



 On 3/21/06, Felipe Fernandez [EMAIL PROTECTED] wrote:
  Yeah, I know it but I wanna choose a folder, not a file.
 
  Thanks.
 
  On 3/21/06, Michael Bedar [EMAIL PROTECTED] wrote:
  
   In Flash 8 you can open a file browser to upload/download a file
  
  
   On Mar 21, 2006, at 12:57 PM, Felipe Fernandez wrote:
  
Hi all, is it possible open a windows browser in order to user
choose a
local directory/folder?
Of course, from flash (8 or, best, MX 2004)
   
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
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] 27th March Sydney Developers study group

2006-03-21 Thread Kevin Mulvihill
Oh, I hate to write an email like this, but I just keep wishing that all the
emails from this user group would just go away... And they don't. There's
another one today. Bash on me if you want, but I just don't think this is
appropriate fodder for an internationally-based coding list. How many of the
thousands of coders on this list are in Sydney anyway? 3? 5? 10? For the
rest of us, these notices are just trash bin material and a complete waste
of bandwidth. I know it's only a small number of postings coming through
here each month, but what if EVERY user group started posting their meeting
notices here? How many user groups are there worldwide? Hundreds? THOUSANDS?
We would quickly be overrun. And it's simply not fair to let one post and
not another. Even Figleaf, who runs this list AND a number of user groups,
doesn't post their meeting notices here.

I don't mind a new group starting up sending one or two announcement posts
to the list - there are a lot of coders here and hopefully a new group can
get an initial influx of members in this way. But the Sydney group is nearly
a year old, so it seems to me that THIS LIST ought to be able to get back to
coding issues, of which there are plenty, sometime soon.

Again, I don't mean to offend anybody, and I really don't like writing
emails like this. I just think this kind of content belongs elsewhere. And
if it is somehow appropriate, just let me know and I'll shut up... Thanks
for listening.

Kevin



 Subject: [Flashcoders] 27th March Sydney Developers study group
 
 On Monday 27th March is the next meeting of the study group 
 we will be studying the flash application framework ARP. 
 Please read the articles prior to the meeting (see 
 http://www.flashdev.org.au/program). At the meeting, the 
 moderator will lead discussion and with questions about the 
 topic. The meeting is on at 6:30pm for 7pm start and finishes 
 around 8:30pm.
 
 Details about the group, venue and program are available from 
 http://www.flashdev.org.au. Please note, whilst the meetings 
 and the use of the club are free, the club does require us to 
 purchase beverages and/or snacks in exchange.
 
 Please RSVP at http://www.flashdev.org.au/rsvp.


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

2006-03-21 Thread Robert Leisle

You're defining the onRelease function before outside_btn.swf is loaded.

Wrap your onRelease definition in an onLoadComplete function to solve your 
problem:

http://livedocs.macromedia.com/flashlite/2/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0708.html





Christopher Whiteford wrote:


I am having a problem with figuring out why I am having scoping issues with
a rollover button. I am trying to load a swf file outside_btn.swf in that
has a movie with an instance name of smBtn on the main timeline. now I have
done traces from the button that indeed returns _level.smFindBtn1_mc.smBtn
but yet I still cant get teh onRelease to execute.

var smFindBtn1_mc:MovieClip = this.createEmptyMovieClip(smFindBtn1_mc,
this.getNextHighestDepth());
var smFindBtn1:MovieClipLoader = new MovieClipLoader();
smFindBtn1.loadClip(outside_btn.swf, smFindBtn1_mc);
smFindBtn1_mc.smBtn.onRelease = function(){
   getURL(www.yahoo.com)
};

Does anyone have any ideas?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

 



--
~
Bob Leisle 
Headsprout Software  Engineering

http://www.headsprout.com
Where kids learn to read!


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

2006-03-21 Thread Ettwein, Josh
You could use PHP (or whatever serverside lang you've got) to do a
directory listing and use is_dir to build youreslf a list of
directories. Pass that into flash using
remoting/loadvars/xml/whathaveyou and display a list of dirs in flash
with the full paths as properties of the dir objects you display.
Clicking on one would allow you to grab that path var. Something like
that, maybe?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Felipe
Fernandez
Sent: Tuesday, March 21, 2006 11:07 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Browse folders from flash

Yes, I'm agree with you, Rich. I know about FileReference but
FileReference works with files, not directories.
Any suggest?

Thanks all.

On 3/21/06, Rich Rodecker [EMAIL PROTECTED] wrote:

 as far as I know you cant just select a folder...flash needs to create

 a FileReference object for each file in a directory, and it will only 
 do that for each individual item that the user selected.  Why they 
 couldnt just create one for every file in a directory I don't know, 
 but I would imagine it was a security concern.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 would I use an insert target path dialog in my own components?

2006-03-21 Thread Manuel Saint-Victor
I appreciate it- I have a copy of Extending Flash 2004 here at the office
that I think will have to be what I end up referring to.

Mani


On 3/21/06, elibol [EMAIL PROTECTED] wrote:

 I'm sorry Mani, I think I know what you're talking about however I don't
 know how to do it, but might I suggest, the answer should be found in
 documentation, however I do not doubt that you've already gone through it,
 in which case you should try searching the flashcoders list archives for
 keywords that might describe what you're needing.

 Best of luck,

 M.

 On 3/21/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
 
  elibol,
 
  Thanks for the quick response.  I understand that part.  Where I'm stuck
  is
  trying to create a window like the one in the actionspanel where a
 person
  can select an instance name from the hierarchy of instances on the
 stage.
  Would you happen to know how to get that to appear.  I'm starting to
 think
  it might be only available if I create a dialog.
 
  Mani
 
  On 3/21/06, elibol [EMAIL PROTECTED] wrote:
  
   those are inspectable properties, you use meta tags to identify them:
  
   [Inspectable]
   private var item_library_ID:String;
  
   or something like:
  
   [Inspectable(enumeration='vertical,horizontal',
  defaultValue='vertical')]
   private var proportion:String;
  
   Search Flash help for Inspectable to get a better idea of what you can
  do.
  
   M.
  
   On 3/21/06, Manuel Saint-Victor [EMAIL PROTECTED] wrote:
   
How do I put the insert target path dialog in a component so that
   people
can target a particular component?
   
Thanks-
   
Mani
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
   
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
   
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


Re: [Flashcoders] Browse folders from flash

2006-03-21 Thread Felipe Fernandez
Well, butI need directories on local machine, not in server machine

Thanks, anyway

On 3/21/06, Ettwein, Josh [EMAIL PROTECTED] wrote:

 You could use PHP (or whatever serverside lang you've got) to do a
 directory listing and use is_dir to build youreslf a list of
 directories. Pass that into flash using
 remoting/loadvars/xml/whathaveyou and display a list of dirs in flash
 with the full paths as properties of the dir objects you display.
 Clicking on one would allow you to grab that path var. Something like
 that, maybe?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Felipe
 Fernandez
 Sent: Tuesday, March 21, 2006 11:07 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Browse folders from flash

 Yes, I'm agree with you, Rich. I know about FileReference but
 FileReference works with files, not directories.
 Any suggest?

 Thanks all.

 On 3/21/06, Rich Rodecker [EMAIL PROTECTED] wrote:
 
  as far as I know you cant just select a folder...flash needs to create

  a FileReference object for each file in a directory, and it will only
  do that for each individual item that the user selected.  Why they
  couldnt just create one for every file in a directory I don't know,
  but I would imagine it was a security concern.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] wait or sleep

2006-03-21 Thread [EMAIL PROTECTED]




Ryan Potter wrote:


Here is another way that might help.  You can use Fuse to sequence and wait.
Code Post:
http://thoughtwillrise.com/

Fuse:
http://mosessupposes.com/Fuse/index.html
 





Very cool! :-)

But, if I put same code after line 15 in exemple below??? :-(

Rodrigo Schramm


Actionscript:

  1.
 function drawLoadManager(){
  2.
  trace(Draw Load Manager Called);
  3.
  var lm = this.loadManager = new Fuse();
  4.
  lm.push({ func:myMethodOne, scope:this, command:pause});
  5.
  lm.push({ func:loadData, scope:this, command:pause});
  6.
  lm.push({ func:loadMyClip, scope:this, command:pause});
  7.
  lm.start();
  8.
 }
  9.
  
 10.

 function myMethodOne(){
 11.
  
 12.

  do some code...
 13.
  
 14.

  // resume the load manager to load the next item
 15.
  this.loadManager.resume();
 16.
 }
 17.
 function loadData(){
 18.
  this.xml = new XML();
 19.
  this.xml.ignoreWhite = true;
 20.
  // CREATE A REFERENCE TO THE CURRENT TIMELINE
 21.
  this.xml._parent = this;
 22.
  this.xml.onLoad = function () {
 23.
   // resume the load manager to load the next item
 24.
   this._parent.loadManager.resume();
 25.
  }
 26.
  this.xml.load(this.datafile);
 27.
 }
 28.
 function loadMyClip(){
 29.
  this.myClip.loadMovie(load something);
 30.
  // create some sort of load handler
 31.
  this.myClip.onLoad(){
 32.
   // resume the load manager to load the next item
 33.
   this._parent.loadManager.resume();
 34.
  }
 35.
 }







	-Original Message- 
	From: [EMAIL PROTECTED] on behalf of iashido 
	Sent: Tue 3/21/2006 7:16 AM 
	To: Flashcoders mailing list 
	Cc: 
	Subject: Re: [Flashcoders] wait or sleep




http://proto.layer51.com/d.aspx?f=454


On Mar 21, 2006, at 4:13 PM, Danny Kodicek wrote:


 Using setInterval, I can only call a method (or funciton) same time
 later. I can't continue to run from the same point, at same function.
 Exist another solution for this?

 Yes, put your remaining code into a separate function:

 id=setInterval(function(){myRemainingCode},2000)

	 You can comfortably (well, messily) create a whole set of commands 
	 that run at intervals. The only problem is that you might want to 
	 avoid any other functions running in the intervening time.


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

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




www.itseveryday.ro
www.iashido.com


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

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


 




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

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



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

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


Re: [Flashcoders] Problem

2006-03-21 Thread Michael Bedar
Can you verify that the SWF has fully loaded before assigning the  
rollover?



On Mar 21, 2006, at 1:47 PM, Christopher Whiteford wrote:

I am having a problem with figuring out why I am having scoping  
issues with
a rollover button. I am trying to load a swf file outside_btn.swf  
in that
has a movie with an instance name of smBtn on the main timeline.  
now I have
done traces from the button that indeed returns  
_level.smFindBtn1_mc.smBtn

but yet I still cant get teh onRelease to execute.

var smFindBtn1_mc:MovieClip = this.createEmptyMovieClip 
(smFindBtn1_mc,

this.getNextHighestDepth());
var smFindBtn1:MovieClipLoader = new MovieClipLoader();
smFindBtn1.loadClip(outside_btn.swf, smFindBtn1_mc);
smFindBtn1_mc.smBtn.onRelease = function(){
getURL(www.yahoo.com)
};

Does anyone have any ideas?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Protecting Shared Objects

2006-03-21 Thread John Mark Hawley
I'm working on a CD product that needs to store a lot of data locally for easy 
lookup. Before your eyes glaze over and you point me at Zinc, know that this 
poor little product needs to run on OS 9, OSX, and Windows. Zinc doesn't do OS 
9.

But, aha, local shared objects! We can use them! Sure we can, but then there's 
a problem that some wiseguy could wipeout our entire database by clicking 
around in the Flash plugin settings for a good long time.

So: the tentative plan says we could run a little executable via an fscommand 
at startup that checks to see if the LSO's are in good order, and archives them 
elsewhere if so. If they've been hosed, the little executable would un-archive 
the last backup and put them back in the right location.

This sounds a little a rinky-dink, but it seems a heck of a lot easier than 
wrestling with a custom director wrapper and a real database. Just how icky 
does this sound to everyone? Anyone ever attempt something similar?

-Mark Hawley 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

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

2006-03-21 Thread Michael Stuhr

John Mark Hawley schrieb:

I'm working on a CD product that needs to store a lot of data locally for easy 
lookup. Before your eyes glaze over and you point me at Zinc, know that this 
poor little product needs to run on OS 9, OSX, and Windows. Zinc doesn't do OS 
9.

But, aha, local shared objects! We can use them! Sure we can, but then there's 
a problem that some wiseguy could wipeout our entire database by clicking 
around in the Flash plugin settings for a good long time.

So: the tentative plan says we could run a little executable via an fscommand 
at startup that checks to see if the LSO's are in good order, and archives them 
elsewhere if so. If they've been hosed, the little executable would un-archive 
the last backup and put them back in the right location.

This sounds a little a rinky-dink, but it seems a heck of a lot easier than 
wrestling with a custom director wrapper and a real database. Just how icky 
does this sound to everyone? Anyone ever attempt something similar?







sounds good.
no better sol. from here.

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

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


Re: [Flashcoders] OT: Disney-esque designer folios

2006-03-21 Thread Steve Mathews
Flashcoders probably isn't the best place for this, but this is a
friend of mine:
http://www.superham.com/

On 3/21/06, Dan Thomas [EMAIL PROTECTED] wrote:
 Hey am looking for some Disney-esque designer portfolios for a potential
 future flash project. Anyone have any suggestions or can point me in the
 right direction?

 Cheers
 Dan

 This message and any attachments should only be read by those persons to whom 
 it is addressed and be used by them for its intended purpose.  It must not 
 otherwise be reproduced, modified, distributed, published or actioned. If you 
 have received this e-mail in error, please notify us immediately by telephone 
 on 01202 237000 and delete it from your computer immediately. This e-mail 
 address must not be passed to any third party or be used for any other 
 purpose. Every reasonable precaution has been taken to ensure that this 
 e-mail, including attachments, does not contain any viruses. However, no 
 liability can be accepted for any damage sustained as a result of such 
 viruses, and recipients are advised to carry out their own checks.


 Moov2 Ltd cannot accept liability for statements made which are clearly the 
 senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this 
 address may be subject to interception or monitoring for operational reasons 
 or for lawful business purposes.


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Can't get rid of halo rectangle

2006-03-21 Thread Keith Takayesu
I'm trying to assign custom icons to a Button dynamically in a custom
component. Here is my code snippet:

mybutton = createClassObject ( Button, mybutton , this.startDepth++,
{_x:myx ,_y:myy,_width:15.9,_height:14.7,
falseOverIcon:btnCalendarViewFalseOverSkin,falseUpIcon:btnCalendarVie
wFalseUpSkin,falseDownIcon:btnCalendarViewFalseDownSkin,
falseDisabledIcon:btnCalendarViewFalseDisabledSkin} ); 

However, when I compile the Component to a SWF and then instantiate it,
the green halo rectangle still appears under all the icons. In fact, it
is still active under all of that. This has me baffled, perhaps it's
just too late in the day to figure it out.

2nd problem:
I have also tried to extend the Button class and apply the icons, as
shown in the Advanced Actionscript Components book. Then, I don't have
the rectangle problem, but the registration seems to be off, and height
and width come back as zero!

Blue Skies,
Tak
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Browse folders from flash

2006-03-21 Thread Scott Hyndman
Write a Java application that talks to Flash through a socket, and request file 
lists that way.

It's a bit of work, but it does work.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Ettwein, Josh
Sent:   Tue 3/21/2006 3:01 PM
To: Flashcoders mailing list
Cc: 
Subject:RE: [Flashcoders] Browse folders from flash

Right... I am an idiot. :) I was doing 5 things at once and lost track
of what you needed. Sorry!  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Felipe
Fernandez
Sent: Tuesday, March 21, 2006 11:46 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Browse folders from flash

Well, butI need directories on local machine, not in server machine

Thanks, anyway
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading local Html File from offline Presentation

2006-03-21 Thread Rob

Sorry, the file isn't in the same directory. Even though:
If I open the .swf in a browser it works, but if I try to get it opening 
inside the flash projector it won't...



Alfredo Laguia Laborda wrote:

if the file first.html is in the same directory than the .swf
just call getUrl('first.html','_blank');

bye
- Original Message - From: Rob [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 21, 2006 3:24 PM
Subject: [Flashcoders] Loading local Html File from offline Presentation



Hello Flashfriends,

I'd like to open a local html site from a projector-presentation on CD.
I need to point to an relative (because I dont know the CD-Driveletter 
of the running Systems) URL on the CD (absolute path: 
CD-DriveLetter:\websites\first.html) . I've tried:


getUrl('file://websites/first.html','_blank');
getUrl('websites/first.html','_blank');

There are around 200 sites in my websites-folder, so I don't like to 
use fscommand because of the fact that I need a entire .exe/.bat-file 
for every site, because you can't pass parameters with fscommand...


Any sugestions on that issue?
Thank you in advance.

Robert

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

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

__ Información de NOD32, revisión 1.1441 (20060313) __

Este mensaje ha sido analizado con  NOD32 antivirus system
http://www.nod32.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] Browse folders from flash

2006-03-21 Thread Scott Hyndman
File class in Java. Represents files and directories.

http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html

You can do some searches and find a ton of tutorials on this I imagine, 
although the API is fairly straight-forward. The list() method is what you're 
interested in.

As far as communication goes, you're going to have to use the Socket and 
ServerSocket classes. They make the task of communication between Flash and 
Java near painless. I can send a little sample socket server over if you want.

Scott

-Original Message-
From:   [EMAIL PROTECTED] on behalf of Felipe Fernandez
Sent:   Tue 3/21/2006 5:56 PM
To: Flashcoders mailing list
Cc: 
Subject:Re: [Flashcoders] Browse folders from flash

Could you tell me more details?
So, how could I access local machine directories using java?

Thanks.

On 3/21/06, Scott Hyndman [EMAIL PROTECTED] wrote:

 Write a Java application that talks to Flash through a socket, and request
 file lists that way.

 It's a bit of work, but it does work.

 Scott

 -Original Message-
 From:   [EMAIL PROTECTED] on behalf of Ettwein,
 Josh
 Sent:   Tue 3/21/2006 3:01 PM
 To: Flashcoders mailing list
 Cc:
 Subject:RE: [Flashcoders] Browse folders from flash

 Right... I am an idiot. :) I was doing 5 things at once and lost track
 of what you needed. Sorry!

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Felipe
 Fernandez
 Sent: Tuesday, March 21, 2006 11:46 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Browse folders from flash

 Well, butI need directories on local machine, not in server machine

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

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





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

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


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

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



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

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

[Flashcoders] _global is _global or what?

2006-03-21 Thread Merrill, Jason
I know it's a personal thing, but I usually try and avoid using _global
variables (in fact, I use them so little, this is probably why I have
this question), but I found a case where I needed to use them - at least
temporarily for testing purposes.  Without going in to why I'm using one
(please don't ask, just humor me :) ), I found a weird behavior I cannot
explain.

Say clip A is the main _level0 clip where the _global.myVar is defined.
Clip B is an external .swf references the _global myVar.

When I test my Movie (crtl+Enter) for the main _level0 clipA it loads
clip B in fine and reads the _global variable in fine as well as
expected.  However, when I test the main _level0 clip A in the browser,
clip B does NOT read the _global variable as it did in the Flash IDE
test mode - it's showing as undefined  - why? I thought _global was
_global in the 'ol grande document level stack? No?

This is true from clip B if I try accessing it via either myVar or
_global.myVar.  

Thanks for any insights,

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com




NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is 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] need choose your own adventure source code

2006-03-21 Thread .:: { andi } ::.
need choose your own adventure game source codecan't find any  
*anywhere*! ...or ideas...or I dunno, just have to make a cool game  
for work, would like a pre-made game or game-maker(preferably in  
Flash)


a.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] need choose your own adventure source code

2006-03-21 Thread John Mark Hawley
I have some slightly hairy old CYOA code stuff up at: 
http://www.nilbog.com/CYOA/NILBOG_CYOA_SOURCE_Nov_2004.zip

I haven't looked at it in forever, and I have no doubt that it is somewhat 
crappy, but you might find some use in it.

-Mark Hawley

 
 From: .:: { andi } ::. [EMAIL PROTECTED]
 Date: 2006/03/21 Tue PM 05:49:34 CST
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] need choose your own adventure source code
 
 need choose your own adventure game source codecan't find any  
 *anywhere*! ...or ideas...or I dunno, just have to make a cool game  
 for work, would like a pre-made game or game-maker(preferably in  
 Flash)
 
 a.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] activating the rollover/selection animations of a list row when using selectedIndex

2006-03-21 Thread Rich Rodecker
I am using a cell renderer in a DataGrid column, which contains an
image that a user can click on to select that row.  I can set the
selected row using listOwner and selectedIndex, but doing that just
sets the row to fully hilighted, no animation.  Is there a way to
activate that animation, and to activate the rollover animation too?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] LOADVARS not working IE

2006-03-21 Thread Johnny Zen
Success at last !!!

Thanks all for info. I came across cache issues, but was so confused
by it all, I lost the plot.

Robert, you reply made me look again at this cache issue, and after
reading a comment at the main php website, the answer was so simple...
just typical.

Again for info that might help someone: ( I hope it makes sense, as
still a novice)

I used charles - very usual (although seemed buggy to me) web
development tool that monitors http requests and such live in your
browser window (firefox extension available)
I noticed that the pragma: no cache header with other headers were
being sent from the phpfile to the flash. This caused internet
explorer to not get the data, although works fine in Firefox.

So, it seems that these headers (sent auto. from apache server) were
causing the problem.
(as roberts link he provided)

so, by adding this line at the start of the php file i'm calling from flash:

session_cache_limiter(must-revalidate);

immediately stopped the headers and solved the problem.

Here below is the headers sent before and after I added the line above:

/BEFORE//

HTTP/1.1 200 OK
Date: Wed, 22 Mar 2006 01:02:36 GMT
Server: Apache/2.0.49 (Fedora)
X-Powered-By: PHP/4.3.10
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 124
Connection: close
Content-Type: text/html; charset=UTF-8

///AFTER

HTTP/1.1 200 OK
Date: Wed, 22 Mar 2006 01:03:56 GMT
Server: Apache/2.0.49 (Fedora)
X-Powered-By: PHP/4.3.10
Content-Length: 124
Connection: close
Content-Type: text/html; charset=UTF-8

//

As you can see, the Pragma: no-cache, Expires: Thu, 19 Nov 1981
08:52:00 GMT and
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0 are removed thus fixing the problem.


You can find the tool Charles the tool at http://www.xk72.com/charles/


Its been an emotional journey finding the answer, full of hopes and
failures. I dont really understand it, just hope this is the end of
the problem.

Also I hope this is handy info for someone in a similar situation.

Oh the credit goes to the person who added the first comment at :

http://de3.php.net/manual/en/function.session-cache-limiter.php



Thanks all for help :)


Regards


Johnny-needs-a-big-cup-of-tea-now
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] _global is _global or what?

2006-03-21 Thread keith
Maybe the external swf Clip B did not load in time to read that variable (in 
the brower).
Try making Clip B wait 1 frame worth of time after it is loaded then read 
the variable.


-Keith H-

- Original Message - 
From: Merrill, Jason [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 21, 2006 6:43 PM
Subject: [Flashcoders] _global is _global or what?


I know it's a personal thing, but I usually try and avoid using _global
variables (in fact, I use them so little, this is probably why I have
this question), but I found a case where I needed to use them - at least
temporarily for testing purposes.  Without going in to why I'm using one
(please don't ask, just humor me :) ), I found a weird behavior I cannot
explain.

Say clip A is the main _level0 clip where the _global.myVar is defined.
Clip B is an external .swf references the _global myVar.

When I test my Movie (crtl+Enter) for the main _level0 clipA it loads
clip B in fine and reads the _global variable in fine as well as
expected.  However, when I test the main _level0 clip A in the browser,
clip B does NOT read the _global variable as it did in the Flash IDE
test mode - it's showing as undefined  - why? I thought _global was
_global in the 'ol grande document level stack? No?

This is true from clip B if I try accessing it via either myVar or
_global.myVar.

Thanks for any insights,

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com




NOTICE:
This message is for the designated recipient only and may contain privileged 
or confidential information. If you have received it in error, please notify 
the sender immediately and delete the original. Any other use of this e-mail 
by you is 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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2 Vs. AS1

2006-03-21 Thread David Rorex
On 3/21/06, stone larsen [EMAIL PROTECTED] wrote:

 Is there a reason this works in AS1 and not AS2???


Could you give us more info on what exactly is not working with it?
Did you use trace()'s or the debugger to find out exactly which part is
failing?

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

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


Re: [Flashcoders] _global is _global or what?

2006-03-21 Thread David Rorex
On 3/21/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 I know it's a personal thing, but I usually try and avoid using _global
 variables (in fact, I use them so little, this is probably why I have
 this question), but I found a case where I needed to use them - at least
 temporarily for testing purposes.  Without going in to why I'm using one
 (please don't ask, just humor me :) ), I found a weird behavior I cannot
 explain.

 Say clip A is the main _level0 clip where the _global.myVar is defined.
 Clip B is an external .swf references the _global myVar.

 When I test my Movie (crtl+Enter) for the main _level0 clipA it loads
 clip B in fine and reads the _global variable in fine as well as
 expected.  However, when I test the main _level0 clip A in the browser,
 clip B does NOT read the _global variable as it did in the Flash IDE
 test mode - it's showing as undefined  - why? I thought _global was
 _global in the 'ol grande document level stack? No?

 This is true from clip B if I try accessing it via either myVar or
 _global.myVar.

 Thanks for any insights,


Two possible things which may cause problems, not sure if it is in your
case:
1. If the swfs are published to different versions of the flash player(for
example, a v7 swf and a v6 swf), they won't be able to read each other's
_global's
2. If the swf's are in different domains, they may not be able to read each
other's globals (not completely sure about this), without specifically
allowing the domains using System.security.allowDomain() (in both
directions, A allows B's domain, B allows A's domain)

3. A loading issue? I've had problems where things work offline, but not
online, due to me not checking if certain resources are completely loaded
yet. (Yes I know this is vague, but it's a general hint)


hope this helps,
David R
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] FATAL Zinc issue

2006-03-21 Thread Gene Jannece
I work for a company that is greatly effected by the New Zinc issue that popped 
up. 
I was wondering if anybody had found a quick fix or if it's really totally 
fatal. 

basicly if you make a user in windows with a # (pound sign) in the username 
and run a 
zinc made .exe, you run the risk of loosing all of your data in c:\Documents  
Settings\*

I'll post more info on it in the morning. I've been testing this all day and am 
tired. 

Gene Jannece
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Database modeling for AS projects

2006-03-21 Thread Honeyghan
I've been doing some research on various modeling tools which would enable
me to easily model databases for future flash projects. Came across two very
interesting solutions which should be on your radar.

My requirements are as follows:

1. Feature rich, stable application which allows reverse engineering of
existing database.
2. Compatibility with MySQL databases and Linux.
3. Ability to generate SQL statements directly from diagrams.
4. Exporting diagrams as an image and or printing is a must.
5. Uses open standards which allow me to utilize output in other
applications.
6. Allow easy navigation of the entire database scheme, which includes
finding and navigating to specified table.
7. Minimal cost.



Solution 1:
DBDesigner4 from fabFORCE.net
(http://www.fabforce.net/dbdesigner4/)

Fits in-line with all of the above and more. While I do wish that there was
an add-on to Eclipse. It's interface is stable offers ease of use, by far a
very powerful application which will save me time during the planning phase
of extensive projects. DBDesigner4 is also available for the Windows
platform and is GNU Licensed.


Solution 2:
Azzurri Clay from Azzurri Ltd.
(http://www.azzurri.jp/en/index.jsp)

Another gem which is a native plug-in for Eclipse. Azzurri Clay available in
either Core or Pro version, Core being free and Pro costing 35,000 YEN --
about $300 give or take. Sadly to say the Pro version is apparently no
longer available for sale outside of Japan according to their english
website.

While the Core version isn't as feature rich as DBDesigner4, it's worth
mentioning if your needs are basic. One thing I found limiting is that there
is no export to image which is important if working in a team environment.

Clay Core supports additional databases besides MySQL such as PostgreSQL,
however, there is no SQL Sever support. As a plug-in for Eclipse it's
available on all Java enabled platforms.




Stay well,
Honeyghan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2 Vs. AS1

2006-03-21 Thread stone larsen
David,

I'm not familiar with the debugger, i did put in some
trace's but came back with nothing.

here's the URL where I am trying to get it working

http://sireclothing.com/final/

here's the php

?php 
//get email value from POST variable
$email = trim($_POST['email']);
//add a new line for Each email address
$email .=\n; 
//initialize the variable
$fileName = subscribe.txt;
//open files
if (is_writable($fileName)) {
if(!$fp = fopen($fileName,a)){
echo status=Can't open the file name $fileName;
exit;
}
if (fwrite($fp,$email) === FALSE) {
echo status=Can't write to $fileName;
exit;
}
echo status=ok;
fclose($fp);
} else {
echo status=The file $fileName is not writable;
}
?

If you take a look the status goes directly to
Problem. I've been at this all day, no results, any
help?

Best,
Stone

--- David Rorex [EMAIL PROTECTED] wrote:

 On 3/21/06, stone larsen [EMAIL PROTECTED]
 wrote:
 
  Is there a reason this works in AS1 and not
 AS2???
 
 
 Could you give us more info on what exactly is not
 working with it?
 Did you use trace()'s or the debugger to find out
 exactly which part is
 failing?
 
 -David R
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the
 archive:

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] _global is _global or what?

2006-03-21 Thread Iv
Hello Jason,

MJ Say clip A is the main _level0 clip where the _global.myVar is defined.
MJ Clip B is an external .swf references the _global myVar.

- http://www.sharedfonts.com/eng/faq.html
  a bit about it read the first anhswer.


-- 
Ivan Dembicki

[EMAIL PROTECTED] || 
http://www.design.ru

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

2006-03-21 Thread Kevin Mulvihill
This email is timely, Honeyghan. Thanks for sharing with the community.

Kevin 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Honeyghan
 Sent: Tuesday, March 21, 2006 6:13 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Database modeling for AS projects
 
 I've been doing some research on various modeling tools which 
 would enable me to easily model databases for future flash 
 projects. Came across two very interesting solutions which 
 should be on your radar.
 
 My requirements are as follows:
 
 1. Feature rich, stable application which allows reverse 
 engineering of existing database.
 2. Compatibility with MySQL databases and Linux.
 3. Ability to generate SQL statements directly from diagrams.
 4. Exporting diagrams as an image and or printing is a must.
 5. Uses open standards which allow me to utilize output in 
 other applications.
 6. Allow easy navigation of the entire database scheme, which 
 includes finding and navigating to specified table.
 7. Minimal cost.
 
 
 
 Solution 1:
 DBDesigner4 from fabFORCE.net
 (http://www.fabforce.net/dbdesigner4/)
 
 Fits in-line with all of the above and more. While I do wish 
 that there was an add-on to Eclipse. It's interface is stable 
 offers ease of use, by far a very powerful application which 
 will save me time during the planning phase of extensive 
 projects. DBDesigner4 is also available for the Windows 
 platform and is GNU Licensed.
 
 
 Solution 2:
 Azzurri Clay from Azzurri Ltd.
 (http://www.azzurri.jp/en/index.jsp)
 
 Another gem which is a native plug-in for Eclipse. Azzurri 
 Clay available in either Core or Pro version, Core being free 
 and Pro costing 35,000 YEN -- about $300 give or take. Sadly 
 to say the Pro version is apparently no longer available for 
 sale outside of Japan according to their english website.
 
 While the Core version isn't as feature rich as DBDesigner4, 
 it's worth mentioning if your needs are basic. One thing I 
 found limiting is that there is no export to image which is 
 important if working in a team environment.
 
 Clay Core supports additional databases besides MySQL such as 
 PostgreSQL, however, there is no SQL Sever support. As a 
 plug-in for Eclipse it's available on all Java enabled platforms.
 
 
 
 
 Stay well,
 Honeyghan
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Browse folders from flash

2006-03-21 Thread Duncan Reid
I'm not sure if anyone mentioned this but have you looked at screenweaver?

http://osflash.org/screenweaver

I have not tried it myself, still using Zinc, maybe someone else has?


On 3/21/06, Felipe Fernandez [EMAIL PROTECTED] wrote:

 Well, butI need directories on local machine, not in server machine

 Thanks, anyway

 On 3/21/06, Ettwein, Josh [EMAIL PROTECTED] wrote:
 
  You could use PHP (or whatever serverside lang you've got) to do a
  directory listing and use is_dir to build youreslf a list of
  directories. Pass that into flash using
  remoting/loadvars/xml/whathaveyou and display a list of dirs in flash
  with the full paths as properties of the dir objects you display.
  Clicking on one would allow you to grab that path var. Something like
  that, maybe?
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Felipe
  Fernandez
  Sent: Tuesday, March 21, 2006 11:07 AM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Browse folders from flash
 
  Yes, I'm agree with you, Rich. I know about FileReference but
  FileReference works with files, not directories.
  Any suggest?
 
  Thanks all.
 
  On 3/21/06, Rich Rodecker [EMAIL PROTECTED] wrote:
  
   as far as I know you cant just select a folder...flash needs to create
 
   a FileReference object for each file in a directory, and it will only
   do that for each individual item that the user selected.  Why they
   couldnt just create one for every file in a directory I don't know,
   but I would imagine it was a security concern.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] Database modeling for AS projects

2006-03-21 Thread Ron Wheeler



Honeyghan wrote:

I've been doing some research on various modeling tools which would enable
me to easily model databases for future flash projects. Came across two very
interesting solutions which should be on your radar.

My requirements are as follows:

1. Feature rich, stable application which allows reverse engineering of
existing database.
2. Compatibility with MySQL databases and Linux.
3. Ability to generate SQL statements directly from diagrams.
4. Exporting diagrams as an image and or printing is a must.
5. Uses open standards which allow me to utilize output in other
applications.
6. Allow easy navigation of the entire database scheme, which includes
finding and navigating to specified table.
7. Minimal cost.



Solution 1:
DBDesigner4 from fabFORCE.net
(http://www.fabforce.net/dbdesigner4/)

Fits in-line with all of the above and more. While I do wish that there was
an add-on to Eclipse. It's interface is stable offers ease of use, by far a
very powerful application which will save me time during the planning phase
of extensive projects. DBDesigner4 is also available for the Windows
platform and is GNU Licensed.


Solution 2:
Azzurri Clay from Azzurri Ltd.
(http://www.azzurri.jp/en/index.jsp)

Another gem which is a native plug-in for Eclipse. Azzurri Clay available in
either Core or Pro version, Core being free and Pro costing 35,000 YEN --
about $300 give or take. Sadly to say the Pro version is apparently no
longer available for sale outside of Japan according to their english
website.

While the Core version isn't as feature rich as DBDesigner4, it's worth
mentioning if your needs are basic. One thing I found limiting is that there
is no export to image which is important if working in a team environment.

Clay Core supports additional databases besides MySQL such as PostgreSQL,
however, there is no SQL Sever support. As a plug-in for Eclipse it's
available on all Java enabled platforms.




Stay well,
Honeyghan

  


Eclipse plug-ins

DB Visual ARCHITECT, Object Relational Mapping Tool,  a bit more expensive
http://www.visual-paradigm.com/product/dbva/

Eclipse SQLExplorer plugin
http://sourceforge.net/projects/eclipsesql

A tutorial on how to start database modelling with Eclipse, SQLExplorer  
and Clay.

http://www-128.ibm.com/developerworks/edu/os-dw-os-ecldbint-i.html

Ron
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Determining width of rotatedMC'simaginaryboundingbox

2006-03-21 Thread David Stiller
 Odie Bracy PhD wrote:
 Actually, your width will change with the
 rotation. The greatest width will be when
 the diagonal line of your rectangle is a
 flat, horizontal line.

That seems to sum it up, for sure.  Thanks, Odie.

 Yotam Laufer wrote:
 First of all you're welcome. When using
 the mathematical approace, are you feeding
 the Math.sin (a) method radian or degrees?
 It should be radians could that be your
 problem?

I'm using radians.  I thought about that, too, and checked for
the possibility first thing.  The more I experiment, actually, the more
I see the light.  Thanks for all the input!


David
[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


  1   2   >