This code is on the opening frame of one of my Flash files:
Code:
var myConnection:NetConnection = new NetConnection();
myConnection.connect("rtmp://fvss.playstream.com/fvssod/myclient");
var myStream:NetStream = new NetStream(myConnection);
myVideo.attachVideo(myStream);
myStream.play("iLoveLALong");
It starts this song "iLoveLALong" as background music. Works great. But now I need to turn the music off when I jump to another frame in the Flash doc. Can anyone suggest code that will do that, either with frame code or button code?
I'm building a survey in flash and I have multiple movie clips that cover the entire work area and are layered on top of each other, cycling through them (page to page) by tweening alpha on/off. I'm pretty happy with the way it looks except for the fact the buttons. While I can not see them, my cursor still turns into a hand if I happen to scroll over them.I've tried using, useHandCursor = false; and buttonMode = false; without any luck. Can anyone tell me how these commands work or can you tell me how you cycle multiple pages in the same flash file?
i am loading an swf and i want to turn its sound off. Unfortunately i do not have access to the swf's .fla file. so i am looking for a way that i can turn off the sound from the file that i am loading it into.
How would you go about turning off the hand cursor of a button when a movieclip is set at alpha 0 and then turning the same hand cursor on when alpha is set at 100?
way to turn a movieclip with a complex shape into a bitmap so I can do a BitmapData.hitTestseeing what are the non transparent pixels colliding between two bitmaps?his is about a complex hitTest. (Yes I didnt finished yet )Im trying to make two movieips turn into two bitmaps so I can realize if theres a way tosee if one of the first bitmap´s non transparent pixel is colliding with the second bitmap´s non transparent pixel
I'm making a flash game (pac-man) and i have designed a level (the walls). Now when i convert it to a symbol flash makes it a rectangle (he counts the gaps between te wall as part of the symbol). This is a huge problem because when i want to test collision between pac-man and the walls in actionscript he always "hits the wall" because he is inside the object. Is there a way to convert only the walls into a symbol.
I am using flex 3 with arcgis server 10 with the help of flex api. i am getting Error 1009 : cannot access a property or method of a null object reference at mx.controls::Datagrid/mouseDownHandler() while using datagrid with checkboxes to turn on/off layers in the map.
Is there a simple way to make a page turning animation in Flash? I have a book, and I need the page to look like it is turning. It happens automatically, so I don't need a button, or the page to be grabbable. I just need it to look like a page is being turned.
I found this tutorial on how to do it using aftereffects, but when I export the composition to SWF I get a black background, so that won't work. It would have to be transparent.
I have a fairly complicated question about converting the data on an image into an array. At the moment the map of a game i am developing is stored like this:
how to turn the autoplay off. I searched around the forums for about 15 minutes, but any mention of autoplay didn't seem to answer the question. For example I found someone who had a subject relating to autoplay and they started the bit by saying "So I turned autoplay off" but never explained how.
i have music that im gonna put in the timeline...music& sfx...and i want is so that when someone clicks a button to another section, that the music on that particular section doesnt just cut off, that it goes from volume 100 to 0 smoothly, like if one were to turn the volume down on a radio.
Been checking out this site: [URL].. and I'm trying to figure out how they have done the image turning effect. (click on a photo, then click More Info).
It looks like it could be converting the image to BitmapData and then working with that, or it may also be using shadows/masking effects.
I'm trying to create a series of scripts that will create some custom event listeners. I have three movie clips on my stage. One is a movieclip who's sole function is to hold array's and the event listeners. A second which moves around the screen. And a third that is motionless.
The problem is that the argument I want to test (which activates the custom event) is held within a string.
What I want to know is, how do you test to see if the string argument is true?
Is it something similar to this:
[Code]...
I think I'm going about this in the wrong manner, however this is the only way I can think of this working (since I need to be able to dynamically create these events)
I'm trying to do a PrintJob and before I send the sprite away, I want to organize the info so I thought putting multiple Sprites in a single "printable" sprite would be the way to go. The weird thing is, when I addChild one of the Sprites, it turns back.
Here's my code:
Code: public function impressionImage(toPrint:Sprite, textToPrint:String):void { //Cr�ation de la PrintJob
[code]...
I removed all the lines that were in comments, and here's the code that's left. The problem comes with the "contTextEtImage" sprite. If I keep it like this and I print it, everything is fine, but if I put it inside "printable", it turn all black, as if it was a huge black bitmap.
can you turn off flash debug player without uninstaling it?I want to see how something would look with no debug player, specifically if the debug player throws an error normal player wouldnt throw, does the code stops if there was no debug player or continues normally?
I want to serialize an object to AMF, and I want the result to be exactly the same as if it is serialized by NetConnection.call(). So, I use ByteArray.writeObject(), and the output bytes are usually the same as bytes sent by NetConnection.call(), but sometimes couple of bytes are different.
I found this in AMF3 spec: "Note that ByteArray.writeObject uses one version of AMF to encode the entire object. Unlike NetConnection, ByteArray does not start out in AMF 0 and switch to AMF 3 (with the objectEncoding property set to AMF 3)." It explains that differences.
I'm making a website and I've just finished the intro. Basically, I have a movie clip in the intro of a leaf floating down, stopping in the center and then has text fade in over it. I'm trying to turn this clip into a button that will take you to the main page
I'm retrieving an unformatted String from a twitter feed. I want to be able to turn a text URL (http://blah.com/qwerty/) into a link but don't know how...is there a handy regular expression for this?
public var loaders:Array = new Array(); public var loaderClip:Array = new Array(); function loadPersonmenu() {
[Code].....
The wierd thing is, my function fileCompleteListener() doesn't even referance any of these Loader instances or swfs, which is why I didn't include it in my code. This isn't a problem in the first conde
I've got some dynamic text where certain lines will select (via setSelection) upon clicking.how to turn this selected text into a stored string I can then parse into usable sections.What methods could I use to get a selected text into a string?
Ive been trying to get this straight for days. I simply want the buttons in the attached file to be replaced by movie clips doing exactly the same job. When I write the code it doesn�t work. How is the code supposed to look?
I have a text file that has a large list of words. Each word is on its own line but has no commas or any punctations in between.Can I turn this file into an array with each word being a string in the array?Can I do this without manually putting commas in between each word?