Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Eric E. Dolecki
Has anyone tried this ServerSocket yet?

On Wed, May 12, 2010 at 8:28 PM, eric dolecki GMail wrote:

> Ah okay, that's good stuff to know. I was very wrong, my apologies. Easy
> enough to deploy as AIR, I'll have a look at that link and re-write some
> code. Not having to use a socket server will be super nice.
>
> Sent from my iPad
>
> On May 12, 2010, at 7:46 PM, Juan Pablo Califano <
> califa010.flashcod...@gmail.com> wrote:
>
> > With non-Air players, you can use a Socket to connect to a server. But
> you
> > can't create a server itself; i.e. you can't write code to bind to a
> given
> > port and listen for connections. So, in that scenario you cannot connect
> > both swfs directly (you have to use a socket server).
> >
> > Appartently with Air you can have your app bind to a port and listen for
> > connections, so you can have 2 swfs talk to each other without the need
> of
> > an extra party. (I say apparently because I've just found out about the
> > ServerSocket class following the link that Henrik posted).
> >
> > Cheers
> > Juan Pablo Califano
> >
> >
> > 2010/5/12 Eric E. Dolecki 
> >
> >> Huh?
> >>
> >>
> >>
> http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/Socket.html
> >>
> >> all I need is readUTFBytes and writeUTFBytes...
> >>
> >>
> >> On Wed, May 12, 2010 at 6:31 PM, Henrik Andersson <
> he...@henke37.cjb.net
> >>> wrote:
> >>
> >>> Eric E. Dolecki wrote:
> >>>
>  AIR because of the application security sandbox? Would standalone
>  projectors
>  work as well?
> 
> >>>
> >>> They would not, as they lack the needed API. Have a look at the recent
> >>> additions in the flash.net package, all the useful socket features are
> >> AIR
> >>> exclusive.
> >>>
> >>> ___
> >>> 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
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-12 Thread eric dolecki GMail
Ah okay, that's good stuff to know. I was very wrong, my apologies. Easy enough 
to deploy as AIR, I'll have a look at that link and re-write some code. Not 
having to use a socket server will be super nice.

Sent from my iPad

On May 12, 2010, at 7:46 PM, Juan Pablo Califano 
 wrote:

> With non-Air players, you can use a Socket to connect to a server. But you
> can't create a server itself; i.e. you can't write code to bind to a given
> port and listen for connections. So, in that scenario you cannot connect
> both swfs directly (you have to use a socket server).
> 
> Appartently with Air you can have your app bind to a port and listen for
> connections, so you can have 2 swfs talk to each other without the need of
> an extra party. (I say apparently because I've just found out about the
> ServerSocket class following the link that Henrik posted).
> 
> Cheers
> Juan Pablo Califano
> 
> 
> 2010/5/12 Eric E. Dolecki 
> 
>> Huh?
>> 
>> 
>> http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/Socket.html
>> 
>> all I need is readUTFBytes and writeUTFBytes...
>> 
>> 
>> On Wed, May 12, 2010 at 6:31 PM, Henrik Andersson >> wrote:
>> 
>>> Eric E. Dolecki wrote:
>>> 
 AIR because of the application security sandbox? Would standalone
 projectors
 work as well?
 
>>> 
>>> They would not, as they lack the needed API. Have a look at the recent
>>> additions in the flash.net package, all the useful socket features are
>> AIR
>>> exclusive.
>>> 
>>> ___
>>> 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

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


Re: [Flashcoders] https, .load and Error #2048

2010-05-12 Thread Juan Pablo Califano
Have you checked possible crossdomain issues? (I mention it since you're
using an absoulte path).

This blog post here presents a solution for a particular problem (maybe not
the one you're facing), but gives a couple of tips for troubleshooting these
kind of errors:

http://www.thecosmonaut.com/2008/08/28/flash-9-policy-files/

Hope this helps.

Cheers
Juan Pablo Califano

2010/5/12 Lehr, Theodore 

> it's all https, though...
>
> 
> From: flashcoders-boun...@chattyfig.figleaf.com [
> flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [
> he...@henke37.cjb.net]
> Sent: Wednesday, May 12, 2010 3:56 PM
> To: Flash Coders List
> Subject: Re: [Flashcoders] https, .load and Error #2048
>
> Lehr, Theodore wrote:
> >   am trying to load some xml via:
> >
> > urlLoader.load(new URLRequest("https://...";));
> >
> > and I am getting an error #2048... is https an issue?
>
> Definitely, non secure content may not load secure content.
> ___
> 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] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Juan Pablo Califano
With non-Air players, you can use a Socket to connect to a server. But you
can't create a server itself; i.e. you can't write code to bind to a given
port and listen for connections. So, in that scenario you cannot connect
both swfs directly (you have to use a socket server).

Appartently with Air you can have your app bind to a port and listen for
connections, so you can have 2 swfs talk to each other without the need of
an extra party. (I say apparently because I've just found out about the
ServerSocket class following the link that Henrik posted).

Cheers
Juan Pablo Califano


2010/5/12 Eric E. Dolecki 

> Huh?
>
>
> http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/Socket.html
>
> all I need is readUTFBytes and writeUTFBytes...
>
>
> On Wed, May 12, 2010 at 6:31 PM, Henrik Andersson  >wrote:
>
> > Eric E. Dolecki wrote:
> >
> >> AIR because of the application security sandbox? Would standalone
> >> projectors
> >> work as well?
> >>
> >
> > They would not, as they lack the needed API. Have a look at the recent
> > additions in the flash.net package, all the useful socket features are
> AIR
> > exclusive.
> >
> > ___
> > 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] gotoAndPlay a sorted array

2010-05-12 Thread Keith Reinfeld
Glad I could help. Good luck!

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net


> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
> boun...@chattyfig.figleaf.com] On Behalf Of Donald Talcott
> Sent: Wednesday, May 12, 2010 11:05 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] gotoAndPlay a sorted array
> 
> Keith,
> That did it. I shortened the delay and all is working well. Thank you.
> My example cited in this post was last years project, I wanted to work
> out the code first using it.
> Now it's time to build this years project. I owe you.
> 
> On May 12, 2010, at 10:09 AM, Keith Reinfeld wrote:
> 
> > Don,
> >
> > Okay, if I understand you correctly, you could insert a keyframe at
> the end
> > of each animation which will allow you to place some code:
> >
> > stop();
> > setTimeout(goOn,1000);// that's a one second delay
> >
> > This will call the goOn function which in turn will direct the
> playhead to
> > each animation in the desired (randomized) order.
> > If you use the if/else block (from the code in my previous post) to
> manage
> > the index then the animations will repeat, continuously.
> >
> > Regards,
> >
> > Keith Reinfeld
> > Home Page: http://keithreinfeld.home.comcast.net
> >
> >> -Original Message-
> >> From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
> >> boun...@chattyfig.figleaf.com] On Behalf Of Donald Talcott
> >> Sent: Wednesday, May 12, 2010 7:58 AM
> >> To: Flash Coders List
> >> Subject: Re: [Flashcoders] gotoAndPlay a sorted array
> >>
> >> Keith, Karl,
> >> thanks, I have a clearer understanding now.
> >>
> >> File structure; Frame labels on timeline order = mmPretzel,
> >> 3Musketeers_truffle, MilkyWay_Caramel, mmCO, mmCherry, Twix_java,
> VOTE,
> >> mmPB, NASCAR.
> >> Animations are setup to play to the end of one then bounce over to
> the
> >> next one in the final array.
> >> What I am trying to get on gotoAndPlay is "mmPretzel" and
> >> "3Musketeers_truffle" always play 1st and 2nd, then a random pick
> from
> >> the remaining 7 would play as 3rd, followed by the 4th item in the
> >> array and so forth.
> >>
> >> My current trace statements =
> >> trace(b) = mmCherry, mmPB,mmCO, MilkyWay_Caramel, VOTE, Twix_java,
> >> NASCAR.
> >> trace(mOnemTwo) = mmPretzel, 3Musketeers_truffle, mmCherry, mmPB,
> mmCO,
> >> MilkyWay_Caramel, VOTE, Twix_java, NASCAR.
> >>
> >> play result = mmPretzel, 3Musketeers_truffle, MilkyWay_Caramel,
> mmCO,
> >> mmCherry, Twix_java, VOTE, mmPB, NASCAR (original order on timeline)
> >>
> >> On May 11, 2010, at 11:56 PM, Keith Reinfeld wrote:
> >>
> >>> Don,
> >>>
> >>> Yes, Karl is correct. In my post 'index' is a variable of type
> Number
> >> which
> >>> you would increment upon successive calls to function goOn(). You
> >> access
> >>> elements of an array by using the array access operator '[]'. The
> >> indices of
> >>> arrays are zero based, so the index of the first element is 0, the
> >> index of
> >>> the second element is 1, the index of the third element is 2, and
> so
> >> on. You
> >>> can use the length property of an array to find out how many
> elements
> >> there
> >>> are in the array. In your case you have an array with 9 elements so
> >> you
> >>> would want to use index values between 0 and 8. Note that
> >> mOnemTwo.length
> >>> (9) is one higher than the highest index value you can use with
> this
> >> array
> >>> (8). The sample code below includes an if/else block to manage
> index
> >> values.
> >>>
> >>>
> >>> // initialize index
> >>> var index:Number = 0;
> >>> function goOn(){
> >>>   gotoAndPlay(mOnemTwo[index]);
> >>>   // manage the index
> >>>   if(index < mOnemTwo.length - 1){
> >>>   // increment index by one
> >>>   index++;
> >>>   }else{
> >>>   // set index back to zero
> >>>   index = 0;
> >>>   }
> >>> };
> >>>
> >>> I have to echo Karl's questions about how you are planning to make
> >>> subsequent calls to function goOn(). What you have,
> >> setTimeout(goOn,+8),
> >>> will kick off the first one (although I don't understand the '+8'
> in
> >> the
> >>> delay parameter) but what about the rest? Any suggestions I could
> >> make here
> >>> would be pure guesswork without knowing more about the structure of
> >> your
> >>> file.
> >>>
> >>> HTH
> >>>
> >>> Regards,
> >>>
> >>> Keith Reinfeld
> >>> Home Page: http://keithreinfeld.home.comcast.net
> >>>
> >>>
> >>>
> >>> ___
> >>> Flashcoders mailing list
> >>> Flashcoders@chattyfig.figleaf.com
> >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >> 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
> >
>

Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Henrik Andersson

Eric E. Dolecki wrote:

Huh?

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/Socket.html

all I need is readUTFBytes and writeUTFBytes...


You need more than that. Think about this carefully. You need to connect 
to an open port. But you also need a way to open said port. Guess which 
part you can't do without AIR?


http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/ServerSocket.html
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Eric E. Dolecki
Huh?

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/Socket.html

all I need is readUTFBytes and writeUTFBytes...


On Wed, May 12, 2010 at 6:31 PM, Henrik Andersson wrote:

> Eric E. Dolecki wrote:
>
>> AIR because of the application security sandbox? Would standalone
>> projectors
>> work as well?
>>
>
> They would not, as they lack the needed API. Have a look at the recent
> additions in the flash.net package, all the useful socket features are AIR
> exclusive.
>
> ___
> 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


Re: [Flashcoders] Buggy Tween

2010-05-12 Thread John R. Sweeney Jr
Howdy,

> You tween objects got garbage collected.

I was bit very hard by that one in a kiosk touch screen that needed to have
certain things happen after the tween was finished. So when garbage
collection stopped the tween, things went very messed up and/or locked up.
:)  

Here is how I fixed that:

var tween_handler:Tween;

tween_handler = new Tween(mc,"alpha",Strong.easeInOut,1,0,.5,true);
tween_handler .addEventListener (TweenEvent.MOTION_FINISH, doYourFunction;

function doYourFunction (evt:TweenEvent):void
{
tween_handler .removeEventListener (TweenEvent.MOTION_FINISH,
doYourFunction); 

// do your stuff here
}



Then you should be fine,
John



on 5/12/10 2:44 PM, Lehr, Theodore at ted_l...@federal.dell.com wrote:

> thanks - I'll look into how to do that


John R. Sweeney Jr.
Interactive Multimedia Developer

OnDemand Interactive Inc
945 Washington Blvd.
Hoffman Estates, IL 60169
Office/Fax: 847.310.5959
Cellular: 847.651.4469
www.ondemandinteractive.com

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


Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Henrik Andersson

Eric E. Dolecki wrote:

AIR because of the application security sandbox? Would standalone projectors
work as well?


They would not, as they lack the needed API. Have a look at the recent 
additions in the flash.net package, all the useful socket features are 
AIR exclusive.

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


Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Dave Watts
> Is it possible to spoof another machine on a single Mac to get around
> setting up another box and using a flash drive to push files around for
> testing?

Sure, I don't see why not, as long as you use different ports. In the
worst case, you could definitely do it using a virtualized environment
on your Mac.

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


Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Eric E. Dolecki
I have my socket class written which dispatches custom events & two main
SWFs with their own document class implemented.

Is it possible to spoof another machine on a single Mac to get around
setting up another box and using a flash drive to push files around for
testing?

Eric


On Wed, May 12, 2010 at 4:11 PM, Eric E. Dolecki  wrote:

> AIR because of the application security sandbox? Would standalone
> projectors work as well?
>
>
> On Wed, May 12, 2010 at 3:25 PM, Henrik Andersson 
> wrote:
>
>> Eric E. Dolecki wrote:
>>
>>> I would like to have two computers running two different SWFs talk to one
>>> another over a LAN (say both plugged into the same router). Is it as
>>> simple
>>> as this?
>>>
>>>
>> For connectionless protocols, yes.
>>
>> Btw, you need AIR for this.
>>
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
>
>
> --
> http://ericd.net
> Interactive design and development
>



-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Eric E. Dolecki
AIR because of the application security sandbox? Would standalone projectors
work as well?

On Wed, May 12, 2010 at 3:25 PM, Henrik Andersson wrote:

> Eric E. Dolecki wrote:
>
>> I would like to have two computers running two different SWFs talk to one
>> another over a LAN (say both plugged into the same router). Is it as
>> simple
>> as this?
>>
>>
> For connectionless protocols, yes.
>
> Btw, you need AIR for this.
>
> ___
> 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


RE: [Flashcoders] https, .load and Error #2048

2010-05-12 Thread Lehr, Theodore
it's all https, though...


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson 
[he...@henke37.cjb.net]
Sent: Wednesday, May 12, 2010 3:56 PM
To: Flash Coders List
Subject: Re: [Flashcoders] https, .load and Error #2048

Lehr, Theodore wrote:
>   am trying to load some xml via:
>
> urlLoader.load(new URLRequest("https://...";));
>
> and I am getting an error #2048... is https an issue?

Definitely, non secure content may not load secure content.
___
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] https, .load and Error #2048

2010-05-12 Thread Henrik Andersson

Lehr, Theodore wrote:

  am trying to load some xml via:

urlLoader.load(new URLRequest("https://...";));

and I am getting an error #2048... is https an issue?


Definitely, non secure content may not load secure content.
___
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] Buggy Tween

2010-05-12 Thread Lehr, Theodore
thanks - I'll look into how to do that


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson 
[he...@henke37.cjb.net]
Sent: Wednesday, May 12, 2010 3:38 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Buggy Tween

Lehr, Theodore wrote:
> Sorry - I am unfamiliar with that - can I fix it?
You tween objects got garbage collected. Prevent this from happening by
storing a reference to them in a non garbage collectible object while
they run.
___
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] https, .load and Error #2048

2010-05-12 Thread Lehr, Theodore
 am trying to load some xml via:

urlLoader.load(new URLRequest("https://...";));

and I am getting an error #2048... is https an issue?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Buggy Tween

2010-05-12 Thread Henrik Andersson

Lehr, Theodore wrote:

Sorry - I am unfamiliar with that - can I fix it?
You tween objects got garbage collected. Prevent this from happening by 
storing a reference to them in a non garbage collectible object while 
they run.

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


RE: [Flashcoders] Buggy Tween

2010-05-12 Thread Lehr, Theodore
Sorry - I am unfamiliar with that - can I fix it?


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson 
[he...@henke37.cjb.net]
Sent: Wednesday, May 12, 2010 3:26 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Buggy Tween

Lehr, Theodore wrote:
> The weird thing is that sometimes the tween just stops (sometimes it doe 
> complete)

You have a classical garbage collection issue.
___
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] Buggy Tween

2010-05-12 Thread Henrik Andersson

Lehr, Theodore wrote:

The weird thing is that sometimes the tween just stops (sometimes it doe 
complete)


You have a classical garbage collection issue.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Henrik Andersson

Eric E. Dolecki wrote:

I would like to have two computers running two different SWFs talk to one
another over a LAN (say both plugged into the same router). Is it as simple
as this?



For connectionless protocols, yes.

Btw, you need AIR for this.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Buggy Tween

2010-05-12 Thread Lehr, Theodore
I have a CLICK event listener - the function it calls does two things:

1. Loads a .swf
2. creates a tween like:
   var mouseToTween:Tween = new Tween 
(mc,"x",Strong.easeOut,mc.x.-159,3,true);

The weird thing is that sometimes the tween just stops (sometimes it doe 
complete) and it seems to be tied to the swf getting loaded - as soon as the 
swf loads - the tween will stop where ever it might be... sometimes, though, it 
does work...

just bugg or am i doing something wrong?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] gotoAndPlay a sorted array

2010-05-12 Thread Karl DeSaulniers

Very nice. Good work Keith.
Good luck Don.

Karl

Sent from losPhone

On May 12, 2010, at 11:04 AM, Donald Talcott   
wrote:



Keith,
That did it. I shortened the delay and all is working well. Thank  
you. My example cited in this post was last years project, I wanted  
to work out the code first using it.

Now it's time to build this years project. I owe you.

On May 12, 2010, at 10:09 AM, Keith Reinfeld wrote:


Don,

Okay, if I understand you correctly, you could insert a keyframe at  
the end

of each animation which will allow you to place some code:

stop();
setTimeout(goOn,1000);// that's a one second delay

This will call the goOn function which in turn will direct the  
playhead to

each animation in the desired (randomized) order.
If you use the if/else block (from the code in my previous post) to  
manage

the index then the animations will repeat, continuously.

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
boun...@chattyfig.figleaf.com] On Behalf Of Donald Talcott
Sent: Wednesday, May 12, 2010 7:58 AM
To: Flash Coders List
Subject: Re: [Flashcoders] gotoAndPlay a sorted array

Keith, Karl,
thanks, I have a clearer understanding now.

File structure; Frame labels on timeline order = mmPretzel,
3Musketeers_truffle, MilkyWay_Caramel, mmCO, mmCherry, Twix_java,  
VOTE,

mmPB, NASCAR.
Animations are setup to play to the end of one then bounce over to  
the

next one in the final array.
What I am trying to get on gotoAndPlay is "mmPretzel" and
"3Musketeers_truffle" always play 1st and 2nd, then a random pick  
from

the remaining 7 would play as 3rd, followed by the 4th item in the
array and so forth.

My current trace statements =
trace(b) = mmCherry, mmPB,mmCO, MilkyWay_Caramel, VOTE, Twix_java,
NASCAR.
trace(mOnemTwo) = mmPretzel, 3Musketeers_truffle, mmCherry, mmPB,  
mmCO,

MilkyWay_Caramel, VOTE, Twix_java, NASCAR.

play result = mmPretzel, 3Musketeers_truffle, MilkyWay_Caramel,  
mmCO,

mmCherry, Twix_java, VOTE, mmPB, NASCAR (original order on timeline)

On May 11, 2010, at 11:56 PM, Keith Reinfeld wrote:


Don,

Yes, Karl is correct. In my post 'index' is a variable of type  
Number

which

you would increment upon successive calls to function goOn(). You

access

elements of an array by using the array access operator '[]'. The

indices of

arrays are zero based, so the index of the first element is 0, the

index of
the second element is 1, the index of the third element is 2, and  
so

on. You
can use the length property of an array to find out how many  
elements

there

are in the array. In your case you have an array with 9 elements so

you

would want to use index values between 0 and 8. Note that

mOnemTwo.length
(9) is one higher than the highest index value you can use with  
this

array
(8). The sample code below includes an if/else block to manage  
index

values.



// initialize index
var index:Number = 0;
function goOn(){
   gotoAndPlay(mOnemTwo[index]);
   // manage the index
   if(index < mOnemTwo.length - 1){
   // increment index by one
   index++;
   }else{
   // set index back to zero
   index = 0;
   }
};

I have to echo Karl's questions about how you are planning to make
subsequent calls to function goOn(). What you have,

setTimeout(goOn,+8),
will kick off the first one (although I don't understand the '+8'  
in

the

delay parameter) but what about the rest? Any suggestions I could

make here

would be pure guesswork without knowing more about the structure of

your

file.

HTH

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net



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


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


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] Two computers talking using AS3 Socket on same network

2010-05-12 Thread Eric E. Dolecki
I would like to have two computers running two different SWFs talk to one
another over a LAN (say both plugged into the same router). Is it as simple
as this?

Computer A
---
SWF makes a socket, uses B's IP address and an open port - reads and writes
from this socket


Computer B
---
SWF makes a socket, uses A's IP address and an open port - reads and writes
from this socket



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


RE: [Flashcoders] Stop flashdevelop "exploding" xml in AS3

2010-05-12 Thread Merrill, Jason
Weird - I have 3.1 - doesn't do that to me.


Jason Merrill 

Bank of  America  Global Learning 
Learning & Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen
Pike
Sent: Wednesday, May 12, 2010 9:30 AM
To: Flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Stop flashdevelop "exploding" xml in AS3

Hi,

 I am having problems with my "hardcoded" XML when typing in
FlashDevelop in AS3 code.

 Does anyone know how I stop FD "exploding" my XML when I press
return.

 If I type this:

 var tmp:XML =
hex{event.time}{event.outpu
t}{event.value}

 FD then changes the formatting to this:

 var tmp:XML = < event > < format > hex
{event.time} < output > {event.output}
{event.value}

 e.g. adds extraneous whitespace to the XML which breaks it as far
as the compiler is concerned...

 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] gotoAndPlay a sorted array

2010-05-12 Thread Donald Talcott
Keith,
That did it. I shortened the delay and all is working well. Thank you. My 
example cited in this post was last years project, I wanted to work out the 
code first using it.
Now it's time to build this years project. I owe you.

On May 12, 2010, at 10:09 AM, Keith Reinfeld wrote:

> Don, 
> 
> Okay, if I understand you correctly, you could insert a keyframe at the end
> of each animation which will allow you to place some code: 
> 
> stop();
> setTimeout(goOn,1000);// that's a one second delay 
> 
> This will call the goOn function which in turn will direct the playhead to
> each animation in the desired (randomized) order. 
> If you use the if/else block (from the code in my previous post) to manage
> the index then the animations will repeat, continuously. 
> 
> Regards,
> 
> Keith Reinfeld
> Home Page: http://keithreinfeld.home.comcast.net
> 
>> -Original Message-
>> From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
>> boun...@chattyfig.figleaf.com] On Behalf Of Donald Talcott
>> Sent: Wednesday, May 12, 2010 7:58 AM
>> To: Flash Coders List
>> Subject: Re: [Flashcoders] gotoAndPlay a sorted array
>> 
>> Keith, Karl,
>> thanks, I have a clearer understanding now.
>> 
>> File structure; Frame labels on timeline order = mmPretzel,
>> 3Musketeers_truffle, MilkyWay_Caramel, mmCO, mmCherry, Twix_java, VOTE,
>> mmPB, NASCAR.
>> Animations are setup to play to the end of one then bounce over to the
>> next one in the final array.
>> What I am trying to get on gotoAndPlay is "mmPretzel" and
>> "3Musketeers_truffle" always play 1st and 2nd, then a random pick from
>> the remaining 7 would play as 3rd, followed by the 4th item in the
>> array and so forth.
>> 
>> My current trace statements =
>> trace(b) = mmCherry, mmPB,mmCO, MilkyWay_Caramel, VOTE, Twix_java,
>> NASCAR.
>> trace(mOnemTwo) = mmPretzel, 3Musketeers_truffle, mmCherry, mmPB, mmCO,
>> MilkyWay_Caramel, VOTE, Twix_java, NASCAR.
>> 
>> play result = mmPretzel, 3Musketeers_truffle, MilkyWay_Caramel, mmCO,
>> mmCherry, Twix_java, VOTE, mmPB, NASCAR (original order on timeline)
>> 
>> On May 11, 2010, at 11:56 PM, Keith Reinfeld wrote:
>> 
>>> Don,
>>> 
>>> Yes, Karl is correct. In my post 'index' is a variable of type Number
>> which
>>> you would increment upon successive calls to function goOn(). You
>> access
>>> elements of an array by using the array access operator '[]'. The
>> indices of
>>> arrays are zero based, so the index of the first element is 0, the
>> index of
>>> the second element is 1, the index of the third element is 2, and so
>> on. You
>>> can use the length property of an array to find out how many elements
>> there
>>> are in the array. In your case you have an array with 9 elements so
>> you
>>> would want to use index values between 0 and 8. Note that
>> mOnemTwo.length
>>> (9) is one higher than the highest index value you can use with this
>> array
>>> (8). The sample code below includes an if/else block to manage index
>> values.
>>> 
>>> 
>>> // initialize index
>>> var index:Number = 0;
>>> function goOn(){
>>> gotoAndPlay(mOnemTwo[index]);
>>> // manage the index
>>> if(index < mOnemTwo.length - 1){
>>> // increment index by one
>>> index++;
>>> }else{
>>> // set index back to zero
>>> index = 0;
>>> }
>>> };
>>> 
>>> I have to echo Karl's questions about how you are planning to make
>>> subsequent calls to function goOn(). What you have,
>> setTimeout(goOn,+8),
>>> will kick off the first one (although I don't understand the '+8' in
>> the
>>> delay parameter) but what about the rest? Any suggestions I could
>> make here
>>> would be pure guesswork without knowing more about the structure of
>> your
>>> file.
>>> 
>>> HTH
>>> 
>>> Regards,
>>> 
>>> Keith Reinfeld
>>> Home Page: http://keithreinfeld.home.comcast.net
>>> 
>>> 
>>> 
>>> ___
>>> Flashcoders mailing list
>>> Flashcoders@chattyfig.figleaf.com
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> 
>> 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

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


Re: [Flashcoders] Stop flashdevelop "exploding" xml in AS3

2010-05-12 Thread Glen Pike

Better still, upgrade to latest version which seems to have fixed it...

Cheers :)

On 12/05/2010 16:35, Eric E. Dolecki wrote:

Why not post a question to the FlashDevelop forum? I've even fetched the
link for you.

http://www.flashdevelop.org/community/index.php

- Eric


On Wed, May 12, 2010 at 9:30 AM, Glen Pikewrote:

   

Hi,

I am having problems with my "hardcoded" XML when typing in FlashDevelop
in AS3 code.

Does anyone know how I stop FD "exploding" my XML when I press return.

If I type this:

var tmp:XML =
hex{event.time}{event.output}{event.value} 


   

FD then changes the formatting to this:

var tmp:XML =<  event>  <  format>  hex{event.time} 

<  output>  {event.output}{event.value}
   

e.g. adds extraneous whitespace to the XML which breaks it as far as the
compiler is concerned...

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] XML to string conversion

2010-05-12 Thread Glen Pike

Hi,

Can anyone explain why / when XML toString or toXMLString converts 
my characters to HTML entities?


I think it's when I try XMLList.toString() but it's kind of strange 
behaviour


Thanks

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


Re: [Flashcoders] Stop flashdevelop "exploding" xml in AS3

2010-05-12 Thread Eric E. Dolecki
Why not post a question to the FlashDevelop forum? I've even fetched the
link for you.

http://www.flashdevelop.org/community/index.php

- Eric


On Wed, May 12, 2010 at 9:30 AM, Glen Pike wrote:

> Hi,
>
>I am having problems with my "hardcoded" XML when typing in FlashDevelop
> in AS3 code.
>
>Does anyone know how I stop FD "exploding" my XML when I press return.
>
>If I type this:
>
>var tmp:XML =
> hex{event.time}{event.output}{event.value} >
>
>FD then changes the formatting to this:
>
>var tmp:XML = < event > < format > hex {event.time} > < output > {event.output} {event.value}
>
>e.g. adds extraneous whitespace to the XML which breaks it as far as the
> compiler is concerned...
>
>Glen
> ___
> 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


RE: [Flashcoders] gotoAndPlay a sorted array

2010-05-12 Thread Keith Reinfeld
Don, 

Okay, if I understand you correctly, you could insert a keyframe at the end
of each animation which will allow you to place some code: 
 
stop();
setTimeout(goOn,1000);// that's a one second delay 
 
This will call the goOn function which in turn will direct the playhead to
each animation in the desired (randomized) order. 
If you use the if/else block (from the code in my previous post) to manage
the index then the animations will repeat, continuously. 

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net

> -Original Message-
> From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
> boun...@chattyfig.figleaf.com] On Behalf Of Donald Talcott
> Sent: Wednesday, May 12, 2010 7:58 AM
> To: Flash Coders List
> Subject: Re: [Flashcoders] gotoAndPlay a sorted array
> 
> Keith, Karl,
> thanks, I have a clearer understanding now.
> 
> File structure; Frame labels on timeline order = mmPretzel,
> 3Musketeers_truffle, MilkyWay_Caramel, mmCO, mmCherry, Twix_java, VOTE,
> mmPB, NASCAR.
> Animations are setup to play to the end of one then bounce over to the
> next one in the final array.
> What I am trying to get on gotoAndPlay is "mmPretzel" and
> "3Musketeers_truffle" always play 1st and 2nd, then a random pick from
> the remaining 7 would play as 3rd, followed by the 4th item in the
> array and so forth.
> 
> My current trace statements =
> trace(b) = mmCherry, mmPB,mmCO, MilkyWay_Caramel, VOTE, Twix_java,
> NASCAR.
> trace(mOnemTwo) = mmPretzel, 3Musketeers_truffle, mmCherry, mmPB, mmCO,
> MilkyWay_Caramel, VOTE, Twix_java, NASCAR.
> 
> play result = mmPretzel, 3Musketeers_truffle, MilkyWay_Caramel, mmCO,
> mmCherry, Twix_java, VOTE, mmPB, NASCAR (original order on timeline)
> 
> On May 11, 2010, at 11:56 PM, Keith Reinfeld wrote:
> 
> > Don,
> >
> > Yes, Karl is correct. In my post 'index' is a variable of type Number
> which
> > you would increment upon successive calls to function goOn(). You
> access
> > elements of an array by using the array access operator '[]'. The
> indices of
> > arrays are zero based, so the index of the first element is 0, the
> index of
> > the second element is 1, the index of the third element is 2, and so
> on. You
> > can use the length property of an array to find out how many elements
> there
> > are in the array. In your case you have an array with 9 elements so
> you
> > would want to use index values between 0 and 8. Note that
> mOnemTwo.length
> > (9) is one higher than the highest index value you can use with this
> array
> > (8). The sample code below includes an if/else block to manage index
> values.
> >
> >
> > // initialize index
> > var index:Number = 0;
> > function goOn(){
> > gotoAndPlay(mOnemTwo[index]);
> > // manage the index
> > if(index < mOnemTwo.length - 1){
> > // increment index by one
> > index++;
> > }else{
> > // set index back to zero
> > index = 0;
> > }
> > };
> >
> > I have to echo Karl's questions about how you are planning to make
> > subsequent calls to function goOn(). What you have,
> setTimeout(goOn,+8),
> > will kick off the first one (although I don't understand the '+8' in
> the
> > delay parameter) but what about the rest? Any suggestions I could
> make here
> > would be pure guesswork without knowing more about the structure of
> your
> > file.
> >
> > HTH
> >
> > Regards,
> >
> > Keith Reinfeld
> > Home Page: http://keithreinfeld.home.comcast.net
> >
> >
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> 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] Stop flashdevelop "exploding" xml in AS3

2010-05-12 Thread Glen Pike

Hi,

I am having problems with my "hardcoded" XML when typing in 
FlashDevelop in AS3 code.


Does anyone know how I stop FD "exploding" my XML when I press return.

If I type this:

var tmp:XML = 
hex{event.time}{event.output}{event.value}>


FD then changes the formatting to this:

var tmp:XML = < event > < format > hex 
{event.time} < output > {event.output} 
{event.value}


e.g. adds extraneous whitespace to the XML which breaks it as far 
as the compiler is concerned...


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


Re: [Flashcoders] gotoAndPlay a sorted array

2010-05-12 Thread Donald Talcott
Keith, Karl,
thanks, I have a clearer understanding now.

File structure; Frame labels on timeline order = mmPretzel, 
3Musketeers_truffle, MilkyWay_Caramel, mmCO, mmCherry, Twix_java, VOTE, mmPB, 
NASCAR.
Animations are setup to play to the end of one then bounce over to the next one 
in the final array.
What I am trying to get on gotoAndPlay is "mmPretzel" and "3Musketeers_truffle" 
always play 1st and 2nd, then a random pick from the remaining 7 would play as 
3rd, followed by the 4th item in the array and so forth.

My current trace statements = 
trace(b) = mmCherry, mmPB,mmCO, MilkyWay_Caramel, VOTE, Twix_java, NASCAR.
trace(mOnemTwo) = mmPretzel, 3Musketeers_truffle, mmCherry, mmPB, mmCO, 
MilkyWay_Caramel, VOTE, Twix_java, NASCAR.

play result = mmPretzel, 3Musketeers_truffle, MilkyWay_Caramel, mmCO, mmCherry, 
Twix_java, VOTE, mmPB, NASCAR (original order on timeline) 

On May 11, 2010, at 11:56 PM, Keith Reinfeld wrote:

> Don, 
> 
> Yes, Karl is correct. In my post 'index' is a variable of type Number which
> you would increment upon successive calls to function goOn(). You access
> elements of an array by using the array access operator '[]'. The indices of
> arrays are zero based, so the index of the first element is 0, the index of
> the second element is 1, the index of the third element is 2, and so on. You
> can use the length property of an array to find out how many elements there
> are in the array. In your case you have an array with 9 elements so you
> would want to use index values between 0 and 8. Note that mOnemTwo.length
> (9) is one higher than the highest index value you can use with this array
> (8). The sample code below includes an if/else block to manage index values.
> 
> 
> // initialize index 
> var index:Number = 0; 
> function goOn(){ 
>   gotoAndPlay(mOnemTwo[index]); 
>   // manage the index 
>   if(index < mOnemTwo.length - 1){ 
>   // increment index by one 
>   index++; 
>   }else{ 
>   // set index back to zero 
>   index = 0; 
>   } 
> }; 
> 
> I have to echo Karl's questions about how you are planning to make
> subsequent calls to function goOn(). What you have, setTimeout(goOn,+8),
> will kick off the first one (although I don't understand the '+8' in the
> delay parameter) but what about the rest? Any suggestions I could make here
> would be pure guesswork without knowing more about the structure of your
> file. 
> 
> HTH
> 
> Regards, 
> 
> Keith Reinfeld
> Home Page: http://keithreinfeld.home.comcast.net
> 
> 
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] RE: changing parent from child

2010-05-12 Thread allandt bik-elliott (thefieldcomic.com)
definitely - parents call public methods on children, children fire events
to inform parents to call methods

i never call parent functions from a child

a

On 11 May 2010 18:15, jonathan howe  wrote:

> As soon as you removeChild on child1, it loses the reference to the parent.
> If you want to continue on that tightly-coupled path, I would store a
> temporary reference to the parent, then unload child one and use the
> temporary reference to parent to load the new child.
>
> The design I would choose is to create an event that is broadcast from
> child1. In the parent, I would add an event listener to child1. When the
> event fires, unload 1 and load 2 from the eventlistener in parent.
>
> -jonathan
>
>
>
> On Tue, May 11, 2010 at 12:33 PM, Mattheis, Erik (MIN - WSW) <
> ematth...@webershandwick.com> wrote:
>
> > Did you mean to say removeChildAt(0)?
> >
> > Have you tried Loader.unload()?
> >
> > _ _ _
> > Erik Mattheis
> > Senior Web Developer
> > Minneapolis
> > T  952 346 6610
> > C 612 377 2272
> >
> > Weber Shandwick
> > Advocacy starts here.
> >
> > PRWeek Global Agency Report Card 2009 - Gold Medal Winner
> > The Holmes Report Global Agency of the Year
> > PR News Agency of the Year
> >
> >
> > -Original Message-
> > From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
> > flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr, Theodore
> > Sent: Tuesday, May 11, 2010 10:15 AM
> > To: Flash Coders List
> > Subject: [Flashcoders] changing parent from child
> >
> > I have a container swf - with a child... I want to have a button in the
> > child that will change the child in the parent... so if I have:
> >
> > Parent.swf>Child 1.swf
> >
> > Once I click on a button in child 1, I will have
> >
> > Parent.swf>Child 2.swf
> >
> > I have tried removeChild(0) to take out the original swf, but that only
> > seems to work once
> > ___
> > 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
> >
>
>
>
> --
> -jonathan howe
> ___
> 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] help with CameraDetection class

2010-05-12 Thread Glen Pike

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