ActionScript 2.0 :: Senoculars Progressivedashedcircle - Cant Add Rectangle Behind It?

Dec 19, 2009

I am looking at this file:[URL].. I have tried adding a simple rectangle as a background colour but for some reason the dashed line doesnt show up..

I tried adding the rectangle as a graphic and using attachmovie with a depth of 0 but it still doesnt work. It seems the rectangle is covering up the line as when I make the rectangle 50% opaque you can see the line underneath.

How do I add a background but still see the dashed line??

View 9 Replies


Similar Posts:


ActionScript 2.0 :: Combining 3 Of Senoculars Classes?

Apr 25, 2010

combine the following from Senoculars classes:

Transform.as - transform handles to rotate an mc
DashedLine.as - to draw a dashed line
ProgressiveDrawing.as - to move an mc from a - b
(Links at bottom)

I am basically trying to drag a mc onto stage. Rotate it using rotation handles, move it to another position and rotate it again. Then press play to watch it move from a - b, with a dashed line, and rotating from a - b.

Has anyone done this before or know of examples?

Senocular has combined DashedLine and ProgressiveDrawing in this example: [URL] and its been really great but now I am stuck trying to make the mc rotate. I have made my own crappy rotation handles but thought it may be better to use the transform (and convert somehow to as2) and store each rotation.

[URL]

View 0 Replies

ActionScript 2.0 :: Thumbnails For Senoculars XML Portfolio

Apr 26, 2006

I have forged senoculars XML Portfolio into a site, one thing I need to add to make me (and my boss) happy is a scroll function to the thumbs at the bottom. I have everything working super cool except for the scroll, my boss is starting to get antsy in the pantsy..I am not awesome at AS, But know enough to implement any suggestions you might have.the effect i am trying to get is similar to the XML gallery with thumbs mousover effect, accept with a little bit o' easing.The XML is set up differently, so I don't know if I can gut the one and implement it in the other...

View 2 Replies

ActionScript 2.0 :: Translate Senoculars Onrightmousedown Function?

Jun 21, 2005

can anyone translate Senoculars onrightmousedown function into astionscript 2?

[Code]...

View 14 Replies

ActionScript 2.0 :: Senoculars Event Bubbling With Buttons?

Oct 27, 2006

"allows child clips to receive events despite the fact that a parent might make use of them as well, something not possible with the normal convention of handling button events where no child movie clip ever receives button events if a parent has any button event handlers defined for it." how to attach an event to an mc called "child_next" within "parent1".

Code:
import com.senocular.events.*
function handleEventMethod(eventObject:ButtonEvent):Void {
// trace event
if (eventObject.type != "onMouseWithin") trace(eventObject.type +"("+this+")");

[code]....

View 1 Replies

ActionScript 3.0 :: Change Keyboard Keys Using Senoculars Class?

Mar 9, 2009

in my player.as file i have used senocular utili class to create movement using arrow up down left and right. and firebullet using space button.how can i change this so the player moves to the A, S, D, W keys instead and fire using R here is the current code i want to change in my player.as class

Code:
public function loop(e:Event) : void
{
if (key.isDown(Keyboard.LEFT))
x -= speed;

[code]....

View 4 Replies

Actionscript 3 :: Scrollbar With Sprite And Rectangle Won't Move Text, Just The Rectangle It's Painted On?

Mar 8, 2010

For those of you still with me, I am tasked with making some scrollable content in Flash. Load in a TextFile using LoadURL(), then display it. To get the text, we've written our own class TextFieldExtended, which is basically just there to give the textfile location to the constructor and then have the class do the various steps of getting it and loading it for you.So I needed to get a Scrollbar, which I got hereThe thing is, it works with Sprites.After trying to get it to accept TextFieldExtended, I bumped into a block, since the scrollbar relied heavily on a Sprite property that TextFieldExtended didn't have or could have.

So I tried adding the TextFieldExtended instance to a Sprite instance using addchild.A problem occurs here that I do not know how to handle. It seems that a Rectangle is drawn and the Text is drawn on that. I say this because the scrollbar moves the Rectangle up and down a bit, but the text doesn't scroll, just the Rectangle it is positioned in and the text then moves along with it.My question: can this be fixed, or is does this implementation of scrollbars need a lot of adaptations before this is possible?

View 1 Replies

Draw Rectangle Should See Little Bold Circle To Indicate A Perfect Rectangle

May 20, 2009

I draw a rectangle i should see a little bold circle to indicate a perfect rectangle, I seemed to lost mine, can somebody please tell me how to get it back!

View 2 Replies

ActionScript 3.0 :: Convert Rectangle To Curved Rectangle?

Aug 2, 2011

I am trying to convert a rectangle(actually multiple rectangles) to a curved rectangle. I think it should be pretty easy but I guess i am stupid. Basically I would have a start position and stop position (many of these), and they would be converted to curved rectangles and follow in a cicrle around.

View 0 Replies

ActionScript 3.0 :: Creating A Rectangle Inside Of A Rectangle?

Jun 26, 2010

I would like to create a rectangle inside of a rectangle, starting approximately 15% inward from the right side of the other rectangle.

I know how to create rectangles with:

Code:
var newHotRect:MovieClip = new MovieClip();
newHotRect.graphics.beginFill(0x00FF00);
newHotRect.graphics.drawRect(0, 0, 100, 100);
addChild(newHotRect);

But how would I make another rectangle on top of that (the black one pictured) that is approximately 15% from the right?

I toyed around with .right, and .bottomright with no success. Can anyone lead me in the right direction? or even finding the x and y of the upper right or bottom right side of a rectangle?

View 10 Replies

ActionScript 3.0 :: Rectangle To Rectangle Collision Response?

May 20, 2011

how to respond when a rectangle hits another rectangle? I already know how to detect the collision, I just don't know how to respond to it. I'm just trying making a simple side-scrolling platform game where I have platforms I can walk on and bump against on all sides. I have searched everywhere and just can't find the tutorials I'm looking for.

View 6 Replies

IDE :: Oval / Rectangle Tool And Oval / Rectangle Primitive Tool

Nov 14, 2010

I do know how to use the oval / rectangle and oval / rectangle primitive tools in the tool bar and find them quite useful, but one thing I find confusing is. A oval / rectangle primitive object can be edited later but the oval / rectangle can't. So the point is,how do we use them properly ? when to use ? Why does Adobe Flash still keep the oval / rectangle tool in their product instead of removing them with the oval / rectangle primitive tool ?

View 2 Replies

Map Trapezoid To Rectangle?

Jan 28, 2011

How can I map a trapezoid to a rectangle?

Do you have any AS3.0 code about mapping? Or a formula for mapping?

View 2 Replies

ActionScript 3.0 :: Determine The X Value Of A Rectangle?

Mar 18, 2009

I am creating 6 rectangles through a loop like this:

var target:Array = new Array();
for (var i:Number = 1; i < 7; i++){
target
= new Sprite();
target.graphics.lineStyle(0,0,1);

[Code]...

View 6 Replies

Flash :: Why This Rectangle Is Not Drawn

Aug 13, 2010

public class Greeter extends MovieClip
{
public function Greeter()

[code].....

View 3 Replies

IDE :: Rectangle Around Textbox And Images?

Jan 21, 2009

My question applies only when I work in 16 bit system resolution, so when I apply some text and apply 'Anti-alias for readability' with embedded chars, there is some strange filled rectangle showing around the text box. The same applies when I add any kind of filter to a text or image. You may see the exact problem by clicking on the link below: http:[url]....

- Notice the rectangle around the text boxes ('anti-alias for readability' applied, it doesn't matters is it static or dynamic text)

- Notice the rectangle around the middle dark-gray box with glowing effect applied

I will say again, this problem occurs only in 16 bit system resolution, it is not applying in 32 bit.

View 1 Replies

IDE :: Expanding Mouse Over Rectangle?

Feb 22, 2009

I know how to do general mosueover which cause cause new objects to load, or display a different frame in the timeline. What I wanted to know is how does one get it to do what looks like to be a motion tween when object is rolled over.

View 1 Replies

ActionScript 3.0 :: Separate My Each Rectangle?

Apr 15, 2009

I'm working with BitmapData.getColorBoundsRect and it works so far fine for me. But what if I want to find more rectangles with the same color? For example: I got a BitmapData with 3 red rectangles. If I use getColorBoundsRect I get the whole area including the 3 rectangles. Is there a way to separate each rectangle?

View 5 Replies

IDE :: Playing External Swf's In Rectangle?

Oct 10, 2009

I've got a flash site that's done in Action Script 2 in Flash CS3. On the gallery page I want to be able to load and play the external swf slides that the links point to where the black rectangle is instead of in seperate windows. I've tried all sorts of things but I just can't figure it out.

View 1 Replies

ActionScript 3.0 :: Calculate Inner Rectangle?

May 20, 2010

how to find the biggest possible area within a rotated image (the black rect in attached image), but can't figure out how to calculate the points TL, TR, BR, BL to draw my rectangle (the red rectangle in attached image).

View 3 Replies

ActionScript 2.0 :: Playing External Swf's In Rectangle

Oct 11, 2009

I've got a flash site [URL] that's done in Action Script 2 in Flash CS3. On the gallery page I want to be able to load and play the external swf slides that the links point to where the black rectangle is instead of in seperate windows. I've tried all sorts of things but I just can't figure it out.

View 2 Replies

ActionScript 3.0 :: StartDrag() Constrain To Rectangle?

Oct 19, 2009

I am trying to created a constraint to a rectangle. I have the startDrag working and I am trying to constrain a square to the movie size of 600x400.I have been searching online help files but I can not for the life of me get it to work, would someone beable to put me out of my misery. I have attached the demo file I am working with but I will also post my script here for thoughs who prefer that...

Code:

("animation", false, 0, 0, 300, 300);

but know joy...

my code:

////Button Listeners/////////////

Code:

// BtnNav listeners
btnNav.addEventListener(MouseEvent.ROLL_OVER, btnNavOver);
btnNav.addEventListener(MouseEvent.ROLL_OUT, btnNavOut);
btnNav.addEventListener(MouseEvent.CLICK, btnNavDown);

[code]....

View 2 Replies

ActionScript 2.0 :: Scale A Rectangle From Center?

Dec 8, 2010

i have a simple rectangle. i would like to scale it to 200 but the scaling always begins from top-left corner of the rectangle. how can i scale it from the center?

[Code].....

View 3 Replies

ActionScript 3.0 :: Drawing An Invisible Rectangle?

Mar 15, 2009

I would like to have an invisible drop target so I can dropand item and have it go to another part of the training. However,if I create a rectangle as a sprite and don't fill it in, itdoesn't recognize it as an area apparently because nothing happenswithout a fill color. I tried just a regular rectangle, shape, etc.

View 5 Replies

ActionScript 3.0 :: Dynamic Drawing Of Rectangle?

Jun 10, 2009

I am trying to make a dynamic drawing tool for rectangle like this link : [URL]
 
I was able to make a line tool.

View 3 Replies

ActionScript 3.0 :: Tweening A Rounded Rectangle ?

Jul 15, 2009

I would like to tween between a short rounded rectangle and a tall rounded rectangle. (I only want deal with the height - no other parameters). I am programming with ActionScript 3. My tweening engine is TweenLite.I have been tweening a sprite that contains a rounded rectangle. The tweened sprite produces distortion. I suppose that I have been scaling the original image, rather than the height of the rounded rectangle?Here is a simple example of my code:
 
Draw the rounded rectangle:
 
roundRect = new Sprite();roundRect.graphics.beginFill(0x000000);roundRect.graphics.drawRoundRect(0,0,50,15,4,4); //Original Height: 15roundRect.graphics.endFill();addChild(roundRect);
 
Then I listen for a mouse click event on the rounded rectangle.The mouse event triggers a function with the following code:
 
TweenLite.to(this.roundRect, 1, {height:120}); //Final Height: 120

I would like to tween the height of the rounded rectangle itself. I would hope that this would not produce the unwanted distortion.

View 2 Replies

Cannot Draw A Transparent Rectangle In Flash CS4

Sep 18, 2009

In Flash CS4, when I draw a rectangle (or circle, or anything) with a color that has 0 alpha, nothing is drawn. Also, if I select a piece of drawing and change the color to 0 alpha, the drawing (e.g. rectangle) disappears!I know I can draw a non-transparent rectangle, convert it to movie clip and set the movie clip's alpha to 0, but I'd like to avoid this.

View 5 Replies

ActionScript 1/2 :: ScrollRect Without Rectangle Class

Feb 22, 2010

Is it possible to use scrollRect without the flash.geom.Rectangle class?I know the scrollRect can be used like this:import flash.geom.Rectangle; myMC.scrollRect = new Rectangle(10,10,100,100);I need to make a flash which doesn't extends outside the stage (bacause loading it from another flash will expose anything outside the stage area). Using a mask is an option, but scrollRect seems very interesting because it would be easier and give greater performance.But I can not import the flash.geom.Rectangle class (and it seems overkill to import a class just to set x,y,width and height)How can use scrollRect without the flash.geom.Rectangle class?

View 3 Replies

Convert Something To A Symbol Without Turning Into Rectangle?

Dec 5, 2010

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.

View 4 Replies

Limit Movement Of Object To Rectangle?

Mar 16, 2011

I have an object who's movement I want to limit to a small rectangle on the stage.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved