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
Similar Posts:
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
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
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
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
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
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
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
Aug 6, 2009
how to create a image gallery that uses arrays from a text file rather than xml (this is because the project I have now generates alot of html coding and stores it within a DB, it doesn't have any set html pages so using flash and xml is out of the question as it needs to be relative to the html page).
I have got as far as including my own way to get captions to be displayed as well....but here comes the problem, no matter what loop i have tried the captions seem to stay on the 1st caption and not change as the different thumbnails are clicked..
here is my code
Code:
var locVar = new Array();
locVar = imgLoc.split(",");
var tmbVar = new Array();
[Code].....
View 2 Replies
Aug 4, 2009
i have this code below that i made using a tutorial....it loads vars from txt file splits it then puts it into an array....once in an array it the brings the pics in from the array to create thumbnails and a larger image. my problem is i have captions to go with it and when i try to load the captions nothing happens or can be seen to be happening. i dont know where i am going wrong as i have no output or compiled errors
[Code]...
View 14 Replies
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
Aug 11, 2009
I'm having a hard time figuring out how to do something with xml in flash and don't even know where to begin.I'm building a flash piece for the header of a website that will contain six images and six captions. I plan on integrating the xml file with a cms so that the user can simply upload images and type in captions and the xml file will dynamically populate the swf.I know how to execute the back-end development with the cms and xml file, but I'm not quite sure how to tie the pieces I need from the xml to the flash file.
View 2 Replies
Feb 18, 2004
Ok basically i wana make a list box and when u click somethign in the list box it shows a thumbnailed image and a caption under it. i found this script which i think is the script im lookin for
var loadText = new LoadVars();
loadText.load("infolist.txt");
loadText.onLoad = function(success) {
[Code]....
View 10 Replies
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.
[Code].....
then i have a invisible movie clip named Laurel that when you mouse over it should show up.
View 1 Replies
Oct 31, 2010
I'm developing an application in Flex 3.5 for video tutorials, which uses a lot of Captivate 4 (AS3) videos (>200). In the front end, the user can navigate thorough the videos in a menu structure. In the administration part, the admins can upload more videos and organize them into the menu structure. Since we have more than 200 Captivate videos, we wanted to build in a search functionality into the fronted, which would be based on the text contents of the Captivate videos. The idea is: every time the admin uploads a new Captivate video into the system, an index will be created based on the contents of the video.
My question: how can I extract the text captions of a Captivate video using Flex or rather ActionScrip 3? (I know, there is an Export/Import function of Captivate, but I would like to access those texts dynamically from Flex.)
View 1 Replies
Aug 4, 2009
I have built a website that pulls languages from multiple XML sources.I have been able to do Russian, Spanish, French, English and Italian, now I am stuck on Japanese.[code]...
View 0 Replies
Dec 9, 2003
I am trying to build a flash slideshow that uses XML to call up images and text captions. I 've found a good example of what I am looking for on macromedia's website.found here: http:[url]...
I would like to add the ability to fade between images and have a button that creates a larger jpg version in a popup window for whatever image is being displayed as current in the slideshow.Would I need 2 XML files for this or can I just use one? I prefer one. Sorry I am quite new to XML, this is my first foray into it.I can build this thing w/o XML, but it seems to be so much easier if I did it with XML.
View 7 Replies
Mar 16, 2011
I'm pretty new/bad at actionscript (3) for web. I have a site up for a client/friend [URL], but it takes FOREVER to load. I'm under the impression that a good way to make the site load faster is to load in swf's externally. Right now, the site, in its entirety, is one big movieclip. I have large images (movieclips) for background images. If you look at the site and are kind enough to wait for it to load (aprox. 45 seconds or so) you will notice how the background image changes when you click to go to each section.
I am trying to find a way to load in the background as external .swf's to cut down on the initial load time. I'm also open to any other ideas. Below is the as3 code for my buttons/how they direct the site. I'm hoping to use a similar/generic style to load the background images. I'm hoping to load the movieclips underneath the rest of the site, and use the same naming scheme (e.g. homeBTN.swf) to keep it organized.
[Code]...
View 3 Replies
Sep 11, 2005
I'm using the hover caption tut to do a mouse replace which works here:URL...problem is when I load that swf into another parent swf the hover doesn't work.
View 6 Replies
Mar 30, 2007
[Code]...
i use the above code for the glow effect, i want the effect to load automatically rather than when i hover my mouse over it. how to edit the code to do it?
View 3 Replies
Aug 9, 2011
I have attached and sample file with problem that show when you hover over the red link it shift the text. It only happens when I use antiAliasType = advance or my text field set to readability in combination to external or internal StyleSheet.
View 6 Replies
Nov 18, 2009
I have four buttons each of them are an instance of my generic_btn. They are empty buttons with just a hit area.
then I have static text that I would like to have the color change when the user navigates over it how can I do this? Do i need to combine the text and generic button into a movieclip for each button?
View 5 Replies
Mar 14, 2011
Add Button with dynamic text and hover state
I haven't used flash for a bit but I'm really stuck on something that should be simple.
I want to add buttons or MoiveClip to make a navigation.
Each button will have different text on it and they need a hover state that changes the color of the text.
I have done this to add the buttons with text. This works but I do get an error message.
How can I change the color of the text when I hover over the button ? How can I stop the error message ?
Quote:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at Doc()
[Code]....
View 3 Replies
Jul 5, 2010
I have come up with a different scenario when am working with videos. I am trying to load a flv externally. And when am compiling the flash file i got this strange error and nothing is loading (ie flv file) Warning: Filter will not render. The DisplayObject�s filtered dimensions ([width], [height]) are too large to be drawn.
View 1 Replies
Mar 19, 2009
Possible to embed a .swf on other site, then load an external file(.swf, .jpg, etc...) from my own server. hence, i could change the content without doing anything to the embedded .swf
View 1 Replies
Jan 3, 2010
For some reason my slideshow gallery will not work with specific swf files. I can't find any correlation between the ones that work and the ones that don't work - stage size, length, as3 version, actions, ect don't seem to matter.
I'm tempted to chalk to up to a bug in CS4 and try to install CS3, but I was wondering if anyone has ran into this before.
View 1 Replies
Oct 12, 2010
I'm using CS5 actionscript 2. I would like to create hovering text when one mouses over an item in the navigation window (please see pic). You know, something that would act like a brief abstract to give the user more info re: whether or not they need to click on that link.At present, the nav_mc is linked to an xml doc FYI (the nav_mc accordians in and out, but doesn't have to). I input what I want the menu and submenu to say in the xml nodes and it shows up. It would be cool if the hover text added could also be xml driven tooI am green to this so the more detail the better. Do I need to create a new xml doc? new .swf? How do I link this? Should I use Flash Builder or Catalyst?
View 6 Replies
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
Oct 8, 2008
an external file on my website that I can edit with a text editor.I am making a flash intro to a website that has a pull-down panelthat displays information on new content on the website. It has twovariables in the main actionscript 3 code:
var gotoUrl:URLRequest = new URLRequest("
http://www.website.tld/newcontenturl")
var whatsnewText:String = "There is something new on this
[code].....
View 1 Replies
Jun 7, 2005
I have this code to load a jpg and textfiles externally:
[AS]stop();
this.createEmptyMovieClip("NFMC", 1);
NFMC._x = 320;
NFMC._y = 220;
[Code].....
Of course I have been thinking about passing data to functions, but I can't make it work.
It is not necessary that NF1.jpg and the txts are mentioned in this code like they are now, it also could be something like a,b,c and d. So actually it is not about changing, but about being able to load different jpg's and MC's in this swf, so that I wouldnt have to use one hundred swf's!
View 3 Replies