[Flashcoders] A utility to extract Actionscript from an FLA, and create .as files

2010-01-06 Thread matt stuehler
All,

I'm inheriting a rather large Flash application in which all of the
Actionscript is stored in the FLA. Specifically, the FLA has dozens of
movie clips, and each clip has it's own Actionscript (typically on the
first frame).

Is there any way to extract all of the Actionscript into separate .as
files and replace the Actionscript in the FLA with an #include
[filename].as directive?

I've come across the oyFashDoc.jsfl Flash extension which does some of
what I'm looking for (it scrapes all the Actionscript, but into a
single XML file).

I don't know much about JSFL; otherwise, I'd try modding that script
myself. Hopefully, someone has already done it...

Many thanks in advance for any insight or advice!

Cheers,
Matt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Java servlets and receiving XML fr om Flash’s xml.sendAndLoad() function

2009-12-17 Thread matt stuehler
Dave,

I've posted this all on a variety of forums, including
StackOverflow.com, and I haven't really gotten much of an explanation.

Here's a link to the technote I was referring to:

http://kb2.adobe.com/cps/159/tn_15908.html

The strange thing is that, according to the Actionscript
documentation, xml.sendAndLoad unambiguously uses POST.

However, according to the Java Servlet team (who I don't doubt), the
data is sent to them as a GET.

I don't know how to explain this, and since the Java team insists that
the data be sent using POST, I'm stuck.

Any insight or advice would be greatly appreciated.

Cheers,
Matt




On Wed, Dec 16, 2009 at 3:52 PM, Dave Watts  wrote:
>> That's when I discovered the Adobe Technote that clarifies that "Flash
>> sends the data in a GET/POST 'hybrid' format", whatever that means.
>> Flash is apparently doing something a little unorthodox.
>
> Can you point me to that technote? Because there's simply NO SUCH
> THING as a "hybrid" format. An HTTP request uses one of the standard
> HTTP verbs (GET, POST, HEAD, etc). If you want to provide an HTTP
> request body, you use HTTP POST. I'm more of a Flex guy, so I don't
> really use sendAndLoad, but if I recall correctly you specify whether
> it's a GET or a POST as an optional argument if you're using loadVars,
> and it's always POST if you use XML.sendAndLoad.
>
> Perhaps their Java app has some sort of HTTP redirect in front of it?
> I don't know what happens when you get a redirect in a case like this.
> A traffic sniffer like Wireshark is your friend for things like this.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Java servlets and receiving XML fr om Flash’s xml.sendAndLoad() function

2009-12-16 Thread matt stuehler
Karl,

Many thanks for your response!

However, I should clarify...

I guess what I'm really looking for is some instructions for the Java
Servlet team, on how to capture the XML sent by Flash.

In other words, here's what I've said:

Me: "Team - I will POST an XML document to the URL you've provided"

Them: "We're not seeing the XML. In fact, if we check our log, it
looks like you're using GET, not POST"

Me: "I'm not sure why that's the case. According to the Adobe/Flash
documentation xml.sendAndLoad ALWAYS uses POST"

That's when I discovered the Adobe Technote that clarifies that "Flash
sends the data in a GET/POST 'hybrid' format", whatever that means.
Flash is apparently doing something a little unorthodox.

So, even though I don't know Java - I'm hoping someone on this forum
knows both Flash and something about Java Servlets, and can give me a
pointer about catching the XML properly in the servlet. Once the Java
team "gets" the XML, they'll be able to parse it and proceed from
there.

For example, in PHP, here's how you'd catch the XML sent from Flash:

$doc = new DomDocument();
$doc->loadXML(file_get_contents("php://input"));

Is there an equivalent method for a Java Servlet that account for the
somewhat strange way Flash POSTs the XML data?

Cheers,
Matt







On Wed, Dec 16, 2009 at 3:48 AM, Karl DeSaulniers  wrote:
> Maybe try just send. Unless you need a response sent back to your flash
> file.
>
> Karl
>
> Sent from losPhone
>
> On Dec 16, 2009, at 2:34 AM, matt stuehler  wrote:
>
>> All,
>>
>> I'm working on a Flash application that's supposed to send XML data to
>> a Java Servlet.
>>
>> I'm responsible for the Flash app; another team is responsible for the
>> Java Servlet.
>>
>> The problem we're having is that I'm familiar with Flash but not Java
>> and Servlets; the other team is expert in Java and Servlets, but
>> unfamiliar with Flash.
>>
>> Anyway, I have some AS2 code that uses sendAndLoad() to send XML data
>> to a server.
>>
>> It works great when I send it to PHP, or ASP, or ASP.net (stuff I'm
>> familiar with).
>>
>> However, the Java team is having trouble receiving the information
>> with their servlet.
>>
>> One of the developers sent me a log entry:
>>
>>   GET /portal/delegate/ParticipantService?svc=someServiceName&XMLStr=[the
>> encoded xml I sent]
>>
>> As I understand it, xml.sendAndLoad uses POST, not GET, so I don't
>> understand why this shows up in the log as a GET. Any ideas or
>> explanation?
>>
>> Here's what an Adobe Technote says about this:
>>
>>> When loadVariables or getURL actions are
>>> used to send data to Java servlets it
>>> can appear that the data is being sent
>>> using a GET request, when the POST
>>> method was specified in the Flash
>>> movie.
>>>
>>> This happens because Flash sends the
>>> data in a GET/POST hybrid format. If
>>> the data were being sent using a GET
>>> request, the variables would appear in
>>> a query string appended to the end of
>>> the URL. Flash uses a GET server
>>> request, but the Name/Value pairs
>>> containing the variables are sent in a
>>> second transmission using POST.
>>> Although this causes the servlet to
>>> trigger the doGet() method, the
>>> variables are still available in the
>>> server request.
>>
>>
>> Obviously, it's possible that the issue is with my Actionscript code,
>> but as I said, it works if I send it to a PHP page, where I pick it up
>> with something like this:
>>
>>   $doc = new DomDocument();
>>   $doc->loadXML(file_get_contents("php://input"));
>>
>> So, I guess what I need to know is how to tell the Java team to look
>> for and capture the XML that's been sent...
>>
>> Many thanks in advance!
>>
>> Cheers,
>> Matt Stuehler
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Java servlets and receiving XML f rom Flash’s xml.sendAndLoad() function

2009-12-16 Thread matt stuehler
All,

I'm working on a Flash application that's supposed to send XML data to
a Java Servlet.

I'm responsible for the Flash app; another team is responsible for the
Java Servlet.

The problem we're having is that I'm familiar with Flash but not Java
and Servlets; the other team is expert in Java and Servlets, but
unfamiliar with Flash.

Anyway, I have some AS2 code that uses sendAndLoad() to send XML data
to a server.

It works great when I send it to PHP, or ASP, or ASP.net (stuff I'm
familiar with).

However, the Java team is having trouble receiving the information
with their servlet.

One of the developers sent me a log entry:

GET /portal/delegate/ParticipantService?svc=someServiceName&XMLStr=[the
encoded xml I sent]

As I understand it, xml.sendAndLoad uses POST, not GET, so I don't
understand why this shows up in the log as a GET. Any ideas or
explanation?

Here's what an Adobe Technote says about this:

> When loadVariables or getURL actions are
> used to send data to Java servlets it
> can appear that the data is being sent
> using a GET request, when the POST
> method was specified in the Flash
> movie.
>
> This happens because Flash sends the
> data in a GET/POST hybrid format. If
> the data were being sent using a GET
> request, the variables would appear in
> a query string appended to the end of
> the URL. Flash uses a GET server
> request, but the Name/Value pairs
> containing the variables are sent in a
> second transmission using POST.
> Although this causes the servlet to
> trigger the doGet() method, the
> variables are still available in the
> server request.


Obviously, it's possible that the issue is with my Actionscript code,
but as I said, it works if I send it to a PHP page, where I pick it up
with something like this:

$doc = new DomDocument();
$doc->loadXML(file_get_contents("php://input"));

So, I guess what I need to know is how to tell the Java team to look
for and capture the XML that's been sent...

Many thanks in advance!

Cheers,
Matt Stuehler
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Java servlets and receiving XML from Flash's xml.sendAndLoad() function

2009-12-16 Thread matt stuehler
All,

I'm working on a Flash application that's supposed to send XML data to
a Java Servlet.

I'm responsible for the Flash app; another team is responsible for the
Java Servlet.

The problem we're having is that I'm familiar with Flash but not Java
and Servlets; the other team is expert in Java and Servlets, but
unfamiliar with Flash.

Anyway, I have some AS2 code that uses sendAndLoad() to send XML data
to a server.

It works great when I send it to PHP, or ASP, or ASP.net (stuff I'm
familiar with).

However, the Java team is having trouble receiving the information
with their servlet.

One of the developers sent me a log entry:

   GET /portal/delegate/ParticipantService?svc=someServiceName&XMLStr=[the
encoded xml I sent]

As I understand it, xml.sendAndLoad uses POST, not GET, so I don't
understand why this shows up in the log as a GET. Any ideas or
explanation?

Here's what an Adobe Technote says about this:

> When loadVariables or getURL actions are
> used to send data to Java servlets it
> can appear that the data is being sent
> using a GET request, when the POST
> method was specified in the Flash
> movie.
>
> This happens because Flash sends the
> data in a GET/POST hybrid format. If
> the data were being sent using a GET
> request, the variables would appear in
> a query string appended to the end of
> the URL. Flash uses a GET server
> request, but the Name/Value pairs
> containing the variables are sent in a
> second transmission using POST.
> Although this causes the servlet to
> trigger the doGet() method, the
> variables are still available in the
> server request.


Obviously, it's possible that the issue is with my Actionscript code,
but as I said, it works if I send it to a PHP page, where I pick it up
with something like this:

   $doc = new DomDocument();
   $doc->loadXML(file_get_contents("php://input"));

So, I guess what I need to know is how to tell the Java team to look
for and capture the XML that's been sent...

Many thanks in advance!

Cheers,
Matt Stuehler
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS2 equivalent for Flex HTTPService and e4x

2009-10-20 Thread matt stuehler
All,

I'm working on a Flash application (AS2) that's supposed to consume
XML data provided by a Java Servlet.

I've been provided a simple Flex application as a demo for accessing
that service. That Flex app uses HTTPService (resultFormat="e4x") to
access the data.

Of course, I need to build the application in Flash, not Flex, so I'd
like to know how to build something in Flash/AS2 that does the same
thing.

For example, I tried this:

var _xml = new XML();
_xml .ignoreWhite = true;
_xml .onLoad = xmlLoaded;
_xml.load("https://someURL/servlet/SomeServlet?action=input";);

function xmlLoaded(success) {

trace("success: "+success);
trace(this);

}


However, this doesn't work (the xmlLoaded() function is called, but
"success" is false, and "trace(this)" outputs nothing.

Is it possible to do what I'm trying to do? Any advice/insight greatly
appreciated!

Cheers,
Matt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS2 equivalent for Flex HTTPService and e4x

2009-10-20 Thread matt stuehler
All,

I'm working on a Flash application (AS2) that's supposed to consume
XML data provided by a Java Servlet.

I've been provided a simple Flex application as a demo for accessing
that service. That Flex app uses HTTPService (resultFormat="e4x") to
access the data.

Of course, I need to build the application in Flash, not Flex, so I'd
like to know how to build something in Flash/AS2 that does the same
thing.

For example, I tried this:

var _xml = new XML();
_xml .ignoreWhite = true;
_xml .onLoad = xmlLoaded;
_xml.load("https://someURL/servlet/SomeServlet?action=input";);

function xmlLoaded(success) {

trace("success: "+success);
trace(this);

}


However, this doesn't work (the xmlLoaded() function is called, but
"success" is false, and "trace(this)" outputs nothing.

Is it possible to do what I'm trying to do? Any advice/insight greatly
appreciated!

Cheers,
Matt Stuehler
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash CS3 IDE reverting "Use Device Fonts" back to "Anti-alias for animation"

2009-10-08 Thread matt stuehler
Chris,

I can't thank you enough... This is an awesome solution to the problem.

More importantly, the whole concept of JSFL is new to me, but it looks
like a powerful time saver. I really appreciate this pointer.

And the scripts you provided are perfect examples.

Again, many, many thanks!

Cheers,
Matt


On Thu, Oct 8, 2009 at 7:33 PM, Chris Foster
 wrote:
> Oops - forgot to include the thread I mentioned...
>
> http://www.actionscript.org/forums/showthread.php3?t=139754
>
> C:
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of matt
> stuehler
> Sent: Friday, 9 October 2009 8:47 AM
> To: Flash Coders List
> Subject: [Flashcoders] Flash CS3 IDE reverting "Use Device Fonts" back
> to "Anti-alias for animation"
>
> All,
>
> Apologies in advance... this is a very specific question that's not
> exactly about programming. Rather, a problem I'm having when programming
> in the Flash CS3 IDE.
>
> Here's the issue.
>
> Occasionally, when I'm working on an application that uses very small
> fonts, I find that I get better results if I use device fonts rather
> than anti-aliased fonts.
>
> (I know I can use bitmap text or a bitmap font, but I find that the
> kerning in these fonts is pretty crappy, and device fonts usually render
> better).
>
> However, I notice that SOMETIMES, if a save an FLA that uses Static Text
> fields with the "Use Device Font" setting, the next time I open Flash to
> edit the file, all of those fields have reverted back to "Anti-alias for
> animation."
>
> Strangely, this does not happen with text fields that are set to
> "Dynamic Text" or "Input Text".
>
> This is hugely frustrating... I typically have to go through my entire
> FLA and manually reset every static text field back to "Use Device
> Fonts".
>
> This doesn't affect the compiled SWF - once compiled, the fonts stay the
> way they should. It ONLY affects the FLA.
>
> Many thanks in advance for any advice or insight.
>
> Cheers,
> Matt Stuehler
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> This e-mail, including any attached files, may contain confidential and 
> privileged information for the sole use of the intended recipient.  Any 
> review, use, distribution, or disclosure by others is strictly prohibited.  
> If you are not the intended recipient (or authorized to receive information 
> for the intended recipient), please contact the sender by reply e-mail and 
> delete all copies of this message.
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash CS3 IDE reverting “Use Device Fonts” back to “Anti-alias for animation”

2009-10-08 Thread matt stuehler
All,

Apologies in advance... this is a very specific question that's not
exactly about programming. Rather, a problem I'm having when
programming in the Flash CS3 IDE.

Here's the issue.

Occasionally, when I'm working on an application that uses very small
fonts, I find that I get better results if I use device fonts rather
than anti-aliased fonts.

(I know I can use bitmap text or a bitmap font, but I find that the
kerning in these fonts is pretty crappy, and device fonts usually
render better).

However, I notice that SOMETIMES, if a save an FLA that uses Static
Text fields with the "Use Device Font" setting, the next time I open
Flash to edit the file, all of those fields have reverted back to
"Anti-alias for animation."

Strangely, this does not happen with text fields that are set to
"Dynamic Text" or "Input Text".

This is hugely frustrating... I typically have to go through my entire
FLA and manually reset every static text field back to "Use Device
Fonts".

This doesn't affect the compiled SWF - once compiled, the fonts stay
the way they should. It ONLY affects the FLA.

Many thanks in advance for any advice or insight.

Cheers,
Matt Stuehler
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Problems with browser rendering fonts when antiAliasType = advanced

2009-07-08 Thread matt stuehler
All,

I've recently noticed a strange problem when using antiAliasType =
advanced in textfields that include more than one font family.

When I play a SWF in a browser - Flash doesn't always handle character
spacing properly - spaces disappear, characters overlap, etc. The
kerning is sometimes way off.

However, when I compile and run the SWF through the IDE (or play the
SWF locally using the Flash player), everything looks just like it
should.

As soon as I set antiAliasType = "normal", the problem disappears.
However, this isn't a great solution, because the font isn't as
readable.

Does the Flash browser plug-in have a known problem rendering fonts
when the antiAliasType is set to "advanced"?

Many thanks in advance!

Cheers,
Matt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Algorithm for distributing labels along a timeline without overlapping

2009-01-16 Thread matt stuehler
All,

[Sorry if this is a repost... some email issues today...]

Hope I can phrase this question clearly...

I'm working on an application that will display a visual timeline with
a vertical orientation.

At various points along the timeline, it will display key
markers/milestones. Each one of these markers will have a label.

The problem arises when several milestones are bunched together. If I
draw the label for each marker at the exact y coordinate that
corresponds with that particular point in time, the labels will
overlap, and are unreadable.

One obvious solution is to stack the labels horizontally, but because
of the particular layout of this application, that's not possible.

So, what I need is an algorithm that will nudge the Y coordinate of
various labels just enough to get everything to fit. Then, I'll draw a
hairline from the label to the exact Y coordinate on the timeline that
it's associated with.

I could start with the top label, and then step through each label
below, moving them each down enough to remove overlaps. But that could
result in a lot more moving than necessary, and won't use space
optimally. A better solution would be one that moves some up, some
down, to minimize the total distance.

Here's an exact example of what I'm trying to accomplish:
http://www.smartmoney.com/fundanalyzer/

Is anyone aware of an algorithm that does something like this?

Many thanks in advance for any insights or advice!

Cheers,
Matt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Algorithm for distributing labels along a timeline without overlapping

2009-01-16 Thread matt stuehler
All,

Hope I can phrase this question clearly...

I'm working on an application that will display a visual timeline with
a vertical orientation.

At various points along the timeline, it will display key
markers/milestones. Each one of these markers will have a label.

The problem arises when several milestones are bunched together. If I
draw the label for each marker at the exact y coordinate that
corresponds with that particular point in time, the labels will
overlap, and are unreadable.

One obvious solution is to stack the labels horizontally, but because
of the particular layout of this application, that's not possible.

So, what I need is an algorithm that will nudge the Y coordinate of
various labels just enough to get everything to fit. Then, I'll draw a
hairline from the label to the exact Y coordinate on the timeline that
it's associated with.

I could start with the top label, and then step through each label
below, moving them each down enough to remove overlaps. But that could
result in a lot more moving than necessary, and won't use space
optimally. A better solution would be one that moves some up, some
down, to minimize the total distance.

Here's an exact example of what I'm trying to accomplish:
http://www.smartmoney.com/fundanalyzer/

Is anyone aware of an algorithm that does something like this?

Many thanks in advance for any insights or advice!

Cheers,
Matt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Drawing a continuous curved line through n points in AS1 or AS2 (Catmull-Rom splines?)

2008-11-16 Thread matt stuehler
Everyone,

Many thanks for these excellent examples and suggestions. Ivan's
example in particular is really slick.

One more example I found that's also really terrific: Andreas Weber's
MotionDraw class
(http://www.motiondraw.com/md/as_samples/t/CatmullRomSpline/tween.html)

I wish I wasn't so math illiterate - I could be a better judge of the
quality of each of these solutions. It does look like there are MANY
solutions to drawing a curved line through a series of points, but in
my naive opinion, Andreas' class produces aesthetically beautiful
curves - rounded, but not too much, and very efficient.

Anyway, thanks again to all.

Cheers,
Matt Stuehler



On Sun, Nov 16, 2008 at 8:07 AM, Janis Radins <[EMAIL PROTECTED]> wrote:
> This also might be ready made solution to use:
> http://www.mediaverk.lv/asd/#polygon
>
> 2008/11/15 Ivan Dembicki <[EMAIL PROTECTED]>
>
>> Hello matt,
>>
>> look at
>> http://bezier.googlecode.com/files/ru.bezier.zip
>>
>>
>> --
>> iv
>> http://www.bezier.ru
>> http://bezier.googlecode.com
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Drawing a continuous curved line through n points in AS1 or AS2 (Catmull-Rom splines?)

2008-11-15 Thread matt stuehler
All,

I'm looking for an AS1 (ideal) or AS2 version of a function that will
draw a continuous curved line through n points. I don't know much
about the math behind this, but I think that a Catmull-Rom spline is
what I'm looking for.

I've found a terrific example in AS3
(http://www.cartogrammar.com/blog/continuous-curves-with-actionscript-3),
but it uses a number of AS3 classes that I don't have access to in AS2
(e.g., fl.motion.BezierSegment).

Can anyone share a working example, or point me in a useful direction?

Many thanks in advance!

Cheers,
Matt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Playing one SWF inside another when the inner swf has an audio layer with sync=Stream

2008-08-06 Thread matt stuehler
Cedric, Ian,

Again, many thanks for your time, and looking into this for me.

It looks like this did this trick...

The audio file in the inner SWF was and .mp3, and had been imported
into the library.

I checked the export settings in the properties, and it "Compression"
setting was "Default."

So, I tried changing that to MP3.

Also, I looked closely at the Publish settings...

There, you can choose the Compression setting for "Audio stream" - I
set that to MP3 also.

The, republished the movie, and voila! I worked!

Sorry if this was as obvious as the nose on my face, but I don't know
much about working with sounds in Flash, and compression settings.

Have a great evening!

Cheers,
Matt


On Wed, Aug 6, 2008 at 4:46 PM, Cedric Muller <[EMAIL PROTECTED]> wrote:
> Yep right :S
> and what if you put a 'stop' audio event (with the sound you want to stream)
> in a keyframe *previous* to the 'sync=Start' event ?
> In essence, if your sequence (timeline + audio sync) start at frame 3, you
> could put a keyframe at frame 2 with event 'stop' and the sound you want. I
> don't really know what is happening here, but my idea is to force flash to
> fully init the sound before it starts on playing your timeline. As Ian
> pointed out, the sound seems not fully loaded.
>
> then:
>
> function onLoadInit(target_mc:MovieClip):Void {
>   target_mc.play();
> }
>
>
> you could maybe add a 'stop();' in the first frame of your loaded SWF. And
> modify the onLoadInit to:
>
> function onLoadInit(target_mc:MovieClip):Void {
>   target_mc.gotoAnPlay(3);
> }
>
> so, in conclusion:
> first frame of your loaded SWF: stop();
> 2nd frame of your loaded SWF: audio event : 'sync=Stop'
> 3rd frame of your loaded SWF: the beginning of your 2'700 frames animation
>
>
> hth :S
> Cedric
>
>
>
>> Cedric,
>>
>> Many thanks for the suggestion.
>>
>> However, the audio track for the inner SWF is a voiceover, that must be in
>> sync with the movie. It seems like "sync=Start" means that the audio
>> starts
>> playing, and continues regardless of which frame is showing in the
>> timeline.
>>
>> With "Sync=Stream", the audio track and the frame playhead move in
>> lockstep,
>> which is what I need. Unfortunately, it seems to have this ugly
>> side-effect...
>>
>> Cheers,
>> Matt
>>
>> On Wed, Aug 6, 2008 at 3:56 PM, Cedric Muller <[EMAIL PROTECTED]> wrote:
>>
>>> what if you set the audio track event to 'start' instead of 'stream' ?
>>>
>>> Cedric
>>>
>>>
>>>  All,

 More information on a question I posted earlier...

 I'm trying to load a SWF and play it inside another SWF.

 Both SWFs are targeted to use Flash Player 8, and AS 2.0

 So, in the parent, I've got code that looks like this:

  var movie_mc:MovieClip = this.createEmptyMovieClip("movie_mc",
 this.getNextHighestDepth());

  var mcLoader:MovieClipLoader  = new MovieClipLoader();
  mcLoader.addListener(this);
  mcLoader.loadClip("someothermovie.swf",movie_mc);

 function onLoadInit(target_mc:MovieClip):Void {
  target_mc.play();
 }


 When I run this in the Flash IDE, it runs beautifully.

 However, when I try to play the movie in a browser, the inner movie
 plays for a few frames, then just stops playing.

 So potentially relevant facts -

 - Both movies are set to run at 30 FPS
 - The inner movie is about 2,700 frames long
 - The inner movie has an audio track embedded on one of the layers
 - The audio track has sync=Stream

 I'm definitely sure the inner movie has stopped playing - I set an
 interval in the parent movie that checks the inner movie's
 _currentframe, and displays it in a text field - sure enough - it gets
 to about frame 25, and just stops.

 Notably - if I remove the audio track from the inner swf, the entire
 thing runs perfectly, both in the Flash IDE and in a browser.

 So, i'm assuming the audio track embedded in a layer, and/or
 Sync=Stream has something to do with this?

 Any advice or insight is MUCH appreciated!

 Cheers,
 Matt

> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Playing one SWF inside another when the inner swf has an audio layer with sync=Stream

2008-08-06 Thread matt stuehler
Cedric,

Many thanks for the suggestion.

However, the audio track for the inner SWF is a voiceover, that must be in
sync with the movie. It seems like "sync=Start" means that the audio starts
playing, and continues regardless of which frame is showing in the timeline.

With "Sync=Stream", the audio track and the frame playhead move in lockstep,
which is what I need. Unfortunately, it seems to have this ugly
side-effect...

Cheers,
Matt

On Wed, Aug 6, 2008 at 3:56 PM, Cedric Muller <[EMAIL PROTECTED]> wrote:

> what if you set the audio track event to 'start' instead of 'stream' ?
>
> Cedric
>
>
>  All,
>>
>> More information on a question I posted earlier...
>>
>> I'm trying to load a SWF and play it inside another SWF.
>>
>> Both SWFs are targeted to use Flash Player 8, and AS 2.0
>>
>> So, in the parent, I've got code that looks like this:
>>
>>  var movie_mc:MovieClip = this.createEmptyMovieClip("movie_mc",
>> this.getNextHighestDepth());
>>
>>  var mcLoader:MovieClipLoader  = new MovieClipLoader();
>>  mcLoader.addListener(this);
>>  mcLoader.loadClip("someothermovie.swf",movie_mc);
>>
>> function onLoadInit(target_mc:MovieClip):Void {
>>   target_mc.play();
>> }
>>
>>
>> When I run this in the Flash IDE, it runs beautifully.
>>
>> However, when I try to play the movie in a browser, the inner movie
>> plays for a few frames, then just stops playing.
>>
>> So potentially relevant facts -
>>
>> - Both movies are set to run at 30 FPS
>> - The inner movie is about 2,700 frames long
>> - The inner movie has an audio track embedded on one of the layers
>> - The audio track has sync=Stream
>>
>> I'm definitely sure the inner movie has stopped playing - I set an
>> interval in the parent movie that checks the inner movie's
>> _currentframe, and displays it in a text field - sure enough - it gets
>> to about frame 25, and just stops.
>>
>> Notably - if I remove the audio track from the inner swf, the entire
>> thing runs perfectly, both in the Flash IDE and in a browser.
>>
>> So, i'm assuming the audio track embedded in a layer, and/or
>> Sync=Stream has something to do with this?
>>
>> Any advice or insight is MUCH appreciated!
>>
>> Cheers,
>> Matt
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Playing one SWF inside another when the inner swf has an audio layer with sync=Stream

2008-08-06 Thread matt stuehler
All,

More information on a question I posted earlier...

I'm trying to load a SWF and play it inside another SWF.

Both SWFs are targeted to use Flash Player 8, and AS 2.0

So, in the parent, I've got code that looks like this:

 var movie_mc:MovieClip = this.createEmptyMovieClip("movie_mc",
this.getNextHighestDepth());

 var mcLoader:MovieClipLoader  = new MovieClipLoader();
 mcLoader.addListener(this);
 mcLoader.loadClip("someothermovie.swf",movie_mc);

function onLoadInit(target_mc:MovieClip):Void {
   target_mc.play();
}


When I run this in the Flash IDE, it runs beautifully.

However, when I try to play the movie in a browser, the inner movie
plays for a few frames, then just stops playing.

So potentially relevant facts -

- Both movies are set to run at 30 FPS
- The inner movie is about 2,700 frames long
- The inner movie has an audio track embedded on one of the layers
- The audio track has sync=Stream

I'm definitely sure the inner movie has stopped playing - I set an
interval in the parent movie that checks the inner movie's
_currentframe, and displays it in a text field - sure enough - it gets
to about frame 25, and just stops.

Notably - if I remove the audio track from the inner swf, the entire
thing runs perfectly, both in the Flash IDE and in a browser.

So, i'm assuming the audio track embedded in a layer, and/or
Sync=Stream has something to do with this?

Any advice or insight is MUCH appreciated!

Cheers,
Matt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Loading and playing one SWF inside of another - stopping after first few frames

2008-08-06 Thread matt stuehler
All,

I'm trying to load a SWF and play it inside another SWF.

Both SWFs are targeted to use Flash Player 8, and AS 2.0

So, in the parent, I've got code that looks like this:

 var movie_mc:MovieClip = this.createEmptyMovieClip("movie_mc",
this.getNextHighestDepth());

 var mcLoader:MovieClipLoader  = new MovieClipLoader();
 mcLoader.addListener(this);
 mcLoader.loadClip("someothermovie.swf",movie_mc);

function onLoadInit(target_mc:MovieClip):Void {
target_mc.play();
}


When I run this in the Flash IDE, it runs beautifully.

However, when I try to play the movie in a browser, the inner movie
plays for a few frames, then just stops playing.

So potentially relevant facts -

- Both movies are set to run at 30 FPS
- The inner movie is about 2,700 frames long
- The inner movie has an audio track embedded on one of the layers

I'm definitely sure the inner movie has stopped playing - I set an
interval in the parent movie that checks the inner movie's
_currentframe, and displays it in a text field - sure enough - it gets
to about frame 25, and just stops.

Any advice or insight is MUCH appreciated!

Cheers,
Matt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Using insertBefore to insert nodes into an extant XML document

2008-04-22 Thread matt stuehler
All,

Sorry in advance - this is probably a trivial question, but I'm trying
to figure out how to create an XML node, and insert it into a specific
location in an XML document.

It looks like the insertBefore method is what I need.

However, the problem is that it only seems to work if I create the XML
structure one node at a time (using createElement). For example, this
works:

my_xml = new XML("");
my_xml.firstChild.appendChild(my_xml.createElement("FIRSTBASE"));
my_xml.firstChild.appendChild(my_xml.createElement("THIRDBASE"));
my_xml.firstChild.insertBefore(my_xml.createElement("SECONDBASE"),my_xml.firstChild.firstChild.nextSibling);
trace(my_xml.toString());

this produces:

""


However, this doesn't:

var my_xml = new XML();
my_xml.parseXML("");
my_xml.insertBefore(my_xml.createElement("SECONDBASE"),my_xml.firstChild.firstChild.nextSibling);
trace(my_xml.toString());

As far as I can tell, these two code samples are identical.

The practical application - I'm loading a large document received from
a webservice (In other words, I haven't created each node using
createElement).
I'd then like to locate a specific node deep in the hierarchy, and try
to insert a new node before it.

I can confirm that the node I'm using for the second parameter of
insertBefore exists (using trace()), so I don't think that's the cause
of the problem.

Many thanks in advance for any help or insight!

Cheers,
Matt Stuehler
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Creating a Projector for the Mac on a PC, and dealing with file references

2008-02-01 Thread matt stuehler
All,

A few questions about creating a Projector for the Mac on a PC, which
I plan to burn to a CD.

1.My application reads data from several XML configuration files.
Those files are stored in a folder named "xml", so, in actionscript, I
tell Flash to look in the relative path "./xml/" for those files.

On the PC version of the CD, the .exe and xml subdirectory are in the
same place - the root level of the CD. This works great.

However, the Mac projector creates a whole set of folders and
subfolders that I don't understand. So, I don't know where to put the
xml subfolder.

Specifically, when I create a Mac Projector, I get this:

> [program name].app
>> Contents
>>> Resources
 movie.swf

So, when I burn the Mac CD, should the xml subdirectory be on the same
level as [program name].app, or in the same subdirectory as movie.swf?
Or, someplace else?

2. Is it possible to burn a CD for the Mac on a PC?

3. If the answer to 2 is yes, is it possible to make the projector auto-run?

Many thanks in advance!

Cheers,
Matt
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Catching a response from server when uploading with FileReference

2007-12-19 Thread matt stuehler
All,

I'm using FileReference to allow a user to upload a file. I'd like to
be able to capture a custom response from the server when the upload
process is finished.

I've searched the archives a bit, and in older posts ('05), it looks
like this isn't possible.

Is this still the case? Has anyone figured this out, or have
subsequent versions of Flash made this possible?

Many thanks in advance for any advice or insight.

Cheers,
Matt Stuehler
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Should Flash CS3 Pro result in larger SWF and EXE files than Flash 8?

2007-08-23 Thread matt stuehler
All,

I just wanted to thank everyone for these responses.

Cheers,
Matt

On 8/22/07, Martin Jonasson <[EMAIL PROTECTED]> wrote:
> Yes, I've also noticed this. The CS3 projector is a bit bigger. But it's
> really not all that odd since it has both the AS3 and AS2 virtual
> machines inside.
>
> /martin
>
> matt stuehler wrote:
> > All,
> >
> > I recently switched from Flash 8 Pro to Flash CS3 Pro.
> >
> > I just noticed today that my published SWFs and EXEs are considerably
> > larger when I publish them with CS3 than they were when published from
> > F8, even though the FLAs are the same.
> >
> > In other words, I took an FLA that was saved as a CS3 file. When
> > published, the SWF was 980kb, and the EXE was 3,423kb.
> >
> > I saved the FLA as a Flash 8 file (since it doesn't us AS3 or any CS3
> > functions), republished, and the SWF was 879kb and the EXE was only
> > 2,434kb.
> >
> > That's a pretty big difference (~30% for the EXE), for exactly the
> > same functionality.
> >
> > I can live with the Adobe bloat in the CS3 IDE, but I didn't think
> > that it was going to cost me in terms of the resulting SWF filesize.
> >
> > Has anyone else noticed this? Am I making a mistake, or missing a
> > publish option?
> >
> > Many thanks in advance for your advice and insight.
> >
> > Cheers,
> > Matt Stuehler
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> >
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] Problem with xml.sendAndLoad, IE, https, and ASP

2007-08-23 Thread matt stuehler
All,

I'm working on a project in which a SWF uses xml.sendAndLoad to send a
short XML document to an ASP page.

The ASP page receives the XML, parses it, pulls out a few pieces of
data, runs a query against  a database, and returns a longer XML
document.

Everything works perfectly when I run the app over http. However, when
I run the app over https, it doesn't work (I can't tell if it can't
call the ASP page, or the ASP page doesn't respond, but it does fail
immediately).

A few notes:

- the SWF and ASP page are in the same subdirectory, so it's not a
cross-domain issue

- the SWF doesn't include any absolute references, so I haven't
hardcoded "http" anywhere in the actionscript

- strangely - the entire process works perfectly in Firefox. It only fails in IE

- the entire process also works perfectly if I run the app in the
Flash IDE, and call the ASP page over https

- if I comment out ALL of the logic/code in the ASP page, so that it
just uses "Response.write" to send back a simple XML document, it
still fails. So, it's not a problem with the ASP - it's a problem with
the SWF/ASP communication.

Does anyone have any thoughts, suggestions, advice on why this is the
case, or how to fix it?

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Should Flash CS3 Pro result in larger SWF and EXE files than Flash 8?

2007-08-22 Thread matt stuehler
All,

I recently switched from Flash 8 Pro to Flash CS3 Pro.

I just noticed today that my published SWFs and EXEs are considerably
larger when I publish them with CS3 than they were when published from
F8, even though the FLAs are the same.

In other words, I took an FLA that was saved as a CS3 file. When
published, the SWF was 980kb, and the EXE was 3,423kb.

I saved the FLA as a Flash 8 file (since it doesn't us AS3 or any CS3
functions), republished, and the SWF was 879kb and the EXE was only
2,434kb.

That's a pretty big difference (~30% for the EXE), for exactly the
same functionality.

I can live with the Adobe bloat in the CS3 IDE, but I didn't think
that it was going to cost me in terms of the resulting SWF filesize.

Has anyone else noticed this? Am I making a mistake, or missing a
publish option?

Many thanks in advance for your advice and insight.

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Integrating Flash SWFs with Flex

2007-08-03 Thread matt stuehler
Troy,

Just wanted to thank you for responding to my post.

The FlexComponentKit is a great tip, and looks like it will really be useful.

Cheers,
Matt

On 7/30/07, Troy Rollins <[EMAIL PROTECTED]> wrote:
>
> On Jul 30, 2007, at 11:56 AM, matt stuehler wrote:
>
> > Two questions -
> >
> > 1. The client has asked about the feasibility of developing this in
> > Flex instead of Flash. Since I'm only beginning to learn Flex, I can't
> > really answer this. But my simplistic understanding is that, at a high
> > level, Flex is a language for tying together individual Flash
> > components into an overall UI/RIA. So, if you're building a low-level
> > highly customized, unique "component" - Flash is the right tool for
> > that, not Flex. Is this correct?
>
> Basically true, though unique components can be created in Flex/AS3
> as well, the process is a bit harder.
>
> >
> > 2. Assuming 1. is correct, what special considerations are there for
> > developing a Flash movie/widget/component that might be embedded in an
> > HTML page, AND/OR used within a Flex application?
>
> Check out the "FlexComponentKit", which I think is still on
> labs.adobe.com as a beta. It allows you to wrap MovieClips into a
> UIComponent in Flash, export them as an SWC, and reference them in
> Flex. Works really really well, and takes a lot of the effort out of
> the process of doing it in other ways.
>
> --
> 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@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Integrating Flash SWFs with Flex

2007-07-30 Thread matt stuehler
All,

I'm working on a project for a client - my assignment is essentially
to develop an interactive charting widget with a number of unique
display options and behaviors.

Because of those unique features, I'm developing the SWF from scratch,
instead of modifying an existing pre-developed component.

My plan is that the chart widget will be a single SWF, which the
client will be able to embed in any HTML page.

Two questions -

1. The client has asked about the feasibility of developing this in
Flex instead of Flash. Since I'm only beginning to learn Flex, I can't
really answer this. But my simplistic understanding is that, at a high
level, Flex is a language for tying together individual Flash
components into an overall UI/RIA. So, if you're building a low-level
highly customized, unique "component" - Flash is the right tool for
that, not Flex. Is this correct?

2. Assuming 1. is correct, what special considerations are there for
developing a Flash movie/widget/component that might be embedded in an
HTML page, AND/OR used within a Flex application?

Many thanks in advance for your advice and insight!

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

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


Re: [Flashcoders] Bitmap text (no anti-alias) still aliasing?

2007-06-13 Thread matt stuehler

Alias,

My apologies - I was a little premature in my last post.

It looks like Flash doesn't properly calculate the height of static
text field using a device font IF you select "Use device fonts" and
select a particular font. However, if you use font = "_sans" as you
suggested (which forces the "use device fonts" setting), then Flash
does calculate the height correctly.

In other words, if you're using a device font, Flash will properly
calculate the height if the font is _sans, _serif, or _typewriter
(which is exactly what you suggested); but not if you use another
font.

All in all, this is a pretty good workaround for my particular
project, but I still wonder why the "Bitmap text (no anti-alias)"
setting doesn't work as you'd expect?

Thanks again.

Cheers,
Matt

On 6/13/07, matt stuehler <[EMAIL PROTECTED]> wrote:

Alias,

Many thanks for that suggestion!

As you suggested, using device fonts does in fact fix the anti-aliasing problem

However, giving up the ability to use masks seems like a pretty
serious compromise.

Another problem this causes - I need to be able to determine the
height of these text fields, and it looks like Flash isn't able to
properly determine the height when device fonts are used. In other
words, if you have a clip containing only a static text field that
uses device fonts, Flash won't properly calculate the height of that
clip.

Is there a way around this issue too?

Thanks again for you insight.

Cheers,
Matt



On 6/13/07, Alias™ <[EMAIL PROTECTED]> wrote:
> Don't use the "bitmap text" option in the properties tab, set the font
> to "_sans", "_serif", or "_typewriter" instead. This will force flash
> to use the machine's local device fonts instead. The only drawback
> with this is that you may run into issues with masking/fading the
> text, but it should be manageable if you're aware of the constraints
> from the start.
>
> Hope this helps,
> Alias
>
> On 13/06/07, matt stuehler <[EMAIL PROTECTED]> wrote:
> > All,
> >
> > I'm working on an application with lots of long text content using
> > 11pt fonts. To enhance readability, I'm using Bitmap text (no
> > anti-alias).
> >
> > However, in long (tall) static text blocks, PARTS of the text are
> > aliasing. In other words, the first few paragraphs will have have no
> > anti-alias, then a few paragraphs will, and then the last few won't,
> > even though it's all part of the same static text field.
> >
> > I've ensured that the _x and _y co-ordinates are integers, as are the
> > _x and _y co-ordinates of the movieclip that contains the text field.
> > And that movieclip is on level 0, so that means that the text field is
> > definitely on integer pixels.
> >
> > The result is that the text looks terrible - parts are crystal clear,
> > and other parts are blurry - the inconsistency is what's so annoying.
> >
> > Has anyone else run into this problem, or come up with a solution?
> > I've tried a variety of fonts, and line-spacing, to no avail.
> >
> > Many thanks in advance for your advice and insight!
> >
> > Cheers,
> > Matt Stuehler
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/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] Bitmap text (no anti-alias) still aliasing?

2007-06-13 Thread matt stuehler

Alias,

Many thanks for that suggestion!

As you suggested, using device fonts does in fact fix the anti-aliasing problem

However, giving up the ability to use masks seems like a pretty
serious compromise.

Another problem this causes - I need to be able to determine the
height of these text fields, and it looks like Flash isn't able to
properly determine the height when device fonts are used. In other
words, if you have a clip containing only a static text field that
uses device fonts, Flash won't properly calculate the height of that
clip.

Is there a way around this issue too?

Thanks again for you insight.

Cheers,
Matt



On 6/13/07, Alias™ <[EMAIL PROTECTED]> wrote:

Don't use the "bitmap text" option in the properties tab, set the font
to "_sans", "_serif", or "_typewriter" instead. This will force flash
to use the machine's local device fonts instead. The only drawback
with this is that you may run into issues with masking/fading the
text, but it should be manageable if you're aware of the constraints
from the start.

Hope this helps,
Alias

On 13/06/07, matt stuehler <[EMAIL PROTECTED]> wrote:
> All,
>
> I'm working on an application with lots of long text content using
> 11pt fonts. To enhance readability, I'm using Bitmap text (no
> anti-alias).
>
> However, in long (tall) static text blocks, PARTS of the text are
> aliasing. In other words, the first few paragraphs will have have no
> anti-alias, then a few paragraphs will, and then the last few won't,
> even though it's all part of the same static text field.
>
> I've ensured that the _x and _y co-ordinates are integers, as are the
> _x and _y co-ordinates of the movieclip that contains the text field.
> And that movieclip is on level 0, so that means that the text field is
> definitely on integer pixels.
>
> The result is that the text looks terrible - parts are crystal clear,
> and other parts are blurry - the inconsistency is what's so annoying.
>
> Has anyone else run into this problem, or come up with a solution?
> I've tried a variety of fonts, and line-spacing, to no avail.
>
> Many thanks in advance for your advice and insight!
>
> Cheers,
> Matt Stuehler
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


[Flashcoders] Bitmap text (no anti-alias) still aliasing?

2007-06-13 Thread matt stuehler

All,

I'm working on an application with lots of long text content using
11pt fonts. To enhance readability, I'm using Bitmap text (no
anti-alias).

However, in long (tall) static text blocks, PARTS of the text are
aliasing. In other words, the first few paragraphs will have have no
anti-alias, then a few paragraphs will, and then the last few won't,
even though it's all part of the same static text field.

I've ensured that the _x and _y co-ordinates are integers, as are the
_x and _y co-ordinates of the movieclip that contains the text field.
And that movieclip is on level 0, so that means that the text field is
definitely on integer pixels.

The result is that the text looks terrible - parts are crystal clear,
and other parts are blurry - the inconsistency is what's so annoying.

Has anyone else run into this problem, or come up with a solution?
I've tried a variety of fonts, and line-spacing, to no avail.

Many thanks in advance for your advice and insight!

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Finding the height and width of the VISIBLE area ofamasked SWF

2007-04-19 Thread matt stuehler

All,

I've come up with a solution - it's not perfect, but it's pretty
robust and reliable.

If anyone is following this thread and would like more detail, send me an email.

Cheers,
Matt Stuehler

On 4/19/07, Michael Hood <[EMAIL PROTECTED]> wrote:

Why not place a movie clip, behind the bottom-most background layer (or,
make it invisible) that is the same size as the "desired" size(or "visible"
height & width) you wish the swf to be read as, by the main stage (assuming
that is what you are trying to do)?

That way, if your swf is really 800 X 600, you can have the main stage call
the swf to see what the desired size is of the incoming swf, (400 X 300)
and do with that information whatever it is you are trying to do.  (I dunno
if that makes any sense?)

Heck, I'm not even sure if what you are attempting to do can be done that
way, or not - I'm still trying to get a handle on ActionScript, myself!  I
sure wish they would stop re-writing/updating ActionScript it long enough
for the slower of us to catch on! :-P

Also, what about "_lockroot"?  If it's a matter of your ext. swfs being
re-sized because they are being imported onto the stage, perhaps using
"_lockroot" might prevent that (although, I am not sure if that actually
controls the stage size of the swf ,or not).

  Michael Hood
 Internal Applications Dev ADMS/ CMS/ Armory


> [Original Message]
> From: Hershell Bryant <[EMAIL PROTECTED]>
> To: 
> Date: 4/18/2007 3:21:39 PM
> Subject: RE: [Flashcoders] Finding the height and width of the VISIBLE
area ofamasked SWF
>
> To center the visible part on stage, center the mask on stage.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of matt
> stuehler
> Sent: Wednesday, April 18, 2007 2:30 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Finding the height and width of the VISIBLE area of
> amasked SWF
>
> All,
>
> It looks like this has been asked before, but I couldn't find an answer.
>
> I'm creating a Flash app that loads several SWFs.
>
> Those SWFs contain use masks.
>
> I'd like to be able to find the VISIBLE height and width of those
> SWFs; however _width and _height return the size of ALL the masked
> content.
>
> In other words, if the SWF has a stage size of 400x300, and a mask of
> 400x300, but the total size of the SWF is 800x600 (e.g., b/c of
> off-stage content, or stuff that's not visible thru the mask), then
> _width returns 800, and _height returns 600.
>
> I can see why that's sometimes useful, but in this particular
> application, I need to know the VISIBLE size.
>
> For example, I'd like to be able to center the VISIBLE part of the SWF
> on the stage.
>
> Is there any way to figure that out?
>
> Cheers,
> Matt Stuehler
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com


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

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


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

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


Re: [Flashcoders] Finding the height and width of the VISIBLE area of a masked SWF

2007-04-18 Thread matt stuehler

Claus,

That's a great suggestion - the best answers are often the overlooked,
obvious ones.

But I don't think so - in the original SWFs, the masks aren't
movieclips - they're just fills. So, I don't know how you'd check
their width or height.

The key thing about the application is that I won't know anything
about the SWFs that are being loaded.

My app should simply load a swf into a container movieclip, then
attempt to scale it to fit the stage, and center it.

Ordinarily, I can just check the container._width and
container._height to accomplish this. But I've tested a few SWFs that
weren't working properly, and that's when I discovered that they were
using masks, which throws off the _width and _height.

I can't assume that the SWFs will use a movieclip as a mask.

Thanks again for your advice.

Cheers,
Matt




On 4/18/07, Claus Wahlers <[EMAIL PROTECTED]> wrote:


> I'd like to be able to find the VISIBLE height and width of those
> SWFs; however _width and _height return the size of ALL the masked
> content.

Can't you just check the width/height of the mask?

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Finding the height and width of the VISIBLE area of a masked SWF

2007-04-18 Thread matt stuehler

All,

It looks like this has been asked before, but I couldn't find an answer.

I'm creating a Flash app that loads several SWFs.

Those SWFs contain use masks.

I'd like to be able to find the VISIBLE height and width of those
SWFs; however _width and _height return the size of ALL the masked
content.

In other words, if the SWF has a stage size of 400x300, and a mask of
400x300, but the total size of the SWF is 800x600 (e.g., b/c of
off-stage content, or stuff that's not visible thru the mask), then
_width returns 800, and _height returns 600.

I can see why that's sometimes useful, but in this particular
application, I need to know the VISIBLE size.

For example, I'd like to be able to center the VISIBLE part of the SWF
on the stage.

Is there any way to figure that out?

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

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


Re: [Flashcoders] Find size of the bounding box of a particular frame of a loaded SWF

2007-04-18 Thread matt stuehler

Jason,

Thanks for the clarification - that's an important point.

I should have been more specific in my original post.

Essentially, we have a number of SWFs created by FlashPaper.

I'm loading those SWFs into a container movie clip.

I then want to scale and center the container clip on the main stage.
This requires that I know the width and height of the container.

The problem is that the SWFs contain multiple frames, and the content
in each frame varies in size.

What I'd like to be able to do is this:

container_mc.gotoAndStop(1); // this shows the first frame of the SWF
var w = container_mc._width;
var h = container_mc._height;

// use w and h to scale and position container_mc

When the user clicks "Next":
container_mc.gotoAndStop(2); // this shows the next frame of the SWF
var w = container_mc._width;
var h = container_mc._height;

// use w and h to rescale and reposition container_mc

The trouble is that container_mc._width & container_mc._height always
return the same value, even though the content on each frame LOOKS
like it's a different size. It's as though FlashPaper adds a
transparent background to each frame, which is why every frame returns
the same size.

Is this the case? If anyone with FlashPaper experience could shed some
light, it'd be greatly appreciated.

Cheers,
Matt Stuehler



On 4/18/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:

When you say "frame" - you need to think of that differently.  A "frame"
is not a physical object, but instead an instance of the stage being
rendered in time (or something like that :) )  - check for the width and
height of an object instance in that frame, like a background movieclip
or something.  Frames don't have heights and widths that I am aware of.

Jason Merrill
Bank of America
GT&O Learning & Leadership Development
eTools & Multimedia Team




>>-----Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf
>>Of matt stuehler
>>Sent: Wednesday, April 18, 2007 10:11 AM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] Find size of the bounding box of a
>>particular frame of a loaded SWF
>>
>>All,
>>
>>I'm working on an application that loads a variety of external SWFs.
>>
>>Once each SWF loads, if I test it's _height and _width
>>properties, I get the height and width of the largest frame
>>within that clip.
>>
>>However, what I'd like to get is the _height and _width of a
>>particular frame.
>>
>>Is that possible?
>>
>>Cheers,
>>Matt Stuehler
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com http://training.figleaf.com
>>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


[Flashcoders] Re: Find size of the bounding box of a particular frame of a loaded SWF

2007-04-18 Thread matt stuehler

Sorry, this isn't true...

Generally, _height and _width DO return the height of the
_currentframe of the SWF.

The problem is that the SWFs we're using are created by FlashPaper,
which seems to mess things up a bit.

If anyone has any experience working with SWFs created by FlashPaper,
and could provide some advice about getting the size of each frame
(ignoring the background), it'd be greatly appreciated.

Cheers,
Matt Stuehler

On 4/18/07, matt stuehler <[EMAIL PROTECTED]> wrote:

All,

I'm working on an application that loads a variety of external SWFs.

Once each SWF loads, if I test it's _height and _width properties, I
get the height and width of the largest frame within that clip.

However, what I'd like to get is the _height and _width of a particular frame.

Is that possible?

Cheers,
Matt Stuehler


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Find size of the bounding box of a particular frame of a loaded SWF

2007-04-18 Thread matt stuehler

All,

I'm working on an application that loads a variety of external SWFs.

Once each SWF loads, if I test it's _height and _width properties, I
get the height and width of the largest frame within that clip.

However, what I'd like to get is the _height and _width of a particular frame.

Is that possible?

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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.load() and complex corporate network environments (load balancers, firewalls, etc.)

2007-02-27 Thread matt stuehler

All,

I'm working on a Flash project for a large financial services client.

The problem has to do with xml.load().

After the movie loads completely, I use xml.load() to load an XML
configuration file - it's just a static text file that sits in the
same directory as the swf itself.

The code looks like this:

config_xml = new XML();
config_xml.onLoad = xmlLoaded;
config_xml.load("config.xml");
stop();
function xmlLoaded(success) {
 if (success) {
   // parse the xml
 else {
   // handle error
 }
}

When I run this locally or from my server (Media Temple, a
shared-server ISP), it works fine - the (success) branch of the
conditional is always executed

However, when my client places it into its environment, it doesn't always work.

- If you access the swf from WITHIN their corporate firewall, it always works.
- If you access the swf from SOME geographic regions outside the
firewall, it always works
- If you access the swf from OTHER geographic regions, it never works
- the !(success) branch is executed

Can this have anything to do with Flash? I'm no network security
expert, so I don't no what to look for. The client uses a complex
system of security, firewalls, and load balancers, so anything's
possible.

While I'd love to solve the problem, my primary concern is ruling out
(if appropriate), Flash as the cause.

Also, XML.load(), while useful, is pretty rudimentary - it calls the
callback function with either a true or false parameter. Is it
possible to get more information on WHY it fails?

Also, sometimes it fails right away, other times it takes a long time.
Is this behavior controllable?

Many thanks in advance for your advice and insight!

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Robust server-side PDF creation from Flash RIA

2006-12-20 Thread matt stuehler

Andy, Ron,

Many thanks for you suggestions. Both look like they have some potential.

FOP looks like the most flexible. The problem with it is that, like
BlazePDF for client-side, it seems like you need to manually describe
your layout item by item, line by line. So, you can imagine that for a
20+ document with a very detailed, complicated layout (think a mutal
fund prospectus), this would be INCREDIBLY time consuming and nearly
impossible to change.

Our application is a proposal generator, so the layout and quality of
the resulting document is very important. It should look like a
professionally designed brochure - not a simple 1 or 2 column word
document.

This seems like this is the type of project that many people have
tackled previously - I'm hoping to hear about someone's success story,
and the approach they used.

Cheers,
Matt

On 12/20/06, Andy Herrman <[EMAIL PROTECTED]> wrote:

Not really sure if it'll be helpful or not, but if you can get an
application on the server side that's able to print you could use
PDFCreator to create the PDF itself:

http://www.pdfforge.org/products/pdfcreator

Though I'd do that as a sort of last resort, as it would be better if
you could just generate the PDF directly instead of going through a
couple layers of applications.

   -Andy

On 12/20/06, Ron Wheeler <[EMAIL PROTECTED]> wrote:
> Apache's FOP is probably a good candidate.
> It takes instructions in XML and converts them to PDF's.
> Requires a bit of willingness to play with XML and probably XSLT but
> will make some pretty fancy stuff.
> It is free.
>
> Ron
>
> matt stuehler wrote:
> > All,
> >
> > I'm working on an RIA using Flash. One of the requirements is that, at
> > the end of the "experience," the user should be able to
> > create/download a PDF containing a bunch of charts, graphs, tables,
> > and text, all customized based on her inputs.
> >
> > I've looked into g.wygonik's blazePDF. While this looks like an
> > awesome component, I don't think it's robust enough to do everything
> > I'll need - the PDF output I'm expecting may easily run to 20+ pages
> > of complex charts - drawing each page line-segment at a time may not
> > be feasible. Plus, the appearance of the output is critical - all
> > kinds of curves, gradients, etc. - the "fancy stuff."
> >
> > Another requirement is that the PDF should "pull-in" a few
> > pre-generated PDFs and incorporate them into the output file.
> >
> > I'm guess I'm looking for a server-side solution.
> >
> > I don't even really know if anything like this is possible, but if
> > anyone has any insights, tips, or experience they could share, I'd
> > greatly appreciate it.
> >
> > Cheers,
> > Matt Stuehler
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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


[Flashcoders] Robust server-side PDF creation from Flash RIA

2006-12-20 Thread matt stuehler

All,

I'm working on an RIA using Flash. One of the requirements is that, at
the end of the "experience," the user should be able to
create/download a PDF containing a bunch of charts, graphs, tables,
and text, all customized based on her inputs.

I've looked into g.wygonik's blazePDF. While this looks like an
awesome component, I don't think it's robust enough to do everything
I'll need - the PDF output I'm expecting may easily run to 20+ pages
of complex charts - drawing each page line-segment at a time may not
be feasible. Plus, the appearance of the output is critical - all
kinds of curves, gradients, etc. - the "fancy stuff."

Another requirement is that the PDF should "pull-in" a few
pre-generated PDFs and incorporate them into the output file.

I'm guess I'm looking for a server-side solution.

I don't even really know if anything like this is possible, but if
anyone has any insights, tips, or experience they could share, I'd
greatly appreciate it.

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Tracking mouse movements outside of browser window

2006-12-12 Thread matt stuehler

All,

I'm not sure if this is possible, but I'm wondering if there's any way
a Flash movie can track mouse movements/actions outside of the browser
window.

Specifically, I'm working on an RIA which uses a scrollbar along the
right edge of the window. If the user, while dragging the scrollbar,
moves the mouse outside of the window, the Flash movie stops tracking
the mouse position, and the scrollbar stops moving. The scrollbar
jumps if the user drags the mouse back into the window at a lower or
higher position.

(By comparison, an HTML scrollbar doesn't suffer this limitation - the
scrollbar continues to move even as the mouse is dragged outside of
the window.)

Is there a way around this?

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Algorithm to find "center" of an irregular shape

2006-09-21 Thread matt stuehler

All,

I'm not too handy with geometry, so I'm not even sure this is
possible, but I'm looking for an algorithm that will determine the
"center" of an irregular shape.

I'm not even sure there is a meaningful definition of a "center", but
I'd like to at least find a point that is within the area of the
shape. (I realize that with certain shapes, like a donut, this might
be an intractible problem), so even some rough approximation would
help.

In this particular application, the shapes are the areas between the
lines created when graphing several time series on a chart (e.g., the
price of several stocks, graphed over time)

Many thanks in advance for any advice or insights!

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Recommendations for a credit-cardprocessingservice for a subscription-based Flash app

2006-09-05 Thread matt stuehler

Marcelo, André,

Thanks again for your advice. I think I'm convinced - I'll definitely
give PayPal a closer look. It sounds like its a good solution.

André - thanks for the offer to help. I may take you up on that once I
get going!

Cheers to all,
Matt Stuehler

On 9/5/06, André Goliath <[EMAIL PROTECTED]> wrote:

that´s right.

for example on my page, (www.software-and-solutons.de > SQLite, scroll down
"Get a license now" ) you ahve the choice to either log in
or pay via CC.

The nice thing about paypal are the IPM (isntant payment notifications):
They call a PHP/ASP/whatever script on your server
as soon as a new payment arrived, you get full transaction and status
details and can store them in your DB.

it´s quite well documentated here[1].

I can help you out with some PHP-code off-list for the basic API if
neccessary.

Regards,

André


[1] https://www.paypal.com/IntegrationCenter/ic_home.html leads to
https://www.paypal.com/IntegrationCenter/ic_documentation.html


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcelo de
Moraes Serpa
Sent: Tuesday, September 05, 2006 1:08 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OT: Recommendations for a
credit-cardprocessingservice for a subscription-based Flash app

>For one - it looks like the buyers need to have a PayPal account,

Not anymore. You can now pay with you cc without creating a paypal account.
So it also answers you last question. Do a little research, you should find
something.

> Even the little guys (37signals Basecamp
and Backpack, FreshBooks, etc..)

I've got a backpack basic plan and I was "forced" to pay with my cc. I wish
they accepted paypal! Paypal is not unprofessional! It's a secure, fast and
convenient way to handle money.






On 9/4/06, matt stuehler <[EMAIL PROTECTED]> wrote:
>
> Marcelo, André,
>
> Many thanks for responses!
>
> I've done a bit of research on PayPal, and it doesn't seem too great.
>
> For one - it looks like the buyers need to have a PayPal account,
> which is a big inconvenience for them. If I needed to create a PayPal
> account before I could buy something, I'd just decide that it's not
> worth it.
>
> Two - it seems unprofessional. None of the subscription-based services
> that I subscribe to use it. Even the little guys (37signals Basecamp
> and Backpack, FreshBooks, etc..)
>
> Is there a way to use PayPal that doesn't require buyers to have a
> PayPal account, and is transparent to them?
>
> Cheers,
> Matt
>
> On 9/4/06, André Goliath <[EMAIL PROTECTED]> wrote:
> > >> Paypal maybe?
> >
> > That´s what I was going to suggest.
> >
> > They integrate very nice into your webpage, can handle subscriptions and
> > have good developer support and API documentation
> > while are not too expensive.
> >
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Marcelo
> de
> > Moraes Serpa
> > Sent: Monday, September 04, 2006 5:22 PM
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] OT: Recommendations for a credit-card
> > processingservice for a subscription-based Flash app
> >
> > Paypal maybe?
> >
> > On 9/4/06, matt stuehler <[EMAIL PROTECTED]> wrote:
> > >
> > > All,
> > >
> > > I'm thinking about turning a few of the Flash-based web-apps I've
> > > developed into a subscription-based service, which means that I'll
> > > need to set up some sort of credit-card processing service that
> > > handles recurring payments.
> > >
> > > Do you have any advice about the best way to do this? Recommended
> > > vendors, or vendors to be avoided? Suggestions and pitfalls to avoid,
> > > etc.?
> > >
> > > I googled "credit-card processing", and got a million hits (along with
> > > many vendors that seem shady), so I'm hoping to separate the wheat
> > > from the chaff...
> > >
> > > Many thanks in advance!
> > > Matt Stuehler
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/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
>

Re: [Flashcoders] OT: Recommendations for a credit-card processingservice for a subscription-based Flash app

2006-09-04 Thread matt stuehler

Marcelo, André,

Many thanks for responses!

I've done a bit of research on PayPal, and it doesn't seem too great.

For one - it looks like the buyers need to have a PayPal account,
which is a big inconvenience for them. If I needed to create a PayPal
account before I could buy something, I'd just decide that it's not
worth it.

Two - it seems unprofessional. None of the subscription-based services
that I subscribe to use it. Even the little guys (37signals Basecamp
and Backpack, FreshBooks, etc..)

Is there a way to use PayPal that doesn't require buyers to have a
PayPal account, and is transparent to them?

Cheers,
Matt

On 9/4/06, André Goliath <[EMAIL PROTECTED]> wrote:

>> Paypal maybe?

That´s what I was going to suggest.

They integrate very nice into your webpage, can handle subscriptions and
have good developer support and API documentation
while are not too expensive.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcelo de
Moraes Serpa
Sent: Monday, September 04, 2006 5:22 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] OT: Recommendations for a credit-card
processingservice for a subscription-based Flash app

Paypal maybe?

On 9/4/06, matt stuehler <[EMAIL PROTECTED]> wrote:
>
> All,
>
> I'm thinking about turning a few of the Flash-based web-apps I've
> developed into a subscription-based service, which means that I'll
> need to set up some sort of credit-card processing service that
> handles recurring payments.
>
> Do you have any advice about the best way to do this? Recommended
> vendors, or vendors to be avoided? Suggestions and pitfalls to avoid,
> etc.?
>
> I googled "credit-card processing", and got a million hits (along with
> many vendors that seem shady), so I'm hoping to separate the wheat
> from the chaff...
>
> Many thanks in advance!
> Matt Stuehler
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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

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

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


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

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


[Flashcoders] OT: Recommendations for a credit-card processing service for a subscription-based Flash app

2006-09-04 Thread matt stuehler

All,

I'm thinking about turning a few of the Flash-based web-apps I've
developed into a subscription-based service, which means that I'll
need to set up some sort of credit-card processing service that
handles recurring payments.

Do you have any advice about the best way to do this? Recommended
vendors, or vendors to be avoided? Suggestions and pitfalls to avoid,
etc.?

I googled "credit-card processing", and got a million hits (along with
many vendors that seem shady), so I'm hoping to separate the wheat
from the chaff...

Many thanks in advance!
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Sample PHP script for handling XML from Flash

2006-06-22 Thread matt stuehler

All,

I don't know if anyone's following this thread or would find this
useful, but thanks to the pointers I received from Jim, I've been able
to cobble together a few PHP scripts that do what I need them to.  If
anyone wants to see them, send me an email to let me know. I can't
promise that they're the most elegant or robust, but they do the job.

Cheers,
Matt


On 6/22/06, Chris Allen <[EMAIL PROTECTED]> wrote:

On 6/21/06, matt stuehler <[EMAIL PROTECTED]> wrote:
>
> However, with most of our work, we develop an RIA for a client, who
> handles the back-end themselves. So, we develop our apps so that they
> send and receive XML, which means the client can use whatever they
> want in the backend: asp, asp.net, webservices, php, whatever...
>
> Is this a valid position? E.g., if we used amfphp, are we then
> limiting our flexibility on the back-end?
>

There are open source implementations of AMF in .NET, Java, and PHP,
as well as closed source versions for multiple platforms, so
compatibility shouldn't be too much of a concern.

For more information look here:
http://www.osflash.org/amf

You can also add Red5 to the list presented there.

I hope that helps.

-Chris
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Sample PHP script for handling XML from Flash

2006-06-21 Thread matt stuehler

Jim, Mike,

Many thanks for your responses! I'm going to look into both resources
right away.

Mike - a question about amfphp...

With some of our projects, we build the RIA and host it ourselves,
which means we're responsible for both the front- and back-ends. So, I
could use something like amfphp.

However, with most of our work, we develop an RIA for a client, who
handles the back-end themselves. So, we develop our apps so that they
send and receive XML, which means the client can use whatever they
want in the backend: asp, asp.net, webservices, php, whatever...

Is this a valid position? E.g., if we used amfphp, are we then
limiting our flexibility on the back-end?

Cheers,
Matt


On 6/21/06, Mike Boutin <[EMAIL PROTECTED]> wrote:

You may also want to look into amfphp and Flash Remoting as it greatly
simplifies this approach.

http://amfphp.org/


Mike Boutin

Jim Robson wrote:
> Matt:
>  http://php.net/ has tutorials and a comprehensive manual. If you have
> experience with ASP, then you should be able learn the basics of PHP
> quickly.
>
> -Jim
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of matt
> stuehler
> Sent: Wednesday, June 21, 2006 2:34 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] Sample PHP script for handling XML from Flash
>
> All,
>
> This may be more than I should ask for, but I'm looking for a sample or two
> of PHP that can do the following:
>
> - Receive an XML doc from Flash
> - Extract certain nodevalues and attribute values
> - Create and SQL query that stores those values in a MySQL database
>
> and vice versa:
>
> - Retrieve a record from a MySQL database
> - create an XML doc containing the record's values
> - send that XML doc to Flash
>
> I've done this many times before with ASP and SQLserver or Access (so I'm
> familiar with the Actionscript and SQL), but I've never used PHP or MySQL
> before.
>
> I'm hoping that with a working sample, I can modify it to the specifics of
> my project.
>
> I'd be very grateful for any sample code, helpful advice, or useful links.
>
> Cheers,
> Matt Stuehler
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training http://www.figleaf.com
> http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>

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

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


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

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


[Flashcoders] Sample PHP script for handling XML from Flash

2006-06-21 Thread matt stuehler

All,

This may be more than I should ask for, but I'm looking for a sample
or two of PHP that can do the following:

- Receive an XML doc from Flash
- Extract certain nodevalues and attribute values
- Create and SQL query that stores those values in a MySQL database

and vice versa:

- Retrieve a record from a MySQL database
- create an XML doc containing the record's values
- send that XML doc to Flash

I've done this many times before with ASP and SQLserver or Access (so
I'm familiar with the Actionscript and SQL), but I've never used PHP
or MySQL before.

I'm hoping that with a working sample, I can modify it to the
specifics of my project.

I'd be very grateful for any sample code, helpful advice, or useful links.

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

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


[Flashcoders] Can you detect changes in the BROWSER scrollbar?

2006-03-22 Thread matt stuehler
All,

Let's say you have a Flash movie that's 800 pixels wide x 1200 pixels
tall. If the movie is displayed in a browser window that's less than
1200 pixels tall, the browser will provide a scrollbar to accomodate
the extra height.

What I'd like to know is this: is it possible for the Flash movie to
detect changes in that scrollbar? More specifically - is it possible
to detect the exact value (height, maxheight, position, etc.) of that
scrollbar?

I'd be interested in an Actionscript function, or a javascript
function that passes to the Flash movie information about the
scrollbar height and position.

Many thanks for your insight and advice!

Cheers,
Matt Stuehler
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Public examples of Business RIAs

2006-01-17 Thread matt stuehler
Stacey,

Wow - that's really something.

Great functionality, and a beautiful UI. It's BY FAR the most
sophisticated RIA I've seen.

If you don't mind me asking, how long did that take you and your team
to build? What was the budget?

Of course, if you can't share that info - no worries. I understand completely.

My congrats and admiration for this terrific piece of work.

Cheers,
Matt



On 1/17/06, Stacey Mulcahy <[EMAIL PROTECTED]> wrote:
> We did one for the financial sector that deals with business mergers.
> Canned demo is here :
> http://63.88.61.59/demo/
>
> You can also check more about on Tony's blog -
> http://www.teknision.blogspot.com/
> http://teknision.blogspot.com/2005/12/snl-merger-model-demo-update.html
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Meinte van't
> Kruis
> Sent: Tuesday, January 17, 2006 11:03 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Public examples of Business RIAs
>
> on a sidenote:
>
> Why are YOU convinced that flash is the way to go for a B2B RIA?
>
> perhaps if you answer that one, you can better convince the client.
> (and convince me while you're at it ;) )
>
> On 1/17/06, matt stuehler <[EMAIL PROTECTED]> wrote:
> >
> > All,
> >
> > I'm trying to convince a potential client that Flash is the way to go
> > for a B2B RIA for a project it's working on, and I'd like to develop a
> > showcase of a RIAs developed in Flash.
> >
> > I'm sure there are hundreds of great examples, but most of them are
> > not public. The few available through Macromedia are OK, but not
> > great.
> >
> > The ideal apps would meet two main criteria:
> >
> > - It should include functionality that's not reproduceable with
> > dhtml/ajax (e.g., custom controls or interactivity)
> >
> > - It should be a real substantive "business"-type application (e.g.,
> > not a pseudo-app that's really just a fancy web advertisement)
> >
> > Many thanks in advance to anyone who can suggest a few great URLs.
> >
> > I'll be happy to send a list of all the URLs I receive to anyone who's
> > interested - just send me your email address, and I'll forward all the
> > great apps I find.
> >
> > Cheers,
> > Matt Stuehler
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Public examples of Business RIAs

2006-01-17 Thread matt stuehler
Wow, these are two TERRIFIC apps - exactly the type of thing I was
looking for. Many thanks. I'll start a list - if anyone wants me to
send the final results, just send me an email.

Re: Meinte's question (which is a great one) - I don't really have a
good answer. I generally believe there's a small sweet-spot between
what dhtml/ajax does best, and what a true destop app (e.g., vc++)
does best, where Flash is the best option.

For me at least, it's hard to define a general rule (maybe you know it
when you see it) - but its when you need more custom UI controls or
complex interactivity than dhtml can provide, but not as much
horsepower as a desktop app provides. It's also key when you have a
large, dispersed user base, not much control over the desktop, and
plan frequent revisions and updates (all of which make an installed
desktop app too expensive or difficult to maintain).

Anway, thanks again to clark and stacey for showing this great work.

Cheers,
Matt





On 17 Jan 2006 18:43:44 -, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Clark, are the controls (scroller, dropdown box and vertical accordian) 
> entirely custom components ?
>
> very nice interface btw.
>
> grant
>
> - Original Message -
> From: clark slater [EMAIL PROTECTED]
> To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
> Sent: 1/17/06 12:38 PM
> Subject: Re: [Flashcoders] Public examples of Business RIAs
>
> > Here's one we developed for a Golf Club manufacturer who sells highly
> > customized clubs directly to the public.
> >
> > http://www.gigagolf.com
> >
> > I think this is a good example of a business RIA because it makes the
> > product configuration a lot easier than an HTML version might in terms of
> > using the 'eFit' tools to determine best option for your measurements and
> > instantly recommending (and selecting) the appropriate product options.
> >
> > Clark
> >
> > On 1/17/06, matt stuehler  wrote:
> > >
> > > All,
> > >
> > > I'm trying to convince a potential client that Flash is the way to go
> > > for a B2B RIA for a project it's working on, and I'd like to develop a
> > > showcase of a RIAs developed in Flash.
> > >
> > > I'm sure there are hundreds of great examples, but most of them are
> > > not public. The few available through Macromedia are OK, but not
> > > great.
> > >
> > > The ideal apps would meet two main criteria:
> > >
> > > - It should include functionality that's not reproduceable with
> > > dhtml/ajax (e.g., custom controls or interactivity)
> > >
> > > - It should be a real substantive "business"-type application (e.g.,
> > > not a pseudo-app that's really just a fancy web advertisement)
> > >
> > > Many thanks in advance to anyone who can suggest a few great URLs.
> > >
> > > I'll be happy to send a list of all the URLs I receive to anyone who's
> > > interested - just send me your email address, and I'll forward all the
> > > great apps I find.
> > >
> > > Cheers,
> > > Matt Stuehler
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Public examples of Business RIAs

2006-01-17 Thread matt stuehler
All,

I'm trying to convince a potential client that Flash is the way to go
for a B2B RIA for a project it's working on, and I'd like to develop a
showcase of a RIAs developed in Flash.

I'm sure there are hundreds of great examples, but most of them are
not public. The few available through Macromedia are OK, but not
great.

The ideal apps would meet two main criteria:

- It should include functionality that's not reproduceable with
dhtml/ajax (e.g., custom controls or interactivity)

- It should be a real substantive "business"-type application (e.g.,
not a pseudo-app that's really just a fancy web advertisement)

Many thanks in advance to anyone who can suggest a few great URLs.

I'll be happy to send a list of all the URLs I receive to anyone who's
interested - just send me your email address, and I'll forward all the
great apps I find.

Cheers,
Matt Stuehler
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders