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

2006-11-02 Thread Carl Welch
Hi, I am trying to send an URL query string to AS 3: heres the string: http://someurl/track_visualizer.php?process=foo.mp3&myTable=bar I found this example (12th item down): http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/ Now, I suck at using classes (at the moment) and would

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

2006-11-02 Thread Carl Welch
Hi, I am trying to send an URL query string to AS 3: heres the string: http://..xxx/track_visualizer.php?process=foo.mp3&myTable=bar I found this example (12th item down): http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/ Now, I suck at using classes (at the moment) and

Re: [Flashcoders] Tween question

2006-11-02 Thread Hans Wichman
Hi, there is another workaround, although i'd not recommend it, but knowing the trick involved might be nice though:). You can 'record' all the movieclips positions in array, by visiting each frame in the first frame. In other words, in a single onEnterFrame (the first prob), you could gotoAndSto

Re: [Flashcoders] terminating hotspots etc

2006-11-02 Thread :: joshua
hey mike. gonna sit with it and give it a whirl...see what i can make of it. appreciate the help...fingers crossed. cheers. joshua forstot On Nov 2, 2006, at 4:39 PM, Mike Keesey wrote: Well, the easiest way to shut off all hotspots (and it's kind of a hack, but a pretty useful one) is

Re: [Flashcoders] Tween question

2006-11-02 Thread Zeh Fernando
All works fine until I also try to move that mc horizontally using actionscript and the ._x property, the timeline motion tween stops working, the mc moves horizontally but not vertically. Is this just Flash's normal behavior, that moving an object using actionscript means that the timeline will b

Re: [Flashcoders] Extending MovieClip without touching the Library

2006-11-02 Thread Peter Hall
This trick came from my blog post a couple of years ago: http://www.peterjoel.com/blog/?archive=2004_01_01_archive.xml It is stable in the future because it relies on the Flash Authoring compiler, and not on anything in the player. AS2 compiling won't be changing ever - and even if it does, you c

[Flashcoders] Extending MovieClip without touching the Library

2006-11-02 Thread Trevor Burton
Morning List! I've been asked to take a look at this: http://osflash.org/flashcoders/as2#creating_a_class_instance_based_on_moviec lip_without_a_symbol_in_the_library and find out whether: "the suggested implementation in the link is not a "hack" that relies on a bug in the Flash pl

[Flashcoders] Tween question

2006-11-02 Thread Mike O'Grady
Hi, I've got a motion tween in the timeline that simply moves a mc vertically (about 30 pixels) and then back again. All works fine until I also try to move that mc horizontally using actionscript and the ._x property, the timeline motion tween stops working, the mc moves horizontally but not ve

[Flashcoders] Recommended encoding rates for FLV?

2006-11-02 Thread Bjorn Schultheiss
This man is an authority on the issue. http://flashvideo.progettosinergia.com/ Regards,   Bjorn Schultheiss -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Reuben Stanton Sent: Friday, 3 November 2006 2:19 PM To: Flashcoders mailing list Subject: [Flash

[Flashcoders] Recommended encoding rates for FLV?

2006-11-02 Thread Reuben Stanton
I'm after some recommendations for encoding FLV files - we'll be delivering for two connections speeds - 256k and 1mb, in a you-tube style interface. What would the list recommend as the ideal kbps, audio data rate, codec ect? I'm pretty new to flash video. ___

RE: [Flashcoders] OT conver java code to flash

2006-11-02 Thread Mike Keesey
> -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Paul Steven > Sent: Thursday, November 02, 2006 3:15 PM > To: 'Flashcoders mailing list' > Subject: RE: [Flashcoders] OT conver java code to flash > > Thanks Jim > > It is AS2, and the con

RE: [Flashcoders] terminating hotspots etc

2006-11-02 Thread Mike Keesey
Well, the easiest way to shut off all hotspots (and it's kind of a hack, but a pretty useful one) is to throw a big, invisible button with property useHandCursor set to false over everything. That won't work for motion, though. For motion the most elegant solution is probably to use a singleton Ev

RE: [Flashcoders] Copy Constructor

2006-11-02 Thread Mike Keesey
A call to super() is not required unless you are passing arguments to the superclass' constructor. Nor is it required that you specify that you are extending Object. (If you don't specify a superclass, it assumes Object.) I just do it that way because I'm anal about my code. ;) Calling super() cal

[Flashcoders] terminating hotspots etc

2006-11-02 Thread :: joshua
hey everyone. ok heres the situation: i have a flash site that I would like to terminate all functionality to when a "help" panel comes up. essentially shutting off all hotspots and motion mc's. would there happen to be an "easy" way to make this happen... im afraid i know the answer to thi

RE: [Flashcoders] Copy Constructor

2006-11-02 Thread Paul Steven
Thanks a million Mike, that works perfectly. I now have a chance of getting this game up and running by the morning. One question though. I commented out the super(); after reading the following: The super() call in the constructor class is not required because Flash handles this for you in AS2,

[Flashcoders] Streaming video issue

2006-11-02 Thread bruce
Hi, I'm trying to stream videos off an FMS account with Influxis! Since I'm new at this I was looking for some tutorials and came across this one: http://www.adobe.com/devnet/flash/articles/video_player.html. I just need to integrate this into my application which plays local and progressive vid

RE: [Flashcoders] Copy Constructor

2006-11-02 Thread Mike Keesey
Maybe I'm not quite getting the concept, but a "copy constructor" should be a constructor that copies data from another object to the object being created, right? And (I think) the original poster wanted to know how to overload constructors in ActionScript so as to have a default (argument-less) co

RE: [Flashcoders] OT conver java code to flash

2006-11-02 Thread Paul Steven
Thanks Jim It is AS2, and the context is below. Btw what is the difference between Math.rand() and Math.random()? // --- // If two moves are equally good, make a random choice // --- if (goodness == b

RE: [Flashcoders] Copy Constructor

2006-11-02 Thread Steven Sacks | BLITZ
How about this? class Test { var foo:String; var bar:String; function Test(initObj:Object) { for (var a:String in initObj) { this[a] = initObj[a]; } } public function get data():Object {

RE: [Flashcoders] Copy Constructor

2006-11-02 Thread Mike Keesey
I might do it like this: class mypackage.Connect4State extends Object { public function Connect4State(state:Connect4State) { super(); if (state instanceof Connect4State) { copy(state); } else {

RE: [Flashcoders] OT conver java code to flash

2006-11-02 Thread jim
Which version of actionscript? And in whats the context? The only thing that dosnt look like it will directlty port over is the rand.nextInt() but you can use Math.rand() the rest is basic maths stuff you can do in actionscript. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL P

RE: [Flashcoders] playing audio filetypes other than mp3?

2006-11-02 Thread Mark R. Jonkman
Hi Josh Assuming that you can actually control the qt plugin itself using Javascript, then you should be able to do everything you are asking by simply using ExternalInterface or whatever the Flash 9 (AS3) equivalent is to talk bidirectionally between Flash and JavaScript in the webpage. Sincere

RE: [Flashcoders] Copy Constructor

2006-11-02 Thread Paul Steven
Perhaps it is easier if I explain what I need: I am rewriting some Java code into AS2. Basically I have a class called Connect4State class Connect4State { public function Connect4State() { // - // Initialize the board array

RE: [Flashcoders] Q:Justifying Flash 8 Content

2006-11-02 Thread Steven Sacks | BLITZ
> (For the main thread, people usually decide what features their > application might need, and then balance that against the trends in > capability among their own audience.) MySpace requires Flash 9 Player, You Tube requires Flash 8 (last I checked). They seem to have no problems getting people

RE: [Flashcoders] Flash Print Function and Callbacks ?

2006-11-02 Thread Merrill, Jason
>>Flash doesn't have access to the operating system on any platform. In this particular sense of the PrintJob class, that may be true, but there are things like the FileReference class which will allow you limited OS access (controlled by the user) to say browse to a file, select it, and upload it

RE: [Flashcoders] Music visualisation in Flash 9

2006-11-02 Thread Paul Steven
Thought as much! I have managed to do this for a projector using Director and the tactile xtra but I really need an online version. Maybe AS4 will do it:) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Wood-Mitrovski Sent: 02 November 2006 21

Re: [Flashcoders] Q:Justifying Flash 8 Content

2006-11-02 Thread John Dowdell
Steven Sacks | BLITZ wrote: You can still make banner ads and cartoons with Flash 4. That's what Flash is used for right? So I've read ;-) (For the main thread, people usually decide what features their application might need, and then balance that against the trends in capability among

RE: [Flashcoders] OT conver java code to flash

2006-11-02 Thread Paul Steven
Thanks Mark I did see that but it involves installing Eclipse and a few other things and I have a rather tight deadline of tomorrow so didn't want to spend a few hours working out how to use a new app. Will look into it after I finish this though Paul -Original Message- From: [EMAIL PROT

Re: [Flashcoders] Useful Ascii codes:

2006-11-02 Thread eric dolecki
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 :) On 11/1/06, eric dolecki <[EMAIL PROTECTED]> wrote: > > Oh man... i wish i had seen that... thanks for the link!

RE: [Flashcoders] Getting a press for regular key...

2006-11-02 Thread James Booth
Actually, on top of that, I think isDown checks the Key Code which would be 65. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Booth Sent: Thursday, November 02, 2006 4:15 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Getting a pres

Re: [Flashcoders] playing audio filetypes other than mp3?

2006-11-02 Thread Josh Santangelo
Yeah, I don't think I'm quite hardcore enough to write my own audio decoder. Plus this particular application could have a number of audio file formats thrown at it, so I don't think that's really a practical approach. Unfortunately that's the most crucial part of this app, so if I can't

RE: [Flashcoders] Getting a press for regular key...

2006-11-02 Thread James Booth
Could it be the case of your variable? KEY_a versus Key_a -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki Sent: Thursday, November 02, 2006 8:51 AM To: Flashcoders mailing list Subject: [Flashcoders] Getting a press for regular key... I ha

Re: [Flashcoders] Music visualisation in Flash 9

2006-11-02 Thread Martin Wood-Mitrovski
Paul Steven wrote: Haven't looked into AS3 yet but seeing this thread I wonder if it is possible to change the pitch of dynamically loaded mp3 files in "real time"? im 99% certain the answer is no. if there is a way i would love to know how. :) __

[Flashcoders] Getting a press for regular key...

2006-11-02 Thread eric dolecki
I have this: var KEY_a:Number = 97; function myOnKeyDown():Void { trace( Key.isDown(Key_a)); }; var keyListener:Object = new Object(); keyListener.onKeyDown = myOnKeyDown; Key.addListener( keyListener ); When I press the "a" key - I get a false. What is the proper shortcut code in the myOnK

RE: [Flashcoders] Music visualisation in Flash 9

2006-11-02 Thread Paul Steven
Haven't looked into AS3 yet but seeing this thread I wonder if it is possible to change the pitch of dynamically loaded mp3 files in "real time"? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Wood-Mitrovski Sent: 02 November 2006 20:49 To: Flashc

Re: [Flashcoders] Scaling problem while loadingexternaljpeg'sin theMovie Clip

2006-11-02 Thread Yehia Shouman
function loadImage(image){ this.holder.loadMovie(image); var imageLoaded:Boolean=false; this.onEnterFrame = function() { imageLoaded=this.holder.getBytesLoaded()== this.holder.getBytesTotal(); if (this.holder._width>0 && this.holder._height>0 && imageLoaded) {

Re: [Flashcoders] OT conver java code to flash

2006-11-02 Thread Mark Winterhalder
Paul, maybe this will make your work easier: As for the code snippet, I have no idea what 'rand' is. Other than that, it's exactly the same in ActionScript. Mark On 11/2/06, Paul Steven <[EMAIL PROTECTED]> wrote: Not familiar with Java code but trying to rewrite som

Re: [Flashcoders] OT conver java code to flash

2006-11-02 Thread slangeberg
Probably similar to: var bestXPos:Number; var numOfEqual:Number = (??); //whatever you set it to.. if ( Math.abs( random() ) % 1 < (1 / numOfEqual ) ) { bestXPos = i; } On 11/2/06, Paul Steven <[EMAIL PROTECTED]> wrote: Not familiar with Java code but trying to rewrite some c

Re: [Flashcoders] Music visualisation in Flash 9

2006-11-02 Thread Martin Wood-Mitrovski
Jake Prime wrote: Hi I have just been asked about the possibility of making an app which will play MP3s, and display visual effect to match it. Does this sound like something that is possible in AS3? Its easy in AS3, just look up Sound.computeSpectrum in the reference. you'll also find code

Re: [Flashcoders] Flash Reomoting Service not connecting

2006-11-02 Thread Liam Mincy
I am accesing the SWF inside of a .NET page but it is just putting it on the page. Nothing special there. The issue I am seeing now is that it seems that my MX04 movie just blows up when loaded in Flash Player 9 it seems. Seems to work well and without flaw in Player 8. Still working on this on

Re: [Flashcoders] Music visualisation in Flash 9

2006-11-02 Thread slangeberg
RE your points: - being able to load and play an MP3 from the users harddrive You'll need an executable wrapper. - converting the MP3 to PCM format - analysing the PCM for volume / tempo (and possibly frequency) Not sure if these are necessary, as I believe what you need is within the AS

RE: [Flashcoders] OT (sort of) CD Protection

2006-11-02 Thread Laurie Jensen
I now use Star-force from www.star-force.com. That's a high level CD copy protection system that provides similar functionality to Macrovision's SafeDisk. I don't know whether Flash will be OK or not. There's also some others like Sony's securom. Alternatively you can use a wrapper type system

[Flashcoders] OT conver java code to flash

2006-11-02 Thread Paul Steven
Not familiar with Java code but trying to rewrite some code in Flash. Anyone convert this line to flash actionscript please if (Math.abs(rand.nextInt()) % 1 < (1 / numOfEqual)) bestXPos = i; Thanks Paul ___ Flashcoders@chattyf

Re: [Flashcoders] AS 3 - lockroot

2006-11-02 Thread Meinte van't Kruis
since there's no root in as3, i wouldnt know what lockroot is supposed to do, what are you trying to accomplish? Meinte On 11/1/06, Dave Geurts <[EMAIL PROTECTED]> wrote: Does anybody know anything about implementing something similar as lockroot for as3. The only thing I have found in my sea

[Flashcoders] Music visualisation in Flash 9

2006-11-02 Thread Jake Prime
Hi I have just been asked about the possibility of making an app which will play MP3s, and display visual effect to match it. Does this sound like something that is possible in AS3? As I see it the issues are: - being able to load and play an MP3 from the users harddrive - converting the MP3 to

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

2006-11-02 Thread grimmwerks
It's time for one of those brainfarts. I'm trying to position a textField's bottom in line with other textfields; I've added leading to all the textField's so my math is now off. All the single-line textFields are positioned properly, but the mutli-line textfields are not. In the one I'm testin

[Flashcoders] Flash Reomoting Service not connecting

2006-11-02 Thread Liam Mincy
Thanks for the code Mat, but this is just about what I have in my movie except you use an object to hold the listener functions while I just use functions. What I have found after much a sleepless night is that the movie plays and executes fine in Flash Player 8 and Player 7 but just fails mise

[Flashcoders] Shared fonts, linkage and Arabic

2006-11-02 Thread Danny Kodicek
I can't believe I'm still having problems with this. I need to get a shared font symbol to include Arabic characters (and indeed any characters). So I've got my shared library called sharedFontLib. In it, I've created a font symbol called sharedFont. Now, if I leave linkage off, this font works pe

[Flashcoders] Copy Constructor

2006-11-02 Thread Paul Steven
Hi there Is there an equivalent of the Java Copy constructor in Flash AS2? Thanks Paul ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought

RE: [Flashcoders] Flash Print Function and Callbacks ?

2006-11-02 Thread Steven Sacks | BLITZ
Flash doesn't have access to the operating system on any platform. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Softw

[Flashcoders] OT (sort of) CD Protection

2006-11-02 Thread Chuck.Lewis
Sorry for the OT, but I just found out the SafeDisc from Macrovision is unable to apply CD duplication to a product I created with Flash. Does anyone have suggestions or products used for protecting against CD duplication? This does not have to be a super hard core solution since our target a

[Flashcoders] major cache issues --> browser and ASO? --> insanity sets in.

2006-11-02 Thread dnk
Hi there.. I have a movie that loads other swf's that make remoting calls. Now i have a FLA where I removed some text fields, and then added some as well as modifying my class to react with these fields. Now I have deleted my ASO folder, cleared my browser cache, deleted the old file from my

[Flashcoders] getTextSnapshot() Highlighting Disappears

2006-11-02 Thread Leif Wells
Greetings Flashcoders, I am trying to implement text search capability in a project using getTextSnapshot() to get all the text in an externally loading SWF and running code that loops through and highlights found words, i.e. if you type in "the" then all the text that has "the" in it gets highli

RE: [Flashcoders] Flash Print Function and Callbacks ?

2006-11-02 Thread Mike Keesey
Pretty sure you can't. Just noticed something odd whil looking at the documentation on AS3.0's ProntJob class (http://livedocs.macromedia.com/flex/2/langref/)--it extends EventDispatcher, yet it doesn't have any documented events. Vot der hey? ― Mike Keesey > -Original Message- > From: [E

Re: [Flashcoders] Useful Ascii codes:

2006-11-02 Thread Meinte van't Kruis
lol.. well, still nice of you tho :) On 11/1/06, eric dolecki <[EMAIL PROTECTED]> wrote: Oh man... i wish i had seen that... thanks for the link! On 11/1/06, Michael Stuhr <[EMAIL PROTECTED]> wrote: > > eric dolecki schrieb: > > I never wanna do this again, and you probably don't either, s

RE: [Flashcoders] How can I get a string in a date object ?

2006-11-02 Thread Sander van Surksum
Thanks I've already fixed it This is the string I get from php tijdAlles=2006:11:02:08:39:40& This is the function function checkTime(){ trace(this); var s_date = this.tijdAlles; function dateStringToObject(dateString){ var date_ar = dateStr