Re: [Flashcoders] Interesting problem - doesn't work without call to trace.

2009-04-27 Thread Ktu
I know this is a few days old, but I have some input.

I have seen something similar to this with AS2. Using the WebServices class,
when you make a method call on a web service object, you create a pending
call object, and one of the properties of the pendingCall class was
doLazyDecoding. What this variable specified was whether the player should
convert the XML data to native Flash objects right away, or only when
needed.

I had multiple issues with trying to access information from the return of a
WebService call, and the only way to fix it was to set doLazyDecoding to
false.

Since WebServices send data as XML, it could be, that the same type of issue
is occuring here in AS3 with the new XML object. FP is probably doing
something in the background with the xml just loaded, and hasn't finished
yet when you don't put the trace in.

That's just my wacky theory.

Ktu

On Fri, Apr 17, 2009 at 8:38 PM, Taka Kojima  wrote:

> Hey Tim,
>
> I have run into this before as well, with both ActionScript and using
> alert() in JavaScript.
>
> What I concluded was that the trace/alert basically adds a small pause
> or causes something to happen (i.e. skip a frame or something of the
> sort) so that the code below it works.
>
> I may be totally wrong and this may sound crazy and stupid, but
> whenever I did something like take the trace out and put the rest of
> the code into a COMPLETE event for a timer, or had the code run on the
> next frame with an onEnterFrame, it started working.
>
> I know you say you don't think its a timing issue, but instead of the
> loop try doing a Timer and see if that solves it.
>
>
>
>
> On Fri, Apr 17, 2009 at 9:09 AM, Tim Hawkins 
> wrote:
> > Well, it becomes a null - so if I do select1.toString() in the trace I
> just
> > get a runtime error.. And I don't want to turn the results of my query
> into
> > a string, because I need it as an XML ref.
> >
> > 2009/4/17 Glen Pike 
> >
> >> Have you tried the toString or toXMLString for this - check the XML
> class
> >> for the proper function name...
> >> Glen
> >>
> >>
> >> Tim Hawkins wrote:
> >>
> >>> Hi Matt,
> >>> No, afraid not.. I actually use the select1 variable elsewhere, so it's
> >>> not
> >>> just that trace which is the problem.
> >>>
> >>> Thanks for the suggestion though!
> >>>
> >>>
> >>>
> >>> 2009/4/17 Matt S. 
> >>>
> >>>
> >>>
> >>>> Does it make a difference if you write the trace as :
> >>>>
> >>>> trace("formData="+formData);
> >>>> trace("select1:"+ select1);
> >>>>
> >>>>
> >>>> On 4/17/09, Tim Hawkins  wrote:
> >>>>
> >>>>
> >>>>> Hi,
> >>>>> I've come across this a few times in my own code, but haven't seen it
> >>>>> mentioned online - though it's a difficult thing to google for.
> >>>>>
> >>>>> In the following function, if the trace at the top is present,
> formData
> >>>>> traces a load of XML and select1 also traces a load of XML.
> >>>>>
> >>>>> If I comment out the top trace, formData still traces the same pile
> of
> >>>>>
> >>>>>
> >>>> XML
> >>>>
> >>>>
> >>>>> but select1 traces null!
> >>>>>
> >>>>> public function testMakeModelFilterWorks():void {
> >>>>>
> >>>>>  trace("");
> >>>>>  default xml namespace  = NAMESPACE;
> >>>>>
> >>>>> var select1:XML = formData..select1[2];
> >>>>> trace("formData=", formData);
> >>>>>  trace("select1:", select1);
> >>>>>
> >>>>> // etc
> >>>>> default xml namespace = null;
> >>>>> }
> >>>>>
> >>>>> Any ideas? I'm getting fed up of leaving 'trace("");//don't delete
> me'
> >>>>> at
> >>>>> the top of functions.
> >>>>> (I don't think it's a timing thing, if I put a 10-item
> >>>>> increment-a-variable loop in there instead of a trace the E4X still
> >>>>>
> >>>>>
> >>>> fails.)
> >>>>
> >>>>
> >>>>> t.
> >>>>> ___
> >>>>> 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Runtime Align Panel package AS3

2009-06-04 Thread Ktu
Hey List,

I have created a fairly robust alignment tool I have dubbed VizAlign. This
package duplicates the align panel and more!

License: I was thinking of releasing under GPL.

Compiled code size - 5.8kb... for now

Features:
Straight Forward Human-like API
Ignores Nesting
Treat Multiple Objects As Groups
Works In Full Screen Mode
Use As Many Targets As You Need
Use As Many Alignment Methods You Need In One Method Call
25 Different Alignment Methods
Easily Add New Alignment Methods
TruePixel Option For Even Pixel Results
Choose To Apply Results Immediately
Or Just Get Return Values For Animating
70% Documented Using ASDoc

This is an example of the kind of stuff you can do with the VizAlign class.
Capabilities.html cannot handle grouping options.
http://www.cataclysmicrewind.com/viz...abilities.html<http://www.cataclysmicrewind.com/vizalign/examples/capabilities.html>
http://www.cataclysmicrewind.com/viz...les/groups.swf<http://www.cataclysmicrewind.com/vizalign/examples/groups.swf>

Method Descriptions:
http://www.cataclysmicrewind.com/vizalign/examples/MethodDescriptions.html

View current documentation here:
http://www.cataclysmicrewind.com/vizalign/docs


Question: I have ideas for more functionality but am not sure if they are
worth it. Are you interested in this type of tool being released and
maintained? I see much potential for this package. Do you?

If enough people are interested then I will consider adding functionality
and reducing file size.

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


Re: [Flashcoders] AS 2.0 and JAX-WS

2009-06-04 Thread Ktu
Have you used the WebService panel that is built into the Flash IDE. I would
assume that if you can view the wsdl in the web service panel in the ide
that you can use it in code...


Ktu

On Mon, Jun 1, 2009 at 4:59 PM, Rodney Green  wrote:

> When trying to load the wsdl for a web service created with jax-ws, I get
> an
> undefined in the xsd path.  Is Flash able to load this?  I read something
> about Flash not being able to load external xsd files.  Is this the case?
> What can I do to read the wsdl properly?  I'm using CS3 ans AS 2 - does CS4
> have any updated web service (AS 2) capabilities?
>
> Thanks in advance.
> ___
> 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] Server-side image export from swf

2009-06-04 Thread Ktu
You should check out AlivePDF

http://alivepdf.bytearray.org/

Ktu

On Tue, May 26, 2009 at 10:40 AM, Dan Farrow  wrote:

> Hi all,
> I'm building an online tool to let my client create diagrams and then
> download them as print resolution images or pdf. I wondered if anyone had
> suggestions for ways to achieve this on the server.
>
> Some brief googling suggests that converting the image to an array of
> pixels
> and passing them to the server is the way to go, but as the images need to
> be high-res I'm wondering if there might be a quicker solution using svg
> export or similar?
>
> Thanks in advance for any help
> Dan
> ___
> 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] Projector "Serial Number" protection

2009-06-05 Thread Ktu
I second that notion. Zinc is not your friend.

On Fri, Jun 5, 2009 at 3:18 PM, Info  wrote:

> We did several projects using Zinc and regretted every one.  We kept
> running into .dll errors and they kept issuing updates saying they were
> fixed, which they weren't.  Worse yet, if you complained in their forums
> your post would get deleted.
>
> I had high hopes for v3.0 because they rewrote from the ground up and
> claimed that the .dll errors could not happen now.  Nope.  We still got
> them.
>
> We finally said enough.  They got our money to upgrade to v3 but they'll
> never get another cent from our company.  I would turn down a project before
> I even considered taking one that required Zinc.
>
>
>
> At 02:05 AM 5/27/2009, you wrote:
>
>> Likewise (I seem to keep saying this) I have had a number of serious
>> problems with Zinc over the years, and our company has had to migrate
>> away from it.
>>
>> Ian
>>
>> On Wed, May 27, 2009 at 1:07 AM, Muzak  wrote:
>> > Careful with buying Zinc if you don't already have a license.
>> > As of late, their support is non existing. They haven't responded in
>> quite
>> > some time on their support forums.
>> > I've asked them (a month ago) about a (serious) bug that has been around
>> > since August 2008 and haven't heard anything.
>> >
>> > Just a friendly warning :)
>> >
>> > - Original Message - From: "Glen Pike" <
>> postmas...@glenpike.co.uk>
>> > To: "Flash Coders List" 
>> > Sent: Wednesday, May 27, 2009 12:22 AM
>> > Subject: Re: [Flashcoders] Projector "Serial Number" protection
>> >
>> >
>> >> Hi,
>> >>
>> >>   Cheers guys - Zinc looks quite sturdy and possibly a nice investment,
>> >> depending on whether the (humanoid) client wants to go for something
>> >> flexible.
>> >>
>> >>   Found a few other products that let you bundle in serial protection -
>> >> probably less flexible, but cheap - links for anyone interested.
>>  Comments
>> >> welcome..
>> >> http://www.increditools.com/flash_exe_builder/features.php
>> >>   http://www.chameleonflash.com/index.html
>> >>
>> >>   As for the robots - they can look after themselves - can't put serial
>> >> numbering on an OS Linux app, so we have to resort to making the robots
>> walk
>> >> and fight their own battles :P
>> >>
>> >>   Later
>> >>
>> >>   Glen
>> >>
>> >
>> > ___
>> > 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] Projector "Serial Number" protection

2009-06-06 Thread Ktu
I think the only other options are AIR, and Titanium<http://titaniumapp.com/>

On Sat, Jun 6, 2009 at 7:00 AM, Kevin Bath  wrote:

> Shame - it has some great functionality.
>
> Is there a more stable alternative 'wrapper' that anyone can recommend?
>
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ktu
> Sent: 06 June 2009 00:52
> To: Flash Coders List
> Subject: Re: [Flashcoders] Projector "Serial Number" protection
>
> I second that notion. Zinc is not your friend.
>
> On Fri, Jun 5, 2009 at 3:18 PM, Info  wrote:
>
> > We did several projects using Zinc and regretted every one.  We kept
> > running into .dll errors and they kept issuing updates saying they were
> > fixed, which they weren't.  Worse yet, if you complained in their forums
> > your post would get deleted.
> >
> > I had high hopes for v3.0 because they rewrote from the ground up and
> > claimed that the .dll errors could not happen now.  Nope.  We still got
> > them.
> >
> > We finally said enough.  They got our money to upgrade to v3 but they'll
> > never get another cent from our company.  I would turn down a project
> before
> > I even considered taking one that required Zinc.
> >
> >
> >
> > At 02:05 AM 5/27/2009, you wrote:
> >
> >> Likewise (I seem to keep saying this) I have had a number of serious
> >> problems with Zinc over the years, and our company has had to migrate
> >> away from it.
> >>
> >> Ian
> >>
> >> On Wed, May 27, 2009 at 1:07 AM, Muzak  wrote:
> >> > Careful with buying Zinc if you don't already have a license.
> >> > As of late, their support is non existing. They haven't responded in
> >> quite
> >> > some time on their support forums.
> >> > I've asked them (a month ago) about a (serious) bug that has been
> around
> >> > since August 2008 and haven't heard anything.
> >> >
> >> > Just a friendly warning :)
> >> >
> >> > - Original Message - From: "Glen Pike" <
> >> postmas...@glenpike.co.uk>
> >> > To: "Flash Coders List" 
> >> > Sent: Wednesday, May 27, 2009 12:22 AM
> >> > Subject: Re: [Flashcoders] Projector "Serial Number" protection
> >> >
> >> >
> >> >> Hi,
> >> >>
> >> >>   Cheers guys - Zinc looks quite sturdy and possibly a nice
> investment,
> >> >> depending on whether the (humanoid) client wants to go for something
> >> >> flexible.
> >> >>
> >> >>   Found a few other products that let you bundle in serial protection
> -
> >> >> probably less flexible, but cheap - links for anyone interested.
> >>  Comments
> >> >> welcome..
> >> >> http://www.increditools.com/flash_exe_builder/features.php
> >> >>   http://www.chameleonflash.com/index.html
> >> >>
> >> >>   As for the robots - they can look after themselves - can't put
> serial
> >> >> numbering on an OS Linux app, so we have to resort to making the
> robots
> >> walk
> >> >> and fight their own battles :P
> >> >>
> >> >>   Later
> >> >>
> >> >>   Glen
> >> >>
> >> >
> >> > ___
> >> > 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 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] Re: Runtime Align Panel package AS3

2009-06-06 Thread Ktu
Did anyone check it out at all?
Any bit of feedback would be good, even if you don't think you personally
would ever use it.

Capabilities 
SWF<http://www.cataclysmicrewind.com/vizalign/examples/capabilities.html>
Method 
Descriptions<http://www.cataclysmicrewind.com/vizalign/examples/MethodDescriptions.html>
Documentation <http://www.cataclysmicrewind.com/vizalign/docs/>


On Thu, Jun 4, 2009 at 5:01 PM, Ktu  wrote:

> Hey List,
>
> I have created a fairly robust alignment tool I have dubbed VizAlign. This
> package duplicates the align panel and more!
>
> License: I was thinking of releasing under GPL.
>
> Compiled code size - 5.8kb... for now
>
> Features:
> Straight Forward Human-like API
> Ignores Nesting
> Treat Multiple Objects As Groups
> Works In Full Screen Mode
> Use As Many Targets As You Need
> Use As Many Alignment Methods You Need In One Method Call
> 25 Different Alignment Methods
> Easily Add New Alignment Methods
> TruePixel Option For Even Pixel Results
> Choose To Apply Results Immediately
> Or Just Get Return Values For Animating
> 70% Documented Using ASDoc
>
> This is an example of the kind of stuff you can do with the VizAlign class.
> Capabilities.html cannot handle grouping options.
> http://www.cataclysmicrewind.com/viz...abilities.html<http://www.cataclysmicrewind.com/vizalign/examples/capabilities.html>
> http://www.cataclysmicrewind.com/viz...les/groups.swf<http://www.cataclysmicrewind.com/vizalign/examples/groups.swf>
>
> Method Descriptions:
> http://www.cataclysmicrewind.com/vizalign/examples/MethodDescriptions.html
>
> View current documentation here:
> http://www.cataclysmicrewind.com/vizalign/docs
>
>
> Question: I have ideas for more functionality but am not sure if they are
> worth it. Are you interested in this type of tool being released and
> maintained? I see much potential for this package. Do you?
>
> If enough people are interested then I will consider adding functionality
> and reducing file size.
>
> Ktu
>
>
>
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Projector "Serial Number" protection

2009-06-07 Thread Ktu
I just ran across this site: http://shu-player.com/

They seem similar to all the other guys out there, but there focus is on
taking AIR apps, and turning them into standalone apps without needing AIR
installed on your machine. Not sure about serial number functionality but
they look interesting.

On Sat, Jun 6, 2009 at 8:14 PM, -whispers-  wrote:

> Northcode is a REALLY great guy..  very helpful..and will see you through
> 'til the end with help..
>
> You can also post on the SWF Studio forum..or find him as a moderator at
> www.flashkit.com forums
>   - Original Message -
>  From: [Amer]
>  To: Flash Coders List
>  Sent: Saturday, June 06, 2009 5:37 PM
>  Subject: Re: [Flashcoders] Projector "Serial Number" protection
>
>
>   if you are looking for robust and stable , really stable solution ,
> forget
>  about Zinc , use Northcode SWF Studio and you will thank me later for this
>  advice .
>  I am a user of Flash Projectors for more than six years , I've tried the
>  most known : ScreenWeaver (now dead) , ScreenTime mProjector , Zinc,  and
>  SWFStudio .  believe me you will never find a tool like Northcode one ,
> and
>  the support is outstanding too.  I'm a registered user since 2005 (after
>  leaving Zinc) and I'm very happy till now .  they are amazing and very
>  helpfull .  just spend an hour reading the forums and you will see how the
>  folks are happy there.
>
>  regards.
>
>
>
>
>  On Sun, Jun 7, 2009 at 1:10 AM, Ian Thomas  wrote:
>
>  > You could try Northcode's SWFStudio.
>  >
>  > http://www.northcode.com/
>  >
>  > Ian
>  >
>  > On Sat, Jun 6, 2009 at 6:07 PM, Ktu
>  > wrote:
>  > > I think the only other options are AIR, and Titanium<
>  > http://titaniumapp.com/>
>  > >
>  > > On Sat, Jun 6, 2009 at 7:00 AM, Kevin Bath 
>  > wrote:
>  > >
>  > >> Shame - it has some great functionality.
>  > >>
>  > >> Is there a more stable alternative 'wrapper' that anyone can
> recommend?
>  > ___
>  > Flashcoders mailing list
>  > Flashcoders@chattyfig.figleaf.com
>  > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>  >
>
>
>
>  --
>  Amer
>  ___
>  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] does anyone use MonsterDebugger

2009-06-08 Thread Ktu
I use it on a consistent basis. It is really nice to get a tree display of
arrays using trace rather than just plain text.

Love it.

On Mon, Jun 8, 2009 at 12:31 PM, Matt Muller wrote:

> sure. I use it a lot
>
> great tool.
>
> tutorial here
>
> http://theflashblog.com/?p=980
>
> On Mon, Jun 8, 2009 at 5:13 PM, Anthony Pace  >wrote:
>
> > I have used it and it seems okay; yet, would this ever be used in a
> > professional development environment?
> >
> > I have been using the basic debugger in the flex 3 sdk for quite a while
> > now, and I am looking for alternatives.
> > ___
> > 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] Re: Runtime Align Panel package AS3

2009-06-10 Thread Ktu
I appreciate the response, and I recognize what you say as true.

One of the things I see for this alignment tool as really useful is when you
want to make an image fit inside of a certain 'viewable area' and make it
centered in that area, like making a thumbnail get bigger for a slideshow
thing of sorts.

I even found a bug in the flash player while working on it...
If you have an object with a stroke and the stroke scale mode set to 'none'
and you change the scale of that object, when you call getBounds() on that
object, the getBounds rectangle includes the stroke as if the stroke scale
mode was set to 'normal'.
example of bug <http://www.cataclysmicrewind.com/flash/bug.swf>
Submitted Bug <https://bugs.adobe.com/jira/browse/FP-452>





On Tue, Jun 9, 2009 at 3:42 AM, Hans Wichman  wrote:

> Hi Ktu,
>
> seems great, but havent had time to really dive into it, don't take the
> lack
> of response the wrong way it happens now and then, but has nothing to do
> with whether or not you're building something great;)
>
> regards,
> JC
>
> On Sun, Jun 7, 2009 at 5:54 AM, Ktu 
> wrote:
>
> > Did anyone check it out at all?
> > Any bit of feedback would be good, even if you don't think you personally
> > would ever use it.
> >
> > Capabilities SWF<
> > http://www.cataclysmicrewind.com/vizalign/examples/capabilities.html>
> > Method Descriptions<
> >
> http://www.cataclysmicrewind.com/vizalign/examples/MethodDescriptions.html
> > >
> > Documentation <http://www.cataclysmicrewind.com/vizalign/docs/>
> >
> >
> > On Thu, Jun 4, 2009 at 5:01 PM, Ktu 
> > wrote:
> >
> > > Hey List,
> > >
> > > I have created a fairly robust alignment tool I have dubbed VizAlign.
> > This
> > > package duplicates the align panel and more!
> > >
> > > License: I was thinking of releasing under GPL.
> > >
> > > Compiled code size - 5.8kb... for now
> > >
> > > Features:
> > > Straight Forward Human-like API
> > > Ignores Nesting
> > > Treat Multiple Objects As Groups
> > > Works In Full Screen Mode
> > > Use As Many Targets As You Need
> > > Use As Many Alignment Methods You Need In One Method Call
> > > 25 Different Alignment Methods
> > > Easily Add New Alignment Methods
> > > TruePixel Option For Even Pixel Results
> > > Choose To Apply Results Immediately
> > > Or Just Get Return Values For Animating
> > > 70% Documented Using ASDoc
> > >
> > > This is an example of the kind of stuff you can do with the VizAlign
> > class.
> > > Capabilities.html cannot handle grouping options.
> > > http://www.cataclysmicrewind.com/viz...abilities.html<
> > http://www.cataclysmicrewind.com/vizalign/examples/capabilities.html>
> > > http://www.cataclysmicrewind.com/viz...les/groups.swf<
> > http://www.cataclysmicrewind.com/vizalign/examples/groups.swf>
> > >
> > > Method Descriptions:
> > >
> >
> http://www.cataclysmicrewind.com/vizalign/examples/MethodDescriptions.html
> > >
> > > View current documentation here:
> > > http://www.cataclysmicrewind.com/vizalign/docs
> > >
> > >
> > > Question: I have ideas for more functionality but am not sure if they
> are
> > > worth it. Are you interested in this type of tool being released and
> > > maintained? I see much potential for this package. Do you?
> > >
> > > If enough people are interested then I will consider adding
> functionality
> > > and reducing file size.
> > >
> > > Ktu
> > >
> > >
> > >
> > >
> > ___
> > 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] Something to appreciate...

2009-06-15 Thread Ktu
Gotta love people who have passion.

Good luck. You could use a bunch of find/replace to make it a bit easier to
read.

Ktu

On Mon, Jun 15, 2009 at 7:06 PM, Taka Kojima  wrote:

> http://pastie.org/513192
>
> This is the file I have to traverse through this afternoon, gotta love
> contractors.
>
> p.s. Read the comment at the top to get the full scope.
> ___
> 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] Query String + Loader odd issue

2009-06-25 Thread Ktu
I have an idea, not much of one, but worth checking?

Publish everything and test it live.
You never know, sometimes stuff like that happens.
(supposing you haven't already tried that)

Ktu


On Thu, Jun 18, 2009 at 6:45 PM, Steve Mathews  wrote:

> Using Flash CS3 pro, trying to load a Flex based swf into a non-Flex swf
> and
> pass a query string to the Flex application. Simple enough in theory, using
> a Loader just point at the file and load. Add the loader to the stage and
> all is good.
> Now for the query string. Add it to the path ..
> var request:URLRequest = new URLRequest(path+"?data=true");
>
> and launch. Error #2035: URL Not Found. Ok, well lets launch this in debug
> mode... wait, that works? Yep, launching with the debugger and my file
> loads, gets the data and all is good.
>
> Just to add to this, I have a Captivate widget that basically does exactly
> this and it also works fine running in a published Captivate project. It
> has
> the same code with the query string and all. Note that I also tried using
> URLVariables instead of the string with no change.
>
> Anyone have any ideas what is going on here?
> ___
> 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] Constrain drag to non-rectangular shape

2009-07-01 Thread Ktu
To Prevent some extra hit testing, you could find a rectangle that exists
inside of your shape, then check if it is within the bounds of that
rectangle first, then if it goes beyond you can do the hitTest. Not sure if
it will save CPU at all though.

Ktu

On Wed, Jul 1, 2009 at 8:51 AM, Eric E. Dolecki  wrote:

> I'd like to constrain a drag to an area that isn't a rectangle, which leads
> me to hitTest and an enter frame thing. However I am wondering if it could
> be done with math instead.
> At the moment: constrain to a multi-point shape (think deformed trapezoid)
> but could be ellipses, circles, etc.
>
> Wondering if my 1st thought is the way to go.
>
> E
> ___
> 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] problems accessing a MovieClip / display list issue

2009-07-03 Thread Ktu
Just a thought, try doing getChildByName("icone");

What it looks like, is that there is no member variable in the MenuItem
class called icone. You can't call object.child by using the name property
of the child. The bt_title does, because probably you have defined in the
MenuItem class a variable called bt_title. It looks like you did not do the
same with the icon. If you use the getChildByName() that will give you the
results you want.

Ktu

On Fri, Jul 3, 2009 at 2:01 PM, Isaac Alves  wrote:

> Problems trying to access a MovieClip that contains a dynamically loaded
> image, inside dynamically created menu items.
>
> I hope the code is self explanatory !
>
> function mouseOverItem(e:Event):void {
> var item:MenuItem = e.target as MenuItem;
>  trace (item.getChildAt(3).name);
> trace (item.getChildAt(3));
> trace (item.bt_title);
>  trace (item.getChildAt(4).name);
> trace (item.getChildAt(4));
> trace (item.icone);
>
> new GTween(item.bt_title, 0.3, {y:25}, easing1);
> new GTween(item.bt_subtitle, 0.3, {y:25}, easing1);
> new GTween(item.icone, 0.3, {y:100}, easing1);/*/ doesn´t
> work!!
> *
>
>
> *The tracing output this:*
>
> bt_title
> [object MovieClip]
> [object MovieClip]
> icone
> [object MovieClip]
> undefined
>
> *QUESTION: Why do i get undefined? shouldn´t I get  "[object MovieClip]"
> instead ?*
>
> Thanks!!
>
> In case this code is not clear:
>
> function iniciarMenu ():void{
>
> for (var i:Number = 0; i < my_total; i++){
>
> var menuItem:MenuItem = new MenuItem();
> menuItem.x = (menuItem.width + 2)*i;
> menuItem.bt_title._txt.text = my_items[...@title;
> menuItem.bt_title._txt.antiAliasType = AntiAliasType.ADVANCED;
> menuItem.bt_subtitle._txt.text = my_items[...@subtitle;
> menuItem.bt_subtitle._txt.antiAliasType = AntiAliasType.ADVANCED;
>
> menuItem.linkTo = my_items[...@link;
> menuItem.mouseChildren = false;
>
> menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
> menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
> menuItem.addEventListener(MouseEvent.CLICK, itemClicked);
>
> menu_mc.addChild(menuItem);
> menuArray[i] = menuItem;
>
> var iconURL = my_items[...@icon;
> var iconLoader = new Loader();
> iconLoader.load(new URLRequest(iconURL));
> iconLoader.name = i;
> iconLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, iconLoaded);
>
> }
> }
>
> function iconLoaded(e:Event):void{
> var my_icon:Loader = Loader(e.target.loader);
> var iconMC:MovieClip = new MovieClip();
> iconMC.addChild(my_icon);
> menuArray[my_icon.name].addChild(iconMC);
>
> iconMC.x = 100;
> iconMC.y = 35;
> iconMC.alpha = 0;
> iconMC.name = "icone";
> new GTween(iconMC, 0.9, {alpha:0.8}, easing1);
>  my_icon.contentLoaderInfo.removeEventListener(Event.COMPLETE, iconLoaded);
> my_icon = null;
> }
> ___
> 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] Exporting Canvas to PDF or Print

2009-07-05 Thread Ktu
You could easily have a button that calls the printer and have it print. If
you look at the documentation for AS3 there is a class called PrintJob.

You could alternativley use a third party package called AlivePDF which you
can use to make a PDF out of your flash content, and have the user download
the genereated PDF. Their site is here: http://alivepdf.bytearray.org/

Ktu

On Sun, Jul 5, 2009 at 7:29 PM, K-Dawg  wrote:

> Hi,
>
> I developed a dynamic coupon engine for a client that loads coupon data
> from
> an XML file and draws coupons on the canvas.  This all went surprisingly
> well as I am relatively new to ActionScript.  However, I need to be able to
> make these printable, either printing the canvas or sending to a PDF.  How
> can I do this?
>
> I am figuring I could
>
> 1.) add a button to the page (webpage, not AS) that launches the same AS in
> a separate window and calls the browser's print function.
> 2.) export the canvas directly to the printer (how)
> 3.) export the canvas to a PDF (how)
>
> Any thoughts/suggestions are greatly appreciated.
>
> Thanks!
>
> Kevin
> ___
> 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] Is this error prone? [loading multiple images]

2009-07-09 Thread Ktu
I think I see a problem with this. I don't know how often GarbageCollection
runs, but if the loader you create has no references to it, and the only
event listener to it is set to have a weakReference, then the loader could
get discarded before it finishes, unless the act of loading doesn't allow it
to be removed.

Otherwise, as far as I know, that looks like it should be fine to get
reference to the loader again and remove the event listener.
?

Ktu

On Tue, Jul 7, 2009 at 12:50 PM, Joel Stransky wrote:

> I'm wondering if I can use a for loop to create local Loader objects,
> assign
> listeners to their LoaderInfo objects without overwriting any of them and
> still be able to clean up after.
>
> Say I have the following inside a function body
>
> var img:Loader = new Loader();
> img.contentLoaderInfo.addEventListener(Event.COMPLETE, onThumb, false, 0,
> true);
> img.load(new URLRequest("someImage.jpg"));
>
> and the following handler
>
> private function onThumb(e:Event):void
> {
>var loader:Loader = Loader( LoaderInfo(e.target).loader );
>loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onThumb);
>var thumbNail:Bitmap = new Bitmap(Bitmap(loader.content).bitmapData);
>thumbNail.x = (itemWidth - thumbNail.width) / 2;
>addChild(thumbNail);
> }
>
> Will the handler work its way back to the Loader that was created
> temporarily and remove a listener from it?
> Is there a better way to using throw away loaders?
>
>
> --
> --Joel Stransky
> stranskydesign.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] Express Install Help

2009-08-27 Thread Ktu
Hey Flashers,

I'm working with SWFObject 2.2 using the expressInstall.swf that comes with
the package. I understand that the swf is loading in another swf from an
adobe server which is the actual express install.

My problem is that when it loads, it loads at a larger dimension than I can
handle and causes my flash to wrap onto another line and makes the site
terribly ugly. Any ideas on how to prevent the dimensions from growing once
the express install is loaded?

(btw, no matter what dimension I change the expressInstall.swf to, it always
becomes something bigger than I can have on the screen)

Thanks guys,

Ktu
 [k-two]
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Error when trying to embed a font

2009-09-03 Thread Ktu
The only thing I can suggest is looking at Lee Brimelow's tutorial on using
[Embed] for fonts. Maybe going through that tutorial will enlighten you.

http://gotoandlearn.com/play?id=102

Kttu

On Mon, Aug 31, 2009 at 3:10 PM, Andrew Murphy  wrote:

> Hi again, Ian. :)
>
> I have tried a few different variations on the font name, but I hadn't
> tried
> using Font.enumerateFonts() to list the system's names for the fonts.
>  Thank
> you for that suggestion. :)  I gave it a try, listing out the fontName and
> fontStyle props and ended up with this:
>
> name: Akzidenz Grotesk BE   style: regular
> name: Akzidenz Grotesk BE Bold   style: regular
> name: Akzidenz Grotesk BE BoldEx   style: regular
> name: Akzidenz Grotesk BE Ex   style: regular
> name: Akzidenz Grotesk BE Light   style: regular
> name: Akzidenz Grotesk BE LightEx   style: regular
> name: Akzidenz Grotesk BE LightOsF   style: regular
> name: Akzidenz Grotesk BE LightSC   style: regular
> name: Akzidenz Grotesk BE MdEx   style: regular
> name: Akzidenz Grotesk BE Super   style: regular
>
>
> I'd already tried "Akzidenz Grotesk BE" but just in case I gave it another
> try, like this:
>
> [Embed(
>  systemFont="Akzidenz Grotesk BE",
>  fontName="AkzidenzOTF",
>  mimeType="application/x-font",
>  unicodeRange="U+0021-U+00FF"
> )]
> var akzidenz_otf:Class;
> Font.registerFont(akzidenz_otf);
>
>
> And it throws the exact same error.
>
>
>
> However I have managed to get it working, sort of, by just creating Font
> Symbols in my FLA's Library.  It means embedding the whole dern font,
> rather
> than a smaller subset of characters, but at least it works.
>
> I guess this is "solved".  More-or-less.
>
>
> Thank you for your help. ^_^
>
>
>
>
> 
> Andrew Murphy
> Interactive Media Specialist
> amur...@delvinia.com
>
> Delvinia
> 214 King Street West, Suite 214
> Toronto Canada M5H 3S6
>
> P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com
>
> CONFIDENTIALITY NOTICE
> This email message may contain privileged or confidential information. If
> you are not the intended recipient or received this communication by error,
> please notify the sender and delete the message without copying or
> disclosing it.
>
> AVIS DE CONFIDENTIALITÉ
> Ce message peut contenir de l'information légalement privilégiée ou
> confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
> erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
> détruire le contenu sans le communiquer a d'autres ou le reproduire.
>
>
>
> > -Original Message-
> > From: flashcoders-boun...@chattyfig.figleaf.com
> > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf
> > Of Ian Thomas
> > Sent: Monday, August 31, 2009 1:31 PM
> > To: Flash Coders List
> > Subject: Re: [Flashcoders] Error when trying to embed a font
> >
> > Sorry! My poor reading!
> >
> > The normal reason for such errors is that the name of the
> > font (when using systemFont) does not exactly match the name
> > your system thinks it should be. This can be complicated by
> > font variants - you say you've already tried combinations of
> > fontStyle, fontWeight etc. Have you tried those variants
> > within the name? Could it be something like the name should
> > be "Berthold Akzidenz Grotesk Bold" and you should have
> > fontWeight set to bold?
> >
> > Have you tried Font.enumerateFonts() to list what fonts your
> > Flash Player thinks is available on your system, and what
> > their names are?
> >
> > Ian
> >
> > On Mon, Aug 31, 2009 at 6:01 PM, Andrew
> > Murphy wrote:
> > > Hi, Ian. :)
> > >
> > > Thanks, but I tried that already, I mentioned it in my
> > first post.  It
> > > throws the same error.
> > >
> > >
> > > 
> > > Andrew Murphy
> > > Interactive Media Specialist
> > > amur...@delvinia.com
> > >
> > > Delvinia
> > > 214 King Street West, Suite 214
> > > Toronto Canada M5H 3S6
> > >
> > > P 416.364.1455 ext. 232  F 416.364.9830  W www.delvinia.com
> > >
> > > CONFIDENTIALITY NOTICE
> > > This email message may contain privileged or confidential
> > information.
> > > If you are not the intended recipient or received this
> > communication
> > > by error, please notify the sender and delete the message without
> > > copying or disclosing it.
> > >
> > > AVIS DE CONFIDENTIALITÉ
> > > Ce message peut contenir de l'information légalement privilégiée ou
> > > confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir
> > > reçu par erreur ce message, nous vous saurions gré d'en aviser
> > > l'émetteur et d'en détruire le contenu sans le communiquer
> > a d'autres ou le reproduire.
> > >
> > >
> > >
> > >> -Original Message-
> > >> From: flashcoders-boun...@chattyfig.figleaf.com
> > >> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On
> > Behalf Of Ian
> > >> Thomas
> > >> Sent: Monday, August 31, 2009 12:35 PM
> > >> To: Flash Coders List
> > >> Subject: Re: [Flashcoders] Error when trying to e

Re: [Flashcoders] shared objects as a sort of scratch disk file

2009-10-02 Thread Ktu
I like the sound of that. It certainly seems like something someone should
look into. I'm not great with checking speed in code, but I want to try to
look into that.

I'm interested in what types of applications would benefit from it. Can you
share anything about yours?

Ktu [k-two]

On Wed, Sep 30, 2009 at 3:39 AM, Anthony Pace wrote:

> -Now, if the user sets the local storage amount to unlimited, it is
> possible to save and modify heaps of data; yet, at what cost speed wise?
> -Is there a max size to a shared object, even if the user selects
> unlimited?
> -Is there something wrong with my idea, other than having to ask the user
> to set the storage capacity to unlimited?
> -Has anyone clocked speed of read and write access when files get extremely
> large?
> -Has anyone come up with a better solution when the app has to run in the
> browser?
>
> I worked with shared objects a while back; however, I never really needed
> to use them to store much more than cookie data.  I am thinking about asking
> the user to set the local storage to unlimited, in an attempt to decrease
> the amount of memory that is required by an application, especially when it
> gets to the 40mb or more of dynamically generated content and the user has
> limited memory on their system.  The user needs to be able to load multiple
> files to be modified, and the modifications could be rather intense and have
> very large file sizes; yet, not all files and resultant data will be
> required for modification at the same time, and I was hoping that storage on
> the system as a shared object, would be able to act as a scratch file.
>
> I know this isn't new, but I was also thinking that if the file is used
> properly, and storage is set to unlimited, one could make an application
> with most of the interface elements stored in the shared object; therefore,
> even if the user clears their cache, the swf can check the shared object to
> see when it was last updated and reuse what's stored if nothing has changed.
>  (reducing bandwidth and download time requirements)...  Is this a pipe
> dream?
> ___
> 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] regex issue when validating unicode range

2009-10-19 Thread Ktu
Have you tried looking at Grant Skinner's RegExp App?
It might help
http://gskinner.com/RegExr/

Ktu

On Mon, Oct 19, 2009 at 1:24 PM, Matt Muller wrote:

> Hi there,
>
> issue with regex when trying to test if a char is within a unicode range
>
> var testIsArabic:Boolean = /\u0627/.test(str.charAt(0)); // this works
> testing for arabic chars of unicode 0627
>
> var testIsArabic:Boolean = /[\u0627-\u]/.test(str.charAt(0));  this
> range does not work, returns false
>
> NOTE: the str.charAt(0) is 0627
>
> any ideas?
>
> 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] Auto Webcam Detection

2009-11-04 Thread Ktu
So I've noticed that Facebook will automatically detect which Camera object
to use on your computer.
It seems on most if not all macs there are at least three (3) Camera objects
always available.
So, I've made a class that will automatically detect which webcam is active
and running.

Feedback anyone?

Download it here 

It's pretty simple to use:

import com.crp.utils.WebcamDetection;
import com.crp.events.WebcamEvent;

var wd:WebcamDetection = new WebcamDetection();
wd.addEventListener (WebcamEvent.RESOLVE, onResolve);
wd.begin();

function onResolve (e:WebcamEvent):void {
trace(e.code);
switch (e.code) {
case "success":
var myCamera:Camera = e.camera;
break;
case "noPermission":
// the user denied permission
break;
case "noCameras":
// no suitable camera's were found
break;
}
}
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Auto Webcam Detection

2009-11-04 Thread Ktu
Henrik,

The detection is based off of the activity level, so yes the moving image,
but its also based off of the fps of the Camera. That way, if my user is a
stiff and doesn't move much, but the Camera is good, the fps should be going
strong even though the activity is not.

Also, I know a lot of users are just too stupid to figure out this whole
webcam thing. Heck, I hadn't even used a webcam until I got one on my laptop
in April. One thing I have learned is that in your applications, do as much
for the user as possible while still making them feel like they have control
(but they really don't who are you kidding).

Ktu

On Wed, Nov 4, 2009 at 6:11 AM, Glen Pike  wrote:

>
>
>> So, the idea is to try each camera until you find one that has a moving
>> image? I still think that it is better to just tell the user to properly
>> select the default camera in the options.
>> ___
>>
>>  When you are using a 1280 x 1024 touchscreen, that's a bit difficult
> because the buttons are too small.
>
> Also, if you have 2 cameras which are the same, then the user does not know
> which one to pick...
>
> On our system, we use another program to capture the webcam output and then
> applications all load the stream / still images.  Flash, and other programs,
> don't share the webcam, so we have to do it this way to enable multiple
> applications to use the webcam at once.  It's a bit different from the
> "normal" PC setup, where you have one webcam for personal desktop use, so
> bit of an edge-case, but...
>
> Glen
>
>
> ___
> 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] Weak eventListener Problem

2009-11-07 Thread Ktu
That is true, however, this eventListener fires indefinitely. Garbage
collection should pick it up after 30 seconds right?
I have tried this on the main timeline, and in a document class, but GC
never cleans up the object. Why?

Ktu

On Sat, Nov 7, 2009 at 5:29 AM, Henrik Andersson wrote:

> Ktu wrote:
>
>> When the code below is run, the eventListener still fires. I was under the
>> impression that it would not because the eventListener uses a weak
>> reference, and thus get garbage collected.
>>
>> var sp:Sprite = new Sprite ();
>> sp.addEventListener (Event.ENTER_FRAME, function (e:Event):void {
>> trace(getTimer());
>> }, false, 0, true);
>> sp = null;
>>
>> Am I just wrong?
>>
>>  Yes and No. Yes, in that you assume that just removing all references
> will stop the listener right there and then. No, in that it will be eligible
> for garbage collection.
>
> But there is no guarantee when the garbage collection is performed, and
> until it has been performed, the listener will keep on working.
>
> If you need things to stop doing things _now_, turn them off yourself.
> ___
> 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] Weak eventListener Problem

2009-11-07 Thread Ktu
So I used the LocalConnection hack to force GC to run, and it cleaned up the
object. I was not aware that GC might not run because there isn't enough of
a reason to.
If I had put this code into a fairly large application, GC would have more
of a reason to run and thus probably end up cleaning up that object right?

Ktu

Lesson learned: You must remove all event listeners yourself.


On Sat, Nov 7, 2009 at 12:36 PM, Henrik Andersson wrote:

> Ktu wrote:
>
>> That is true, however, this eventListener fires indefinitely. Garbage
>> collection should pick it up after 30 seconds right?
>> I have tried this on the main timeline, and in a document class, but GC
>> never cleans up the object. Why?
>>
>>
> There is no set time when it will run. It runs when Flash thinks that it
> would be a good idea. The exact time is left intentionally unspecified so
> that they can change their minds if needed. There isn't even a guarantee
> that garbage collection will ever collect eligible objects.
>
> ___
> 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] Weak eventListener Problem

2009-11-08 Thread Ktu
@Steven,
I know anonymous functions are horrible, but I was trying to anything to get
the GC to pick it up.

I'm really just testing, to see how GC might react, and how the weak event
listeners work. I know mediocre practice (and higher) you need to remove
event listeners. I was just wondering, I've made a few classes that use weak
references so that the person using my class does not have to worry about GC
with the object. I wanted to make sure that it works how I thought it would.

Ktu


On Sun, Nov 8, 2009 at 10:59 AM, Keith H  wrote:

> I make destroy methods, avoid using extra references to listeners and am
> compulsive about cleaning them up, still some continue to execute
> imperviously.
> I hate when this happens cause its unpredictable and unexplainable.
>
> All I know is the "Real" garbage collectors are sometimes late picking up
> my garbage after I put it outside for them.
>
> -- Keith H --
> www.keith-hair.net
>
>
>
>
>
> Steven Sacks wrote:
>
>> No, it's not true.  You're misunderstanding how weak listeners work, how
>> anonymous functions work (you shouldn't use those anyway), and you're also
>> misunderstanding how the garbage collector works.
>>
>> Whenever you addEventListener, immediately write a function that removes
>> the event listener (such as a destroy method).  If you get into this habit,
>> you will never forget to do it and you'll never have this issue ever again.
>> ___
>> 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] Capturing TextEvent from image in textfield

2009-11-11 Thread Ktu
Maybe this is what you need to do... You will have to have the  not
around the image, but you can use the same function to handle the  and
the  click.

txt.htmlText = "This is a movieClip inside of a text field  Isn't it sweet?";
txt.getImageReference("myMC").addEventListener (MouseEvent.ROLL_OVER,
onRollOver);

function onRollOver (e:MouseEvent):void {
    trace("oh Ya");
}

Ktu


On Wed, Nov 11, 2009 at 12:07 AM, Mattheis, Erik (MIN - WSW) <
ematth...@webershandwick.com> wrote:

> Karl, Gerry -
>
> Thanks, I just tried the code I posted below at home and it works as
> expected.
>
> I must have done something funky elsewhere in the code with the version at
> work: when I click on "Our world-class scientists," the event fires, when I
> click on the movieclip in the textfield it doesn't.
>
> In the problematic version, I'm altering the externally loaded text at
> runtime, inserting an image in places that need a visual indicator for "this
> text expands". I'm guessing the way I'm doing it doesn't add the event
> listener to the movieclip because it's not yet been added to the display
> list.
> 
> From: flashcoders-boun...@chattyfig.figleaf.com [
> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gerry [
> noentour...@gmail.com]
> Sent: Tuesday, November 10, 2009 8:57 PM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Capturing TextEvent from image in textfield
>
>
> http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#event:link
>
>
> On Nov 10, 2009, at 7:47 PM, Mattheis, Erik (MIN - WSW) wrote:
>
> > How do I send an event from a click on an image in a textfield? Clicking
> on the actual text fires the event, but it doesn't fire when clicking on an
> image from the library placed inline:
> >
> > pageText.displayValue.htmlText = ' src="plus" />Our world-class scientists';
> > pageText.displayValue.addEventListener(TextEvent.LINK, toggleVisibility);
> >
> > function toggleVisibility(e:Event) {
> > trace('text event triggered');
> > }
> >
> > Thanks!
> > ___
> > 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] Auto Webcam Detection

2009-11-12 Thread Ktu
I've made an update to my class. I added better Mac detection so the process
goes quicker on Macs. I've also updated the detection math in general.

Please if you downloaded it, re-download and update with the new version.
Feedback is nice, and I hope you like it.

WebcamDetection <http://blog.cataclysmicrewind.com/webcamdetection/>

Ktu

On Fri, Nov 6, 2009 at 4:31 PM, Ktu  wrote:

> Thanks Juan, I hope you find it beneficial and easy to use.
>
> I also plan on making another update to it this week to make its detection
> a little more robust.
> Since most of my reasoning for creating the class was because Macs suck and
> always have three cameras in the list, I am going to add some special Mac
> detection which should speed up the process for all Mac laptops.
>
> Ktu
>
>
> On Wed, Nov 4, 2009 at 11:08 AM, Juan Pablo Califano <
> califa010.flashcod...@gmail.com> wrote:
>
>> The test code works fine for me (Win XP, FP 10).
>>
>> I'll be working on a project that includes webcam soon and this could be
>> useful. I'll let you know how it goes if I use it. Thanks for sharing!
>>
>> Cheers
>> Juan Pablo Califano
>>
>> 2009/11/4 Ktu 
>>
>> > So I've noticed that Facebook will automatically detect which Camera
>> object
>> > to use on your computer.
>> > It seems on most if not all macs there are at least three (3) Camera
>> > objects
>> > always available.
>> > So, I've made a class that will automatically detect which webcam is
>> active
>> > and running.
>> >
>> > Feedback anyone?
>> >
>> > Download it here <http://blog.cataclysmicrewind.com/webcamdetection/>
>> >
>> > It's pretty simple to use:
>> >
>> > import com.crp.utils.WebcamDetection;
>> > import com.crp.events.WebcamEvent;
>> >
>> > var wd:WebcamDetection = new WebcamDetection();
>> > wd.addEventListener (WebcamEvent.RESOLVE, onResolve);
>> > wd.begin();
>> >
>> > function onResolve (e:WebcamEvent):void {
>> > trace(e.code);
>> > switch (e.code) {
>> > case "success":
>> > var myCamera:Camera = e.camera;
>> > break;
>> > case "noPermission":
>> > // the user denied permission
>> > break;
>> > case "noCameras":
>> > // no suitable camera's were found
>> > break;
>> > }
>> > }
>> > ___
>> > 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] Auto Webcam Detection

2009-11-13 Thread Ktu
Thanks Eric,

I have not heard about the bluetooth cameras and any related issues. I
wonder if the fps works there as well. It is hard enough for me to get
access to Macs and that's half the reason I made the class.

I initially chose 1.5 seconds for each camera and so far almost all cameras
I have tested have come out of their initial init phase before 1.1 seconds.
I don't have a lot of experience with a lot of cameras so if you say FW
cameras tend to be really slow maybe I should change the default for a bit
longer, but there are properties in the class so you can tell the object how
long it should check for. I put those in for exactly the reason you are
describing. Some cameras take longer, and if the developer using my class
wants to test each camera for a longer period of time he has the ability to.

Thanks for the feedback.

Ktu

On Fri, Nov 13, 2009 at 2:16 PM, eric socolofsky  wrote:

> hey ktu et al, i also ran into this problem with FLARManager.  my solution
> is not as reusable as yours, as it's wrapped inside a larger framework, but
> i used some of the same logic you did.  you can find it here:
>
>
> http://transmote.com/codeshare/FLARManager/dev/src/com/transmote/flar/source/FLARCameraSource.as
>
> FLARCameraSource checks activity level, just like your WebcamDetection.
>  however, some users have reported that newer sony vaios have a 'bluetooth
> camera' driver that is not attached to a camera (kind of like OSX's 'DV
> Video'), but that an activity check on the vaio cam returns activity even
> when there is none.  FLARCameraSource gets around this by differencing
> frames to check for a change in the camera feed.  it looks like you're also
> checking the reported camera fps; i don't have a vaio so can't check that
> technique against the 'bluetooth camera', but i wonder if it works there
> too...
>
> also, i notice you're checking across 1.5 seconds for each camera.  i have
> double that time in FLARCameraSource, tho i'm not happy about it...can take
> a while to cycle through cameras.  i've found that 2 seconds is borderline,
> and 3 is safer, but i'm not sure i trust 1.5 seconds to be enough for all
> cameras (some are very slow to init, particulary external FW cameras).  any
> thoughts on that?
>
> nice work, wish i had found this a month ago, would have saved me some
> headaches...
>
> -eric
>
>
>  Message: 1
>> Date: Thu, 12 Nov 2009 12:51:33 -0500
>> From: Ktu 
>> Subject: Re: [Flashcoders] Auto Webcam Detection
>> To: Flash Coders List 
>> Message-ID:
>>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>>
>> I've made an update to my class. I added better Mac detection so the
>> process
>> goes quicker on Macs. I've also updated the detection math in general.
>>
>> Please if you downloaded it, re-download and update with the new version.
>> Feedback is nice, and I hope you like it.
>>
>> WebcamDetection <http://blog.cataclysmicrewind.com/webcamdetection/>
>>
>>
>> Ktu
>>
>> On Fri, Nov 6, 2009 at 4:31 PM, Ktu 
>> wrote:
>>
>>  Thanks Juan, I hope you find it beneficial and easy to use.
>>>
>>> I also plan on making another update to it this week to make its
>>> detection
>>> a little more robust.
>>> Since most of my reasoning for creating the class was because Macs suck
>>> and
>>> always have three cameras in the list, I am going to add some special Mac
>>> detection which should speed up the process for all Mac laptops.
>>>
>>> Ktu
>>>
>>>
>>> On Wed, Nov 4, 2009 at 11:08 AM, Juan Pablo Califano <
>>> califa010.flashcod...@gmail.com> wrote:
>>>
>>>  The test code works fine for me (Win XP, FP 10).
>>>>
>>>> I'll be working on a project that includes webcam soon and this could be
>>>> useful. I'll let you know how it goes if I use it. Thanks for sharing!
>>>>
>>>> Cheers
>>>> Juan Pablo Califano
>>>>
>>>> 2009/11/4 Ktu 
>>>>
>>>>  So I've noticed that Facebook will automatically detect which Camera
>>>>>
>>>> object
>>>>
>>>>> to use on your computer.
>>>>> It seems on most if not all macs there are at least three (3) Camera
>>>>> objects
>>>>> always available.
>>>>> So, I've made a class that will automatically detect which webcam is
>>>>>
>>>> active
>>>>
>>>>> and running.
>

Re: [Flashcoders] Auto Webcam Detection

2009-11-14 Thread Ktu
I must apologize to all who have downloaded my class. I have forgotten a
very simple yet important piece of code.
I forgot to check if there were no cameras at all available.

Please replace the begin function with this one:

public function begin ():void {
_numCameras = Camera.names.length;
/* FAIL */if (_numCameras == 0) {
dispatchEvent (new WebcamEvent (WebcamEvent.RESOLVE, null,
"noCameras") ); // No cameras available
return;
}
if (Capabilities.os.substr (0, 6) == "Mac OS") _isMac = true;
_video = new Video();
getDefaultCamera ();
}

Thanks, and again I'm sorry.

Ktu

On Sat, Nov 14, 2009 at 2:01 AM, Ktu wrote:

> Thanks Eric,
>
> I have not heard about the bluetooth cameras and any related issues. I
> wonder if the fps works there as well. It is hard enough for me to get
> access to Macs and that's half the reason I made the class.
>
> I initially chose 1.5 seconds for each camera and so far almost all cameras
> I have tested have come out of their initial init phase before 1.1 seconds.
> I don't have a lot of experience with a lot of cameras so if you say FW
> cameras tend to be really slow maybe I should change the default for a bit
> longer, but there are properties in the class so you can tell the object how
> long it should check for. I put those in for exactly the reason you are
> describing. Some cameras take longer, and if the developer using my class
> wants to test each camera for a longer period of time he has the ability to.
>
> Thanks for the feedback.
>
> Ktu
>
>
> On Fri, Nov 13, 2009 at 2:16 PM, eric socolofsky wrote:
>
>> hey ktu et al, i also ran into this problem with FLARManager.  my solution
>> is not as reusable as yours, as it's wrapped inside a larger framework, but
>> i used some of the same logic you did.  you can find it here:
>>
>>
>> http://transmote.com/codeshare/FLARManager/dev/src/com/transmote/flar/source/FLARCameraSource.as
>>
>> FLARCameraSource checks activity level, just like your WebcamDetection.
>>  however, some users have reported that newer sony vaios have a 'bluetooth
>> camera' driver that is not attached to a camera (kind of like OSX's 'DV
>> Video'), but that an activity check on the vaio cam returns activity even
>> when there is none.  FLARCameraSource gets around this by differencing
>> frames to check for a change in the camera feed.  it looks like you're also
>> checking the reported camera fps; i don't have a vaio so can't check that
>> technique against the 'bluetooth camera', but i wonder if it works there
>> too...
>>
>> also, i notice you're checking across 1.5 seconds for each camera.  i have
>> double that time in FLARCameraSource, tho i'm not happy about it...can take
>> a while to cycle through cameras.  i've found that 2 seconds is borderline,
>> and 3 is safer, but i'm not sure i trust 1.5 seconds to be enough for all
>> cameras (some are very slow to init, particulary external FW cameras).  any
>> thoughts on that?
>>
>> nice work, wish i had found this a month ago, would have saved me some
>> headaches...
>>
>> -eric
>>
>>
>>  Message: 1
>>> Date: Thu, 12 Nov 2009 12:51:33 -0500
>>> From: Ktu 
>>> Subject: Re: [Flashcoders] Auto Webcam Detection
>>> To: Flash Coders List 
>>> Message-ID:
>>>
>>> Content-Type: text/plain; charset=ISO-8859-1
>>>
>>>
>>> I've made an update to my class. I added better Mac detection so the
>>> process
>>> goes quicker on Macs. I've also updated the detection math in general.
>>>
>>> Please if you downloaded it, re-download and update with the new version.
>>> Feedback is nice, and I hope you like it.
>>>
>>> WebcamDetection <http://blog.cataclysmicrewind.com/webcamdetection/>
>>>
>>>
>>> Ktu
>>>
>>> On Fri, Nov 6, 2009 at 4:31 PM, Ktu 
>>> wrote:
>>>
>>>  Thanks Juan, I hope you find it beneficial and easy to use.
>>>>
>>>> I also plan on making another update to it this week to make its
>>>> detection
>>>> a little more robust.
>>>> Since most of my reasoning for creating the class was because Macs suck
>>>> and
>>>> always have three cameras in the list, I am going to add some special
>>>> Mac
>>>> detection which should speed up the process for all Mac laptops.
>>>>
>>>>

Re: [Flashcoders] Weird auto format

2009-11-17 Thread Ktu
I copy pasted that into CS4 stock and I could not reproduce the error. I
tried it on the timeline and in a class file with no luck.
Could there be any updates you've done to your version of flash that could
cause this?

Ktu

On Tue, Nov 17, 2009 at 2:02 AM, Karl DeSaulniers wrote:

> Interesting. Thanks.
> Any wild guesses as to why it happens??
>
> Karl
>
>
>
> On Nov 17, 2009, at 12:55 AM, Henrik Andersson wrote:
>
>  Karl DeSaulniers wrote:
>>
>>> So it is a bug?
>>>
>>> Karl
>>>
>>>  To be blunt, yes, yes it is. I filed a bug report, maybe it will be
>> fixed in CS 5.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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


Re: [Flashcoders] Detect child parent

2009-11-22 Thread Ktu
Are you sure that the child you are trying to remove is in a display list?

Ktu

On Sun, Nov 22, 2009 at 3:08 AM, Karl DeSaulniers wrote:

> Maybe..
>
> var childParent:Object = mychild.parent;
> childParent.removeChild(mychild)
>
> or
>
> var childParent:Object = mychild._parent;
> childParent.removeChild(mychild)
>
> Karl
>
>
>
> On Nov 22, 2009, at 1:58 AM, Karl DeSaulniers wrote:
>
>  mychild.parent.removeChild(mychild)
>>>
>>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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


Re: [Flashcoders] detect and remove listeners

2010-01-07 Thread Ktu
Have you seen Grant Skinner's Janitor class?

http://gskinner.com/talks/resource-management/ - slide 32 talks about it
click download source at the bottom to get the code.

even this looks interesting:
http://blog.open-design.be/2009/01/29/events-manager-as3-classes/

I just googled AS3 event listener manager and got a few hits.

Ktu


On Wed, Jan 6, 2010 at 4:58 PM, ktt  wrote:

> Thank you all for answers.
> Method with array recording really works nicely :-)
> BTW - while searching for this method I've found other useful listener tips
> too:
>
> http://www.almogdesign.net/blog/actionscript-3-event-listeners-tips-tricks/
>
> --- On Wed, 1/6/10, Taka Kojima  wrote:
>
> > From: Taka Kojima 
> > Subject: Re: [Flashcoders] detect and remove listeners
> > To: "Flash Coders List" 
> > Date: Wednesday, January 6, 2010, 9:02 PM
> > Yeah, that is the best way... that
> > way you can also properly make sure you
> > handle removing all of them when you no longer need an
> > object.
> >
> > You can either create a helper class, with static methods
> > or extend
> > MovieClip or Sprite and have all of your classes extend
> > from the new class.
> >
> > Store everything in a multidimensional array and you're
> > good to go, then you
> > can create a removeAllListeners() method that saves a lot
> > of time and
> > headaches for garbage collection purposes.
> >
> > This is how I handle event listeners for major application
> > components and it
> > has worked very well thus far.
> >
> > - Taka
> >
> > On Wed, Jan 6, 2010 at 3:35 AM, Karl DeSaulniers  >wrote:
> >
> > > Maybe create a class or function that applies and
> > removes the listeners?
> > >
> > > Karl
> > >
> > >
> > >
> > > On Jan 6, 2010, at 5:21 AM, Henrik Andersson wrote:
> > >
> > >  ktt wrote:
> > >>
> > >>> Hello,
> > >>>
> > >>> What is the best method to iterate through
> > MovieClip children, check if
> > >>> they have listeners and if they have - remove
> > them?
> > >>>
> > >>>  It is not possible to get a list of the
> > listeners. This means that you
> > >> can not remove them. You can however detect if
> > there is any at all for a
> > >> given event.
> > >> ___
> > >> Flashcoders mailing list
> > >> Flashcoders@chattyfig.figleaf.com
> > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>
> > >
> > > Karl DeSaulniers
> > > Design Drumm
> > > http://designdrumm.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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML question with a test case

2010-02-06 Thread Ktu
It seems like from my testing that if you try to retrieve an XMLList from an
XML by using that notation it will always return a valid XMLList, but if the
node doesn't actually exist, the XMLList is simply empty. Check the length
of the returned XMLList:

if (xml2.lobby.length > 0) {
trace("2: in the lobby");
}

Ktu

On Sat, Feb 6, 2010 at 12:09 PM, Alexander Farber <
alexander.far...@gmail.com> wrote:

> Hello,
>
> I've prepared a simple test case for my problem:
>
> var xml1:XML =
>
>
>
>
>
>;
>
> var xml2:XML =
>
>
>;
>
> if (xml1.lobby)
>trace('1: in the lobby');
>
> if (xml2.lobby)
>trace('2: in the lobby');
>
> Why does this print the 2nd line too?
>
>1: in the lobby
>2: in the lobby
>
> I keep trying and also look in the debugger and just don't get it...
>
> Thank you
> Alex
> ___
> 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] Combining embedded and device fonts in one textfield

2010-02-10 Thread Ktu
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


Re: [Flashcoders] Has everyone seen this yet?

2010-02-16 Thread Ktu
Looks like a great example of how Flash with AIR can create experiences that
would otherwise be impossible. Too bad it will be on the iPad.



On Tue, Feb 16, 2010 at 3:29 PM, Gregory Boudreaux wrote:

> Pretty cool.
>
>
> http://mashable.com/2010/02/16/wired-magazine-ipad-demo/
>
>
> gregb
>
> ___
> 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] Has everyone seen this yet?

2010-02-16 Thread Ktu
My mistake for saying such a strong statement. Of course there are other
frameworks available to do the same thing. Glad its not actually an iPad.

I think I'm just glad to see Flash being used for more than just flashy
websites and games. Flash can do a lot more than I see it get credit for on
a day to day basis. (And I know flash is used for more than just websites.
I've developed quite a few things outside the website realm)

I would like to see it in my hands to evaluate the usability. In theory it
could be brilliant but yes, people will have to warm up to it, and it will
have to be standardized.

Strictly out of curiosity Jon, would anyone actually choose a different
framework to develop this type of application? Does it make sense
considering development life cycle and platform availability?

Ktu

On Tue, Feb 16, 2010 at 9:02 PM, Eric E. Dolecki  wrote:

> It's how printed media might be transformed if people warm up to the whole
> concept. It doesn't really matter what platform or device it runs on. We
> saw
> some AIR and some Cocoa-touch. Looks pretty juicy but also a little
> confusing and non-standardized (yet).
>
>
>
> On Tue, Feb 16, 2010 at 8:45 PM, Jon Bradley  >wrote:
>
> > It's an Adobe AIR application running on an unknown tablet device.
> >
> > It's not an iPad and has nothing to do with it. Someone made a mistake
> with
> > the copy for the article.
> >
> > FYI, it's not impossible to do this in other languages or environments.
> > There are other, more powerful frameworks that are robust for UI
> development
> > and multi-touch systems than Flash.
> >
> >
> > - jon
> >
> >
> >
> > On Feb 16, 2010, at 7:55 PM, Ktu wrote:
> >
> >  Looks like a great example of how Flash with AIR can create experiences
> >> that
> >> would otherwise be impossible. Too bad it will be on the iPad.
> >>
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> http://ericd.net
> Interactive design and development
> ___
> 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-04-06 Thread Ktu
If none of the children require any mouse events you could always do:
parent.mouseChildren = false;

Ktu

On Sun, Mar 28, 2010 at 11: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


Re: [Flashcoders] @#$% New iPhone Developer Agreement Bans the Use ofAdobe's Flash-to-iPhone Compiler

2010-04-09 Thread Ktu
Jason Merrill
>> Doing something just for spite in the business world is not
>> really all that smart.

It may not be smart business wise, but when a someone attacks you so
bluntly, its not bad form to stand up for yourself. Companies making
decisions on whats most profitable (like Jobs & Adobe, sure) *tends* to be a
bad thing for the consumer. Its this type of mentality that helps makes the
United States a crappy place for consumers and a great place for business.

If it were me running Adobe, I would try in some way to publicly humiliate
Jobs and Apple through use of reason, logic, economics and most of all human
relevance. Then, give them the middle finger and start acting like a real
company should; with dignity, pride, honesty, and care for the products,
services, and customers that make my business survive. ( Cause we all know
Adobe has its own flaws) :)

Ktu

P.S. *odd thoughts* from a young individual, who happens to be an Apple
hater. You and your iDrone can go play in the ocean, and when the rip tide
sucks you in over and over again, you won't ask for help, cause you have an
iDrone and don't need saving.

Please, for my sake, mis-interpret what I am saying and why, so that you can
bash me just like I bashed the Apple fanboys.

On Fri, Apr 9, 2010 at 11:26 AM, Mark Winterhalder  wrote:

> On Fri, Apr 9, 2010 at 5:12 PM, Merrill, Jason
>  wrote:
> > What you may see happen is consumers getting tired of not
> > having Flash on their iPhone and switching to an Android phone.
>
> Which is why I can't wait to see FP 10.1 and AIR on Android. If it's
> done well, it will tear the technical-reasons veil right from Job's
> face and consumers will begin asking questions.
>
> Instead of pulling CS for OSX, Adobe should try to port it to Linux
> instead. I know that's easier said than done, but it would send a
> strong signal, also to other companies, that Linux has become a viable
> alternative.
>
> ___
> 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] drawrect: get the linestyle drawing inside

2010-04-12 Thread Ktu
When I want inside borders I do this:

var spr:Sprite = new Sprite();
addChild(spr);
var g:Graphics = spr.graphics;
g.beginFill(0xFF45A3);
g.drawRect(0, 0, 100, 100);
g.endFill();
drawInsideStroke(g, 0, 0, 100, 100, 1, 0x32010B);

function drawInsideStroke(graphics:Graphics, x:int, y:int, width:int,
height:int, thickness:int = 1, color:uint = 0x00) {
graphics.endFill(); // for good measure, but maybe not?
graphics.beginFill(color);
graphics.drawRect(x, y, width, height);
graphics.drawRect( x + thickness, y + thickness, width - (thickness *
2), height - (thickness * 2) );
graphics.endFill();
}
trace(spr.width,spr.height);  // -> 110 110
trace(spr.getBounds(this)) // -> (x=-5, y=-5, w=110, h=110)


On Mon, Apr 12, 2010 at 7:14 PM, Latcho  wrote:

> Hello,
> Something i still can't solve is that when drawing for example a rect in a
> Shape graphics object with a fat lineStyle, the line drawn is always half
> it's thicknes in the inner part of the rect and half outside; This always
> gives me headaches  when aligning, measuring,  skinning or bitmapping stuff
> since half the line is in the negative x / y coordinate space of the shape..
> I know that I can use the getBounds method to get me the accurate  negative
> x and y offset of the (line) graphics, but what I really want is to have the
> line beign drawn totally within the rect. Is that possible by the default
> graphics api ? Then please expand on my example.
>
> Thanks.
> Latcho.
>
>
> var spr:Sprite = new Sprite();
> addChild(spr);
> var g:Graphics = spr.graphics;
> g.lineStyle(10,0xff);
> g.beginFill(0xff);
> g.drawRect(0,0,100,100);
> g.endFill();
> trace(spr.width,spr.height);  // -> 110 110
> trace(spr.getBounds(this)) // -> (x=-5, y=-5, w=110, h=110)
>
> ___
> 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] ASDoc & third party libraries

2010-04-12 Thread Ktu
I'm assuming you've already googled it, and that your google foo is strong
because I did not search.

If there doesn't seem to be a way to do it there is the annoying way:
copy just the files you want ASDoc'ed into a different directory...

I've done it before for its simplicity, but not a great long term solution

Ktu

On Thu, Apr 8, 2010 at 10:30 AM, Merrill, Jason <
jason.merr...@bankofamerica.com> wrote:

> Those of you who use ASDoc I'm sure have come across this before. If you
> use FlashDevelop and ASDoc - then even better as that is my setup.
>
> How do you handle running ASDoc on a Flash or Flex project where you are
> also using other third party libraries?  If you run ASDoc on a project
> that uses a third party library like Greensock's TweenLite or
> Papervision3D, as I am, you can get all kinds of compiler errors because
> it tries to include those in the documentation as well (since they are
> imported into your classes), and those are not necessarily set up for
> ASDoc.  I know in FlashDevelop, the Actionscript Documentation Generator
> has a field for classes to exclude - but it would be impossible to list
> out all those third party classes - is there a way to exclude an entire
> package?
>
> Thanks,
>
> Jason Merrill
>
> Bank of  America  Global Learning
> Learning & Performance Solutions
>
> Join the Bank of America Flash Platform Community
> <http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx>   and
> visit our Instructional Technology Design Blog
> <http://sharepoint.bankofamerica.com/sites/SDTeam/itdblog/default.aspx>
> (note: these are 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


Re: [Flashcoders] Re:drawrect: get the linestyle drawing inside

2010-04-13 Thread Ktu
atm the best thing I can come up with is an object that can recreate the
draw methods, assuming that you want a stroke on it. If I am just going to
stick with drawRect, drawRoundRect, and drawRoundRectComplex I can do that.
Looking into 'drawing' an inner stroke when using lineTo curveTo etc and
other draw commands will take a bit more work and time.

I kind of feel like it might end up being InnerStroke extends Shape, and
creating public methods that are 'override's of the graphics drawing api.
Just thoughts out loud.

Ktu

On Tue, Apr 13, 2010 at 12:09 PM, Latcho  wrote:

>
>
> Hi Ktu,
> Thanks for your supportive emails.
> I'm not a newbie but I thought I might have missed something on the API
> that wasn't apparent in the as3 docs.
>
> It sucks to have it confirmed it isn't supported :)
> The thing is I want to stay as close to the original api as possible
> preferably without wrappers (we're not only talking about rects but also
> curved shapes are possible you see...). Though I'd be happy to see what
> you're take on it looks like :)
>
> Thanks,
> Latcho
>
>
> On 13-04-10 16:59, Ktu wrote:
>
>> >From my experience, there is no API support for it. It sucks I know. I
>> deal with this problem all the time.
>>
>> For transparency, the beginFill(color:uint, alpha:Number); you can specify
>> alpha. With the system I have shown you, the stroke would be transparent
>> over top of the original color, so a red square with a semi transparent blue
>> border would produce purple as your border.
>>
>> If you want the stroke to be unaffected by the inside square it wouldn't
>> be that hard to write a class to handle that. In fact, I use this so often I
>> think I will do that.
>>
>> I should be able to finish by Thursday at the latest and I'll share when
>> I'm done. If you are eager for it, the idea would be to have build an
>> object, that you would specify dimensions for, and fill color and alpha, and
>> also the border fill and alpha, then when it draws the rectangle, it
>> incorporates the stroke width into consideration so that there are no
>> graphics behind it.
>>
>> Ktu
>>
>> On Tue, Apr 13, 2010 at 7:50 AM, spank man > spamtha...@gmail.com>> wrote:
>>
>>nice and simple sollution,
>>but not so fine if you want the inner to be semi-transparent
>>Other ideas ? So no API support on this ?
>>
>>
>>On Tue, Apr 13, 2010 at 4:11 AM, Ktu
>>><mailto:ktu_fl...@cataclysmicrewind.com>> wrote:
>>
>>When I want inside borders I do this:
>>
>>
>>var spr:Sprite = new Sprite();
>>addChild(spr);
>>var g:Graphics = spr.graphics;
>>g.beginFill(0xFF45A3);
>>
>>g.drawRect(0, 0, 100, 100);
>>g.endFill();
>>drawInsideStroke(g, 0, 0, 100, 100, 1, 0x32010B);
>>
>>function drawInsideStroke(graphics:Graphics, x:int, y:int,
>>width:int, height:int, thickness:int = 1, color:uint = 0x00) {
>>graphics.endFill(); // for good measure, but maybe not?
>>graphics.beginFill(color);
>>graphics.drawRect(x, y, width, height);
>>graphics.drawRect( x + thickness, y + thickness, width -
>>(thickness * 2), height - (thickness * 2) );
>>graphics.endFill();
>>
>>}
>>trace(spr.width,spr.height);  // -> 110 110
>>trace(spr.getBounds(this)) // -> (x=-5, y=-5, w=110, h=110)
>>
>>
>>On Mon, Apr 12, 2010 at 7:14 PM, Latcho ><mailto:spamtha...@gmail.com>> wrote:
>>
>>Hello,
>>Something i still can't solve is that when drawing for
>>example a rect in a Shape graphics object with a fat
>>lineStyle, the line drawn is always half it's thicknes in
>>the inner part of the rect and half outside; This always
>>gives me headaches  when aligning, measuring,  skinning or
>>bitmapping stuff since half the line is in the negative x
>>/ y coordinate space of the shape..
>>I know that I can use the getBounds method to get me the
>>accurate  negative x and y offset of the (line) graphics,
>>but what I really want is to have the line beign drawn
>>totally within the rect. Is that possible by the default
>>graphics api ? Then please expand on my example.
>>
>>Thanks.
>>   

Re: [Flashcoders] Re:drawrect: get the linestyle drawing inside

2010-04-13 Thread Ktu
I think the static method would work if I were just doing rectangles, but
with lineTo, curveTo I think it needs to be an object.

A new thought that occurred to me: Have an object that will have a fill
sprite and a stroke sprite, separate from each other. Then if you call
lineStyle() with the inner:Boolean = true anytime you call a drawing command
it would draw a stroke in the stroke Sprite but offset all the values so the
stroke is inside. If you specify overlap:Boolean = false; then the object
would compensate so that the stroke does not overlap the fill.

It may work, but it would only really work if lineStyle pixelHinting = true,
and better still, if I forced all values to be int. There's no reason for it
not to be anyway.

Does that make sense?

Ktu

On Tue, Apr 13, 2010 at 2:40 PM, Latcho  wrote:

> Thanks for thinking out loud :)
> Can do that too if I need it. But if you ever write something generic I'd
> love to use / see it because I don't have the time for this now.
> Personally I wouldn't extend directly on shape but create some static
> methods like
> GraphicsInnerStroke.drawRect(myDispObj.graphics, linestyleObject, method
> arguments );
>
> Cheers,
> Latcho
>
>
> atm the best thing I can come up with is an object that can recreate the
> draw methods, assuming that you want a stroke on it. If I am just going to
> stick with drawRect, drawRoundRect, and drawRoundRectComplex I can do that.
> Looking into 'drawing' an inner stroke when using lineTo curveTo etc and
> other draw commands will take a bit more work and time.
>
> I kind of feel like it might end up being InnerStroke extends Shape, and
> creating public methods that are 'override's of the graphics drawing api.
> Just thoughts out loud.
>
> Ktu
>
> On Tue, Apr 13, 2010 at 12:09 PM, Latcho  spamtha...@gmail.com>> wrote:
>
>
>
>   Hi Ktu,
>   Thanks for your supportive emails.
>   I'm not a newbie but I thought I might have missed something on the
>   API that wasn't apparent in the as3 docs.
>
>   It sucks to have it confirmed it isn't supported :)
>   The thing is I want to stay as close to the original api as possible
>   preferably without wrappers (we're not only talking about rects but
>   also curved shapes are possible you see...). Though I'd be happy to
>   see what you're take on it looks like :)
>
>   Thanks,
>   Latcho
>
>
>   On 13-04-10 16:59, Ktu wrote:
>
>>From my experience, there is no API support for it. It sucks I
>   know. I deal with this problem all the time.
>
>   For transparency, the beginFill(color:uint, alpha:Number); you
>   can specify alpha. With the system I have shown you, the stroke
>   would be transparent over top of the original color, so a red
>   square with a semi transparent blue border would produce purple
>   as your border.
>
>   If you want the stroke to be unaffected by the inside square it
>   wouldn't be that hard to write a class to handle that. In fact,
>   I use this so often I think I will do that.
>
>   I should be able to finish by Thursday at the latest and I'll
>   share when I'm done. If you are eager for it, the idea would be
>   to have build an object, that you would specify dimensions for,
>   and fill color and alpha, and also the border fill and alpha,
>   then when it draws the rectangle, it incorporates the stroke
>   width into consideration so that there are no graphics behind it.
>
>   Ktu
>
>   On Tue, Apr 13, 2010 at 7:50 AM, spank man<mailto:spamtha...@gmail.com> <mailto:spamtha...@gmail.com
>
>   <mailto:spamtha...@gmail.com>>> wrote:
>
>   nice and simple sollution,
>   but not so fine if you want the inner to be semi-transparent
>   Other ideas ? So no API support on this ?
>
>
>   On Tue, Apr 13, 2010 at 4:11 AM, Ktu
>  <mailto:ktu_fl...@cataclysmicrewind.com>
>   <mailto:ktu_fl...@cataclysmicrewind.com
>   <mailto:ktu_fl...@cataclysmicrewind.com>>> wrote:
>
>   When I want inside borders I do this:
>
>
>   var spr:Sprite = new Sprite();
>   addChild(spr);
>   var g:Graphics = spr.graphics;
>   g.beginFill(0xFF45A3);
>
>   g.drawRect(0, 0, 100, 100);
>   g.endFill();
>   drawInsideStroke(g, 0, 0, 100, 100, 1, 0x32010B);
>
>   function drawInsideStroke(graphics:Graphics, x:int, y:int,
>   width:int, height:int, thickness:int = 1, color:uint =
>   0x00) {
>

Re: [Flashcoders] Re:drawrect: get the linestyle drawing inside

2010-04-16 Thread Ktu
So, I haven't quite figured it out, but I think I am getting closer. It is
possible, the math is just a bit beyond my normal skills so it may take some
more time.

Thanks for asking about this. I have always wanted to have inner strokes and
strokes that don't overlap. You asking just pushed me to work on it.

I hate the getBounds() when you have a shape with a stroke.

Best,
Ktu

On Tue, Apr 13, 2010 at 3:13 PM, Ktu wrote:

> I think the static method would work if I were just doing rectangles, but
> with lineTo, curveTo I think it needs to be an object.
>
> A new thought that occurred to me: Have an object that will have a fill
> sprite and a stroke sprite, separate from each other. Then if you call
> lineStyle() with the inner:Boolean = true anytime you call a drawing command
> it would draw a stroke in the stroke Sprite but offset all the values so the
> stroke is inside. If you specify overlap:Boolean = false; then the object
> would compensate so that the stroke does not overlap the fill.
>
> It may work, but it would only really work if lineStyle pixelHinting =
> true, and better still, if I forced all values to be int. There's no reason
> for it not to be anyway.
>
> Does that make sense?
>
> Ktu
>
> On Tue, Apr 13, 2010 at 2:40 PM, Latcho  wrote:
>
>> Thanks for thinking out loud :)
>> Can do that too if I need it. But if you ever write something generic I'd
>> love to use / see it because I don't have the time for this now.
>> Personally I wouldn't extend directly on shape but create some static
>> methods like
>> GraphicsInnerStroke.drawRect(myDispObj.graphics, linestyleObject, method
>> arguments );
>>
>> Cheers,
>> Latcho
>>
>>
>> atm the best thing I can come up with is an object that can recreate the
>> draw methods, assuming that you want a stroke on it. If I am just going to
>> stick with drawRect, drawRoundRect, and drawRoundRectComplex I can do that.
>> Looking into 'drawing' an inner stroke when using lineTo curveTo etc and
>> other draw commands will take a bit more work and time.
>>
>> I kind of feel like it might end up being InnerStroke extends Shape, and
>> creating public methods that are 'override's of the graphics drawing api.
>> Just thoughts out loud.
>>
>> Ktu
>>
>> On Tue, Apr 13, 2010 at 12:09 PM, Latcho > spamtha...@gmail.com>> wrote:
>>
>>
>>
>>   Hi Ktu,
>>   Thanks for your supportive emails.
>>   I'm not a newbie but I thought I might have missed something on the
>>   API that wasn't apparent in the as3 docs.
>>
>>   It sucks to have it confirmed it isn't supported :)
>>   The thing is I want to stay as close to the original api as possible
>>   preferably without wrappers (we're not only talking about rects but
>>   also curved shapes are possible you see...). Though I'd be happy to
>>   see what you're take on it looks like :)
>>
>>   Thanks,
>>   Latcho
>>
>>
>>   On 13-04-10 16:59, Ktu wrote:
>>
>>>From my experience, there is no API support for it. It sucks I
>>   know. I deal with this problem all the time.
>>
>>   For transparency, the beginFill(color:uint, alpha:Number); you
>>   can specify alpha. With the system I have shown you, the stroke
>>   would be transparent over top of the original color, so a red
>>   square with a semi transparent blue border would produce purple
>>   as your border.
>>
>>   If you want the stroke to be unaffected by the inside square it
>>   wouldn't be that hard to write a class to handle that. In fact,
>>   I use this so often I think I will do that.
>>
>>   I should be able to finish by Thursday at the latest and I'll
>>   share when I'm done. If you are eager for it, the idea would be
>>   to have build an object, that you would specify dimensions for,
>>   and fill color and alpha, and also the border fill and alpha,
>>   then when it draws the rectangle, it incorporates the stroke
>>   width into consideration so that there are no graphics behind it.
>>
>>   Ktu
>>
>>   On Tue, Apr 13, 2010 at 7:50 AM, spank man >   <mailto:spamtha...@gmail.com> <mailto:spamtha...@gmail.com
>>
>>   <mailto:spamtha...@gmail.com>>> wrote:
>>
>>   nice and simple sollution,
>>   but not so fine if you want the inner to be semi-transparent
>>   Other ideas ? So no API support on this ?
>>
>>
>> 

Re: [Flashcoders] debugging Flash apps

2010-05-07 Thread Ktu
I tend to use MonsterDebugger a lot. It is easy to debug stuff in almost any
setting outside of mobile devices. I use that and a combo of trace
statements and the IDE Debugger.

http://www.demonsterdebugger.com/

Ktu

On Fri, May 7, 2010 at 8:00 PM, Jim Andrews  wrote:

> Thanks, Steven. Does this require Eclipse? What flavour of Eclipse, if so?
>
> ja
>
>
>
>  FDT. End of story.
>>
>>
>> On 5/7/2010 2:46 PM, Jim Andrews wrote:
>>
>>> I'm finding the debugger in the Flash IDE almost unusably slow. How do
>>> people debug their apps?
>>>
>>> And I've taken to using FlashDevelop for editing code because the editor
>>> in the Flash IDE is equally slow.
>>>
>>
> ___
> 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] Apple developing flash-like alternative

2010-05-08 Thread Ktu
oh apple. Why do you have so many secrets?

On Sat, May 8, 2010 at 2:48 AM, Jared  wrote:

>
> http://thenextweb.com/apple/2010/05/08/apple-is-developing-a-flash-alternative-and-has-been-for-almost-a-year/
>
> Don't know how valid this is but it would explain a lot
>
> Sent from my iPhone
> ___
> 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] help with CameraDetection class

2010-05-11 Thread Ktu
Hey List,

I wanted to throw together a list of Camera.name together.

If you have a webcam that you use on your computer (or built in) could you
please reply with the names of all the cameras that are connected.

1. Open a .swf (internet, local whatever)
2. Right click anywhere
3. choose settings from the context menu
4. go to camera tab (last one)
5. send me all the names that show up in your drop down


Specifically I would love if a macbook user could help. macbooks tend to
have three always there, and the last one is normally the webcam. I'm
updating the macbook detection in my class.

I'm not sure what I'm going to do with the list of webcams, but I'll compile
it and put it on my blog just in case.
Thanks list,
Ktu

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


Re: [Flashcoders] help with CameraDetection class

2010-05-12 Thread Ktu
thanks glen,

If anyone else is feeling up to it, the more info I get the better. Thanks
in advance.
more mac users?

Ktu

On Wed, May 12, 2010 at 4:50 AM, Glen Pike wrote:

> Hi,
>
>Flash, Windows (Actual = "Reported by Flash"):
>
>Logitech Quickcam Pro E3500 = "USB Video Device"
>Logitech Quickcam C200 = "USB Video Device"
>Logitech Webcam C905 = "Quickcam Pro for Notebooks".
>
>Flash, Linux, Gentoo using Kernel 2.6.29 with kernel module "uvcvideo":
>
>Logitech Quickcam Pro E3500 = "UVC Camera (046d:0805) (V4L2)"
>Logitech Quickcam C200 = "UVC Camera (046d:0802) (V4L2)"
>Logitech Webcam C905 = "UVC Camera (046d:0991) (V4L2)"
>
>As you can see from the 2nd list, the names are not very helpful to a
> layperson user - if Linux is going to become mainstream, this really needs
> to be a bit more user-friendly...
>
>This page is really useful help for Logitech's Linux camera stuff
> http://www.quickcamteam.net/
>
>HTH
>
>Glen
>
>
> On 12/05/2010 04:07, Ktu wrote:
>
>> Hey List,
>>
>> I wanted to throw together a list of Camera.name together.
>>
>> If you have a webcam that you use on your computer (or built in) could you
>> please reply with the names of all the cameras that are connected.
>>
>> 1. Open a .swf (internet, local whatever)
>> 2. Right click anywhere
>> 3. choose settings from the context menu
>> 4. go to camera tab (last one)
>> 5. send me all the names that show up in your drop down
>>
>>
>> Specifically I would love if a macbook user could help. macbooks tend to
>> have three always there, and the last one is normally the webcam. I'm
>> updating the macbook detection in my class.
>>
>> I'm not sure what I'm going to do with the list of webcams, but I'll
>> compile
>> it and put it on my blog just in case.
>> Thanks list,
>> Ktu
>>
>> blog.cataclysmicrewind.com/webcamdetection/
>> ___
>> 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] Oh the irony

2010-05-14 Thread Ktu
amazing

On Fri, May 14, 2010 at 2:24 PM, Matt S.  wrote:

> the other irony: When you watch the iPad ad, it plays with the
> Quicktime plugin, at least for me, despite my being in Safari, which
> ostensibly supports HTML5. Apparently some plugins are better than
> others...
>
> http://www.apple.com/ipad/gallery/#ad
> ___
> 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] Oh the irony

2010-05-15 Thread Ktu
>From all of this crazy stuff going on the last couple of months, I can't
wait to see what happens.

apple blatantly bashed Flash.
They still offer Flash in their own store (because Adobe products have
helped keep apple alive).
Their policy changes.
the new iad network.
the iBad

TLF
Flash on Android and other smartphones
Google's support
CS5

Shit is changing, and all I can say is; lets do our part to make it change
the way we want it to change.

I've never been a huge fan of apple (and their keyboard shortcuts just don't
make sense). The more of this type of information to fuel the conflict will
only cause more change. Keep finding the good stuff.

Ktu
(sorry for my troll comment earlier)



On Sat, May 15, 2010 at 11:20 AM, Matt S.  wrote:

> that being said, I just looked at it from a different computer and it
> was using  so I'll just go ahead and put the mud on my own face
> ;) . Apparently on the previous computer it rolled back to Quicktime
> for some reason.
>
> .m
>
> On Sat, May 15, 2010 at 11:16 AM, Matt S.  wrote:
> > On Sat, May 15, 2010 at 9:58 AM, Kerry Thompson 
> wrote:
> >> I don't see anything ironic about using QuickTime. It's one of Apple's
> >> big success stories.
> >>
> >> I can kind of see them pushing HTML5 over Flash, for business reasons.
> >> But why would they want to use HTML5 over their own product?
> >
> > Of course you're right, *IF* you acknowledge that Steve Jobs' recent
> > decisions have primarily been based on cold hard business
> > calculations, which most of us do. But that's not the argument *he*,
> > or other anti-Flashers are making. You hear all the time that the
> > problem with Flash is that, as a plug-in, it exists outside the stack,
> > in its own isolated box, whereas HTML5 is standards compliant and
> > completely open and exists as part of the natural code flow. That is
> > certainly true to a large extent, but the exact same thing can be said
> > of Quicktime.
> >
> > Secondly, Jobs has made a very specific distinction between the iPhone
> > vs the browser. While acknowledging that the iPhone is obviously a
> > closed garden, he has said that when it comes to the *browser*, Apple
> > is all about open, non-proprietary, standards compliant, HTML5, etc
> > etc. And clearly, Quicktime is just as closed and proprietary as
> > Flash, if not more so.
> >
> > Thirdly, I dont need to tell anyone here just how central the 
> > tag has been in the whole debate. How often do you hear people saying
> > that with the  tag, Flash is dead, completely ignoring
> > everything else Flash does? If ever there was a proof of concept where
> > Jobs & Co. should be putting their money where their mouth is, video
> > is it. Especially since this video isnt DRM or in need of any other of
> > the more advanced features that HTML5 can't handle yet.
> >
> > .m
> >
> ___
> 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 Player integrated with Chrome

2010-05-17 Thread Ktu
How did I miss this?
I searched the list and saw no posts about it. Is that true?

Bringing improved support for Adobe Flash Player to Google
Chrome<http://blog.chromium.org/2010/03/bringing-improved-support-for-adobe.html>

How does this make you feel? - It makes me feel a bit funny inside.

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


Re: [Flashcoders] flash cs5 any good for coding? if not is it any good at all?

2010-05-19 Thread Ktu
> code assist is one of those features you
> never knew that you where missing.

If you never knew you were missing it, then you were REALLY missing it.

CS5 is better for coding. The code hinting is much better. Code hinting
saves you millions of keystrokes when you get used to it. Also, CS5 has the
snippets panel which when used properly can save even more keystrokes.

I've you've only ever used the Flash IDE for coding, then yes, CS5 is much
better for it. However, if you've used FDT, Flash Builder/Eclipse, or
FlashDevelop, then there is nothing new.

Ktu

On Wed, May 19, 2010 at 8:43 AM, Eric E. Dolecki  wrote:

> It's better than CS4 for sure. Depends on how you like to work on whether
> or
> not it's for you.
>
> On Wed, May 19, 2010 at 1:44 AM, Henrik Andersson  >wrote:
>
> > Better than cs 4. The improved code assist is one of those features you
> > never knew that you where missing.
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> http://ericd.net
> Interactive design and development
> ___
> 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] Line break in dynamic text imported from xml

2010-05-19 Thread Ktu
>From what I remember when using xml with html, you need to wrap your html
inside of a* * to get it to render properly. You can put a \r
or \n in it as well.


On Wed, May 19, 2010 at 10:56 AM, Paul Jinks  wrote:

> It's been a long time since I've done any coding. I think this is
> pretty straightforward but it has me beat. Can you help?
>
> I'm working on a quiz using AS1 (I think) that reads questions and
> answers from an xml file. (see below for the script).
>
> I'd like to introduce line breaks into the feedback, how do I do this?
> I've tried using \r but it just displays this as text.
>
> Ideally I'd like to display the text as html but so far my efforts to
> do this have broken the script - any pointers?
>
> Here's the action script for the quiz. I hope it makes sense:
>
> function QuizItem(question)
> {
>this.question=question;
>this.answers=new Array();
>this.feedbacks=new Array();
>this.numOfAnswers=0;
>this.correctAnswer=0;
>this.getQuestion=function()
>{
>return this.question;
>}
>this.addAnswer=function(answer, isCorrectAnswer, feedback)
>{
>this.answers[this.numOfAnswers]=answer;
>this.feedbacks[this.numOfAnswers]=feedback;
>if (isCorrectAnswer)
>this.correctAnswer=this.numOfAnswers;
>this.numOfAnswers++;
>}
>
>this.getAnswer=function(answerNumberToGet)
>{
>return this.answers[answerNumberToGet];
>}
>this.getFeedback=function(answerNumberToGet)
>{
>return this.feedbacks[answerNumberToGet];
>}
>
>this.getCorrectAnswerNumber=function()
>{
>return this.correctAnswer;
>}
>
>this.checkAnswerNumber=function(userAnswerNumber)
>{
>if (userAnswerNumber==this.getCorrectAnswerNumber()) {
>numOfQuestionsAnsweredCorrectly++;
>} else {
>numOfQuestionsAnsweredIncorrectly++;
>}
>feedback = _root["feedback"+parseInt((userAnswerNumber+1))]
>gotoAndPlay("Feedback");
>}
> }
>
> function onQuizData(success)
> {
>var quizNode=this.firstChild;
>var quizTitleNode=quizNode.firstChild;
>title=quizTitleNode.firstChild.nodeValue;
>
>var i=0;
>//  follows 
>var itemsNode=quizNode.childNodes[1];
>while (itemsNode.childNodes[i])
>{
>var itemNode=itemsNode.childNodes[i];
>//  consists of   and one or more 
>//  always comes before s (node 0 of
> )
>var questionNode=itemNode.childNodes[0];
>quizItems[i]=new
> QuizItem(questionNode.firstChild.nodeValue);
>var a=1;
>//  follows 
>var answerNode=itemNode.childNodes[a++];
>while (answerNode)
>{
>//trace(answerNode);
>var isCorrectAnswer=false;
>if (answerNode.attributes.correct=="y")
>isCorrectAnswer=true;
>//get answer
>tempAnswer = answerNode.firstChild.nodeValue;
>//go to next node
>answerNode=itemNode.childNodes[a++];
>//get feedback
>tempFeedback = answerNode.firstChild.nodeValue;
>//add answer and feedback to current answer/feedback
> 'pair'
>quizItems[i].addAnswer(tempAnswer, isCorrectAnswer,
> tempFeedback);
>// goto the next 
>answerNode=itemNode.childNodes[a++];
>}
>i++;
>}
>gotoAndStop("Start");
> }
>
> var quizItems=new Array();
> var myData=new XML();
> myData.ignoreWhite=true;
> myData.onLoad=onQuizData;
> myData.load("google_quiz.xml");
> stop();
>
> And this is what the xml file looks like:
>
> 
>
>
>
>
>
>
>
> ]>
> 
>My quiz
>
>
>  What colour are greenfly
>  Red
>  You chose answer [a]. This is incorrect. The correct
> answer is [d].
>  Blue
>  You chose answer [b]. This is incorrect. The correct
> answer is [d].
>  Cheese
>  Sorry, cheese is not a colour.
>  Green
>  Correct!
>
> 
>
> Thanks for reading, any help would be very gratefully received.
>
> Paul
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
h

Re: [Flashcoders] Line break in dynamic text imported from xml

2010-05-20 Thread Ktu
and what goes in the CDATA is not parsed by the xml reader.

On Thu, May 20, 2010 at 12:20 PM, Kerry Thompson wrote:

> Paul Jinks wrote:
>
> > I managed to get this to work by using  just as you
> > suggested. I hadn't understood that it needed to go inside each of my
> > xml tags.
>
> Just a clarification--it doesn't need to be inside each of your XML
> tags. Only the ones that contain text you're going to display,
> especially if they have HTML tags like  or \n.
>
> You don't need to make your nodes CDATA (which, by the way, stands for
> Character Data--i.e., text).
>
> Cordially,
>
> Kerry Thompson
> ___
> 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] Blocking multiple logins on one computer

2010-05-23 Thread Ktu
You could also try using the LocalConnection class.

If you apps connect at some point, turn the second one off somehow.

Ktu

On Sun, May 23, 2010 at 4:43 PM, Karl DeSaulniers wrote:

> Thanks Dave,
> That is the consensus I am getting.
> Is there any way to tell how many browsers from one computer are being
> used?
> Or if a person is using a virtual machine or is sharing an ip?
>
> Karl
>
>
>
> On May 23, 2010, at 11:33 AM, Dave Watts wrote:
>
>  Let me clarify a little more. How do I prevent multiple logins to my site
>>> from one computer regardless of the user?
>>> So that someone cant open safari and IE and log in to my site using both
>>> browsers on that one computer.
>>> Even if the usernames are different.
>>>
>>
>> I don't think you can guarantee this, but you can make it more
>> difficult by looking at the user's IP address. Your web server will
>> make that available as a CGI variable. This however may cause problems
>> for users behind proxies - multiple legitimate users might then share
>> the same IP address - and users can circumvent this by using multiple
>> computers, including virtualized computers.
>>
>> Dave Watts, CTO, Fig Leaf Software
>> http://www.figleaf.com/
>> http://training.figleaf.com/
>>
>> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
>> GSA Schedule, and provides the highest caliber vendor-authorized
>> instruction at our training centers, online, or onsite.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.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


Re: [Flashcoders] Dynamic Text Boxes in Flash CS4

2010-05-26 Thread Ktu
You can use multiple TextFormat object in one text field affecting different
parts of the text. I think most people think that its more hassle that way
than using htmlText.

TextField.setTextFormat( format:Textformat, beginIndex:int = -1,
endIndex:int = -1 ) :void

Ktu
<http://help.adobe.com/en_US/AS3LCR/Flash_10.0/specialTypes.html#void>
On Wed, May 26, 2010 at 5:43 PM, Nathan Mynarcik wrote:

> You have to embed the font for that textfield so it will render the text
> correctly.
> --Original Message--
> From: Donald Talcott
> Sender: flashcoders-boun...@chattyfig.figleaf.com
> To: Flash Coders List
> ReplyTo: Flash Coders List
> Subject: [Flashcoders] Dynamic Text Boxes in Flash CS4
> Sent: May 26, 2010 5:07 PM
>
> I have some static text boxes that I need to make dynamic.
> Questions;
> 1. Do you have to render text as HTML in a Dynamic text box in order to use
> multiple font sizes and colors within each box?
> 2. When I render the text as HTML, format the type, get it looking good.
> Then I click outside the text box, the text weight and line spacing changes.
> When I select the text box again with the text tool, the type appears
> correct as I originally set it.
>
> Is this normal or is Flash messing with my mind.
>
>
>
> Don Talcott
> 316 Greenwood Ave
> Decatur, GA 30030
> 404 538-1642
> dtalc...@mindspring.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


Re: [Flashcoders] Job Openings at Bank of America for US/Canada and UK candidates

2010-06-11 Thread Ktu
I am a developer. I code. I can barely design buttons. Layout is not as
hard.
Are there actually people out there who are "Instructional Technology
Architects (senior-level positions)" in there ability to code and who also
"consider yourself a good graphic interface designer, not just have a
mastery of Photoshop and Illustrator or Fireworks?

I've always been curious.:\

Ktu

On Fri, Jun 11, 2010 at 12:18 PM, Merrill, Jason <
jason.merr...@bankofamerica.com> wrote:

> Once again, we have some job openings on my team at Bank of America. We
> have at least one job for a North American-based candidate and one or
> more for positions in London, UK.
>
> These are not entry level positions, nor do we seek intermediate level
> candidates. We have one of the best internal e-learning organizations in
> the industry and we have many instructional technology developers in our
> larger team, but these positions are for the "special ops" team of
> Instructional Technology Architects (senior-level positions) I am on. We
> don't just do the simple page-turner WBTs all the time - we build
> re-usable e-learning solutions, components, and systems.  We are looking
> for what we call "e-learning rock stars" - candidates with the following
> REQUIRED skills and talents (if you don't have these, then you probably
> shouldn't apply).
>
> 1.  Advanced knowledge of Actionscript 3.0 - meaning, you are
> comfortable writing all of your Actionscript in classes using
> object-oriented methods. You can do things like create and dispatch
> custom events, work with XML, create a code architecture, etc. You can
> create rich e-learning experiences in Flash or Flex and have a portfolio
> you can show that demonstrates this.
> 2.  You have a good visual portfolio of work you have done. Meaning,
> you consider yourself a good graphic interface designer, not just have a
> mastery of Photoshop and Illustrator or Fireworks.
> 3.  You have e-learning background and experience. An advanced
> degree in a related field is preferred.  You understand adult learning
> theory and could switch into the role of an instructional designer if
> you had to (not that you would in this position, you wouldn't, but there
> is some collaboration with IDs where this helps immensely)
>
> Those three skills are required.  Other desired skills would be (not
> necessarily required- obviously, we can't expect all of these, but some
> would be nice):
>
> 1.  Knowledge of the Adobe Flex framework
> 2.  Knowledge of HTML/Javascript/AJAX
> 3.  Knowledge of SCORM, LMS and LCMS systems
> 4.  Knowledge of Lectora / Saba Publisher
> 5.  Knowledge of Adobe's video and sound editing tools
> 6.  Knowledge of Microsoft Sharepoint - especially if you know CAML
> and using Sharepoint Lists and Webservices
> 7.  Knowledge of utilizing Webservices
> 8.  Knowledge of OOP design patterns
> 9.  Knowledge of the other tools in Adobe's Creative Suite
> 10. Knowledge of micro architectures like Cairngorm and Pure MVC
> 11. Knowledge of third party Actionscript libraries like
> Papervision3D or Away3D
> 12. Knowledge of 3D modeling tools like Blender or Swift3D
>
> Of course, we would prefer candidates located in the Charlotte, NC area
> where we are headquartered, but being remote is completely OK as well.
> The London position(s) are located in London - no remote candidates for
> those. This is a GREAT job working on a TALENTED team at a FATASTIC
> Fortune 10 company.
>
> Send me your resumes if you're interested!
>
>
>
> Jason Merrill
>
> Instructional Technology Architect
> Bank of America   Global Learning
>
> Join the Bank of America Flash Platform Community
> <http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx>   and
> visit our Instructional Technology Design Blog
> <http://sharepoint.bankofamerica.com/sites/SDTeam/itdblog/default.aspx>
> (Note: these resources are only available for Bank of America
> associates)
>
>
>
>
>
>
> ___
> 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] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Ktu
This in a mouseMove or enterFrame event is what I've always used.


var index = txt.getCharIndexAtPoint (txt.mouseX, txt.mouseY);
var url = "";
if (index >= 0) {
var fmt:TextFormat = txt.getTextFormat (index, index + 1);
if (fmt.url) url = fmt.url;
}
if (url) {
// begin tooltip code
}

ktu


On Tue, Jun 15, 2010 at 8:49 AM, Glen Pike wrote:

> Why not use the mouse coordinates?
>
>
> On 15/06/2010 13:24, Karim Beyrouti wrote:
>
>> Hi All -
>>
>> Wondering if there are any hacks to trigger a 'RollOver' script when
>> hovering over a 'a href' link in an html textfield.
>> Currently using TextEvent.LINK,to trigger links - but would like to show a
>> tooltip on rollover (of that part of text).
>>
>> So far the only solution i can think of is using :
>> TextField.getCharIndexAtPoint(x:Number, y:Number)
>> create this  - but it seems like this could be quite long winded solution.
>>
>> Any other ways of achieving this?
>>
>>
>> Thanks
>>
>>
>>
>> Karim ___
>> 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] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Ktu
sorry, I tacked on that last if statement. It should probably read

if (url.length > 0) {
// begin tooltip code
}

maybe you want to check if its an appropriate web url with a regExp first,
but I think you get the idea.

Ktu

On Tue, Jun 15, 2010 at 9:05 AM, Ktu wrote:

>
> This in a mouseMove or enterFrame event is what I've always used.
>
>
> var index = txt.getCharIndexAtPoint (txt.mouseX, txt.mouseY);
> var url = "";
> if (index >= 0) {
> var fmt:TextFormat = txt.getTextFormat (index, index + 1);
> if (fmt.url) url = fmt.url;
> }
> if (url) {
> // begin tooltip code
> }
>
> ktu
>
>
>
> On Tue, Jun 15, 2010 at 8:49 AM, Glen Pike wrote:
>
>> Why not use the mouse coordinates?
>>
>>
>> On 15/06/2010 13:24, Karim Beyrouti wrote:
>>
>>> Hi All -
>>>
>>> Wondering if there are any hacks to trigger a 'RollOver' script when
>>> hovering over a 'a href' link in an html textfield.
>>> Currently using TextEvent.LINK,to trigger links - but would like to show
>>> a tooltip on rollover (of that part of text).
>>>
>>> So far the only solution i can think of is using :
>>> TextField.getCharIndexAtPoint(x:Number, y:Number)
>>> create this  - but it seems like this could be quite long winded
>>> solution.
>>>
>>> Any other ways of achieving this?
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Karim ___
>>> 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] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Ktu
Regardless of whether you are using multiple TextFormat objects or htmlText,
using getTextFormat(begin, end), the textFormat will have the appropriate
url.
This is a quick dirty test. Glad I could help out. I'm posting the code for
my test in case anyone else finds it useful.

One thing to note!
If text in a textfield does not fill the text field, a error can appear. In
my code below you can see that error. A link on the bottom line will
register when the cursor is in empty space below the link, but not directly
over it. The x property of the mouse is triggering the rollover. Maybe
someone else can explain this issue better.


AS3 - Timeline code

var txt:TextField = new TextField ();
txt.width = txt.height = 150;
txt.multiline = true;
txt.wordWrap = true;
txt.htmlText = "when registered, all links in
text fields will update the status bar.
hahahahah"
txt.border = true;
txt.x = txt.y = 100;
addChild(txt);

addEventListener (Event.ENTER_FRAME, captureEnterFrame)

function captureEnterFrame (e:Event):void {
var index = txt.getCharIndexAtPoint (txt.mouseX, txt.mouseY);
var url = "";
if (index >= 0) {
var fmt:TextFormat = txt.getTextFormat (index, index + 1);
if (fmt.url) url = fmt.url;
}
if (url) {
displayTooltip(url, new Point (mouseX, mouseY));
} else {
removeTooltip();
}
}

function displayTooltip(url:String, pos:Point):void {
if (getChildByName("ToolTip")) return;
var tf:TextField = new TextField ();
tf.name = "ToolTip";
tf.autoSize = "left";
tf.text = url;
tf.background = true; tf.border = true;
tf.backgroundColor = 0x00FF;
tf.x = pos.x + 5;
tf.y = pos.y + 15;
addChild(tf);

}
function removeTooltip ():void {
var t:TextField = getChildByName("ToolTip") as TextField;
if (t) removeChild(t);
}

On Tue, Jun 15, 2010 at 9:06 AM, Karim Beyrouti  wrote:

> The HREF link is only part the the textfields content, and each textfield
> can have more than one link amongst other copy
> and need to show relevant tooltip only when user is hovering over the 'a
> HREF' parts of the html textfield.
>
> On 15 Jun 2010, at 13:49, Glen Pike wrote:
>
> > Why not use the mouse coordinates?
> >
> > On 15/06/2010 13:24, Karim Beyrouti wrote:
> >> Hi All -
> >>
> >> Wondering if there are any hacks to trigger a 'RollOver' script when
> hovering over a 'a href' link in an html textfield.
> >> Currently using TextEvent.LINK,to trigger links - but would like to show
> a tooltip on rollover (of that part of text).
> >>
> >> So far the only solution i can think of is using :
> TextField.getCharIndexAtPoint(x:Number, y:Number)
> >> create this  - but it seems like this could be quite long winded
> solution.
> >>
> >> Any other ways of achieving this?
> >>
> >>
> >> Thanks
> >>
> >>
> >>
> >> Karim ___
> >> 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] Naming a loaded swf

2010-06-15 Thread Ktu
Loader.content is a DisplayObject. DisplayObject have a .name property

function onComplete(loadEvent:Event):void {
  var loadedContent = loadEvent.target.content;
  loadedContent.name = "MyName";
  addChild(loadedContent);
}

Ktu

P.S. this is all right in as3 livedocs... Not that this is for you
specifically Ted, but more people need to learn how to read the
documentation.


On Tue, Jun 15, 2010 at 9:28 AM, Lehr, Theodore
wrote:

> I am loading a swf via something like:
>
> var loader:Loader = new Loader();
>
> function startLoad(dfile:String)
> {
>   var nRequest:URLRequest = new URLRequest(dfile);
>   loader.contentLoaderInfo.addEventListener(Evenet.COMPLETE.onComplete);
>   loader.load(nRequest);
> }
>
> function onComplete(loadEvent:Event):void
> {
>   addChild(loadEvent.currentTarget.content);
> }
>
> startLoad("some.swf");
>
> I want to be able to name the swf that gets loaded... right now it is just
> getting a random name like: instance77
>
> How can I name it?
>
> ___
> 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] Naming a loaded swf

2010-06-15 Thread Ktu
There is no need to cast. The Loader.content property is defined as a
DisplayObject -
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Loader.html#content

but I should have been more strictly typed.

function onComplete(loadEvent:Event):void {
  var loadedContent:DisplayObject = loadEvent.target.content;
  loadedContent.name = "MyName";
  addChild(loadedContent);
}


On Tue, Jun 15, 2010 at 9:47 AM, Glen Pike wrote:

> Cast it to a DisplayObject then give that a name?
>
> var obj:DisplayObject = loadEvent.currentTarget as DisplayObject;
> obj.name = "my instance";
>
> ...
>
>
> On 15/06/2010 14:28, Lehr, Theodore wrote:
>
>> I am loading a swf via something like:
>>
>> var loader:Loader = new Loader();
>>
>> function startLoad(dfile:String)
>> {
>>var nRequest:URLRequest = new URLRequest(dfile);
>>loader.contentLoaderInfo.addEventListener(Evenet.COMPLETE.onComplete);
>>loader.load(nRequest);
>> }
>>
>> function onComplete(loadEvent:Event):void
>> {
>>addChild(loadEvent.currentTarget.content);
>> }
>>
>> startLoad("some.swf");
>>
>> I want to be able to name the swf that gets loaded... right now it is just
>> getting a random name like: instance77
>>
>> How can I name it?
>>
>> ___
>> 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] Naming a loaded swf

2010-06-15 Thread Ktu
It's possible that because the content property is the root class of the
loaded swf that you have to set the name property of your document class.

parent.swf
Loader.load(child.swf)

child.swf
this.name = "MyName";

Maybe that is what you need to do. I'm going to run a test to find out

Ktu


On Tue, Jun 15, 2010 at 10:49 AM, Lehr, Theodore
wrote:

> Actually - both ways are giving me the same error:
>
> Error #2078: The name property of a Timeline-placed object cannot be
> modified
>
> 
> From: flashcoders-boun...@chattyfig.figleaf.com [
> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ktu [
> ktu_fl...@cataclysmicrewind.com]
> Sent: Tuesday, June 15, 2010 9:49 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Naming a loaded swf
>
> There is no need to cast. The Loader.content property is defined as a
> DisplayObject -
>
> http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Loader.html#content
>
> but I should have been more strictly typed.
>
> function onComplete(loadEvent:Event):void {
>  var loadedContent:DisplayObject = loadEvent.target.content;
>  loadedContent.name = "MyName";
>  addChild(loadedContent);
> }
>
>
> On Tue, Jun 15, 2010 at 9:47 AM, Glen Pike  >wrote:
>
> > Cast it to a DisplayObject then give that a name?
> >
> > var obj:DisplayObject = loadEvent.currentTarget as DisplayObject;
> > obj.name = "my instance";
> >
> > ...
> >
> >
> > On 15/06/2010 14:28, Lehr, Theodore wrote:
> >
> >> I am loading a swf via something like:
> >>
> >> var loader:Loader = new Loader();
> >>
> >> function startLoad(dfile:String)
> >> {
> >>var nRequest:URLRequest = new URLRequest(dfile);
> >>
>  loader.contentLoaderInfo.addEventListener(Evenet.COMPLETE.onComplete);
> >>loader.load(nRequest);
> >> }
> >>
> >> function onComplete(loadEvent:Event):void
> >> {
> >>addChild(loadEvent.currentTarget.content);
> >> }
> >>
> >> startLoad("some.swf");
> >>
> >> I want to be able to name the swf that gets loaded... right now it is
> just
> >> getting a random name like: instance77
> >>
> >> How can I name it?
> >>
> >> ___
> >> 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] HTML TextFields - 'A HREF' RollOvers..

2010-06-15 Thread Ktu
Did you know that for htmlText using  you can specify the
href="event:myText"
Then register a TextEvent. This is how links inside of text fields can
trigger functions

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/text/TextField.html#htmlText

Ktu

On Tue, Jun 15, 2010 at 12:14 PM, Karim Beyrouti  wrote:

> Yep... However I was trying to get roll overs to trigger a function. Am
> going to build a textfield roll over utility class... Will post the results
> here when it's done...
>
> Thanks...
>
> Karim
>
>
>
>
> On 15 Jun 2010, at 16:08, Kevin Newman  wrote:
>
>  a:hover works in a css style sheet:
>>
>> var ss:StyleSheet = new StyleSheet();
>> ss.parseCSS("a:link{color: #FF;}a:hover{text-decoration:
>> underline;color: #FF;}");
>> var tf:TextField = new TextField();
>> tf.autoSize = TextFieldAutoSize.LEFT;
>> tf.styleSheet = ss;
>> tf.htmlText = 'A link: http://www.unfocus.com";>unFocus
>> Projects';
>> addChild(tf);
>>
>>
>> Kevin N.
>>
>>
>>
>> On 6/15/10 8:24 AM, Karim Beyrouti wrote:
>>
>>> Hi All -
>>>
>>> Wondering if there are any hacks to trigger a 'RollOver' script when
>>> hovering over a 'a href' link in an html textfield.
>>> Currently using TextEvent.LINK,to trigger links - but would like to show
>>> a tooltip on rollover (of that part of text).
>>>
>>> So far the only solution i can think of is using :
>>> TextField.getCharIndexAtPoint(x:Number, y:Number)
>>> create this  - but it seems like this could be quite long winded
>>> solution.
>>>
>>> Any other ways of achieving this?
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Karim ___
>>> 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] CameraDetection Update

2010-06-15 Thread Ktu
Hey List,

Thanks to Ben and Juan I have made an update to my CameraDetection class.

ChangeLog:
force settings dialog to open every time unless camera access is already
allowed
implement timer for checking permissions, sometimes the settings dialog does
not dispatch
some logic updates
cleaner code (only 3 magic values)

Check it out: link <http://blog.cataclysmicrewind.com/webcamdetection>

Juan Pablo Califano!
I noticed today that it was your response to a question on
stackoverflow.comthat led Ben to my class. Thank you very much I
greatly appreciate that. I
also noticed that you mentioned my class had some problem with certain
Windows laptops. Can you elaborate about when you said in the post that
you're "not sure if it covers some corner cases?" I would love to know so I
can help make it cover those cases. Thanks

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


Re: [Flashcoders] CameraDetection Update

2010-06-16 Thread Ktu
Its unfortunate there was a long break from when you ran across these
problems. I wonder if the default amount of time to check each camera is not
long enough.

A stupid thing about camera objects is that when you first try to use it,
the activity property spikes to 100 for a short period of time, then drops
down. Maybe some of the cameras you were testing had excessively long spike
periods and therefore the class did not see it as an acceptable camera.

If you have access to those laptop still, it would be great if you could try
extending the time it checks each camera. My default time is 1.5sec  maybe
try 3 as an extreme (time to check is determined by a timer.delay and
timer.repeatCount).
Example code:

var cd:CameraDetection = new CameraDetection();
cd.detectionRepeatCount = 30;
cd.addEventListener (CameraEvent.RESOLVE, onResolve);
cd.begin();

Unfortunately I don't have access to a lot of different laptops to do
testing on this class. If anyone else on the list wants to test their camera
and send me some info that would be fantastic. I know this class has a much
smaller niche but for the people who could use it this class is
indispensable.

Thanks Juan,

Ktu;

On Wed, Jun 16, 2010 at 9:24 AM, Juan Pablo Califano <
califa010.flashcod...@gmail.com> wrote:

> Hi Ktu,
>
> I told you when you shared your code in this list I'd give you some
> feedback. I ended up using it a couple of months after that and totally
> forgot about telling you how it went, so sorry about that.
>
> But yes, it worked out great for Macs, which was the problem I was trying
> to
> solve.
>
> As I mentioned in my answer in SO, the code failed to get the correct
> camera
> for some laptops. I tried it in 2 machines, one was a Toshiba, the other
> one
> I can't remember for sure, but I think it was an HP. In both cases, it was
> Windows, one was running XP, the other one was running Vista, IIRC. The
> cameras were the ones that come built into the computer.
>
> I noticed I could detect those cameras fine the "regular way", and since I
> was in a rush, I just checked if the client was running Mac or not. If Mac,
> I used your code; if not, just went with the "regular way" (read, calling
> getCamera naively). I really didn't put much though to it; it just worked
> in
> the cases I tested and since the time frame was rather limiting, I left it
> that way. So that's why I mentioned some other possible cases were it could
> fail. Not that I found them, but I didn't test thoroughly either.
>
> Anyway, thanks for your class, it was very helpful (and I apologize
> again for not giving you proper feedback at the moment, as I said I would!
> But better late than never)
>
> Cheers
> Juan Pablo Califano
>
> 2010/6/16 Ktu 
>
> > Hey List,
> >
> > Thanks to Ben and Juan I have made an update to my CameraDetection class.
> >
> > ChangeLog:
> > force settings dialog to open every time unless camera access is already
> > allowed
> > implement timer for checking permissions, sometimes the settings dialog
> > does
> > not dispatch
> > some logic updates
> > cleaner code (only 3 magic values)
> >
> > Check it out: link <http://blog.cataclysmicrewind.com/webcamdetection>
> >
> > Juan Pablo Califano!
> > I noticed today that it was your response to a question on
> > stackoverflow.comthat led Ben to my class. Thank you very much I
> > greatly appreciate that. I
> > also noticed that you mentioned my class had some problem with certain
> > Windows laptops. Can you elaborate about when you said in the post that
> > you're "not sure if it covers some corner cases?" I would love to know so
> I
> > can help make it cover those cases. Thanks
> >
> > Ktu;
> > ___
> > 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] CameraDetection Update

2010-06-16 Thread Ktu
btw. I removed all magic values.

Also, Thanks Juan for suggesting my class.

Ktu

On Wed, Jun 16, 2010 at 10:06 AM, Ktu wrote:

> Its unfortunate there was a long break from when you ran across these
> problems. I wonder if the default amount of time to check each camera is not
> long enough.
>
> A stupid thing about camera objects is that when you first try to use it,
> the activity property spikes to 100 for a short period of time, then drops
> down. Maybe some of the cameras you were testing had excessively long spike
> periods and therefore the class did not see it as an acceptable camera.
>
> If you have access to those laptop still, it would be great if you could
> try extending the time it checks each camera. My default time is 1.5sec
> maybe try 3 as an extreme (time to check is determined by a timer.delay and
> timer.repeatCount).
> Example code:
>
> var cd:CameraDetection = new CameraDetection();
> cd.detectionRepeatCount = 30;
> cd.addEventListener (CameraEvent.RESOLVE, onResolve);
> cd.begin();
>
> Unfortunately I don't have access to a lot of different laptops to do
> testing on this class. If anyone else on the list wants to test their camera
> and send me some info that would be fantastic. I know this class has a much
> smaller niche but for the people who could use it this class is
> indispensable.
>
> Thanks Juan,
>
> Ktu;
>
>
> On Wed, Jun 16, 2010 at 9:24 AM, Juan Pablo Califano <
> califa010.flashcod...@gmail.com> wrote:
>
>> Hi Ktu,
>>
>> I told you when you shared your code in this list I'd give you some
>> feedback. I ended up using it a couple of months after that and totally
>> forgot about telling you how it went, so sorry about that.
>>
>> But yes, it worked out great for Macs, which was the problem I was trying
>> to
>> solve.
>>
>> As I mentioned in my answer in SO, the code failed to get the correct
>> camera
>> for some laptops. I tried it in 2 machines, one was a Toshiba, the other
>> one
>> I can't remember for sure, but I think it was an HP. In both cases, it was
>> Windows, one was running XP, the other one was running Vista, IIRC. The
>> cameras were the ones that come built into the computer.
>>
>> I noticed I could detect those cameras fine the "regular way", and since I
>> was in a rush, I just checked if the client was running Mac or not. If
>> Mac,
>> I used your code; if not, just went with the "regular way" (read, calling
>> getCamera naively). I really didn't put much though to it; it just worked
>> in
>> the cases I tested and since the time frame was rather limiting, I left it
>> that way. So that's why I mentioned some other possible cases were it
>> could
>> fail. Not that I found them, but I didn't test thoroughly either.
>>
>> Anyway, thanks for your class, it was very helpful (and I apologize
>> again for not giving you proper feedback at the moment, as I said I would!
>> But better late than never)
>>
>> Cheers
>> Juan Pablo Califano
>>
>> 2010/6/16 Ktu 
>>
>> > Hey List,
>> >
>> > Thanks to Ben and Juan I have made an update to my CameraDetection
>> class.
>> >
>> > ChangeLog:
>> > force settings dialog to open every time unless camera access is already
>> > allowed
>> > implement timer for checking permissions, sometimes the settings dialog
>> > does
>> > not dispatch
>> > some logic updates
>> > cleaner code (only 3 magic values)
>> >
>> > Check it out: link <http://blog.cataclysmicrewind.com/webcamdetection>
>> >
>> > Juan Pablo Califano!
>> > I noticed today that it was your response to a question on
>> > stackoverflow.comthat led Ben to my class. Thank you very much I
>> > greatly appreciate that. I
>> > also noticed that you mentioned my class had some problem with certain
>> > Windows laptops. Can you elaborate about when you said in the post that
>> > you're "not sure if it covers some corner cases?" I would love to know
>> so I
>> > can help make it cover those cases. Thanks
>> >
>> > Ktu;
>> > ___
>> > 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] date modified

2010-06-17 Thread Ktu
...
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/net/FileReference.html#modificationDate

Ktu;

On Thu, Jun 17, 2010 at 1:47 PM, Lehr, Theodore
wrote:

> Is it possible to grab the date a file was modified?
>
> ___
> 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] date modified

2010-06-17 Thread Ktu
rtfm

On Thu, Jun 17, 2010 at 2:47 PM, Ktu wrote:

> ...
>
> http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/net/FileReference.html#modificationDate
>
> Ktu;
>
>
> On Thu, Jun 17, 2010 at 1:47 PM, Lehr, Theodore  > wrote:
>
>> Is it possible to grab the date a file was modified?
>>
>> ___
>> 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] Tweener still in development

2010-06-24 Thread Ktu
If you like stricter more OO code, you can try GTween from Grant Skinner.
Not quite as fast in performance as the TweenLite family.
http://www.gskinner.com/libraries/gtween/

Ktu;

On Thu, Jun 24, 2010 at 9:51 AM, Merrill, Jason <
jason.merr...@bankofamerica.com> wrote:

> Second for TweenLite and TweenMax from greensock - I would guess the
> most popular tweening engine right now.
>
>
> Jason Merrill
>
> Instructional Technology Architect
> Bank of America   Global Learning
>
> Join the Bank of America Flash Platform Community  and visit our
> Instructional Technology Design Blog
> (Note: these resources are only available for Bank of America
> associates)
>
>
>
>
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Zeh
> Fernando
> Sent: Thursday, June 24, 2010 9:47 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Tweener still in development
>
> Development stopped because, quite frankly, some of the internal design
> of the engine didn't fit that well anymore - it did too many internal
> checks for the validity of objects and properties, and performance
> suffered. Coming from an AS2 frame of mind, if you will. Rather than
> radically changing the engine internally (and breaking backwards
> compatibility), it was better to just leave it where it is and let
> people move on to other things at their own time.
>
> My own personal views of how tween engines should work changed with time
> too. Nowadays I use a much, much simpler tweening engine, with no
> 'special'
> features whatsoever. But I know that approach is not for everyone.
>
> The good thing is that all other engines follow more or less the same
> syntax, so jumping from one engine to another (TweenMax/TweenLite seem
> to be the #1 choice in that regard) is not all that complicated.
>
> Zeh
>
> On Thu, Jun 24, 2010 at 8:05 AM, allandt bik-elliott (thefieldcomic.com)
> < alla...@gmail.com> wrote:
>
> > ah wow
> >
> > tweener was the first engine i used and while i jumped to tweenmax,
> > i've been using tweener for the last year or so because the team i'm
> > in is using it. I'm quite sad to see development stop really
> >
> > thanks for the info - good luck zeh
> >
> > best
> > a
> >
> > On 24 June 2010 12:15, Paul Andrews  wrote:
> >
> > > On 24/06/2010 11:58, allandt bik-elliott (thefieldcomic.com) wrote:
> > >
> > >> hi guys
> > >>
> > >> does anyone know if tweener is still being developed as the updates
>
> > >> seem to have gone quiet for the last year(ish)?
> > >>
> > >>
> > >
> > > I used to use Tweener, but have jumped to TweenLite and family
> > >
> > >
> > >  thanks
> > >> a
> > >> ___
> > >> 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 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] Tweener still in development

2010-06-24 Thread Ktu
sorry guys I'm missing something, where is this 'between as3 demo' ?

Ktu;

On Thu, Jun 24, 2010 at 3:35 PM, Steven Sacks wrote:

> Jack, author of Greensock, has said that the Between AS3 demo is unfair
> because they purposefully used an inefficient way to tween in Greensock and
> a specifically optimized but not real world example of tweening with
> Between. You can ask him for more details.
>
> This is not in any way meant to slight the incredibly smart and talented
> authors of Between AS3.
>
> To be honest, most people aren't going to be tweening that many objects
> anyway, so it really comes down to whichever engine API and features you
> like better or need more. For most use, there's probably no difference in
> performance.
>
>
>
> On 6/24/2010 10:09 AM, allandt bik-elliott (thefieldcomic.com) wrote:
>
>> That between as3 demo literally tore my face off - i didn't think it was
>> possible to get faster than tweenlite
>>
>> On 24 Jun 2010 17:27, "Ktu"  wrote:
>>
>> If you like stricter more OO code, you can try GTween from Grant Skinner.
>> Not quite as fast in performance as the TweenLite family.
>> http://www.gskinner.com/libraries/gtween/
>>
>> Ktu;
>>
>>
>> On Thu, Jun 24, 2010 at 9:51 AM, Merrill, Jason<
>> jason.merr...@bankofamerica.com>  wrote:
>>
>>  Second...
>>>
>> ___
>> 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] ScrollRect and masking

2010-07-08 Thread Ktu
you could try positioning it before you add the 'list' to the displayList of
the container.

Ktu;

On Thu, Jul 8, 2010 at 12:49 PM, Omar Fouad  wrote:

> Hello,
>
> I'm working on some project where I have a big container Sprite and based
> on
> what I need, I add some ui inside of it. Once I add this ui, and I make
> sure
> that everything is there on its place, I align this container sprite to fir
> in the center of my stage:
>
> private var currentModule:Sprite; // the container
>
> private function updateScreen(e:MouseEvent):void {
> if(currentModule) { // when I switch to another module
>  removeChild(currentModule);
> currentModule = null; // clean it up
> }
>
> currentModule = new Sprite();
> addChild(currentModule);
> currentModule.addChild(children); //some children are added to
> currentModule
>  currentModule.x = (stage.stageWidth * 0.5) - (currentModule.width *0.5) //
> aligns horizontally
> currentModule.y = (stage.stageHeight * 0.5) - (currentModule.height *0.5)
> //
> aligns horizontally
> }
>
> Now assume I add to the currentModule, a masked list. What I mean is a
> container that contains 100 list items one below the other, and a mask that
> shows just 5 items and the mask's height is 100.
> stage alignment doesn't work properly because the currentModule height is
> not just 100 px (as the mask's height) but it is actually the real height
> that the 100 list item are occupying and so, alignment fails.
>
> I could use myMask.height, but I need to align the whole currentModule as I
> use it as a wrapper to wrap some components under the same hood.
> What should I do? I tried tracing the mc's height after using scrollRect,
> as
> people said that it would return only the visible part's height but it
> didn't happen. I traced and the same number is there as if nothing were
> masked.
> Any Ideas?
>
> Thanks in advance
> ___
> 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] FITC Excuses

2010-07-13 Thread Ktu
Hey list,

I'm trying to convince the C levels why they should drop 3k on sending two
of us to FITC. Currently, they are 'on the fence.' They need convincing that
this event offers more than what we can get locally.

So, who's going? Why? How did you convince your superiors? What are you
looking forward to and why?

I'm personally excited about the Android content, the talk on the evolution
of flash on devices, resource management, mobile performance, and the Flex
intro for Flash Purists

-- 
Ktu;

The information contained
in this message may be
privileged and/or confidential.
If you are NOT
the intended recipient,
please notify the sender
immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FITC Excuses

2010-07-13 Thread Ktu
true dat Matt.

Hopefully that will change soon.



On Tue, Jul 13, 2010 at 4:14 PM, Matt S.  wrote:

> Consider yourself blessed to be working somewhere where you can worry
> about convincing the C Levels of the value of a Flash *Conference*.
> Alot of us are spending a ridiculous amount of time trying to convince
> them of the continuing value of *Flash*, period. ;)
>
> .m
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FITC Excuses

2010-07-22 Thread Ktu
Can I participate in pong using a brick as my controller?

Sigh...




On Wed, Jul 21, 2010 at 6:16 PM, co...@moock.org  wrote:

> you could tell them you'd get to be part of the world's first ever
> 600-player game of pong!
>
> http://www.moock.org/blog/archives/000302.html
>
> this might help too:
> http://www.fitc.ca/participate/SF_convince_your_boss.zip
>
> : )
>
> if you've never been to an fitc before, i think you will be shocked at the
> amount of inspiration and knowledge you get out of it, and the number of
> connections you make with presenters and other attendees. it's like a
> condensed year's worth of research and professional development in a 3-day
> bottle.
>
> imho,
> colin
>
>
>
> Ktu wrote:
>
>> Hey list,
>>
>> I'm trying to convince the C levels why they should drop 3k on sending two
>> of us to FITC. Currently, they are 'on the fence.' They need convincing
>> that
>> this event offers more than what we can get locally.
>>
>> So, who's going? Why? How did you convince your superiors? What are you
>> looking forward to and why?
>>
>> I'm personally excited about the Android content, the talk on the
>> evolution
>> of flash on devices, resource management, mobile performance, and the Flex
>> intro for Flash Purists
>>
>>  ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FITC Excuses

2010-07-29 Thread Ktu
I am going to FITC. I'm pretty styked. =]
Also turns out I may have something better than a brick to play pong with
too.

Hope to see some of you there.


On Fri, Jul 23, 2010 at 2:52 PM, co...@moock.org  wrote:

> if your brick can send dtmf, yup!
>
> by the way, for the record, this will *not* be the world's first ever
> massively multiplayer, on-location game of pong.
>
> it turns out that at SIGGRAPH in 1991, loren carpenter presented
> massively multiplayer pong to an audience of 5000 using an
> object-recognition system called cinematrix. the audience used painted
> wooden sticks as controllers.
>
> http://stage.itp.nyu.edu/history/timeline/cinematrix.html
> http://www.cinematrix.com/whatis.html
>
> formal retraction here:
>
> http://moock.org/pipermail/moock-updates/2010-July/63.html
>
> sorry for the confusion,
> colin
>
>
> Ktu wrote:
>
>> Can I participate in pong using a brick as my controller?
>>
>> Sigh...
>>
>>
>>
>>
>> On Wed, Jul 21, 2010 at 6:16 PM, co...@moock.org  wrote:
>>
>>  you could tell them you'd get to be part of the world's first ever
>>> 600-player game of pong!
>>>
>>> http://www.moock.org/blog/archives/000302.html
>>>
>>> this might help too:
>>> http://www.fitc.ca/participate/SF_convince_your_boss.zip
>>>
>>> : )
>>>
>>> if you've never been to an fitc before, i think you will be shocked at
>>> the
>>> amount of inspiration and knowledge you get out of it, and the number of
>>> connections you make with presenters and other attendees. it's like a
>>> condensed year's worth of research and professional development in a
>>> 3-day
>>> bottle.
>>>
>>> imho,
>>> colin
>>>
>>>
>>>
>>> Ktu wrote:
>>>
>>>  Hey list,
>>>>
>>>> I'm trying to convince the C levels why they should drop 3k on sending
>>>> two
>>>> of us to FITC. Currently, they are 'on the fence.' They need convincing
>>>> that
>>>> this event offers more than what we can get locally.
>>>>
>>>> So, who's going? Why? How did you convince your superiors? What are you
>>>> looking forward to and why?
>>>>
>>>> I'm personally excited about the Android content, the talk on the
>>>> evolution
>>>> of flash on devices, resource management, mobile performance, and the
>>>> Flex
>>>> intro for Flash Purists
>>>>
>>>>  ___
>>>>
>>> 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
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Could this be done more elegant.

2010-08-13 Thread Ktu
This doesn't change the way it works, but you could rewrite the addValue
stuff to this:

buffer += (fps >= 45) ? 1 : -1;



On Fri, Aug 13, 2010 at 4:45 AM, Jiri  wrote:

> Thanx for the answer, I am on a project where the whole thing is allready
> set up. The quality is now set to BEST as soon as the FPS goes under 30 (i
> used 45 in my example), but on fast machine this results in very short
> graphical glitches, because it is usually only 1 or 2 frames where the FPS
> is below 30.
> I wanted to prevent this and make the profiling a bit better. Not toggle
> all the time, but just wait a bit before doing the call.
>
> So it is not so much about the execution based on EnterFrame but more on
> how to write the function a bit cleaner.
>
> Jiri
>
>
> On 13-08-10 10:29, Henrik Andersson wrote:
>
>> I use a different event than what you are most likely using. I use the
>> Render event. It is a bit more effort since you have to request it again
>> and again, but it is more accurate for the rendered fps.
>>
>> It differs from the enter frame event in that it is not dispatched when
>> the player is skipping frames.
>> ___
>> 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
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Link text indexes in a TextField

2010-08-31 Thread Ktu
so whats your solution?

On Tue, Aug 31, 2010 at 9:42 AM, Andrew Murphy  wrote:

> Thank you, but I came up with a solution. :)
>
>  --
> Andrew Murphy
> Interactive Media Developer
> amur...@delvinia.com
>
> Delvinia
> 370 King Street West, 5th Floor, Box 4
> Toronto Canada M5V 1J9
> P (416) 364-1455 ext. 232
> F (416) 364-9830
> W www.delvinia.com
>
>
> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karim
> Beyrouti
> Sent: August 31, 2010 05:37 am
> To: Flash Coders List
> Subject: Re: [Flashcoders] Link text indexes in a TextField
>
>
> I have textfield link detection in this class -
>
>
>
> https://code.google.com/p/kurstcode/source/browse/trunk/libs/com/kurst/utils
> /TextFieldUtils.as
>
> using it for link roll-over / roll-out events. And I think it could be
> extended to get the link's start/end position.
> Have a look at the 'detectMouseOver' function - could be a good starting
> point...
>
> - karim
>
> On 30 Aug 2010, at 19:47, Andrew Murphy wrote:
>
> > Hello. :)
> >
> > Thank you, but I think that will give me the link's text from within the
> > "htmlText" property of the TextField.
> >
> >
> > What I need are the beginning and ending indexes of the link within the
> > "text" property of the TextField.  That is, after the HTML has been
> rendered
> > into the displayed text.
> >
> > I've thought of finding the index of the TextEvent's "text" property (ie:
> > "block1") within the "htmlText" property of the TextField and using that
> to
> > determine the indexes, but those indexes would be relative to the
> > TextField's "htmlText" property, rather than it's "text" property.
> >
> >
> >
> > --
> > Andrew Murphy
> > Interactive Media Developer
> > amur...@delvinia.com
> >
> > Delvinia
> > 370 King Street West, 5th Floor, Box 4
> > Toronto Canada M5V 1J9
> > P (416) 364-1455 ext. 232
> > F (416) 364-9830
> > W www.delvinia.com
> >
> >
> > -Original Message-
> > From: flashcoders-boun...@chattyfig.figleaf.com
> > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan
> > Mynarcik
> > Sent: August 30, 2010 14:35 pm
> > To: Flash Coders List
> > Subject: Re: [Flashcoders] Link text indexes in a TextField
> >
> > You will have to cull out what you want:
> >
> > **Psuedo Code**
> >
> > var stuff:String = "[a href="event:block1"]dolor sit[/a]";
> >
> > stuff.substr(stuff.indexOf("[a href="event:block1"]"),
> > stuff.indexOf("[/a]"));
> >
> >
> >
> > Nathan Mynarcik
> > nat...@mynarcik.com
> > 254.749.2525
> > www.mynarcik.com
> >
> >
> > On Mon, Aug 30, 2010 at 1:46 PM, Andrew Murphy 
> wrote:
> >
> >> Hi. :)
> >>
> >> Does anyone know of a way to get the beginning and ending index of a
> link
> >> within a TextField?
> >>
> >> I want the indexes of the beginning and ending of the text that makes up
> >> the
> >> link.  For example if I pass the following HTML text into the TextField:
> >>
> >>
> >>   [p]Lorem ipsum [a href="event:block1"]dolor sit[/a] amet.[/p]
> >>
> >>
> >> What I want is the beginning and ending indexes of the "dolor sit" text
> >> when
> >> the user clicks on it.  The TextEvent.LINK event passes out the value of
> >> the
> >> "href" within the link text (ie: "block1"), which isn't terribly useful
> in
> >> this case.
> >>
> >>
> >>
> >> ( ps:  I used square brackets in the example HTML text rather than angle
> >> brackets to try avoiding issues with the list's mailer, which doesn't
> like
> >> HTML code in emails. )
> >>
> >>
> >> --
> >> Andrew Murphy
> >> Interactive Media Developer
> >> amur...@delvinia.com
> >>
> >> Delvinia
> >> 370 King Street West, 5th Floor, Box 4
> >> Toronto Canada M5V 1J9
> >> P (416) 364-1455 ext. 232
> >> F (416) 364-9830
> >> W www.delvinia.com
> >>
> >>
> >> _

Re: [Flashcoders] Apple changes their guidelines

2010-09-09 Thread Ktu
It seems like everyone is concerned about the details of getting Flash on
iDrones.
Does this statement by Apple make anyone more upset with them?

On Thu, Sep 9, 2010 at 12:47 PM, allandt bik-elliott (thefieldcomic.com) <
alla...@gmail.com> wrote:

> the downloaded code thing prevents oracle from creating a jvm and adobe
> from
> creating flash plugin although why they need it as it's already in their
> eula
>
> a
>
> On 9 September 2010 17:27, Kurt Dommermuth 
> wrote:
>
> > Exactly.  I don't think XML would be considered code, but they could
> > justify
> > anything they want.
> >
> > All in all, I'm pretty damn excited.  Personally I was crushed when Apple
> > blocked CS5 and unfortunately for Adobe I couldn't justify an upgrade.
>  Now
> > I can.  I'm sure I'm not alone.  I bet Adobe's sales will be up quite a
> bit
> > in the coming weeks.
> >
> > Now that Apple seems to be making rational business decisions it makes me
> > think that flash players will be on their mobile devices soon too.  Maybe
> > within a year.
> >
> >
> >
> > On Thu, Sep 9, 2010 at 12:04 PM, Nathan Mynarcik  > >wrote:
> >
> > > I understand.
> > >
> > > I have slight concerns about that statement too.  And the fact that
> it's
> > to
> > > Apple's discretion on what they really mean...
> > >
> > > For example: Can we not access XML data stored on the web from our
> Apps?
> > >
> > > Nathan Mynarcik
> > > nat...@mynarcik.com
> > > 254.749.2525
> > > www.mynarcik.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
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Designing for multiple screen sizes - and input types

2010-10-06 Thread Ktu
flash.system.Capabilities will get you started

On Wed, Oct 6, 2010 at 1:16 PM, Kevin Newman  wrote:

>  The more I dive into mobile design and development, the more I realize
> that the distinction between mobile and desktop has less to do with screen
> size, and a great deal more to do with input type.
>
> On a mobile device - even a big screen one like an iPad - touch interface
> means things need to (and can) work differently than on the desktop with a
> mouse and scrollwheel (or cursor/trackpad).
>
> The question - is there a way to detect interface method in addition to
> screensize and ppi?
>
> I need to tailor certain things based on the answer to that query.
>
> Kevin N.
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Designing for multiple screen sizes - and input types

2010-10-06 Thread Ktu
The Capabilities class tells you if there is a touch screen.
If there is, turn on touch screen interfacing. I'm not sure I understand the
issue (or workaround?)
If (Capabilities.touchscreenType != TouchscreenType.NONE) {
//addEventListeners and events for touchscreen usability
}
?

On Wed, Oct 6, 2010 at 2:02 PM, Kevin Newman  wrote:

>  I was hoping for a flag I could check in my setup phase, but that'll be a
> good workaround.
>
> Kevin N.
>
>
>
> On 10/6/10 1:50 PM, Tom Gooding wrote:
>
>> I thought there were TouchEvents for mobile - presumably you could look
>> for them getting fired somewhere and switch modes on that?
>>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Designing for multiple screen sizes - and input types

2010-10-06 Thread Ktu
also, flash.ui.MultiTouch


On Wed, Oct 6, 2010 at 2:46 PM, Ktu  wrote:

> The Capabilities class tells you if there is a touch screen.
> If there is, turn on touch screen interfacing. I'm not sure I understand
> the issue (or workaround?)
> If (Capabilities.touchscreenType != TouchscreenType.NONE) {
> //addEventListeners and events for touchscreen usability
> }
> ?
>
>
> On Wed, Oct 6, 2010 at 2:02 PM, Kevin Newman  wrote:
>
>>  I was hoping for a flag I could check in my setup phase, but that'll be a
>> good workaround.
>>
>> Kevin N.
>>
>>
>>
>> On 10/6/10 1:50 PM, Tom Gooding wrote:
>>
>>> I thought there were TouchEvents for mobile - presumably you could look
>>> for them getting fired somewhere and switch modes on that?
>>>
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
>
>
> --
> Ktu;
>
> The information contained in this message may be privileged and/or
> confidential. If you are NOT the intended recipient, please notify the
> sender immediately and destroy this message.
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread Ktu
try using describeType() to find out whats in the class and if the method
has been compiled

pEvent.target is a ContentLoaderInfo object right? You are using a Loader
object to load the swf right?

if so,

import flash.utils.describeType;

var swfContent:Object = LoaderInfo(pEvent.target).content;
trace(describeType(swfContent));


not tested, hope it helps
Ktu


On Wed, Nov 10, 2010 at 1:22 PM, Kerry Thompson wrote:

> Keith Reinfeld wrote:
>
>
> > Have you tried calling the static function indirectly?
> >
> > // In the swf you are loading
> > public function callInitAssets():void{
> >trace("\nLoadee:: callInitAssets() called");
> >initAssets();
> > }
> >
> > // In the swf you are loading into
> > private function handleLoadComplete(e:Event):void{
> >_assetLib = e.target.loader.contentLoaderInfo.content as
> MovieClip;
> >trace("_assetLib =",_assetLib);
> >_assetLib.callInitAssets();
> > }
>
>
> Thanks, Keith. I'll try that.
>
> And thanks, Juan and John. I'll try some things, but at the moment I'm
> leaning towards John's suggestion that the method isn't being compiled into
> the class. I've looked at the class in the debugger, and I can see all the
> public vars, but not the function. Juan, I'm assuming this is equivalent to
> using describe as you suggested.
>
> I'll try adding a call to the method in the class's constructor and see
> what
> happens. I'll let you know what I find out.
>
> Cordially,
>
> Kerry Thompson
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Calling a Static Function

2010-11-10 Thread Ktu
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.html#describeType%28%29

"If the value parameter is an instance of a type, the returned XML object
includes all the instance properties of that type, but does not include any
static properties"

"The instance properties are nested inside a tag named  to
distinguish them from the static properties." - So Static properties live
outside it ;)

Just learning this myself. Maybe that was the issue. My suggestion of
.content property is an instance of the class. Try using your var
AssetLibrary:Class; as the parameter for describeType().

If it still doesn't show up, you should seriously question whether the
method was compiled. First though, try workarounds to call the method such
as Keith's or Juan's suggestion or casting the content as a dynamic object
and calling the method.

var AssetLibrary:Object LoaderInfo(pEvent.target).content;
try {
AssetLibrary.initAssets(); //<--the error is here
} catch (e:ArgumentError) {
trace (e);
}

just more thoughts. hope it helps...

On Wed, Nov 10, 2010 at 3:17 PM, Kerry Thompson wrote:

> Ktu wrote:
>
> try using describeType() to find out whats in the class and if the method
> > has been compiled
> >
> > pEvent.target is a ContentLoaderInfo object right? You are using a Loader
> > object to load the swf right?
> >
>
> Yes, pEvent.target is a ContentLoaderInfo object. I'm downloading the swf
> with this:
>
>private function loadSwf():void
>{
>var urlRequest:URLRequest = new URLRequest(url);
>loader = new Loader();
>loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
> handleLoadComplete);
>loader.load(urlRequest);
>}
>
> and, in the handleLoadComplete handler, I'm getting the class with this:
>
> pEvent.target.applicationDomain.getDefinition("AssetLibrary") as Class;
>
> describeType() gives me some XML, but I don't see any of my public vars or
> functions in it.
>
> Now I'm really confused, because I can see all my public vars in the
> debugger, but not the public function. In the XML produced by
> describeType(), I don't see much of anything I'm expecting. The only
> methods
> it lists are the inherited public events.
>
> Cordially,
>
> Kerry Thompson
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Calling a Static Function

2010-11-15 Thread Ktu
I'm curious if you solved the problem Kerry. Also, if the describeType
helped you at all, and what your solution was. I'm doing a lot of swf
loading nowadays and I will undoubtedly run into this same issue you are
having/had.

thanks
Ktu

On Wed, Nov 10, 2010 at 9:00 PM, Ktu wrote:

>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/package.html#describeType%28%29
>
> "If the value parameter is an instance of a type, the returned XML object
> includes all the instance properties of that type, but does not include any
> static properties"
>
> "The instance properties are nested inside a tag named  to
> distinguish them from the static properties." - So Static properties live
> outside it ;)
>
> Just learning this myself. Maybe that was the issue. My suggestion of
> .content property is an instance of the class. Try using your var
> AssetLibrary:Class; as the parameter for describeType().
>
> If it still doesn't show up, you should seriously question whether the
> method was compiled. First though, try workarounds to call the method such
> as Keith's or Juan's suggestion or casting the content as a dynamic object
> and calling the method.
>
> var AssetLibrary:Object LoaderInfo(pEvent.target).content;
>
> try {
> AssetLibrary.initAssets(); //<--the error is here
> } catch (e:ArgumentError) {
> trace (e);
> }
>
> just more thoughts. hope it helps...
>
>
> On Wed, Nov 10, 2010 at 3:17 PM, Kerry Thompson 
> wrote:
>
>> Ktu wrote:
>>
>> try using describeType() to find out whats in the class and if the method
>> > has been compiled
>> >
>> > pEvent.target is a ContentLoaderInfo object right? You are using a
>> Loader
>> > object to load the swf right?
>> >
>>
>> Yes, pEvent.target is a ContentLoaderInfo object. I'm downloading the swf
>> with this:
>>
>>private function loadSwf():void
>>{
>>var urlRequest:URLRequest = new URLRequest(url);
>>loader = new Loader();
>>loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
>> handleLoadComplete);
>>loader.load(urlRequest);
>>}
>>
>> and, in the handleLoadComplete handler, I'm getting the class with this:
>>
>> pEvent.target.applicationDomain.getDefinition("AssetLibrary") as Class;
>>
>> describeType() gives me some XML, but I don't see any of my public vars or
>> functions in it.
>>
>> Now I'm really confused, because I can see all my public vars in the
>> debugger, but not the public function. In the XML produced by
>> describeType(), I don't see much of anything I'm expecting. The only
>> methods
>> it lists are the inherited public events.
>>
>> Cordially,
>>
>> Kerry Thompson
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
>
>
> --
> Ktu;
>
> The information contained in this message may be privileged and/or
> confidential. If you are NOT the intended recipient, please notify the
> sender immediately and destroy this message.
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-06 Thread Ktu
I know a solution may already be found but this was my first thought and I
am curious how any of you feel about switch (true) for this problem

switch (true) {
   case loadedDisplayObject is MovieClip:
   case loadedDisplayObject is Bitmap:
}

Is switch (true) just bad practice? and does 'is' not work in this case?
Anyone want to stab at it?

Ktu

On Sat, Dec 4, 2010 at 11:26 PM, Micky Hulse wrote:

> On Thu, Dec 2, 2010 at 3:17 AM, Karim Beyrouti  wrote:
> > Hopefully the line breaks here wont be too bad, pasting the code:
>
> Very nice!!! Many thanks Karim
>
> I will test it out and let you know how it goes. :)
>
> Have an excellent day/night!
>
> Cheers,
> Micky
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 / OOP training

2011-02-17 Thread Ktu
I spent quite some time looking for the same type of training a while back.
It simply does not exist, or is hidden in the depths of atlantis.

The problem is that all the education programs are designed for beginners.
And even if you go to one (which I did), the trainer can only help you so
much because he has the whole class to attend to. So while the trainer may
be able to point you in more advanced directions, he cannot devote enough
time to cover the concepts you need. Maybe the intro to AS3 will help, but
not in the way you are looking (probably).

One way to learn is to take it on yourself. Get the motivation to explore
the new native classes. Learn that nasty display architecture. Never let
yourself settle for mediocrity and you will continue to learn and grow. If
you force yourself upon OOP, it may stop you in your tracks. Get high level
with the concepts and patterns, and then when you find yourself in a
situation that could implement the pattern, try it out. Don't be afraid to
fail.

The other way, is to incorporate the above mentioned solution with the
addition of a mentor. Collaboration increase growth exponentially when
coupled with the motivation to do so.

books:
Learning Actionscript 3.0 - Shupe & Rosser
Essential Actionscript 3.0 - Moock

my 2cents.

ktu


On Thu, Feb 17, 2011 at 11:32 AM, Eric Dolecki  wrote:

> That is a good one
>
> Sent from my iPhone
>
> On Feb 17, 2011, at 11:13 AM, Sam Brown <4sambr...@gmail.com> wrote:
>
> > Although it's not training, I found this book very helpful:
> >
> http://www.amazon.com/Object-Oriented-ActionScript-3-0-Todd-Yard/dp/1590598458
> >
> > <
> http://www.amazon.com/Object-Oriented-ActionScript-3-0-Todd-Yard/dp/1590598458
> >It
> > has detailed explanations and examples to work through
> >
> > On Thu, Feb 17, 2011 at 9:48 AM, Sheehan, Conor  >wrote:
> >
> >> Hi List,
> >>
> >> I'm looking for a quality AS3 / OOP training program.  I'm
> (pathetically)
> >> still writing everything in AS2, and have only a vague understanding of
> OOP.
> >> In my experience it's difficult to find training suitable for somebody
> at
> >> my level - not a newbie, but far from an expert.  Anybody have any
> >> suggestions?  I'm thinking a 3 to 5 day program, and I'm in the Greater
> >> Boston area, so preferably around here, but I can travel if necessary.
> >>
> >> Thanks very much,
> >>
> >> Conor
> >>
> >> ___
> >> 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
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Automatic quality toggle

2011-02-25 Thread Ktu
I don't have personal experience with this problem, but I did come up with
some questions and ideas that might further your search.


First off, it sounds like to me the requirement is to have a seamless
playback of animations. No jitter, frameskips, or lag times. You are right,
its quite the complex problem. The elastic
racetrack<http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/>comes
to mind when you explain your problem. The linked article has lots of
information and great comments. Also, a link to Grant Skinner's look on
optimization <http://gskinner.com/talks/quick/> might help. Thus, I think
the solution for you will have to include not only graphics rendering
solutions, but logic and code execution solutions as well.

My first thought was to consider the framerate you are aiming for. This will
drastically effect the solution. A consideration of the human eye framerate
may help you determine the optimal framerate for your program. With the
framerate in mind, you could aim for a higher framerate, and drop a bit if
frameskips happen, or not at all because if it's high enough you may not
notice visually. However, this solution will only look fine if your
animations are time based and not frame based. I think the framerate
solution is directly related to the understanding of the elastic racetrack.

Graphical enhancements could be turned off if noticing a problem with
rendering like you said, removing filters or other 'nice to haves' for the
graphics.

Optimized algorithms could greatly benefit the visual rendering. Sometimes
that means using 'hacks' to gain performance.

Maybe multiple levels of hit detection for a game? If the machine is too
slow, it could use a different type of hit detection. But to answer my own
question, that would change the gameplay and create problems with high
scoring or competition.



So all of those may be things you can do to make performance better, they do
not address the main issue which is, how do I know when to change things if
they are not good enough.

For this, there may be solution in writing a tool that would calculate how
long each section of each slice of each frame is taking. Using the elastic
racetrack article as a reference, one might be able to determine how to
adjust certain aspects of the application to smooth out the time it takes
for each section to finish.

Maybe you can accomplish most of this task by listening to ENTER_FRAME,
RENDER, EXIT_FRAME, FRAME_CONSTRUCTED events to calculate the timing of
things. Then, when numbers pass specified thresholds, you could make changes
to the appropriate sections.

For example, you define a matrix of complexity for each 'section' of your
program. These matrix define how much time each aspect of the racetrack can
consume. So, during intense gameplay, maybe you want to allow more time for
code execution and less on rendering. Then, if your thresholds are
surpassed, an event could be fired and you could respond by, lowering the
quality of the graphics, or turning off filters etc...

To conclude, I wonder if the cost is worth the benefit.

Ktu

On Fri, Feb 25, 2011 at 6:19 AM, Henrik Andersson wrote:

> I have been thinking a lot about the problem of optimizing animation
> playback. I know that some people here are unfamiliar with working with real
> animations and have been doing applications instead. Please consider this
> aimed at real animations like in movies and games.
>
> While the best solution is to simply make the animation simpler so that it
> is easier to render, that is far from an easy, or even possible solution.
>
> Instead the idea is to dynamically adjust the rendering quality. But as I
> will explain, it is far from a simple task.
>
> Please excuse any "too easy for me" explanations, I aim for a post that any
> developer can read and understand.
>
>
> As most of you know the Flash player have three main rendering quality
> options, low, medium and high quality. There is also the option to go for
> best, but that is largely the same as high.
>
> What the rendering quality control mainly controls is the subpixel
> rendering. When flash detects that a shape has an edge on a non integer
> position it will do subpixel rendering for that pixel.
>
> The subpixel rendering is surprisingly simple, flash just scales up the
> area (factor 2 for medium, 4 for high) and renders the new pixels. It then
> takes the average value of the pixels and uses that as the value of the real
> pixel. Low quality skips subpixel rendering completely.
>
> Now, this does change the rendering cost quite a lot. As such, it is the
> stock option for controlling rendering cost in the player.
>
>
> What some people may not know is that the Flash renderer is smart enough to
> skip frames. What this means is that if it detects that i

Re: [Flashcoders] Automatic quality toggle

2011-02-25 Thread Ktu
"But what can you do when you have exhausted your options to edit the
content? You only got the quality setting left to use." - maybe then you've
got to re-evaluate what you are doing or use the quality settings.

" How do you decide on the thresholds? Can you successfully predict when it
is worth to change the quality?" - Trial and error will probably be the only
way,... ?

" I am looking for a generic solution to the issue of the graphics taking
too long to draw." - Your solution will have to be based off of your
requirements. A totally generic solution probably won't be actualized until
more specific solutions are gathered, anaylized and merged.

If your render phase of the elastic racetrack is consuming more than the
entire frame/slice, then I think you will have a serious problem on your
hands.

 If you share your requirements, maybe an appropriate solution could be
determined.

On Fri, Feb 25, 2011 at 12:19 PM, Henrik Andersson wrote:

> You bring up a lot of valid points, but you fail to focus on the main
> concern here, how to deal with the graphics being the most heavy part.
>
> Please keep in mind that I am trying to focus on how to deal with
> animations that can't be simplified much. I am looking for a generic
> solution to the issue of the graphics taking too long to draw.
>
> Reducing complexity is of course a good idea. And yeah, filters are
> expensive and provide little benefit most of the time.
>
> But what can you do when you have exhausted your options to edit the
> content? You only got the quality setting left to use.
>
>
> With that said, you bring up some important points about how much frameskip
> can be tolerated.
>
> Also, thanks for reiterating my own points about how to capture performance
> statics.
>
> That part is easy. But it is what to do with the gathered data that I worry
> about. How do you decide on the thresholds? Can you successfully predict
> when it is worth to change the quality?
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] htmlText src

2011-03-10 Thread Ktu
Hey List,

I've been googling for an hour and haven't found a solution. My google fu is
weak, I concede defeat.

Pure AS3 AIR
No Library
No FLA


I am dynamically building a TextField. In it I would like to place some
instances of Sprites. What should the src attribute of the  tag be if I
want it to instantiate an object?

ex. 

If you can't do it, are there any workarounds?

thanks guys.

-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] htmlText src

2011-03-10 Thread Ktu
Thanks for the responses Karl. Yes, I meant displaying html inside Flash.

I am using Keith Peters' tiny components.
I want to instantiate an instance of the NumericStepper inside an instance
of a TextField. I know that you can use htmlText with an  tag to place
Library Items, image files and external SWF, but I want to instantiate just
a random class in there (in this case NumericStepper).

vat txt:TextField = new TextField ();
txt.htmlText = "age: "

does that make more sense?



On Thu, Mar 10, 2011 at 10:32 PM, Karl DeSaulniers wrote:

> Or Are you talking about displaying HTML in flash?
> I did that once in AS2. Don't know about AIR, hopefully it is much better
> at it than the flash player.
>
> Best,
> Karl
>
>
> On Mar 10, 2011, at 9:25 PM, Karl DeSaulniers wrote:
>
>  You probably want to use flashVars to talk with some javascript that then
>> calls the image and that, you put as the src?
>>
>> Best,
>> Karl
>>
>> On Mar 10, 2011, at 9:10 PM, Ktu wrote:
>>
>>  Hey List,
>>>
>>> I've been googling for an hour and haven't found a solution. My google fu
>>> is
>>> weak, I concede defeat.
>>>
>>> Pure AS3 AIR
>>> No Library
>>> No FLA
>>>
>>>
>>> I am dynamically building a TextField. In it I would like to place some
>>> instances of Sprites. What should the src attribute of the  tag be
>>> if I
>>> want it to instantiate an object?
>>>
>>> ex. 
>>>
>>> If you can't do it, are there any workarounds?
>>>
>>> thanks guys.
>>>
>>> --
>>> Ktu;
>>>
>>> The information contained in this message may be privileged and/or
>>> confidential. If you are NOT the intended recipient, please notify the
>>> sender immediately and destroy this message.
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] htmlText src

2011-03-10 Thread Ktu
well, I'm not trying to embed an image. I want to use a MovieClip.

maybe this 'ideal scenario' will help

var numStep:NumericStepper = new NumericStepper ();
var txt:TextField = new TextField ();
txt.htmlText = "age: ";

(I know that will not work. I am just trying to get the point across that I
don't want an image or linkage id, but I want an instance of class)


On Thu, Mar 10, 2011 at 10:56 PM, Karl DeSaulniers wrote:

> Hi Ktu,
> I believe you want it to be a function return.
>
> txt.htmlText = "age: "
>
> getNumericStepper could be a call to a createimage php file for example.
> when returning the image, php will send the data and content type of the
> image and the  tag interprets it as an image.
>
> like ...
>
> return imagepng($image); //the last line in my createimage.php file
>
> I did this with a captcha box I made.
> Made one in flash and html. both call on that php file for the image.
> That way if a user was viewing with flash or a non-flash user, both had to
> submit this captcha to register for instance.
>
> Hope im not too off.  *:)
>
> Best,
> Karl
>
>
>
> On Mar 10, 2011, at 9:41 PM, Ktu wrote:
>
>  Thanks for the responses Karl. Yes, I meant displaying html inside Flash.
>>
>> I am using Keith Peters' tiny components.
>> I want to instantiate an instance of the NumericStepper inside an instance
>> of a TextField. I know that you can use htmlText with an  tag to place
>> Library Items, image files and external SWF, but I want to instantiate just
>> a random class in there (in this case NumericStepper).
>>
>> vat txt:TextField = new TextField ();
>> txt.htmlText = "age: "
>>
>> does that make more sense?
>>
>>
>>
>> On Thu, Mar 10, 2011 at 10:32 PM, Karl DeSaulniers 
>> wrote:
>> Or Are you talking about displaying HTML in flash?
>> I did that once in AS2. Don't know about AIR, hopefully it is much better
>> at it than the flash player.
>>
>> Best,
>> Karl
>>
>>
>> On Mar 10, 2011, at 9:25 PM, Karl DeSaulniers wrote:
>>
>> You probably want to use flashVars to talk with some javascript that then
>> calls the image and that, you put as the src?
>>
>> Best,
>> Karl
>>
>> On Mar 10, 2011, at 9:10 PM, Ktu wrote:
>>
>> Hey List,
>>
>> I've been googling for an hour and haven't found a solution. My google fu
>> is
>> weak, I concede defeat.
>>
>> Pure AS3 AIR
>> No Library
>> No FLA
>>
>>
>> I am dynamically building a TextField. In it I would like to place some
>> instances of Sprites. What should the src attribute of the  tag be if
>> I
>> want it to instantiate an object?
>>
>> ex. 
>>
>> If you can't do it, are there any workarounds?
>>
>> thanks guys.
>>
>> --
>> Ktu;
>>
>> The information contained in this message may be privileged and/or
>> confidential. If you are NOT the intended recipient, please notify the
>> sender immediately and destroy this message.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>
>> --
>> Ktu;
>>
>> The information contained in this message may be privileged and/or
>> confidential. If you are NOT the intended recipient, please notify the
>> sender immediately and destroy this message.
>>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] htmlText src

2011-03-11 Thread Ktu
I appreciate your responses Karl, but I think you're still a bit off.

The  in htmlText can have a source of a library item, and an
interactive MovieClip (say checkbox) can be inserted into the textfield and
work. I want to put an interactive Sprite into the textfield, but not
through a library linkage id, but through any arbitrary class reference.

Has no one ever tried doing this?

On Thu, Mar 10, 2011 at 11:27 PM, Karl DeSaulniers wrote:

> Ah I see.
>
> Something along these lines?
>
>
> http://stackoverflow.com/questions/203969/how-do-i-get-from-an-instance-of-a-class-to-a-class-object-in-actionscript-3
>
> I googled:: AS3 return instance as image
>
> HTH,
> Best,
> Karl
>
>
>
> On Mar 10, 2011, at 10:08 PM, Ktu wrote:
>
>  well, I'm not trying to embed an image. I want to use a MovieClip.
>>
>> maybe this 'ideal scenario' will help
>>
>> var numStep:NumericStepper = new NumericStepper ();
>> var txt:TextField = new TextField ();
>> txt.htmlText = "age: ";
>>
>> (I know that will not work. I am just trying to get the point across that
>> I don't want an image or linkage id, but I want an instance of class)
>>
>>
>> On Thu, Mar 10, 2011 at 10:56 PM, Karl DeSaulniers 
>> wrote:
>> Hi Ktu,
>> I believe you want it to be a function return.
>>
>> txt.htmlText = "age: "
>>
>> getNumericStepper could be a call to a createimage php file for example.
>> when returning the image, php will send the data and content type of the
>> image and the  tag interprets it as an image.
>>
>> like ...
>>
>> return imagepng($image); //the last line in my createimage.php file
>>
>> I did this with a captcha box I made.
>> Made one in flash and html. both call on that php file for the image.
>> That way if a user was viewing with flash or a non-flash user, both had to
>> submit this captcha to register for instance.
>>
>> Hope im not too off.  *:)
>>
>> Best,
>> Karl
>>
>>
>>
>> On Mar 10, 2011, at 9:41 PM, Ktu wrote:
>>
>> Thanks for the responses Karl. Yes, I meant displaying html inside Flash.
>>
>> I am using Keith Peters' tiny components.
>> I want to instantiate an instance of the NumericStepper inside an instance
>> of a TextField. I know that you can use htmlText with an  tag to place
>> Library Items, image files and external SWF, but I want to instantiate just
>> a random class in there (in this case NumericStepper).
>>
>> vat txt:TextField = new TextField ();
>> txt.htmlText = "age: "
>>
>> does that make more sense?
>>
>>
>>
>> On Thu, Mar 10, 2011 at 10:32 PM, Karl DeSaulniers 
>> wrote:
>> Or Are you talking about displaying HTML in flash?
>> I did that once in AS2. Don't know about AIR, hopefully it is much better
>> at it than the flash player.
>>
>> Best,
>> Karl
>>
>>
>> On Mar 10, 2011, at 9:25 PM, Karl DeSaulniers wrote:
>>
>> You probably want to use flashVars to talk with some javascript that then
>> calls the image and that, you put as the src?
>>
>> Best,
>> Karl
>>
>> On Mar 10, 2011, at 9:10 PM, Ktu wrote:
>>
>> Hey List,
>>
>> I've been googling for an hour and haven't found a solution. My google fu
>> is
>> weak, I concede defeat.
>>
>> Pure AS3 AIR
>> No Library
>> No FLA
>>
>>
>> I am dynamically building a TextField. In it I would like to place some
>> instances of Sprites. What should the src attribute of the  tag be if
>> I
>> want it to instantiate an object?
>>
>> ex. 
>>
>> If you can't do it, are there any workarounds?
>>
>> thanks guys.
>>
>> --
>> Ktu;
>>
>> The information contained in this message may be privileged and/or
>> confidential. If you are NOT the intended recipient, please notify the
>> sender immediately and destroy this message.
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>>
>> 

Re: [Flashcoders] RegExp Help

2011-03-11 Thread Ktu
I just plugged it into RegExr <http://www.regexr.com> and I can't make sense
of it.

Try using that tool to build it. It really helps


On Fri, Mar 11, 2011 at 5:56 AM, Karim Beyrouti  wrote:

> Hello lovely list...I am trying to run a RegExp pattern on a String, and am
> not too sure why it's not working, and am not too sure why.
> Here is the code:
>
> var tStr: String= '/a:"value" -big="this" -test:123
> -test2=th_3'
> var r   : RegExp= new RegExp(
> '(?:\s*)(?<=[-|/])(?\w*)[:|=]("((?.*?)(?[\w]*))');
> var result  : Object= r.exec( str );
>
> result returns null... Maybe you can shed some light on what i am doing
> wrong here?
>
> Thanks...
>
>
> Karim
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] player version messup

2011-04-07 Thread Ktu
On windows, there 2 plugins for Flash
 active x control plugin for IE
plugin for 'other' browsers

and Chrome is special. It has flash player built in. And (from what I've
heard) you have to put some effort in to be able to use the debug player in
Chrome (or any other version).

So you may have just uninstalled the active x plugin and not the ;other;
plugin, and chrome is doing its own thing...

this is based off of my memory with no googling so if I am wrong, I hope
this at least points you in a useful direction.



On Thu, Apr 7, 2011 at 10:41 AM, Rodrigo Augusto Guerra <
rodr...@alumni.org.br> wrote:

> hi folks...
>
> trying to update and undestand some flash player version questions here,
> after close all programs, uninstalling FP and restarting I have the
> following:
>
> FF version:
> WIN 10,1,53,64
> Your browser is Gecko engine (Mozilla, Netscape 6+ etc.) on the Windows
> platform.
>
> Chome:
> WIN 10,2,154,25
> Your browser is Konqueror / Safari / OmniWeb 4.5+ on the Windows platform.
>
> IE:
> Your Flash Player version is
> You don't have the Flash Player installed.
> Your browser is Internet Explorer 5+ on the Windows platform.
>
>
> a) why after uninstalling it still present in FF and chrome?
>
> b) why FF and chrome don't show the same version? I always thought that
> they use the same FP engine and IE user another one (activex)
>
> c) even after downloading and installing a fresh FP, FF still shows the old
> version.
>
>
>
> thanks
> rodrigo.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What is up with adobes documentation?

2011-05-06 Thread Ktu
 of errors or viruses.
>>
>> References to "Sender" are references to any subsidiary of Bank of America
>> Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are
>> Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a
>> Condition to Any Banking Service or Activity * Are Not Insured by Any
>> Federal Government Agency. Attachments that are part of this EC may have
>> additional important disclosures and disclaimers, which you should read.
>> This message is subject to terms available at the following link:
>> http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender
>> you consent to the foregoing.
>> ___
>> 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
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] RE: Flash AS editor preferences question

2011-06-02 Thread Ktu
I use Anonymous <http://www.ms-studio.com/FontSales/anonymous.html>


On Thu, Jun 2, 2011 at 10:16 AM, Merrill, Jason <
jason.merr...@bankofamerica.com> wrote:

> >> Here's an odd one:  what font do you use in the Actionscript editor
> window?
>
> Wait - hold the phone, you're editing Actionscript with the Flash IDE?  If
> so, we need to TALK man.
>
> (
>   http://www.flashdevelop.org/wikidocs/index.php?title=Main_Page (free,
> awesome)
>   http://www.jetbrains.com/idea/download/ (awesome++)
>   http://www.fdt.powerflasher.com/ (awesome++)
>   http://www.adobe.com/products/flash-builder.html (awesome, maybe you
> have this already?)
> )
>
>  Jason Merrill
>  Instructional Technology Architect
>  Bank of America  Global Learning
>
>
>
> --
> This message w/attachments (message) is intended solely for the use of the
> intended recipient(s) and may contain information that is privileged,
> confidential or proprietary. If you are not an intended recipient, please
> notify the sender, and then please delete and destroy all copies and
> attachments, and be advised that any review or dissemination of, or the
> taking of any action in reliance on, the information contained in or
> attached to this message is prohibited.
> Unless specifically indicated, this message is not an offer to sell or a
> solicitation of any investment products or other financial product or
> service, an official confirmation of any transaction, or an official
> statement of Sender. Subject to applicable law, Sender may intercept,
> monitor, review and retain e-communications (EC) traveling through its
> networks/systems and may produce any such EC to regulators, law enforcement,
> in litigation and as required by law.
> The laws of the country of each sender/recipient may impact the handling of
> EC, and EC may be archived, supervised and produced in countries other than
> the country in which you are located. This message cannot be guaranteed to
> be secure or free of errors or viruses.
>
> References to "Sender" are references to any subsidiary of Bank of America
> Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are
> Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a
> Condition to Any Banking Service or Activity * Are Not Insured by Any
> Federal Government Agency. Attachments that are part of this EC may have
> additional important disclosures and disclaimers, which you should read.
> This message is subject to terms available at the following link:
> http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you
> consent to the foregoing.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Input Validation and errors?

2011-07-25 Thread Ktu
Hey List, looking for some feedback.

Struggling with a utility function and input validation.

*  function ( ar1:Array, ar2:Array ) :Array*

   1. Should I throw an error if either of the input arrays are empty? or
   should I just let the function run (effectively doing nothing)?
   2. Should I throw an error if an input would cause bizarre results (but
   not cause any exceptions of its own)?
   3. My input arrays can have multiple data types in them, and at runtime I
   must make sure that they are of a type I can expect. If I run across an
   element that I cannot accept, is that when I should throw an error?


Here's some specific examples:

   1. if ar1 and ar2 share the same object reference, I know that this
   function will produce results that can get pretty strange. Should I throw an
   error if that happens?
   2. if ar1 has the same object reference twice or more, I am currently
   throwing an error, but it technically won't cause and problems, but the
   output will be strange



-- 
Ktu;

The information contained in this message may or may not be privileged
and/or confidential. If you are NOT the intended recipient, congratulations,
you got mail!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Webcam - Menu / Allow access not working

2011-07-27 Thread Ktu
This is a known issue in certain environments. Search the adobe bugs to find
more information about it

On Tue, Jul 26, 2011 at 7:47 AM, Karim Beyrouti  wrote:

> Hello Flashcoders,
>
> Well - the adobe settings panel to allow access to my webcam is not
> responding to mouse click - it shows up - and I can't click 'Allow' or
> 'Deny'. It just simple does not respond to keyboard or mouse events. Anyone
> seen this before / or know how to resolve this issue ?
>
> Chrome / OsX 10.7.
>
>
> Thanks
>
>
> Karim
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may or may not be privileged
and/or confidential. If you are NOT the intended recipient, congratulations,
you got mail!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Using BitmapData.draw() with masked items

2011-07-28 Thread Ktu
if you are using a rectangular mask, try just using scrollRect instead.


var container:Sprite = new Sprite()
container.addChild(myBitmap)
container.scrollRect = new Rectangle (0, 0, myBitmap.width,
myBitmap.height);

make the rectangle whichever dimensions you care about, but that might do
it...



On Thu, Jul 28, 2011 at 12:26 PM, allandt bik-elliott (thefieldcomic.com) <
alla...@gmail.com> wrote:

> hmm interesting - okay - i'll give that a shot
>
> best
> a
>
> On 28 July 2011 17:12, Henrik Andersson  wrote:
>
> > Sounds like the classical "mask not being in a display list" issue, but
> in
> > a new variation.
> >
> > Ensure that both the mask and the maskee is in the container passed to
> the
> > draw call.
> > __**_
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.**com 
> > http://chattyfig.figleaf.com/**mailman/listinfo/flashcoders<
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders>
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may or may not be privileged
and/or confidential. If you are NOT the intended recipient, congratulations,
you got mail!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Help Registration point and origion point

2011-08-02 Thread Ktu
Hopefully below will help you:

I'm going to just explain how the origin stuff works, and how you can learn
to compensate for it, and maybe you can apply this to your work. Starting
off with an example where the visual elements of a sprite are not originated
at 0,0

var mySprite:Sprite = new Sprite ();
mySprite.graphics.beginFill();
mySprite.graphics.drawRect (10, 10, 50, 50);
mySprite.graphics.endFill();
mySprite.x = 10;
mySprite.y = 10;
stage.addChild(mySprite);

*the stage thinks this:*
mySprite.x = 10;
mySprite.y = 10;
mySprite.width = 50;
mySprite.height = 50;

*mySprite thinks this:*
this.x = 10;
this.y = 10;
this.width = 50;
this.height = 50;

But what happened to the fact that the rectangle I drew lives at x:10, y:10
!!!


*So how do you find out where the origin is from inside mySprite?*
 - mySprite.getBounds(mySprite);

this will return the boundaries of mySprite, in relation to mySprite. The
visual reality of mySprite is that its boundaries are this:

x: 10
y: 10
width:50
height:50


your origin offset is x:10, y:10. This still doesn't account for the x and y
placement of mySprite on the stage, but that is simple to calculate.


*The next part, is compensating for the scale:
**
*If you take our mySprite from above, and scale it to 2, there are some
notable changes:
 - mySprite.scaleX = mySprite.scaleY = 2;

mySprite thinks:
x:10
y:10
width:100
height:100

mySprite.getBounds(mySprite) returns this:
x:10
y:10
width:50
height:50

The visual elements inside of mySprite did not grow, but mySprite is telling
it to grow (because of the scaleX &| scaleY changes)

But what is probably messing you up is that when you scale an object that
has an origin offset, the distance between the origin offset is multiplied
by the same scale.

*Here's the example:* (same mySprite as above, and already scaleX and scaleY
= 2)

mySprite is located at x:10, y:10
mySprite is scaled to 2, with an origin offset of x:10,. y:10.
multiply the origin offsets by the scale of the object and you get x:20,
y:20

the visual position of mySprite is at x:30, y:30

We can verify this by using getBounds again, but in relation to the stage.
mySprite.getBounds(stage);

returns:
x:30
y:30
width:100
height:100



So, an example to compensate for the offset and scale would go like this:
(if you want mySprite to *look* like its at 0,0 on the stage)

var myBounds:Rectangle = mySprite.getBounds(mySprite);
var originOffset:Point = new Point()
originOffset.x = -myBounds.x * mySprite.scaleX
originOffset.y = -myBounds.y * mySprite.scaleY;
mySprite.x = originOffset.x;
mySprite.y = originOffset.y;


Now, mySprite will appear to be at 0,0 on the stage, even though the origin
is offset and the scale has been changed.


*Solutions*

You can try compensation for both the origin and scale, or you can change
the way you scale, say by scaling the actual sin wave and not the containing
parent. You could also just redraw the wave instead of changing the scale.


Hope that helps.


the end code I used:

var mySprite:Sprite = new Sprite ();
mySprite.graphics.beginFill(0);
mySprite.graphics.drawRect (10, 10, 50, 50);
mySprite.graphics.endFill();
mySprite.x = 10;
mySprite.y = 10;
stage.addChild(mySprite);
mySprite.scaleX = mySprite.scaleY = 2;

var props:Rectangle = new Rectangle(mySprite.x, mySprite.y, mySprite.width,
mySprite.height);
trace("mySprite x,y,width,height: " + props);
trace("mySprite.getBounds(mySprite) = " + mySprite.getBounds(mySprite));
trace("mySprite.getBounds(stage) = " + mySprite.getBounds(stage));

var myBounds:Rectangle = mySprite.getBounds(mySprite);
var originOffset:Point = new Point()
originOffset.x = -myBounds.x * mySprite.scaleX
originOffset.y = -myBounds.y * mySprite.scaleY;
mySprite.x = originOffset.x;
mySprite.y = originOffset.y;



On Tue, Aug 2, 2011 at 1:03 AM, nasim h  wrote:

> Hi
>
> Could u help me .  i draw wave( by code) inside empy movieClip that se
> regpoint (manualy)  at middle of that when i scale it t it’s good but
> when i move align x or y It scaled by pevios position  . I want to change
> reg point and refrence point
> too , like when i do it manualy , the refrence point means (0,0) point ,
>  how do i change that point plese help me
> what is diferent between reg point and origion point (cordinate system
> (0,0)) And how to change them ?
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Ktu;

The information contained in this message may or may not be privileged
and/or confidential. If you are NOT the intended recipient, congratulations,
you got mail!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  1   2   >