ActionScript 2.0 :: Dynamic Caption Text - TXT Or XML?
Nov 13, 2005
I am looking for some opinions or ideas for the best way to do this. I have a scene that is loading a swf. I have a dynamic text field that is displaying captions relating to what is happening in the loaded swf. The captions are relatively short and I am wondering what the best way to display them would be? Right now I am loading from a text file and can dynamically load the next file using this:
I've completed the Hover Caption tutorial at [URL] successfully. What I'd like to do in addition, is to resize the caption box to match the caption text's length.
I've tried giving the background box a name (box) and turning it into a button and then doing:
But the box never aligns with the text properly after that. don't know what methods to call in order to get the bottom corner of the text and bottom corner of the box and align them properly.
I have an audio slide show and I need to add caption and on off button to show and hide the caption. how can I make on and off button to show the caption?and is it possible to add caption on my audio (not video) using actionscript 3.0?
Most of the threads about loading xml data into Flash text boxes and MCs involve menus or photo galleries. I'm trying to do something simpler (well, it's kinda gallery-like I guess). I have a column of 10 buttons (not dynamically generated).
Clicking on button number ones should:
a) load a jpg into an empty MC (done).
b) load a text caption into an empty text box -- no thumbnails here. All the samples I've browsed have the text loading tied into figuring out which dynamically generated thumbnail is being clicked (the old i++). I just want one at a time:
I am trying to learn Flash and as soon as I think I am in good shape, comes along this "curve ball". Take a look at the .FLA from this site ([URL]) How in the world do the alpha buttons get their captions? I understand the numeric ones, but alphas completely baffle me as there is no code (that I can find) that sets them. I have deleted all of the Actions, I have deleted virtually everything there is, and I still can't figure out how does the button instance appear as the caption in the text box.
I cant see why the first caption of a dynamic text box want load. Its the caption from a xml gallery Once I go to the second pic it starts loading and if I go back to the first pic it loads.
when you hover over some of the dots, their caption "balloons" appear under some of the other dots. I would like for the caption "balloons" to appear above all dots. Were this HTML I would just use CSS to adjust the Z-index. But this doesn't seem as simple. Attached is a copy of my program and a screenshot so you can see what I have so far.
i have a box called infoBox that contains a text field called caption. infoBox expands on mouse-over. When it does so, I do not want the text in caption to scale up - I want it to stay at 11 pt. So far my code to prevent this from happening is not working:How do I fix this?[URL]..
I have a very general requirement that seemed very simple: Step 1: Load a new external JPEG image into a MC with a string var encoding a string caption in the URL link (VALUE="../fadeTest.swf?someTextVar=TestCaption") within the EMBED / OBJECT sections. I know how to do this and it semed to work fine. STEP2: When the JPEG is loaded I would like the substituted Text to Fade In over the JPEG. The JPEG should also fade in before the Text. The fade rate should be programmable.
i have a problem with the line space flash creates when a dynamic text is loaded in a dynamic text field on the stage i put a dynamic textFild with istance name "profile_text". then im loadin in it a text. my text is written in the Notepad like this
[Code]...
i already set a Textformat to my dynamic text with i tryied to play with the "Leading".. but i think it something dealing with paragraph. how i can decrease spacing between paragraphs??
All I want to do is add text from my string to dynamic text field when I click dynamic buttons. What should the as code be for this? Here is my code. Right now I just have the click returning another shape.
As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.
I have written a tab nav class for learning purposes but have run into an issue with the tab captions. I invoke the tab class by sending in an array of the buttons that are needed, tabs are displayed accordingly. with the tab creation loop, I create the textfields for earch tab caption which is displayed as expected. I then have MouseOut and MouseOver effects which works (tab color changes accordingly), however, when MouseOver and MouseOut effects are triggered, the caption is no longer visible because, the mouse effect changes the caption text color which I don't know how to stop. I just want the the tab to change color NOT the caption.
I'm relatively new to Actionscript, in fact, I just figured out today how to load text from an external source. I have another issue that I'm not sure how to handle. I have buttons for my main nav, a main text box, and a mini text box (both text boxes are loaded dynamically from external files). I want to have the mini text box load new external text files in the main text box. For instance, I have a button for music, which loads a list of songs in the mini text box. I want to be able to click on the name of one of the songs and have it load the lyrics in the main text box. I'm sure it's simple, I'm just new.
I have another issue that I'm not sure how to handle. I have buttons for my main nav, a main text box, and a mini text box (both text boxes are loaded dynamically from external files). I want to have the mini text box load new external text files in the main text box. For instance, I have a button for music, which loads a list of songs in the mini text box. I want to be able to click on the name of one of the songs and have it load the lyrics in the main text box.
what the subject says: Closed Caption for Video Flv. Every documentation on internet speak about FlvPlaybackCaptioning.. I would like to made a flv player with caption on my own...
I also found an interesting component called CCForFlashAs3, but I'm not able to use it...
I just can't see it. I took a resizing prototype function from the compiled fla in the resizing slideshow thread (found here, post #171) and combined it with the concepts from the hover caption tutorial on kirupa. But instead of creating a dynamic text box in the hover movie clip I am creating the text dynamically using createTextField and then autosizing it using textfield.autoSize = true (didn't seem to work when I used "left"). When you use createTextField you have to specify a width and height. The autoSize command seems to dynamically resize the textfield in height but not in width. When running a trace the width is always the same though the height changes
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. [code]
I'm using the flvPlayback and Captioning component/skin for some videos. Works great, but I can't figure out how to have the captions off by default and use the caption button to turn them on for users who want to see the caption buttons. flvCaption.showCaptions=false; Hides the captions, but also disables the captionButton in the skin, so there is no way to toggle showing and hiding the captions.
I have made an image gallery using a tutorial by blue chiIt is basically constituated of thumbs that once clicked let a large image appear. I now want to add captions to these large images, on a rollover. I tried applying the tutorial "Hover Captions" to my movie, without success.Being relatively new to all that language, I am not sure it is appliable, and mostly where I should put it, i.e, should i include it to my main timeline or to each image (which are movie clips), on an other layer and so on.Here is the code I have for now
I'm hoping this one will be fairly simple though - I just can't see it. I took a resizing prototype function from the compiled fla in the resizing slideshow thread (found here, post #171) and combined it with the concepts from the hover caption tutorial on kirupa. But instead of creating a dynamic text box in the hover movie clip I am creating the text dynamically using createTextField and then autosizing it using textfield.autoSize = true (didn't seem to work when I used "left"). When you use createTextField you have to specify a width and height. The autoSize command seems to dynamically resize the textfield in height but not in width. When running a trace the width is always the same though the height changes.
Problem: I am trying to get a very simple text resize going, for my main content area in a flash website. My aim is to get a button, that on click, increases the text size of a dynamic text field.
[Code]....
This is what I tried, I am very new to Action Script, so excuse the futility of my code.
I am creating a very basic AS3 XML Gallery. The problem I am having is including the description or "caption" along with the photo. I have been going around it for awhile, but I can't seem to get my head around it.
These are the basics I have for my XML. <?xml version="1.0" encoding="utf-8"?> <images><image> <url>pics/first.jpg</url> <big_url>big_pics/first.jpg</big_url> <description>The first time</description> </image></images>
Here is the code: var captionLoader:URLLoader = new URLLoader(); captionLoader.load(new URLRequest("caption.txt")); captionLoader.addEventListener(Event.COMPLETE, onLoaded); var captionFormat:TextFormat = new TextFormat(); captionFormat.font = "Helvetica"; [Code] ..... All properties under "captionField" work fine, but none of the three under "captionFormat".
I am working in CS5/AS3 with an FLVPlayback component and a pre-made skin with some custom colors. It is a skin with the caption button included (SkinUnderAll to be exact). I'm using Timed-Text files for the caption content. The captions work just fine. All other buttons on the skin show up, but the toggle button isn't showing up.
I checked all of the linkage in the skin's FLA, checked the AS that creates the FLVPlayback and FLVPlaybackCaptioning objects. All seems fine there.
I've checked the paths and SWF locations to be sure all are in the right places.
I've also included a SKIN_LOADED event listener to get around the default captions-on issue. I'm just not seeing what the issue is. I'd prefer to not go back through my code and make a custom control panel with button components. Started this in CS3 and moved the file to CS5, so I'm not sure if there's something I overlooked in the documentation that spells this out.