Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Kirupa Caption


the kirupa caption tutorial doesnt seem to work with any scroller at all.

i searched all threads regarding this issue and couldnt find the right solution.

anyone had the same thing and fixed it ??!!!




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 04-02-2003, 06:19 PM


View Complete Forum Thread with Replies

Sponsored Links:

Regarding Kirupa's Hover Caption Tutorial
http://www.kirupa.com/developer/mx/captions.asp

This was great Kirupa. Just one question.
My movie has multiple levels. So, I cant figure out how to add hover captions to subsequent levels.

Also, my hover captions are all different shapes so I have named them like: caption, caption1, caption 2 etc etc.

I can get hover caption to work on first button following your tutorial but on deeper levels, when I need to mouse over to display caption1 or caption2 nothing happens.

I think I must address it here in this code:
startDrag(_root.caption, true);

but not sure what to do.

Help please!!

Kelly

View Replies !    View Related
Using Hover Caption Kirupa---not Working When Loading External Swf File
Hi,
Can someone please help me!??
I'm using the kirupa fla source file for the hover caption
http://www.kirupa.com/developer/mx20...r_captions.htm

and have created an external movie file where I want the hover captions to appear to be loaded into the main movie swf. The hover captions don't work once this swf has been loaded but works as a standalone swf. Can someone please tell me how to fix this? Any advice appreciated. Thanks

View Replies !    View Related
Kirupa - Create A Photo Gallery, How Could I Put A Caption For Each Photo?
Hi all, im new here i stumbled upon the photo gallery page when looking at how to create one for my website, thanks to sbeener for the code! :-). It works perfectly however how could i change/add to the code so that for a specific photo a certain caption appears which changes for each different photo?

Any ideas will be greatly appreciated.

cheers, alex350r

View Replies !    View Related
Kirupa Scroll Needs An Anchor (code By Kirupa Chinnathambi)
Hi all,

I am actually using a scrollBar from here and it is working very well (there is a tutorial by Kirupa Chinnathambi about it on here - thanks!). However I need to modify it to go to a certain y position in certain circumstances. I have everything working on the site but this function.

What happens is that the scroll bar does not know when the MovieClip ends or begins so there is awkward space below the MovieClip or you cannot see all the moviclips after you scroll past certain points. I think I need to modify the top and bottom in the variables. But does someone have any info on how to do this... correctly?

I was thinking that you would be able to pass in the contentMain._y and then do a little adding and subtracting of the variables and presto - the thing works. But my trials have lead to tribulations and I believe I am beginning to age more quickly - so I would love to find a solution to this problem before too much time passes. If someone has a solution I would much appreciate you getting me back on the glass half full side of life.

Thanks!!!

scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
trace("contentHeight" + contentHeight);
trace("scrollFaceHeight" + scrollFaceHeight);
trace("scrollFace" + scrollFace._y);
trace("contentMain._y" + contentMain._y);
trace("bottom" + bottom);
trace("moveVal" + moveVal);
trace("initContentPos" + initContentPos);



//contentMain._y = 291.0;
//scrollFace._y = 393;

};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y+speed<maskedView._y) {
if (scrollFace._y<=top) {
scrollFace._y = top;
} else {
scrollFace._y -= speed/moveVal;
}
contentMain._y += speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._y-speed>finalContentPos) {
if (scrollFace._y>=bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y += speed/moveVal;
}
contentMain._y -= speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();

View Replies !    View Related
Javascript:Launch('http://www.kirupa.com/kirupa.htm')
Ok, I've got a looping scroller full of thumbnails, and I want the corresponding full-size image to pop up in a separate window when a thumbnail is clicked.
I tried using this script from the simple popup tutorial:

javascript:Launch('http://www.kirupa.com/kirupa.htm')

but I changed it to javascript:Launch('file|\imagesimage1.jpg')

and it does nothing. Does anyone know a better way to do this (ideally, a way that works)?

View Replies !    View Related
Help With Kirupa.com XML Flash Photo Gallery Kirupa.com Example
Hello,

I'm trying to figure out how to highlight the text as the image is visible.

So image 1 fades in Text Highlights > Image 2 fades in Image 1 text fades out to gray and image 2 text fades in to blue...and so on.

It would also be nice so if I click on the description text the associated image to the text would appear again. : )

Here is a link to the working flash files :

http://www.opticinteractive.com/deve..._pg_final.html

Thanks

Brian


ActionScript Code is Below :



delay = 3000;
//-----------------------
function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}
firstImage();

} else {

content = "file not loaded!";

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {

if (Key.getCode() == Key.LEFT) {

prevImage();

} else if (Key.getCode() == Key.RIGHT) {

nextImage();

}

};
p = 0;
this.onEnterFrame = function() {

filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;
if (picture._alpha<100) {

picture._alpha += 10;

}

}

};
function nextImage() {

if (p<(total-1)) {

p++;
if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();

}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();

}

}
function picture_num() {

current_pos = p+1;
pos_txt.text = current_pos+" / "+total;

}
function slideshow() {

myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {

clearInterval(myInterval);
if (p == (total-1)) {

p = 0;
firstImage();

} else {

nextImage();

}

}

}

View Replies !    View Related
Caption In Xml
hello guys! just wanna ask for you help. do you know how to make caption in XML gallery just look something like this. http://www.fourseasons.com/losangeles/photo_gallery/

View Replies !    View Related
Caption
i got a little problem building a simple caption action into my fla, i just used the one hosted in the tutorial section and modified it a bit but for someone reason it jsut refuses to work, now it has been a while since i used flash but maybe one of you guys can figure it out :S

www.dreamone.nl/YellowTiger/yellowtiger2.fla

View Replies !    View Related
Caption In Xml
hello guys! just wanna ask for you help. do you know how to make caption in XML gallery just look something like this. http://www.fourseasons.com/losangeles/photo_gallery/

View Replies !    View Related
Caption
i got a little problem building a simple caption action into my fla, i just used the one hosted in the tutorial section and modified it a bit but for someone reason it jsut refuses to work, now it has been a while since i used flash but maybe one of you guys can figure it out :S

www.dreamone.nl/YellowTiger/yellowtiger2.fla

View Replies !    View Related
Caption In Xml
hello guys! just wanna ask for you help. do you know how to make caption in XML gallery just look something like this. http://www.fourseasons.com/losangeles/photo_gallery/

View Replies !    View Related
Caption For Projectors
Hi,
does someone kow how to change the captioninth main window of a projector from "Flash" to "something else".
Thanks
Magnus

View Replies !    View Related
Expanding Caption Box
Hi.. I was wondering if I could create a caption box in flash which expands automatically to the amount to text that is entered in the box.

Thanks

View Replies !    View Related
Caption Problems
Hi there,

I am using Flash MXv6
----

my stumbling point is that I have a flash movie that uses a small amount of AS in it and ultimately I am having trouble with my hover captions. The problem is that the users cursor is only suppose to trigger the hover caption, but right now it moves the entire MC around the screen when published.

I know this sound stupid and very basic, but I cannot figure out what i have wrong in the AS. I tried switching _root to a relative _parent but that didnt work!...ahhhhh..

Here is the setup:

I have my main movie called "portfoloNav.swf" that will ultimately be loaded into a container MC in another .swf file...
inside this movie i have a MC called "interactiveNav"

the buttons I want the user to move over and see the captions on are all in '' interactiveNav" MC

I have the AS on the buttons themselves -


on (rollOver) {
_parent.x = 1;
_parent.caption.words = "Hello!";
}
on (rollOut) {
_parent.x = 0;
_parent.caption.words = " ";
}

on(release){
_this.gallery.loadMovie("website.swf");
}


I have the following AS on the first frame in my actions layer inside of my "interactiveNav" MC -

startDrag(_parent.caption, true);

Also Inside of "interactiveNav" i have a MC instance called "caption" with my dynamic text box that will display the appropriate text when the user hoversover the button. The dynamic text box's var=words

The AS on my "caption: MC is as follows-

onClipEvent (enterFrame) {
if (_parent.x==1) {
this._alpha = 50;
} else {
this._alpha = 0;
}
}

If anyone is able to help me out with this stump, i would really appreciate it. I am starting to go grey from this and I know the answer is easier than I am making it :-) Thankx.

View Replies !    View Related
Hovering Caption Is Behind MC
I have a hovering caption that pops up when you rollover a MC with button over it, but when the Caption pops up it is behind the MC and not in front of it. How do I make the caption go in front of the MC?

View Replies !    View Related
Add Caption For Deaf
I want to add caption for deaf people. I will add flash video for business. Do you know how to add caption??? I will get flash professional 8 soon!! Hope it iwll be easy job!

View Replies !    View Related
Picture Caption From XML
Hi

Need some help to get the picture caption here


PHP Code:



import mx.transitions.*;
var gallery_xml = new XML();
gallery_xml.ignoreWhite = true;
gallery_xml.onLoad = function(success) {
    if (success) {
        var gallery = this.firstChild;
        for (var i = 0; i<gallery.childNodes.length; i++) {
            tArray.push(gallery.childNodes[i].attributes.title);
            picArray.push(gallery.childNodes[i].attributes.source);
        }
        loader_mc.loadPic(picArray[0]);
    } else {
        title_txt.text = "Error!";
    }
};
gallery_xml.load("gallery.xml");
//--------------------------------
var picArray:Array = new Array();
var tArray:Array = new Array();
//--------------------------------
MovieClip.prototype.loadPic = function(pic) {
    attachMovie("pls", "pls", getNextHighestDepth(), {_x:558, _y:149});
    loader_mc.loadMovie(pic);
    counter_mc = createEmptyMovieClip("c", getNextHighestDepth());
    counter_mc.onEnterFrame = function() {
        pls.perc_txt.text = Math.round((this._parent.loader_mc.getBytesLoaded()/this._parent.loader_mc.getBytesTotal())*100)+"%";
        if (this._parent.loader_mc.getBytesLoaded()>10 && this._parent.loader_mc.getBytesLoaded() == this._parent.loader_mc.getBytesTotal()) {
picinfo.info.text = tArray[pic];            
            delete this.onEnterFrame;
            pls.removeMovieClip();
            this._parent.loader_mc._visible = false;
            transIn();
        }
    };
};
//----------------------------------
import mx.transitions.*;
function transIn():Void {
    var myListener:Object = new Object();
    myListener.allTransitionsInDone = function() {
        for (var j = 0; j<16; j++) {
            _root["mc"+j].enabled = true;
        }
        _root.prev_btn.enabled = true;
        _root.next_btn.enabled = true;
        trace("all transitions in done");
    };
    var myTM:TransitionManager = new TransitionManager(loader_mc);
    myTM.addEventListener("allTransitionsInDone", myListener);
    myTM.startTransition({type:Blinds, numStrips:50, direction:0, duration:0.6, shape:empty, startPoint:4, xSections:0, ySections:0, dimension:1, easing:easing.Strong.easeOut, shape:empty});
}
//----------------------------------
function transOut(pic:String):Void {
    if (loader_mc.getBytesTotal()>20) {
        var myListener:Object = new Object();
        myListener.allTransitionsOutDone = function() {
            trace("all transitions out done");
            loadPic(pic);
        };
        var myTM:TransitionManager = new TransitionManager(loader_mc);
        myTM.addEventListener("allTransitionsOutDone", myListener);
        myTM.startTransition({type:Blinds, numStrips:50, direction:1, duration:0.3, shape:empty, startPoint:4, xSections:0, ySections:0, dimension:1, easing:easing.Strong.easeOut, shape:empty});
    } else {
        loadPic(pic);
    }
}
//---------------------------------------------------------
for (var i = 0; i<16; i++) {
    var m = this.attachMovie("mc", "mc"+i, i);
    m._x = (i%4)*20;
    m._y = Math.floor(i/4)*20;
    m.id = i;
    m.onRelease = function() {
        if (_root.lastmc != this) {
            new Color(_root.lastmc).setRGB(0x000000);
            new Color(this).setRGB(0x870101);
            _root.lastmc = this;
            transOut(picArray[this.id]);
            for (var j = 0; j<16; j++) {
                _root["mc"+j].enabled = false;
            }
        }
    };
}
//
this.next_btn.onRelease = function() {
    var n = _root.lastmc.id+1;
    if (n>=16) {
        n = 0;
    }
    this._parent["mc"+n].onRelease();
    this.enabled = false;
};
//
this.prev_btn.onRelease = function() {
    var n = _root.lastmc.id-1;
    if (n<0) {
        n = 15;
    }
    this._parent["mc"+n].onRelease();
    this.enabled = false;
};
//
this.mc0.onRelease(); 




this is the dyn. textfield: picinfo.info.text = tArray[pic];
If i wrote tArray[0] I get the first caption, so I think captions are loaded and path to XML is okay...
Thanks.

View Replies !    View Related
Image Caption From XML
Nearly everything works in my gallery application, just two things left which won't work.
I load via XML gallery title, big images, thumbs and image caption.
Everything is loaded and displayed, except for the thumbs which should stay for each gallery, althoug I use the same thumbs at the same time in another slider and there they are displayed.

This is the working code before I switched to XML

PHP Code:



var bildanzahl = 6;//number of thumbs
this.createEmptyMovieClip("mcBildcontainer", 100);
//
var mcl = new MovieClipLoader();
var ml = {};
ml.onLoadInit = function(obj) {
    trace(obj+" ist "+obj._width+" breit und "+obj._heigth+" hoch.");
    trace("Wird jetzt auf 90x60 angepasst");
    if (obj._width <>90) {
        obj._width = 90;
        obj._yscale = obj._xscale;
    } else if (obj._height<>60) {
        obj._height = 60;
        obj._xscale = obj._yscale;
    }
    obj._x = -45.8;///oder eine andere yposition fuer dein bild 
    obj._y = -30.8;///oder eine andere yposition fuer dein bild 
};
mcl.addListener(ml);
mcl.loadClip("miniaturen/pic"+random(bildanzahl)+".jpg", mcBildcontainer); 




This is the non working new code

PHP Code:



var bildanzahl = 6;//number of thumbs 
var tl = gal_root; 
//main timeline 
thumbnails1 = new Array(); 
// 
tl.onEnterFrame = function() { 
    var t = mcBildcontainer.getBytesTotal(), l = mcBildcontainer.getBytesLoaded(); 
    if (t != 0 && Math.round(l/t) == 1 && mcBildcontainer._width != 0) { 
        delete tl.onEnterFrame; 
    } 
}; 
tl.onLoad = function () { 
mcBildcontainer.loadMovie(tl.thumbnails1[random(bildanzahl)]); 





What is going wrong with the new Code?



The second problem is how to have the image caption displayed in a dyn. textfield called pic_ info.
On the main timeline I have six arrays with the image caption.

PHP Code:



var info1 = new Array();
var info2 = new Array();//and so on 




The related Code

PHP Code:



var ct = null;
this.onEnterFrame = function() {
    // raus
    if (img != undefined) {
        setImage();
    }
};
function setImage() {
    ct = container.createEmptyMovieClip("ct", 0);
    container._visible = false;
    ct.loadMovie(img);
    this.onEnterFrame = function() {
        if (ct._width>10 && ct._height>10) {
            reScale();
            delete this.onEnterFrame;
        }
    };
}
function reScale() {
    var xf = (ct._width/mask._width);
    var yf = (ct._height/mask._height);
    if (xf>yf) {
        ct._height = mask._height;
        ct._width /= yf;
    } else {
        ct._width = mask._width;
        ct._height /= xf;
    }
    container._visible = true;
    mask.onRollOver = function() {
        flash();
    };
    mask.onRelease = function() {
        trace(this._parent.jvar);
        gal_root.bigview.showImg(big_img);//gal_root is the main timeline
       gal_root.pic_info.text = info[i];//?????
    };
    if (this.jvar == 0) {
        mask.onRelease();
    }





Big, big thanks to everybody, who takes the time to have a look at this.
And can help me go a little bit further, offcourse!

View Replies !    View Related
Caption RollOver Help
I've pieced this together from a tutorial on captions. My goal is for a caption to pop up in a customized balloon when the user rolls over a button. I'd also like the balloon to feel like it's stuck to the end of the mouse while in the button's hitspace.

I think the way to do the above is through a startDrag and alpha property script.

I'm having trouble getting the correct captions to turn off and on (alpha) over the right buttons.

Plus, I'd like to gather all the script into the first layer and just reference my movieClips and buttons.

I know this is confusing. Well at least to me. So here's a link to my file.









Attach Code

//This is what I have on my first frame actions layer//
timeline2.captionMoon.startDrag( true);

timeline2.captionShip.startDrag( true);

//I've placed this code on each caption moviClip//
onClipEvent (enterFrame) {
if (_root.x==1) {
this._alpha = 100;
} else {
this._alpha = 0;
}


//And this on the button the caption is supposed to stick too//
on (rollOver) {
_root.x = 1;
}
on (rollOut) {
_root.x = 0;
}

View Replies !    View Related
Slideshow With Caption
Hello...

I´ve done a slideshow with flash and xml. In the xml file there are this:

<slideshow>
<pic url="my pic.jpg" caption="the text I want to show" />
</slideshow>

I have 3 pics right now but where do I put the code in the fla? I tried to put it in different places but then all 3 pictures have the saame text.. The code in fla is:

import mx.transitions.Tween;
import mx.transitions.easing.Strong;

this.createEmptyMovieClip("container2_mc",this.getNextHighestDepth());
this.createEmptyMovieClip("container1_mc",this.getNextHighestDepth());
this.createEmptyMovieClip("buttons_mc",this.getNextHighestDepth());
this.attachMovie("loader","loader_mc",this.getNextHighestDepth());
loader_mc._x = 547.6;
loader_mc._y = 366.4;

container1_mc._x = 356;
container1_mc._y = 94;
container2_mc._x = 356;
container2_mc._y = 94;

var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);


myListener.onLoadProgress = function(target,bytesLoaded,bytesTotal){
loader_mc._alpha = 100;
var pct = Math.round(bytesLoaded/bytesTotal*100);
loader_mc.bar_mc._xscale = pct;
}

myListener.onLoadComplete = function(target){
loader_mc._alpha = 0;
fadeIn();
}



buttons_mc.attachMovie("prev","prev_mc",buttons_mc.getNextHighestDepth());
buttons_mc.attachMovie("next","next_mc",buttons_mc.getNextHighestDepth());


buttons_mc.next_mc._x = 960 - buttons_mc.next_mc._width - 45;
buttons_mc.next_mc._y = 475;
buttons_mc.prev_mc._x = 340;
buttons_mc.prev_mc._y = 475;

//-------------XML--------------------------//
var myXML:XML = new XML();
myXML.ignoreWhite = true;

var picArray:Array = new Array();
var captions:Array = new Array();

var currentElement:Number = 0;


myXML.onLoad = function(success){
if(success){
var ss:Array = myXML.firstChild.childNodes;
for(i=0;i<ss.length;i++){
picArray.push(ss.attributes.url);
captions.push(ss.attributes.caption);
}
init();

}
else
{
trace("XML could not load");
}

}
myXML.load("test.xml");
var currentContainer:MovieClip = container1_mc;


function init(){

myMCL.loadClip(picArray[currentElement],container1_mc);

}

buttons_mc.next_mc.onRelease = function(){
if (currentContainer == container1_mc){
currentContainer = container2_mc;
}
else
{
currentContainer = container1_mc;
}
currentContainer._alpha =0;
container1_mc.swapDepths(container2_mc);
if(currentElement < picArray.length -1){
currentElement ++;
}
else
{
currentElement = 0;
}
myMCL.loadClip(picArray[currentElement],currentContainer);

}


buttons_mc.prev_mc.onRelease = function(){
if (currentContainer == container2_mc){
currentContainer = container1_mc;
}
else
{
currentContainer = container2_mc;

}
currentContainer._alpha =0;
container2_mc.swapDepths(container1_mc);
if(currentElement > 0){
currentElement --;

}
else
{
currentElement = picArray.length -1;

}
myMCL.loadClip(picArray[currentElement],currentContainer);

}

function fadeIn(){
new Tween(currentContainer,"_alpha",Strong.easeOut,0,100,36,false);
}

Do any one know where to put the caption.text=captions[0];

View Replies !    View Related
Hover Caption?
Just wondering, can u have moce then one movie follow the mouse?

Anyway....


PHP Code:



startDrag(_root.caption, true);
startDrag(_root.captiontr, true); 




I am trying to get more then 1 different style hover caption over a button using the tutorial found on this site..any help would be nice..thxs.

View Replies !    View Related
Caption On The Browser
how can i put a liitle caption on the lower part of the browser? like the copyright on electrongeek's site.

View Replies !    View Related
Help With Hover Caption (yep, Again)
Sorry to post another thread regarding the Hover caption tutorial.

I've followed it word for word and it works perfectly...You click on a button > you go to the next scene. Perfectly until I return back to the main scene with the hover caption (main menu scene) and the hover caption follows the mouse everywhere (whether you are on a button or not).

I've attached the file because I dont think Im explaining myself too well.

Hovering over the square shows "about me" hover caption. Clicking on it takes you to the 'about me scene'. To return to the main menu click on the 'menu' button. Notice the orange caption box is following the mouse? That is my problem.

Its probably simple but any help appreciated. Cheers.

View Replies !    View Related
Caption Problem
ok i read the tutorial and have implemented the caption but modified it to have 3 different captions. This way i could have a center caption a left caption and a right caption.

The reason i made 3 is because the other would go off the screen when on the right and hvered over it.

now the problem i am having is that i have this code on the first frame and it is only linking it to the last one to the hot spot.


Quote:




startDrag(_root.captionC, true);
startDrag(_root.captionL, true);
startDrag(_root.captionR, true);




Now for each button i have this code telling it to use the different caption movies.


Quote:





on (rollOver) {
_root.x = 1;
_root.captionC.wordsC = "Caption Center";
}
on (rollOut) {
_root.x = 0;
_root.captionC.wordsC = " ";
}

on (rollOver) {
_root.x = 1;
_root.captionL.wordsL = "Caption Left";
}
on (rollOut) {
_root.x = 0;
_root.captionL.wordsL = " ";
}

on (rollOver) {
_root.x = 1;
_root.captionR.wordsR = "Caption Right";
}
on (rollOut) {
_root.x = 0;
_root.captionR.wordsR = " ";
}





Can someone please help?! I am going crazy and have to turn this in in a few.

PLEASE :-)

Thanks,
Aaron

View Replies !    View Related
Xml - Dynamic Caption
Hi,
I have a little problem and i don't really know how to do what i want. I have an xml file with url of pictures and text for the comment of those pics. I create thumbnails buttons with an attachmovie on my main scene, all this works great but i have also a kind of tooltip, and i want that each time i roll over the button, the text change with the good atribute of my xml file. I do something like this but it doesn't work :

Code:
function attach_btn() { _root.createEmptyMovieClip("thumb_mc", 1);
thumb_mc._x = 10;
thumb_mc._y = 10;
//attach buttons on the container
Array_text = new Array();
Array_text.push(MyXml.firstChild.childnodes.attributes.TEXT);
trace(Array_text);
var nb_pic = MyXml.firstChild.childnodes.length;
for (i=0; i<nb_pic; i++) {
thumb_mc.attachMovie("Btn", "Btn"+i, i, {_y:i*35});
thumb_mc["Btn"+i].onRollOver=function(){
this.GotoAndPlay("over") ;
caption.mc._visible=true ;
caption_mc.caption_text.text=Array_text[i] ;
}
}
}
I hope my english is quite understandable and i hope someone can help me with that problem.
Thank's.
chris

View Replies !    View Related
Movies With Caption
is there any way to make a movie where you input a video and the person who is looking at your site can add captions? an example would be www.fanta.dk

View Replies !    View Related
HOVER CAPTION
I went through the hover caption tutorial and everything is awesome except when another button is selected the hover does not drag anymore and just shows up static, most of the time it is in a complete different location than specified... any ideas as to why this could be happening.

Thanks...

View Replies !    View Related
Help Hover Caption
I tried to add hover caption feature on Scotty's photo gallery but somehow the caption cannot appear on the very top layer. Can someone advise me how to correct it?

View Replies !    View Related
Caption Example Question...
Hello good people,

I have one question... this is the FLA file from Kirupa.com I'm trying to integrate into my little movie.

http://www.kirupa.com/developer/mx/captions.htm

Everything works perfect, except when I put it inside one SWF file that is externaly loaded into main movie. I know those _root. variables should be replaced with _parent. but it still won't work, and I know I'm doing something stupid... I also know it's something simple, but I can't figure it out, no matter what I do... another beginner... sorry people !

Please if anyone can clear this a bit, I would be very thankful...

Regards !

View Replies !    View Related
XML Caption OnRollOver
I followed this tutorial to make an XML gallery: http://www.kirupa.com/developer/mx2004/thumbnails.htm

However I would like to have the captions from my XML file appear on RollOver. I swear I had it working once, but then it stopped and i can't seem to get it working again? Here is the code that (i think, atleast) is where the script should take place and you will see where I have put in "_root.infoFollow_mc.desc_txt.text = description[p];" to get the caption on RollOver. But it is not working...

Can anyone make this work? thanks.


Code:
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+0)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
getURL(link[p], "_blank");
};
target_mc.onRollOver = function() {
_root.infoFollow_mc.desc_txt.text = description[p];
_root.infoFollow_mc._alpha = 100;
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
_root.infoFollow_mc.desc_txt.text = "Project Details";
_root.infoFollow_mc._alpha = 0;
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

View Replies !    View Related
Hover Caption
For anyone wanting to help with a hover caption, see the link below and try completing the tutorial. I think there's a problem with it. It reads the caption off the code and not the design. you'll see. if you have a solution, i'd be interested to know.

http://www.kirupa.com/developer/mx20...r_captions.htm


Thanks!

Detch

View Replies !    View Related
Hover Caption Help
i went through the tutorial (was successful) and some forums, but couldn't find what i needed.
i have a somewhat messy .fla file as it is. but i wanted to add hover captions to four buttons. these four buttons are inside a movie clip in scene 1. i've tried several ways of adding the action for hover captions, but can't get it to work.
do i need to have all the buttons on one layer? or...do they need to be put in scene 1 instead of inside the movie clip?
if anyone could help i would REALLLLLY appreciate it!!!
thanks!

View Replies !    View Related
Hover Caption
I'm using this hover caption on my site:
http://www.kirupa.com/developer/mx/captions.htm

But I would like to have the hover caption appear for only a short amount of time (2 seconds?). Any tips to do this? Cause I don't know where to start/search (:

Here's the main part of the code:


Code:
onClipEvent (enterFrame) {
if (_root.x==1) {
this._alpha = 50;
} else {
this._alpha = 0;
}
}
Thanks!

View Replies !    View Related
Hover Caption Help
I'm following the tutorial from this website:

http://kirupa.com/developer/mx2004/hover_captions.htm

The problem I'm having is that the button used to trigger the movie clip (the caption text) is inside another movie clip. On movie load, and after rolling over the test button, the message shows briefly but no where close to the actual word "test". On a rollout and subsequenent rollover, the caption doesn't appear at all. I'm stumped as the problem.

If anyone would be willing to take a look at this sample file I have provided, I would greatly appreciate it.

http://midwestwebdesign.net/example.zip

View Replies !    View Related
Hovering Caption
Can someone please help regarding hovering captions? Currently, this is how Iam entering text into the caption. This is from kirupa tutorial. Looks like with this, I can only one line of text into the caption. How can I enter multiple lines of text in the hovering caption?? Thanks in advance!

on (rollOver) {
x = 1;
caption.words = "hello";
}
on (rollOut) {
x = 0;
caption.words = " ";
}

View Replies !    View Related
Caption Font Help
I followed the tutorial located here: http://www.kirupa.com/developer/mx/captions3.htm and finished it off well. I put the font in the captions on a non system default font, and decided I should embed the font outline so that people could see the font I want. When I switched it to "embed all characters", the font on the captions actually decreased in opacity and were rather blurry. This returns to normal if I select "No characters".

Does anyone have any idea how I can embed the font outline while they stay clear as before?

Thanks

View Replies !    View Related
[FMX04]Help W/ XML Caption
This is probably too simple, but I've been trying to figure this out for too long. I finally figured out how to get a scrolling thumbnail photo gallery to work with an imbedded bonus array. What I can't figure out is how to change the caption on the photos so that when I click on the bonus thumbnails (b2, b3, b4, etc) the text/caption changes on the website.
I can upload the flash file if anyone is interested in helping. I really would appreciate it!


Here is some of the partial xml file:


Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?><?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>

<pic bonus="http://www.jbclandscapes.com/photos2008/1 mal 1.jpg"
b1="http://www.jbclandscapes.com/photos2008/1 mal 3.jpg"
b2="http://www.jbclandscapes.com/photos2008/1 mal 4.jpg"
b3="http://www.jbclandscapes.com/photos2008/1 mal 5.jpg"
b4="http://www.jbclandscapes.com/photos2008/1 mal 2.jpg"
b5="http://www.jbclandscapes.com/photos2008/1 mal 6.jpg"
b6="http://www.jbclandscapes.com/photos2008/1 mal 7.jpg"
b7="http://www.jbclandscapes.com/photos2008/1 mal 8.jpg"
b8="http://www.jbclandscapes.com/photos2008/1 mal 9.jpg"
b9="http://www.jbclandscapes.com/photos2008/1 mal 10.jpg"
b10="http://www.jbclandscapes.com/photos2008/1 mal 11.jpg" >

<image>http://www.jbclandscapes.com/photos2008/1 mal 1.jpg</image>
<caption>This front yard renovation features a formal courtyard, framed by tumbled concrete block columns topped with lantern lights and a custom picket fence painted to match the house trim, and is highlighted with an inviting paving stone entrance walkway. The installation of paving stones at the front stoop along with matching sconce lantern lights adjacent to the front door extends this home's architecture into the landscape.</caption>
<thumbnail>http://www.jbclandscapes.com/photos2008/thumbnails/1thumb.jpg</thumbnail>
<t>sampletextmal1||sampletextmal3||sampletextmal4||sampletextmal5||sampltextmal2||sampletextmal6||sampletextmal7||sampletextmal8||sampletextmal9||sampletextmal10||sampletextmal11</t>
</pic>
<pic bonus="http://www.jbclandscapes.com/photos2008/2 mal kitch 1.jpg"
b1="http://www.jbclandscapes.com/photos2008/2 mal kitch 2.jpg"
b2="http://www.jbclandscapes.com/photos2008/2 mal kitch 3.jpg"
b3="http://www.jbclandscapes.com/photos2008/2 mal kitch 4.jpg"
b4="http://www.jbclandscapes.com/photos2008/2 mal kitch 5.jpg"
b5="http://www.jbclandscapes.com/photos2008/2 mal kitch 6.jpg"
b6="http://www.jbclandscapes.com/photos2008/2 mal kitch 7.jpg"
b7="http://www.jbclandscapes.com/photos2008/2 mal kitch 8.jpg"
b8="http://www.jbclandscapes.com/photos2008/2 mal kitch 9.jpg" >

<image>http://www.jbclandscapes.com/photos2008/2 mal kitch 1.jpg</image>

View Replies !    View Related
Caption On The Browser
how can i put a liitle caption on the lower part of the browser? like the copyright on electrongeek's site.

View Replies !    View Related
Help With Hover Caption (yep, Again)
Sorry to post another thread regarding the Hover caption tutorial.

I've followed it word for word and it works perfectly...You click on a button > you go to the next scene. Perfectly until I return back to the main scene with the hover caption (main menu scene) and the hover caption follows the mouse everywhere (whether you are on a button or not).

I've attached the file because I dont think Im explaining myself too well.

Hovering over the square shows "about me" hover caption. Clicking on it takes you to the 'about me scene'. To return to the main menu click on the 'menu' button. Notice the orange caption box is following the mouse? That is my problem.

Its probably simple but any help appreciated. Cheers.

View Replies !    View Related
Caption Problem
ok i read the tutorial and have implemented the caption but modified it to have 3 different captions. This way i could have a center caption a left caption and a right caption.

The reason i made 3 is because the other would go off the screen when on the right and hvered over it.

now the problem i am having is that i have this code on the first frame and it is only linking it to the last one to the hot spot.


Quote:




startDrag(_root.captionC, true);
startDrag(_root.captionL, true);
startDrag(_root.captionR, true);




Now for each button i have this code telling it to use the different caption movies.


Quote:





on (rollOver) {
_root.x = 1;
_root.captionC.wordsC = "Caption Center";
}
on (rollOut) {
_root.x = 0;
_root.captionC.wordsC = " ";
}

on (rollOver) {
_root.x = 1;
_root.captionL.wordsL = "Caption Left";
}
on (rollOut) {
_root.x = 0;
_root.captionL.wordsL = " ";
}

on (rollOver) {
_root.x = 1;
_root.captionR.wordsR = "Caption Right";
}
on (rollOut) {
_root.x = 0;
_root.captionR.wordsR = " ";
}





Can someone please help?! I am going crazy and have to turn this in in a few.

PLEASE :-)

Thanks,
Aaron

View Replies !    View Related
Xml - Dynamic Caption
Hi,
I have a little problem and i don't really know how to do what i want. I have an xml file with url of pictures and text for the comment of those pics. I create thumbnails buttons with an attachmovie on my main scene, all this works great but i have also a kind of tooltip, and i want that each time i roll over the button, the text change with the good atribute of my xml file. I do something like this but it doesn't work :

Code:
function attach_btn() { _root.createEmptyMovieClip("thumb_mc", 1);
thumb_mc._x = 10;
thumb_mc._y = 10;
//attach buttons on the container
Array_text = new Array();
Array_text.push(MyXml.firstChild.childnodes.attributes.TEXT);
trace(Array_text);
var nb_pic = MyXml.firstChild.childnodes.length;
for (i=0; i<nb_pic; i++) {
thumb_mc.attachMovie("Btn", "Btn"+i, i, {_y:i*35});
thumb_mc["Btn"+i].onRollOver=function(){
this.GotoAndPlay("over") ;
caption.mc._visible=true ;
caption_mc.caption_text.text=Array_text[i] ;
}
}
}
I hope my english is quite understandable and i hope someone can help me with that problem.
Thank's.
chris

View Replies !    View Related
Hover Caption?
Hi,
I have a site I built with an empty mc which calls upon other mc. One is a gallery with some thumbs near the bottom. I put a script on the thumbs which display hover captions when rolled over. WHen I test the mc by itself, they work fine. When I play the main movie, and call upon the gallery, the whole gallery or mc moves with the mouse.
Here is the code I placed on the buttons in the gallery for the hovers.

action frame - startDrag(_root.caption, true);

buttons - on (rollOver) {
_root.x = 1;
_root.caption.words = "Bones";
}
on (rollOut) {
_root.x = 0;
_root.caption.words = " ";
}

Probably something simple, but I'm stumped.
Thanks
Jr. Texas flasher

View Replies !    View Related
Caption Text Boxes
Hi..

Easy question just wondering if this can be done..

I want to create a textbox with a particular background(lets say yellow). When i enter text I want that yellow to automatically increase.

Is this possible.. I basically want to create a caption box.



Thanks
Uday

View Replies !    View Related
Caption Text Boxes
Hi !

I was wondering if there were any caption text boxes which expand as we type in text available anywhere as components..

Thanks

Uday

View Replies !    View Related
Caption Text Boxes
Hi !

I was wondering if there were any caption text boxes which expand as we type in text available anywhere as components..

Thanks

Uday

View Replies !    View Related
How Is This Closed Caption Achieved?
I’m sure that most of you have seen these presentations or demos from macromedia.

http://www.macromedia.com/macromedia...line/ondemand/

Click on any of the 4 presentations to see what I’m talking about and once you have the presentation running click on the cc button onthe bottom to see the closed caption mc.

How is this achieved? because the closed caption is sincronised with the video and the movie clip displaying the pictures. And if you pause it, it stays paused like the video and the mc.

The only thing I can think of is, if you control the movie, the movie has tell target actions that call the caption to a desired name frame.
but if the movie is not enbeded, and is streamed how is it done?

Can you guys tell me how is this done?

View Replies !    View Related
Two Part Hovering Caption
I am trying to make my hovering caption look like it has two parts to it, one that follows the mouse tight and another one that has a delay on it. here is an example of what I want. it is at the bottom of the page when you rollover the icons. the arrow is real tight on the mouse and the box isn't. I know how to make the hovering caption but not how to make it look like that.

View Replies !    View Related
Loading Jpeg's + Caption
Hi, im looking for the best way to load a jpg from a folder and attached it to a line of copy. its for a photo site, i want ppl to be able to upload a photo to the sever + have the ability of adding a caption. im not looking for a php or asp solution here, i know thats probably the best route to take, but i am not familiar with those languages. its only for a few selected family members, so giving them access to the server is not a problem

is it possible to do this either by:

1) numbering the files consecutively and then using loadvar's from a text file with the captions?
2) naming the jpg with the caption (my_cat_lying_in_the_sun.jpg). loading it getting the name from the loaded file.

would any of these options work? or would someone give me some examples?

thanks!

View Replies !    View Related
A Flash Hover Caption
HELLO
here is the site http://www.changthai.org/test/netcones12.html

and the problem is centering the damn thing. But only for a certain element. I have centered it all , but there is one segment that is giving me the hurting big time.

it is the "client" clip (in its own centered mc, like the others) i have done a simple hovver / captioning over these two images, and the whole clip is thrown off kilter when the screen is resized.

what should i do ? squint some more at the screen, or just hope no one bothers to minimize their screen when on that particular scene ???

DJ
EDIT : I know its the captions that are twotting with the centering. but i dont want to go without them. i used the tute from kirupa to put them together.

View Replies !    View Related
Closed Caption Text
What is the most effective way of creating closed caption text? I need to do a read along where the words turn a different color as the narrator reads them.
Here is an example:
http://www.mightybook.com/MightyBook..._knocking.html

thanks
astro

View Replies !    View Related
Closed Caption Text
What is the most effective way of creating closed caption text? I need to created a read along where the the words turn color as the narrator reads them.

Here is an example:
http://www.mightybook.com/MightyBook..._knocking.html

thanks,
astro

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved