Re: [Flashcoders] sending information from HTML to swf

2007-07-25 Thread natalia Vikhtinskaya
Any articles or examples?

2007/7/26, Helmut Granda <[EMAIL PROTECTED]>:
>
> search on javascript + actionscript.
>
> That is one way.
>
> ...helmut
>
> On 7/26/07, natalia Vikhtinskaya < [EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > I need an advice how to send information  from html to swf. I have list
> of
> > links and want to send mp3 names to flash player that I created on the
> > page.
> > Is that possible? If yes maybe somebody have examples that explains how.
> > Thank for any 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] sending information from HTML to swf

2007-07-25 Thread Helmut Granda

search on javascript + actionscript.

That is one way.

...helmut

On 7/26/07, natalia Vikhtinskaya <[EMAIL PROTECTED]> wrote:


Hi

I need an advice how to send information  from html to swf. I have list of
links and want to send mp3 names to flash player that I created on the
page.
Is that possible? If yes maybe somebody have examples that explains how.
Thank for any 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] sending information from HTML to swf

2007-07-25 Thread natalia Vikhtinskaya
Hi

I need an advice how to send information  from html to swf. I have list of
links and want to send mp3 names to flash player that I created on the page.
Is that possible? If yes maybe somebody have examples that explains how.
Thank for any 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] ExternalInterface fails when accessed from vm1 and vm2

2007-07-25 Thread Mark Carolin
Hi,

Has anyone heard of the ExternalInterface Class failing in an AS3 file after
an AS2 file has loaded into it and also uses this object?

Cheers,
Mark
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ActionScript 2.0 TileList component?

2007-07-25 Thread Kalani Bright
Hi,

I'm trying to solve a specific problem (using AS 2.0).  I'm trying to avoid
some coding.
A DataGrid won't do what I want (to lay out the rows in tile formation).
I'm also using custom
CellRenderers.

Seems AS 3.0 has exactly what I need (the TileList) except for all the other
components I need which have gone missing.

Is anyone aware of a component which displays thing in a TileList way but
also has all the goodies of Flash's list based components (CellRenderers)
and usage of DataProviders?

Help? My vision is going black!

Mahalo,

Kalani



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

2007-07-25 Thread Troy Rollins


On Jul 25, 2007, at 7:24 PM, Weldon MacDonald wrote:

Flash doesn't have access to the local file system. If teh pictures  
were on
a server you could do something with a PHP script to get the file  
names, but
on the client, not. Unless you want to get into the new Adobe Air  
API, but
that's a whole other ball of wax, not to mention a bit of a  
learning curve


Also Zinc, mProjector, swfStudio, etc.

--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


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

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


[Flashcoders] Flash Player | Plug-in vs ActiveX -- Same or Different?

2007-07-25 Thread greg h

Over in a thread on the ApolloCoders
list,
Marcel Panse asked:
is the firefox plugin different from the IE player.. or do
the plugins just point to the same player?

I am curious too.  Does anyone here know?

I always thought there was a separate plug-in for Mozilla/Firefox and an
ActiveX control for
IE.
And looking at this post by Tinoc Uro about the Flash Player build
processseems
to support that there are separate builds (on Win32:
NPSWF32.dll for Mozilla/Firefox, and Flash.ocx for IE).

But I just confirmed that IE, Firefox and Mozilla do intercommunicate by
running the Examples in the docs for
LocalConnectionand
SharedObject.
Meaning LocalConnections do communicate between SWFs running in different
host browsers, and SharedObjects are shared between SWFs running in
different host browsers.

So even if the plug-in and ActiveX control are different, as a practical
matter, from the perspective of Flash developers at runtime they act as if
they are the same?

btw ... As a possibly interesting side note, the Flex 3 version of the AS3
Language Reference for
LocalConnectionincludes
the following:
The communication can be:
...

  - Between content (SWF-based or HTML-based) in an AIR application and
  SWF content running in a browser

Any insights would be appreciated.

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

2007-07-25 Thread Weldon MacDonald

Flash doesn't have access to the local file system. If teh pictures were on
a server you could do something with a PHP script to get the file names, but
on the client, not. Unless you want to get into the new Adobe Air API, but
that's a whole other ball of wax, not to mention a bit of a learning curve

On 7/25/07, Norman Cousineau <[EMAIL PROTECTED]> wrote:


Is it possible to use Flash to make an image browser...without an XML
file.
In other words, just view the images in any given local folder.

Regards,
Norm 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


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

2007-07-25 Thread Muzak
AFAIK, Flash source control only works with VSS 6.

regards,
Muzak

- Original Message - 
From: "Doug Coning" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, July 25, 2007 4:12 PM
Subject: [Flashcoders] Team Foundation Server


Greetings All,

Is anyone using Flash with Team Foundation Server for source control?
If so, do you mind sharing the steps it took to setup the connection to
TFS?

Thanks,

Doug Coning


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

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


Re: [Flashcoders] (OT) fscommand and air

2007-07-25 Thread Troy Rollins


On Jul 25, 2007, at 6:21 PM, John Dowdell wrote:

If so, then no, I don't... the current pre-releases can invoke an  
installed Adobe Reader to display a PDF,


This, in itself, let all the air out of AIR for me.

When I saw how AIR could do such a great job of fusing SWF and HTML,  
I guess I thought it would have similar capability with PDF. Instead  
it seems more like PDF is bolted on to the side. It is always on top,  
uses the Reader controls, and has very limited connectivity to the  
rest of the app.


Acrobat remains one of the most important file formats, with the  
least integration functionality or interactive design tools. Ever try  
making an interactive PDF in Acrobat pro, or that LiveCycle thing?


--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


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

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


RE: [Flashcoders] (OT) fscommand and air

2007-07-25 Thread John Dowdell
ah, so is this "Does anyone know how I can produce PDF files locally with the 
Adobe Integrated Runtime?"

If so, then no, I don't... the current pre-releases can invoke an installed 
Adobe Reader to display a PDF, but I don't recall anyone seeing a way to 
produce PDFs locally.

If you can handle a server connection then ColdFusion can produce PDF, that's 
the closest solution I see so far.

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

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


Re: [Flashcoders] (OT) fscommand and air

2007-07-25 Thread elibol

Something along the lines of fscommand("exec", "pdfOutput.exe source.html
target.pdf");

Or any other extension that might be useful for producing report documents
for our ROI/Value Calculator desktop products.

We are currently able to produce html reports for the desktop, but we cannot
produce pdf or ppt documents. Having these capabilities would add a lot of
value to our applications. It would additionally balance frequent technical
cases for using other OCX wrappers over AIR.

fscommand exec is the only way I could think of implementing this feature.
Is this command available in AIR? If not, why? Can we expect to see pdf and
ppt generation in subsequent versions?

On 7/25/07, John Dowdell <[EMAIL PROTECTED]> wrote:


> Curious, does anyone know anything about the capabilities of fscommand
in
> AIR applications?

"FSCommand" was originally for the plugin to communicate with its host
browser. Then later it was extended a bit to control properties of
Projectors. The current externalInterface communicates with the hosting
browser today.

But there isn't a hosting browser in AIR. What would you expect it to do,
what are you hoping to accomplish...?

jd/adobe



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

2007-07-25 Thread Pieter Michels

So I gather I first need to embed my font (let's Verdana) and implement some
sort of RTL script.
Ok, thanks for your input.

Pieter

On 7/23/07, Danny Kodicek <[EMAIL PROTECTED]> wrote:



> Hi,
>
> I'm building an application that requires users to be abe to type in
> almost
> any language.
> It has basically two types of fields: 1 input and 2 dynamic fields.
> I was able to get things working in the Flash IDE where I could type in
> hebrew and any other language and got correct output in the dynamic
> fields.
>
> However, once uploaded Internet Explorer did some strange things behind
> the
> scene but I was able to type in hebrew.
> In firefox I wasn't able to type in hebrew at all.
> Both browser did output the hebrew correctly in the dynamic fields.
>
> I'm not embedding any font; just Verdana is used as a font.

That's the key point. If you look back over several posts of mine on this
list, you'll see that when using embedded fonts, you're in much more
control
than non-embedded. Without embedding, you're at the mercy of the browser
and
OS, and the result is that you really have no idea what will show up
(quite
aside from the question of whether your end-user will be able to see
anything at all).

Unfortunately, embedding means that you definitely *won't* get RTL for
free.
Fortunately, if you're working with Hebrew rather than Arabic, the RTL
algorithm is reasonably simple so you may find you can manage it by hand
(it's less simple if you're allowing Bidirectional text, but still
manageable). You could also try FlashRTL, which is pretty good but doesn't
include any solutions for input.

Danny

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

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





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

2007-07-25 Thread Troy Rollins


On Jul 25, 2007, at 4:54 PM, Mendelsohn, Michael wrote:


I understand traversing through XML is more intuitive in AS3 than AS2.
I'm wondering if CS3 lets you traverse through XML in AS3 style, but
still using AS2 for the project.


Flash CS3 does do this (support E4X), however you have to set the  
project up for AS3 to use it.


--
Troy
RPSystems, Ltd.
http://www.rpsystems.net


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

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


[Flashcoders] AS3 style XML in AS2?

2007-07-25 Thread Mendelsohn, Michael
Hi list...

I understand traversing through XML is more intuitive in AS3 than AS2.
I'm wondering if CS3 lets you traverse through XML in AS3 style, but
still using AS2 for the project.

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

2007-07-25 Thread Muzak
Hi Ian,

In one of my previous posts I was gonna suggest a custom Event that holds the 
contextInfo stuff as well, but then decided not to.
Basically because I don't know what exactly this piece of the puzzle fits into.
What I mean is, there's several ways of doing what you want to do. Two of them 
I already mentioned.
- store them in B (Dictionary)
- pass them onto A (getter/setter)

Third would be to have class A dispatch a custom event which holds the 
contextInfo, but this also means you'll have to pass the 
contextInfo to A in the first place (in B) and since you wanted to avoid that, 
I didn't mention this solution earlier.

In Flex (AS3), the third option is what I use now, dispatching custom events.

For instance:


// pseudo code (I'm in a hurry, sorry)

class LoginEvent extends Event {

public static const LOGIN:String = "login";

public var data:UserVO;

function LoginEvent(type:String, vo:UserVO=null) {
super(type);
data = vo;
}

}

// somewhere in app
function loginUser() {
var vo:UserVO = new UserVO();
vo.name = "foo";
vo.password = "bar";
// create new event which holds user data
var evt:LoginEvent = new LoginEvent(LoginEvent.LOGIN, vo);
SystemEventManager.getInstance().dispatchEvent(evt):
}

// somewhere else in app -> some class that listens for LoginEvent.LOGIN
function loginHandler(event:LoginEvent):void {
trace(event.data.name);
trace(event.data.password);
}

regards,
Muzak


- Original Message - 
From: "Ian Thomas" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 25, 2007 3:15 PM
Subject: Re: [Flashcoders] AS3 Events


> Oh, and reading the link you supplied, the only concrete suggestion is
> from Aral Balkan, who suggests (as someone did in an earlier thread)
> that you subclass the Event class.
>
> How would that help in my case? Any suggestions? To go back to my
> original example, if you assume class A is a black box that fires an
> event of class Event (Event.COMPLETE), we have no way (to the best of
> my knowledge) to make class A produce subclasses of Event instead;
> unless the suggestion is to subclass A to produce different events,
> which (depending on A's implementation) could be very difficult.
>
> Ian
>
> (Getting frustrated!)
>


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

2007-07-25 Thread Holth, Daniel C.

They don't give code, but you may want to check out:

http://www.adobe.com/designcenter/gallery/swf/index.html#u_sContent=odop
od


Daniel Holth
I.S. Programmer
x5217   ||  J401

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karim
Beyrouti
Sent: Wednesday, July 25, 2007 2:51 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Drawing API

Hi There,

Just on the off chance any of you can help -

Does anyone have any resources, or knows a good example online to
simulate
slightly blotchy ink using the drawing API?


Regards



Karim

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.17/915 - Release Date:
24/07/2007
13:50


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Drawing API

2007-07-25 Thread Karim Beyrouti
Hi There, 

Just on the off chance any of you can help - 

Does anyone have any resources, or knows a good example online to simulate
slightly blotchy ink using the drawing API?


Regards



Karim

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.17/915 - Release Date: 24/07/2007
13:50
 

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

2007-07-25 Thread Richard Mueller


Yes, the problem is happening on all computers.

And yes, I'm working with same pc as last year.

At  7/25/2007 Wednesday 02:09 PM, you wrote:
Have you tested on different computers? Was it the same computer that 
worked last year?


At 11:36 AM 7/25/2007, you wrote:


I have some audio slide presentations that I've created in Flash for the 
web that I need to put on CD.  I am using autorun to execute an 
index.html page and then from there, the user can select the various 
presentations.  But from CD, when I open the presentation, the audio 
stutters(loops the first second) and slides do not advance.


The weird thing is I did one of these last year without a hitch and now 
even that presentation is having the same issue.   And nothing has changed.


I should note everything works great in Firefox.  This is only happening 
from the CD in IE6 and IE7 XP.  All web versions, regardless of browser, 
are fine.


I know this may be slightly OT... any thoughts?

Richard


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

2007-07-25 Thread Dave Burnett


Hi all;

I'm looking to connect a projector to an Access db, both on CD.

Looks like Zinc will do this, but I'm curious if any folks with experience 
in the area could enlighten me:


1. Are there any client requirements? MDAC version? Do I have to make an 
ODBC connection?


2. What does Zinc mean when they say the recordset can be dumped "in a 
simple XML format"?


e.g. is there any control over the XML structure, or is it WYSIWYG?

Thanks.

Dave

_
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507

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

2007-07-25 Thread Norman Cousineau
Is it possible to use Flash to make an image browser...without an XML file. 
In other words, just view the images in any given local folder.

Regards,
Norm 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] (OT) fscommand and air

2007-07-25 Thread John Dowdell
> Curious, does anyone know anything about the capabilities of fscommand in
> AIR applications?

"FSCommand" was originally for the plugin to communicate with its host browser. 
Then later it was extended a bit to control properties of Projectors. The 
current externalInterface communicates with the hosting browser today.

But there isn't a hosting browser in AIR. What would you expect it to do, what 
are you hoping to accomplish...?

jd/adobe



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

2007-07-25 Thread Marc Hoffman
I cannot get a dynamic text field to display Chinese characters from 
XML. Results vary from question marks in the field, to "undefined," 
to blank. What should happen is that Flash derives elements from the 
XML and displays them in the textfield. I'm using XMLSA to parse the xml.


Another language (French) works fine. Anyone have a Chinese example 
that works? Here's what I've got so far:

   * TrueType font is SimSun.
   * XML is being saved as UTF-8 in TextPad and declares UTF-8 as 
the encoding language. Also tried this all using NotePad. Got both 
text editors to show the Chinese characters as the actual characters 
and also as boxes. Tried saving as UTF-8 and also as Big-Endian. I'm 
using CDATA around all text.

   * XML is being pasted from MS Word. Also tried pasting from Excel.
   * Flash textfield: Set for HTML. I've tried various combinations 
of embedding Chinese characters, including embedding ALL Chinese 
characters (lots of bytes!). I've also tried populating the text 
field with ALL the Chinese text, and using "Auto-fill" to embed those 
characters. I'm not using any bolding or italics.


I'm losing hair over this and would really appreciate either a 
working example (including the xml and flash files) or some more 
troubleshooting methods.


Thanks,
Marc
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Audio Stuttering on CD

2007-07-25 Thread Marc Hoffman
Have you tested on different computers? Was it the same computer that 
worked last year?


At 11:36 AM 7/25/2007, you wrote:


I have some audio slide presentations that I've created in Flash for 
the web that I need to put on CD.  I am using autorun to execute an 
index.html page and then from there, the user can select the various 
presentations.  But from CD, when I open the presentation, the audio 
stutters(loops the first second) and slides do not advance.


The weird thing is I did one of these last year without a hitch and 
now even that presentation is having the same issue.   And nothing has changed.


I should note everything works great in Firefox.  This is only 
happening from the CD in IE6 and IE7 XP.  All web versions, 
regardless of browser, are fine.


I know this may be slightly OT... any thoughts?

Richard


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

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


[Flashcoders] (OT) fscommand and air

2007-07-25 Thread elibol

Hi,

Curious, does anyone know anything about the capabilities of fscommand in
AIR applications?

Just a thought...
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Audio Stuttering on CD

2007-07-25 Thread Richard Mueller



I have some audio slide presentations that I've created in Flash for the 
web that I need to put on CD.  I am using autorun to execute an index.html 
page and then from there, the user can select the various 
presentations.  But from CD, when I open the presentation, the audio 
stutters(loops the first second) and slides do not advance.


The weird thing is I did one of these last year without a hitch and now 
even that presentation is having the same issue.   And nothing has changed.


I should note everything works great in Firefox.  This is only happening 
from the CD in IE6 and IE7 XP.  All web versions, regardless of browser, 
are fine.


I know this may be slightly OT... any thoughts?

Richard




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

2007-07-25 Thread Hans Wichman

Hi,
in general:
* follow the KISS principle
* optimize l8r
* measure if you really want to know and base your decision on that

greetz
JC


On 7/25/07, ilteris kaplan <[EMAIL PROTECTED]> wrote:


Hey Flashcoders,

I am creating an empty movieclip and loading an image to it. Then I
am basically copying this movieclip into a bitmap. The reason I am
doing this is, in the next step I am slicing up the bitmap into
different pieces. I think my question is, am I doing an additional
step first copying the whole movieclip into a whole bitmap? Can I
just slice it up into pieces of bitmap from its movieclip stage?

A friend of mine mentioned about just slicing it up with draw()
method instead of copyPixels(). What would you guys recommend?
Thanks in advance.



_root.createEmptyMovieClip("tempMC",1,{_alpha:0});

var theLoader:MovieClipLoader = new MovieClipLoader();
var theListener:Object = new Object();
theLoader.addListener(theListener);

theListener.onLoadInit = function(mc:MovieClip) {
   bitmapPic = new BitmapData(_root.tempMC._width,
_root.tempMC._height);
   bitmapPic.draw(mc,new Matrix());
   // draw(bigPicture, null, null, null, new Rectangle(0, 0, 50,
100));
   _root.tempMC.removeMovieClip();


   for (var i:Number = 0; i=bitmapPic.width) {
   x = 0;
   y += pieceHeight;
   }
   }
};

theLoader.loadClip("liz.jpg",_root.tempMC);




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

2007-07-25 Thread Sunil Jolly
Hi Ian,

Sorry, it's not very clear in all that garbled code.

If you make a new instance of B each time then only 1 request would be
made to each instance. The event could then be sent to the same listener
for each instance but with the appropriate parameter as part of the
(custom) event.

If you think about it, it's very similar to how Delegate works by
creating a "holding" area but now you have a (custom) event dispatched
which is fully typed. 

I suppose you have to decide if it's worth the extra time or not based
on what you're doing. :)

Sunil

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: 25 July 2007 16:10
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 Events

Hi Sunil,
   That won't work if multiple requests are filtering through the same
B - which is where the whole problem starts from. :-) Because request
2 overwrites the contextInfo written by request 1 - which is why both
Muzak (and I) suggested B has an internal list of contextInfos. But
that gets more tricky...

But thanks!

Ian

On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> Hi Ian,
>
> I didn't fully understand your reply to Muzak's suggestion, but this
is
> based on that and seems to fit the bill.
>
> Sorry it's a bit messy but you get the idea...
>
> Are there still issues with this one?
>
> ---
>
> //call class b passing extra param
> var b:B = new B();
> b.addEventListener(Event.COMPLETE, onBComplete);
> b.loadSomethingAndProcessIt("url.swf", someParameter);
>
> function onBComplete(event:Event) {
> var thingYouWant:Object = event.customEventValue;
> }
>
> //Class B based on Muzak's(thanks!)
> >> class B {
> >>
> private var contextInfo:Object;
>
> >>public function loadSomethingAndProcessIt(url:String,
> ontextInfo:Object):void{
> >>contextInfo = contectInfo;
> >>  r a:A = new A();
> >>  a.addEventListener(Event.COMPLETE,onALoaded);
> >>  a.loadSomething(url);
> >>}
> >>
> >>function onALoaded(event:Event):void {
> >>   dispatchEvent(new CustomEvent(contextInfo));
> >>}
> >>
> >> }
>
> //Custom Event to be fired from Class B
> package etc...
> public class CustomEvent extends Event
> {
> private var customEventValue:Object;
> Function CustomEvent(contextInfo) {
> super(etc...)
> customEventValue = contextInfo;
> }
> }
>
> Sunil
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ian
> Thomas
> Sent: 25 July 2007 14:16
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] AS3 Events
>
> Oh, and reading the link you supplied, the only concrete suggestion is
> from Aral Balkan, who suggests (as someone did in an earlier thread)
> that you subclass the Event class.
>
> How would that help in my case? Any suggestions? To go back to my
> original example, if you assume class A is a black box that fires an
> event of class Event (Event.COMPLETE), we have no way (to the best of
> my knowledge) to make class A produce subclasses of Event instead;
> unless the suggestion is to subclass A to produce different events,
> which (depending on A's implementation) could be very difficult.
>
> Ian
>
> (Getting frustrated!)
>
> On 7/25/07, Ian Thomas <[EMAIL PROTECTED]> wrote:
> > On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> > > Hi Ian,
> > >
> > > It seems like the "proper" way would be to create the extra
> > > functions/classes to handle this. That would solve those two
issues
> > > which aren't major, but would make your code cleaner.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: [announce]Another png encoder which support 8-bit indexed color

2007-07-25 Thread iiley

1.0 released today, see http://www.aswing.org/?page_id=163

Regards~~


--
iiley
AsWing http://www.aswing.org
Personal http://www.iiley.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] bitmapData copypixels()

2007-07-25 Thread ilteris kaplan

Hey Flashcoders,

I am creating an empty movieclip and loading an image to it. Then I  
am basically copying this movieclip into a bitmap. The reason I am  
doing this is, in the next step I am slicing up the bitmap into  
different pieces. I think my question is, am I doing an additional  
step first copying the whole movieclip into a whole bitmap? Can I  
just slice it up into pieces of bitmap from its movieclip stage?


A friend of mine mentioned about just slicing it up with draw()  
method instead of copyPixels(). What would you guys recommend?

Thanks in advance.



_root.createEmptyMovieClip("tempMC",1,{_alpha:0});

var theLoader:MovieClipLoader = new MovieClipLoader();
var theListener:Object = new Object();
theLoader.addListener(theListener);

theListener.onLoadInit = function(mc:MovieClip) {
bitmapPic = new BitmapData(_root.tempMC._width, _root.tempMC._height);
bitmapPic.draw(mc,new Matrix());
// draw(bigPicture, null, null, null, new Rectangle(0, 0, 50, 100));
_root.tempMC.removeMovieClip();


for (var i:Number = 0; i		lizPiece.copyPixels(bitmapPic,new Rectangle(x, y, pieceWidth,  
pieceHeight),new Point(0, 0));

makeLizPiece(lizPiece,x,y,i);
x += pieceWidth;
if (x>=bitmapPic.width) {
x = 0;
y += pieceHeight;
}
}
};

theLoader.loadClip("liz.jpg",_root.tempMC);




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

2007-07-25 Thread Ian Thomas

Hi Frank,
 That's got potential, thanks - I'll go away and have a think about
it (and try a few things out).

Cheers,
  Ian

On 7/25/07, Frank Pepermans <[EMAIL PROTECTED]> wrote:

How about using a wrapper class?



package {

import flash.events.Event;
import flash.events.IEventDispatcher;

public final class Wrapper {

private var _contextInfo:Object;
private var _a:IEventDispatcher;

public function get content():IEventDispatcher {
return _a;
}

public function get contextInfo():Object {
return _contextInfo;
}

public function Wrapper(url:String, contextInfo:Object)
{
_contextInfo = contextInfo;
// new instance
_a = new A();
// or reference
_a = A.getInstance();
//
_a.addEventListener(Event.COMPLETE,
onCompleteEvent);
_a.loadSomething(url);
}

private function onCompleteEvent(eventObj:Event):void {
// implement custom event to which class B will
listen
dispatchEvent(new CustomEvent(eventObj.type,
_contextInfo));
// or specify a getter for contextInfo from this
Wrapper class
}

}
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: 25 July 2007 15:16
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 Events

Oh, and reading the link you supplied, the only concrete suggestion is
from Aral Balkan, who suggests (as someone did in an earlier thread)
that you subclass the Event class.

How would that help in my case? Any suggestions? To go back to my
original example, if you assume class A is a black box that fires an
event of class Event (Event.COMPLETE), we have no way (to the best of
my knowledge) to make class A produce subclasses of Event instead;
unless the suggestion is to subclass A to produce different events,
which (depending on A's implementation) could be very difficult.

Ian

(Getting frustrated!)

On 7/25/07, Ian Thomas <[EMAIL PROTECTED]> wrote:
> On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> > Hi Ian,
> >
> > It seems like the "proper" way would be to create the extra
> > functions/classes to handle this. That would solve those two issues
> > which aren't major, but would make your code cleaner.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3 Events

2007-07-25 Thread Ian Thomas

Hi Sunil,
  That won't work if multiple requests are filtering through the same
B - which is where the whole problem starts from. :-) Because request
2 overwrites the contextInfo written by request 1 - which is why both
Muzak (and I) suggested B has an internal list of contextInfos. But
that gets more tricky...

But thanks!

Ian

On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:

Hi Ian,

I didn't fully understand your reply to Muzak's suggestion, but this is
based on that and seems to fit the bill.

Sorry it's a bit messy but you get the idea...

Are there still issues with this one?

---

//call class b passing extra param
var b:B = new B();
b.addEventListener(Event.COMPLETE, onBComplete);
b.loadSomethingAndProcessIt("url.swf", someParameter);

function onBComplete(event:Event) {
var thingYouWant:Object = event.customEventValue;
}

//Class B based on Muzak's(thanks!)
>> class B {
>>
private var contextInfo:Object;

>>public function loadSomethingAndProcessIt(url:String,
ontextInfo:Object):void{
>>contextInfo = contectInfo;
>>  r a:A = new A();
>>  a.addEventListener(Event.COMPLETE,onALoaded);
>>  a.loadSomething(url);
>>}
>>
>>function onALoaded(event:Event):void {
>>   dispatchEvent(new CustomEvent(contextInfo));
>>}
>>
>> }

//Custom Event to be fired from Class B
package etc...
public class CustomEvent extends Event
{
private var customEventValue:Object;
Function CustomEvent(contextInfo) {
super(etc...)
customEventValue = contextInfo;
}
}

Sunil

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: 25 July 2007 14:16
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 Events

Oh, and reading the link you supplied, the only concrete suggestion is
from Aral Balkan, who suggests (as someone did in an earlier thread)
that you subclass the Event class.

How would that help in my case? Any suggestions? To go back to my
original example, if you assume class A is a black box that fires an
event of class Event (Event.COMPLETE), we have no way (to the best of
my knowledge) to make class A produce subclasses of Event instead;
unless the suggestion is to subclass A to produce different events,
which (depending on A's implementation) could be very difficult.

Ian

(Getting frustrated!)

On 7/25/07, Ian Thomas <[EMAIL PROTECTED]> wrote:
> On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> > Hi Ian,
> >
> > It seems like the "proper" way would be to create the extra
> > functions/classes to handle this. That would solve those two issues
> > which aren't major, but would make your code cleaner.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3 Events

2007-07-25 Thread Frank Pepermans
How about using a wrapper class?



package {

import flash.events.Event;
import flash.events.IEventDispatcher;

public final class Wrapper {

private var _contextInfo:Object;
private var _a:IEventDispatcher;

public function get content():IEventDispatcher {
return _a;
}

public function get contextInfo():Object {
return _contextInfo;
}

public function Wrapper(url:String, contextInfo:Object)
{
_contextInfo = contextInfo;
// new instance
_a = new A();
// or reference
_a = A.getInstance();
//
_a.addEventListener(Event.COMPLETE,
onCompleteEvent);
_a.loadSomething(url);
}

private function onCompleteEvent(eventObj:Event):void {
// implement custom event to which class B will
listen
dispatchEvent(new CustomEvent(eventObj.type,
_contextInfo));
// or specify a getter for contextInfo from this
Wrapper class
}

}
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: 25 July 2007 15:16
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 Events

Oh, and reading the link you supplied, the only concrete suggestion is
from Aral Balkan, who suggests (as someone did in an earlier thread)
that you subclass the Event class.

How would that help in my case? Any suggestions? To go back to my
original example, if you assume class A is a black box that fires an
event of class Event (Event.COMPLETE), we have no way (to the best of
my knowledge) to make class A produce subclasses of Event instead;
unless the suggestion is to subclass A to produce different events,
which (depending on A's implementation) could be very difficult.

Ian

(Getting frustrated!)

On 7/25/07, Ian Thomas <[EMAIL PROTECTED]> wrote:
> On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> > Hi Ian,
> >
> > It seems like the "proper" way would be to create the extra
> > functions/classes to handle this. That would solve those two issues
> > which aren't major, but would make your code cleaner.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Searching within XML

2007-07-25 Thread Matthias Dittgen

I think, it is not available at the moment.
I'll send you the AS2 sources offlist.
hth,
Matthias

2007/7/25, Omar Fouad <[EMAIL PROTECTED]>:

com.xfactorstudio.xml.xpath??? where can i get it???

On 7/25/07, Alan MacDougall <[EMAIL PROTECTED]> wrote:
>
> Omar Fouad wrote:
> > I am doing some application on flash that uses an XML file to store
> > data...
> > This application has a search form. I understand how to get through
> > the xml
> > by loops but i can't figure out how to get flash to know if this
> > "word" is
> > included within the xml nodes or not... Any simple idea?
> The steps would be something like this:
>
> 1. get all the nodes which might contain the word (probably as an array)
> 2. loop through the array, getting the string from each text node
> 3. use String.strpos to see if the word is present.
>
> Which step is giving you trouble? My code would look something like this:
>
> import com.xfactorstudio.xml.xpath.*;
>
> function findInXML(rootNode:XMLNode, target:String):Boolean
> {
> var nodeArray:Array = XPath.selectNodes(rootNode, "xpathQuery");
>
> for (var i:Number = 0; i < nodeArray.length; i++)
> {
>if (nodeArray[i].nodeValue.strpos(target) != -1)
>{
>   return true;
>}
> }
> }
>
> And there you go. The XPath query would be something like
> "parentNode/childNode/text()".
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Team Foundation Server

2007-07-25 Thread Doug Coning
Greetings All, 

Is anyone using Flash with Team Foundation Server for source control?
If so, do you mind sharing the steps it took to setup the connection to
TFS?

Thanks,

Doug Coning
Senior Web Development Programmer
FORUM Solutions
[EMAIL PROTECTED]
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please "reply to" sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Searching within XML

2007-07-25 Thread Alan MacDougall

Omar Fouad wrote:

com.xfactorstudio.xml.xpath??? where can i get it???

Well, XPath is just one way of searching through an XML document to get 
specific nodes. As you might guess from the package name, this 
particular implementation can be found at www.xfactorstudio.com . You 
can learn more about XPath itself at W3Schools, or from reading the 
official specification. Google will give you more links than I can, and 
faster.


If you're working with XML even a little, XPath is worth learning. It's 
like regular expressions -- a specialized little tool that can make very 
tedious things extremely easy.


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

2007-07-25 Thread eric e. dolecki

I figured out a decent work around for what I am doing - thanks for your
reply ;)

- eric


On 7/25/07, Hans Wichman <[EMAIL PROTECTED]> wrote:


Hi,
cant you just attach the dispmap to the parent mc holding the children?
greetz
JC

ps to get the placement correctly you might need to set the mask through
setMask()


On 7/24/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:
>
> I started coding up a little sniper scope thing.
>
> bmp on the stage of the scene.
> a larger bmp pulled out and used with a displacement map/mask to
simulate
> the magnified sniper scope with some displacement around the edges of
the
> scope occular thing.
>
> However I'd like to have mcs on the stage to show up in the scope as
well
> (enemies)... i haven't seen anything like this yet, or perhaps i need to
> redo my code to make things work properly.
>
> anyone have demo code or somethign that shows this effect in action?
>
> - eric
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/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] Searching within XML

2007-07-25 Thread Ron Wheeler

Google??? or try guessing from the name.

Omar Fouad wrote:

com.xfactorstudio.xml.xpath??? where can i get it???

On 7/25/07, Alan MacDougall <[EMAIL PROTECTED]> wrote:


Omar Fouad wrote:
> I am doing some application on flash that uses an XML file to store
> data...
> This application has a search form. I understand how to get through
> the xml
> by loops but i can't figure out how to get flash to know if this
> "word" is
> included within the xml nodes or not... Any simple idea?
The steps would be something like this:

1. get all the nodes which might contain the word (probably as an array)
2. loop through the array, getting the string from each text node
3. use String.strpos to see if the word is present.

Which step is giving you trouble? My code would look something like 
this:


import com.xfactorstudio.xml.xpath.*;

function findInXML(rootNode:XMLNode, target:String):Boolean
{
var nodeArray:Array = XPath.selectNodes(rootNode, "xpathQuery");

for (var i:Number = 0; i < nodeArray.length; i++)
{
   if (nodeArray[i].nodeValue.strpos(target) != -1)
   {
  return true;
   }
}
}

And there you go. The XPath query would be something like
"parentNode/childNode/text()".

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Send mail from a remoting method?

2007-07-25 Thread Dave Mennenoh
Anyone know if it's possible to send an email with PHP from a remoting 
function in AMFPHP? I can't seem to get it working... the rest of the method 
works, the mail() function just does nothing - and it works in a test 
script. Just not in the remoting method. Do I need to call a sep php page 
for this, and not do it through remoting? It just makes it a pain since all 
my info is already in the remoting method.


thanks


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


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

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


RE: [Flashcoders] AS3 Events

2007-07-25 Thread Sunil Jolly
Hi Ian,

I didn't fully understand your reply to Muzak's suggestion, but this is
based on that and seems to fit the bill.

Sorry it's a bit messy but you get the idea...

Are there still issues with this one?

---

//call class b passing extra param
var b:B = new B();
b.addEventListener(Event.COMPLETE, onBComplete);
b.loadSomethingAndProcessIt("url.swf", someParameter);

function onBComplete(event:Event) {
var thingYouWant:Object = event.customEventValue;
}

//Class B based on Muzak's(thanks!)
>> class B {
>>
private var contextInfo:Object;

>>public function loadSomethingAndProcessIt(url:String,
ontextInfo:Object):void{
>>contextInfo = contectInfo;
>>  r a:A = new A();
>>  a.addEventListener(Event.COMPLETE,onALoaded);
>>  a.loadSomething(url);
>>}
>>
>>function onALoaded(event:Event):void {
>>   dispatchEvent(new CustomEvent(contextInfo));
>>}
>>
>> }

//Custom Event to be fired from Class B
package etc...
public class CustomEvent extends Event
{
private var customEventValue:Object;
Function CustomEvent(contextInfo) {
super(etc...)
customEventValue = contextInfo;
}
}

Sunil

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: 25 July 2007 14:16
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 Events

Oh, and reading the link you supplied, the only concrete suggestion is
from Aral Balkan, who suggests (as someone did in an earlier thread)
that you subclass the Event class.

How would that help in my case? Any suggestions? To go back to my
original example, if you assume class A is a black box that fires an
event of class Event (Event.COMPLETE), we have no way (to the best of
my knowledge) to make class A produce subclasses of Event instead;
unless the suggestion is to subclass A to produce different events,
which (depending on A's implementation) could be very difficult.

Ian

(Getting frustrated!)

On 7/25/07, Ian Thomas <[EMAIL PROTECTED]> wrote:
> On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> > Hi Ian,
> >
> > It seems like the "proper" way would be to create the extra
> > functions/classes to handle this. That would solve those two issues
> > which aren't major, but would make your code cleaner.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Searching within XML

2007-07-25 Thread Ron Wheeler

It is hardy much more work to parse the XML manually.
We did a complex search (find me all the things that a fireman might use 
for personal protection during an earthquake or what respirators are 
used by first responders or what headgear does the police marine unit 
wear) without XPath. Just travelled through the XML tree and applied the 
search criteria.
We used XML to pass the search criteria as well. Nice separation between 
the user interface (responsible for building the search criteria) and 
the search engine (responsible for applying the search criteria to the 
XML database)


It appears that this code uses XPath to find the subtree of interest and 
then navigates the subtree.
XPath certainly makes it clearer if the tree is complex with lots of 
sub-trees that are not involved in the search.

You get right to the root of the tree of interest.

Ron


Alan MacDougall wrote:

Omar Fouad wrote:
I am doing some application on flash that uses an XML file to store 
data...
This application has a search form. I understand how to get through 
the xml
by loops but i can't figure out how to get flash to know if this 
"word" is

included within the xml nodes or not... Any simple idea?

The steps would be something like this:

1. get all the nodes which might contain the word (probably as an array)
2. loop through the array, getting the string from each text node
3. use String.strpos to see if the word is present.

Which step is giving you trouble? My code would look something like this:

import com.xfactorstudio.xml.xpath.*;

function findInXML(rootNode:XMLNode, target:String):Boolean
{
   var nodeArray:Array = XPath.selectNodes(rootNode, "xpathQuery");

   for (var i:Number = 0; i < nodeArray.length; i++)
   {
  if (nodeArray[i].nodeValue.strpos(target) != -1)
  {
 return true;
  }
   }
}

And there you go. The XPath query would be something like 
"parentNode/childNode/text()".


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

2007-07-25 Thread Hans Wichman

Hi,
cant you just attach the dispmap to the parent mc holding the children?
greetz
JC

ps to get the placement correctly you might need to set the mask through
setMask()


On 7/24/07, eric e. dolecki <[EMAIL PROTECTED]> wrote:


I started coding up a little sniper scope thing.

bmp on the stage of the scene.
a larger bmp pulled out and used with a displacement map/mask to simulate
the magnified sniper scope with some displacement around the edges of the
scope occular thing.

However I'd like to have mcs on the stage to show up in the scope as well
(enemies)... i haven't seen anything like this yet, or perhaps i need to
redo my code to make things work properly.

anyone have demo code or somethign that shows this effect in action?

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

2007-07-25 Thread Omar Fouad

com.xfactorstudio.xml.xpath??? where can i get it???

On 7/25/07, Alan MacDougall <[EMAIL PROTECTED]> wrote:


Omar Fouad wrote:
> I am doing some application on flash that uses an XML file to store
> data...
> This application has a search form. I understand how to get through
> the xml
> by loops but i can't figure out how to get flash to know if this
> "word" is
> included within the xml nodes or not... Any simple idea?
The steps would be something like this:

1. get all the nodes which might contain the word (probably as an array)
2. loop through the array, getting the string from each text node
3. use String.strpos to see if the word is present.

Which step is giving you trouble? My code would look something like this:

import com.xfactorstudio.xml.xpath.*;

function findInXML(rootNode:XMLNode, target:String):Boolean
{
var nodeArray:Array = XPath.selectNodes(rootNode, "xpathQuery");

for (var i:Number = 0; i < nodeArray.length; i++)
{
   if (nodeArray[i].nodeValue.strpos(target) != -1)
   {
  return true;
   }
}
}

And there you go. The XPath query would be something like
"parentNode/childNode/text()".

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

2007-07-25 Thread Alan MacDougall

Alan MacDougall wrote:


This looks completely straightforward and identical to Java... but 
when I do it, it catches the generic error. Now, obviously an Error 
instance is getting caught, which means one is getting thrown, which 
means my InvalidPathFormatException IS being recognized as a subclass 
of Error! It's just not getting caught by the right block! And it's 
not a priority thing, because if I omit the catch block for e:Error, I 
don't catch anything at all (but I DO get debug output of the string 
"Error").


One of the comments for the relevant Live Doc solved my problem: you 
have to use the entire qualified class name in your catch statement.


try
{
   stuff();
}
catch (e:com.mydomain.package.ExceptionClass)
{
   trace(e.message);
}

This chapter from Colin Moock's book ( 
http://www.actionscript.org/resources/articles/603/1/Exceptions-and-Exception-Handling/Page1.html 
) appears to miss this vital piece of information... I guess he tested 
it on a version of Flash Player that didn't have that bug?


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

2007-07-25 Thread Alan MacDougall

Omar Fouad wrote:
I am doing some application on flash that uses an XML file to store 
data...
This application has a search form. I understand how to get through 
the xml
by loops but i can't figure out how to get flash to know if this 
"word" is

included within the xml nodes or not... Any simple idea?

The steps would be something like this:

1. get all the nodes which might contain the word (probably as an array)
2. loop through the array, getting the string from each text node
3. use String.strpos to see if the word is present.

Which step is giving you trouble? My code would look something like this:

import com.xfactorstudio.xml.xpath.*;

function findInXML(rootNode:XMLNode, target:String):Boolean
{
   var nodeArray:Array = XPath.selectNodes(rootNode, "xpathQuery");

   for (var i:Number = 0; i < nodeArray.length; i++)
   {
  if (nodeArray[i].nodeValue.strpos(target) != -1)
  {
 return true;
  }
   }
}

And there you go. The XPath query would be something like 
"parentNode/childNode/text()".


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

2007-07-25 Thread Ian Thomas

Oh, and reading the link you supplied, the only concrete suggestion is
from Aral Balkan, who suggests (as someone did in an earlier thread)
that you subclass the Event class.

How would that help in my case? Any suggestions? To go back to my
original example, if you assume class A is a black box that fires an
event of class Event (Event.COMPLETE), we have no way (to the best of
my knowledge) to make class A produce subclasses of Event instead;
unless the suggestion is to subclass A to produce different events,
which (depending on A's implementation) could be very difficult.

Ian

(Getting frustrated!)

On 7/25/07, Ian Thomas <[EMAIL PROTECTED]> wrote:

On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> Hi Ian,
>
> It seems like the "proper" way would be to create the extra
> functions/classes to handle this. That would solve those two issues
> which aren't major, but would make your code cleaner.

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

2007-07-25 Thread Ian Thomas

On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:

Hi Ian,

It seems like the "proper" way would be to create the extra
functions/classes to handle this. That would solve those two issues
which aren't major, but would make your code cleaner.


Thanks, Sunil; but for clarity, _which_ extra functions/classes? None
of the classes that Muzak (for example) has suggested actually solve
the problem for the general case.

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

2007-07-25 Thread Sunil Jolly
Hi Ian,

It seems like the "proper" way would be to create the extra
functions/classes to handle this. That would solve those two issues
which aren't major, but would make your code cleaner.

Its more effort/work I guess but it might pay off in the long run!
(Which is what clean code is all about isn't it?) :)

If you were doing a quick knock-out job then Delegate/Proxy might be the
solution for that situation though. ;)

Sunil

PS - There are more discussions at
http://stimpson.flashvacuum.net/mt/archives/2006/08/as_30_delegate.html
(you've probably see that already)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: 25 July 2007 12:33
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 Events

Oh - and off the top of my head I can think of two fairly obvious
objections/complications:
i) Not type safe at compile time (but should(?) complain at runtime if
the wrong argument types are sent, at least in the debug player)
ii) Potential memory leakage with creating a closure - you'll have to
remember to remove the Callback object as a listener (unless you're
using weak references).

Ian

On 7/25/07, Ian Thomas <[EMAIL PROTECTED]> wrote:
> On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> > Does anyone know why Delegate is frowned upon? Seems like a simple
and
> > elegant solution to the problem to me!
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Adobe trial download links screwed up??

2007-07-25 Thread Digg Yeah

Good evening,

Looks like all trial download links are broken at: www.adobe.com/downloads/

This doesnt seem to be a browser issue .Can someone at Adobe please take a
look at this issue?

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

2007-07-25 Thread Omar Fouad

I am doing some application on flash that uses an XML file to store data...
This application has a search form. I understand how to get through the xml
by loops but i can't figure out how to get flash to know if this "word" is
included within the xml nodes or not... Any simple idea?

Regards

--
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] Returning a String fails

2007-07-25 Thread Mendelsohn, Michael
Hi folks, thanks for all the responses!  They are greatly appreciated.

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

2007-07-25 Thread Ian Thomas
Oh - and off the top of my head I can think of two fairly obvious
objections/complications:
i) Not type safe at compile time (but should(?) complain at runtime if
the wrong argument types are sent, at least in the debug player)
ii) Potential memory leakage with creating a closure - you'll have to
remember to remove the Callback object as a listener (unless you're
using weak references).

Ian

On 7/25/07, Ian Thomas <[EMAIL PROTECTED]> wrote:
> On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> > Does anyone know why Delegate is frowned upon? Seems like a simple and
> > elegant solution to the problem to me!
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Events

2007-07-25 Thread Ian Thomas
On 7/25/07, Sunil Jolly <[EMAIL PROTECTED]> wrote:
> Does anyone know why Delegate is frowned upon? Seems like a simple and
> elegant solution to the problem to me!

Sunil,
   Yeah, that was my initial question. When I posted an AS3 version of
Delegate (to deal with this problem) a few months back, there seemed
to be general disapproval:
http://groups.google.com/group/flashcoders-storage/browse_thread/thread/2e96884b04d28f00/22eb09149a920a6e?lnk=gst&q=delegate+Ian&rnum=1#22eb09149a920a6e

I haven't had a chance to look deeply into it until now (with the
porting of the new framework) and I can't find an elegant alternative.

It didn't help that my original example used buttons, which are easy
to find alternative answers for! It's very different when dealing with
asynchronous loading or asynchronous animations...

So, yes - reasons for the original objections would be useful, too. :-)

(For info, my original blog post on this here:
http://wildwinter.blogspot.com/2007/04/come-back-delegate-all-is-forgiven.html
)

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

2007-07-25 Thread Ian Thomas
On 7/25/07, Muzak <[EMAIL PROTECTED]> wrote:
> Hi Ian,
>
> Been thinking about this a bit more and you're correct, contextInfo doesn't 
> belong in class A and I'd go for storing a list of
> contextInfos in class B.

Hiya Muzak,
  Yes, just been trying that one out. But (sadly!) again it doesn't
hold water, as the contextInfos need to be in a hash/Dictionary, and
need to have a key. For the general solution, it can be very difficult
to find a unique key that can be recreated from the Event in the
callback.

  For example, in the loader example I gave, object A could be used as
the key (and recreated from Event.target). But not if A is a service
object that gets used for each B request (i.e. use the same A lots
instead of creating a new A each time). So what else could be used as
a key? The url - no, because multiple overlapping requests could be
issued to the same url (it has happened!).

  Tricky. A solution could be found for this instance - but not a
general pattern.

  So I think I'm left with my Callback.create(handler,arg1,arg2)
method (like old Delegate/Proxy), unless anyone has any better
suggestions.

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

2007-07-25 Thread Sunil Jolly
Hi Ian, back at the start of this you asked:

> - Why, in AS3, is my equivalent of using Delegate Not The Done Thing?
> (Someone mentioned type-safety; and yes, at compile time, you'll lose
> type safety)

Does anyone know why Delegate is frowned upon? Seems like a simple and
elegant solution to the problem to me!

Sunil

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: 25 July 2007 11:04
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] AS3 Events

Hi Ian,

Been thinking about this a bit more and you're correct, contextInfo
doesn't belong in class A and I'd go for storing a list of 
contextInfos in class B.

regards,
Muzak

- Original Message - 
From: "Ian Thomas" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 25, 2007 10:14 AM
Subject: Re: [Flashcoders] AS3 Events


> On 7/25/07, Muzak <[EMAIL PROTECTED]> wrote:
>> Well, alot depends on the context of the whole thing (the bigger
picture).
>> If contextInfo isn't used/part of class A or B, it shouldn't even be
there.
>>
>> But since you said:
>> > object B wraps it and wants to do something context specific once
>> > A has finished loading
>>
>> Then contextInfo should probably be a property of A or B.
>> IMO that doesn't break encapsulation but rather enforces it.
>
> contextInfo is relevant to B, not A; and I agree, that doesn't break
> encapsulation (it does if contextInfo is placed in A).
>
> However, because there might be multiple outstanding requests through
> B, B can't simply have a property called contextInfo (because each
> request has a different contextInfo). It could conceivably have a
> _map_ of contextInfos, keyed in some way to each request.
>
> But this just seems like overkill, particularly when a simply
> Delegate(handler,contextInfo) solves the problem and is a lot easier
> to read.
>
> I honestly can't understand why other people aren't tripping over this
> situation; it seems an obvious problem in an environment like Flash,
> where you have lots of asynchronous requests kicking around. I was
> hoping there'd be a standard approach to the issue; it looks like
> there isn't.
>
> Ian

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

2007-07-25 Thread Muzak
Hi Ian,

Been thinking about this a bit more and you're correct, contextInfo doesn't 
belong in class A and I'd go for storing a list of 
contextInfos in class B.

regards,
Muzak

- Original Message - 
From: "Ian Thomas" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 25, 2007 10:14 AM
Subject: Re: [Flashcoders] AS3 Events


> On 7/25/07, Muzak <[EMAIL PROTECTED]> wrote:
>> Well, alot depends on the context of the whole thing (the bigger picture).
>> If contextInfo isn't used/part of class A or B, it shouldn't even be there.
>>
>> But since you said:
>> > object B wraps it and wants to do something context specific once
>> > A has finished loading
>>
>> Then contextInfo should probably be a property of A or B.
>> IMO that doesn't break encapsulation but rather enforces it.
>
> contextInfo is relevant to B, not A; and I agree, that doesn't break
> encapsulation (it does if contextInfo is placed in A).
>
> However, because there might be multiple outstanding requests through
> B, B can't simply have a property called contextInfo (because each
> request has a different contextInfo). It could conceivably have a
> _map_ of contextInfos, keyed in some way to each request.
>
> But this just seems like overkill, particularly when a simply
> Delegate(handler,contextInfo) solves the problem and is a lot easier
> to read.
>
> I honestly can't understand why other people aren't tripping over this
> situation; it seems an obvious problem in an environment like Flash,
> where you have lots of asynchronous requests kicking around. I was
> hoping there'd be a standard approach to the issue; it looks like
> there isn't.
>
> Ian


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

2007-07-25 Thread Omar Fouad

I am doing some application on flash that uses an XML file to store data...
This application has a search form. I understand how to get through the xml
by loops but i can't figure out how to get flash to know if this "word" is
included within the xml nodes or not... Any simple idea?

Regards

--
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] AS3 Events

2007-07-25 Thread Ian Thomas

On 7/25/07, Muzak <[EMAIL PROTECTED]> wrote:

Well, alot depends on the context of the whole thing (the bigger picture).
If contextInfo isn't used/part of class A or B, it shouldn't even be there.

But since you said:
> object B wraps it and wants to do something context specific once
> A has finished loading

Then contextInfo should probably be a property of A or B.
IMO that doesn't break encapsulation but rather enforces it.


contextInfo is relevant to B, not A; and I agree, that doesn't break
encapsulation (it does if contextInfo is placed in A).

However, because there might be multiple outstanding requests through
B, B can't simply have a property called contextInfo (because each
request has a different contextInfo). It could conceivably have a
_map_ of contextInfos, keyed in some way to each request.

But this just seems like overkill, particularly when a simply
Delegate(handler,contextInfo) solves the problem and is a lot easier
to read.

I honestly can't understand why other people aren't tripping over this
situation; it seems an obvious problem in an environment like Flash,
where you have lots of asynchronous requests kicking around. I was
hoping there'd be a standard approach to the issue; it looks like
there isn't.

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

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