ActionScript 2.0 :: Sliding Mask On The Map

Nov 11, 2004

I am trying to make something like this : A flash movie with the dimension 400 X 400. I have made two movieclips says "Map" which is 800 X 800 and another "mask" which is 100 X 100. I have placed the "Map" movieclip on the stage on one layer and the "mask" movieclip on the other layer. I gave mask action to the map layer so now i can just view 100 X 100 area of the "Map" on the stage.

I have given the following action on the frame : startDrag("mask", true, 0, 0, 800, 800);

so that the mask will move with the movie on the stage.

Now the problem which i m facing is : I dont want to resize the movie according the window size and also i dont need scroll bars, i want to publish it in the size 400X400, so what happens is that i can just move the "mask" into this much area and as the "Map" movieclip is 800 X 800 hence i cant see the right and bottom part of "Map".

Hence now what i would like to have is that when i move the "mask" from left to right the "Map" movie clip should move below it from right to left upto its width and the right end of the stage and vice versa. In the same manner when i move the "mask" from top to bottom the "Map" movie clip should move from bottom to top upto its height and the bottom end of the stage and vice versa.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Alpha Mask - Area Of The Loader Outside Of The Mask Will Visible When The Mouse Is Down

Sep 10, 2010

I have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:

[Code]...

View 2 Replies

ActionScript 2.0 :: Scriptable Mask - Large Mask Behind The Whole Of Flash Site?

Aug 19, 2003

what i am doing is to make something along the lines of the "scriptable mask" tutorial Inigo was kind enough to put up.My idea is to have a large mask behind the whole of my flash site, this masks a colour image with a black & white one (nothing tricky). The image I am using is actually 5 separate images combined, and each is a pic of certain parts of the site.I also have a very basic set of buttons along the bottom... each corresponding to each section.

All I want is to set it up so that when I mouse over the buttons, the _x of the mask moves to correspond with the correct image... really very basic... or so I thought .If anything it should be easier to do than what is in Inigo's tut (where he uses the _x of the mouse to move the mask)... i just cant seem to get it to work with a nice easing effect (its easy to get the mask to simply snap to each coordinate, but I need it to smoothly move).

View 4 Replies

Create Own Mask Around A Jpg Image By Drawing Around It On The Mask Layer

Dec 4, 2009

maybe point me towards a better way to mask. png file is way too big. I have been using the mask layer option to create my own mask around a jpg image by drawing around it on the mask layer. There has to be a fetter and faster way to do this. Is it possible to maybe have a specific color range have an alpha value of 0. Similar to green screening whereas If I put the item I want to clip on a green background flash will auto take out the green for me. and by auto I mean action script maybe. I think this can be done but im not finding it.

how are these guys clipping these images [URL] they have the movie clips set up where the black background on the 3 layers of shoes is getting masked out. When I go into the shoe movie clips I see there is a black background but it just disappears when I go back to main timeline.

View 3 Replies

ActionScript 3.0 :: Shape.mask=mc.mask In As File Not Working

Apr 8, 2010

ive gotten one movie clip to mask another in the actions frame but i cant seem to be able to mask the flames which are a shape with a movieclip in this as file. im not getting any errors but the mask isnt covering anything look near the bottom at s.mask=mask_mc; there are about 20 "s" shapes spawning per second if that has anything to do with it

Code:
//this package turns an mc into a flaming button that calls a javascript function
package
{
import flash.display.MovieClip;

[Code].....

View 3 Replies

ActionScript 3.0 :: Possible To Mask Multiple MC Or Sprites Under One Mask?

Nov 26, 2009

I was wondering if its possible to mask multiple MC or Sprites under one mask, when using AS3.abc.mask = a;cba.mask = a;something like that

View 2 Replies

ActionScript 2.0 :: Move MC Without Sliding?

May 23, 2010

How can I move MC object without using tween. I don't want that it slides.

View 4 Replies

IDE :: Horizontal Sliding Menu?

Sep 11, 2009

I used the tutorial on this site for the horizontal sliding menu and would like to modify it to work like the one found here [url]....

View 1 Replies

ActionScript 2.0 :: Sliding Navigation Bar?

Oct 18, 2005

tool which takes the form of a sliding bar.(top left of page)What I'd like is to have it so that as the bar slides up and down the image to the left of it changes. Then when you release the button the corresponding page loads.hat the code would look like for this sort of effect?I'm not sure where to start, or if maybe I'm over complicating it and I should just go with a row of buttons or something?

View 2 Replies

ActionScript 2.0 :: Add A _y Value To The Sliding Menu?

Jul 29, 2006

I want to add a _y value to the sliding menu tutorial, [URL]

View 6 Replies

AS2 :: IDE - Left / Right Sliding Thumbnails (CS3)

Feb 3, 2009

Stuck trying to get a pretty simple thumbnail gallery to work: Basically it's just a movieclip of horizontal thumbnails (50 in total, masked so only 10 are shown at a time) with a left and right arrow on the sides, which when clicked should make the thumbs smoothly shift left or right to display the next or previous 10 thumbs (fixed at 1-10, 11-20, 21-30, 31-40, 41-50). They should smoothly ease into place, and the left and right buttons should disable when you reach the left or right limit Is there a simple way of doing this?

View 6 Replies

ActionScript 2.0 :: Sliding On The Y Axis?

Dec 8, 2003

The tutorial shows how to make the movie clip slide on the horizontal (x) but how do I configure the code to use both horizontal and vertical (y)?I know this is asking for alot but I really am a novice at this actionscript stuff Do I just add a dest=" _root.ynew ;" and "pos = this.y ;" some how to this code?

stop () ;
MovieClip.prototype.move2 = function () {
dest = _root.xnew ;
pos = this._x ;

[code]....

View 2 Replies

ActionScript 3.0 :: Sliding Gallery / How To Loop Around

Apr 29, 2009

I'm working on a sliding featured gallery like Kongregate.com or Hulu.com uses on their home pages. What I have so far is here:URL...Where I am running into trouble is in the loop around/wrap around areas. My next and previous buttons tween to the next/previous item just fine. However when I get to the last/first, it gets tricky.What I have done when you get to feature #5 is check for the x position, and if I am going beyond 5, I reset it so that we pull in #1 instead. The problem is that this scrolls in #1 from the wrong direction. (Take a look at the SWF above to see what I mean).If I shoot further back in negative X direction and scroll that way, I'll end up with blank space at the start of the move. I could dupe #5 and put it there, but then I have two versions of feature #5 (and #1 for the wrap the other way) that have to be maintained. (Note these will be more than just a blank square obviously, they will each be movie clips that do things).

Possibly that is the correct way? Or am I going about this the wrong way. Would it make more sense to dynamically create, scroll and remove the clips on each button click? (I'm not sure how I would do that exactlyI suppose I could also add the buttons via actionscript too, instead of placing them in a layer and them zipping them to the top, although I'm not sure it matters much.[code]Also one other thing, I note that if the user clicks one of the buttons before the tween completes, it throws the whole thing off (since it grabs the x value when clicked) - is there a way to disable the buttons until the tween is complete?

View 6 Replies

ActionScript 2.0 :: CS3 Sliding Thumbnails Plus Scroll Bar And Pop Up?

Jun 11, 2009

I've done the basic sliding thumbnail bar with the rollover and clicking on the thumbnails before, but I'm trying to replicate the one on the [URL] homepage.

I wanna do exactly what they've done. I want to have the scroll bar below the slider that they user can use. And I want the thumbnails to pop forward and have info pop out for the selected person. I didn't know how to make the thumbnails readjust themselves when the popup came out. But I'm not sure how to add this into my basic slider.

View 1 Replies

How To Make Horizontal Sliding Menu

Aug 24, 2009

Any tutorial or how to make a horizontal sliding menu ,like in the home page of this website [URL].

View 2 Replies

ActionScript 2.0 :: Sliding Menu Thang?

Oct 7, 2009

I want to make this sliding box lookin thang follow my mouse whenever it is in the blue box. http:[url]....Example ::..

The box starts on the left side behind the "HOME" text.now say i move my mouse over portfolio, forum, or even back to home.I want the box to follow along make sense?

View 2 Replies

ActionScript 3.0 :: Horizontal Sliding Gallery?

Apr 13, 2009

I'd like to use a gallery similar to the one atfor a gallery I am creating. I have an idea of how the horizontal motion would work using a timeline but does anyone have an idea of how I could use actionscript to move the movieclip horizontally so that each image is centered or using a tween class?

View 40 Replies

ActionScript 1/2 :: Slide Down Menu Not Sliding Up?

May 4, 2009

I created a slide down menu and for the most part it works when you click on each link, but for some reason, it hangs if you have one link expanded and you click on another link:[URL].. I used an old .fla file and it worked fine but when I added an extra category to it, the menu went all crazy. I'm not sure how to fix it.

[Code]...

View 1 Replies

ActionScript 3.0 :: Put Sliding Panel With Buttons

Sep 22, 2009

so i have some buttons that i want to put on a sliding panel. The panel and the buttons are on the same layer. The buttons are buttons i created. there is a seperate button, instantiated as channels, that i use to slide the panel out. I read an online example that made it seem as though if i just placed the buttons on the panel in the stage, they would just slide out with the panel. This is not the case however. here's my code

[Code]...

View 7 Replies

Add Functional Buttons To A Sliding Panel?

Nov 6, 2009

i want to make a sliding panel with 2 buttons on it. The panel pops up from the bottom of the screen when the mouse is hovering over the the bottom 25 pixels of the screen. The panel is set to disappear when the user hovers the mouse off of the panel. At first i just tried to put buttons on the panel and covert the whole thing to a symbol, but then i could not access the individual properties of the buttons. What i tried instead is to make invisible buttons over the area where the image of the buttons were on the panel. The problem is that when now when the user hovers over the button, flash reads it as the mouse leaving the panel and the panel disappears.

View 3 Replies

ActionScript 1/2 :: Vertical Sliding Content?

Mar 13, 2011

I'm trying to make vertical sliding content on my flash site and I have it working so that when I click on the second button, it slides up to the second content, but when I click back on the 1st, it doesn't slide back down to display the 1st content.

var currentPosition:Number = contentholder.richginfo._y;
var startFlag:Boolean = false;
menuSlide = function (input:MovieClip) {

[code].....

View 5 Replies

Changing Color With Sliding Scale?

Mar 2, 2010

I am looking for a way to create a sliding scale, not unlike a horizontal scrollbar that changes the background colour of a page as it moves left or right. Whats the best graphics software for this?

View 1 Replies

Silverlight :: Sliding Images Web Tool

Oct 28, 2010

We are looking for a sliding image tool like the one on the following home pages:

1) [URL]

2) [URL]

Where can we purchase something similar?

View 2 Replies

Flash - Dynamic Sliding Panels?

May 23, 2011

SO, it's been a while since I've done actionscript 3 again, been mostly busy with iOS programming..Anyway, what I'm trying to create is a sliding panels.So far they work but I'm having some troubles, And everything I try does not do what I want hehe.

The panels work, I generate 5 of them in a for loop, they slide open and close when clicked using greensock.But, They all have a label, which needs to slide with it instead of staying on the same position.Plus, I have a if/else to check if a panel is open, but I want to check this individually instead of overall.

The full code is:

import com.greensock.TweenLite;
import flash.geom.ColorTransform;
import flash.text.engine.TabStop;

[cod]....

View 1 Replies

ActionScript 3.0 :: Sliding The UILoader Content?

Aug 31, 2009

i am using flash cs3 with as3. i want to slide content of uiloader with some percentage whenever i click slide button.i have a UILoader of size 1024*768 with scaleContent=false , and the mask of size 1024*768 set on uiloader. i have an image of size 2048*768 and i load this image to uiloader, now i have a two buttons on the screen one for slide left and other for slide right.i want to slide uiloader content by 256 pixel every time the button was clicked in particular direction(depends upon which button is clicked).

currently i am working on right button only. so ignore left sliding at this point.The problem is when i clicked button first time it works fine but when i clicked the same button second time the slide of image is disturbed and it first goes 256 pixels behind zero and then slides to 512 pixels (at third click again it starts from -256 and then come at the target position) . i want to slide the uiloader contents from 256 to 512 at the second click and so on.

View 1 Replies

ActionScript 2.0 :: Dynamic Sliding Menu In MX?

Jan 21, 2003

Lostinbeta utilises a sliding menu system with a delay so that the section head follows after the content. I have been looking around for a tutorial but haven't found one to date

View 1 Replies

ActionScript 2.0 :: Replicate The Sliding Action?

Jun 30, 2005

[URL]

When you open the site, there's a really sweet slideshow. I've been able to replicate the sliding action and I can click on each image to take me to a new URL, but I can't get it to automatically rotate on it's own. The numbers are fine, but I'd also like to add next/prev buttons.

Like I said, I got it scrolling, I just don't know how they're controlling theirs. I think I'm just doing it all wrong.

View 1 Replies

ActionScript 2.0 :: FMX Sliding Windows Tutorial?

Apr 13, 2003

I must stress before I start that I am very new to flash and actionscripts. I have just completed the sliding window tutorial on this site. [URL]..I am wanting to use it for my own site. My problem is that when I scale everything by 500% and make my movie bigger, the windows don't scroll the same. I understand that I have to change the values in the script on the invisible buttons but I don't know what to use. I tried putting in numbers in by trial and error but I can't get them all working.

View 2 Replies

ActionScript 2.0 :: Sliding And Zoom Content?

Feb 9, 2006

I'd like to get the content sliding and then zooming in effect achieved here:I know that the the basic content slide works using the AS below.Any ideas on adapting this to get the effect achieved at Zebra? Or is a different approah needed?

onClipEvent (load) {
_root.targetx = 116;
_root.targety = 34;

[code]....

View 6 Replies

ActionScript 3.0 :: STRINGY Sliding Gallery Pt 2?

Dec 5, 2006

Originally Posted by stringy ee if this something like you want

Code:
var buttonNames_array=[]
for(var j=1;j<4;j++){
buttonNames_array.push(this["but"+j])
}

[Code]...

I have even tried duplicating all the relevant MC's and updating the code to read lets say:
scroller and scroller2 etc

Does it require some kind of resetting of information to accept new referencing to images? I cant see why it should'nt work

View 14 Replies







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