ActionScript 3.0 :: Animating A Drop Zone?

Aug 28, 2011

i am working on a drag and drop activity in which i would like a function to be triggered once i drag over the dropzone. i've tried putting the dropzone movie clips into an array, and assigning an "over" state to them - but it would only trigger the function when i rolled over, not dragged an item over them.

Code:
import flash.display.MovieClip;
//assigns everything to the plan buttons;
for (var i:uint = 0; i < planArray.length; i++) {

[code]...

View 2 Replies


Similar Posts:


ActionScript 2.0 :: USA Time Zone Map

Apr 28, 2011

I have a working USA Time Zone Map. It works, but there are some bugs that I cant seem to get rid of.1st off, the time is based on the PC's clock. ( It's a work related thing, and no need to go from there)I have a clock displaying OUR current time (AST). I have EST, CST, MST, and PST times displayed also.I offsetted the clocks in each zone by simply adding the following code for each clock movie;[code]If I do -4, or -5, and so on, I get a '-' in front of the hours before the hour number, and if I add the AM, PM code in , like in the AST movie, THE movies dont show the proper AM, PM times when it is either AM, or PM.The FLA attached works fine as is, but I want to be able to have the AM/PM after the time on the clocks that are not local to the user 's PC clock.url...

View 3 Replies

Simple Button Hit Zone Not Working

Nov 4, 2009

I am somewhat new to Flash CS4 andt am having a problem making simple buttons in Flash CS4 on a Macintosh: I have made a few buttons with a graphic and can go into them and successfully create the Up, Over and Down stages of the graphic. Then when I create a new box for the hit state (which is larger than the graphic and I have deleted the graphic itself from the hit state) it doesn't want to appear correctly when I test the movie. When I test the movie, the hit state is correct everywhere around the graphic (to the bounds of my hit state box), but is not active where the graphic is.

When I go under the Control menu, down to Enable Simple Buttons, the hit zone looks great right in my Flash file, but when I preview it or publish it and look it on different browsers (PC and Mac), I don't get my pointer right over the actual graphic, but get it everywhere around the graphic to the boundaries of my hit box. Why can't I get the actual graphic to be a hot spot in this situation? I have tried leaving the graphic in the hit timeline, and tried putting both the larger box and the graphic in the hit timeline, and still can't get them to respond correctly with the pointer in the browser window.

View 2 Replies

Professional :: Mouse Zone Detection?

Mar 25, 2010

1- i have a circular menu, with a zoom effect when you hover on it, with the home button in the center, when you click the home button you load the page then reload the scene 1 ( menu idle ).If i put nothing on the button itself on the scene 1, before the zoom effect, i need to move out of the button to trigger the other scritp there that detect the rollover and start the zoom in.i want to have a special behavior for the home button on the idle state of the menu ( scene 1 ) , When you click the home button from anywhere else, you load back the page, then because the mouse is already on the home button, i want flash to do nothing, but at the second you start to move the mouse again ( remember you are still on the home button) i want it to start teh zoom effect again, not before.

Right now, it is either no zoom effect as soon the mouse is on top of it, or imediatly zoom in with the rollover....And i know it is possible with a very simple command, but i forgot it... i did it before.2- for the same menu, i will have a sub-menu unfolding when you click a certain button, that sub-menu is outside the main menu detection zone. Is it possible to make a shape, turn the alpha at 0, put it under the sub-menu, and use it as detection zone

View 3 Replies

ActionScript 3.0 :: Wrong Time Zone

Feb 16, 2011

var nextDay:Date = new Date("Mon May 1 2006 15:30:00"); // yields Mon May 1 15:30:00 GMT-0400 2006  (I''m in ET zone, so it should be -0500)

View 5 Replies

ActionScript 2.0 :: Run 2 Clocks With A Different Time Zone?

Sep 15, 2002

what i should do with this script so that i can run 2 cocks with a different time zone (Miami EST TIME & Frankfurt, EUROPE TIME). I can find a lot of tutorials on [url] but all those are too complex and they have an analog script included.

I[code]...

View 14 Replies

ActionScript 2.0 :: CS3 Get Two Different Time Zone From Server Side?

May 31, 2010

I am making a website and they are asking for displaying two different time zones. Website will be deployed at USA server. So want to calculate according to that. I don't want to get the system time of the PC

View 1 Replies

ActionScript 1/2 :: Erase At Specific Zone-under Sponge?

Sep 14, 2009

I trying to realise an eraser effect but... no tutorial found... till now I make this... but don't know how to erase at specific zone-under sponge- whitout erase all like in this fla.
Fornow is smth like:I have a layer for car, one for spongee and a layer for dust...Till now I just realize an alpha decrease for each sponge drag...

stop ();var i=2;var d=100;sponge_mc.onDragOver=function() { d=d-i; ****_mc._alpha=d-i; }sponge_mc.onPress = function(){this.startDrag()
}[code].....

Attachments:
Spongee&Tween.swf (407.2 K)

View 5 Replies

ActionScript 2.0 :: Make A Own Time Zone Clock?

Dec 20, 2009

I want to make a clock but not just the time straight from my computer. I want to make my sort of own time zone clock. Is there any tutorial on making that here or an explanation?

View 1 Replies

ActionScript 2.0 :: Change Icon On Determined Zone?

Sep 13, 2005

I did a simple flash file to be able to users paint on draw. Now i want to change the icon only on certain zones but i don't know how to do that.. I want the icon to be the pencil when it's on the yellow area and i want it to be red again when it's on the red area.

Here is my fla: [URL]

View 1 Replies

ActionScript 2.0 :: Clock To Display Different Time Zone?

Oct 15, 2007

I am working on an application to display GMT time and CST time in a swf. I am able to make the clock display time in GMT. When I check for time in CST it seems to be 1/2 hour behind. I am bit confused and code is junk now (So not up in the forum).

View 2 Replies

ActionScript 2.0 :: Flash CS3 - Symbol Zone Hittest?

Dec 28, 2011

I've been trying to work around this for a long time and no matter where i ask no one can give me any kind of solution to this... even when the problem itself doesn't look that hard but its hard to explain.I was trying to make a very simple kind of maze game with a flat perspective (like the 90s RPG) the maze walls must be four sided solid, the left and right walls are not a big issue but the top and bottom walls have the problem, for example the top walls must allow the player's head and body to go over it but stop at his feet and the bottom is something alike.My idea to solve this was put another symbol inside the player and put it on the lower part and another symbol inside the wall and make the hittest but it didn't work
I put the walking code and the hittest on the player symbol and it worked, but immediately when i put the hittest code on the symbol at his feet inside the player symbol the code stop working.The walls must contain the solid and graphic part inside the same symbol because some of them will move

Right now I deconstruct the whole thing, any idea will work, i'm just starting pretty much from zero

View 10 Replies

Professional :: Make Loading Zone For Flash Black

May 21, 2010

the website i have is black... and contains large flash galleries... The problem is before the load they look like a large white squares... then they load and look great... is there anyway that it can look like a large black square so that viewers cannot tell that there is something located on the black background until it loads

View 1 Replies

ActionScript 3.0 :: Capturing A Javascript Src Ad Zone Text In Flash

Jan 28, 2010

I build flash web sites and have only a limited understanding of javascript. I am trying to monetize a flash page that I have built for myself and is getting an increased traffic. The page has to be flash as it is based on flash dynamic graphic capabilities. Besides I prefer to integrate and customize the ads into my page rather than use standard ad zones offered by the ad networks. I have a permission from a small ad network to convert their ads to flash but I was not able to do it myself. They use a standard java script src code for creating their ads. It looks approximately like this:

<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.Advertiser.com/Advertiser.dbm?pid=22222&bid=111111" type="text/javascript"></SCRIPT>

They require though that the capturing will be done in a way that allows them to monitor my page. I can publish Flash player 9 so I can work with ExternalInterface.call

how to translate the code to Flash and how to change the html code will be helpful. I am also willing to pay someone who is interested in working with me directly via Email correspondance on properly placing the code.

View 0 Replies

ActionScript 2.0 :: Date Countdown Timer / Specify Time Zone

May 16, 2007

I've been using your tutorial for a date countdown timer with great sucess, although now I realise because it took the date from the computer that is viewing it and because the event is counting to an event in India, it would be wrong because up until now, ive just put the date and time so obivously it would be wrong because it would be that time/date of that timezone. Is there anyway I can alter the actionscript for a specific timezone?

View 2 Replies

Flash - Change The Color Of A DisplayObject When It Moves In A Specific Zone?

May 17, 2011

I am coding a graphical interface using Flex, and I have a qestion related to masks in Flash.I want to create a kind of mask that defines which color and which alpha value a text will have according to its position on the screen. It is very easy to do that with the text being the mask of a bitmap, for instance.

However, I also want to take into account the color of the text itself.for instance, if I create a red text, in some zone it will be red with a modified alpha value, but on another zone, the text will be full white, as if there was a kind of mask which also applies its own color on top of it.

Is there a way to easily do this kind of thing? Of course, I can manually apply the format on the text according to where it is, but I wonder if there is an automatic processing like mask or blend mode using a DisplayObject as a processing pattern.

View 1 Replies

Flash :: Professional - Stop Adding Link 'hit Zone' At Start Of Animation?

Jan 26, 2010

I have created a short animation in Flash CS4 which has one button with a URL link. the button shows up on frame 217, and on that frame I added the following action script:  

[Code]...

however, the 'hit zone' for the button shows up from frame 1 of the animation. is there a way of getting the hit zone to start when the button shows up?

View 3 Replies

Actionscript 3 :: Adding Time Zone Hours Difference To Time

Apr 23, 2010

I need to add in extra hours to the time, and the day will change automatically too. How should I change the code below?[code]

View 1 Replies

Convert Date And Time To CDT Time Zone In Flex4

Apr 15, 2011

How to convert date and time to CDT time Zone in flex4.

View 1 Replies

ActionScript 3.0 :: Drop And Drop 4 Movie Clips To Single Target To Navigate To Separate Urls

Jan 20, 2010

var myTargetName:String = "target" + event.target.name;
var myTarget:DisplayObject = getChildByName(myTargetName);
if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
navigateToURL(new URLRequest(http:// websiteAdress.com));
 
I am trying to navigate to a new url for each movie clip, problem is im really unsure of how to achieve this I have one target on my page and would like to be able to drop any of these movie clipt o to  it?
 
the movie clips are named:

port1_mc
port2_mc
port3_mc
port_4mc

View 3 Replies

ActionScript 3.0 :: Drag And Drop With Outputs Based On The Drop Positions?

Jan 6, 2010

I'm trying to make a simulation where a person can drag 2 different objects to any 4 predefined targets on the stage.  Based on the position of the 2 objects there will be a different output text.  I hope I described that clearly.  I would also like the 2 objects to snap to the 4 targets.  Im very new to AS.  Im starting to be able to read it a bit but still can not wright it.

View 9 Replies

ActionScript 3.0 :: Flash Release To Drop NOT WORKING On Drag And Drop?

Mar 10, 2011

Release to Drop NOT WORKING on drag and drop? Or is it something else?Can be seen here:

[URL]

Code:
var origX:Number;
var origY:Number;
for(var i:uint=1; i<6; i++){
this["choice_"+String(i)].buttonMode = true;

[code]....

View 3 Replies

ActionScript 2.0 :: Showing Time By GMT Time Zone?

Mar 31, 2010

I am willing to do something like this in flash. Just 2-3 clocks showing times of different countries will also do.

I figured out that it has to be done by GMT, Time Zone but don't know how. I don't know php or jawa or any other language. Just basic flash scripting.

View 0 Replies

Drop Down Menus That Drop Over The Html Part Of The Page?

Jun 11, 2009

When i insert the flash menu it basically dosent fit into the alloted space i gave for my horizontal navigation bar, when inserted it blows apart. the only thing i could think of was resizing the flash document but then i cant see the menu expand it gets cut off,

Attachments:
issue_flash1.jpg
(24.2 K)

View 3 Replies

IDE :: Drop N Save - Take A Image And Drop It Onto A Big Circle And Then Have It Stay There?

Feb 10, 2003

I have for a physics type site and I need to find a way of doing the following two things:

1. I know that I have come across drag n drop tutorials before but I can't find them.I basicly want to take a letter or any image and drop it onto a big circle and then have it stay there!

2. Secondly is there a way of having the visitor kind of like create their own image and then have them save it to the site so that it can be displayed in a gallery without using fancy stuff like php, cgi ?

View 3 Replies

Navigation Button Drop Down Menu Won't Drop Down

Aug 13, 2009

Can somebody take a look at my .fla file and tell me why exactly my menu is not dropping down at all?If you download my file go to scene 3. that is where my Navigation Bar is.URL...

View 1 Replies

ActionScript 3.0 :: Drag And Drop - Drop Not Always Firing?

Dec 11, 2009

I have added drag and drop to some of my custom components.The drag event is fired on mouse down.If you mouse down and move the component around then drop it repeatedly its fine.But if you mousedown and drag the component around drop it and THEN just click on the component it inits the drag but doesn't fire the drop event.Its almost like you have to move the component for it to fire the drag drop event.This is very annoying as i'm removing the component on drag init and adding it again on drop, so just clicking on it makes it disappear.

View 1 Replies

Animating A Gif In Flash?

Jul 25, 2009

I have imported the gif which has now split into different snapshot screens of each frame.Down the right hand side I can see "draw" tools which I want to use to edit the clip. When I click on a tool like a paintbrush then I click on a frame to paint on the frame...... it doesn't let me do it. It lets me draw, but when I release my finger off the mouse it dissapears.

View 1 Replies

ActionScript 2.0 :: Mc Not Animating Out?

Jun 23, 2010

There are 3 menu buttons that are functioning: Home (no content), webdesign, prints.In the web design and print menus you can browse with the arrows left and right.If you click just on the menu buttons the animate on and of works perfect, but as soon as you use the browse buttons, and later on you are trying to go for example from the prints to the webdesign, the animate off function stop working.

This is the code on the the main time line:

var currentPage = "contentHome_mc";
_root.onEnterFrame = function() {
animateOn("contentHome_mc");

[code]....

View 8 Replies

CS3 Animating An Opening Drawer?

Jun 17, 2009

I'm trying to make an animation of a drawer in a cabinet opening. These are the two images I have:

I can't work out how to animate it. I tried a shape tween with shape hints on the corners, and that didn't work.

View 2 Replies







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