[Flashcoders] AIR app - possible to dynamically unzip?

2011-07-14 Thread confustic...@gmail.com
Hi everyone,

I would really appreciate if you could point me in the right direction for
this one.

We're building an AIR for Android app which is basically a collection of 20
elearning "scenarios". Each scenario is a sequence of activities that uses
assets such as XML, MP3, JPG and F4V files. There would probably be about 70
files used in a scenario. The files sit on a server somewhere to be called
on by the app.

The current model of the app downloads the files as they're needed. ie,
whenever the user starts a new activity in a scenario, their phone would
have to be connected to the internet to load those (sometimes large) files.
Needless to say, this could get quite annoying if you were using the app on
a train, then got stuck in a tunnel for an hour (which ironically would be
the perfect time to use the app, what with all that time to kill).

So we thought it would be a better idea to download all the assets required
for a scenario, store them on the phone, then have the app read them from
local storage. That way, you could get it set up the night before over wifi
or something.

So these are my questions:

1) What approach would you take for packaging up the files? For example,
would you have them in a zip file, which the user downloads, and the app
somehow extracts dynamically? (If so, how would you do this please?)

2) Are there any steps we can take to protect our files from
discovery/redistribution? As a language learning company, my work is
somewhat anxious about users being able to just mount the drive and pass the
files on to all and sundry. The content is where most of the budget goes,
what with the writing, filming, recording etc. If there is no way to protect
the files, I imagine we will have to stick with the current model of
downloading files as needed.

Thanks very much for any help,

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


Re: [Flashcoders] AIR for Android - video on mobile problem.

2011-01-27 Thread confustic...@gmail.com
Thanks for your replies, Dave and Zeh.

Just to follow up on Zeh's point:

IIRC, Flash on a mobile device unloads the video from memory once it's past
> a certain point due to memory constraints, keeping only the last few seconds
> of it. It was mentioned on some of Adobe's docs about mobile optimization.
>

I think this is the Adobe docs page you mentioned (in case anyone else is
looking for it):
http://help.adobe.com/en_US/as3/mobile/WS4f388c71a1d4fd05-3e2e5588124a6ccb96c-8000.html.
This was kindly linked to me by Joe Ward over at the Adobe Forums.

Just an update (for anyone who might be struggling with this too): I'm
currently having a go at loading the video from the phone's sdcard. So far
it's been a huge improvement in usability and playback. The path to the
sdcard is file:///sdcard/ - if you transfer the video to the sdcard through
"USB mass storage", don't forget to unmount the drive before attempting to
load the video!! Or divers alarums and general hair tugging might ensue.

Con.


On Tue, Jan 18, 2011 at 4:23 AM, Zeh Fernando  wrote:

> IIRC, Flash on a mobile device unloads the video from memory once it's past
> a certain point due to memory constraints, keeping only the last few
> seconds
> of it. It was mentioned on some of Adobe's docs about mobile optimization.
> I
> think it's more about memory usage rather than actual time though (no
> hard-set limit so impossible to predict).
>
> Using Flash Media Server with a real stream would work, but then you need
> additional buffering and streaming. If it's important to have the video
> already buffered, it'd make more sense to have the video file be smaller -
> and thus not take that much memory... I guess a 11MB file would be a lot
> for
> a mobile device to keep in memory.
>
> Zeh
>
> On Thu, Jan 13, 2011 at 11:07 PM, confustic...@gmail.com <
> confustic...@gmail.com> wrote:
>
> > This doesn't work on the mobile, even though the video is fully loaded.
> I'm
> > not sure why but my guess is that the mobile's cache is a lot smaller. In
> > this particular example I'm testing, it seems like once netstream.time
> goes
> > past approx 30 seconds (of a 1:45 video, 11MB filesize), you can't seek
> > back
> > to those first 30 seconds.
> >
> ___
> 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] AIR for Android - video on mobile problem.

2011-01-13 Thread confustic...@gmail.com
Hey folks,

Firstly, would anyone know if there is a list similar to flashcoders
specifically for AIR for Android questions? I wouldn't want to annoy any
flashcoders with my questions if this is the wrong place to ask them. I have
tried out the Adobe forums, but the community there seems quite a bit
smaller.

Secondly, the question which might annoy! I'm trying to build a custom video
player app. Initially I thought it would be a piece of cake (famous last
words) to have the video reach the end, then loop back to the beginning and
pause. In my previous non-mobile efforts, I would've done something like
this:

// on NetStream.Play.Stop

netstream.pause();
netstream.seek(0);

This doesn't work on the mobile, even though the video is fully loaded. I'm
not sure why but my guess is that the mobile's cache is a lot smaller. In
this particular example I'm testing, it seems like once netstream.time goes
past approx 30 seconds (of a 1:45 video, 11MB filesize), you can't seek back
to those first 30 seconds.

This is a real problem for me, as one of the main purposes of the app is
being able to seek all around the video once it's fully loaded. Would anyone
have any pointers on how to deal with this? Is this where something like
Flash Media Server would come in?

Thanks very much,

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


[Flashcoders] Re: AIR for Android - what's the go?

2010-11-29 Thread confustic...@gmail.com
Thanks Ed. Is that to say that AIR for Android is included in CS5 Pro? I'd
like to find out how I can start getting into this myself.

On Fri, Nov 26, 2010 at 3:37 PM, Ed Murphy wrote:

> Yep AIR for android is very much alive and kicking... I recently released a
> simple quiz game called JeresySure? You can find it on the marketplace.
>
> Anywho, CS5 pro allows devs to not only build but deploy the app locally as
> to debug over wifi.  Tracing and what not.  It even includes a simple way
> to
> create certs, when it's time to launch.
>
> Keep in mind though, many native android capabilities are still not
> available through the AIR player.  The progressDialogue box comes to mind.
>
> On Thu, Nov 25, 2010 at 12:27 PM, confustic...@gmail.com <
confustic...@gmail.com> wrote:

Hey Listites,
>
> I spent the morning salivating over Lee Brimelow's gotoAndLearn() tutorials
> of AIR for Android Parts 1 & 2 [
> http://www.gotoandlearn.com/play.php?id=123]. So excite! Unfortunately, I
> get the impression that the AIR for Android Extension for Flash CS5 was only
> available under a prerelease program, which I think has now closed (?)
>
> So, would anyone know what the status of AIR for Android is? Would
> latecomers like me still be able to dive in, or how long would it be till
> that happy day? Is it still going to be a CS5 extension when it's released
> For Realz?
>
> Also, I apologise in advance for unintentional but probable gormlessness of
> these questions.
>
> Thank you!
>
> Con.
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AIR for Android - what's the go?

2010-11-24 Thread confustic...@gmail.com
Hey Listites,

I spent the morning salivating over Lee Brimelow's gotoAndLearn() tutorials
of AIR for Android Parts 1 & 2 [http://www.gotoandlearn.com/play.php?id=123].
So excite! Unfortunately, I get the impression that the AIR for Android
Extension for Flash CS5 was only available under a prerelease program, which
I think has now closed (?)

So, would anyone know what the status of AIR for Android is? Would
latecomers like me still be able to dive in, or how long would it be till
that happy day? Is it still going to be a CS5 extension when it's released
For Realz?

Also, I apologise in advance for unintentional but probable gormlessness of
these questions.

Thank you!

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


[Flashcoders] Flash on mobile phones in Australia

2010-05-31 Thread confustic...@gmail.com
Hey list,

My work wants to make a "mobile flashcards application" - a
language-learning flashcards game that can be played on a mobile phone. The
flashcards involve text, images and sound. While I'm not involved in
actually developing it, I've been tasked to find out whether having it built
in Flash Lite 2.0 is a good solution. I have almost zero knowledge about
mobiles, and so I thought I'd ask here while trying to find statistics on
the net.

1. What's the market penetration of Flash Lite 2.0 like? Is it safe to
assume that mobiles being sold / offered on plans at the moment are Flash
enabled?
2. Is there a better alternative, and if so, what would it be?

We're based in Australia, but any information would be appreciated, thank
you.

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


Re: [Flashcoders] Resize stage at runtime

2010-05-03 Thread confustic...@gmail.com
Hi Cor,

We have to do this quite often - we use the magnificent BrowserCanvas (which
was surprisingly hard to find):

http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html

Hope that helps you as much as it helped us.

On Wed, Apr 28, 2010 at 3:54 AM, Cor  wrote:

> Hi List,
>
> I would like to resize the stage after I load a video, through xml (url,
> width and height) and when loaded I would like to resize de swf to the
> dimensions from the xml.
> Is this possible??
>
> Regards
> Cor
>
> ___
> 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] Prevent children from listening to parent mouse events

2010-03-28 Thread confustic...@gmail.com
Thank you VERY much. ROLL_OUT was exactly what I needed.

On Mon, Mar 29, 2010 at 3:00 PM, Gregory Boland
wrote:

> there are several ways to combat this but i think what you want to use is
> ROLL_OVER and ROLL_OUT on the parent instead of the MOUSE_OVER and
> MOUSE_OUT.  rollover and rollout are different as rollover ignores the
> children, check out this post
>
> http://www.kirupa.com/forum/showthread.php?p=1948052
>
> <http://www.kirupa.com/forum/showthread.php?p=1948052>other than that you
> can try mouseChildren = false on the parent sprite if you don't care about
> the stuff inside having mouseevent properties
>
> greg
>
> On Sun, Mar 28, 2010 at 8:45 PM, confustic...@gmail.com <
> confustic...@gmail.com> wrote:
>
> > Hey list,
> >
> > I'm surprised I didn't notice this behaviour sooner, and I wonder how to
> > get
> > around it.
> >
> > Suppose you have a parent sprite and a child sprite. The child is small
> > enough to fit within the parent. The parent has a mouseOut event
> listener.
> > It seems that the child sprite's mouseOuts are also listened for,
> although
> > the mouse is still within the parent.
> >
> > Is it possible to listen ONLY for the parent's mouse events, not the
> > child's?
> >
> > Example code:
> >
> > var parentSprite:Sprite = new Sprite();
> > addChild(parentSprite);
> > parentSprite.graphics.beginFill(0xFF);
> > parentSprite.graphics.drawRect(0, 0, 100, 100);
> > parentSprite.name = "parental"
> >
> > var childSprite:Sprite = new Sprite();
> > parentSprite.addChild(childSprite);
> > childSprite.graphics.beginFill(0xFF);
> > childSprite.graphics.drawRect(0, 0, 20, 20);
> > childSprite.x = childSprite.y = 30;
> > childSprite.name = "kiddie";
> >
> > parentSprite.addEventListener(MouseEvent.MOUSE_OUT, mouseHandler)
> >
> > function mouseHandler (e:MouseEvent):void {
> >trace("e.target.name: " + e.target.name)
> >trace("e.currentTarget.name: " + e.currentTarget.name)
> >trace("")
> > }
> > ___
> > 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] Prevent children from listening to parent mouse events

2010-03-28 Thread confustic...@gmail.com
Hey list,

I'm surprised I didn't notice this behaviour sooner, and I wonder how to get
around it.

Suppose you have a parent sprite and a child sprite. The child is small
enough to fit within the parent. The parent has a mouseOut event listener.
It seems that the child sprite's mouseOuts are also listened for, although
the mouse is still within the parent.

Is it possible to listen ONLY for the parent's mouse events, not the
child's?

Example code:

var parentSprite:Sprite = new Sprite();
addChild(parentSprite);
parentSprite.graphics.beginFill(0xFF);
parentSprite.graphics.drawRect(0, 0, 100, 100);
parentSprite.name = "parental"

var childSprite:Sprite = new Sprite();
parentSprite.addChild(childSprite);
childSprite.graphics.beginFill(0xFF);
childSprite.graphics.drawRect(0, 0, 20, 20);
childSprite.x = childSprite.y = 30;
childSprite.name = "kiddie";

parentSprite.addEventListener(MouseEvent.MOUSE_OUT, mouseHandler)

function mouseHandler (e:MouseEvent):void {
trace("e.target.name: " + e.target.name)
trace("e.currentTarget.name: " + e.currentTarget.name)
trace("")
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Combining embedded and device fonts in one textfield

2010-02-17 Thread confustic...@gmail.com
Thanks a lot for your reply, Jim.

In the end, we concluded that:

(1) You can't have a combination of embedded fonts and device fonts in
one textfield. We decided to search the text for phonemic characters,
and if it had any, go ahead and do the textfield.embedFonts=true as
well as loading in the SWF containing the font. (See below.)

(2) We need to embed DejaVu Sans «http://dejavu.sourceforge.net» (that
was a great tip, thanks!)

(3) This method for embedding unicode ranges of normal, bold, oblique
and bold-oblique versions of the font works really well for our
purposes, as we really only needed a very small subset of a unicode
font: «http://www.kirupa.com/forum/showthread.php?t=257913»

Your help was very much appreciated, thank you!


On Thu, Feb 11, 2010 at 10:34 PM, Jim Hayes  wrote:
> Ah, I've just been there with IPA characters.
>
> If you are using htmltext it's do able, though in the end I embedded the font 
> (deja-vu in my case, it's open source) since I also needed to set plain text.
>
> The trick is to unicode escape the character, replace it with that escaped 
> code and set a style on it's replacement, where that style specifies the 
> embedded font.
>
> so if you know your character code for your undertie , lets say it's 1234, 
> try something like this :
>
> var unicodeString:String = "&#" + 1234 + ";";
> str = str.replace(String.fromCharCode(1234),"" + 
> unicodeString + "");
>
> then specify the style for your text :
> _textStyle = new StyleSheet();
> var ipaStyle:Object = new Object();
> ipaStyle.fontFamily = "YourEmbeddedFont";
> _textStyle.setStyle(".ipa", ipaStyle);
> yourText.styleSheet = _textStyle;
>
> Sorry if that's a bit scrappy, hopefully it will give you an idea of where 
> you might head.
> I was using flex, in fact, but I think this still applies to flash textfields.
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com on behalf of 
> confustic...@gmail.com
> Sent: Thu 2/11/2010 6:01 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Combining embedded and device fonts in one 
> textfield
>
> Thanks for that link, Ktu. I didn't know you could specify Unicode
> ranges to embed - very handy.
>
> Unfortunately, the problem still remains of having to combine an
> embedded font and a device font in the same textfield. As Lee Brimelow
> demonstrates near the end of the tutorial, the lowercase 'u' didn't
> display because only uppercase glyphs were embedded. It seems like if
> I choose to embed only the undertie character, my textfield will only
> be capable of displaying ... the undertie character!
>
> It seems like this is the conundrum:
>
> 1) I need to embed the undertie character, as Arial Unicode MS is not
> guaranteed to be found on all machines.
>
> 2) That means that any textfield which would have an undertie in it,
> would have to have embedFonts = true;
>
> 3) Any textfield which has embedFonts = true can only display
> characters included in the embedded font. Which, referring back to
> (1), would just be an undertie.
>
> 4) This means that if I want to have an undertie, I'd have to embed
> the undertie AND every single other glyph which might be used in that
> textfield. Uppercase, lowercase, punctuation, numbers, etc. Further,
> I'd have to embed separate versions for each of bold, italic, and
> bold-italic.
>
> All this for an undertie!!
>
> On Thu, Feb 11, 2010 at 4:18 PM, Ktu  wrote:
>> If you have Flash CS4 or Flex, you could embed just that one character from
>> that font using the [Embed] syntax. Check out this tutorial
>> http://gotoandlearn.com/play?id=102
>>
>> Ktu
>>
>> On Wed, Feb 10, 2010 at 11:08 PM, confustic...@gmail.com <
>> confustic...@gmail.com> wrote:
>>
>>> I have paragraphs of text which includes phonemic symbols: pretty much
>>> any character found here should be included:
>>> http://www.e-lang.co.uk/mackichan/call/pron/type.html
>>>
>>> I thought I was home and hosed, as Lucida Sans Unicode / Lucida
>>> Grande, which seems pretty standard, covers all that.
>>>
>>> The problem came when I found out that I also have to be able to
>>> display the undertie character:
>>> http://en.wikipedia.org/wiki/Tie_(typography)<http://en.wikipedia.org/wiki/Tie_%28typography%29>(HTML
>>>  code ?)
>>>
>>> It seems that the only font on Windows that covers the undertie is
>>> Arial Unicode MS. Unfortunately, Arial Unicode MS doesn't seem to be a
>>> standard

Re: [Flashcoders] Combining embedded and device fonts in one textfield

2010-02-10 Thread confustic...@gmail.com
Thanks for that link, Ktu. I didn't know you could specify Unicode
ranges to embed - very handy.

Unfortunately, the problem still remains of having to combine an
embedded font and a device font in the same textfield. As Lee Brimelow
demonstrates near the end of the tutorial, the lowercase 'u' didn't
display because only uppercase glyphs were embedded. It seems like if
I choose to embed only the undertie character, my textfield will only
be capable of displaying ... the undertie character!

It seems like this is the conundrum:

1) I need to embed the undertie character, as Arial Unicode MS is not
guaranteed to be found on all machines.

2) That means that any textfield which would have an undertie in it,
would have to have embedFonts = true;

3) Any textfield which has embedFonts = true can only display
characters included in the embedded font. Which, referring back to
(1), would just be an undertie.

4) This means that if I want to have an undertie, I'd have to embed
the undertie AND every single other glyph which might be used in that
textfield. Uppercase, lowercase, punctuation, numbers, etc. Further,
I'd have to embed separate versions for each of bold, italic, and
bold-italic.

All this for an undertie!!

On Thu, Feb 11, 2010 at 4:18 PM, Ktu  wrote:
> If you have Flash CS4 or Flex, you could embed just that one character from
> that font using the [Embed] syntax. Check out this tutorial
> http://gotoandlearn.com/play?id=102
>
> Ktu
>
> On Wed, Feb 10, 2010 at 11:08 PM, confustic...@gmail.com <
> confustic...@gmail.com> wrote:
>
>> I have paragraphs of text which includes phonemic symbols: pretty much
>> any character found here should be included:
>> http://www.e-lang.co.uk/mackichan/call/pron/type.html
>>
>> I thought I was home and hosed, as Lucida Sans Unicode / Lucida
>> Grande, which seems pretty standard, covers all that.
>>
>> The problem came when I found out that I also have to be able to
>> display the undertie character:
>> http://en.wikipedia.org/wiki/Tie_(typography)<http://en.wikipedia.org/wiki/Tie_%28typography%29>(HTML
>>  code ‿)
>>
>> It seems that the only font on Windows that covers the undertie is
>> Arial Unicode MS. Unfortunately, Arial Unicode MS doesn't seem to be a
>> standard font.
>>
>> I don't want to have to embed Arial Unicode MS because that would
>> really add to my file sizes, as well as restricting my ability to do
>> things like textfield.htmlText = "bold text". It seems like
>> such overkill for ONE SINGLE GLYPH.
>>
>> Would anyone be able to suggest any alternatives? ALL I WANT IS AN
>> UNDERTIE ... *sob*
>> ___
>> 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] Combining embedded and device fonts in one textfield

2010-02-10 Thread confustic...@gmail.com
I have paragraphs of text which includes phonemic symbols: pretty much
any character found here should be included:
http://www.e-lang.co.uk/mackichan/call/pron/type.html

I thought I was home and hosed, as Lucida Sans Unicode / Lucida
Grande, which seems pretty standard, covers all that.

The problem came when I found out that I also have to be able to
display the undertie character:
http://en.wikipedia.org/wiki/Tie_(typography) (HTML code ‿)

It seems that the only font on Windows that covers the undertie is
Arial Unicode MS. Unfortunately, Arial Unicode MS doesn't seem to be a
standard font.

I don't want to have to embed Arial Unicode MS because that would
really add to my file sizes, as well as restricting my ability to do
things like textfield.htmlText = "bold text". It seems like
such overkill for ONE SINGLE GLYPH.

Would anyone be able to suggest any alternatives? ALL I WANT IS AN
UNDERTIE ... *sob*
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] HTML ordered lists

2009-09-29 Thread confustic...@gmail.com
Is there a best method for dealing with ordered lists in HTML textfields?
Something in me rebels against tab spaces, but how else could one deal with
the lack of support for the  tag?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Input textfield's Event.CHANGE doesn't fire forbackspace?

2009-09-29 Thread confustic...@gmail.com
Thanks Jason. I first noticed this problem in the Flash IDE, but I quickly
went and tested in IE and FF with the same results, unfortunately.

On Wed, Sep 30, 2009 at 11:06 AM, Merrill, Jason <
jason.merr...@bankofamerica.com> wrote:

> This could be one of those browser gotchas - if the browser has control
> over backspace, then the Flash player doesn't.  For example, I've never
> been able to detect ctrl+c, ctrl+s etc because the browser has already
> claimed it.  Just a hunch.
>
>
> Jason Merrill
>
> Bank of  America   Global Learning
> Learning & Performance Soluions
>
> Monthly meetings on making the most of the Adobe Flash Platform -
> presented by bank associates, Adobe engineers, and outside experts in
> the borader multimedia community - join the Bank of America Flash
> Platform Community  (note: this is for Bank of America employees only)
>
>
> ___
> 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] Input textfield's Event.CHANGE doesn't fire for backspace?

2009-09-29 Thread confustic...@gmail.com
Hey List,

Consider something like this:

//inputTextField is multilined and wordWrapped
inputTextField.addEventListener(Event.CHANGE, changeHandler);

//All this does is trace when fired
function changeHandler(e:Event):void {
trace("fired");
}

I expected this to fire when backspacing over a carriage return (ie, when
pressing backspace reduces the number of lines in the textfield by one), but
it doesn't. To try for yourself:

1. Type "Hello", then press enter, then type "world". You should have 2
lines of text.
2. Press backspace 5 times (so that "world" is gone, but the cursor is still
on line 2). The changeHandler should fire all 5 times.
3. Press backspace one more time (so that the cursor is at the end of line
1). ... Am I the only one who isn't getting a changeHandler fired at me?!

Note: It works fine in the opposite direction - ie, if you're using the
delete key rather than the backspace. But I really need to be able to detect
backspace so I can rearrange the y positions of other things on my stage.

If anyone has any suggestions or comments, it would be most appreciated!

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


Re: [Flashcoders] Capture sound input in Flash as MP3?

2009-03-05 Thread confustic...@gmail.com
Thanks for your reply Glen. That is really handy to know.

Now to plunge into what looks like the terrifying world of Red5. *shiver*

Cheers,
CB.

On Thu, Mar 5, 2009 at 11:10 PM, Glen Pike wrote:

> Hi,
>
>   You can "capture" the microphone sound in Flash by publishing it to a
> server via a Netstream connected to Flash Media Server or Red5 (OS media
> server).
>
>   You can't get the sound from the microphone and save it to an mp3 on your
> machine without sending it to be recorded by the server first...
>
>   HTH
>
>   Glen
>
>
> confustic...@gmail.com wrote:
>
>>  Hello List,
>>
>> I wonder if I could get this sorted out once and for all.
>>
>> A colleague is convinced that you can capture a SWF's sound input
>> (possibly
>> through the Microphone class) and save it as an MP3. However, said
>> colleague
>> has not yet provided any proof or examples.
>>
>> I meanwhile have been trying to find examples / tutorials / documentation
>> regarding this and have come up empty.
>>
>> Would anyone know if this is / isn't possible? We would love for our users
>> to be able to record their speech onto a server or their local hard
>> drives.
>>
>> Cheers,
>> CB.
>> ___
>> 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] Capture sound input in Flash as MP3?

2009-03-05 Thread confustic...@gmail.com
Hello List,

I wonder if I could get this sorted out once and for all.

A colleague is convinced that you can capture a SWF's sound input (possibly
through the Microphone class) and save it as an MP3. However, said colleague
has not yet provided any proof or examples.

I meanwhile have been trying to find examples / tutorials / documentation
regarding this and have come up empty.

Would anyone know if this is / isn't possible? We would love for our users
to be able to record their speech onto a server or their local hard drives.

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


[Flashcoders] Light-weight AS3 text scroll bar? (alternative to UIScrollBar)

2009-02-01 Thread confustic...@gmail.com
Hi List,

Can anyone recommend a light-weight AS3 scroll bar component for scrolling
textfields? I used TextScroller (http://play.ground.gr/?p=85) in AS2.

I tried out UIScrollBar and it added 16KB to my (previously 4KB) swf. Any
suggestions for lighter alternatives would be very much appreciated.

Thanks and cheers,

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


Re: [Flashcoders] Re: Dynamically resize Flash

2009-01-20 Thread confustic...@gmail.com
@Joel: Thanks for letting us know. It's good to know that using a mixture of
the two methods works as well.

@Romu: I saw your post on the developer's site! I found that (similar to
Joel, I guess) if I used only the HACK_MARGIN_BOTTOM (ie, not using
HACK_IE_REPARENT or HACK_UNIQUE_ID), the IE errors no longer occured. I
didn't investigate it further than that, but seems to work fine on
IE6/IE7/FF3 on WinXP and Safari on the Mac (sorry, not sure of versions). In
regards to why I'd use the browser scrollbar over a Flash scrollbar, it's
because my SWF with expandable vertical content is only a small portion of
an otherwise HTML page.

@allandt: I came across swffit in my googlations which seems expressly for
handling 100% width and height http://swffit.millermedeiros.com/example.html
In conclusion, BrowserCanvas rocks. It does exactly what I need it to. If
frustration saved is measured in "percentage of molars you would've ground
down, if not for ...", I think this measures at least 0.5mol. Many thanks to
Noel Billig.

Cheers,
CB.



On Tue, Jan 20, 2009 at 2:29 PM, Joel Stransky wrote:

> I fixed my issue for those who care. I consists of a mix of the first two
> examples posted in this thread. I placed my flashcontent div inside a
> container div. The width and height passed to swfobject are both 100% and
> the container div is set to the intended width and height. I then passed
> the
> container id to BrowserCanvas instead of the flashcontent id as well as
> passing an empty array for the browser hacks param.
>
> Your canvas object allows you to set width and height separately but still
> updates both dimensions when either setter is called. For some reason this
> causes FF for mac to consider the other dimension as 0. The fix for this
> was
> setting both properties everytime even if one never changes.
>
> On Mon, Jan 19, 2009 at 2:05 PM, Joel Stransky  >wrote:
>
> > Hmm, I'm using BrowserCanvas in my current project and having zero issues
> > aside from it breaking swfaddress in IE7. Otherwise works fine in Safari
> and
> > FF for mac and IE6/FF for windows.
> >
> >
> > On Mon, Jan 19, 2009 at 10:27 AM, allandt bik-elliott (thefieldcomic.com
> )
> >  wrote:
> >
> >> isn't there a bit of wierdness in firefox where, if you want it to be
> 100%
> >> width / height of the window, you need to add it to the css and apply it
> >> to
> >> the swfobject targetted div?
> >>
> >> On Mon, Jan 19, 2009 at 1:56 PM, Romuald Quantin <
> >> soundstep.mail...@googlemail.com> wrote:
> >>
> >> > I sent to the BrowserCanvas developer the IE error months ago, I guess
> >> he
> >> > didn't find a solution if he didn't update his library.
> >> >
> >> > I've been asked for this some months ago but we've ended up to build a
> >> > flash scrollbar instead... if I may ask, what makes you choose a
> browser
> >> > scrollbar for a flash content? Because in my case, having something
> >> solid
> >> > without cross-browsing issue made me build a flash scrollbar.
> >> >
> >> > Romu
> >> > www.soundstep.com
> >> >
> >> >
> >> >
> >> > confustic...@gmail.com wrote:
> >> >
> >> >> Sorry List.
> >> >>
> >> >> I really am all kinds of idiot. What I said below about BrowserCanvas
> >> is
> >> >> incorrect. It takes the containerId as a parameter ... which was
> >> >> immediately
> >> >> obvious from reading the documentation! Apologies. Now, to work out
> >> what's
> >> >> causing the IE error ...
> >> >>
> >> >> I am still interested in any comments regarding the Mustard Lab
> Resize
> >> >> Flash
> >> >> with SWFObject issue though.
> >> >>
> >> >> Humbly,
> >> >>
> >> >> CB.
> >> >>
> >> >> On Mon, Jan 19, 2009 at 1:53 PM, confustic...@gmail.com <
> >> >> confustic...@gmail.com> wrote:
> >> >>
> >> >>
> >> >>
> >> >>> Hi List,
> >> >>>
> >> >>> Does anyone have a bulletproof method for dynamically resizing your
> >> SWFs
> >> >>> from within the SWF? eg, if you have SWFs which have expandable
> >> vertical
> >> >>> content that sit within the flow of an HTML page. Something like
> this:
> >> >>> http://2mdc.com/re

[Flashcoders] Re: Dynamically resize Flash

2009-01-18 Thread confustic...@gmail.com
Sorry List.

I really am all kinds of idiot. What I said below about BrowserCanvas is
incorrect. It takes the containerId as a parameter ... which was immediately
obvious from reading the documentation! Apologies. Now, to work out what's
causing the IE error ...

I am still interested in any comments regarding the Mustard Lab Resize Flash
with SWFObject issue though.

Humbly,

CB.

On Mon, Jan 19, 2009 at 1:53 PM, confustic...@gmail.com <
confustic...@gmail.com> wrote:

> Hi List,
>
> Does anyone have a bulletproof method for dynamically resizing your SWFs
> from within the SWF? eg, if you have SWFs which have expandable vertical
> content that sit within the flow of an HTML page. Something like this:
> http://2mdc.com/resizableFlash/
>
> I have tried doesnotcompute's lovely BrowserCanvas (
> http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html)
>  and
> found that it only works for 1 SWF per page. (It always resizes the first
> SWF, no matter which SWF needs resizing.)
>
> I have also tried the wonderful Mustard Lab Resize Flash technique (
> http://www.mustardlab.com/developer/flash/objectresize/) - however, to my
> surprise I couldn't get it working with properly SWFObject in IE6 and
> Safari. It works fine in FF and IE7. I found that, while the containing DIV
> was resized appropriately, the Flash height (set to 100%) was not filling up
> the DIV. I'm still not sure why this is; it works if the SWF is placed on
> the page using JavaScript to write out the tags (which is how it is
> implemented by Mustard Lab). Unfortunately it does need to work with
> SWFObject.
>
> Any ideas would be much appreciated,
>
> Cheers,
> CB.
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Dynamically resize Flash

2009-01-18 Thread confustic...@gmail.com
Hi List,

Does anyone have a bulletproof method for dynamically resizing your SWFs
from within the SWF? eg, if you have SWFs which have expandable vertical
content that sit within the flow of an HTML page. Something like this:
http://2mdc.com/resizableFlash/

I have tried doesnotcompute's lovely BrowserCanvas (
http://www.dncompute.com/blog/2008/06/23/browsercanvas-the-worlds-easiest-way-to-dynamically-resize-flash.html)
and
found that it only works for 1 SWF per page. (It always resizes the first
SWF, no matter which SWF needs resizing.)

I have also tried the wonderful Mustard Lab Resize Flash technique (
http://www.mustardlab.com/developer/flash/objectresize/) - however, to my
surprise I couldn't get it working with properly SWFObject in IE6 and
Safari. It works fine in FF and IE7. I found that, while the containing DIV
was resized appropriately, the Flash height (set to 100%) was not filling up
the DIV. I'm still not sure why this is; it works if the SWF is placed on
the page using JavaScript to write out the tags (which is how it is
implemented by Mustard Lab). Unfortunately it does need to work with
SWFObject.

Any ideas would be much appreciated,

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