I can do 2-things. Load an external swf, and change the color of an object. When I put these two things together, it doesn't work. How do I change the color of the loaded swf?
I want to access instance names in loaded swf files.
WHAT I WAS TOLD
I have to package it and set up a class paths. Is there an easy way for now?
ball.swf
"w...
Hey, I want to play with the new multitouch functionality of Flash 10.1 as is demonstrated here: http://blog.martinlegris.com/2009/12/13/tutorial-multi-touch-in-as3-flash-player-101-part-1/#more-186
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
_tf = new TextField();
_tf.width = stage.stageWidth;
_tf.height = stage.sta...
Hi,
I'm looking for a way to "inject" some events into a flash movie running on a browser. I know about ActionScript's ExternalInterface.addCallback function, however I'm trying to achieve this with any "random" flash from the web. Eg. send a "SPACE" keyboard event to a youtube video.
...
I'm bad with strings and probably messed this up. My Flash file receives XML commands and changes the value of the animations (speed, time). Can you improve this string argument or give me an idea what I need to do differently.
XML
<head>
</head>
<body>
<cnt>1count*count/10</cnt>
</body>
IS THIS RIGHT?
...
For the life of me I can't figure out how to trace out the current label in my movie's main timeline. This is in AS3.
I have a button on stage that spans the timeline of the movie. It detects keypresses.
I want to trace the current frame label that the play head is on.
on(keypress "<left>") {
trace(this);
trace(this.currentFrameLa...
I am developing a flash application required me to have a rotational sprite object cycling around the 3D space. I saw a MovieClip has a z-index that can be used as z coordinates in 3d space but couldn't find it in sprite object.
How to I get around with that.
...
Hi,
I have a Flex application with wmode=transparent and a transparent section that allows whatever is underneath it on the HTML page to show through. In this case, what's showing through is another Flash application. This works fine, but I can't interact with the Flash application showing through.
I tried setting the z-index of the ...
hi,
I would like to know if it's possible for flash to stream it's webcam directly to another computer without a flash media server in the middle, I want to build a highly scalable video system which basically logs people into the site, records their ip address and then when someone wants to chat to that person, connect the output from ...
I am facing a problem as Duplicate variable definition while compiling but it is not at all effecting my program.
Is there any way to remove compiler errors beacause it is coming every time when i run movie.
...
Hi,
I have two FLV video players on a stage using two AS3 NetStream objects for playback. I need to have the two players synchronized, meaning that the playback should start when the buffer is full for both streams, and both should be paused when one of the buffers empties, waiting until refills again.
My problem is, that the buffering...
Hi guys,
I'm trying to write my own floodfill function in ActionScript3, because the one provided by Adobe isn't flexible enough (you can only give one target color, I would like to give a range of target colours.)
So, the terrible code I came up with so far is this:
private function beginAlgortime(xx:int,yy:int):void
{
if (bmp.bi...
Hi,
I'm trying to start off a as3.0 project with nothing in the maintimline, I want my default actionscript class to start things off. Like a main in C, so is there a main like function in AS3.0 ?
...
I read Flash 10.1 supports HTTP adaptive streaming.
Can you give me an example code? Thx.
...
Hello,
I have multiplayer game, which reads XML data from the server:
_socket = new Socket();
_socket.addEventListener(ProgressEvent.SOCKET_DATA, handleTcpData);
.....
private function handleTcpData(event:Event):void {
while (_socket.bytesAvailable) {
var str:String = _socket.readUTF();
updateGUI(str);
}
}
In most cas...
i have a player which is of swf file. I need to edit it to remove user defined conextmenu.( when i right click its showing one name, i need to remove that)
Can any one help me how to do that.
how i can edit swf file in flash. when i open swf file in flash am unable to edit anything.
u can see the flash player here
http://test2.musick...
I'm building text balloons to display variable length messages in Flash. My question is pretty simple, though the answer may not be.
I have:
The string I want to display.
The font information.
The width/height ratio I want the text field to have.
How do I calculate the width and height of the text field it needs to display the text ...
Is there a way to have a flash control scroll through a number of images with descriptions without knowing Flash?
Perhaps like LightBox but with nice scrolling.
...
My question is threefold
What cool web-based examples have you seen that generate music dynamically by the user? Either based on samples with an interesting interface, by sound synthesis or similar methods.
Example: http://acko.net/blog/javascript-audio-synthesis-with-html-5
Has any serious web-based dynamical sound synthesis been done...
I'm building a simple white board app in ActionScript 3. Most white board or painting apps in ActionScript tend to use an interval, timer, mouseMove event, or enterFrame event to track the mouse position and paint lines or brushes in between the tracked points.
What I'm trying to achieve is the nice smooth painted line that a program l...
Hi,
Is there any hook to react to a user drag and dropping a text file onto a browser? If the user drops a text file onto the browser with my page loaded, I'd like to be able to open the contents of the text file using javascript. I don't think this is possible, but just checking.
Is something like this possible in flash?
As an altern...