[Flashcoders] Re: Url query-string in Actionscript 3 (Flash 9 Public Alpha)

2006-11-03 Thread Carl Welch
nevermind, solved it (or atleast came up with something that works): I found this: http://desdev.blogspot.com/2005/10/getting-querystring-params-to-flash_07.html and is AS3 I used this: try { var keyStr:String; var valueStr:String; var paramObj:Object =

[Flashcoders] setNewTextFormat and textField.variable

2006-11-03 Thread Danny Kodicek
Does setNewTextFormat not work for text that's set by means of the textField.variable property? I've got a bunch of fields here and no matter what combination of setTextFormat / setNewTextFormat I use, they seem to be reverting back to their original format when I change the value of the

[Flashcoders] Create working copy of dynamic flash site

2006-11-03 Thread mArsmAn
I recently made a flash website based on AMFPHP, so all my content is dynamic. But now I have to put the same website on a CD, with all the content that you now see online. So I need a static copy of my dynamic website. Isn't there a way to take somekind of working screenshot? Like you can do

Re: [Flashcoders] Local Flash Cache I don't know about?!

2006-11-03 Thread Joseph Balderson
Try Control Delete ASO Files, or Control Delete ASO Files and Test Movie __ Joseph Balderson, Flash Platform Developer http://www.joeflash.ca | 416-768-0987 Writing partner, Community MX | http://www.communitymx.com Consultant, New

Re: [Flashcoders] setNewTextFormat and textField.variable

2006-11-03 Thread Joseph Balderson
I wrote a few tutorials on Community MX a while back that cover this very issue, if you're interested. Disclaimer: the articles cost $5. http://www.communitymx.com/content/article.cfm?cid=3519C http://www.communitymx.com/content/article.cfm?cid=0D80B At the end of it all you get a nice-n-easy

RE: [Flashcoders] setNewTextFormat and textField.variable

2006-11-03 Thread Merrill, Jason
Curious, why are you using the Textfield.variable property? I would recommend making the switch over to textfield.text or textField.htmlText so as to avoid any complications and do it the Actionscript way. Jason Merrill Bank of America Learning Organizational Effectiveness

[Flashcoders] Explain Classid and Codebase to me

2006-11-03 Thread Merrill, Jason
Can someone explain what classid and codebase are used for in embedding ActiveX controls in a webpage? Why are they necessary and where do they come from? We have an activeX control (A flash player wrapper) which is acting up on certain severs but not others, and I'm trying to track down why.

RE: [Flashcoders] OT conver java code to flash

2006-11-03 Thread jim
It is Math.random() sorry. The Math.random() function returns a number between 1 0. The Java function that you are using returns a random integer or whole number, I don think there is an upper bound to it. The rest of your function is getting the modulus of the random number which in fact is

RE: [Flashcoders] OT conver java code to flash

2006-11-03 Thread jim
Yeah, sorry got my code mixed up, its Math.random() not Math.rand(). My mistake. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Keesey Sent: 03 November 2006 00:50 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] OT conver java code to

Re: [Flashcoders] OT conver java code to flash

2006-11-03 Thread Chris Benjaminsen
Hi Paul Actually Math.random always return a positive number between 0 and 1 so you can further simplify to: if (Math.random() .5) { bestXPos = i; } /Chris Paul Steven wrote: Thanks Jim. I was curious as I have seen Math.rand() mentioned on various flash forums and even on one of the

RE: [Flashcoders] OT conver java code to flash

2006-11-03 Thread jim
Its not quite just a random choice. I think that the other variables affect what is happening here. The numOfEqual is filtering the returned number to make sure that the bestXPos is always larger than the last one (I think) So if we take this and enter some actual values on say the third loop

RE: [Flashcoders] OT conver java code to flash

2006-11-03 Thread jim
That is true, and its true in the Java code too, as the rand.nextInt() will always return an integer which must be positive. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Benjaminsen Sent: 03 November 2006 13:42 To: Flashcoders mailing list

RE: [Flashcoders] OT conver java code to flash

2006-11-03 Thread Paul Steven
Thanks Jim, I had overlooked that fact and is probably why the game is not behaving correctly. Just to clarify, does it still need the % operator. The java code is: if (Math.abs(rand.nextInt()) % 1 (1 / numOfEqual)) bestXPos = i; } And what you suggested was: var

Re: [Flashcoders] math for getting textField's line number? ie height/(font.size+font.leading) ??

2006-11-03 Thread Ray Chuan
Hi, are you sure negative leadings are allowed? I've tried and don't see any difference. I'm guessing lineCount should be an integer, so you should use: Math.floor(ht/(size+leading)) Assuming leading0. On 11/3/06, grimmwerks [EMAIL PROTECTED] wrote: It's time for one of those brainfarts.

Re: [Flashcoders] Useful Ascii codes:

2006-11-03 Thread Ray Chuan
Perhaps you want to modify the intrinsic file Key and add dynamic? On 11/2/06, eric dolecki [EMAIL PROTECTED] wrote: That adding property thing to the Key object doesn't work in F8 compiling does it? On 11/2/06, Meinte van't Kruis [EMAIL PROTECTED] wrote: lol.. well, still nice of you tho

[Flashcoders] Q:Framework ARP vs PixLib

2006-11-03 Thread moveup
Hi I'd like to adopt a coding framework that is scalable and that is flexible enough to work with on a huge variety of projects. Has anyone on the list compared PixLib and ARP? Do both offer good implementations of MVC? I've heard good things about both but haven't used either yet. Is one

Re: [Flashcoders] Q:Justifying Flash 8 Content

2006-11-03 Thread Robert r. Sanders
The two sites you mention are public sites; if they drive 10% of their potential audience away, but receive 20% more benefit (e.g. retaining the most loyal viewers, lowing bandwidth costs with newer codec, etc...) by doing so then it makes sense. For intra-net type or b2b type sites the

RE: [Flashcoders] setNewTextFormat and textField.variable

2006-11-03 Thread Danny Kodicek
Curious, why are you using the Textfield.variable property? I would recommend making the switch over to textfield.text or textField.htmlText so as to avoid any complications and do it the Actionscript way. Various reasons. Most obviously, I've got a fair number of fields referencing the

[Flashcoders] Flash Player 9 Detection in IE using SWFObject

2006-11-03 Thread Jeff Fox
I'm using SWFobject to embed Flash in my sites and recently discovered that it does not detect Flash PLayer 9 in IE on XP. I was wondering if anyone else has come across this bug as has a possible workaround/solution. I've seen that this is a shortcoming in the Flash ActiveX control and not

[Flashcoders] AS Tweening. Approach to prevent tween clashing?

2006-11-03 Thread Kevin Cannon
Hi All, I've been building sites with laco's tweens for a good while. Occasionally I've come accross problems when you click on buttons really fast in sucession. If one item is still tweening you can end up with unpredictable results. Does anyone have any advise on what approach I can take to

[Flashcoders] Q:replace audio track in a FLV

2006-11-03 Thread moveup
Hi I have an urgent request to add a new soundtrack to an existing FLV which exists within a fla So, I need to 1) extract/delete the existing audio and replace with the new audio or b)extract/delete the existing audio, re encode with FLV SANS audio and add the new audio as a streaming track

Re: [Flashcoders] Q:replace audio track in a FLV

2006-11-03 Thread Guy McLoughlin
Hi Jim, At 11:43 AM 03/11/2006, [EMAIL PROTECTED] wrote: 1) extract/delete the existing audio and replace with the new audio Look for tools to convert the FLV into an editable video format ( i.e. AVI or MOV format ), then you can go to town using a standard NL video editor app. Will

RE: [Flashcoders] AS Tweening. Approach to prevent tween clashing?

2006-11-03 Thread Toby
Am quite busy so I can only give a quick answer, but I believe there is documentation provided with laco on 'stopTween()' or similar. I personally don't use this much, and tend to disable buttons that would allow a user to clash animations. Hth, Toby -Original Message- From: [EMAIL

RE: [Flashcoders] AS Tweening. Approach to prevent tween clashing?

2006-11-03 Thread Ryan Potter
I have run into similar problems with tweens and I fixed it by stopping the tweens before I start them on every button. Inside your event handler: Tweenname.stop(); Tweenname.start(); Or Tweenname.stop(); Tweenname = new Tween(prop, prop); I don't use lacos tweens by themselves so I don't

Re: [Flashcoders] AS Tweening. Approach to prevent tween clashing?

2006-11-03 Thread Kevin Cannon
Hi Toby, Thanks for the reply, even quick pointers are welcome. :) I've been disabling buttons too when I can, but even still I find there's time when someone needs to switch between one section and another and it causes problem. I'll check out that stopTween function and see if it can help me.

Re: [Flashcoders] AS Tweening. Approach to prevent tween clashing?

2006-11-03 Thread slangeberg
Yeah, i do similar. Keep references to tweens and check them in the function call (this is MM's Tween): var t:Tween; . . . function hideButton( _btn:MovieClip ) { if ( t ) { t.stop(); } t = new Tween( _btn, _alpha, mx.transitions.easing.Strong.easeOut, _btn._alpha, 0,

RE: [Flashcoders] Copy Constructor

2006-11-03 Thread Paul Steven
Seem to be having problems with this still. It seems like every time I change a value in the main constructor objects array, it also changes the array values in the copies. Are these copies essentially just pointers to the same array? Basically the reason I need copies is so it can simulate

[Flashcoders] Recommended encoding rates for FLV?

2006-11-03 Thread Clark, Craig
I have been using video in Flash since it was first introduced. So I will tell you what I know from my experience. I agree with Bjorn. The website he suggests is a great resource. I will also point you to a website that allows you to make a side by side comparison of codecs and bitrates.

RE: [Flashcoders] Copy Constructor

2006-11-03 Thread Paul Steven
I think the problem may be that I am recursively creating the copies. Here are the two classes in full if anyone would be kind enough to see if they can help. Been on this all day and have made no progress http://www.mediakitchen.co.uk/Connect4Engine.as

RE: [Flashcoders] OT conver java code to flash

2006-11-03 Thread Mike Keesey
-Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Chris Benjaminsen Sent: Friday, November 03, 2006 5:42 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] OT conver java code to flash Hi Paul Actually Math.random always

RE: [Flashcoders] Copy Constructor

2006-11-03 Thread Paul Steven
Doing a trace I can see the copies are being affected as if they are references. I was under the impression that array.concat() made a unique copy of an array - is this not true? Here is what I traced: var tempState:Connect4State = new Connect4State(state); trace (Original board = +

RE: [Flashcoders] Copy Constructor

2006-11-03 Thread Paul Steven
Sorry meant to paste in the trace results: Original board = 0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 2,2,2,2 tempState.board = 0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 2,2,2,2 Then after tempState.board[2][2] = 5; These

RE: [Flashcoders] Copy Constructor

2006-11-03 Thread Steven Sacks | BLITZ
Are these copies essentially just pointers to the same array? Yes. You need to clone the objects/arrays, not just set pointers. var newArray:Array = []; var i:Number = oldArray.length; while (i--) { newArray[i] = oldArray[i]; } return newArray; If you're storing objects in the array

RE: [Flashcoders] setNewTextFormat and textField.variable

2006-11-03 Thread Steven Sacks | BLITZ
IMO, there's nothing wrong with using TextField.variable. It has its time and place and can be used properly. Just because it's overused by novices doesn't make it a bad thing, just like bevels and dropshadows in Photoshop aren't always a bad thing either. Of course, Lens Flare is a different

RE: [Flashcoders] Copy Constructor

2006-11-03 Thread Mike Keesey
I don't see anything wrong after a (very) cursory glance. One red flag, though, is that you are making your variables public. This means there could be code elsewhere that sets them to be identical to each other. Because of issues like this, I think it's a good practice never to make variables

RE: [Flashcoders] Copy Constructor

2006-11-03 Thread Paul Steven
Thanks a million Mike, I will give that a go Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Keesey Sent: 03 November 2006 19:32 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Copy Constructor I don't see anything wrong after a

Re: [Flashcoders] Recommended encoding rates for FLV?

2006-11-03 Thread Sean Scott
Check out FFMPEG and On2 Flix Encoder. HTH On 11/3/06, elists [EMAIL PROTECTED] wrote: Clark et al, Are there any commercial enterprise level transcoders that can product acceptible FLV files from DV or MPG2 files? I have a TV station wanting to build a searchable interface to a video

[Flashcoders] [ot-ish] Screen recording software for Windows?

2006-11-03 Thread Josh Santangelo
I'm usually a Mac guy and have lots of fun with SnapzProX, but I need something similar for recording on-screen interactions to video files in Windows. Preferably I'd like to be able to get big, uncompressed video files out of it for later editing. Does anyone have a favorite for this sort of

RE: [Flashcoders] Recommended encoding rates for FLV?

2006-11-03 Thread elists
Sean, Thanks - I'll look into those. -mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Scott Sent: Friday, November 03, 2006 2:09 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Recommended encoding rates for FLV? Check out FFMPEG

RE: [Flashcoders] AS Tweening. Approach to prevent tween

2006-11-03 Thread Jack Doyle
I'm not sure about other tweening engines, but the one I wrote (TweenLite) automatically overwrites tweens that affect the same object/MovieClip to prevent collisions unless you flag it not to. I found that I almost always needed it to overwrite existing tweens, so I made that the default behavior

Re: [Flashcoders] [ot-ish] Screen recording software for Windows?

2006-11-03 Thread Robert r. Sanders
For years we've used HyperCam its about $40 - http://www.hyperionics.com/hc/ You might also try BB FlashBack the express version is cheap ($40), but lacks the editor that the full version has (but if you export to AVI from the recorder then you won't care). The 'native' compression format of

Re: [Flashcoders] AS Tweening. Approach to prevent tween

2006-11-03 Thread Eskil Janson
You can also alter the Tween class (by creating an own version from, or extending the mx.transitions.Tween Class) and make it possible to disable. I have found this to be the most reliable way to get around the problem, since stop(), or deleting the Tween will not always work for some reasons.

[Flashcoders] Slower after cleared interval

2006-11-03 Thread Gosselin, Robert
Hi, I am using a one movieClip loader object to load multiple swf. I am also using an interval to preload all off my elements, one after each other. I have two problems resulting from the preloading. 1. Seem like when a export the movie an test without simulating the bandwith, flash canĀ¹t clear

Re: [Flashcoders] AS Tweening. Approach to prevent tween

2006-11-03 Thread Moses Gunesch
That's all so complex.. Still rolling your own huh? The latest ZigoEngine will automatically overwrite a similar property tween when a new one is called. (Like: tweening the _alpha of the clip down on rollout will kill a runnging _alpha tween from your onrollover event.) If you want to

[Flashcoders] Any success with using ExternalInterface with SCORM2004 API?

2006-11-03 Thread Clark, Craig
Has anyone out there been successful in using ExternalInterface to get data from an LMS back into Flash? ExternalInterface works great when I want to set a value but I cannot get it to successfully get a value. In Internet Explorer I get an error stating that the Object does not support that

Re: [Flashcoders] Any success with using ExternalInterface with SCORM2004 API?

2006-11-03 Thread Andrei Thomaz
hello Craig, some months ago, I worked with the scripts written by Alan Schultz. Originally, they worked with fscommand(), but I ported it to use ExternalInterface. I don't remember very well (I haven't worked with e-learning stuff in last months) but maybe the code is useful. I am going to send

Re: [Flashcoders] Any success with using ExternalInterface with SCORM2004 API?

2006-11-03 Thread Anthony Lee
Hi Craig Andrei, Hopefully when this project [http://edumatic.net] starts moving again it will help to centralize this kind of information. There's already a lot in the archive. I worked with the scripts written by Alan Schultz. Originally, they worked with fscommand(), but I ported it to

Re: [Flashcoders] OT conver java code to flash

2006-11-03 Thread Igor Costa
You can use the Open-Source Framework http://carbonfive.sourceforge.net/astranslator/api/com/carbonfive/flash/package-summary.html#documentation Regards. On 11/3/06, Mike Keesey [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL

Re: [Flashcoders] Create working copy of dynamic flash site

2006-11-03 Thread KenM
Hi Maarten, The first idea I had with your question would be to try exporting an XML flat file of your website from the database, and using that as your new data source on CD. Cheers, Ken mArsmAn wrote: I recently made a flash website based on AMFPHP, so all my content is dynamic. But