Re: [Flashcoders] Text Editor Undo/Redo Stack

2007-09-12 Thread Muzak
Use javascript: //HTML script language=javascript function getClipBoardText() { var t = window.clipboardData.getData(TEXT); return t; } /script //FLASH import mx.utils.Delegate; import flash.external.ExternalInterface; function pasteClickHandler(evt:Object):Void { var t:Object =

Re: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Muzak
What is stored in the Array? - Original Message - From: [EMAIL PROTECTED] To: Flash Coders flashcoders@chattyfig.figleaf.com Sent: Tuesday, September 11, 2007 5:30 AM Subject: [Flashcoders] toString(aArray[i]) ?? does this work Quick question, can I toString an array element. ie:

RE: [Flashcoders] Text Editor Undo/Redo Stack

2007-09-12 Thread Danny Kodicek
Hallo, The text editor app is up and running now, thanks to those folks that offered suggestions. I've got everything working apart from the pasting of text. Does anyone know how it is possible to do this? Any cool tricks to access the clipboard from ActionScript (I've had a look

[Flashcoders] Access loaded SWF variables, methods, etc ?

2007-09-12 Thread eric e. dolecki
I am loading a SWF into a movieclip and want to access variables, etc. from my main class. I have this in my main document class: private function loadViewElements():void { var module1Loader:Loader = new Loader(); module1Loader.contentLoaderInfo.addEventListener(

[Flashcoders] Isometic game - zdepth managing for multiple movable characters

2007-09-12 Thread Jiri Heitlager
He guys (and maybe girls), I have a question that is related to z-depth managing in an isometric game, that needs to be made in AS2. In the game I basically use one abstract layer that holds all the tiles and their information wheter or not a movable object is allowed to 'walk' over the tile.

[Flashcoders] IOErrror using URLLoader with files bigger than a few kb

2007-09-12 Thread Paul Steven
I am having problems using URLLoader to send data to a server side script. What I am doing is loading in a file as binary data and converting to Base64 then sending this Base64 string within an xml string. It is working fine with very small files of only a few kb. However if the files are larger

Re: [Flashcoders] Access loaded SWF variables, methods, etc ?

2007-09-12 Thread eric e. dolecki
Okay - I had to dig in a little more, I have a blog post about this (whats the best way to approach)? http://www.ericd.net/2007/09/as3-accessing-loaded-swf-stuff.html On 9/11/07, eric e. dolecki [EMAIL PROTECTED] wrote: I am loading a SWF into a movieclip and want to access variables, etc.

RE: [Flashcoders] Golden Ratio Spiral points

2007-09-12 Thread Merrill, Jason
Thanks Glen, Danny, and Mark, I'll give these a try! Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

[Flashcoders] Import images into whiteboard

2007-09-12 Thread Geoff Bower
Hi Guys. I am currently developing a multi-user whiteboard using Flash Media Server. The client wants a user to be able to import an image from their hard-drive into the whiteboard for all to see. The most straight forward solution I can see is for the image to be uploaded to the server, and

RE: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Hal Leonard
Try toString(aArray[i]._name) instead I'm not 100% sure what you're storing in your array, but it sounds like you're storing movieClip objects in there, in which case the result [object Object] would be the correct output. Hal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[Flashcoders] Nokia Software Installer...

2007-09-12 Thread Peter Oliver Geller
Hi and sorry for that offtopic question, but did somebody know who made the product software installers for example the Nokia N76 Series. Looks like a flashinterface and I think it is one, but I wanted to know whats under the hood, maybe a simple windows installer? If somebody know something

[Flashcoders] Displaying Progress of calls to external scripts

2007-09-12 Thread Paul Steven
I am calling several external scripts in my app using the URLLoader. These calls return xml data. I am trying to display the progress of the data flow using the event.Progress as follows but I am not getting very good results. It is currently displaying the following. Loaded: 349 Total: 0

[Flashcoders] How to share class library across a network?

2007-09-12 Thread Alistair Colling
Hi there, I would like to share my class library with other developers on my local network. We are soon to be using Version Cue or something similar but in the meantime it would be good if we could al be working from the same class library (there are only 2 of us). Almost every time we

Re: [Flashcoders] AS3 - Serial?

2007-09-12 Thread Andrés González Aragón
May be with a localhost Socket you can get something 2007/9/10, Ricky Bacon [EMAIL PROTECTED]: eric e. dolecki wrote: Ricky - that looks sweet. Have you tried it? Will it work with a USB interface? I haven't used that particular one, but I've used the same concept to interface with

RE: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Jesse Graupmann
Maybe try; var myStr:String = String( aArray[i] ); or var myStr:String = aArray[i].toString(); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, September 10, 2007 8:30 PM To: Flash Coders Subject: [Flashcoders]

[Flashcoders] AS2 Sound.stop()

2007-09-12 Thread Andrew Sinning
I don't understand the docs for the AS2 Sound.stop command. my_sound.stop([idName:String]) : Void I can't find any documentation about sounds having an idName. Method; stops all sounds currently playing if no parameter is specified, or just the sound specified in the idName parameter. But

[Flashcoders] AS3 Sound = wtf

2007-09-12 Thread Andreas Rønning
So i got my AS3 books finally. Essential AS3 by Moock, AS3 animation/making things move and AS3 design patterns. Of these 3, none give particular interest in the sound API. Making things move takes a fleeting glance at AS3 sound, limited to a = new Sound(); a.play();, and Design Patterns makes

[Flashcoders] control flv playback speed

2007-09-12 Thread Helen Triolo
Is there any way to let the user control the playback speed of a flv in Flash? And even better, is there any way to change the playback speed without changing the audio pitch (as can be done with Quicktime)? thx, Helen ___

[Flashcoders] Variables in HTTPService url via flashVars

2007-09-12 Thread Marc
I'm passing a var into Flex via flashvars and am trying to use it with HTTPService in the url field to read an xml file where part of the path is the variable. I am receiving the var fine, but just can't find a way to incorporate into the url field in a way that the HTTPService will read it. Is

[Flashcoders] Help with listener for custom class (AS3)

2007-09-12 Thread Dane Williams
Greetings All, I'm trying to do more and more of my projects with external classes and, along with that, creating classes for routines that I regularly do. I have a class that reads an XML file and CSS file once it's called. It has worked fine for the first few projects I used it in. With my

Re: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Steven Sacks
You're using toString wrong. toString is a native method of objects. Use: aArray[i].toString() or String(aArray[i]) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] dynamically attaching a movie clip to a class/object

2007-09-12 Thread Charles Parcell
You are not defining what the movie should be attached to. Try: _root.attachMovie(signPost, myPost, _root.getNextHighestDepth()); Note that I removed this.getNextHighestDepth(). Because this does not exist on the stage yet, you can not get its next highest depth. Charles P. On 4/26/07,

Re: [Flashcoders] XML confusion

2007-09-12 Thread EECOLOR
The trace functions arguments are implemented as follows trace(... arguments). Which means that all types of variables are accepted. Every type of variable extends Object and with that every instance will have a toString method. This is the method the trace function will call to display the value.

Re: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Jamie S
toString() is a method of the Object class and it doesn't have any arguments. So while every object in Flash has a toString method, by default it returns [object Object]. From your code it looks like what you're actually doing is calling this.toString(), you probably want to do something like

Re: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Andy Herrman
Ah, since the local scope is the object in the array then just using `toString()` without any arguments would work (just doing `this.toString()` basically). Can you provide the code where you populate the array? It's possible you're adding something other than the movie clips to the array (or

[Flashcoders] export movieclip as jpg question..

2007-09-12 Thread Kerem Iseri
Hello everyone, Im looking for a way to export an mc inside an swf as jpg image and email it. There are php scripts which converts the swf to jpg buy reading swf pixel by pixel, but i didnt use it before. The mc I want to make an image has 3 mc's and 1 mask mc and which masks one of this 3,

[Flashcoders] Property check works differently in CS3?

2007-09-12 Thread Gregory N
Hi all, I have a component (AS2) that extends MovieClip (as usual). It shows user's text placed along the curve: http://gousable.com/flash/text2curve.html A couple of days ago I've added the options to format the text as bold/italic. The getter/setter names are, respectively, bold and italic. It

[Flashcoders] Multilingual video with Flash

2007-09-12 Thread Volker Scarpatetti - Advertis Interactiva
Hi, What would be the best way to a flash video project with multilingual audio? - A copy of the video for each language (means several video files) ? or - One video and different audiotraks ? As I am not streaming from a server but from a CD, I have a limited space condition. The

Re: [Flashcoders] How do you delete child movieclips?

2007-09-12 Thread Alexander Farber
Thank you - a good idea! On 9/3/07, Steven Sacks [EMAIL PROTECTED] wrote: I highly recommend putting all your child clips into a container clip and then just remove the container clip rather than iterate through it and remove the child clips one by one.

[Flashcoders] Multilingual video with Flash

2007-09-12 Thread Volker Scarpatetti - Advertis Interactiva
Hi, What would be the best way to a flash video project with multilingual audio? - A copy of the video for each language (means several video files) ? or - One video and different audiotraks ? As I am not streaming from a server but from a CD, I have a limited space condition. The

[Flashcoders] Can't display multiple components

2007-09-12 Thread Lee Marshall
I am wanting to display 2 components at the same time, along with having a preloader in place. So I have put my components on frame 3, my preloading is done on frame 1. In my actionscript publish settings I have set my export frame for classes to 2 and unchecked export in first frame in the

Re: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Mark Winterhalder
var myStr:String = aArray[i].toString(); HTH, Mark On 9/11/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Quick question, can I toString an array element. ie: var myStr:String = toString(aArray[i]);// where 'i' is the increment. I am having an issue with this. when I trace

[Flashcoders] RE: Import images into whiteboard

2007-09-12 Thread Geoff Bower
Sorry if you've had this already, but I didn't receive a copy when I sent it to the lists yesterday, and Im sure normally it would send to me too, so Im gonna send it again. G:-) From: Geoff Bower Sent: 11 September 2007 15:06 To:

Re: [Flashcoders] Text Editor Undo/Redo Stack

2007-09-12 Thread James Marsden
skillz, thanks :) Muzak wrote: Use javascript: //HTML script language=javascript function getClipBoardText() { var t = window.clipboardData.getData(TEXT); return t; } /script ___ Flashcoders@chattyfig.figleaf.com To change your

Re: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread James Marsden
try var myStr:String = String(aArray[i]);// where 'i' is the increment. J Muzak wrote: What is stored in the Array? - Original Message - From: [EMAIL PROTECTED] To: Flash Coders flashcoders@chattyfig.figleaf.com Sent: Tuesday, September 11, 2007 5:30 AM Subject:

[Flashcoders] Setting percentage to circular preloader

2007-09-12 Thread Omar Fouad
Alright, I wrote some code that draws a circle and I added an easing effect using Tweener as follows: var Circle:MovieClip = _root.createEmptyMovieClip(Circle, 2); function drawC(centerX, centerY, radius, sides){ Circle.per = 0; Circle.lineStyle(4,0xFF,100); Circle.moveTo(centerX +

Re: [Flashcoders] Isometic game - zdepth managing for multiple movable characters

2007-09-12 Thread Ian Thomas
Hi Jiri, The key here is that you can have 'empty' depth levels i.e. an object at depth 5 and an object at depth 8 with nothing at depth 6 and 7. You can make the depth dependent on the actual pixel _y value of the object rather than on the y value of the tile - so depth=_y (or more likely

Re: [Flashcoders] Isometic game - zdepth managing for multiple movablecharacters

2007-09-12 Thread Jobe Makar
Hi Jiri, I've pasted below the isometric class that I wrote for one of my game books. It is a handy class that allows for easy translation between screen coords, and iso coords. In addition, it handles tile-based dept calculations as well. You asked how do you handle multiple per tile - check

Re: [Flashcoders] Text Editor Undo/Redo Stack

2007-09-12 Thread James Marsden
ha, ok It's pretty fugly. All the functionality is accessed through ExternalInterface from JavaScript, so there are no Flash based buttons at all. As the person responsible for building the HTML hasn't focused on it yet, it mings a considerable amount. There are a few bugs still too,

Re: [Flashcoders] Access loaded SWF variables, methods, etc ?

2007-09-12 Thread Muzak
Use LoaderInfo.content to access the loaded swf. private function loadViewElements():void { var module1Loader:Loader = new Loader(); module1Loader.contentLoaderInfo.addEventListener( Event.COMPLETE, completeHandler); // Create and load the Views NUMBERPAD = new MovieClip();

Re: [Flashcoders] Text Editor Undo/Redo Stack

2007-09-12 Thread dr.ache
show us! :) James Marsden schrieb: Hallo, The text editor app is up and running now, thanks to those folks that offered suggestions. I've got everything working apart from the pasting of text. Does anyone know how it is possible to do this? Any cool tricks to access the clipboard from

[Flashcoders] increasing real memory use

2007-09-12 Thread Tom Huynen
Hi list, I created a kioks application that needs to display data (text and images) 24/7. The flash projector file however uses more and more real memory from the start on. I therefore created a simple version of it as can be seen in the code below. It contains four classes: Application.as,

Re: [Flashcoders] IOErrror using URLLoader with files bigger than a fewkb

2007-09-12 Thread Muzak
Use POST instead of GET for large data. var dataStrEncoded:String=Base64.Encode(ByteLoader.data); var XMLString:String; XMLString = '?xml version=\1.0\ encoding=\UTF-8\?'; XMLString = 'file'; XMLString += '![CDATA[' + dataStrEncoded + ']]'; XMLString += '/file'; _loader = new URLLoader();

Re: [Flashcoders] Attaching webcam video dynamically and on top

2007-09-12 Thread Jobe Makar
Hi Alexander, You can create a video symbol in the library by using the library's menu. As for depth, have you tried putting the video in a movie clip and swapping the depths of that movie clip? That should work. By the way, ElectroServer 4 supports video as well (to add that to your list).

RE: [Flashcoders] Isometic game - zdepth managing for multiple movablecharacters

2007-09-12 Thread Danny Kodicek
Every object gets a z-depth assigned. For the players the zdpeth need to be set based on the tile they are at. This way the players can walk 'around' the enviorment objects. For the z-depth calculation I use the tile grid x and y plus the width of the row, this generates an unique z-depth

Re: [Flashcoders] How to share class library across a network?

2007-09-12 Thread Muzak
Sounds like the ASO cache problem. Try Delete ASO files and Test Movie from the Control menu. Making sure that all computers in the Network have the exact same time (PC clock) may prevent this from happening. regards, Muzak - Original Message - From: Alistair Colling [EMAIL PROTECTED]

[Flashcoders] this.stage.focus causes Sandbox violation?

2007-09-12 Thread Michael Randolph
I have a line of code in one of my classes that says: this.stage.focus = ioFocus; where ioFocus is an InteractiveObject that is passed into a function. When my program hits this line (and ioFocus at the time is a TextField), flash shows me this: *** Security Sandbox Violation ***

Re: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Andy Herrman
You say [object Object] is the correct output if the object is a movie clip. This isn't the behavior I see. Any time I trace a movie clip I get the clip's name (level0.foo.bar.whatever), not the generic object results. -Andy On 9/11/07, Hal Leonard [EMAIL PROTECTED] wrote: Try

Re: [Flashcoders] How to share class library across a network?

2007-09-12 Thread Andy Herrman
Try mapping the network share to a drive letter (I'm assuming you're in Windows here). Some tools don't work well with network paths, but if you map the shared folder to a drive letter then it would appear to those tools as a local path. That might help fix your compile errors. -Andy On

Re: [Flashcoders] AS2 Sound.stop()

2007-09-12 Thread Ian Thomas
Each Sound() object is attached to a particular timeline. So if you do : (new Sound(_root)).stop() everything from _root downwards should stop. HTH, Ian On 9/11/07, Andrew Sinning [EMAIL PROTECTED] wrote: I don't understand the docs for the AS2 Sound.stop command.

Re: [Flashcoders] Displaying Progress of calls to external scripts

2007-09-12 Thread Andy Herrman
Is it possible the server that's providing the XML isn't providing the content length in the response headers? Without this Flash won't know what the total size is, which could explain why you're getting 0. -Andy On 9/11/07, Paul Steven [EMAIL PROTECTED] wrote: I am calling several external

Re: [Flashcoders] Traversing through Object goes backwards

2007-09-12 Thread Andy Herrman
Objects work pretty much like hashtables (from my understanding). Hashtables generally don't guarantee any kind of ordering. Flash may enforce some kind of ordering (y seems to be going in reverse order of when things were added) but I don't know of any ordering and generally treat it as

[Flashcoders] Progressive Download De-Caching Slowing Startup

2007-09-12 Thread Jeff Harrington
I've got a FLV player that I've written that is a dual FMS and Progressive Download player and I am noticing a disturbing slow startup using the Progressive Download technique when the FLV has been cached on the user's hard drive at startup. When the user returns after caching the whole movie,

Re: [Flashcoders] AS2 Sound.stop()

2007-09-12 Thread Arul Prasad M L
If you had the sound imported into your library, assigned a linkage ID, and then attached it using Sound class's attachSound method, you'd have a 'idName'. If you loaded your audio clip using loadSound method, you wouldn't have a linkageID. So don't worry abt it. Sound has no static field stop.

Re: [Flashcoders] AS3 Sound = wtf

2007-09-12 Thread Arul Prasad M L
Why don't you: 1. List down your queries, and ask for suggestions / help from the community here 2. Write to adobe's feature request list about the features you think are missing, but essential 3. Stop ranting on the list, and go use ur personal blog for this crap. Btw, Stop looking for detailed

Re: [Flashcoders] AS3 Sound = wtf

2007-09-12 Thread Cedric Muller
I don't have CS3 yet, but what is that ? : Sound.computeSpectrum() This method analyzes all the sound that played and returns a ByteArray containing 512 normalized values (-1 to 1) that you can use to visually display the sound waveform (256 values for the left channel and 256 values for

RE: [Flashcoders] toString(aArray[i]) ?? does this work

2007-09-12 Thread Danny Kodicek
Andy, I see what you are saying, I think. That the .toString() has to be used as a method directly being addressed by the object. Like I said that what I think you are saying. How ever it seems I still can not get the string myMCinArray1 or myMCinArray2 or myMCinArray3 etc when I

Re: [Flashcoders] Help with listener for custom class (AS3)

2007-09-12 Thread Arul Prasad M L
From your cssLoaded and xmlLoaded methods, dispatch an event each, announcing the completion of load. eg public function xmlLoaded(event:Event):void { newXML = XML(event.target.data); dispatchEvent(new Event(xmlLoaded)); } And on the timeline, you can add a listener to that event by

Re: [Flashcoders] dynamically attaching a movie clip to a class/object

2007-09-12 Thread Arul Prasad M L
You should be assigning the movieclip reference being returned from attachMovie to your myPost variable: myPost = _root.attachMovie(signPost, myPost, _root.getNextHighestDepth()); Without that, your myPost variable is gonna be pointing to nothing. ~Arul Prasad. On 9/12/07, Charles Parcell

[Flashcoders] One swf loading another, but never complete/initing

2007-09-12 Thread Bryan Cash
I have one swf whose sole purpose is the loading of another swf and showing the progress of that load. There's currently a textfield in the fla which I use just to see progress and status of the load. The embedded code for it is as follows: var

Re: [Flashcoders] test

2007-09-12 Thread Surendar Reddy
Testing Mail please just ignore Surendar Reddy.K Software Developer [EMAIL PROTECTED] Ocimum Biosolutions ...enabling RD 6th Floor, Reliance Classic, Road No.1, Banjara Hills, Hyderabad - 500 034, A.P, India Business Phone: 55262700 | Mobile: 09849969760 | Fax: 556272505 BioIT Solutions |