RE: [Flashcoders] Actionscript Optimization!

2007-07-15 Thread Kalani Bright
I remember asking something like this before except it was about resource
management.

Some kind fellow pointed me to Grant Skinner's page about this.
http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of daniel
Sent: Saturday, July 14, 2007 10:15 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Actionscript Optimization!

Hey,

Since you folks were so incredibly helpful last time I threw out a silly
question, I thought I'd toss out another... =)

The other replies to my previous thread (+Inifinite Loop -Dignity) triggered
a couple AS optimization hints, which I will be using! So I was wondering if
the kind mister Kremens was correct in stating that shorter variable names
aid in speeding up AS code. Fine, fine, he said he was joking, but I do
remember a reading document about optimizing C++ programs saying the same
thing.

Is there a good resource I can go to for reading up on AS code optimization?
Do practices from lower-level languages like C++ even apply in a language
like ActionScript? Am I smoking something I shouldn't be?

I love you all.

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

2007-07-15 Thread Paul Steven
I am calling a script on a server and it is returning the following:





I am using AS3 and want to get the values of 

session id
last_login
key

This is the code I am using but I cannot retrieve the value of "session id".


var loader:URLLoader=URLLoader(event.target);
var result:XML=new XML(loader.data);
var myXML:XMLDocument=new XMLDocument();
myXML.ignoreWhite=true;
myXML.parseXML(result.toXMLString());
var node:XMLNode=myXML.firstChild;
trace('Key= '+node.firstChild.attributes['key']);
trace('session id= '+node.firstChild.attributes['session id']);
trace('last_login= '+node.firstChild.attributes['last_login']);

I am thinking this is due to the space between "session" and "id" but I am
not sure how to get this value. I do not have access to the server side to
change "session id" to "session_id" which I imagine would fix it.

Possibly there is an easy fix to my parsing code?

Thanks in advance

Paul

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

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


Re: [Flashcoders] Standalone projectors and UDP

2007-07-15 Thread Joshua Sera
Did you have problems getting the UDP packets through
firewalls? That's what I'm getting stuck on now.


--- John Grden <[EMAIL PROTECTED]> wrote:

> We did use ScreenweaverHX with UDP with Red5 for a
> multiplayer game
> (paperworld3d) and the intial tests worked well
> (speed-wize)
> 
> On 7/15/07, Joshua Sera <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi, I'm developing a multi-player game in Flash as
> a
> > personal project, and I'm curious if anyone else
> knows
> > of any standalone projectors besides MDM Zinc
> support
> > UDP packets?
> >
> > Zinc seems to be having some issues with memory
> leaks.
> > (Not my application, but Zinc itself.) Also, it
> seems
> > like it's having some problems with AS2, and
> attaching
> > movies. (I don't THINK it's my code, as the parts
> in
> > question have been in pretty regular use since AS2
> > came out, but I'm not totally sure.)
> >
> > If I could use a different projector application,
> I
> > could pin things down more easily, plus the memory
> > leak (600 megs in an hour or so) makes me nervous.
> >
> >
> >
> >
> >
> >
>

> > Need Mail bonding?
> > Go to the Yahoo! Mail Q&A for great tips from
> Yahoo! Answers users.
> >
>
http://answers.yahoo.com/dir/?link=list&sid=396546091
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the
> archive:
> >
>
http://chattyfig.figleaf.com/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
> 



   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Anyone really fluid with LoadVars() - external txt problem.

2007-07-15 Thread hermit
It sounds like either a scope problem or you don't have the instance name
and/or path correct in your code.  Hard to tell without seeing the AS.



> This is a complex problem, with a simple solution I suspect.  Doing some
> AS2 training, which I have to say feels like a whole different language
> sometimes to AS.
>
> Problem in brief:  I have a master swf. --  It is loading an external
> swf -- that external swf has a dynamic text field -- which is to load  an
> external .txt, -- IT IS NOT.
>
>  The Master swf loads the external swf page no problem the text field is
> there, all my traces show the objects traces as they should, just the
> text field is not loading the .txt file.
>
> This is the first time I am attempting to do work with more than just
> external swfs.  So the problem could be a simple.  I suspect it has to do
> with the naming or reference to the container text field.
>
> Please if someone has some time, and know this stuff like the back of
> their hand, I would be extremely thankful.
>
> regards,
>
> Vdst

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

2007-07-15 Thread John Grden

We did use ScreenweaverHX with UDP with Red5 for a multiplayer game
(paperworld3d) and the intial tests worked well (speed-wize)

On 7/15/07, Joshua Sera <[EMAIL PROTECTED]> wrote:


Hi, I'm developing a multi-player game in Flash as a
personal project, and I'm curious if anyone else knows
of any standalone projectors besides MDM Zinc support
UDP packets?

Zinc seems to be having some issues with memory leaks.
(Not my application, but Zinc itself.) Also, it seems
like it's having some problems with AS2, and attaching
movies. (I don't THINK it's my code, as the parts in
question have been in pretty regular use since AS2
came out, but I'm not totally sure.)

If I could use a different projector application, I
could pin things down more easily, plus the memory
leak (600 megs in an hour or so) makes me nervous.






Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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


[Flashcoders] Standalone projectors and UDP

2007-07-15 Thread Joshua Sera
Hi, I'm developing a multi-player game in Flash as a
personal project, and I'm curious if anyone else knows
of any standalone projectors besides MDM Zinc support
UDP packets?

Zinc seems to be having some issues with memory leaks.
(Not my application, but Zinc itself.) Also, it seems
like it's having some problems with AS2, and attaching
movies. (I don't THINK it's my code, as the parts in
question have been in pretty regular use since AS2
came out, but I'm not totally sure.)

If I could use a different projector application, I
could pin things down more easily, plus the memory
leak (600 megs in an hour or so) makes me nervous.



 

Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Anyone really fluid with LoadVars() - external txt problem.

2007-07-15 Thread Paul V.
This is a complex problem, with a simple solution I suspect.  Doing some AS2 
training, which I have to say feels like a whole different language sometimes 
to AS.  

Problem in brief:  I have a master swf. --  It is loading an external swf 
-- that external swf has a dynamic text field -- which is to load  an external 
.txt, -- IT IS NOT.

 The Master swf loads the external swf page no problem the text field is there, 
all my traces show the objects traces as they should, just the text field is 
not loading the .txt file.  

This is the first time I am attempting to do work with more than just external 
swfs.  So the problem could be a simple.  I suspect it has to do with the 
naming or reference to the container text field.

Please if someone has some time, and know this stuff like the back of their 
hand, I would be extremely thankful.  

regards,

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

2007-07-15 Thread Muzak
You might find this interesting:

http://www.nowrap.de/flasm#optimization

- Original Message - 
From: "Fruber Malcome" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, July 15, 2007 9:52 PM
Subject: RE: [Flashcoders] Actionscript Optimization!


>I think in both cases the information you were reading was taling about
> compile-optimization, not runtime.
>
> Since the swf is mostly compiled during load - you may see a slight
> performance difference with a few million lines of code because the file
> would be bigger - take longer to download / load - but that's really a
> streach as well.
>
> So as Hairy stated - just keep them intelligble - why would you want them
> any larger than 14 characters anyway?
>
> Thanks - Fruber
>
>


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

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


[Flashcoders] Printing Schematic images (diagrams) in Flash using Actionscript 1.0

2007-07-15 Thread Philip Dogbey
Hi All,

I am new in Flash and I need help to solve a problem about printing schematic 
diagram in my company's application. The application displays Construction 
equipment part diagram.

The problem is when we print the diagra the part number labels (i.e 1, 2,, 3, 
4, etc) part numbers don't print well. All numbers on the diagram turn to print 
black diamonds instead. We use printNum function for printing.  Does any one 
knows what to do to improve the printing so that the numbers are printed as 
displayed on screen? I wish I can attached PDF printed COPY and screenshots of 
display but I can't.

Any help would be greatly appreciated

 

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

2007-07-15 Thread Fruber Malcome
I think in both cases the information you were reading was taling about
compile-optimization, not runtime.

Since the swf is mostly compiled during load - you may see a slight
performance difference with a few million lines of code because the file
would be bigger - take longer to download / load - but that's really a
streach as well.

So as Hairy stated - just keep them intelligble - why would you want them
any larger than 14 characters anyway?

Thanks - Fruber
 

-Original Message-
From: Hairy Dog Digital [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 14, 2007 10:53 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Actionscript Optimization!

 
> Fine, fine, he said he was joking, but I do remember a reading 
> document about optimizing C++ programs saying the same thing.

I don't know C++, but if I try to step into my Way Back machine to my
college years, variable name lengths don't mean squat in compiled (whether
it's binary or bytecode) code. My own personal "Best Practice" is to make
variable names intelligble ("myVariableName" vs. "v1") and reasonably unique
(e.g., avoid possible confusion from using "myBox", "theBox" and "box"),
while avoiding insanely long names (e.g.,
"theUsersCurrentStreetAddressLineFromWebContactForm"). 





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

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


[Flashcoders] 欲求不満の人妻と濡 れる関係

2007-07-15 Thread 人妻誘惑倶楽部

欲求不満の人妻と濡れる関係
http://feeling2.com/HI/

★ 人妻誘惑倶楽部って? 
  出会いのきっかけを一つでも多く手に したい貴方を応援するサイトです。 
  真剣に出会いを求めて登録される会員様ばかりなので
  男女会員様共ご満足の声を多数 頂いております。 
  全国区対応しているので、お住まいの地域の方との出会いはもちろん、
  近くの人より 知らない地域の人と遊んでみたい、という欲求も全て満たせます。 

★ どんな人の登録が多いの? 
   完全無料だから様々な会員様のご登録がございます。

・職場に異性が全然いないので、出会いを求めて。
・今までとは違う世界の人との出会いを求めて。
・理想の相手をゆっくりと探したい。
・一人の時間、寂しさを埋める相手が欲しい。 
  理由は様々ですが、どなた様も新たな出会いを探してのご登録です。
  迷っているのは貴方だけではありません。
  運命の相手は、もう貴方を探しているかもしれませんよ。 

★ 携帯からもアクセスできる? 
   DoCoMo、au、Vodafone全キャリアの携帯電話対応です。 
  会社や自宅からはPCから、外出先や移動中は携帯電話で、
  と いつでもどこでも愛を始められます! 

★ 入会時に費用はかかる? 
   人妻誘惑倶楽部は完全無料!!入会/年会費等は一切必要ありません。 

★ 女性会員は多い? 
  効果の高い宣伝媒体に、億単位の広告宣伝費を投入している為、
  多業種、多世代、広範囲の女性会員様が日々会員登録され好評を得ています。
  人妻誘惑倶楽部が無料で運営出来るのは、広告収入があるからです。
  また女性が安心して利用できるサイト作りを心がけている為、
  口コミでも登録が殺到しており、男性会員が不足している状態です。
  
★ 動画は対応してる? 
  動画対応機種であれば閲覧可能!!
  もちろんお相手の写真も画像変換機能を完備しておりますので
  どの会社の携帯からも画像を閲覧できます。
  ご自分の写真を登録される事も可能です。
  会うまでの時間、写真や動画で二人の間が盛り上がる事は間違いありません。 

★ 本当に出会える? 
  サイト内の会員様同士のやり取りには一切関与致しておりません。
  出会いの基本は実際の社会と同じです。
  サイト上の出会いだからと言って礼儀を欠いた行動や
  デリカシーのない内容のメールでは嫌われてしまいますよ。
  逆に、面と向かってじゃないからこそ楽しめる出会いを大いにエンジョイしてください。
  いつでもどこでも読めるメールだからこそ、絆は急速に、より一層深まる事でしょう。 

★ いつメールを読めばいい? 
  全ての会員様は、お相手らのメールが届くと
  貴方の携帯にお知らせメールが届く機能をご利用頂けます。
  出会いのチャンスを逃させません。
  お知らせメールの件名からは内容はわかりませんのでご安心ください。 

☆−☆−☆−☆−☆−☆−☆−☆−☆
【人妻誘惑倶楽部】へ今すぐ簡単登録
http://feeling2.com/HI/entry.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


Re: [Flashcoders] stopping progressive download after a certain amount has loaded

2007-07-15 Thread nik crosina

Yes, I thought of that and am just 10min short of trying it out! What
effects will it have on the downloaded video though? The site works in
such a way that the the original video (of which I would have
downloaded only a little ) bit would need to start playback on
rollOver of it's respective screen.

... OK, should be on the site in about 10 mins

Nik

On 7/15/07, Omar Fouad <[EMAIL PROTECTED]> wrote:

just load an unexisting file..

On 7/15/07, nik crosina <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Is it possible to stop a progressive download after a certain amount
> of the flv has downloaded.
>
> the situation: I have 9 videos in individual screens on stage, on
> rollover they start playing individually, whereas the others play only
> a small amount and then stop).
>
> the immediate problem is: how can i get the first frame of nine videos
> onto the page as quickly as possible. at the mo, it takes a few
> seconds on a very fast connection ( i got 10mbit here), and is too
> long for a slower connection)
>
> i am looking to stop download of the individual clips after the first
> few frames have been loaded.
> how do i do that?
>
> i am using vidPlayer_mc.stop() but that only stop playback not
> download isn't it? how can I make sure that download has stopped as
> well?
>
> here is the current script on the flv playabck component I am using.
> the paths to the nine flv's are set elsewhere:
>
> var loaded_interval:Number = setInterval(checkBytesLoaded, 500, flv_A1);
> function checkBytesLoaded(my_ns:NetStream) {
> var pctLoaded:Number = Math.round(flv_A1.bytesLoaded /
> flv_A1.bytesTotal * 100);
> loaded_txt.text = pctLoaded + "%";
> if (pctLoaded >= 1) {
> clearInterval(loaded_interval);
> this.flv_A1.pause(true);
> }
> }
>
> here is a link to the current site:
> http://www.multimediaworkshop.co.uk/TDD/002/
>
> Thanks,
>
> Nik
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

+2010 - 2346633 - +2012 - 261
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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




--
Nik C
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] stopping progressive download after a certain amount has loaded

2007-07-15 Thread Omar Fouad

just load an unexisting file..

On 7/15/07, nik crosina <[EMAIL PROTECTED]> wrote:


Hi,

Is it possible to stop a progressive download after a certain amount
of the flv has downloaded.

the situation: I have 9 videos in individual screens on stage, on
rollover they start playing individually, whereas the others play only
a small amount and then stop).

the immediate problem is: how can i get the first frame of nine videos
onto the page as quickly as possible. at the mo, it takes a few
seconds on a very fast connection ( i got 10mbit here), and is too
long for a slower connection)

i am looking to stop download of the individual clips after the first
few frames have been loaded.
how do i do that?

i am using vidPlayer_mc.stop() but that only stop playback not
download isn't it? how can I make sure that download has stopped as
well?

here is the current script on the flv playabck component I am using.
the paths to the nine flv's are set elsewhere:

var loaded_interval:Number = setInterval(checkBytesLoaded, 500, flv_A1);
function checkBytesLoaded(my_ns:NetStream) {
var pctLoaded:Number = Math.round(flv_A1.bytesLoaded /
flv_A1.bytesTotal * 100);
loaded_txt.text = pctLoaded + "%";
if (pctLoaded >= 1) {
clearInterval(loaded_interval);
this.flv_A1.pause(true);
}
}

here is a link to the current site:
http://www.multimediaworkshop.co.uk/TDD/002/

Thanks,

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

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





--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

+2010 - 2346633 - +2012 - 261
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] stopping progressive download after a certain amount has loaded

2007-07-15 Thread nik crosina

Hi,

Is it possible to stop a progressive download after a certain amount
of the flv has downloaded.

the situation: I have 9 videos in individual screens on stage, on
rollover they start playing individually, whereas the others play only
a small amount and then stop).

the immediate problem is: how can i get the first frame of nine videos
onto the page as quickly as possible. at the mo, it takes a few
seconds on a very fast connection ( i got 10mbit here), and is too
long for a slower connection)

i am looking to stop download of the individual clips after the first
few frames have been loaded.
how do i do that?

i am using vidPlayer_mc.stop() but that only stop playback not
download isn't it? how can I make sure that download has stopped as
well?

here is the current script on the flv playabck component I am using.
the paths to the nine flv's are set elsewhere:

var loaded_interval:Number = setInterval(checkBytesLoaded, 500, flv_A1);
function checkBytesLoaded(my_ns:NetStream) {
   var pctLoaded:Number = Math.round(flv_A1.bytesLoaded /
flv_A1.bytesTotal * 100);
   loaded_txt.text = pctLoaded + "%";
   if (pctLoaded >= 1) {
clearInterval(loaded_interval);
this.flv_A1.pause(true);
   }
}

here is a link to the current site:
http://www.multimediaworkshop.co.uk/TDD/002/

Thanks,

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

2007-07-15 Thread Muzak
If this is going to be a CD application, you can't alter the xml unless it is 
copied to the users' harddisk first.

One option would be to read the xml the first time the application is started 
(from cd) and store it in a SharedObject.
You can then do whatever you want with it.
So you only use the xml as starter data and afterwards use the SharedObject 
data.

Another option is to copy the xml to disk (or the whole application using an 
installer like NSIS) after which you can edit the xml. 
You'd probably want to use something like Zinc (or any other 3rd party Flash 
wrapper) which allows you to read/write to disk.

And yet another option is to use AIR, which has SQLite support built in 
(file-based database), so you could use that instead of xml.
An AIR application has to be installed to disk. And AIR is currently in beta 
(available from adobe labs).

You can use SQLite with Zinc as well, but it's not built in. There's an AS2 API 
available from thecodezone.com.

AIR
http://labs.adobe.com/wiki/index.php/AIR
http://www.mikechambers.com/blog/2007/05/30/apollo-beta-will-include-sqlite-embedded-database/

SQLite
http://www.sqlite.org/
http://coenraets.org/blog/2007/06/sqlite-admin-application-for-air/

Zinc
http://www.multidmedia.com/software/zinc/
http://www.thecodezone.com/downloads/sqlite.html

NSIS
http://nsis.sourceforge.net/Main_Page
http://nsis.sourceforge.net/EclipseNSIS_-_NSIS_plugin_for_Eclipse

SharedObject
http://www.adobe.com/go/tn_16194
http://livedocs.adobe.com/flash/8/main/2661.html

regards,
Muzak

- Original Message - 
From: "Omar Fouad" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Sunday, July 15, 2007 12:54 PM
Subject: [Flashcoders] Xml based database with flash


>I am working on a company cd project that requires a flash interface and a
> small database. I'm Thinking of using xml as in the project will work on a
> cd, and using xml is the only way that lets me get data dinamically without
> the use of any server side script...
> The application requires also a control panel that lets the user edit the
> entries, that in this case I will need to access the xml and alter
> it through flash. I know that without any server side script is impossible
> editing and saving an xml file trough flash.. So i thought that the user can
> edit the xml through excel as in opening the xml file on , edit the fields
> and save it. Excel opens the xml in a table format edits it, but than again,
> when i go to save it, it doesn't work...  any thoughts...???
>
> thanks for helping
>
> -- 
> Omar M. Fouad - Digital Emotions
> http://www.omarfouad.net
>
> +2010 - 2346633 - +2012 - 261


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

2007-07-15 Thread R�kos Attila

If you are going to put it on a CD, use a projector creator. There are
several ones out there (eg. see swftools.com), which are able to write
files (on the hard disk and not on the CD of course) and do almost
anything what a normal application can do.

  Attila

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From:Omar Fouad <[EMAIL PROTECTED]>
To:  Flashcoders mailing list 
Date:Sunday, July 15, 2007, 12:54:27 PM
Subject: [Flashcoders] Xml based database with flash
--===--
I am working on a company cd project that requires a flash interface and a
small database. I'm Thinking of using xml as in the project will work on a
cd, and using xml is the only way that lets me get data dinamically without
the use of any server side script...
The application requires also a control panel that lets the user edit the
entries, that in this case I will need to access the xml and alter
it through flash. I know that without any server side script is impossible
editing and saving an xml file trough flash.. So i thought that the user can
edit the xml through excel as in opening the xml file on , edit the fields
and save it. Excel opens the xml in a table format edits it, but than again,
when i go to save it, it doesn't work...  any thoughts...???

thanks for helping

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

+2010 - 2346633 - +2012 - 261
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/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] Xml based database with flash

2007-07-15 Thread Omar Fouad

I am working on a company cd project that requires a flash interface and a
small database. I'm Thinking of using xml as in the project will work on a
cd, and using xml is the only way that lets me get data dinamically without
the use of any server side script...
The application requires also a control panel that lets the user edit the
entries, that in this case I will need to access the xml and alter
it through flash. I know that without any server side script is impossible
editing and saving an xml file trough flash.. So i thought that the user can
edit the xml through excel as in opening the xml file on , edit the fields
and save it. Excel opens the xml in a table format edits it, but than again,
when i go to save it, it doesn't work...  any thoughts...???

thanks for helping

--
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

+2010 - 2346633 - +2012 - 261
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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