ActionScript 2.0 :: Hot Area - StartDrag And Hover Captions

Dec 17, 2003

I have a "hot" area where the user can drag around this newspaper looking thing. Also, there are hover captions that say, "Drag" and a caption that says "Close" over what will be the close button. Everything works fine. Until.... Click to drag the paper thingy, then release it. Move your mouse off the paper, then back onto the hot area. The captions snap right to the center of the hot area.

View 8 Replies


Similar Posts:


ActionScript 2.0 :: StartDrag And Hover Captions?

Dec 17, 2003

I have a "hot" area where the user can drag around this newspaper looking thing. Also, there are hover captions that say, "Drag" and a caption that says "Close" over what will be the close button.Everything works fine.Until....Click to drag the paper thingy, then release it. Move your mouse off the paper, then back onto the hot area. The captions snap right to the center of the hot area.

View 8 Replies

ActionScript 2.0 :: Dynamically Created Hover Captions

May 10, 2004

this worked in a simple file where it was the only thing on the stage (see this thread). Now I am implementing it in a much more complex scenario and the movie clip in question is quite buried so bear with me:

This is in my main timeline:

Code:
Movieclip.prototype.hover = function(sometxt) {
this.onRollOver = function() {
_root.m = 1;

[Code]....

The resize() function is just some simplified code from the resizing slideshow. Now this works as in when the ktn MC is rolled over the box appears where the mouse is and resizes to fit the text. When I do a trace on sometxt it reports back the correct text but the text itself doesn't show. The box is a light blue and the default for createTextField is black so that shouldn't be a problem.

View 14 Replies

ActionScript 2.0 :: Hover Captions On Random Movement?

Jun 21, 2003

pom kind of helped me before (one of many times), but im really stupid and don't understand. I have randomly moving movie clips, and i want them to be links and have hover captions.

View 1 Replies

ActionScript 2.0 :: Dynamically Created Hover Captions?

May 10, 2004

This is in my main timeline:

Code:
Movieclip.prototype.hover = function(sometxt) {
this.onRollOver = function() {
_root.m = 1;

[code]....

The resize() function is just some simplified code from the resizing slideshow. Now this works as in when the ktn MC is rolled over the box appears where the mouse is and resizes to fit the text. When I do a trace on sometxt it reports back the correct text but the text itself doesn't show. The box is a light blue and the default for createTextField is black so that shouldn't be a problem.

View 14 Replies

ActionScript 2.0 :: Hover Captions In Movie Clip?

Jun 28, 2004

I'm following along the "Hover Captions" tutorial on kirupa.com. everything works as it should, but I'm having a bit of a problem. I want to have the button that will be hovered over inside a movie clip. When I do this, though, that movie clip is moved around by my mouse.

View 1 Replies

ActionScript 2.0 :: Externally Load Text For Hover Captions?

Apr 21, 2007

I am trying to modify the hover caption tutorial from here at Kirupa to load the text in the caption from an external text file. Could anyone give me a hand trying to figure this out?I tried the simple way of loading external text but because the text is loaded in a MovieClip this does not work. Here is my code for the hover menu that currently loads the text dynamically through ActionScript:

MovieClip.prototype.resize = function() {
var w = box.caption.textWidth+0
var h = box.caption.textHeight+0;

[code]......

View 3 Replies

ActionScript 2.0 :: Delaying The Appearance Hover Captions By A Few Seconds?

Oct 26, 2007

I have used the tutorial for Hover captions found here:[URL].. and I have searched the forum but can't find an answer to my specific question.

I'd like to have the caption appear after the user hovers for 2 or 3 seconds----rather than immediately.

I have been told to use setTimeout for this but am not sure how to do that.

View 4 Replies

ActionScript :: Show Buttons When Hover A Certain Area?

Mar 9, 2011

I am trying to achieve an effect in Flash. The effect in question is that when I hover a certain area I want my navigation (6 movie clips that acts as a button) to appear and disappear when I move my mouse out. The trouble is that right now I Can make then appear but I cannot click them nor mouse over them since I've put a transparent (alpha = 0 ) over them.

I'd like a solution or hint of a solution in AS2 but I am open to AS3 solutions as well.

View 4 Replies

Actionscript 3 :: Flex: Listening For 'Hover' Over Link In Text Area

Aug 3, 2009

I am trying to find out when a link is 'hovered over' in a text area showing html text. I wonder if listening for a cursor change kind of event might be the way. I can't find anything in the docs.

View 4 Replies

Professional :: Set Captions To Be OFF By Default, Using The Captions Component In Flash CS3?

Dec 12, 2008

Using Flash CS3, v9, AS 3. I have got a Flash movie that I have set up to have captions display over it.I am using the included FLVPlayback component for the movie, and the included FLVPlaybackCaptioning component to set up the captions. My movie uses the included

[Code]...

View 1 Replies

Flash :: Canvas Moved On StartDrag() Without Calling Set X / Y Or Move() - How Does StartDrag() Exactly Work In As3 / Flex

Feb 11, 2011

i have an .as class that extends mx.containers.Canvas (it's a draggable border of a resizable component), it becomes draggable on MOUSE_DOWN and stops being draggable on MOUSE_UP, MOUSE_OUT and ROLL_OUT. before calling startDrag() i create a Rectangle to define the drag area, i also have a _dragging: Boolean variable to control if it's draggable at the moment. the problem is that when i click this border it jumps to a negative coordinate without calling startDrag or switching _dragging to true.

i've overriden get x, set x, get y, set y and move() methods in order to solve it but the only thing i got was the fact that position changes without calling coords setters or move(), but at the moment it's changed a getter is called and returns new (negative) value so my question is what happens on startDrag() and how to filter unwanted incoming coords values?

View 3 Replies

Actionscript 3 :: Flash - StartDrag() Within StartDrag() On Child MovieClip

May 19, 2011

as you can see, I have a container MC which I have added to the stage. I set its drag constraints using a Rectangle(). I then add the 'cat' child movieclip to the container, and I want this to be dragable too. However, as soon as I click on my cat when testing the MC. It shoots to point x=0 y=0 on the stage and doesn't move.

The container MC can be moved without any trouble.

If I remove the rectangle bounds from the containers startdrag() function. both MC's can be dragged without any issue.

//panning ability
my_x = 800 - myImage.width;
my_y = 480 - myImage.height;

[Code]....

View 3 Replies

ActionScript 1/2 :: Decrease Hit Area - That Mouse Out Of To Make The Drop Down Area Pull Back?

Jul 28, 2009

i have a drop down menu am working on and each button tab (although they are not button instances !) when clicked opens up the "drop down" section which you can mouse over to choose another specific button etc - if you mouse out of that drop down area then it pulls back up to the original tab state ..  what do i change to the code below to decrease the area that you mouse out of to make the drop down area pull back .....at the moment it at least two inches on the screen below and to the right of boundaries of the drop down box before it pulls up - i want to it pull up as the mouse leaves the boundary box .... hope this makes sense .... there is some part of the actionscipt below that controls this but can work out which bit and how to change it !!! (am guessing the x mouse and y mouse bits - but how to change it ???)

[Code]...

View 1 Replies

Actionscript 3 :: Get BitmapData From A DisplayObject Included Transparent Area, And Effect Area

Aug 5, 2011

I have this function:

public static function cloneDpObj(target:DisplayObject):Bitmap
{
var duplicate:Bitmap;

[code]....

to clone target displayObject (MovieClip or Sprite) and return Bitmap Object.

It can get bitmap from the target object, but it seem don't get all the area of the image.

By give the width and height of target object, but the target object in design was applied by Glow Effect, so my question can we get the all view of bitmapdata from a displayobject?

View 4 Replies

Flash :: Determining Visible Area/invisible Area Of A Masked Object?

Sep 29, 2011

I have a movie clip named circle_mc(see the image on the link below) and a mask object(movie clip) which determines visible area of the circle. User can change the portion which is visible (extend the red area and make it red+blue, gray area is invisible). I need to find proportion of visible area to invisible area (red+blue/gray) so that I can calculate angle.

View 1 Replies

ActionScript 2.0 :: Load The Area Of The Xml File Into Text Area On Mouse Click?

May 21, 2004

I would like to first add the xml to my flash. Fine I can do this.But I have a number of buttons, where when I click say CW1, i get the information from the XML file with a node of CW1. I have all the xml set up fine.As I have about eight different postcode types.

ST, CW, CH, TF, WV, WS, DE, SK, SY, and each of these may have numbers that follow, i.e ST1, ST2, ST3 and so forth.

So I can only assume that the postal area could be the main nodes, and the numbers inside the child nodes, am I right thus far.o how can i load the area of the xml file into my text area on mouse click, pulling the information relating.

View 11 Replies

ActionScript 2.0 :: Draw *only* On The Board Area (a 450 X 350 Pixels Area) Instead On The Whole Movie

May 30, 2004

However I'd need to be able to draw *only* on the board area (a 450 x 350 pixels area) instead on the whole movie... how to "tweak it?" Here's the fla: [URL]

View 8 Replies

ActionScript 2.0 :: [Ask] Object Moving In Limited Area Or Masked Area

Jun 15, 2011

I have Particle animation like this this PHP Code:

[Code]...

But i want that Object moving in limited area or masked area. I add masked area like this PHP Code:

[Code]...

But it still not working. Any advice ?? or correction in my script code?

View 1 Replies

ActionScript 2.0 :: Declare An Area Then If Mouse Is Clicked In Area Then

Nov 29, 2009

I'm programming a game for my Advanced Higher Computing class, and am doing a whack a mole style game. I am trying to program for the bit where when you click the moving movie clip, then the score is increased by 1.

if(mousedown){
if(movieClip contains mouseXCoOrd){
if(movieClip contains mouseYCoOrd) {
score ++
}
}
}

View 3 Replies

Do Not Allow Editing At Specific Area In Text Area In Flex

Nov 10, 2011

I just want to do not allow editing at some area of text area in flex. How it can be done?let suppose text length in text area is 50 characters, i want to allow editing if cursor position is less than 15, and if cursor position in text area is greater than 15 it should not allow user to add more text in text area.If user press any key it should not add any character in text area.[code]

View 1 Replies

ActionScript 3.0 :: Display Captions From XML?

Nov 1, 2009

I've got the photos displaying from an xml file the way I'd like but I'm having trouble trying to get the photos caption to display. Here is want I have so far. Right now only the last caption in the loop is displaying. I would like to have the caption only display when you click on the photo. I've sort of come to a stand still when it come to doing this and.

Code:
package {
import flash.display.Loader;

[code]......

View 2 Replies

ActionScript 2.0 :: FLV Cue Points And Captions

Aug 14, 2010

In FLVPlayback working in as2.0, created cuepoints for FLV and i added captions wit xml file. but captions not loading.I did following steps and script.[code]

View 1 Replies

IDE :: FLVPlayback With Captions Off By Default?

Jan 13, 2009

I have captioning working with the FLVPlayback/FLVPlaybackCaptioning components. My skin has a caption button, and it toggles the captions on and off. What I can't figure out is how to get the player to start with captioning off by default.

I've googled around a bit and all I've found so far indicates that this might not be possible if the caption button is in a skin. Is this true? I find it hard to believe that this is so difficult to accomplish.

View 1 Replies

ActionScript 3.0 :: Possible To Make Captions Disappear?

Feb 4, 2011

I have a Flash website that consists of 6 different Scenes. The Home scene and the Videos scene each have a FLV player that I dragged from the library and I called it "vid". So I'm basically using the same player for both scenes. I'm also using the caption component and am assigning the xml via actionscript when the user clicks on a link, so it reloads the player with the correct video and the correct captions. The problem I'm having is that say they are watching the video on the Home scene with captions. If they click on the Contact Us scene, the video player disappears, but the captions stay on the screen by themselves. Looks really odd. I need a way to turn off the captions (called the component "myCaps") so they disappear both when changing scenes and changing movies. On the Videos scene, if you click a different movie's link, the old captions form the last movie stay on screen and just move up a line and the new movie's captions appear below that one. So, how do I get rid of the captions when I don't want them?[code]...

View 15 Replies

Flash :: Professional - Video With Captions Using CS5

Apr 8, 2011

I'm inexperienced with Flash. A client has insisted on a captioned flash video file and we're trying to figure that out using CS5. I've followed the steps outlined in the Adobe, but when I test the movie, I get no captions. I see an error in the output tab under the stage:

[Code]...

View 1 Replies

ActionScript 3.0 :: Attatching Captions To Images?

Jan 14, 2010

I need help adding captions to images in a swf and picture gallery. I have added a dynamic text box in the flash file and have managed to import the text from XML but I have been unable to attatch it to different images to display different caption messages. I have followed a tutorial to make this gallery and only have the very basics so far. I am using XML to pull the information for the location and size of the images and gallery into the flash file.

ActionScript Code:
import fl.controls.ProgressBar;
import fl.transitions.Tween;
import fl.transitions.easing.*;[code]............

View 1 Replies

ActionScript 2.0 :: Have A Movie That Has Captions On Different Frames?

Aug 11, 2004

i have a movie that has captions on different frames and that works but when i load a movie that also has captions for areas it does not work.this is the caption code that is loaded in the main movie first frame.

/*tooltip metod for MovieClip object
parameters definition:
m= the message for tooltip.
rgb= the background color for the tooltip.

[code]..

then i have a invisible movie clip named Laurel that when you mouse over it should show up.

View 1 Replies

ActionScript 2.0 :: Code Fading In And Out Captions?

Mar 3, 2010

Is there any reason why some of these captions aren't displaying? The scalpal, knife, and blade arent displaying all the others are fine, the code is basically the same the whole way through.

// OBJECT - FELT STRIP
feltstrip.onRollOver = function() {
this.onEnterFrame = function () {
caption._alpha += (100-caption._alpha)/3;
caption._x -= (caption._x-_xmouse)/2;

[code]....

View 2 Replies

ActionScript 2.0 :: Add Captions To Flash - Convert Into A Flv?

May 12, 2010

I know how to add captions to flash that I can convert into a flv. but interactive flash cannot be converted. I believe there is a way to do captions by adding the words on their own keyframes but some of the video's I need to caption have no real keyframes just scripts pointing to a audio holder such as:

[Code]...

View 1 Replies







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