ActionScript 2.0 :: Setting Reg Point - Creating A Border Around Images?
Oct 15, 2006
I have this code for creating a border around images. (partly from the huge thread on resizeBorder here at Kirupa). The image is loading into a containerMC and that I can align top left, but this code I dont know how to align? Anyone?
Code:
//creating the border:
this.createEmptyMovieClip('border', 3);
with (_root.border) {
[code]....
View 1 Replies
Similar Posts:
Jan 19, 2011
Is there a way to place a border around an ActionScript List? (I mean a border that I can see, such as a red border of one pixel width.)
View 1 Replies
Mar 28, 2011
Hi I am trying to create an image scroller that just scrolls images from point a to point b on load horizontally in an infinite loop. I just used a code snippet to move it horizontally but don't how to get it to stop and at point b and loop again from a.
ActionScript Code:
game1.addEventListener(Event.ENTER_FRAME, fl_AnimateHorizontally_3);
function fl_AnimateHorizontally_3(event:Event)
{
game1.x += 20;
}
View 0 Replies
Feb 11, 2010
I want to create a border around my mask. When I try to add a lineStyle to my code I get an error:1061: Call to a possibly undefined method lineStyle through a reference with static type flash.display:Sprite What am I doing wrong?
ActionScript Code:
//create a mask to cover the room container
var roomMask:Sprite = new Sprite;
[code].....
View 2 Replies
Oct 1, 2009
I've been tasked with creating something along the lines of 01:border at [url]..
View 2 Replies
Sep 25, 2007
How do you change the registration point of a TextField or MovieClip?Suppose you want to Twin a zoom in, I need it to happen from the middle, but I found no methods or properties that let you set it in the center.
View 9 Replies
Oct 26, 2004
i'm working on a flash game at the moment, and i would like to know if i am able to set the point that the movieclip rotates around using actionscript.
i don't want to do it by simply moving all of the contents of the movieclip closer or nearer. is there any other way of doing it? i couldn't find any simple functions for it. am i just going to have to use some complicated maths?
[edit] rotation point, aka, registration point.[/edit]
View 3 Replies
Oct 22, 2010
I'm trying to make a little program. It works right now by drawing the top shape to the dark gray area, where it then copies itself and changes color. The new shape can be re-dragged as well. What I want to do now is add a dynamic border when I click on the new object, I want the box to adjust to an appropriate size. And on mouse release I want the selection border to disappear on the new shape. I want the selection border to be dashed much like you find in many of Adobe's programs, if at all possible.
Attached is my .fla file
View 1 Replies
Mar 7, 2009
I am creating an interface where a user can pick up "Polaroid" stle photos and shuffle them around a virtual desktop. I want to photo to shift it's transform point to match the point at which the user picked up the photo, to create a "swinging" effect as the photo is dragged.there was an AS2 workaround floating around, but I want to find the AS3 equivalent, and seem to be unable to find it in the Geom/Matrix package/classes.
View 3 Replies
Aug 24, 2008
when you create an empty movie clip, the registration point is 0,0 as default, I read you can change this by defining the X&Y but my movie Clip's position is defined by stage width and height.Is there another way to define the registration point~?
View 8 Replies
Feb 12, 2010
I've been playing around with Flash's native 3D in pure AS3 (in FlashDevelop, not the Flash IDE) and am having a heck of a time finding documentation on how to set the 3D "anchor point". (Perhaps it goes by a different name?)
Can anyone tell me the API, Class, or command(s) needed to move the anchor for a given Sprite or Stage?
View 2 Replies
Jan 14, 2009
I have a very simple scrolling image strip where the images are loaded via xml. I was wondering if there is a way to add a white border around the pics by way of actionscript. Here is the code that I have to load the images and make them scroll.
[Code]....
View 0 Replies
Oct 2, 2003
How can i have 15 buttons load different images into one border.When the swf loads picture 1 is loaded. When you click some of the other buttons picture 1 stays into the border. A preloader bar and percent shown up under picture 1. After the preloader and percent bar reaches 100% picture 1 "alpha-fades" out and the picutre correspnding the button you clicked "alpha-fades" in ?
This transissions will happen beetween all the pictures you load.The pictures must be loaded dynamic .
View 2 Replies
Oct 2, 2003
How can i have 15 buttons load different images into one border.When the swf loads picture 1 is loaded. When you click some of the other buttons picture 1 stays into the border. A preloader bar and percent shown up under picture 1. After the preloader and percent bar reaches 100% picture 1 "alpha-fades" out and the picutre correspnding the button you clicked "alpha-fades" in ? This transissions will happen beetween all the pictures you load !
View 2 Replies
Mar 29, 2012
I am generating sprites programatically like this:
this.food = new Sprite();
this.food.graphics.beginFill(0xFFFFFF);
this.food.graphics.drawRect(0, 0, 10, 10);
this.food.filters = [new GlowFilter(0xFF6699, .80, 5, 5, 2, 2, false, false)];
this.food.graphics.endFill();
[Code]...
I basically want the food sprite to spin slowly about its center, not its x and y value which is the top left corner of the sprite. How can I make the anchor the center of the sprite?
View 2 Replies
Mar 14, 2010
how to properly change a displayobject's registration point? changing the transform.matrix.ty / transform.matrix.tx, works, as long as the mc doesnt change x /y itself later. if it does, the matrix is reset.
View 2 Replies
Sep 19, 2009
I'm working a project where images expand 50px on roll_over and then retract on roll_out. On roll_over the images overlap and I use the setChildIndex to keep the target on top. This works fine. What I'm having issues with is the border that is displayed on roll_over. The first time I cycle through the images, everything works fine, after that only the image stays on top, the border slides underneath the other images. I looked up the Adobe 'setChildIndex' I'm afraid I don't understand the numChildren-1 thing.
[Code]...
View 3 Replies
Aug 26, 2009
i am loading JPG images into movie clips, then drawing a border around them with this code:
Code:
var frameColor:Number = 0xffffff;
var lineThick:Number = 1;[code]..............
i am resizing the movieclips (and thus the contained pictures) down to 160 x 120, but those pixel values didn't work in my lineTo statements. i multiplied them by 3, using 480 and 360 and it works better. however, the behavior isn't consistent. i am attaching a picture so you can see how the border is too tall on some of the images.so, is there a better way to use pixel dimensions with lineTo? does the scaling factor between flash vector units and pixels change between movieclips depending on what content i load into the movie clip?
View 1 Replies
May 11, 2009
I want to make an editor like this site. [URL] If you browse this link you will find "Button. If you press this button you will navigate to a editor to design your layout. After draw a rectangle or circle or line you can resize that or can rotate that. When you finish if press the "you will back to the previous page where your desinged layout display. If you press the "" again then you will navigate the editor with the previously designed layout. I want to make a site like this. I want to use the flash cs4 to make the editor. Anybody knows how to draw a rectangle or circle shape with mouse and how to scale by setting the point and how to rotate by setting the rotation point also by using flash cs4 and as3?.
View 3 Replies
Apr 19, 2011
ADOBE SYSTEMS INCORPORATED Copyright 2008 Adobe Systems Incorporated All Rights Reserved. NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the license agreement accompanying it.
[Code]...
View 1 Replies
Mar 17, 2009
I have some code in for a dynamic text field:
<ul><li>Item one</li>
<li>Item two line one<br>Item two line two</li>
<li>Item three</li></ul>
[code].....
View 3 Replies
Aug 28, 2010
I am wondering how to write code so that once a character reaches a certain 'end mark' it will trigger the next frame/level. I am using Flash CS5, but I have primarily used it for animation. This would be my first leveled game.
View 2 Replies
Mar 17, 2009
I need to create a button which will be on a MovieClip. The Movie clip contains columns and rows of data. I want the button to be able to take you from the point on the MC where the button is down a few rows to another point, this would be similar to creating an anchor text in an HTML document, but I don't know how to do it with AS.
View 4 Replies
May 5, 2010
I'm trying to create a needle gauge type preloader, and I've created the needle and made it a MC and set the registration point to bottom middle, but it still rotates on a centered axis. This is the tutorial I'm following: [URL]
View 3 Replies
Dec 10, 2009
how to do an effect like the one seen on this page?: http:[url]....
View 1 Replies
Mar 31, 2011
I am working on a simple action-script3 slideshow. The thing that I have modified is the movie loads the list in two separate sections. The problem is I want the movie clip to load one image on the right then one image on the left. When the one on the left loads, it loads over top of the right image. I want send the image on the right to be on top again when the left image loads.
Here is my code specific to the images loading:
ActionScript Code:
function nextImage():void{
if(my_times > 0){
var my_image1:Loader = Loader(my_loaders_array[my_playback_counter]);
my_image_slides.addChild(my_image1);
my_image1.x = 26.1
[Code] .....
The idea is, when my_image1 is loaded, I want to have the depth of my_image to be on top.
View 4 Replies
Sep 29, 2011
We build prototypes and demo applications in Flex 4.5.1 and AIR 2.7 for mobile and desktop use. These tend to involve a large number of full-screen .PNG files. Lately we have been looking at ways to segment our code for flexibility and multi-screen re-use. What suggestions do people have for segmenting the project and libraries such that compile times are minimal and images are easy to replace?
View 1 Replies
Aug 26, 2010
How can I add a set of dynamic images and then add event handlers to each that trigger a different event? My scenario is that I have a remote service that grabs a set of data (ArrayCollection) that has a className, classID and classDescription. I would like the images to have event handlers that trigger a new panel display that would show the "classDescription" for the particular class that is clicked. My problem is figuring out how to retrieve the proper set of data and adding the images properly to the panel.
View 1 Replies
Aug 24, 2009
Im a noob at flash and am stuck making a photo sideshow application. I would like to be able to point the flash file at a folder of images, which are then all put into the slideshow and played through.
View 1 Replies
Jul 22, 2010
I have a set of images, and I want to show them as a SWF slideshow. Something similar to Slideshare.net It would be easiest if there is way I can pass a xml or json with list of images, and get the swf. I there a library or (linux friendly) tool, which I can use to do this? I am using Python with Django, but am open to using other languages etc.
View 1 Replies