ActionScript 2.0 :: Unable To Make Duplicate Background Tutorial?
Jan 19, 2007
I'm trying to fill a movieclip with a seamless pattern, so in essense its pretty much the same as Kirupa's Duplicate Background tutorial. I'm having trouble converting the AS from filling the background to filling a movieclip
Here's the original code:
[AS]tileBG = function () {
tile_width = 34;
I sent an email to pom regarding a tutorial that he wrote, but the email was bounced and he hasn't replied to my PM. I have followed both of pom's tutorials that involve experiments with perspective in Flash, but I have encountered a problem while attempting to duplicate a movie clip symbol in the second tutorial ([URL]). I have a single instance of the "ball" movie clip symbol appearing at random positions. However, I cannot seem to successfully duplicate the symbol instance at random positions using the loop that pom provided:
from this tutorials, instead of duplicating both X and Y planes, I want it to only duplicate Xfor example, http://nano3.orgyou can see the grey fading into white, I just want the fade in my flash which is already an image.
The problem any swfs that I load into are not centered because of the Stage.align = "left"; So I adjusted all loaded swfs like so.
_root._x = 200; _root._y= 100;
Which center my movie perfectly. The problem is when I try my movie on other resolutions the movie is no longer centered? Do I need to write some code that gets the screen resolution and adjusts the _root based on screen resolution?
I've designed a Flash site in CS3 using Action Script 2.0 that has a main flash movie sorta floating in space over a gradient background. I want the gradient background to re-size with the browser, so I thought that the easiest way to do this would be to delete the gradient background in Flash and instead recreate the background in Dreamweaver using the repeat background option and then make the Flash movie's background transparent. (I hope I'm making some amount of sense here).
I've found a few tutorials on how to do this, but so far I just get a white background instead of transparent. I've tried choosing "Transparent - Windowless" under Window Mode on the HTML tab in Publish Settings. And I've tried selecting the movie from within DW and clicking the parameter button and adding a "wmode" parameter with "transparent" as its value.
I have a site that plays either .mp3 or .flv files depending on what is selected from the menu. Menu loads in from xml. I get "unable to make connection with server or unable to find flv on server" when I try to play the video. But the video and audio files are all in the same directory and the mp3 files play fine. I think I'm having a problem with the setMedia command. Here's the code that loads the video and audio files.
i was trying to make a soundbar control with the tutorial that appears in this page: [URL] But there's a problem, when i play the swf movie, the sound starts in the 0% of volume, i want it to be in the 100% because if it doesn't, it will be never be listened. And in the other hand, i will like that the play button could change into a pause one and make the action of pause the music, not to stop it.
I have built a catalog in flash that was orginally built in InDesign and exported but it has some small content that is hard to read for the elderly users viewing it and I would like to add a zoom feature or some type of magnifying glass.
im tryin to make a mouse swarm effect... where all these little dots swarm around the mouse... im using the physics spring tutorial that pom made... and trying to modify the code so if the distance between the object and the mouse is less than a given value, the inirtia is changed to 1 so it will constantly move... i tried doing that with an if statement cuz thats the only way i can think of doin it... but it doesnt work... um... and secondly, when that gets workin, i want the inirtia to get to a set speed so it wont be shooting off the screen or anything without slowing down... should i set that manually or what... or will it just slow down by itself when it shoots out of the distance range?... anyway heres the code that i modified
original: I really just need to figure out how to center the pictures. here is what I did I have modified the tutorial that I finished to have a bigger stage for bigger pictures. Everything is working properly but the pictures are displayed on the left side, I want to have them centered in the stage for the images, after clicking on the thumbnails, plus my images are different sizes as well. ranging from 200x410 to 744x410 but all are the same height of 410. i will post up what I am talking about at the end. I believe it is something within either the action script or the xml coding that allows the position of the image to be differently? please help here is what i am talking about[URL] Continued: Here is my coding in action script:
I saw the snow tutorial on this website and i plan on using it for 20 seconds (500 frames) in my introduction. It works perfectly fine, but after that time, it doesn't stop. It keeps on going and going and going... how to make it stop or make it go into the background? used the code provided by the tutorial. I know this is sudden by can someone answer today because i have to put it together before thursday.
I was wondering how would i make a mc appear when a hittest takes place at the location of the hittest. What im trying to do it make a Mortal kombat game and i want when u say uppercut them the mc of blood appears at that hittests location. So is it possible for it to like detect where the hittest took place and duplicate the mc there?
I'm working on an animation where I have my "dog" fighting the evil vacuum cleaner. I got most of it to work the way I want it to.
1) I have movie clips entitled pepper_mc (where my dog is supposed to be walking), swirl (where a swirly-type symbol is supposed to spin over the dead vacuum's head), and vacuum_mc (where the evil vacuum is supposed to have a swinging arm (called vacuumarm_mc) that I created using the bone tool). When I add them to the stage and test them, the animations within the movie clips don't happen.
2) I have background music that I'd like to stop playing at the end of the animation, but I'm not sure how to do that. (using the stop(); actionscript doesn't help).Where am I going wrong? I'm using Flash Pro CS5.
Here's the file --> Pepper and the Vacuum of DOOM!
I'm trying to write some apps that will include some image processing for facial, object recognition. There's a ton of stuff out there (mostly from 2009) that doesn't work very well and I want to give it a try.
Anyway, I have the webcam feeding a video object I've addChild()ed to the stage and that works aces. I want to make a copy of that video stream and plop it on the stage right next to it. This works, but the framerate suffers:
Code: public function update(event):void { //onEnterFrame var bmp:BitmapData = new BitmapData(_video.width/5,_video.height/5);
[Code]....
So this puts a pixelated version of the webcam feed right next to it just like I wanted, but it seems to lug down the processor. Logic would tell me that I'm piling on infinate amounts of "goat" to my movieClip (mc). I try to dispose() the bmp, but then it stops working.
I have to duplicate a movie clip on a movie, to make an endless scrolling menu. The problem is I don't know real well how to do it, I can do it fine with graphics but it looks like not possible to do it with mc.here's a sample of my code I am trying to attemp
Code: var refFirst:MovieClip = MovieClip(menuGroup.getChildAt(0)); var copyFirst:test1 = new test1; trace (refFirst.name);
Im new to AS but Im working everyday to improve, Im trying to make a menu but Im having difficulties with moving the menu:
I have a bar in 500 length and mask of 100 And I have 5 buttons. When I click 1 ofthem I want it to bring the correct positon of the bar with easing. Btw the registration point of thebar is upper left corner
I was wondering how to do the box effect like on [this] site. The lines move up and across to form a box. I have tried a few things that I could think of, but have't got it.