Re: [Flashcoders] Netstream fails to close

2008-07-08 Thread Jason Van Cleave
you probably have tried this but what happens if you don't pause or close but just try to play another stream? On Sun, Jul 6, 2008 at 4:43 PM, Barry Hannah [EMAIL PROTECTED] wrote: It's mentioned by plenty of people here: http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/ht

Re: [Flashcoders] CS3 Debugger DOES NOT WORK ON OSX?

2008-07-08 Thread Alias Cummins
Ok - what's been happening for me is that I press ctrl + shift + enter, and then the CS3 IDE crashes. I've encountered this on the last 3 macs I've tried it on... This seems to be an issue for larger projects. Maybe this is the reason. Alias 2008/7/7 Irv Kalb [EMAIL PROTECTED]: Long time

[Flashcoders] How do you do this? (animating gradient fill colours)

2008-07-08 Thread Ali Drongo
Hiya, how do you think you would do this? Can anyone point me to some tutorials or give me a snippet? Cheers! Ali ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Netstream fails to close

2008-07-08 Thread Steven Sacks
Barry, FYI, I didn't just throw out an idea and pull some code out of my ass. I have tackled this exact issue for a client that needed to stop a stream from downloading when they closed the stream, and couldn't actually kill streams when the user interaction resulted in spamming new

Re: [Flashcoders] How do you do this? (animating gradient fill colours)

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
not entirely sure but it sounds like a tweenmax color matrix tween take a look at http://blog.greensock.com/ a On Tue, Jul 8, 2008 at 9:20 AM, Ali Drongo [EMAIL PROTECTED] wrote: Hiya, how do you think you would do this? Can anyone point me to some tutorials or give me a snippet? Cheers!

Re: [Flashcoders] How do you do this? (animating gradient fillcolours)

2008-07-08 Thread Ali Drongo
Thanks for your reply allandt, I can see how TweenLite could tween the color property of a movie clip but how is the gradient bit achieved? Cheers, Ali On 8 Jul 2008, at 09:39, allandt bik-elliott (thefieldcomic.com) wrote: not entirely sure but it sounds like a tweenmax color matrix tween

Re: [Flashcoders] Netstream fails to close

2008-07-08 Thread Steven Sacks
And it's worth mentioning this works for AS3 Flash Player 9.0.47 only. It does not work for AS2. The first link you provided was from 2004 with Flash Player 7. The second link didn't look like it had any solution. The third link shows how bad the bug is, and I'm well aware this was part of

Re: [Flashcoders] What's happened to my var?

2008-07-08 Thread Alistair Colling
Thanks Jiri and Hans for your replies both work great though obv Jiris has the shortest syntax. I always trip up not using the Delegate class inside my classes and weird things happen! Thanks again, Ali On 7 Jul 2008, at 17:52, Jiri Heitlager wrote: Or add onCompleteScope:this so you dont

Re: [Flashcoders] How do you do this? (animating gradient fillcolours)

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
i'm in uncharted waters here but i think you need to look at http://blog.greensock.com/colortransformproxy/ best a On Tue, Jul 8, 2008 at 9:46 AM, Ali Drongo [EMAIL PROTECTED] wrote: Thanks for your reply allandt, I can see how TweenLite could tween the color property of a movie clip but how

[Flashcoders] Basic loop problem

2008-07-08 Thread Paul Jinks
Hi I'm new to coding and I'm having a problem getting a for loop to do what I want it to. I think this is pretty basic, but I'll let you be the judge. I have a project to play through an flv which fires event cue points at certain points. At these points, text appears at the side of the video

[Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Paul Jinks
Apologies for last post: it got sent before I'd finished. That'll teach me to try to use the tab key using IMAP ;-). Here's the message again in full: I'm new to coding and I'm having a problem getting a for loop to do what I want it to. I think this is pretty basic, but I'll let you be the

Re: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Piers Cowburn
Hi Paul, Try: var len2 = cueArray.length; for (var i = 0; ilen2; i++) { mainText.htmlText += b+cueArray[i]+/bbr; } Piers On 8 Jul 2008, at 11:56, Paul Jinks wrote: Apologies for last post: it got sent before I'd finished. That'll teach me to try to use the tab key using IMAP

Re: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread jonathan howe
Hi, Paul, Currently, in each loop you are overwriting the text in the field (it's not like trace() ). If you're using AS2, use the += operator instead of = If you're using AS3, use appendText() (although I'm not currently remembering the htmlText / appendText interactions) -jonathan On Tue,

Re: [Flashcoders] Basic loop problem

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
okay - this is quite a quick one to solve the problem you're having is that you're overwriting the htmlText each iteration so you're only outputting the last iteration of the loop what you need to do is add the output of the loop iteration (that is every time the loop fires) to the htmlText as

Re: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Paul Jinks
Thanks to everyone for your help. This gets me closer to what I'm looking for. Unfortunately, there's a complicating factor: if the user scrubs across the same point in the video again, they end up with duplicates/triplicates of the list. Since we actually want people to do this, I'm looking for

Re: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
you could reset the list every time the loop is called so: var len2 = cueArray.length; mainText.htmlText = ; for (var i = 0; ilen2; i++) { mainText.htmlText += b+cueArray[i]+/bbr; } On Tue, Jul 8, 2008 at 12:32 PM, Paul Jinks [EMAIL PROTECTED] wrote: Thanks to everyone for your help.

Re: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Ashim D'Silva
You can reset your text field before you loop. That will clear it up and you can start filling it up again. textField.htmlText = ; 2008/7/8 Paul Jinks [EMAIL PROTECTED]: Thanks to everyone for your help. This gets me closer to what I'm looking for. Unfortunately, there's a complicating

[Flashcoders] AS3 - Displaying images from a directory

2008-07-08 Thread SJM - Flash
Hi Guys Is it possible to display a number of images in flash from a directory without the need for XML? SJM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Netstream fails to close

2008-07-08 Thread Jon Bradley
On Jul 8, 2008, at 3:44 AM, Jason Van Cleave wrote: I could cast the sound onto a separate object and mute it, so that you don't see or hear any ill effects, but my proxy tells me the flv is still downloading, so if one of my clients users clicks on 10 video clips their connection will crawl

RE: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Andrew Murphy
Whenever you want to out put the array you wipe the htmlText before you run the output loop: mainText.htmlText = ; for(var i:uint = 0; i cueArray.length; ++i) { mainText.htmlText += b + cueArray[i] + /b; } This might be a bit inefficient, setting the .htmlText repeatedly would, I

Re: [Flashcoders] AS3 - Displaying images from a directory

2008-07-08 Thread Hans Wichman
Hi, well there is only one other option I know (assuming that without xml you mean without any kind of scripting) and that is a consistent naming pattern. Eg: image1.jpg,image2.jpg,image3.jpg, etc This way you just keep loading the images until the first one that fails. HTH JC On Tue, Jul 8,

Re: [Flashcoders] AS3 - Displaying images from a directory

2008-07-08 Thread Rich Shupe
Flash can't retrieve the contents from a directory on its own. You don't have to use XML, but you need something similar. PHP, for example, can provide the contents of a directory in name-value pairs or straight text if you want to avoid XML. On 7/8/08 8:02 AM, SJM - Flash wrote: Is it

RE: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Andrew Murphy
Whoops. Been working in AIR for too long; whenever I see .htmlText property being set I thoughtlessly assume it's the HTML class. . Still.. I should think the same would apply; that it'd be worthwhile to avoid hammering on the TextField's .htmlText property by setting it within the output loop.

Re: [Flashcoders] AS3 - Displaying images from a directory

2008-07-08 Thread SJM - Flash
Great thanks for the advice! This should work a treat! SJM - Original Message - From: Hans Wichman To: Flash Coders List Sent: Tuesday, July 08, 2008 1:21 PM Subject: Re: [Flashcoders] AS3 - Displaying images from a directory Hi, well there is only one other option I

Re: [Flashcoders] AS3 - Displaying images from a directory

2008-07-08 Thread SJM - Flash
My problem is the flash file is going to be embeded into a templete page to be added to a CMS unfortunatly there is no option for me to use any additional XML, PHP, ASP, Pearl script etc... the way i thought it would work is the path to the images would be a flash var! SJM - Original

RE: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Paul Jinks
Thanks to everyone who replied on this, mostly with the same solution: On Tue, July 8, 2008 1:07 pm, Andrew Murphy wrote: mainText.htmlText = ; for(var i:uint = 0; i cueArray.length; ++i) { mainText.htmlText += b + cueArray[i] + /b; } Unfortunately, this doesn't fix the problem, which

[Flashcoders] NetStream's working locally, but not on a network-address

2008-07-08 Thread Sander Schuurman
Hi list, I have a Video playing in a custom player, and I encounter a strange problem. I made lots of video players allready, but now it wont playback the video off of a network-address. Variables are passed to the player, and are in the player correctly received. Tried it first in as3, and

[Flashcoders] 2D and 3D floor plans

2008-07-08 Thread Gert-Jan van der Wel
Hi list, Maybe a little spammy message, but I just wanted to let you know that we released a new version of Floorplanner that's now open for beta testers. This version has better 2D/3D integration and it's finally possible to show furniture elements in 3D (using Papervision 3D of course

Re: [Flashcoders] AS3 - Displaying images from a directory

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
you could use php in the holding page to pass the flashVars to the flash movie On Tue, Jul 8, 2008 at 2:54 PM, SJM - Flash [EMAIL PROTECTED] wrote: My problem is the flash file is going to be embeded into a templete page to be added to a CMS unfortunatly there is no option for me to use any

[Flashcoders] tracing height

2008-07-08 Thread Lehr, Theodore M (N-SGIS)
I have: _root.imageMovie.loadMovie(stepImageArray[0]); sizeImage(); function sizeImage () { trace(_root.imageMovie._height); } But I keep getting 0 I am guessing because the trace is fired before the image is loaded... how can I make sure this function does not fire until the

RE: [Flashcoders] How do you do this? (animating gradient fillcolours)

2008-07-08 Thread Jack Doyle
You can use TweenMax's ability to tween hex colors and fire an onUpdate callback that applies the new values, like this (AS3): import flash.geom.* import flash.display.* import gs.*; var gradientColors:Object = {left:0xFF, right:0xFF}; var gradientMatrix:Matrix = new Matrix();

Re: [Flashcoders] tracing height

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
you should look at movieClipLoader ( http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1998.html ) this allows you to add listeners to the loader (in your case, you should use onLoadInit) to fire a method/function On Tue, Jul 8, 2008

Re: [Flashcoders] tracing height

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
there's an example of some code if you look at the onLoadInit link http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1998.html On Tue, Jul 8, 2008 at 4:17 PM, allandt bik-elliott (thefieldcomic.com) [EMAIL PROTECTED] wrote: you

Re: [Flashcoders] How do you do this? (animating gradient fillcolours)

2008-07-08 Thread Ali Drongo
mint! thanks Jack thats great. And thanks for such a great tool :) On 8 Jul 2008, at 16:04, Jack Doyle wrote: You can use TweenMax's ability to tween hex colors and fire an onUpdate callback that applies the new values, like this (AS3): import flash.geom.* import flash.display.* import

Re: [Flashcoders] tracing height

2008-07-08 Thread Gabino Travassos
- Original Message - From: Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, July 08, 2008 8:56 AM Subject: [Flashcoders] tracing height I have: _root.imageMovie.loadMovie(stepImageArray[0]); sizeImage(); function

Re: [Flashcoders] AS3 - Displaying images from a directory

2008-07-08 Thread Rich Shupe
these should all work: --FlashVar will work if you can edit the template (still no server-side required), --a list in a text or XML file where no server interaction is required but an external file is needed (should work unless your CMS radically alters your directory structure) --a pre-defined

Re: [Flashcoders] How do you do this? (animating gradient fillcolours)

2008-07-08 Thread Rich Shupe
Hey, Jack... You sound like you know TweenMax pretty well. (Heh.) Thanks for the great work! Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] How do you do this? (animating gradient fillcolours)

2008-07-08 Thread allandt bik-elliott (thefieldcomic.com)
lol it helps when the guys that write these things are on the boards :D On Tue, Jul 8, 2008 at 4:31 PM, Rich Shupe [EMAIL PROTECTED] wrote: Hey, Jack... You sound like you know TweenMax pretty well. (Heh.) Thanks for the great work! Rich http://www.LearningActionScript3.com

[Flashcoders] Nested SWFs

2008-07-08 Thread Mike Grunwald
Hello all, I'm new to AS3 and using multiple SWFs in an application. I'm used to AS2 and 1 or 2 SWFs at max. I'm using the GAIA framework (not sure if you're all familiar) which seems to rock so far!, but I'm confused on a couple issues: I have a few SWFs that load into one another

RE: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Andrew Murphy
I'm afraid I don't understand some of your code; my direct experience with using cuepoints isn't up-to-date. Havn't used it in a couple of years. . But there is one part of your code that might be off: if (contains(texthtml, cueArray) == -1) { Shouldn't it be:

RE: [Flashcoders] tracing height

2008-07-08 Thread Lehr, Theodore M (N-SGIS)
Ok - so I have tried the following: this.createEmptyMovieClip(img_mc, 999); var my_mcl:MovieClipLoader = new MovieClipLoader(); mclListener.onLoadComplete = function(target_mc:MovieClip, status:Number):Void { trace(onLoadComplete: + target_mc); }; my_mcl.addListener(mclListener);

[Flashcoders] problem loading image

2008-07-08 Thread Gustavo Duenas
Hi Coders, I have this problem, I have this code for a viewer, some sort of slide show, everything works fine, but the part of the complete, I don't know but seems fine for me, when it come to that code, it can't add the child, why? this is my code. I hope you could help me out. Gus:)

[Flashcoders] loading image problem: solved

2008-07-08 Thread Gustavo Duenas
I Have it!, dumb me, I've just forgotten to add contentLoaderInfo to the pic.addEventListener. It seems that I was doing this the same way I do with the text files. Bye. :) Gustavo A. Duenas ___ Flashcoders mailing list

Re: [Flashcoders] tracing height

2008-07-08 Thread Gabino Travassos
According to the help files you need: var mclListener:Object = new Object(); - Original Message - From: Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tuesday, July 08, 2008 1:09 PM Subject: RE: [Flashcoders] tracing height

Re: [Flashcoders] tracing height

2008-07-08 Thread Fabio Pinatti
On Tue, Jul 8, 2008 at 4:09 PM, Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] wrote: Ok - so I have tried the following: this.createEmptyMovieClip(img_mc, 999); var my_mcl:MovieClipLoader = new MovieClipLoader(); mclListener.onLoadComplete = function(target_mc:MovieClip, status:Number):Void

Re: [Flashcoders] tracing height

2008-07-08 Thread Fabio Pinatti
On Tue, Jul 8, 2008 at 4:43 PM, Gabino Travassos [EMAIL PROTECTED] wrote: According to the help files you need: var mclListener:Object = new Object(); - Original Message - From: Lehr, Theodore M (N-SGIS) [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] Netstream fails to close

2008-07-08 Thread Barry Hannah
FYI, When I post to this list I'm openly and honestly explaining my situation. I would never suggest that someone with as much experience as yourself 'pulled code out of their ass'. I have a fair bit of experience myself and it wasn't working for me. The links I included were simply to illustrate

Re: [Flashcoders] tracing height

2008-07-08 Thread Gabino Travassos
snip I suggest you use onLoadInit instead onLoadComplete, because onLoadInit is dispatched after content was fully loaded and initialized. Gabino, use this code and you'll be able to get the dimensions of your loaded movie as soon image is loaded. Best, /snip Fábio, Yeah, that is much better

RE: [Flashcoders] Basic loop problem (with end of message)

2008-07-08 Thread Paul Jinks
Andrew Yes, that was it. If I wasn't so relieved to have this working I'd be hiding in shame. What can I say except thank you. I spent the best part of a day with that code and have no idea how the inverted commas got there. Once again, many thanks Paul On Tue, July 8, 2008 7:31 pm, Andrew

[Flashcoders] Where to upgrade the Flash IDE test player?

2008-07-08 Thread Benicio del Toro
Hi, I've got FP 9.0.45.0 installed now that is used by Flash IDE when testing. I need to upgrade it, but I can't locate the test player on my disk. (I've got latest versions of flash players in IE and FF). regards Konrad ___ Flashcoders mailing list