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 =
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:
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
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(
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.
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
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.
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:
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
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
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
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
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
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
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]
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
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
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
___
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
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
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:
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,
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.
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
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
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,
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
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
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.
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
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
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
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:
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
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:
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 +
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
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
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,
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();
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
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,
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();
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).
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
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]
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 ***
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
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
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.
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
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
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,
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.
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
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
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
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
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
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
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 |
61 matches
Mail list logo