Re: [Flashcoders] Uncompress a gzipped file

2006-08-09 Thread Claus Wahlers

Max,

not sure if this helps but it's worth a try.

I was trying to uncompress files from zip archives a while ago. The most 
common compression method used in zip is deflate (as you already know) 
so theroretically it shouldn't be a problem to uncompress() files in a 
zip, BUT.. the thing is, although both Flash and the common 3rd party 
zip tools use the same compression method, they use different checksums.


Zlib (Flash) uses an ADLER32 checksum, see RFC 1950 [1], whereas zip 
uses CRC-32 [2]. The checksum is calculated over the uncompressed file 
so imho it's impossible to uncompress a file in a 3rd party created zip 
archive (you don't have the ADLER32 checksum that Flash needs - the dog 
bites its tail there), which really is a pity.


Please let me know if you find a way around that, i'd be very 
interested. I'll do the same. Maybe we should joint our efforts there.


Cheers,
Claus.

[1] http://www.gzip.org/zlib/rfc-zlib.html
[2] http://tinyurl.com/an7mj


Max wrote:


Shouldn't there be more interest in this? Flash's compress() and
uncompress() features use DEFLATE, which is the same algorithim used
in zip files and png images. Imagine compressing XML files to a tiny
fraction of their original size and decompressing them within flash!
The uses are endless, especially when you start to think about
compressing files within flash and sending them other places.

My progress in this has stalled. I'm pretty confident now the last two
bits in a ByteStream compressed with compress() are a checksum, and
I'm almost completely sure it's a crc-16 checksum (although it's
always off by one, I can't say I know why).

Gzip actually includes a checksum, but it's crc-32, not crc-16. It's
not as if you can know what the crc-16 checksum is without
decompressing the file first. So basically, flash needs the checksum
before it will decompress the binary data, and you don't have it with
a normal gzip file. Now I'm starting to think gzip is a dead end and a
custom format would probably be more useful.

Anyway, making a custom format is out of my league it seems. I tried
working something out with Python but I can't pull it off. Surely the
throngs of people interested in this would figure something out,
unless I'm alone...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Uncompress a gzipped file

2006-08-09 Thread Nicolas Cannasse

My progress in this has stalled. I'm pretty confident now the last two
bits in a ByteStream compressed with compress() are a checksum, and
I'm almost completely sure it's a crc-16 checksum (although it's
always off by one, I can't say I know why).


I'm busy ATM, but I will have a look at it as soon as haXe supports Flash9.

Nicolas
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] grabbing bitmapdata from a vector movieClip...

2006-08-09 Thread Bjorn Schultheiss
I second that for best solution 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ricky Bacon
Sent: Thursday, 10 August 2006 3:43 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] grabbing bitmapdata from a vector movieClip...

keitai guy wrote:
> What i want is a way to basically do a screen capture, outputting the 
> SWF /flash data to a file.

Use the draw method.  Create a BitmapData object of the appropriate size and
pass the clip you want as the first param.  The best solution for client to
data I've seen is from http://www.quasimondo.com/archives/000572.php

-Ricky
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] grabbing bitmapdata from a vector movieClip...

2006-08-09 Thread Ricky Bacon

keitai guy wrote:

What i want is a way to basically do a screen capture, outputting the
SWF /flash data to a file.


Use the draw method.  Create a BitmapData object of the appropriate size 
and pass the clip you want as the first param.  The best solution for 
client to data I've seen is from 
http://www.quasimondo.com/archives/000572.php


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

2006-08-09 Thread Bjorn Schultheiss
Tone,

> noScale & showAll? They are not mutually exclusive?

Typing without thinking to hard.


> What will this do for me? If you're using showAll then Stage.height etc. 
> is lost? Is that why you have to get the values from the browser?

Here's the cool part,
Say you want to display a video fullscreen.. The stage could be 1px x 1px,
it doesn't matter.
Let js pass in the window values and have an flash method equate the corrent
xywh coords.

What I'm basically saying is you can drop your reliance on the stage
completely rather than having to worry about resizing that bitch ;[



Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee
Sent: Thursday, 10 August 2006 3:06 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] New Flash based website

Hi Bjorn,
> There's a better way to do it.
> Have you seen swfObject?
>   
Seen it. Use it. Love it.
> Insert the swf into the html with noscale and showall, then you are 
> not limited to a stage size.
>   
noScale & showAll? They are not mutually exclusive?
> Have a listener set up in js for onResize and pass it into flash via 
> swfObject.
What will this do for me? If you're using showAll then Stage.height etc. 
is lost? Is that why you have to get the values from the browser?

Tony
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] grabbing bitmapdata from a vector movieClip...

2006-08-09 Thread keitai guy

Hi List -

using the BitmapData class, its possible to read pixels from the
screen, and save to a file.

However, this only seems to read the pixels that you have drawn into
the bitmap object.

Is there anyway to capture the actual vector data on the screen? eg
other movieclips etc.

What i want is a way to basically do a screen capture, outputting the
SWF /flash data to a file.

thanks,

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

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


Re: [Flashcoders] AS3: Stage.scaleMode, Stage.stageWidth and Stage.stageHeight

2006-08-09 Thread julien castelain

hi chris,

for your 2nd question :

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

works fine for me

cheers


On 8/9/06, Chris McFadyen aka Grayson Carlyle <[EMAIL PROTECTED]> wrote:

First question:

Can Stage.stageWidth and Stage.stageHeight not be modified by AS?
Documentation would suggest otherwise, but setting them has no effect.

Second question:

Does Stage.scaleMode = StageScaleMode.NO_SCALE work as intended?
Documentation states "Specifies that the size of the Flash application be
fixed, so that it remains unchanged even as the size of the player window
changes."  However, I find the application to resize itself with the player
window; IDE and browser, and changes the value of stageHeight and
stageWidth.


My intent is to be able to resize an application in code without the browser
window having an affect on size or scale, but the above properties can't
seem to be configured to do that.  Is there another way?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] New Flash based website

2006-08-09 Thread Anthony Lee

Hi Bjorn,

There's a better way to do it.
Have you seen swfObject?
  

Seen it. Use it. Love it.

Insert the swf into the html with noscale and showall, then you are not
limited to a stage size.
  

noScale & showAll? They are not mutually exclusive?

Have a listener set up in js for onResize and pass it into flash via
swfObject.
What will this do for me? If you're using showAll then Stage.height etc. 
is lost? Is that why you have to get the values from the browser?


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

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


[Flashcoders] problem with scaling externally loaded SWFs using loadClip

2006-08-09 Thread Kapil Mohan
Hey Gurus,

I am builidng a player in Flash MX 2004 which will show externally loaded SWFs 
to the user. One SWF at a time. The user is going to have back-next type 
navigation controls. Thats all. Simple.

But I am facing a wierd problem in loading external SWFs. I want to be able to 
resize the external SWFs into a fixed area while maintaining the aspect ratio 
of the loaded SWF. This action is happening unreliably for me. In some SWFs, my 
solution is working fine and in some it is not. Result is that I am sometimes 
getting SWFs which are smaller in size than what I want (as in they dont fill 
up whole viewable area even when they can). Note that this is happening only in 
some SWFs and not all of them.

I am tempted to think that this might be because some SWFs are somehow 
different than the SWFs which work fine. But I am clueless what this difference 
could be. All external SWFs have only one frame. And there framerate is also 
same. I am resizing all SWFs in loadClip.onLoadInit. The resizing code tries to 
fit the loaded SWF into a fixed area while maintaining its aspect ratio.

I have tried using MovieClip.loadClip and also the Loader component that comes 
with Flash MX 2004.

Is there anything which I am missing out here, or could there be any attribute 
in the external SWF which might make it behave differently than others when 
resized.

Kindly help me. This issue is really giving me jerks now. Thanks!

Regards,
Kapil Mohan
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] png load queue

2006-08-09 Thread Anthony Lee

How are you loading them? What queue are you using?

Tony

player is performing very very slowly
  
I am loading in sequence up to 100 png files - if that makes a difference.


Any idea why this may be happenening?
  


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

2006-08-09 Thread Anthony Lee

Bart,

I don't find a
solution where I can get my movieclips away of the library container to some
movieclip on the main.swf.
  

I think if you look at the technotes you'll find that it can't be done.

That doesn't mean you can't use loaded movie library assets. You just 
have to access them from the scope they where born to.


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

2006-08-09 Thread Max

Shouldn't there be more interest in this? Flash's compress() and
uncompress() features use DEFLATE, which is the same algorithim used
in zip files and png images. Imagine compressing XML files to a tiny
fraction of their original size and decompressing them within flash!
The uses are endless, especially when you start to think about
compressing files within flash and sending them other places.

My progress in this has stalled. I'm pretty confident now the last two
bits in a ByteStream compressed with compress() are a checksum, and
I'm almost completely sure it's a crc-16 checksum (although it's
always off by one, I can't say I know why).

Gzip actually includes a checksum, but it's crc-32, not crc-16. It's
not as if you can know what the crc-16 checksum is without
decompressing the file first. So basically, flash needs the checksum
before it will decompress the binary data, and you don't have it with
a normal gzip file. Now I'm starting to think gzip is a dead end and a
custom format would probably be more useful.

Anyway, making a custom format is out of my league it seems. I tried
working something out with Python but I can't pull it off. Surely the
throngs of people interested in this would figure something out,
unless I'm alone...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] New Flash based website

2006-08-09 Thread Bjorn Schultheiss
There's a better way to do it.
Have you seen swfObject?
Insert the swf into the html with noscale and showall, then you are not
limited to a stage size.
Have a listener set up in js for onResize and pass it into flash via
swfObject. 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anthony Lee
Sent: Thursday, 10 August 2006 2:27 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] New Flash based website


> use javascript to resize the swf's object height attribute, so that 
> when your user opens a section that will increase your stage height 
> beyond the window height,
Hi Aaron,

I noticed a site doing that just this morning. Switching the swf attributes
from Javascript doesn't mess with the application's state? 
Does anyone have any sample code they could point at?

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

2006-08-09 Thread Anthony Lee


does anyone have any experience using flash and sessions? specifically, i'm trying to get flash to read the jsession id from the http header. 
  
You can just push it into flash from the object tag when the page is 
written:


myFlash.swf?jsession_id=woof

Turns up in Flash at:

_root.jsession

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

2006-08-09 Thread Anthony Lee



use javascript to resize the swf's object
height attribute, so that when your user opens a section that will increase
your stage height beyond the window height, 

Hi Aaron,

I noticed a site doing that just this morning. Switching the swf 
attributes from Javascript doesn't mess with the application's state? 
Does anyone have any sample code they could point at?


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

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


[Flashcoders] Flasher-L?

2006-08-09 Thread Josh Santangelo

Reading Tom Jackson's thread, I was directed to the etiquette page here:

http://www.osflash.org/flashcoders/etiquette

It mentions a Flasher-L mailing list, but that link is dead.

Does that actually exist? Just curious.

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

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


Re: [Flashcoders] New Flash based website

2006-08-09 Thread Tom Jackson

Really sorry about the sitecheck Jim I wasn't aware of this rule, but I am
now and it wont happen again :)

thanks for the comments guys much appreciated, some good suggestions too,
the tweens are just the built in mx.easing classes there's a decent tutorial
on actionscript.org about the easing class. James your right I guess it does
look a bit like that plat4m.com site , although I honestly have never seen
that site before although I have seen 2advanced before so maybe there
stylings were in my subconscious! it was by no means an intentional rip in
any case!

thanks guys

Tom

On 09/08/06, Jim Kremens <[EMAIL PROTECTED]> wrote:


Hi,

Not to be a buzzkill, and I think it's a cool site, but sitechecks are
frowned upon in a list this large.

See:

http://www.osflash.org/flashcoders/etiquette

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


Re: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Chris Hill
wow, ok, I've spent way too much time on this so I have to get back to 
work. But here's what my last hour showed me:


txt has no onPress, onRelease, etc.
You cannot determine if the TextField inside a TextInput is rolled over 
or out. There are no onRollOver/onRollOut methods to use.
You can determine if the TextInput receives focus(ie is clicked in or 
tabbed to) with

txt.addEventListener("focusIn",this);
txt.addEventListener("focusOut",this);

You can consistently determine a way to show the clip by putting an 
invisible button above the text field. But this stops the text field 
from receiving input, and so you must set _visible=false on the button 
after its rolled over. But now we have no way of determining when we've 
rolled off the textfield, and so there's no way to turn off the tooltip.


I never realized how broken this whole thing is. But it seems like 
TextField (not TextInput) objects don't have any event handling, and 
instead whatever behind them will receive onRollOver/Out events. This 
makes it really hard to do anything like a tooltip with them.


Sorry I couldn't give you a better answer!
Chris



Subba Chalamalasetty wrote:


I did change it when using it for the first time...I noticed the
function names are different and changed them so that they are same.
I also tried this

txt.onRollOver = txt.onPress = Delegate.create(this, txtOver);
txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

private function txtOver(){
tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt.showTip("Total sales.");

}

   private function txtPress(){
  tt.removeTip();
  oldOnPress.apply(txt);
   }

I am still having the same problem.

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Subba
Chalamalasetty
Sent: Wednesday, August 09, 2006 5:07 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Tooltip rollovers for textinput..help plss



I tried this also...still same problem..

Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 4:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

This:

  txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

Should be this:

  txt.onRollOut = txt.onPress = Delegate.create(this,txtOut);

According to the code given.

See if that works,
Chris


Subba Chalamalasetty wrote:

 


Hi Chris,

I tried using Delegate and i am still having the same problem.
I used your code and tried to save the onpress handler,but didn't work
import mx.utils.Delegate;
class test {
  private var txt:TextInput;
  private var oldOnPress:Function;
  private var tt:ToolTip;
  private function onLoad(){
 oldOnPress = txt.onPress;
 txt.onRollOver = Delegate.create(this, txtOver);
 txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);
  }

  private function txtOver(){
 tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
 tt.showTip("Total sales.");
  }

  private function txtOut(){
 tt.removeTip();
 oldOnPress.apply(txt);
  }
}

it is still having the same problem.Am I using the right event?.I am
totally lost and donno y it is not working(I also used TeoToolTip
component and it was giving me the same problem too).can you help me
out?

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 3:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

You're overwriting the onPress event on your text field. You need to 
save your old onPress event before overwriting it, and make sure that
   


it
 


is called:

class test {
   private var txt:TextInput;

   private function test() {
   }

   private function onLoad() {
   //save the onPress handler
   txt.oldOnPress = txt.onPress;
 txt.onRollOver = function() { 
tt = new

customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt.showTip("Total sales.");
 }
 
 txt.onRollOut = txt.onPress = function() {

 tt.removeTip();
//call the onPress Handler
 oldOnPress();
 }

I don't think my changes will compile, but I hope you get the idea. I 
would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
more gracefully handle your handlers. Something like this:


import ascb.util.Proxy;
class test {
  private var txt:TextInput;
  private var oldOnPress:Function;
  private var tt:ToolTip;
  private function onLoad(){
 oldOnPress = txt.onPress;
 txt.onRollOver = Proxy.create(this, txtOver);
 txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
  }

  private function txtOver(){
 tt = new customToolTip(0xE5E5E5,0x02

Re: [Flashcoders] New Flash based website

2006-08-09 Thread Jim Kremens

Hi,

Not to be a buzzkill, and I think it's a cool site, but sitechecks are
frowned upon in a list this large.

See:

http://www.osflash.org/flashcoders/etiquette

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



RE: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Subba Chalamalasetty


I did change it when using it for the first time...I noticed the
function names are different and changed them so that they are same.
I also tried this

txt.onRollOver = txt.onPress = Delegate.create(this, txtOver);
txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

private function txtOver(){
tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
tt.showTip("Total sales.");

}

private function txtPress(){
   tt.removeTip();
   oldOnPress.apply(txt);
}

I am still having the same problem.

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Subba
Chalamalasetty
Sent: Wednesday, August 09, 2006 5:07 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Tooltip rollovers for textinput..help plss



I tried this also...still same problem..

Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 4:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

This:

   txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

Should be this:

   txt.onRollOut = txt.onPress = Delegate.create(this,txtOut);

According to the code given.

See if that works,
Chris


Subba Chalamalasetty wrote:

>Hi Chris,
>
>I tried using Delegate and i am still having the same problem.
>I used your code and tried to save the onpress handler,but didn't work
>import mx.utils.Delegate;
>class test {
>private var txt:TextInput;
>private var oldOnPress:Function;
>private var tt:ToolTip;
>private function onLoad(){
>   oldOnPress = txt.onPress;
>   txt.onRollOver = Delegate.create(this, txtOver);
>   txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);
>}
>
>private function txtOver(){
>   tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
>   tt.showTip("Total sales.");
>}
>
>private function txtOut(){
>   tt.removeTip();
>   oldOnPress.apply(txt);
>}
>}
>
>it is still having the same problem.Am I using the right event?.I am
>totally lost and donno y it is not working(I also used TeoToolTip
>component and it was giving me the same problem too).can you help me
>out?
>
>Thanks,
>Subba
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Chris
>Hill
>Sent: Wednesday, August 09, 2006 3:56 PM
>To: Flashcoders mailing list
>Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss
>
>You're overwriting the onPress event on your text field. You need to 
>save your old onPress event before overwriting it, and make sure that
it
>
>is called:
>
>class test {
> private var txt:TextInput;
>
> private function test() {
> }
> 
> private function onLoad() {
>  //save the onPress handler
>  txt.oldOnPress = txt.onPress;
>   txt.onRollOver = function() { 
>  tt = new
>customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
>  tt.showTip("Total sales.");
>   }
>   
>   txt.onRollOut = txt.onPress = function() {
>   tt.removeTip();
>   //call the onPress Handler
>   oldOnPress();
>   }
>
>I don't think my changes will compile, but I hope you get the idea. I 
>would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
>more gracefully handle your handlers. Something like this:
>
>import ascb.util.Proxy;
>class test {
>private var txt:TextInput;
>private var oldOnPress:Function;
>private var tt:ToolTip;
>private function onLoad(){
>   oldOnPress = txt.onPress;
>   txt.onRollOver = Proxy.create(this, txtOver);
>   txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
>}
>
>private function txtOver(){
>   tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
>   tt.showTip("Total sales.");
>}
>
>private function txtOut(){
>   tt.removeTip();
>   oldOnPress.apply(txt);
>}
>}
>
>Hope this helps
>Chris
>
>Subba Chalamalasetty wrote:
>
>  
>
>>Hi,
>>I have rollovers for textinput boxes.When i use the onRollOver,i could
>>get the rollover text(movie clip), but when i click the text input,I
am
>>not able to enter data in the textinput.I wrote a small tooltip class
>>and can somebody please help me to get the focus on textinput.i.e when
>>
>>
>i
>  
>
>>click on the textinput,I should be able to enter data and rollover
>>
>>
>movie
>  
>
>>clip be removed.here is the code
>>
>>
>>
>>class customToolTip {
>>   
>>   private var theTip:MovieClip;
>>   private var tFormat:TextFormat;
>>  
>>   function
>>customToolTip(hex:Number,hex2:Number,colorOfText:Number,heightOfBox:Nu
m
>>
>>
>b
>  
>
>>er,x1:Number,x2:Number,x3:Number) {
>>  
>>  movieLoader 

RE: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Subba Chalamalasetty


I tried this also...still same problem..

Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 4:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

This:

   txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

Should be this:

   txt.onRollOut = txt.onPress = Delegate.create(this,txtOut);

According to the code given.

See if that works,
Chris


Subba Chalamalasetty wrote:

>Hi Chris,
>
>I tried using Delegate and i am still having the same problem.
>I used your code and tried to save the onpress handler,but didn't work
>import mx.utils.Delegate;
>class test {
>private var txt:TextInput;
>private var oldOnPress:Function;
>private var tt:ToolTip;
>private function onLoad(){
>   oldOnPress = txt.onPress;
>   txt.onRollOver = Delegate.create(this, txtOver);
>   txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);
>}
>
>private function txtOver(){
>   tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
>   tt.showTip("Total sales.");
>}
>
>private function txtOut(){
>   tt.removeTip();
>   oldOnPress.apply(txt);
>}
>}
>
>it is still having the same problem.Am I using the right event?.I am
>totally lost and donno y it is not working(I also used TeoToolTip
>component and it was giving me the same problem too).can you help me
>out?
>
>Thanks,
>Subba
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Chris
>Hill
>Sent: Wednesday, August 09, 2006 3:56 PM
>To: Flashcoders mailing list
>Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss
>
>You're overwriting the onPress event on your text field. You need to 
>save your old onPress event before overwriting it, and make sure that
it
>
>is called:
>
>class test {
> private var txt:TextInput;
>
> private function test() {
> }
> 
> private function onLoad() {
>  //save the onPress handler
>  txt.oldOnPress = txt.onPress;
>   txt.onRollOver = function() { 
>  tt = new
>customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
>  tt.showTip("Total sales.");
>   }
>   
>   txt.onRollOut = txt.onPress = function() {
>   tt.removeTip();
>   //call the onPress Handler
>   oldOnPress();
>   }
>
>I don't think my changes will compile, but I hope you get the idea. I 
>would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
>more gracefully handle your handlers. Something like this:
>
>import ascb.util.Proxy;
>class test {
>private var txt:TextInput;
>private var oldOnPress:Function;
>private var tt:ToolTip;
>private function onLoad(){
>   oldOnPress = txt.onPress;
>   txt.onRollOver = Proxy.create(this, txtOver);
>   txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
>}
>
>private function txtOver(){
>   tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
>   tt.showTip("Total sales.");
>}
>
>private function txtOut(){
>   tt.removeTip();
>   oldOnPress.apply(txt);
>}
>}
>
>Hope this helps
>Chris
>
>Subba Chalamalasetty wrote:
>
>  
>
>>Hi,
>>I have rollovers for textinput boxes.When i use the onRollOver,i could
>>get the rollover text(movie clip), but when i click the text input,I
am
>>not able to enter data in the textinput.I wrote a small tooltip class
>>and can somebody please help me to get the focus on textinput.i.e when
>>
>>
>i
>  
>
>>click on the textinput,I should be able to enter data and rollover
>>
>>
>movie
>  
>
>>clip be removed.here is the code
>>
>>
>>
>>class customToolTip {
>>   
>>   private var theTip:MovieClip;
>>   private var tFormat:TextFormat;
>>  
>>   function
>>customToolTip(hex:Number,hex2:Number,colorOfText:Number,heightOfBox:Nu
m
>>
>>
>b
>  
>
>>er,x1:Number,x2:Number,x3:Number) {
>>  
>>  movieLoader = new MovieClipLoader();
>>  movieListener = new Object();
>>  movieLoader.addListener(movieListener);
>>  this.theTip = _root.createEmptyMovieClip("tooltip",
>>_root.getNextHighestDepth());
>>  //this.theTip.createEmptyMovieClip("tooltip",
>>_root.getNextHighestDepth());
>>
>>this.theTip.createTextField("theText",this.theTip.getNextHighestDepth(
)
>>
>>
>,
>  
>
>>3,1,1030,70);
>>  this.theTip.beginFill(hex);
>>  this.theTip.lineStyle(1, hex2, 100);
>>  this.theTip.moveTo(0, 0);
>>  this.theTip.lineTo(x1, 0);
>>  this.theTip.lineTo(x2, -10);
>>  this.theTip.lineTo(x3, 0);
>>  this.theTip.lineTo(205, 0);  // (100,0)
>>  this.theTip.lineTo(205, heightOfBox); // (100,20)
>>   
>>  this.t

Re: [Flashcoders] New Flash based website

2006-08-09 Thread Aaron Buchanan
Hi Tom,

I like the site, environmental are clean and the site responds quickly.

A couple suggestions I have are: use javascript to resize the swf's object
height attribute, so that when your user opens a section that will increase
your stage height beyond the window height, your user will be able to scroll
to see all of the content. Another idea would be to have the content shuffle
to the top, so that I don't have to close something to close something to
close something so see a page. Instead, I would click the main nav button
for it and the current top item would slide down and the item I want to see
will slide up.

All in all, good work. Just tighten down those screws and enjoy not having
to do it again for a while. (im still milking my 04 site, lol.

--
Aaron Buchanan | Flash Developer, Lab-Media | T 909 702 1368


On 8/9/06 1:49 PM, "John Grden" <[EMAIL PROTECTED]> wrote:

> very nice work Tom, I dig the tunes and the site is very clean - what'd you
> use for the tweens?  did you use an animation package?
> 
> On 8/9/06, Tom Jackson <[EMAIL PROTECTED]> wrote:
>> 
>> Hello people, I recently finished a new portfolio site for my own work and
>> is entirely flash based using all manner of xml , mysql and other fancy
>> techie geekery, would love it if you wouldn't mind checking it out, see
>> what
>> you think :)
>> 
>> http://www.freshcut.org is the url
>> 
>> Cheers,
>> 
>> Tom
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/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] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Chris Hill

This:

  txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);

Should be this:

  txt.onRollOut = txt.onPress = Delegate.create(this,txtOut);

According to the code given.

See if that works,
Chris


Subba Chalamalasetty wrote:


Hi Chris,

I tried using Delegate and i am still having the same problem.
I used your code and tried to save the onpress handler,but didn't work
import mx.utils.Delegate;
class test {
   private var txt:TextInput;
   private var oldOnPress:Function;
   private var tt:ToolTip;
   private function onLoad(){
  oldOnPress = txt.onPress;
  txt.onRollOver = Delegate.create(this, txtOver);
  txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);
   }

   private function txtOver(){
  tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip("Total sales.");
   }

   private function txtOut(){
  tt.removeTip();
  oldOnPress.apply(txt);
   }
}

it is still having the same problem.Am I using the right event?.I am
totally lost and donno y it is not working(I also used TeoToolTip
component and it was giving me the same problem too).can you help me
out?

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 3:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

You're overwriting the onPress event on your text field. You need to 
save your old onPress event before overwriting it, and make sure that it


is called:

class test {
private var txt:TextInput;

private function test() {
}

private function onLoad() {
   //save the onPress handler
   txt.oldOnPress = txt.onPress;
  txt.onRollOver = function() { 
 tt = new

customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
 tt.showTip("Total sales.");
  }
  
  txt.onRollOut = txt.onPress = function() {

  tt.removeTip();
//call the onPress Handler
  oldOnPress();
  }

I don't think my changes will compile, but I hope you get the idea. I 
would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
more gracefully handle your handlers. Something like this:


import ascb.util.Proxy;
class test {
   private var txt:TextInput;
   private var oldOnPress:Function;
   private var tt:ToolTip;
   private function onLoad(){
  oldOnPress = txt.onPress;
  txt.onRollOver = Proxy.create(this, txtOver);
  txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
   }

   private function txtOver(){
  tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip("Total sales.");
   }

   private function txtOut(){
  tt.removeTip();
  oldOnPress.apply(txt);
   }
}

Hope this helps
Chris

Subba Chalamalasetty wrote:

 


Hi,
I have rollovers for textinput boxes.When i use the onRollOver,i could
get the rollover text(movie clip), but when i click the text input,I am
not able to enter data in the textinput.I wrote a small tooltip class
and can somebody please help me to get the focus on textinput.i.e when
   


i
 


click on the textinput,I should be able to enter data and rollover
   


movie
 


clip be removed.here is the code



class customToolTip {
  
  private var theTip:MovieClip;

  private var tFormat:TextFormat;
 
  function

customToolTip(hex:Number,hex2:Number,colorOfText:Number,heightOfBox:Num
   


b
 


er,x1:Number,x2:Number,x3:Number) {
 
 movieLoader = new MovieClipLoader();

 movieListener = new Object();
 movieLoader.addListener(movieListener);
 this.theTip = _root.createEmptyMovieClip("tooltip",
_root.getNextHighestDepth());
 //this.theTip.createEmptyMovieClip("tooltip",
_root.getNextHighestDepth());

this.theTip.createTextField("theText",this.theTip.getNextHighestDepth()
   


,
 


3,1,1030,70);
 this.theTip.beginFill(hex);
 this.theTip.lineStyle(1, hex2, 100);
 this.theTip.moveTo(0, 0);
 this.theTip.lineTo(x1, 0);
 this.theTip.lineTo(x2, -10);
 this.theTip.lineTo(x3, 0);
 this.theTip.lineTo(205, 0);  // (100,0)
 this.theTip.lineTo(205, heightOfBox); // (100,20)
  
 this.theTip.lineTo(0, heightOfBox);   // (0,20)
 this.theTip.lineTo(0, 0);// (0,0) 
 this.theTip.endFill();

 this.theTip._visible = false;
 this.theTip.theText.selectable = false;
 this.tFormat = new TextFormat();
 this.tFormat.font = "Arial";
 this.tFormat.size = 9;
 this.tFormat.color = colorOfText; 
 this.tFormat.align = "center";

 this.tFormat.italic = true;
 this.theTip.theText.setNewTextFormat(this.tFormat);
  }
 

RE: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Subba Chalamalasetty

Hey Chris,

I forgot to mention a strange/weired problem with these rollovers. I
wasn't using onRelease in my old code i.e

txt.onRollOut = function() {
tt.removeTip();
}

It never worked for the 1st time.But if I click a 'dynamic text'box and
come back click on the textinput, it used to work fine as I was able to
enter data in textinput.But again if I go and click a button or
radiobutton and come to back to change data,it wont work(again I have to
click on dynamic text).This is a very strange problem as everytime I
click a button or someother thing(other than textinput boxes) it is
giving me a problem. I have no idea about this problem...

Subba



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 3:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

You're overwriting the onPress event on your text field. You need to 
save your old onPress event before overwriting it, and make sure that it

is called:

class test {
 private var txt:TextInput;

 private function test() {
 }
 
 private function onLoad() {
   //save the onPress handler
   txt.oldOnPress = txt.onPress;
   txt.onRollOver = function() { 
  tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip("Total sales.");
   }
   
   txt.onRollOut = txt.onPress = function() {
   tt.removeTip();
//call the onPress Handler
   oldOnPress();
   }

I don't think my changes will compile, but I hope you get the idea. I 
would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
more gracefully handle your handlers. Something like this:

import ascb.util.Proxy;
class test {
private var txt:TextInput;
private var oldOnPress:Function;
private var tt:ToolTip;
private function onLoad(){
   oldOnPress = txt.onPress;
   txt.onRollOver = Proxy.create(this, txtOver);
   txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
}

private function txtOver(){
   tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
   tt.showTip("Total sales.");
}

private function txtOut(){
   tt.removeTip();
   oldOnPress.apply(txt);
}
}

Hope this helps
Chris

Subba Chalamalasetty wrote:

>Hi,
>I have rollovers for textinput boxes.When i use the onRollOver,i could
>get the rollover text(movie clip), but when i click the text input,I am
>not able to enter data in the textinput.I wrote a small tooltip class
>and can somebody please help me to get the focus on textinput.i.e when
i
>click on the textinput,I should be able to enter data and rollover
movie
>clip be removed.here is the code
>
> 
>
>class customToolTip {
>
>private var theTip:MovieClip;
>private var tFormat:TextFormat;
>   
>function
>customToolTip(hex:Number,hex2:Number,colorOfText:Number,heightOfBox:Num
b
>er,x1:Number,x2:Number,x3:Number) {
>   
>   movieLoader = new MovieClipLoader();
>   movieListener = new Object();
>   movieLoader.addListener(movieListener);
>   this.theTip = _root.createEmptyMovieClip("tooltip",
>_root.getNextHighestDepth());
>   //this.theTip.createEmptyMovieClip("tooltip",
>_root.getNextHighestDepth());
> 
>this.theTip.createTextField("theText",this.theTip.getNextHighestDepth()
,
>3,1,1030,70);
>   this.theTip.beginFill(hex);
>   this.theTip.lineStyle(1, hex2, 100);
>   this.theTip.moveTo(0, 0);
>   this.theTip.lineTo(x1, 0);
>   this.theTip.lineTo(x2, -10);
>   this.theTip.lineTo(x3, 0);
>   this.theTip.lineTo(205, 0);  // (100,0)
>   this.theTip.lineTo(205, heightOfBox); // (100,20)
>
>   this.theTip.lineTo(0, heightOfBox);   // (0,20)
>   this.theTip.lineTo(0, 0);// (0,0) 
>   this.theTip.endFill();
>   this.theTip._visible = false;
>   this.theTip.theText.selectable = false;
>   this.tFormat = new TextFormat();
>   this.tFormat.font = "Arial";
>   this.tFormat.size = 9;
>   this.tFormat.color = colorOfText; 
>   this.tFormat.align = "center";
>   this.tFormat.italic = true;
>   this.theTip.theText.setNewTextFormat(this.tFormat);
>}
>
>public function showTip(theTextInput:String):Void {
>   
>   this.theTip.theText.text = theTextInput;
>   
>   trace(this.theTip.theText.text);
>   
>   this.theTip._x = _root._xmouse;
>   this.theTip._y = _root._ymouse+10;
>   this.theTip._visible = true;
>   this.

RE: [Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Subba Chalamalasetty

Hi Chris,

I tried using Delegate and i am still having the same problem.
I used your code and tried to save the onpress handler,but didn't work
import mx.utils.Delegate;
class test {
private var txt:TextInput;
private var oldOnPress:Function;
private var tt:ToolTip;
private function onLoad(){
   oldOnPress = txt.onPress;
   txt.onRollOver = Delegate.create(this, txtOver);
   txt.onRollOut = txt.onPress = Delegate.create(this,txtPress);
}

private function txtOver(){
   tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
   tt.showTip("Total sales.");
}

private function txtOut(){
   tt.removeTip();
   oldOnPress.apply(txt);
}
}

it is still having the same problem.Am I using the right event?.I am
totally lost and donno y it is not working(I also used TeoToolTip
component and it was giving me the same problem too).can you help me
out?

Thanks,
Subba

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Hill
Sent: Wednesday, August 09, 2006 3:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

You're overwriting the onPress event on your text field. You need to 
save your old onPress event before overwriting it, and make sure that it

is called:

class test {
 private var txt:TextInput;

 private function test() {
 }
 
 private function onLoad() {
   //save the onPress handler
   txt.oldOnPress = txt.onPress;
   txt.onRollOver = function() { 
  tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip("Total sales.");
   }
   
   txt.onRollOut = txt.onPress = function() {
   tt.removeTip();
//call the onPress Handler
   oldOnPress();
   }

I don't think my changes will compile, but I hope you get the idea. I 
would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
more gracefully handle your handlers. Something like this:

import ascb.util.Proxy;
class test {
private var txt:TextInput;
private var oldOnPress:Function;
private var tt:ToolTip;
private function onLoad(){
   oldOnPress = txt.onPress;
   txt.onRollOver = Proxy.create(this, txtOver);
   txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
}

private function txtOver(){
   tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
   tt.showTip("Total sales.");
}

private function txtOut(){
   tt.removeTip();
   oldOnPress.apply(txt);
}
}

Hope this helps
Chris

Subba Chalamalasetty wrote:

>Hi,
>I have rollovers for textinput boxes.When i use the onRollOver,i could
>get the rollover text(movie clip), but when i click the text input,I am
>not able to enter data in the textinput.I wrote a small tooltip class
>and can somebody please help me to get the focus on textinput.i.e when
i
>click on the textinput,I should be able to enter data and rollover
movie
>clip be removed.here is the code
>
> 
>
>class customToolTip {
>
>private var theTip:MovieClip;
>private var tFormat:TextFormat;
>   
>function
>customToolTip(hex:Number,hex2:Number,colorOfText:Number,heightOfBox:Num
b
>er,x1:Number,x2:Number,x3:Number) {
>   
>   movieLoader = new MovieClipLoader();
>   movieListener = new Object();
>   movieLoader.addListener(movieListener);
>   this.theTip = _root.createEmptyMovieClip("tooltip",
>_root.getNextHighestDepth());
>   //this.theTip.createEmptyMovieClip("tooltip",
>_root.getNextHighestDepth());
> 
>this.theTip.createTextField("theText",this.theTip.getNextHighestDepth()
,
>3,1,1030,70);
>   this.theTip.beginFill(hex);
>   this.theTip.lineStyle(1, hex2, 100);
>   this.theTip.moveTo(0, 0);
>   this.theTip.lineTo(x1, 0);
>   this.theTip.lineTo(x2, -10);
>   this.theTip.lineTo(x3, 0);
>   this.theTip.lineTo(205, 0);  // (100,0)
>   this.theTip.lineTo(205, heightOfBox); // (100,20)
>
>   this.theTip.lineTo(0, heightOfBox);   // (0,20)
>   this.theTip.lineTo(0, 0);// (0,0) 
>   this.theTip.endFill();
>   this.theTip._visible = false;
>   this.theTip.theText.selectable = false;
>   this.tFormat = new TextFormat();
>   this.tFormat.font = "Arial";
>   this.tFormat.size = 9;
>   this.tFormat.color = colorOfText; 
>   this.tFormat.align = "center";
>   this.tFormat.italic = true;
>   this.theTip.theText.setNewTextFormat(this.tFormat);
>}
>
>public function showTip(theTextInput:String):Void {
>   
>   this.theTip.theText.text = theTe

Re: [Flashcoders] Uncompress a gzipped file

2006-08-09 Thread Max

I still haven't figured it out, but I found some things. I wrote a
small class that removes the header and the crc32/length stuff at the
end. Only the remaining data still can't be uncompressed.

So I looked at data compressed with compress() and instantly noticed
that it always begins with a short integer (0x78da). There also seems
to be some significance to the two (possibly four) bytes at the end
but I can't figure it out. Adding 0x78da alone doesn't make it work.

I'm out of ideas, does anybody else have any? The class I wrote is
attached to this email. I really think this would be useful to
everyone, as you could compress any binary file and decompress it
within flash. As far as I can tell there's no way to do this right
now.

On 8/9/06, Max <[EMAIL PROTECTED]> wrote:


It seems your right, I tried removing the header info already, but it looks 
more complex than I thought. I can actually see the original filename in the 
header. After all that experimenting with a hex editor I forgot to actually 
check the file itself. Why is it every time I post on a forum or mailing list 
about a problem I could've always solved it myself but I overlooked something 
obvious?

I'll get right on this. Tomorrow. Thanks Nicolas, this is not the first time 
you saved me.



On 8/9/06, Nicolas Cannasse  < [EMAIL PROTECTED]> wrote:
>   > I'm writing a program that processes a huge 4MB binary file in Flash 9.
> > Thing is, if I compress it (specifically with gzip) I can lower the size to
> > 1.67MB. My problem is that I can't uncompress it using ByteArray's
> > uncompress() feature on the gzipped file.
> >
> > The documentation for compress() says that it uses zlib compression.
> > Zlib is
> > a compression library that is based on gzip. The even use the same
> > algorithim, DEFLATE. I'm sure there's a way to do this.
> >
> > Does anybody have any ideas? Since they're roughly the same it seems like
> > all you'd need is to change some header values, but I can't find anything
> > myself.
>
> There's a GZ header before the DEFLATE stream, see
> http://www.faqs.org/rfcs/rfc1952.html
>
> Nicolas
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
>  http://chattyfig.figleaf.com/mailman/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] FlashRelief TableMaker

2006-08-09 Thread Merrill, Jason
Anyone have any experiences - good or bad - with FlashRelief and their
TableMaker Component?  Anyone know where they are located?

http://www.flashrelief.com

Looks pretty nice for $25.  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 


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

2006-08-09 Thread Chris Hill
You're overwriting the onPress event on your text field. You need to 
save your old onPress event before overwriting it, and make sure that it 
is called:


class test {
private var txt:TextInput;

private function test() {
}

private function onLoad() {
   //save the onPress handler
   txt.oldOnPress = txt.onPress;
  txt.onRollOver = function() { 
 tt = new

customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
 tt.showTip("Total sales.");
  }
  
  txt.onRollOut = txt.onPress = function() {

  tt.removeTip();
//call the onPress Handler
  oldOnPress();
  }

I don't think my changes will compile, but I hope you get the idea. I 
would suggest using the ascb.util.Proxy or mx.util.Delegate class to 
more gracefully handle your handlers. Something like this:


import ascb.util.Proxy;
class test {
   private var txt:TextInput;
   private var oldOnPress:Function;
   private var tt:ToolTip;
   private function onLoad(){
  oldOnPress = txt.onPress;
  txt.onRollOver = Proxy.create(this, txtOver);
  txt.onRollOut = txt.onPress = Proxy.create(this,txtPress);
   }

   private function txtOver(){
  tt = new customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip("Total sales.");
   }

   private function txtOut(){
  tt.removeTip();
  oldOnPress.apply(txt);
   }
}

Hope this helps
Chris

Subba Chalamalasetty wrote:


Hi,
I have rollovers for textinput boxes.When i use the onRollOver,i could
get the rollover text(movie clip), but when i click the text input,I am
not able to enter data in the textinput.I wrote a small tooltip class
and can somebody please help me to get the focus on textinput.i.e when i
click on the textinput,I should be able to enter data and rollover movie
clip be removed.here is the code



class customToolTip {
   
   private var theTip:MovieClip;

   private var tFormat:TextFormat;
  
   function

customToolTip(hex:Number,hex2:Number,colorOfText:Number,heightOfBox:Numb
er,x1:Number,x2:Number,x3:Number) {
  
  movieLoader = new MovieClipLoader();

  movieListener = new Object();
  movieLoader.addListener(movieListener);
  this.theTip = _root.createEmptyMovieClip("tooltip",
_root.getNextHighestDepth());
  //this.theTip.createEmptyMovieClip("tooltip",
_root.getNextHighestDepth());

this.theTip.createTextField("theText",this.theTip.getNextHighestDepth(),
3,1,1030,70);
  this.theTip.beginFill(hex);
  this.theTip.lineStyle(1, hex2, 100);
  this.theTip.moveTo(0, 0);
  this.theTip.lineTo(x1, 0);
  this.theTip.lineTo(x2, -10);
  this.theTip.lineTo(x3, 0);
  this.theTip.lineTo(205, 0);  // (100,0)
  this.theTip.lineTo(205, heightOfBox); // (100,20)
   
  this.theTip.lineTo(0, heightOfBox);   // (0,20)
  this.theTip.lineTo(0, 0);// (0,0) 
  this.theTip.endFill();

  this.theTip._visible = false;
  this.theTip.theText.selectable = false;
  this.tFormat = new TextFormat();
  this.tFormat.font = "Arial";
  this.tFormat.size = 9;
  this.tFormat.color = colorOfText; 
  this.tFormat.align = "center";

  this.tFormat.italic = true;
  this.theTip.theText.setNewTextFormat(this.tFormat);
   }
   
   public function showTip(theTextInput:String):Void {
  
  this.theTip.theText.text = theTextInput;
  
  trace(this.theTip.theText.text);
  
  this.theTip._x = _root._xmouse;

  this.theTip._y = _root._ymouse+10;
  this.theTip._visible = true;
  this.theTip.onMouseMove = function() {
  this._x = _root._xmouse;
  this._y = _root._ymouse+25;
  updateAfterEvent();
  }
   }
   public function removeTip():Void {
  
  delete this.theTip.onEnterFrame;

  this.theTip._visible = false;
  this.theTip.clear();   
   }

}




and here I am using the tooltip class

class test {
private var txt:TextInput;
private function test() {
}

private function onLoad() {
  txt.onRollOver = function() { 
 tt = new

customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
 tt.showTip("Total sales.");
  }
  
  txt.onRollOut = txt.onPress = function() {

  tt.removeTip();
  }



When i click on the textinput,I need to get the focus on textinput and
able to type data in textinput box .Can somebody help me in this...

Thanks,
Subba






Re: [Flashcoders] crossdomain

2006-08-09 Thread Vishal Kapur

Yes, this would need to be configured for every machine where you
intend to run the local swf.  If you have some sort of install script,
you could create a FlashPlayerTrust configuration file to set the
trusted paths (the link in my previous email has details on where that
needs to go, etc).

-- Vishal

On 8/9/06, jcanistrum <[EMAIL PROTECTED]> wrote:

I´m reading but I fell I´m going to have problems since I´d like to have and
app running as an .exe in the desktop loading these banners inside and the
way it was shown there the settings would have to be set for each manchine
the runs, is that true ?

2006/8/9, Vishal Kapur <[EMAIL PROTECTED]>:
>
> crossdomain.xml is not used when loading one swf into another.  Have
> you added the path to your local swf to the Global Settings manager as
> a trusted local swf?  See:
> http://www.adobe.com/devnet/flash/articles/fplayer8_security_04.html
> for details.
>
> -- Vishal
>
> On 8/9/06, jcanistrum <[EMAIL PROTECTED]> wrote:
> > hi All,
> >
> > I´m new to security domain questions
> >
> > I´doing an small test to load content into one loader component, the
> test is
> > runnig in a local machine but try to load an swf from my web site
> > http://www.mvirtual.com.br/flashker/banners/banner0.swf'
> >
> > if you try in the browser it loads fine
> >
> > in web site folder where it resides I have
> >
> > *
> > - 
> > 
> > *
> >
> > the action actioscript for the test is
> >
> > *System.security.allowDomain( "*" );
> >
> > myBt.onRelease = function ()
> > {
> > bannerLoader.contentPath = "
> > http://www.mvirtual.com.br/flashker/banners/banner0.swf";;
> > };*
> >
> > and I get the error
> >
> >  Security Sandbox Violation ***
> > SecurityDomain 'http://www.mvirtual.com.br/flashker/banners/banner0.swf'
> >
> > tried to access incompatible context 'file:///XXX/bannerTest.swf'*
> >
> > What am I doing wrong ?
> >
> > I´m getting confused about the security settings in the local file which
> > tries to load the web content versus those ones in web to be loaded.
> >
> > thanks in advance for any help, ideas, directions
> >
> > --
> > João Carlos
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



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

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


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

2006-08-09 Thread John Grden

very nice work Tom, I dig the tunes and the site is very clean - what'd you
use for the tweens?  did you use an animation package?

On 8/9/06, Tom Jackson <[EMAIL PROTECTED]> wrote:


Hello people, I recently finished a new portfolio site for my own work and
is entirely flash based using all manner of xml , mysql and other fancy
techie geekery, would love it if you wouldn't mind checking it out, see
what
you think :)

http://www.freshcut.org is the url

Cheers,

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

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





--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Accessing a Flash frame label

2006-08-09 Thread Jeff Hindman

Thanks!  Worked like a charm ... I was looking at a Javascript/ColdFusion
code solution. This is much easier ...:)
--Jeff


On 8/9/06, SWF Coder <[EMAIL PROTECTED]> wrote:


Frame labels does NOT become numeric when published to
SWF!

to access frame labels from html, make sure that the
frame label type is set to "Anchor" not to the defualt
"Name", then you can access it using the HTML anchor
style (i.e. http://www.mydomain.com/myMovie.swf#here
where "here" is the frame label 'anchor' name)

Always glad to help.

--- eric dolecki <[EMAIL PROTECTED]> wrote:

> frame labels become numeric when published to SWF,
> so you wouldn't be able
> to do that. However, you could always send in a
> specific variable value, and
> have a function in the SWF look at it, and target
> the mc you want.
>
> On 8/8/06, Jeff Hindman <[EMAIL PROTECTED]> wrote:
> >
> > Hey Flashcoders,
> >
> >   How can I access a specific frame label in a
> Flash movie from an HTML
> > link?  It would look something like this:
> >
> > 
"http://www.mydomain.com/myMovie.swf?label='here'">Click
> me
> >
> > where "here" is the frame label in the SWF.
> >
> > Thanks --
> >
> >   -- Jeff
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the
> archive:
> >
>
http://chattyfig.figleaf.com/mailman/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
>


__
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


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

2006-08-09 Thread James Marsden
Nice - at first I thought the nav was a little counter-intuitive, but
after a bit of playing, realised what you were up to. It's cool.

I have to say it looks a bit overly 'inspired' by www.plat4m.com though

J



> sweet work man~ i love the tweening action! (zeh's mc_tween2.as ?)
>
> one comment should your default state go directly to your news
> section?
>
> cheers & keep it up! curt
>
>
>
>
> On 8/9/06, Tom Jackson <[EMAIL PROTECTED]> wrote:
>> Hello people, I recently finished a new portfolio site for my own work
>> and
>> is entirely flash based using all manner of xml , mysql and other fancy
>> techie geekery, would love it if you wouldn't mind checking it out, see
>> what
>> you think
:)
>>
>> http://www.freshcut.org is the url
>>
>> Cheers,
>>
>> Tom
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/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] message

2006-08-09 Thread Subba Chalamalasetty

I had sent this message to the mailing list and I am not able to understand the 
language in your site. Can you please forward to everyone?

Thanks

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fred Fredchen
Sent: Wednesday, August 09, 2006 2:43 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Tooltip rollovers for textinput..help plss

I had a Homepage www.kaff-community.de.vu send this mail to all people.
Thanks... 
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Fred Fredchen
I had a Homepage www.kaff-community.de.vu send this mail to all people.
Thanks... 
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Tooltip rollovers for textinput..help plss

2006-08-09 Thread Subba Chalamalasetty
Hi,
I have rollovers for textinput boxes.When i use the onRollOver,i could
get the rollover text(movie clip), but when i click the text input,I am
not able to enter data in the textinput.I wrote a small tooltip class
and can somebody please help me to get the focus on textinput.i.e when i
click on the textinput,I should be able to enter data and rollover movie
clip be removed.here is the code

 

class customToolTip {

private var theTip:MovieClip;
private var tFormat:TextFormat;
   
function
customToolTip(hex:Number,hex2:Number,colorOfText:Number,heightOfBox:Numb
er,x1:Number,x2:Number,x3:Number) {
   
   movieLoader = new MovieClipLoader();
   movieListener = new Object();
   movieLoader.addListener(movieListener);
   this.theTip = _root.createEmptyMovieClip("tooltip",
_root.getNextHighestDepth());
   //this.theTip.createEmptyMovieClip("tooltip",
_root.getNextHighestDepth());
 
this.theTip.createTextField("theText",this.theTip.getNextHighestDepth(),
3,1,1030,70);
   this.theTip.beginFill(hex);
   this.theTip.lineStyle(1, hex2, 100);
   this.theTip.moveTo(0, 0);
   this.theTip.lineTo(x1, 0);
   this.theTip.lineTo(x2, -10);
   this.theTip.lineTo(x3, 0);
   this.theTip.lineTo(205, 0);  // (100,0)
   this.theTip.lineTo(205, heightOfBox); // (100,20)

   this.theTip.lineTo(0, heightOfBox);   // (0,20)
   this.theTip.lineTo(0, 0);// (0,0) 
   this.theTip.endFill();
   this.theTip._visible = false;
   this.theTip.theText.selectable = false;
   this.tFormat = new TextFormat();
   this.tFormat.font = "Arial";
   this.tFormat.size = 9;
   this.tFormat.color = colorOfText; 
   this.tFormat.align = "center";
   this.tFormat.italic = true;
   this.theTip.theText.setNewTextFormat(this.tFormat);
}

public function showTip(theTextInput:String):Void {
   
   this.theTip.theText.text = theTextInput;
   
   trace(this.theTip.theText.text);
   
   this.theTip._x = _root._xmouse;
   this.theTip._y = _root._ymouse+10;
   this.theTip._visible = true;
   this.theTip.onMouseMove = function() {
   this._x = _root._xmouse;
   this._y = _root._ymouse+25;
   updateAfterEvent();
   }
}
public function removeTip():Void {
   
   delete this.theTip.onEnterFrame;
   this.theTip._visible = false;
   this.theTip.clear();   
}
}
 

 

and here I am using the tooltip class

class test {
 private var txt:TextInput;
 private function test() {
 }
 
 private function onLoad() {
   txt.onRollOver = function() { 
  tt = new
customToolTip(0xE5E5E5,0x022954,0x022954,20,10,15,20);
  tt.showTip("Total sales.");
   }
   
   txt.onRollOut = txt.onPress = function() {
   tt.removeTip();
   }

 

When i click on the textinput,I need to get the focus on textinput and
able to type data in textinput box .Can somebody help me in this...

Thanks,
Subba

 

 

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

2006-08-09 Thread ::: curdiss

sweet work man~ i love the tweening action! (zeh's mc_tween2.as ?)

one comment should your default state go directly to your news section?

cheers & keep it up! curt




On 8/9/06, Tom Jackson <[EMAIL PROTECTED]> wrote:

Hello people, I recently finished a new portfolio site for my own work and
is entirely flash based using all manner of xml , mysql and other fancy
techie geekery, would love it if you wouldn't mind checking it out, see what
you think :)

http://www.freshcut.org is the url

Cheers,

Tom
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Why in the world my class is tracing false?!?!

2006-08-09 Thread jord
It's tracing false because it has never really changed. Your setting the 
attribute 
triggers the watch() method before it gets set. Depending on how you exit from 
watch() will determine if your property gets set or not. That is why it is 
tracing 
false.

Your enterframe is probably not seeing it because you instantiated your class 
in a 
local variable as opposed to a property within your object (in this case, the 
_root 
timeline).

jord
-- Original Message --
From: "Michel Scoz" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
Date:  Wed, 9 Aug 2006 15:22:43 -0300

>I still dont understand what happens that when I change a class attribute to 
>true, and it traces false
>
>Like I mentioned earlier...
>
>And even if I check this class attribute in an EnterFrame event, it will 
>trace as undefined forever
 





Sent via the WebMail system at interactivityunlimited.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] crossdomain

2006-08-09 Thread jcanistrum

I´m reading but I fell I´m going to have problems since I´d like to have and
app running as an .exe in the desktop loading these banners inside and the
way it was shown there the settings would have to be set for each manchine
the runs, is that true ?

2006/8/9, Vishal Kapur <[EMAIL PROTECTED]>:


crossdomain.xml is not used when loading one swf into another.  Have
you added the path to your local swf to the Global Settings manager as
a trusted local swf?  See:
http://www.adobe.com/devnet/flash/articles/fplayer8_security_04.html
for details.

-- Vishal

On 8/9/06, jcanistrum <[EMAIL PROTECTED]> wrote:
> hi All,
>
> I´m new to security domain questions
>
> I´doing an small test to load content into one loader component, the
test is
> runnig in a local machine but try to load an swf from my web site
> http://www.mvirtual.com.br/flashker/banners/banner0.swf'
>
> if you try in the browser it loads fine
>
> in web site folder where it resides I have
>
> *
> - 
> 
> *
>
> the action actioscript for the test is
>
> *System.security.allowDomain( "*" );
>
> myBt.onRelease = function ()
> {
> bannerLoader.contentPath = "
> http://www.mvirtual.com.br/flashker/banners/banner0.swf";;
> };*
>
> and I get the error
>
>  Security Sandbox Violation ***
> SecurityDomain 'http://www.mvirtual.com.br/flashker/banners/banner0.swf'
>
> tried to access incompatible context 'file:///XXX/bannerTest.swf'*
>
> What am I doing wrong ?
>
> I´m getting confused about the security settings in the local file which
> tries to load the web content versus those ones in web to be loaded.
>
> thanks in advance for any help, ideas, directions
>
> --
> João Carlos
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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





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

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


Re: [Flashcoders] Why in the world my class is tracing false?!?!

2006-08-09 Thread Michel Scoz
I still dont understand what happens that when I change a class attribute to 
true, and it traces false


Like I mentioned earlier...

And even if I check this class attribute in an EnterFrame event, it will 
trace as undefined forever


- Original Message - 
From: "jord" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, August 09, 2006 3:03 PM
Subject: Re: [Flashcoders] Why in the world my class is tracing false?!?!



Your watch() method is acting as an interceptor. You are actually checking 
for a
value before it has actually been changed. It will not change until you 
return from

the watch command with a value of true.

You should be using a broadcaster/listener to monitor your parseXML object.

jord
-- Original Message --
From: "Michel Scoz" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
Date:  Wed, 9 Aug 2006 14:06:43 -0300


That's a negative...

Doing this...
this._xml.onLoad = Delegate.create(this, dataLoaded);
this._xml.load(file);

and then tracing in the dataLoaded function like this... the second trace
still returns undefined.

populateArray(this._xml, this.xml_result);
trace(this.loaded);
this.loaded = true;
trace(this.loaded);


- Original Message - 
From: "jord" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, August 09, 2006 1:57 PM
Subject: Re: [Flashcoders] Why in the world my class is tracing false?!?!



Try setting your onLoad property before you execute the load() method.

jord

-- Original Message --
From: "Michel Scoz" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
Date:  Wed, 9 Aug 2006 13:36:12 -0300


Hi all... now i dont get it...
I have a class in AS2 that parses a XML and returns an array of it, but I
dont get why in this !@&¨%!@&¨%! it returns false when loaded!!







Sent via the WebMail system at interactivityunlimited.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








Sent via the WebMail system at interactivityunlimited.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] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
>>You have to take out all the html, amend it (using html) and then
>>re-assign it all to the textfield.

Ok, but even doing that, you would have to use something like
Selection.getCaretIndex() to know where in the Textfield you are so you
can insert the  tag in the right place, but that wouldn't seem to
work because in the tests I did it Selection.getCaretIndex() gives you
the position in the string shown as it is in the textfield, not the HTML
code.  So the index # is way off because of the hidden HTML tags are
counted.  How would you know where in the HTML code (not in the rendered
HTML) the user placed their caret so you can insert the IMG tag?  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 12:25 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>Yes, but you should be writing to the .htmlText property not the .text
>>property as that will then keep all the styling in place via html
code.
>>You have to take out all the html, amend it (using html) and then
>>re-assign it all to the textfield.
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 09 August 2006 16:36
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>
To insert an image you need to process the text as "text". So you
>>first
>>
>>Yes, I understand that, :) but in doing that:
>>
>>"since writing to the text property of a TextField object destroys any
>>custom formatting associated with the field (i.e. the interal style
>>profiles), [you] have to use the TextField.replaceSel() function (p.
889
>>in Moock's ASDG for FlashMX)."
>>
>>So with your TextFormat destroyed, you've sacrificed the user's
ability
>>to continue to format the text in order to add an image.  At least,
>>that's how I understand it.  TextFormat does not have  as an
>>available style.
>>
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
Sent: Wednesday, August 09, 2006 11:02 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion

To insert an image you need to process the text as "text". So you
>>first
need to get the html text (textfield.htmlText), insert the image
using
>>
string functions and then re-insert the text into the textfield.

Because you know where the cursor is in the textfield "text" but not
>>in
the "html" text, you need to insert some kind of marker at the
cursor
position, and then replace that marker inside the html text with the
>>img
tag. That will do the trick.

On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason
<[EMAIL PROTECTED]> wrote:

> OK - follow me here for a fun mental exercise:
>
> I think the major issue I'm running into with this is the
TextFormat
>>
> class relies on the text field's visual formatting described by
the
> Flash Players internal style profiles.  And since the TextFormat
>>class
> does not support an  tag, I cannot use TextFormat to insert
an
> image, I have to insert the  tag as a string. AND SO since
>>writing
> to the text property of a TextField object destroys any custom
> formatting associated with the field (i.e. the interal style
>>profiles),
> I have to use the TextField.replaceSel() function (p. 889 in
Moock's
>>
> ASDG for FlashMX).  AND since the replaceSel() function encodes
the
>  markup, you can't have it render the image!
>
> So it seems to be a catch-22 and I'm screwed using TextFormat and
>>trying
> to let the user also add an inline image.  Unless someone knows
> otherwise, I am going to have to use a movieClip container instead
>>of an
> IMG tag.  That will not be ideal, but it might fly for this
project.
>
> I really wish they would make the HTML editing capabilities of
Flash
>>
> better, but it doesn't look like that will happen any time soon.
>
> Jason Merrill
> Bank of America
> Learning & Organization Effectiveness - Technology Solutions
>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>[mailto:flashcoders-
>>> [EMAIL PROTECTED] On Behalf Of John Grden
>>> Sent: Wednesday, August 09, 2006 9:04 AM
>>> To: Flashcoders mailing list
>>> Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash -
>>follow
> onquestion
>>>
>>> Sorry if you guys already covered this, but is it possible to
use
> SWF's
>>> inst

Re: [Flashcoders] crossdomain

2006-08-09 Thread Vishal Kapur

crossdomain.xml is not used when loading one swf into another.  Have
you added the path to your local swf to the Global Settings manager as
a trusted local swf?  See:
http://www.adobe.com/devnet/flash/articles/fplayer8_security_04.html
for details.

-- Vishal

On 8/9/06, jcanistrum <[EMAIL PROTECTED]> wrote:

hi All,

I´m new to security domain questions

I´doing an small test to load content into one loader component, the test is
runnig in a local machine but try to load an swf from my web site
http://www.mvirtual.com.br/flashker/banners/banner0.swf'

if you try in the browser it loads fine

in web site folder where it resides I have

*
- 

*

the action actioscript for the test is

*System.security.allowDomain( "*" );

myBt.onRelease = function ()
{
bannerLoader.contentPath = "
http://www.mvirtual.com.br/flashker/banners/banner0.swf";;
};*

and I get the error

 Security Sandbox Violation ***
SecurityDomain 'http://www.mvirtual.com.br/flashker/banners/banner0.swf'

tried to access incompatible context 'file:///XXX/bannerTest.swf'*

What am I doing wrong ?

I´m getting confused about the security settings in the local file which
tries to load the web content versus those ones in web to be loaded.

thanks in advance for any help, ideas, directions

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

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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Why in the world my class is tracing false?!?!

2006-08-09 Thread jord

Your watch() method is acting as an interceptor. You are actually checking for a
value before it has actually been changed. It will not change until you return 
from
the watch command with a value of true.

You should be using a broadcaster/listener to monitor your parseXML object.

jord
-- Original Message --
From: "Michel Scoz" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
Date:  Wed, 9 Aug 2006 14:06:43 -0300

>That's a negative...
>
>Doing this...
>this._xml.onLoad = Delegate.create(this, dataLoaded);
>this._xml.load(file);
>
>and then tracing in the dataLoaded function like this... the second trace 
>still returns undefined.
>
>populateArray(this._xml, this.xml_result);
>trace(this.loaded);
>this.loaded = true;
>trace(this.loaded);
>
>
>- Original Message -
>From: "jord" <[EMAIL PROTECTED]>
>To: "Flashcoders mailing list" 
>Sent: Wednesday, August 09, 2006 1:57 PM
>Subject: Re: [Flashcoders] Why in the world my class is tracing false?!?!
>
>
>
>Try setting your onLoad property before you execute the load() method.
>
>jord
>
>-- Original Message --
>From: "Michel Scoz" <[EMAIL PROTECTED]>
>Reply-To: Flashcoders mailing list 
>Date:  Wed, 9 Aug 2006 13:36:12 -0300
>
>>Hi all... now i dont get it...
>>I have a class in AS2 that parses a XML and returns an array of it, but I
>>dont get why in this !@&¨%!@&¨%! it returns false when loaded!!
>
>
>
>
>
>
>Sent via the WebMail system at interactivityunlimited.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
>






Sent via the WebMail system at interactivityunlimited.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] Complex Objects via Web services: SOAP (C# .NET)

2006-08-09 Thread Merrill, Jason
FYI 

We have this working now.  It seems it was all things that needed to
change on the C# end.  It was the way he was creating the object - he
needed to make it a public variable.  We were also getting a URL error
message when we tried to call the SaveProject() method he created and
that was because that method in C# was writing a .log file, and it was
trying to write to a place where it didn't have permissions.

We now have been able to read/write complex objects (which include
arrays and properties) back and forth via SOAP/WSDL from Flash to his C#
app in .NET.  Awesome!

Thanks for the insights! 

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] AS3: Stage.scaleMode, Stage.stageWidth and Stage.stageHeight

2006-08-09 Thread Chris McFadyen aka Grayson Carlyle

First question:

Can Stage.stageWidth and Stage.stageHeight not be modified by AS?
Documentation would suggest otherwise, but setting them has no effect.

Second question:

Does Stage.scaleMode = StageScaleMode.NO_SCALE work as intended?
Documentation states "Specifies that the size of the Flash application be
fixed, so that it remains unchanged even as the size of the player window
changes."  However, I find the application to resize itself with the player
window; IDE and browser, and changes the value of stageHeight and
stageWidth.


My intent is to be able to resize an application in code without the browser
window having an affect on size or scale, but the above properties can't
seem to be configured to do that.  Is there another way?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] crossdomain

2006-08-09 Thread jcanistrum

hi All,

I´m new to security domain questions

I´doing an small test to load content into one loader component, the test is
runnig in a local machine but try to load an swf from my web site
http://www.mvirtual.com.br/flashker/banners/banner0.swf'

if you try in the browser it loads fine

in web site folder where it resides I have

*
- 

*

the action actioscript for the test is

*System.security.allowDomain( "*" );

myBt.onRelease = function ()
{
bannerLoader.contentPath = "
http://www.mvirtual.com.br/flashker/banners/banner0.swf";;
};*

and I get the error

 Security Sandbox Violation ***
SecurityDomain 'http://www.mvirtual.com.br/flashker/banners/banner0.swf'

tried to access incompatible context 'file:///XXX/bannerTest.swf'*

What am I doing wrong ?

I´m getting confused about the security settings in the local file which
tries to load the web content versus those ones in web to be loaded.

thanks in advance for any help, ideas, directions

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

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


Re: [Flashcoders] Why in the world my class is tracing false?!?!

2006-08-09 Thread Michel Scoz

That's a negative...

Doing this...
this._xml.onLoad = Delegate.create(this, dataLoaded);
this._xml.load(file);

and then tracing in the dataLoaded function like this... the second trace 
still returns undefined.


populateArray(this._xml, this.xml_result);
trace(this.loaded);
this.loaded = true;
trace(this.loaded);


- Original Message - 
From: "jord" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, August 09, 2006 1:57 PM
Subject: Re: [Flashcoders] Why in the world my class is tracing false?!?!



Try setting your onLoad property before you execute the load() method.

jord

-- Original Message --
From: "Michel Scoz" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
Date:  Wed, 9 Aug 2006 13:36:12 -0300


Hi all... now i dont get it...
I have a class in AS2 that parses a XML and returns an array of it, but I
dont get why in this !@&¨%!@&¨%! it returns false when loaded!!







Sent via the WebMail system at interactivityunlimited.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] Complex Objects via Web services: SOAP (C# .NET)

2006-08-09 Thread Merrill, Jason
By the way, forgot to say thanks for the detailed post Jim!

Found out some more.  This technote explains some things on complex
objects and Webservices, and it appears most of the problems with
Complex objects happen with ColdFusion and Axis servers, not .NET, so I
have hope:   

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19047

"The WebServiceConnector supports simple and complex data types, however
ColdFusion and Axis will generate a connection error based on the
following conditions:  Note: No issues with sending or receiving
complex data types with Flash have been found with .NET web services."

Where your problems with complex objects and WSDL/SOAP with ColdFusion
only or .NET?  I hope it wasn't with .NET for my sake... :) 

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Palmer, Jim
>>Sent: Wednesday, August 09, 2006 12:29 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Complex Objects via Web services: SOAP (C#
.NET)
>>
>>
>>I personally do not trust passing ANY complex objects between
languages via
>>SOAP/WSDL. If you absolutely have to use plain-text XML web service
transports
>>like SOAP and WSDL I would try to use the smallest and most optimal
packet. That
>>leads to honestly using something more along the lines of XMLRPC or
WDDX xml
>>packets. This still is horribly limited (i.e. can't do complex
objects) and still large
>>in size.
>>
>>What I would do is honestly look into getting "Flash Remoting" working
through
>>your .NET server. It's basically a proprietary XML format similar to
SOAP that's in
>>binary format - hence a hell of a lot less data is transferred instead
of a giant
>>plain-text xml packet.
>>
>>I would trust Flash's support for AMF over any other "web service" as
well which
>>might mediate your complex object issues.
>>
>>You mentioned a .net and c# application - similar to ours we're using
a coldfusion
>>backend to instantiate a COM Object from a 3rd party vendor which is
basically
>>an overglorified frontend to ADODB. yay middleware. I still like this
setup
>>because coldfusion/java do a good job instantiating COM objects and I
don't have
>>to worry about a hacked/reverse-engineered AMF module seeing as the
flash
>>remoting gateway is built into coldfusion. At the very least OpenAMF
might be
>>worth a gander.
>>
>>Search for content on the NetDebugger class too, this might help to
try and
>>diagnose the current object coming back as null. There might be an
uncaught
>>onStatus() event that should be triggered.
>>
>>Cheers
>>--
>>Jim Palmer ! Mammoth Web Operations
>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] Behalf
>>> Of Merrill,
>>> Jason
>>> Sent: Wednesday, August 09, 2006 7:07 AM
>>> To: Flashcoders mailing list
>>> Subject: [Flashcoders] Complex Objects via Web services: SOAP
>>> (C# .NET)
>>>
>>>
>>> This is an old thread I started back in May which I am following up
on
>>> with a question.  Muzak had replied to me with this:
>>>
>>> >>If you'll be using webservices that you can control (which it
sounds
>>> like is the
>>> >>case), don't send XML back and forth.
>>> >>When using webservices, you can send Array of Objects back
>>> and forth,
>>> which is
>>> >>alot easier to work with.
>>> >>There should be a list of data type conversions in the docs
>>> somewhere.
>>>
>>> I am using the Web service classes to load in a wsdl from a .NET
>>> developer using C#.  We have the basics working, I can
>>> receive a simple
>>> string from him no problem by calling the SOAP method.  However,
since
>>> Muzak (in the quote above) and the docs say the Web service classes
>>> supports complex object types, we are now trying to read in a
complex
>>> object in Flash.
>>>
>>> The C# developer created a method for me, called GetProject() that
>>> returns a complex object he created (the complex object is simple -
it
>>> just has a property that contains a simple string - i.e.
>>> objProj.Title).
>>> However, when I trace the result on the method, it returns "null".
>>> Neither the C# developer or myself can figure out where we are going
>>> wrong.  Any ideas?   One of us has something wrong with this
"object"
>>> and we're not sure who.
>>>
>>> Also, for a second related question, once I can read the
>>> object in Flash
>>> (it would contain arrays and properties, etc.) - we want to just
send
>>> that object back to the webservice to update the object in C#.  Any
>>> issues with that?  The Help docs only say this about objects:
>>>
>>> Web Service classes > Supported Types > Object Types
>>> Object Types:  Complex Type - ActionScript object composed of
>>> properties
>>> of any supported type
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>> 

RE: [Flashcoders] Complex Objects via Web services: SOAP (C# .NET)

2006-08-09 Thread Merrill, Jason
But Flash Remoting for .NET requires both an install on the server AND a
hefty price tag, right?  Not sure that's gonna fly.  

How does OpenAMF work?  Does that require any server-side install?


Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Palmer, Jim
>>Sent: Wednesday, August 09, 2006 12:29 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Complex Objects via Web services: SOAP (C#
.NET)
>>
>>
>>I personally do not trust passing ANY complex objects between
languages via
>>SOAP/WSDL. If you absolutely have to use plain-text XML web service
transports
>>like SOAP and WSDL I would try to use the smallest and most optimal
packet. That
>>leads to honestly using something more along the lines of XMLRPC or
WDDX xml
>>packets. This still is horribly limited (i.e. can't do complex
objects) and still large
>>in size.
>>
>>What I would do is honestly look into getting "Flash Remoting" working
through
>>your .NET server. It's basically a proprietary XML format similar to
SOAP that's in
>>binary format - hence a hell of a lot less data is transferred instead
of a giant
>>plain-text xml packet.
>>
>>I would trust Flash's support for AMF over any other "web service" as
well which
>>might mediate your complex object issues.
>>
>>You mentioned a .net and c# application - similar to ours we're using
a coldfusion
>>backend to instantiate a COM Object from a 3rd party vendor which is
basically
>>an overglorified frontend to ADODB. yay middleware. I still like this
setup
>>because coldfusion/java do a good job instantiating COM objects and I
don't have
>>to worry about a hacked/reverse-engineered AMF module seeing as the
flash
>>remoting gateway is built into coldfusion. At the very least OpenAMF
might be
>>worth a gander.
>>
>>Search for content on the NetDebugger class too, this might help to
try and
>>diagnose the current object coming back as null. There might be an
uncaught
>>onStatus() event that should be triggered.
>>
>>Cheers
>>--
>>Jim Palmer ! Mammoth Web Operations
>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] Behalf
>>> Of Merrill,
>>> Jason
>>> Sent: Wednesday, August 09, 2006 7:07 AM
>>> To: Flashcoders mailing list
>>> Subject: [Flashcoders] Complex Objects via Web services: SOAP
>>> (C# .NET)
>>>
>>>
>>> This is an old thread I started back in May which I am following up
on
>>> with a question.  Muzak had replied to me with this:
>>>
>>> >>If you'll be using webservices that you can control (which it
sounds
>>> like is the
>>> >>case), don't send XML back and forth.
>>> >>When using webservices, you can send Array of Objects back
>>> and forth,
>>> which is
>>> >>alot easier to work with.
>>> >>There should be a list of data type conversions in the docs
>>> somewhere.
>>>
>>> I am using the Web service classes to load in a wsdl from a .NET
>>> developer using C#.  We have the basics working, I can
>>> receive a simple
>>> string from him no problem by calling the SOAP method.  However,
since
>>> Muzak (in the quote above) and the docs say the Web service classes
>>> supports complex object types, we are now trying to read in a
complex
>>> object in Flash.
>>>
>>> The C# developer created a method for me, called GetProject() that
>>> returns a complex object he created (the complex object is simple -
it
>>> just has a property that contains a simple string - i.e.
>>> objProj.Title).
>>> However, when I trace the result on the method, it returns "null".
>>> Neither the C# developer or myself can figure out where we are going
>>> wrong.  Any ideas?   One of us has something wrong with this
"object"
>>> and we're not sure who.
>>>
>>> Also, for a second related question, once I can read the
>>> object in Flash
>>> (it would contain arrays and properties, etc.) - we want to just
send
>>> that object back to the webservice to update the object in C#.  Any
>>> issues with that?  The Help docs only say this about objects:
>>>
>>> Web Service classes > Supported Types > Object Types
>>> Object Types:  Complex Type - ActionScript object composed of
>>> properties
>>> of any supported type
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/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
>>
>>Broug

Re: [Flashcoders] Why in the world my class is tracing false?!?!

2006-08-09 Thread jord

Try setting your onLoad property before you execute the load() method.

jord

-- Original Message --
From: "Michel Scoz" <[EMAIL PROTECTED]>
Reply-To: Flashcoders mailing list 
Date:  Wed, 9 Aug 2006 13:36:12 -0300

>Hi all... now i dont get it...
>I have a class in AS2 that parses a XML and returns an array of it, but I 
>dont get why in this !@&¨%!@&¨%! it returns false when loaded!!






Sent via the WebMail system at interactivityunlimited.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] Why in the world my class is tracing false?!?!

2006-08-09 Thread Michel Scoz

By the way

My previous checkLoad function is wrong... this one is ok:

function checkLoad(dx, oldVal, newVal)
{
if(newVal)
{
 trace(xml_file.loaded);
 trace(xml);
 xml = xml_file.getXML();
 trace(xml);
 trace(xml_file.loaded);
}
}

- Original Message - 
From: "Michel Scoz" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Wednesday, August 09, 2006 1:36 PM
Subject: [Flashcoders] Why in the world my class is tracing false?!?!



Hi all... now i dont get it...
I have a class in AS2 that parses a XML and returns an array of it, but I 
dont get why in this !@&¨%!@&¨%! it returns false when loaded!!


I have this var...
public  var loaded:Boolean;

In class Constructor I have this...
this.loaded = false;

Then Ii do in my FLA:
trace(xml_file.loaded) // returns false, witch is OK

After my class populates the array with the XML content it changes this 
'loaded' boolean var like this:

this.loaded = true;

Then i do in my FLA it returns UNDEFINED just after any change I do this 
var..


Please help, I'm clueless on this one
Try yourself:

parseXML.as
--
import mx.utils.Delegate;

class parseXML
{
//attributes
private var _xml:XML;
private var xml_result:Array = new Array();
public  var loaded:Boolean;

//constructor
public function parseXML(file:String)
{
 this._xml = new XML();
 this._xml.ignoreWhite = true;
 this._xml.load(file);
 this._xml.onLoad = Delegate.create(this, dataLoaded);
 this.loaded = false;
}

// Verify if the XML was loaded or not
private function dataLoaded(sucess:Boolean):Void
{
 if (sucess)
 {
  populateArray(this._xml, this.xml_result);
  this.loaded = true;
 } else
 {
  trace("invalid xml file");
 }
}

// Populates an array with the contents of the XML
private function populateArray(localXML, array):Void
{
 var i:Number;
 if(localXML.childNodes[0].nodeValue != null)
 {
  array.push(localXML.childNodes[0].nodeValue);
 } else
 {
  for(i = 0; i < localXML.childNodes.length; i++)
  {
   array[i] = new Array();
   populateArray(localXML.childNodes[i], array[i]);
  }
 }
}

// Returns the populated array
public function getXML():Array
{
 return this.xml_result;
}
}
// end
===

FLA file


stop();

var xml:Array = new Array();
var xml_file:parseXML = new parseXML("xml.xml");

fscommand("allowscale", false);

xml_file.watch("loaded", checkLoad);

function checkLoad(dx, oldVal, newVal)
{
if(newVal)
{
 trace(xml_file.loaded);
 trace(xml);
 xml = xml_file.getXML();
 trace(xml);
 trace(xml_file.getLoaded());
}
}
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Why in the world my class is tracing false?!?!

2006-08-09 Thread Michel Scoz

Hi all... now i dont get it...
I have a class in AS2 that parses a XML and returns an array of it, but I 
dont get why in this !@&¨%!@&¨%! it returns false when loaded!!


I have this var...
public  var loaded:Boolean;

In class Constructor I have this...
this.loaded = false;

Then Ii do in my FLA:
trace(xml_file.loaded) // returns false, witch is OK

After my class populates the array with the XML content it changes this 
'loaded' boolean var like this:

this.loaded = true;

Then i do in my FLA it returns UNDEFINED just after any change I do this 
var..


Please help, I'm clueless on this one
Try yourself:

parseXML.as
--
import mx.utils.Delegate;

class parseXML
{
//attributes
private var _xml:XML;
private var xml_result:Array = new Array();
public  var loaded:Boolean;

//constructor
public function parseXML(file:String)
{
 this._xml = new XML();
 this._xml.ignoreWhite = true;
 this._xml.load(file);
 this._xml.onLoad = Delegate.create(this, dataLoaded);
 this.loaded = false;
}

// Verify if the XML was loaded or not
private function dataLoaded(sucess:Boolean):Void
{
 if (sucess)
 {
  populateArray(this._xml, this.xml_result);
  this.loaded = true;
 } else
 {
  trace("invalid xml file");
 }
}

// Populates an array with the contents of the XML
private function populateArray(localXML, array):Void
{
 var i:Number;
 if(localXML.childNodes[0].nodeValue != null)
 {
  array.push(localXML.childNodes[0].nodeValue);
 } else
 {
  for(i = 0; i < localXML.childNodes.length; i++)
  {
   array[i] = new Array();
   populateArray(localXML.childNodes[i], array[i]);
  }
 }
}

// Returns the populated array
public function getXML():Array
{
 return this.xml_result;
}
}
// end
===

FLA file


stop();

var xml:Array = new Array();
var xml_file:parseXML = new parseXML("xml.xml");

fscommand("allowscale", false);

xml_file.watch("loaded", checkLoad);

function checkLoad(dx, oldVal, newVal)
{
if(newVal)
{
 trace(xml_file.loaded);
 trace(xml);
 xml = xml_file.getXML();
 trace(xml);
 trace(xml_file.getLoaded());
}
} 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Complex Objects via Web services: SOAP (C# .NET)

2006-08-09 Thread Palmer, Jim

I personally do not trust passing ANY complex objects between languages via 
SOAP/WSDL. If you absolutely have to use plain-text XML web service transports 
like SOAP and WSDL I would try to use the smallest and most optimal packet. 
That leads to honestly using something more along the lines of XMLRPC or WDDX 
xml packets. This still is horribly limited (i.e. can't do complex objects) and 
still large in size.

What I would do is honestly look into getting "Flash Remoting" working through 
your .NET server. It's basically a proprietary XML format similar to SOAP 
that's in binary format - hence a hell of a lot less data is transferred 
instead of a giant plain-text xml packet.

I would trust Flash's support for AMF over any other "web service" as well 
which might mediate your complex object issues.

You mentioned a .net and c# application - similar to ours we're using a 
coldfusion backend to instantiate a COM Object from a 3rd party vendor which is 
basically an overglorified frontend to ADODB. yay middleware. I still like this 
setup because coldfusion/java do a good job instantiating COM objects and I 
don't have to worry about a hacked/reverse-engineered AMF module seeing as the 
flash remoting gateway is built into coldfusion. At the very least OpenAMF 
might be worth a gander.

Search for content on the NetDebugger class too, this might help to try and 
diagnose the current object coming back as null. There might be an uncaught 
onStatus() event that should be triggered.

Cheers
--
Jim Palmer ! Mammoth Web Operations

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf 
> Of Merrill,
> Jason
> Sent: Wednesday, August 09, 2006 7:07 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Complex Objects via Web services: SOAP 
> (C# .NET)
> 
> 
> This is an old thread I started back in May which I am following up on
> with a question.  Muzak had replied to me with this:
> 
> >>If you'll be using webservices that you can control (which it sounds
> like is the
> >>case), don't send XML back and forth.
> >>When using webservices, you can send Array of Objects back 
> and forth,
> which is
> >>alot easier to work with.
> >>There should be a list of data type conversions in the docs 
> somewhere.
> 
> I am using the Web service classes to load in a wsdl from a .NET
> developer using C#.  We have the basics working, I can 
> receive a simple
> string from him no problem by calling the SOAP method.  However, since
> Muzak (in the quote above) and the docs say the Web service classes
> supports complex object types, we are now trying to read in a complex
> object in Flash.  
> 
> The C# developer created a method for me, called GetProject() that
> returns a complex object he created (the complex object is simple - it
> just has a property that contains a simple string - i.e. 
> objProj.Title).
> However, when I trace the result on the method, it returns "null".
> Neither the C# developer or myself can figure out where we are going
> wrong.  Any ideas?   One of us has something wrong with this "object"
> and we're not sure who.
> 
> Also, for a second related question, once I can read the 
> object in Flash
> (it would contain arrays and properties, etc.) - we want to just send
> that object back to the webservice to update the object in C#.  Any
> issues with that?  The Help docs only say this about objects:
> 
> Web Service classes > Supported Types > Object Types
> Object Types:  Complex Type - ActionScript object composed of 
> properties
> of any supported type
> 
> Jason Merrill
> Bank of America 
> Learning & Organization Effectiveness - Technology Solutions 
>  
>  
>  
>  
>  
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Giles Taylor
Yes, but you should be writing to the .htmlText property not the .text
property as that will then keep all the styling in place via html code.
You have to take out all the html, amend it (using html) and then
re-assign it all to the textfield.

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 09 August 2006 16:36
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

>>To insert an image you need to process the text as "text". So you
first

Yes, I understand that, :) but in doing that:

"since writing to the text property of a TextField object destroys any
custom formatting associated with the field (i.e. the interal style
profiles), [you] have to use the TextField.replaceSel() function (p. 889
in Moock's ASDG for FlashMX)."

So with your TextFormat destroyed, you've sacrificed the user's ability
to continue to format the text in order to add an image.  At least,
that's how I understand it.  TextFormat does not have  as an
available style. 
 

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders- 
>>[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
>>Sent: Wednesday, August 09, 2006 11:02 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>To insert an image you need to process the text as "text". So you
first
>>need to get the html text (textfield.htmlText), insert the image using

>>string functions and then re-insert the text into the textfield.
>>
>>Because you know where the cursor is in the textfield "text" but not
in
>>the "html" text, you need to insert some kind of marker at the cursor 
>>position, and then replace that marker inside the html text with the
img
>>tag. That will do the trick.
>>
>>On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason 
>><[EMAIL PROTECTED]> wrote:
>>
>>> OK - follow me here for a fun mental exercise:
>>>
>>> I think the major issue I'm running into with this is the TextFormat

>>> class relies on the text field's visual formatting described by the 
>>> Flash Players internal style profiles.  And since the TextFormat
class
>>> does not support an  tag, I cannot use TextFormat to insert an 
>>> image, I have to insert the  tag as a string. AND SO since
writing
>>> to the text property of a TextField object destroys any custom 
>>> formatting associated with the field (i.e. the interal style
profiles),
>>> I have to use the TextField.replaceSel() function (p. 889 in Moock's

>>> ASDG for FlashMX).  AND since the replaceSel() function encodes the 
>>>  markup, you can't have it render the image!
>>>
>>> So it seems to be a catch-22 and I'm screwed using TextFormat and
trying
>>> to let the user also add an inline image.  Unless someone knows 
>>> otherwise, I am going to have to use a movieClip container instead
of an
>>> IMG tag.  That will not be ideal, but it might fly for this project.
>>>
>>> I really wish they would make the HTML editing capabilities of Flash

>>> better, but it doesn't look like that will happen any time soon.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of John Grden
> Sent: Wednesday, August 09, 2006 9:04 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>
> Sorry if you guys already covered this, but is it possible to use
>>> SWF's
> instead of bitmaps?
>
> the image tag supports loading of SWF's, and I would think you
*could*
> (meaning, I've not tried it) include onRelease method that handles
the
> removal of said SWF?
>
> On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>
>> >>I would have thought (i.e. I've not tried it) that once the
image
>>> is
>> in
>> >>the textfield that users could just select/delete it as though
it
>> where
>> >>just another piece of text???
>>
>> Nope - well, kind of, that's only partially true.  You cannot
select
>>> the
>> picture itself, but if you select the space character where the
>>> image
>> tag is "invisibly" located and delete that, the IMG tag gets
deleted
>>> as
>> well, thus removing the picture.  So you can do it, but it's not 
>> intuitive to the user on how to find that space and do that,
>>> especially
>> if they forgot where they put it.  But it would be really nice if
it
>> were true that you could select the picture directly.  Unless
>>> someone
>> knows otherwise, but this is what appears to be the case in my
>>> tests.
>>
>> Jason Merrill
>> Bank of America
>> Learning & Organization Effectiveness - Technology 

Re: [Flashcoders] shared library

2006-08-09 Thread jordan robinson
Dan, with a google search I pulled these up, there is also  
documentation in the flash help panel. The only issue I have with  
using shared libraries is that the path to the shared file is very  
difficult to make dynamic if even possible.


http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14767
http://www.informit.com/articles/article.asp?p=102284&rl=1


On Aug 9, 2006, at 5:28 AM, dan wrote:


Hi people
Where can one find docs on how to setup and use a shared library?

10x in advance
dan




Jordan Robinson

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

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


[Flashcoders] New Flash based website

2006-08-09 Thread Tom Jackson

Hello people, I recently finished a new portfolio site for my own work and
is entirely flash based using all manner of xml , mysql and other fancy
techie geekery, would love it if you wouldn't mind checking it out, see what
you think :)

http://www.freshcut.org is the url

Cheers,

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

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


RE: [Flashcoders] HTML in XML

2006-08-09 Thread Ryan Potter
Another way that works pretty well is to do a join on the child nodes.

So your trace would look like this:

trace(newsNode.childNodes[i].childNodes.join(""));

As long as your html is xml compliant ( instead of ) it will
work just fine.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lucy
Thomson
Sent: Wednesday, August 09, 2006 9:56 AM
To: Flashcoders mailing list
Subject: [Flashcoders] HTML in XML

Yep use cdata tags, except I think you have 2 nodes there, so open and
close them within each one. They basically tell flash to treat
everything defined between them as html, so your symbols < and > don't
mess up the xml format.

  


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff
Stearns
Sent: 09 August 2006 15:22
To: Flashcoders mailing list
Subject: Re: [Flashcoders] HTML in XML

you just need to put the html content inside a cdata tag:



On Aug 8, 2006, at 4:15 PM, Burns, John D wrote:

> I'm having a very weird problem and I'm hoping it's something simple
> that I'm overlooking. I have an xml document similar to this:
>
> 
>  Body of the news
> article. http://www.google.com";>Google More body of the
> article  Body of the second article 
>
> The problem I'm having is that on the first article where the link is,
> flash is seeing that as the end of the first node and then it skips to
> the next one. I'm looping over the nodes in news and using this code:
>
> trace(newsNode.childNodes[i].firstChild.nodeValue);
>
> and all I would see for the first record is "Body of the news article"
> and then it goes on to the next one. A client is maintaining news
> through a flat xml file and wants to be able to add links. Am I  
> missing
> something simple? Is there something else I need to do? Please help.
>
> John Burns
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] HTML in XML

2006-08-09 Thread Lucy Thomson
Yep use cdata tags, except I think you have 2 nodes there, so open and
close them within each one. They basically tell flash to treat
everything defined between them as html, so your symbols < and > don't
mess up the xml format.

  


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff
Stearns
Sent: 09 August 2006 15:22
To: Flashcoders mailing list
Subject: Re: [Flashcoders] HTML in XML

you just need to put the html content inside a cdata tag:



On Aug 8, 2006, at 4:15 PM, Burns, John D wrote:

> I'm having a very weird problem and I'm hoping it's something simple
> that I'm overlooking. I have an xml document similar to this:
>
> 
>  Body of the news
> article. http://www.google.com";>Google More body of the
> article  Body of the second article 
>
> The problem I'm having is that on the first article where the link is,
> flash is seeing that as the end of the first node and then it skips to
> the next one. I'm looping over the nodes in news and using this code:
>
> trace(newsNode.childNodes[i].firstChild.nodeValue);
>
> and all I would see for the first record is "Body of the news article"
> and then it goes on to the next one. A client is maintaining news
> through a flat xml file and wants to be able to add links. Am I  
> missing
> something simple? Is there something else I need to do? Please help.
>
> John Burns
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] Flash cant add up!!

2006-08-09 Thread Blumenthal, Peter

It's a simple rounding error between floating point and binary numbers, and
apparent in most (all?) programming languages. Here's a good explanation
from the Python manuakl:

http://docs.python.org/tut/node16.html



Peter Blumenthal
Software Development Manager
Pearson Education
80 Strand, London, WC2R 0RL
Direct Line: +44 (0) 20 7010 2806
Switchboard:  +44 (0) 20 7010 2900


> 
> anyone have any idea why flash does this???
> ___

This email may contain confidential material.  If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and from our network.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Re: quotes in XML

2006-08-09 Thread Mike Britton

Are you using remoting?  Check out AMFPHP: http://www.amfphp.org/

You don't need to use the XML object to send your POST, just to receive it.
Create your XML object after you get your result back.

var my_xml = new XML();my_xml.onLoad = function(success){if (success){trace(
this);}}my_xml.load("yourScript.php");
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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 help in XML and flash

2006-08-09 Thread Rutul Patel

hi people,

i have big question, I have to write XML file from flash,
now i m confuse that which scripting language i use.
so if anybody can tell me about that i really appreciate that,


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

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


Re: [Flashcoders] Flash cant add up!!

2006-08-09 Thread mike cann

oaky great cheers :D

On 09/08/06, Michael Kneib <[EMAIL PROTECTED]> wrote:





http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_13989



Am Mi, 9.08.2006, 16:46, schrieb mike cann:
> Okay, i may be going crazy but slap this on frame one of a flash file
and
>  observe the output:
>
>...
>
> so the res value continues on like that being 0.0996 rather
> than 0.1..
>
>


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
>>To insert an image you need to process the text as "text". So you
first

Yes, I understand that, :) but in doing that:

"since writing to the text property of a TextField object destroys any
custom formatting associated with the field (i.e. the interal style
profiles), [you] have to use the TextField.replaceSel() function (p. 889
in Moock's ASDG for FlashMX)."

So with your TextFormat destroyed, you've sacrificed the user's ability
to continue to format the text in order to add an image.  At least,
that's how I understand it.  TextFormat does not have  as an
available style. 
 

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro
>>Sent: Wednesday, August 09, 2006 11:02 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>To insert an image you need to process the text as "text". So you
first
>>need to get the html text (textfield.htmlText), insert the image using
>>string functions and then re-insert the text into the textfield.
>>
>>Because you know where the cursor is in the textfield "text" but not
in
>>the "html" text, you need to insert some kind of marker at the cursor
>>position, and then replace that marker inside the html text with the
img
>>tag. That will do the trick.
>>
>>On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason
>><[EMAIL PROTECTED]> wrote:
>>
>>> OK - follow me here for a fun mental exercise:
>>>
>>> I think the major issue I'm running into with this is the TextFormat
>>> class relies on the text field's visual formatting described by the
>>> Flash Players internal style profiles.  And since the TextFormat
class
>>> does not support an  tag, I cannot use TextFormat to insert an
>>> image, I have to insert the  tag as a string. AND SO since
writing
>>> to the text property of a TextField object destroys any custom
>>> formatting associated with the field (i.e. the interal style
profiles),
>>> I have to use the TextField.replaceSel() function (p. 889 in Moock's
>>> ASDG for FlashMX).  AND since the replaceSel() function encodes the
>>>  markup, you can't have it render the image!
>>>
>>> So it seems to be a catch-22 and I'm screwed using TextFormat and
trying
>>> to let the user also add an inline image.  Unless someone knows
>>> otherwise, I am going to have to use a movieClip container instead
of an
>>> IMG tag.  That will not be ideal, but it might fly for this project.
>>>
>>> I really wish they would make the HTML editing capabilities of Flash
>>> better, but it doesn't look like that will happen any time soon.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of John Grden
> Sent: Wednesday, August 09, 2006 9:04 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>
> Sorry if you guys already covered this, but is it possible to use
>>> SWF's
> instead of bitmaps?
>
> the image tag supports loading of SWF's, and I would think you
*could*
> (meaning, I've not tried it) include onRelease method that handles
the
> removal of said SWF?
>
> On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>
>> >>I would have thought (i.e. I've not tried it) that once the
image
>>> is
>> in
>> >>the textfield that users could just select/delete it as though
it
>> where
>> >>just another piece of text???
>>
>> Nope - well, kind of, that's only partially true.  You cannot
select
>>> the
>> picture itself, but if you select the space character where the
>>> image
>> tag is "invisibly" located and delete that, the IMG tag gets
deleted
>>> as
>> well, thus removing the picture.  So you can do it, but it's not
>> intuitive to the user on how to find that space and do that,
>>> especially
>> if they forgot where they put it.  But it would be really nice if
it
>> were true that you could select the picture directly.  Unless
>>> someone
>> knows otherwise, but this is what appears to be the case in my
>>> tests.
>>
>> Jason Merrill
>> Bank of America
>> Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
>> >>-Original Message-
>> >>From: [EMAIL PROTECTED]
>>> [mailto:flashcoders-
>> >>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>> >>Sent: Wednesday, August 09, 2006 4:28 AM
>> >>To: Flashcoders mailing list
>> >>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
>>> follow
>> onquestion
>> >>
>> >>I would have thought (i.e. I've not tried it) that once the
image
>>> is
>> in
>> >>the text

Re: [Flashcoders] Flash cant add up!!

2006-08-09 Thread Michael Kneib



http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_13989



Am Mi, 9.08.2006, 16:46, schrieb mike cann:
> Okay, i may be going crazy but slap this on frame one of a flash file and
>  observe the output:
>
>...
>
> so the res value continues on like that being 0.0996 rather
> than 0.1..
>
>


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

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


[Flashcoders] compile AS2 projects for flash player 8 using flex builder...

2006-08-09 Thread Winston Lee
Is it possible to compile AS2 projects for flash player 8 using flex builder
2?

 

Cheers

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Marcelo Volmaro
To insert an image you need to process the text as "text". So you first  
need to get the html text (textfield.htmlText), insert the image using  
string functions and then re-insert the text into the textfield.


Because you know where the cursor is in the textfield "text" but not in  
the "html" text, you need to insert some kind of marker at the cursor  
position, and then replace that marker inside the html text with the img  
tag. That will do the trick.


On Wed, 09 Aug 2006 11:09:37 -0300, Merrill, Jason  
<[EMAIL PROTECTED]> wrote:



OK - follow me here for a fun mental exercise:

I think the major issue I'm running into with this is the TextFormat
class relies on the text field's visual formatting described by the
Flash Players internal style profiles.  And since the TextFormat class
does not support an  tag, I cannot use TextFormat to insert an
image, I have to insert the  tag as a string. AND SO since writing
to the text property of a TextField object destroys any custom
formatting associated with the field (i.e. the interal style profiles),
I have to use the TextField.replaceSel() function (p. 889 in Moock's
ASDG for FlashMX).  AND since the replaceSel() function encodes the
 markup, you can't have it render the image!

So it seems to be a catch-22 and I'm screwed using TextFormat and trying
to let the user also add an inline image.  Unless someone knows
otherwise, I am going to have to use a movieClip container instead of an
IMG tag.  That will not be ideal, but it might fly for this project.

I really wish they would make the HTML editing capabilities of Flash
better, but it doesn't look like that will happen any time soon.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of John Grden
Sent: Wednesday, August 09, 2006 9:04 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


Sorry if you guys already covered this, but is it possible to use

SWF's

instead of bitmaps?

the image tag supports loading of SWF's, and I would think you *could*
(meaning, I've not tried it) include onRelease method that handles the
removal of said SWF?

On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


>>I would have thought (i.e. I've not tried it) that once the image

is

in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???

Nope - well, kind of, that's only partially true.  You cannot select

the

picture itself, but if you select the space character where the

image

tag is "invisibly" located and delete that, the IMG tag gets deleted

as

well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that,

especially

if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless

someone

knows otherwise, but this is what appears to be the case in my

tests.


Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED]

[mailto:flashcoders-

>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 4:28 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

onquestion
>>
>>I would have thought (i.e. I've not tried it) that once the image

is

in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 08 August 2006 17:38
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

>>onquestion
>>
You could scan through the textfield.htmlText value (i.e. the

code)

>>and
relate the selection index in the rendered output to the actual
index
>>in
the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just

running

>>two
counters as I looped through each character in the code, one

counter

counts every character and the other ignores characters that are
part
>>of
a tag.

>>
>>Thanks Giles. That is what I was trying to avoid, especially since

I

>>need to give the user editing capability - so they can add and

remove

>>the tag at any time when editing the text.  Could get messy real

quick

>>and be bug-prone.  I think I might opt instead for keeping images

out

of
>>the HTML altogether, and just use a MovieClip they load content

into

and
>>position.  It won't allow the text to wrap around the image, but

oh

>>well.
>>
>>Thanks for the many responses!
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technol

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Giles Taylor
I know you are trying to avoid it, but I think the only way to go is to
get those counters counting and insert the raw code into the textfields
htmlText property.

And, yes it really does suck!! (don't get me started on superscript and
subscript ;)

Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 09 August 2006 15:10
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

OK - follow me here for a fun mental exercise:

I think the major issue I'm running into with this is the TextFormat
class relies on the text field's visual formatting described by the
Flash Players internal style profiles.  And since the TextFormat class
does not support an  tag, I cannot use TextFormat to insert an
image, I have to insert the  tag as a string. AND SO since writing
to the text property of a TextField object destroys any custom
formatting associated with the field (i.e. the interal style profiles),
I have to use the TextField.replaceSel() function (p. 889 in Moock's
ASDG for FlashMX).  AND since the replaceSel() function encodes the
 markup, you can't have it render the image!

So it seems to be a catch-22 and I'm screwed using TextFormat and trying
to let the user also add an inline image.  Unless someone knows
otherwise, I am going to have to use a movieClip container instead of an
IMG tag.  That will not be ideal, but it might fly for this project.  

I really wish they would make the HTML editing capabilities of Flash
better, but it doesn't look like that will happen any time soon. 

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Calling functions in sequence

2006-08-09 Thread Mike Mountain
You can also store references to functions in an array and call them from the 
array.

FuncArr= []
FuncArr[0]=func0
FuncArr[1]=func1

// call func 1

FuncArr[1]()

// call a load of funcs in sequence
Var len=FuncArr.length
For(var i=0; i -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Andreas Rønning
> Sent: 09 August 2006 15:11
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Calling functions in sequence
> 
> I might be mistaken, but:
> 
> function doAll(){
>   func1();
>   func2();
>   func3();
>   func4();
> }
> 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] how to set the root directory - swf vs html?

2006-08-09 Thread Keith Salisbury

Not sure, but this "might" help...

BASE - ( . or base directory or URL) Specifies the base directory or
URL used to resolve all relative path statements in the Flash Player
movie. This attribute is helpful when your Flash Player movies are
kept in a different directory from your other files.

Used when embedding the swf in html

more info here:

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_12701


On 8/9/06, quinrou . <[EMAIL PROTECTED]> wrote:

cool thx!

On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
> >>swfFolder = _level0._url.substring(0,_level0._url.lastIndexOf("/")) +
> "/";
>
> That looks familiar. ;)
>
> Jason Merrill
> Bank of America
> Learning & Organization Effectiveness - Technology Solutions
>
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:flashcoders-
> >>[EMAIL PROTECTED] On Behalf Of Chris Hill
> >>Sent: Tuesday, August 08, 2006 11:25 AM
> >>To: Flashcoders mailing list
> >>Subject: Re: [Flashcoders] how to set the root directory - swf vs
> html?
> >>
> >>swfFolder = _level0._url.substring(0,_level0._url.lastIndexOf("/")) +
> "/";
> >>
> >>then use this variable to load your data:
> >>
> >>loadMovie(swfFolder + "image.jpg");
> >>
> >>Peace
> >>Chris
> >>
> >>quinrou . wrote:
> >>
> >>> Hi,
> >>>
> >>> My HTML and my flash movie live in 2 different directories. So when
> I
> >>> work
> >>> in the flash IDE my swf can load all its assets but when I try to
> use
> >>> that
> >>> same swf via its HTML page the swf can't find its assets. Because it
> >>> now has
> >>> its root as the html root. I am pretty sure there's a work around to
> >>> define
> >>> the swf directory as the root not the html.
> >>>
> >>> thanks
> >>> seb
> >>> ___
> >>> Flashcoders@chattyfig.figleaf.com
> >>> To change your subscription options or search the archive:
> >>> http://chattyfig.figleaf.com/mailman/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




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

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


[Flashcoders] Flash cant add up!!

2006-08-09 Thread mike cann

Okay, i may be going crazy but slap this on frame one of a flash file and
observe the output:

//

var incrementNum:Number = 0;
var oldNum:Number = 0;
var resultNum:Number =0;

onEnterFrame = function(){gogo();}

function gogo()
{
   oldNum = incrementNum;
   incrementNum += 0.1;
   resultNum = incrementNum - oldNum;

   trace("old: "+oldNum);
   trace("inc: "+incrementNum);
   trace("res: "+resultNum);
   trace("");
}

stop();

//

For those who dont have the time to test it the output follows like this:

//

old: 0
inc: 0.1
res: 0.1

old: 0.1
inc: 0.2
res: 0.1

old: 0.2
inc: 0.3
res: 0.1

old: 0.3
inc: 0.4
res: 0.1

old: 0.4
inc: 0.5
res: 0.1

old: 0.5
inc: 0.6
res: 0.1

old: 0.6
inc: 0.7
res: 0.1

old: 0.7
inc: 0.8
res: 0.1

old: 0.8
inc: 0.9
res: 0.1

old: 0.9
inc: 1
res: 0.1

old: 1
inc: 1.1
res: 0.1

old: 1.1
inc: 1.2
res: 0.1

old: 1.2
inc: 1.3
res: 0.1

old: 1.3
inc: 1.4
res: 0.1

old: 1.4
inc: 1.5
res: 0.1

old: 1.5
inc: 1.6
res: 0.1

old: 1.6
inc: 1.7
res: 0.1

old: 1.7
inc: 1.8
res: 0.1

old: 1.8
inc: 1.9
res: 0.1

old: 1.9
inc: 2
res: 0.0999

old: 2
inc: 2.1
res: 0.1

old: 2.1
inc: 2.2
res: 0.1

old: 2.2
inc: 2.3
res: 0.1

old: 2.3
inc: 2.4
res: 0.1

old: 2.4
inc: 2.5
res: 0.1

old: 2.5
inc: 2.6
res: 0.1

old: 2.6
inc: 2.7
res: 0.1

old: 2.7
inc: 2.8
res: 0.1

old: 2.8
inc: 2.9
res: 0.1

old: 2.9
inc: 3
res: 0.1

old: 3
inc: 3.1
res: 0.1

old: 3.1
inc: 3.2
res: 0.1

old: 3.2
inc: 3.3
res: 0.1

old: 3.3
inc: 3.4
res: 0.1

old: 3.4
inc: 3.5
res: 0.1

old: 3.5
inc: 3.6
res: 0.1

old: 3.6
inc: 3.7
res: 0.1

old: 3.7
inc: 3.8
res: 0.1

old: 3.8
inc: 3.9
res: 0.1

old: 3.9
inc: 4
res: 0.0996

old: 4
inc: 4.1
res: 0.0996

old: 4.1
inc: 4.2
res: 0.0996

old: 4.2
inc: 4.3
res: 0.0996

old: 4.3
inc: 4.4
res: 0.0996

old: 4.4
inc: 4.5
res: 0.0996

old: 4.5
inc: 4.6
res: 0.0996

old: 4.6
inc: 4.7
res: 0.0996

old: 4.7
inc: 4.8
res: 0.0996

old: 4.8
inc: 4.9
res: 0.0996

old: 4.9
inc: 5
res: 0.0996

old: 5
inc: 5.1
res: 0.0996

old: 5.1
inc: 5.2
res: 0.0996

//

so the res value continues on like that being 0.0996 rather than
0.1..

anyone have any idea why flash does this???
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] HTML in XML

2006-08-09 Thread Geoff Stearns

you just need to put the html content inside a cdata tag:



On Aug 8, 2006, at 4:15 PM, Burns, John D wrote:


I'm having a very weird problem and I'm hoping it's something simple
that I'm overlooking. I have an xml document similar to this:


 Body of the news
article. http://www.google.com";>Google More body of the
article  Body of the second article 

The problem I'm having is that on the first article where the link is,
flash is seeing that as the end of the first node and then it skips to
the next one. I'm looping over the nodes in news and using this code:

trace(newsNode.childNodes[i].firstChild.nodeValue);

and all I would see for the first record is "Body of the news article"
and then it goes on to the next one. A client is maintaining news
through a flat xml file and wants to be able to add links. Am I  
missing

something simple? Is there something else I need to do? Please help.

John Burns
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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 to set the root directory - swf vs html?

2006-08-09 Thread quinrou .

cool thx!

On 8/8/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


>>swfFolder = _level0._url.substring(0,_level0._url.lastIndexOf("/")) +
"/";

That looks familiar. ;)

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Chris Hill
>>Sent: Tuesday, August 08, 2006 11:25 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] how to set the root directory - swf vs
html?
>>
>>swfFolder = _level0._url.substring(0,_level0._url.lastIndexOf("/")) +
"/";
>>
>>then use this variable to load your data:
>>
>>loadMovie(swfFolder + "image.jpg");
>>
>>Peace
>>Chris
>>
>>quinrou . wrote:
>>
>>> Hi,
>>>
>>> My HTML and my flash movie live in 2 different directories. So when
I
>>> work
>>> in the flash IDE my swf can load all its assets but when I try to
use
>>> that
>>> same swf via its HTML page the swf can't find its assets. Because it
>>> now has
>>> its root as the html root. I am pretty sure there's a work around to
>>> define
>>> the swf directory as the root not the html.
>>>
>>> thanks
>>> seb
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/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] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
OK - follow me here for a fun mental exercise:

I think the major issue I'm running into with this is the TextFormat
class relies on the text field's visual formatting described by the
Flash Players internal style profiles.  And since the TextFormat class
does not support an  tag, I cannot use TextFormat to insert an
image, I have to insert the  tag as a string. AND SO since writing
to the text property of a TextField object destroys any custom
formatting associated with the field (i.e. the interal style profiles),
I have to use the TextField.replaceSel() function (p. 889 in Moock's
ASDG for FlashMX).  AND since the replaceSel() function encodes the
 markup, you can't have it render the image!

So it seems to be a catch-22 and I'm screwed using TextFormat and trying
to let the user also add an inline image.  Unless someone knows
otherwise, I am going to have to use a movieClip container instead of an
IMG tag.  That will not be ideal, but it might fly for this project.  

I really wish they would make the HTML editing capabilities of Flash
better, but it doesn't look like that will happen any time soon. 

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Wednesday, August 09, 2006 9:04 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>Sorry if you guys already covered this, but is it possible to use
SWF's
>>instead of bitmaps?
>>
>>the image tag supports loading of SWF's, and I would think you *could*
>>(meaning, I've not tried it) include onRelease method that handles the
>>removal of said SWF?
>>
>>On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> >>I would have thought (i.e. I've not tried it) that once the image
is
>>> in
>>> >>the textfield that users could just select/delete it as though it
>>> where
>>> >>just another piece of text???
>>>
>>> Nope - well, kind of, that's only partially true.  You cannot select
the
>>> picture itself, but if you select the space character where the
image
>>> tag is "invisibly" located and delete that, the IMG tag gets deleted
as
>>> well, thus removing the picture.  So you can do it, but it's not
>>> intuitive to the user on how to find that space and do that,
especially
>>> if they forgot where they put it.  But it would be really nice if it
>>> were true that you could select the picture directly.  Unless
someone
>>> knows otherwise, but this is what appears to be the case in my
tests.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> >>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>> >>Sent: Wednesday, August 09, 2006 4:28 AM
>>> >>To: Flashcoders mailing list
>>> >>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>>> >>
>>> >>I would have thought (i.e. I've not tried it) that once the image
is
>>> in
>>> >>the textfield that users could just select/delete it as though it
>>> where
>>> >>just another piece of text???
>>> >>
>>> >>Giles
>>> >>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
>>> >>[mailto:[EMAIL PROTECTED] On Behalf Of
>>> Merrill,
>>> >>Jason
>>> >>Sent: 08 August 2006 17:38
>>> >>To: Flashcoders mailing list
>>> >>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> >>onquestion
>>> >>
>>> You could scan through the textfield.htmlText value (i.e. the
code)
>>> >>and
>>> relate the selection index in the rendered output to the actual
>>> index
>>> >>in
>>> the code, then insert your image code in the textfield.htmlText.
>>> I have done this previously (for a different reason) by just
running
>>> >>two
>>> counters as I looped through each character in the code, one
counter
>>> counts every character and the other ignores characters that are
>>> part
>>> >>of
>>> a tag.
>>> 
>>> >>
>>> >>Thanks Giles. That is what I was trying to avoid, especially since
I
>>> >>need to give the user editing capability - so they can add and
remove
>>> >>the tag at any time when editing the text.  Could get messy real
quick
>>> >>and be bug-prone.  I think I might opt instead for keeping images
out
>>> of
>>> >>the HTML altogether, and just use a MovieClip they load content
into
>>> and
>>> >>position.  It won't allow the text to wrap around the image, but
oh
>>> >>well.
>>> >>
>>> >>Thanks for the many responses!
>>> >>
>>> >>Jason Merrill
>>> >>Bank of America
>>> >>Learning & Organization Effectiveness - Technology Solutions
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> [EMAIL PROTECTED] On Behalf Of Giles Taylor
>>> Sent: Tuesday, August 08, 2006 

[Flashcoders] Re: quotes in XML

2006-08-09 Thread Elie Zananiri

Hi,

I tried the  thing, but
I get the same problem as when I was using urlencode($string).  Flash grabs
the string and automatically decodes it, so when I put it in the XML
constructor, I get an invalid XML string.

About using the XML object directly instead of LoadVars, I don't think it
would work.  I am sending data to a PHP script using POST, which queries a
DB and returns the result as an XML tree.  I can't use the XML class' send
or sendAndLoad methods because these send an XML file to the PHP script
instead of data in the POST array.  Is there another way of using the XML
class directly that I am missing?

The pipe-encoding solution works, but it would be nice to have something a
little more general...

Thanks

On 8/9/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:


Message: 9
Date: Tue, 8 Aug 2006 20:39:31 +0200
From: "Sebastian Wichmann" <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] quotes in XML
To: "Flashcoders mailing list" 
Message-ID: <007c01c6bb19$fd403d60$31ddfea9 @svox>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
   reply-type=response

Hi,

try this:



Flash:
unescape(string);

Regards,
Sebastian Wichmann

-Urspr�ngliche Nachricht-
Von: "Elie Zananiri" <[EMAIL PROTECTED]>
An: "Flashcoders mailing list" 
Gesendet: Dienstag, 8. August 2006 20:28
Betreff: Re: [Flashcoders] quotes in XML


> Thanks, that worked!
>
> I actually XML-encoded the string in PHP using pipes instead of
ampersands
> and then converted the pipes back to ampersand in Flash once the string
> was
> received.  The conversion from XML-encoding to regular characters is
done
> automatically.
>
> **
> in PHP:
> $string = pipe_encode($string);
> echo "&sentStr=".$string."&";
>
> function pipe_encode($str) {
>  $encoded = "";
>
>  // encode each character one at a time
>  for ($i=0; $i < strlen($str); $i++) {
>$currChar = substr($str, $i, 1);
>
>switch ($currChar) {
>  case '<':
>$encoded .= "|lt;";
>break;
>  case '>':
>$encoded .= "|gt;";
>break;
>  case '&':
>$encoded .= "|amp;";
>break;
>  case '\'':
>$encoded .= "|apos;";
>break;
>  case '"':
>$encoded .= "|quot;";
>break;
>  default:
>$encoded .= $currChar;
>}
>  }
>
>  return $encoded;
> }
>
> in Flash:
> var myXML:XML = new XML(loadedString.split("|").join("&"));
> **
>
> On 8/8/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
>>
>> Character substitution, perhaps?
>>
>> Use pipes |  perhaps.
>>
>> Then, in Flash...
>>
>> myLoadedString.split("|").join("\"");
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
>
>
>
> --
> Elie Zananiri
> http://www.prisonerjohn.com
> http://www.digital-spa.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
>



---

Message: 5

Date: Tue, 8 Aug 2006 18:16:58 -0700
From: "David Rorex" <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] quotes in XML
To: "Flashcoders mailing list" 
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 8/8/06, Elie Zananiri <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I have an XML parsing question that I've been trying to solve for a
little
> while now and I can't get it to work.  I have a PHP script that loads
text
> from an SQL db, formats it in an XML string and sends this string back
to
> Flash using the LoadVars.sendAndLoad("script.php") function.  This text
that
> I send can be pretty much anything, including "quotes" and 
and I
> cannot get Flash to read the XML properly.

Wait...is there any particular reason you are using LoadVars instead
of the XML class? I think simply using XML instead would solve your
problem, without any funny hacks.

-David R






--

Message: 10
Date: Tue, 8 Aug 2006 13:37:17 -0500
From: "ryanm" <[EMAIL PROTECTED]>
Subject: Re: [Flashcoders] quotes in XML
To: "Flashcoders mailing list" 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
   reply-type=response

> I actually XML-encoded the string in PHP using pipes instead of
ampersands
> and then converted the pipes back to ampersand in Flash once the string
> was
> received.  The conversio

[Flashcoders] Complex Objects via Web services: SOAP (C# .NET)

2006-08-09 Thread Merrill, Jason
This is an old thread I started back in May which I am following up on
with a question.  Muzak had replied to me with this:

>>If you'll be using webservices that you can control (which it sounds
like is the
>>case), don't send XML back and forth.
>>When using webservices, you can send Array of Objects back and forth,
which is
>>alot easier to work with.
>>There should be a list of data type conversions in the docs somewhere.

I am using the Web service classes to load in a wsdl from a .NET
developer using C#.  We have the basics working, I can receive a simple
string from him no problem by calling the SOAP method.  However, since
Muzak (in the quote above) and the docs say the Web service classes
supports complex object types, we are now trying to read in a complex
object in Flash.  

The C# developer created a method for me, called GetProject() that
returns a complex object he created (the complex object is simple - it
just has a property that contains a simple string - i.e. objProj.Title).
However, when I trace the result on the method, it returns "null".
Neither the C# developer or myself can figure out where we are going
wrong.  Any ideas?   One of us has something wrong with this "object"
and we're not sure who.

Also, for a second related question, once I can read the object in Flash
(it would contain arrays and properties, etc.) - we want to just send
that object back to the webservice to update the object in C#.  Any
issues with that?  The Help docs only say this about objects:

Web Service classes > Supported Types > Object Types
Object Types:  Complex Type - ActionScript object composed of properties
of any supported type

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Calling functions in sequence

2006-08-09 Thread Andreas Rønning

I might be mistaken, but:

function doAll(){
func1();
func2();
func3();
func4();
}

func2 is called once func1 is done, not before or during.
In this way, happily start loading your flv and xml file "at the same 
time". If you want the xml file to load once the flv file has buffered 
or completed playing, that's a different deal but not necessarily more 
complicated if you look into the xml/netstream class event handlers.


- A



Mick G wrote:

You could call the second function from the first (and have a paramater so
it only runs the second function if you send the paramater).

function funct1(runNext){
//do something
 if(runNext){
   funct2();
 }
}

function funct2(){
//do whatever
}

to call only the first function:
funct1();

to call both:
funct1(true);





On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote:



Thank you.  What would I have to change to make is AS2 compatible?

On 8/9/06, eric dolecki <[EMAIL PROTECTED]> wrote:
>
> this is AS3:
>
>
http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/events/Sequence.as 


>
>
> On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote:
> >
> > I am a newbie to flash and I did search flashcoders prior to asking
this
> > question.  My issue is that I have two function that I am trying to
call
> > when a user selects a cell in a datagrid. One function loads a flv
file
> > and
> > the other loads an associated XML file.  These functions work
perfectly
> if
> > I
> > create two separate buttons to execute the function in the UI. I 
would

> > like
> > to be able to have the user select a value in a datagrid and after
they
> > select/cellpress the value execute function one, then after function
one
> > complete execute function two.
> >
> > Any help is greatly appreciated.
> >
> > Matt
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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


--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Marcelo Volmaro
You can use any image type that can be loaded by flash. If you use src="test.swf"> the player will load the swf file as an image. Also as i  
mentioned previously, you can use  and the  
player will show that library item (that of course must be a movieclip  
with a linkage id).


If that movieclip is a "component", the player will attach that component  
into the textarea.


On Wed, 09 Aug 2006 10:27:36 -0300, Merrill, Jason  
<[EMAIL PROTECTED]> wrote:



No, the end user will not have capabilities to create .swfs.  They are
going to be inserting images.  Even still, how would you insert a .swf
with an IMG tag?  I haven't heard of that before. Good to know if you
can.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of John Grden
Sent: Wednesday, August 09, 2006 9:04 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


Sorry if you guys already covered this, but is it possible to use

SWF's

instead of bitmaps?

the image tag supports loading of SWF's, and I would think you *could*
(meaning, I've not tried it) include onRelease method that handles the
removal of said SWF?

On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


>>I would have thought (i.e. I've not tried it) that once the image

is

in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???

Nope - well, kind of, that's only partially true.  You cannot select

the

picture itself, but if you select the space character where the

image

tag is "invisibly" located and delete that, the IMG tag gets deleted

as

well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that,

especially

if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless

someone

knows otherwise, but this is what appears to be the case in my

tests.


Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED]

[mailto:flashcoders-

>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 4:28 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

onquestion
>>
>>I would have thought (i.e. I've not tried it) that once the image

is

in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 08 August 2006 17:38
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

>>onquestion
>>
You could scan through the textfield.htmlText value (i.e. the

code)

>>and
relate the selection index in the rendered output to the actual
index
>>in
the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just

running

>>two
counters as I looped through each character in the code, one

counter

counts every character and the other ignores characters that are
part
>>of
a tag.

>>
>>Thanks Giles. That is what I was trying to avoid, especially since

I

>>need to give the user editing capability - so they can add and

remove

>>the tag at any time when editing the text.  Could get messy real

quick

>>and be bug-prone.  I think I might opt instead for keeping images

out

of
>>the HTML altogether, and just use a MovieClip they load content

into

and
>>position.  It won't allow the text to wrap around the image, but

oh

>>well.
>>
>>Thanks for the many responses!
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
-Original Message-
From: [EMAIL PROTECTED]

[mailto:flashcoders-

[EMAIL PROTECTED] On Behalf Of Giles Taylor
Sent: Tuesday, August 08, 2006 4:41 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -

follow

>>onquestion

I think that replaceSel() acts on the rendered output rather

than

the
code, so it thinks that you want to actually display the text

that

you
>>
entered rather than adding it to the code (hope that makes

sense!)


You could scan through the textfield.htmlText value (i.e. the

code)

>>and
relate the selection index in the rendered output to the actual
index
>>in
the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just

running

>>two
counters as I looped through each character in the code, one

counter

counts every character and the othe

Re: [Flashcoders] Calling functions in sequence

2006-08-09 Thread Mick G

You could call the second function from the first (and have a paramater so
it only runs the second function if you send the paramater).

function funct1(runNext){
//do something
 if(runNext){
   funct2();
 }
}

function funct2(){
//do whatever
}

to call only the first function:
funct1();

to call both:
funct1(true);





On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote:


Thank you.  What would I have to change to make is AS2 compatible?

On 8/9/06, eric dolecki <[EMAIL PROTECTED]> wrote:
>
> this is AS3:
>
>
http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/events/Sequence.as
>
>
> On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote:
> >
> > I am a newbie to flash and I did search flashcoders prior to asking
this
> > question.  My issue is that I have two function that I am trying to
call
> > when a user selects a cell in a datagrid. One function loads a flv
file
> > and
> > the other loads an associated XML file.  These functions work
perfectly
> if
> > I
> > create two separate buttons to execute the function in the UI. I would
> > like
> > to be able to have the user select a value in a datagrid and after
they
> > select/cellpress the value execute function one, then after function
one
> > complete execute function two.
> >
> > Any help is greatly appreciated.
> >
> > Matt
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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: Re: [Flashcoders] Calling functions in sequence

2006-08-09 Thread eric dolecki

Well, take it out of the package declaration, and then rewrite the
class a bit using the AS2 EventDispatcher, etc. If you need help with
that, I might be around later today.


On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote:

Thank you.  What would I have to change to make is AS2 compatible?

On 8/9/06, eric dolecki <[EMAIL PROTECTED]> wrote:
>
> this is AS3:
>
> 
http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/events/Sequence.as
>
>
> On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote:
> >
> > I am a newbie to flash and I did search flashcoders prior to asking this
> > question.  My issue is that I have two function that I am trying to call
> > when a user selects a cell in a datagrid. One function loads a flv file
> > and
> > the other loads an associated XML file.  These functions work perfectly
> if
> > I
> > create two separate buttons to execute the function in the UI. I would
> > like
> > to be able to have the user select a value in a datagrid and after they
> > select/cellpress the value execute function one, then after function one
> > complete execute function two.
> >
> > Any help is greatly appreciated.
> >
> > Matt
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


[Flashcoders] RE: Scrollpane Issue

2006-08-09 Thread Randy Tinfow
Thanks, Bart.  That didn't work, but the problem went away when we set
the textfield's selectable property to false.

Randy Tinfow
IMAGE PLANT

>Have you tried setting your max position like this?
myScrollpane.vPosition = myScrollpane.maxVPosition;<

>>The text displays correctly, but when scrolling, weird
things happen.  Using the mouse wheel, the top couple of lines of text
get lost underneath an image until you scroll back up to the top. If you
scroll with the scrollpane's up and down buttons, the text on the very
bottom of the content clip is never shown...it doesn't scroll far
enough.<<  
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] flash and sessions

2006-08-09 Thread Matthew Ganz
hi.

does anyone have any experience using flash and sessions? specifically, i'm 
trying to get flash to read the jsession id from the http header. 

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

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


Re: [Flashcoders] png load queue

2006-08-09 Thread Mick G

Have you tried using JPGs instead of PNGs just to see if there's a
difference there? I had an animation that was almost twice as fast when I
used JPGs instead of PNGs. Either way, it sounds like a lot of data you're
loading - perhaps it's just on your local machine it's slow because it's
loading the PNGs instantly compared to via a web connection where you'll
have X seconds between each image loading.

On 8/9/06, Howard Nager <[EMAIL PROTECTED]> wrote:


Slow was sloow. But it turned out more to do with my debug window than
anything else. However, I have 24 frames of a 360 spin of a product (x 4+
png each)...and as each frame loads I draw it to the screen. That seems to
be the issue now. Drawing each multilayed frame causes a hicup in whatever
other animation I have going on.

What's odd is that as soon as it has shown a frame on screen it never
slows down again when showing that same frame again. Any suggestions on
this? seems as if it chokes when it has to draw overlapped png files?


-Original Message-
From: [EMAIL PROTECTED] on behalf of Merrill,
Jason
Sent: Wed 8/9/2006 8:40 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] png load queue

>>the load it is super choppy (especially on a mac).
>>
>>I am loading in sequence up to 100 png files - if that makes a
difference.

Well, that's a lot of data - how large is each file?  It seems even a
regular HTML page will slow down on 100 image files...

or how slow is slow?

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Howard Nager
>>Sent: Tuesday, August 08, 2006 6:02 PM
>>To: Flashcoders mailing list; Flashcoders mailing list
>>Subject: [Flashcoders] png load queue
>>
>>I'm having a weird issue where my flash player is performing very very
slowly wile
>>loading a queue of png files. Everything is smooth before and after,
but during
>>the load it is super choppy (especially on a mac).
>>
>>I am loading in sequence up to 100 png files - if that makes a
difference.
>>
>>Any idea why this may be happenening?
>>
>>Help!
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/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] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread julien castelain

hi, maybe i'm OT here but, if you had an mc in the library that had
the 'export for actionscript' setting enabled it can be used in an
HTML file like an image  see
http://nwebb.co.uk/nw_htmlsite/index.php?page=browse_tutorial&tutorial=imagesxml1&part=1

maybe you could use that approach?
cheers

On 8/9/06, Marcelo Volmaro <[EMAIL PROTECTED]> wrote:

In the editor i made, i place the image as a movieclip container that
loads the actual image. Then, i simply attached rollover-rollout events to
make the image "editable"...


On Wed, 09 Aug 2006 09:53:42 -0300, Merrill, Jason
<[EMAIL PROTECTED]> wrote:

>>> I would have thought (i.e. I've not tried it) that once the image is
> in
>>> the textfield that users could just select/delete it as though it
> where
>>> just another piece of text???
>
> Nope - well, kind of, that's only partially true.  You cannot select the
> picture itself, but if you select the space character where the image
> tag is "invisibly" located and delete that, the IMG tag gets deleted as
> well, thus removing the picture.  So you can do it, but it's not
> intuitive to the user on how to find that space and do that, especially
> if they forgot where they put it.  But it would be really nice if it
> were true that you could select the picture directly.  Unless someone
> knows otherwise, but this is what appears to be the case in my tests.
>
> Jason Merrill
> Bank of America
> Learning & Organization Effectiveness - Technology Solutions
>
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>>> [EMAIL PROTECTED] On Behalf Of Giles Taylor
>>> Sent: Wednesday, August 09, 2006 4:28 AM
>>> To: Flashcoders mailing list
>>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
> onquestion
>>>
>>> I would have thought (i.e. I've not tried it) that once the image is
> in
>>> the textfield that users could just select/delete it as though it
> where
>>> just another piece of text???
>>>
>>> Giles
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of
> Merrill,
>>> Jason
>>> Sent: 08 August 2006 17:38
>>> To: Flashcoders mailing list
>>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>> onquestion
>>>
> You could scan through the textfield.htmlText value (i.e. the code)
>>> and
> relate the selection index in the rendered output to the actual
> index
>>> in
> the code, then insert your image code in the textfield.htmlText.
> I have done this previously (for a different reason) by just running
>>> two
> counters as I looped through each character in the code, one counter
> counts every character and the other ignores characters that are
> part
>>> of
> a tag.
>
>>>
>>> Thanks Giles. That is what I was trying to avoid, especially since I
>>> need to give the user editing capability - so they can add and remove
>>> the tag at any time when editing the text.  Could get messy real quick
>>> and be bug-prone.  I think I might opt instead for keeping images out
> of
>>> the HTML altogether, and just use a MovieClip they load content into
> and
>>> position.  It won't allow the text to wrap around the image, but oh
>>> well.
>>>
>>> Thanks for the many responses!
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Giles Taylor
> Sent: Tuesday, August 08, 2006 4:41 AM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>> onquestion
>
> I think that replaceSel() acts on the rendered output rather than
> the
> code, so it thinks that you want to actually display the text that
> you
>>>
> entered rather than adding it to the code (hope that makes sense!)
>
> You could scan through the textfield.htmlText value (i.e. the code)
>>> and
> relate the selection index in the rendered output to the actual
> index
>>> in
> the code, then insert your image code in the textfield.htmlText.
> I have done this previously (for a different reason) by just running
>>> two
> counters as I looped through each character in the code, one counter
> counts every character and the other ignores characters that are
> part
>>> of
> a tag.
>
> Bit of a pain, but I hope it helps,
> Giles
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
>>> Merrill,
> Jason
> Sent: 07 August 2006 23:25
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
> onquestion
>
> Oh, and to follow up with some further information:
>
> It seems to only encode those HTML entities when I use
> TextField.replaceSel().  If I just add the  tag string on to
>

Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Marcelo Volmaro
In the editor i made, i place the image as a movieclip container that  
loads the actual image. Then, i simply attached rollover-rollout events to  
make the image "editable"...



On Wed, 09 Aug 2006 09:53:42 -0300, Merrill, Jason  
<[EMAIL PROTECTED]> wrote:



I would have thought (i.e. I've not tried it) that once the image is

in

the textfield that users could just select/delete it as though it

where

just another piece of text???


Nope - well, kind of, that's only partially true.  You cannot select the
picture itself, but if you select the space character where the image
tag is "invisibly" located and delete that, the IMG tag gets deleted as
well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that, especially
if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless someone
knows otherwise, but this is what appears to be the case in my tests.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions


-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Giles Taylor
Sent: Wednesday, August 09, 2006 4:28 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


I would have thought (i.e. I've not tried it) that once the image is

in

the textfield that users could just select/delete it as though it

where

just another piece of text???

Giles

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

Merrill,

Jason
Sent: 08 August 2006 17:38
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion


You could scan through the textfield.htmlText value (i.e. the code)

and

relate the selection index in the rendered output to the actual

index

in

the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running

two

counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are

part

of

a tag.



Thanks Giles. That is what I was trying to avoid, especially since I
need to give the user editing capability - so they can add and remove
the tag at any time when editing the text.  Could get messy real quick
and be bug-prone.  I think I might opt instead for keeping images out

of

the HTML altogether, and just use a MovieClip they load content into

and

position.  It won't allow the text to wrap around the image, but oh
well.

Thanks for the many responses!

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions







-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Giles Taylor
Sent: Tuesday, August 08, 2006 4:41 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow

onquestion


I think that replaceSel() acts on the rendered output rather than

the

code, so it thinks that you want to actually display the text that

you



entered rather than adding it to the code (hope that makes sense!)

You could scan through the textfield.htmlText value (i.e. the code)

and

relate the selection index in the rendered output to the actual

index

in

the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running

two

counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are

part

of

a tag.

Bit of a pain, but I hope it helps,
Giles

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

Merrill,

Jason
Sent: 07 August 2006 23:25
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

Oh, and to follow up with some further information:

It seems to only encode those HTML entities when I use
TextField.replaceSel().  If I just add the  tag string on to

the

htmltext field value, it works:

//works:
test_txt.htmlText += "";

//fails - shows literal text, and encodes entities:
test_txt.replaceSel("");

Am I left with splitting the string in two, inserting the  tag,

and

re-assembling the string?  Or is there a way to get replaceSel() to

work

with HTML tags?

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions







-Original Message-
From: [EMAIL PROTECTED]

[mailto:flashcoders-



[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Monday, August 07, 2006 5:55 PM
To: Flashcoders mailing list
Subject: [Flashcoders] WSIWYG HTML text editor in Flash - follow

on

question


Getting back to this question I had back on Aug 1, thanks for the

ideas.

I've built a basic HTML text editor in Flas

RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
No, the end user will not have capabilities to create .swfs.  They are
going to be inserting images.  Even still, how would you insert a .swf
with an IMG tag?  I haven't heard of that before. Good to know if you
can.  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of John Grden
>>Sent: Wednesday, August 09, 2006 9:04 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>Sorry if you guys already covered this, but is it possible to use
SWF's
>>instead of bitmaps?
>>
>>the image tag supports loading of SWF's, and I would think you *could*
>>(meaning, I've not tried it) include onRelease method that handles the
>>removal of said SWF?
>>
>>On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> >>I would have thought (i.e. I've not tried it) that once the image
is
>>> in
>>> >>the textfield that users could just select/delete it as though it
>>> where
>>> >>just another piece of text???
>>>
>>> Nope - well, kind of, that's only partially true.  You cannot select
the
>>> picture itself, but if you select the space character where the
image
>>> tag is "invisibly" located and delete that, the IMG tag gets deleted
as
>>> well, thus removing the picture.  So you can do it, but it's not
>>> intuitive to the user on how to find that space and do that,
especially
>>> if they forgot where they put it.  But it would be really nice if it
>>> were true that you could select the picture directly.  Unless
someone
>>> knows otherwise, but this is what appears to be the case in my
tests.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organization Effectiveness - Technology Solutions
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> >>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>> >>Sent: Wednesday, August 09, 2006 4:28 AM
>>> >>To: Flashcoders mailing list
>>> >>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> onquestion
>>> >>
>>> >>I would have thought (i.e. I've not tried it) that once the image
is
>>> in
>>> >>the textfield that users could just select/delete it as though it
>>> where
>>> >>just another piece of text???
>>> >>
>>> >>Giles
>>> >>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
>>> >>[mailto:[EMAIL PROTECTED] On Behalf Of
>>> Merrill,
>>> >>Jason
>>> >>Sent: 08 August 2006 17:38
>>> >>To: Flashcoders mailing list
>>> >>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> >>onquestion
>>> >>
>>> You could scan through the textfield.htmlText value (i.e. the
code)
>>> >>and
>>> relate the selection index in the rendered output to the actual
>>> index
>>> >>in
>>> the code, then insert your image code in the textfield.htmlText.
>>> I have done this previously (for a different reason) by just
running
>>> >>two
>>> counters as I looped through each character in the code, one
counter
>>> counts every character and the other ignores characters that are
>>> part
>>> >>of
>>> a tag.
>>> 
>>> >>
>>> >>Thanks Giles. That is what I was trying to avoid, especially since
I
>>> >>need to give the user editing capability - so they can add and
remove
>>> >>the tag at any time when editing the text.  Could get messy real
quick
>>> >>and be bug-prone.  I think I might opt instead for keeping images
out
>>> of
>>> >>the HTML altogether, and just use a MovieClip they load content
into
>>> and
>>> >>position.  It won't allow the text to wrap around the image, but
oh
>>> >>well.
>>> >>
>>> >>Thanks for the many responses!
>>> >>
>>> >>Jason Merrill
>>> >>Bank of America
>>> >>Learning & Organization Effectiveness - Technology Solutions
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>> [EMAIL PROTECTED] On Behalf Of Giles Taylor
>>> Sent: Tuesday, August 08, 2006 4:41 AM
>>> To: Flashcoders mailing list
>>> Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash -
follow
>>> >>onquestion
>>> 
>>> I think that replaceSel() acts on the rendered output rather
than
>>> the
>>> code, so it thinks that you want to actually display the text
that
>>> you
>>> >>
>>> entered rather than adding it to the code (hope that makes
sense!)
>>> 
>>> You could scan through the textfield.htmlText value (i.e. the
code)
>>> >>and
>>> relate the selection index in the rendered output to the actual
>>> index
>>> >>in
>>> the code, then insert your image code in the textfield.htmlText.
>>> I have done this previously (for a different reason) by just
running
>>> >>two
>>> counters as I looped through each character in the code, one
counter
>>> counts every character and the other ignores characters that are
>>> part
>>

Re: [Flashcoders] Calling functions in sequence

2006-08-09 Thread Matt Comstock

Thank you.  What would I have to change to make is AS2 compatible?

On 8/9/06, eric dolecki <[EMAIL PROTECTED]> wrote:


this is AS3:

http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/events/Sequence.as


On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote:
>
> I am a newbie to flash and I did search flashcoders prior to asking this
> question.  My issue is that I have two function that I am trying to call
> when a user selects a cell in a datagrid. One function loads a flv file
> and
> the other loads an associated XML file.  These functions work perfectly
if
> I
> create two separate buttons to execute the function in the UI. I would
> like
> to be able to have the user select a value in a datagrid and after they
> select/cellpress the value execute function one, then after function one
> complete execute function two.
>
> Any help is greatly appreciated.
>
> Matt
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

2006-08-09 Thread eric dolecki

this is AS3:
http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/events/Sequence.as


On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote:


I am a newbie to flash and I did search flashcoders prior to asking this
question.  My issue is that I have two function that I am trying to call
when a user selects a cell in a datagrid. One function loads a flv file
and
the other loads an associated XML file.  These functions work perfectly if
I
create two separate buttons to execute the function in the UI. I would
like
to be able to have the user select a value in a datagrid and after they
select/cellpress the value execute function one, then after function one
complete execute function two.

Any help is greatly appreciated.

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

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


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

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


Re: [Flashcoders] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread John Grden

Sorry if you guys already covered this, but is it possible to use SWF's
instead of bitmaps?

the image tag supports loading of SWF's, and I would think you *could*
(meaning, I've not tried it) include onRelease method that handles the
removal of said SWF?

On 8/9/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


>>I would have thought (i.e. I've not tried it) that once the image is
in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???

Nope - well, kind of, that's only partially true.  You cannot select the
picture itself, but if you select the space character where the image
tag is "invisibly" located and delete that, the IMG tag gets deleted as
well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that, especially
if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless someone
knows otherwise, but this is what appears to be the case in my tests.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 4:28 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>I would have thought (i.e. I've not tried it) that once the image is
in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 08 August 2006 17:38
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>
You could scan through the textfield.htmlText value (i.e. the code)
>>and
relate the selection index in the rendered output to the actual
index
>>in
the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running
>>two
counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are
part
>>of
a tag.

>>
>>Thanks Giles. That is what I was trying to avoid, especially since I
>>need to give the user editing capability - so they can add and remove
>>the tag at any time when editing the text.  Could get messy real quick
>>and be bug-prone.  I think I might opt instead for keeping images out
of
>>the HTML altogether, and just use a MovieClip they load content into
and
>>position.  It won't allow the text to wrap around the image, but oh
>>well.
>>
>>Thanks for the many responses!
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Giles Taylor
Sent: Tuesday, August 08, 2006 4:41 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion

I think that replaceSel() acts on the rendered output rather than
the
code, so it thinks that you want to actually display the text that
you
>>
entered rather than adding it to the code (hope that makes sense!)

You could scan through the textfield.htmlText value (i.e. the code)
>>and
relate the selection index in the rendered output to the actual
index
>>in
the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running
>>two
counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are
part
>>of
a tag.

Bit of a pain, but I hope it helps,
Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
>>Merrill,
Jason
Sent: 07 August 2006 23:25
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

Oh, and to follow up with some further information:

It seems to only encode those HTML entities when I use
TextField.replaceSel().  If I just add the  tag string on to
the
htmltext field value, it works:

//works:
test_txt.htmlText += ">>>height=\"120\" />";

//fails - shows literal text, and encodes entities:
test_txt.replaceSel(">>>height=\"120\" />");

Am I left with splitting the string in two, inserting the  tag,
>>and
re-assembling the string?  Or is there a way to get replaceSel() to
>>work
with HTML tags?

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions
>

RE: [Flashcoders] png load queue

2006-08-09 Thread Howard Nager
Slow was sloow. But it turned out more to do with my debug window than 
anything else. However, I have 24 frames of a 360 spin of a product (x 4+ png 
each)...and as each frame loads I draw it to the screen. That seems to be the 
issue now. Drawing each multilayed frame causes a hicup in whatever other 
animation I have going on. 

What's odd is that as soon as it has shown a frame on screen it never slows 
down again when showing that same frame again. Any suggestions on this? seems 
as if it chokes when it has to draw overlapped png files?


-Original Message-
From: [EMAIL PROTECTED] on behalf of Merrill, Jason
Sent: Wed 8/9/2006 8:40 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] png load queue
 
>>the load it is super choppy (especially on a mac).
>>
>>I am loading in sequence up to 100 png files - if that makes a
difference.

Well, that's a lot of data - how large is each file?  It seems even a
regular HTML page will slow down on 100 image files...  

or how slow is slow?

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Howard Nager
>>Sent: Tuesday, August 08, 2006 6:02 PM
>>To: Flashcoders mailing list; Flashcoders mailing list
>>Subject: [Flashcoders] png load queue
>>
>>I'm having a weird issue where my flash player is performing very very
slowly wile
>>loading a queue of png files. Everything is smooth before and after,
but during
>>the load it is super choppy (especially on a mac).
>>
>>I am loading in sequence up to 100 png files - if that makes a
difference.
>>
>>Any idea why this may be happenening?
>>
>>Help!
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/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] WSIWYG HTML text editor in Flash - follow onquestion

2006-08-09 Thread Merrill, Jason
>>I would have thought (i.e. I've not tried it) that once the image is
in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???

Nope - well, kind of, that's only partially true.  You cannot select the
picture itself, but if you select the space character where the image
tag is "invisibly" located and delete that, the IMG tag gets deleted as
well, thus removing the picture.  So you can do it, but it's not
intuitive to the user on how to find that space and do that, especially
if they forgot where they put it.  But it would be really nice if it
were true that you could select the picture directly.  Unless someone
knows otherwise, but this is what appears to be the case in my tests.  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Giles Taylor
>>Sent: Wednesday, August 09, 2006 4:28 AM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion
>>
>>I would have thought (i.e. I've not tried it) that once the image is
in
>>the textfield that users could just select/delete it as though it
where
>>just another piece of text???
>>
>>Giles
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: 08 August 2006 17:38
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion
>>
You could scan through the textfield.htmlText value (i.e. the code)
>>and
relate the selection index in the rendered output to the actual
index
>>in
the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running
>>two
counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are
part
>>of
a tag.

>>
>>Thanks Giles. That is what I was trying to avoid, especially since I
>>need to give the user editing capability - so they can add and remove
>>the tag at any time when editing the text.  Could get messy real quick
>>and be bug-prone.  I think I might opt instead for keeping images out
of
>>the HTML altogether, and just use a MovieClip they load content into
and
>>position.  It won't allow the text to wrap around the image, but oh
>>well.
>>
>>Thanks for the many responses!
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Giles Taylor
Sent: Tuesday, August 08, 2006 4:41 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
>>onquestion

I think that replaceSel() acts on the rendered output rather than
the
code, so it thinks that you want to actually display the text that
you
>>
entered rather than adding it to the code (hope that makes sense!)

You could scan through the textfield.htmlText value (i.e. the code)
>>and
relate the selection index in the rendered output to the actual
index
>>in
the code, then insert your image code in the textfield.htmlText.
I have done this previously (for a different reason) by just running
>>two
counters as I looped through each character in the code, one counter
counts every character and the other ignores characters that are
part
>>of
a tag.

Bit of a pain, but I hope it helps,
Giles

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
>>Merrill,
Jason
Sent: 07 August 2006 23:25
To: Flashcoders mailing list
Subject: RE: [Flashcoders] WSIWYG HTML text editor in Flash - follow
onquestion

Oh, and to follow up with some further information:

It seems to only encode those HTML entities when I use
TextField.replaceSel().  If I just add the  tag string on to
the
htmltext field value, it works:

//works:
test_txt.htmlText += ">>>height=\"120\" />";

//fails - shows literal text, and encodes entities:
test_txt.replaceSel(">>>height=\"120\" />");

Am I left with splitting the string in two, inserting the  tag,
>>and
re-assembling the string?  Or is there a way to get replaceSel() to
>>work
with HTML tags?

Thanks,

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED]
[mailto:flashcoders-
>>
>>[EMAIL PROTECTED] On Behalf Of Merrill, Jason
>>Sent: Monday, August 07, 2006 5:55 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] WSIWYG HTML text editor in F

[Flashcoders] Calling functions in sequence

2006-08-09 Thread Matt Comstock

I am a newbie to flash and I did search flashcoders prior to asking this
question.  My issue is that I have two function that I am trying to call
when a user selects a cell in a datagrid. One function loads a flv file and
the other loads an associated XML file.  These functions work perfectly if I
create two separate buttons to execute the function in the UI. I would like
to be able to have the user select a value in a datagrid and after they
select/cellpress the value execute function one, then after function one
complete execute function two.

Any help is greatly appreciated.

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

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


Re: [Flashcoders] Serious MTASC/Flashdevelop compile issue

2006-08-09 Thread John Grden

I'm so glad I'm not the only one who goes through stuff like that ;)

On 8/9/06, Andreas Rønning <[EMAIL PROTECTED]> wrote:


Oh my freaking god. Found it. Thanks man heh.. I just didnt think the
kind of error feedback i was getting would be indicative of it, and
since strings are colored blue.. well.

Okay, i can breathe again ;) thanks.

- A



--
[  JPG  ]
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help...cant unload the xml menu...!!

2006-08-09 Thread Jose Maria Barros

Ok...ive found the source of the problem...the xml file must be in the same
floder as the swf..cant reside inside a folder...maybe because of
permissions...

Thanks

On 8/1/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:


Hi Arul,
Well...i tested..and the problem still there...maybe its because the xml
object is not in the root?its inside a movieclip, then inside other
movieclip.

I case you dont understand what i mean is the code that ive put here...is
in a frame that is not in the root, but inside a movieclip(that is in the
root) and in other movieclip...maybe is that the problem?

thanks.


On 8/1/06, Arul Prasad M L <[EMAIL PROTECTED]> wrote:
>
> might be a problem with the URL.
> 1. Make sure that the ../xml folder is in the WWW folder of ur server,
> not
> above it.
>
> or
>
> 2. Try doing this:
>
> var urlString:String = _root._url;
> urlString = urlString.substr (0,urlString.lastIndexOf("/"));
> urlString = urlString.substr(0,urlString.lastIndexOf("/") + 1);
> urlString = urlString.concat("xml/menu.xml")
> menuInfoXML = urlString;
>
> If it works, you may want to refactor all the statements above and make
> the
> code optimal.
>
> ~Arul Prasad.
>
> I've just elaborated in soo many statements, just in case you dont
> understand.
>
> On 8/1/06, Jose Maria Barros <[EMAIL PROTECTED] > wrote:
> >
> > can anyone help me?
> >
> > On 7/31/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> > >
> > > i singed too soon...when i test locally everything works great...but
>
> > when
> > > i try it in internet..it doesnt..he doestn load the xml file
> > >
> > > why...?
> > >
> > > The code is the same...but i did alter the url..like you said..:
> > >
> > > //EDIT XML PATH
> > > menuInfoXML = "./xml/menu.xml";
> > > // DO NOT EDIT BELOW..
> > >
> > > System.useCodepage = true;
> > >
> > > import mx.xpath.XPathAPI ;
> > > var infoHolder:XML = new XML();
> > > infoHolder.load(menuInfoXML);
> > > infoHolder.ignoreWhite = true;
> > > var titlePath:String = "/root";
> > > //main menu array.
> > > var mainMenus:Array;
> > > //sub menu array.
> > > var subMenus:Array;
> > >
> > > infoHolder.onLoad = function(ok) {
> > > if (ok) {
> > > mainMenus = mx.xpath.XPathAPI.selectNodeList (
> > infoHolder.firstChild,
> > > titlePath+"/menu");
> > > createTreeMenu();
> > > }
> > > };
> > >
> > >
> > > MovieClip.prototype.getPos = function(target:Number) {
> > > this.onEnterFrame = function() {
> > > this._y -= (this._y-target)/6;
> > > if (Math.abs(this._y-target)<0.3) {
> > > delete this.onEnterFrame;
> > > _root.newsMC.showNews.appear();
> > > }
> > > };
> > > };
> > >
> > >
> > > function createTreeMenu():Void {
> > > for (i=0; i > > newBut = _root.conteudos_mc.portfolio_mc.attachMovie("but",
> > > "but"+i, 999+i);
> > >
> > > newBut.arrow._alpha = 0;
> > > newBut.shine._alpha = 0;
> > > newBut._x = 18;
> > > newBut._y = 93+(newBut._height+5)*i;
> > >
> > > newBut.txt.text = mainMenus[i].attributes.txt;
> > > newBut.link2 = mainMenus[i].attributes.url;
> > > newBut.submenuCnt = mainMenus[i].childNodes.length;
> > > newBut.y = newBut._y;
> > > newBut.onRollOver = function() {
> > > _root.conteudos_mc.portfolio_mc.tween(this, 16, 18);
> > >
> > > this.arrow.appear ();
> > > this.shine.appear();
> > > var textCol = new Color(this.txt);
> > > textCol.setRGB(0xff);
> > >
> > > };
> > > newBut.onRollOut = function() {
> > > _root.conteudos_mc.portfolio_mc.tween(this, 18, 16);
> > >
> > > this.arrow.disappear();
> > > this.shine.disappear();
> > > var textCol = new Color( this.txt);
> > > textCol.setRGB(0x6F6A63);
> > > };
> > > newBut.onRelease = function() {
> > > if (this.submenuCnt>0) {
> > > var butNum:Number = new Number(this._name.substr(3,
> 1));
> > > this.createSubMenu(butNum);
> > > for (i=0; i > > if (i > >
> > >
> >
> 
_root.conteudos_mc.portfolio_mc["but"+i].getPos(_root.conteudos_mc.portfolio_mc["but"+i].y);
>
> > >
> > > } else {
> > >
> > >
> >
> 
_root.conteudos_mc.portfolio_mc["but"+i].getPos(_root.conteudos_mc.portfolio_mc["but"+i].y+this.submenuCnt*22);
>
> > >
> > > }
> > > }
> > > }
> > > else {
> > > _root.conteudos_mc.portfolio_mc.clearSubMenus();
> > > for (i=0; i< mainMenus.length; i++) {
> > >
> > >
> >
> 
_root.conteudos_mc.portfolio_mc["but"+i].getPos(_root.conteudos_mc.portfolio_mc["but"+i].y);
> > >
> > > }
> > > //getURL( this.link);
> > >
> > > }
> > > };
> > > }
> > > }
> > >
> > >
> > > MovieClip.prototype.createSubMenu =
> > funct

RE: [Flashcoders] png load queue

2006-08-09 Thread Merrill, Jason
>>the load it is super choppy (especially on a mac).
>>
>>I am loading in sequence up to 100 png files - if that makes a
difference.

Well, that's a lot of data - how large is each file?  It seems even a
regular HTML page will slow down on 100 image files...  

or how slow is slow?

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Howard Nager
>>Sent: Tuesday, August 08, 2006 6:02 PM
>>To: Flashcoders mailing list; Flashcoders mailing list
>>Subject: [Flashcoders] png load queue
>>
>>I'm having a weird issue where my flash player is performing very very
slowly wile
>>loading a queue of png files. Everything is smooth before and after,
but during
>>the load it is super choppy (especially on a mac).
>>
>>I am loading in sequence up to 100 png files - if that makes a
difference.
>>
>>Any idea why this may be happenening?
>>
>>Help!
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/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] Serious MTASC/Flashdevelop compile issue

2006-08-09 Thread Andreas Rønning
Oh my freaking god. Found it. Thanks man heh.. I just didnt think the 
kind of error feedback i was getting would be indicative of it, and 
since strings are colored blue.. well.


Okay, i can breathe again ;) thanks.

- A

Nicolas Cannasse wrote:

http://andreas.rayon.no/mtasc_compileerror.jpg

Basically, out of nowhere, MTASC started giving me errors on stuff like 
commas and periods in strings, comments and errors like "invalid 
character 0xF8".



Looks like you forgot to close a string with ' a few lines before.

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

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


--

- Andreas Rønning

---
Flash guy
Rayon Visual Concepts, Oslo, Norway
---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Serious MTASC/Flashdevelop compile issue

2006-08-09 Thread Nicolas Cannasse
> http://andreas.rayon.no/mtasc_compileerror.jpg
> 
> Basically, out of nowhere, MTASC started giving me errors on stuff like 
> commas and periods in strings, comments and errors like "invalid 
> character 0xF8".

Looks like you forgot to close a string with ' a few lines before.

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

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


[Flashcoders] Serious MTASC/Flashdevelop compile issue

2006-08-09 Thread Andreas Rønning

http://andreas.rayon.no/mtasc_compileerror.jpg

Basically, out of nowhere, MTASC started giving me errors on stuff like 
commas and periods in strings, comments and errors like "invalid 
character 0xF8".


Anyone know what could cause this? I've got multiple projects that 
compile just fine, just this one suddenly started doing this. I also 
tried creating a new project file and pointing it to the same class dir 
and compiling, but i keep getting these errors.


Help? =)

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

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


RE: [Flashcoders] Cairngorm 2.0 tutorials

2006-08-09 Thread Matti Bar-Zeev
Thnx again.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ramon
Miguel M. Tayag
Sent: Wednesday, August 09, 2006 9:47 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Cairngorm 2.0 tutorials

Still broken, try this:
http://tinyurl.com/fqldz

On 8/9/06, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:
> Links have been seperated by the page break.
> For example,
>
>
http://weblogs.macromedia.com/auhlmann/archives/2006/07/cairngorm_2_for_
> 1.cf
> m#more
>
> Regards,
>
> Bjorn Schultheiss
> Senior Flash Developer
> QDC Technologies

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

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

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] shared library

2006-08-09 Thread dan
Hi people
Where can one find docs on how to setup and use a shared library?

10x in advance
dan


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

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


[Flashcoders] shared library

2006-08-09 Thread dan
Where can I find doc's on how to use shared library?
10x
dan


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

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


[Flashcoders] Ralph Groenen

2006-08-09 Thread ralphgroenen

Dynamic progress bar

HI,

 How to create  1 progress bar, for 1 site.
So that every external load progress is shown
by that progress bar.

Now im using different progress bars 4 each file.
and i just want 2 use 1.

Or im a wrong and is it better 2 use different progress bars.

Regards Groenen

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