ActionScript 2.0 :: How To Attach Background To Caption

Mar 20, 2010

how to attach background to caption

View 11 Replies


Similar Posts:


Professional :: Background Scrolling - Attach The Trees To The Background?

Nov 19, 2010

I have converted a large background image (much larger than the stage) into a Movie Clip.  I did this so I can make it scroll as the player traverses to the edge of the scene.This appears to make the player free to roam the entire background image.I have a tree symbol with a class attached to it that blocks player movement.Here is my problem:

When I drag and drop instances of the tree symbol onto the background, the trees are stationary and do not scroll with the background.I do not want to have to implement code to make the trees scroll when the background does.I was wondering if there was a way to simply attach the trees to the background so that if the background moves, the trees move with it and appear to be part of the background as if they were drawn into it.It is convenient for me to be able to drag and drop as many trees as i need to block certain routes on the background from the player.I tried writing code to make the trees move but it was only working for the very last tree that I added to the scene.

View 8 Replies

ActionScript 2.0 :: Resize The Caption Box To Match The Caption Text's Length

Jul 24, 2003

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:

_root.caption.box._width = _root.caption.help.length * 8;

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.

View 5 Replies

Professional :: Add Caption And On Off Button To Show And Hide The Caption

Mar 1, 2011

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?

View 1 Replies

ActionScript 2.0 :: Background Music Class - Initiate And Attach Sound?

Jul 13, 2011

I'm working on a background music class and found that you cannot use the Sound class in a class file. Specifically, initiating and attaching the sound. Starting, stopping, getting the duration and such seem acceptable (though I haven't tested this yet). I've done a few searches and haven't found any work arounds other than when the class is called, hand it the sound object with the sound already attached, like this:

ActionScript Code:
import bgMusicClass;
var bgSnd:Sound = new Sound(this);
bgSnd.attachSnd("newWave.mp3");
var bgMusic = new bgMusicClass(bgSnd);

View 2 Replies

ActionScript 2.0 :: Eliminate Previous Attach Before Move To Next Attach MC?

Nov 5, 2006

how to eliminate previos attach before move to next attach MC..let say as u can see in my code..I just settign the interval..for 2 second..in other to attach the mc on eby one...so how to set up the code so that if the 2nd mc has attach it'll remove the 1st one attach for certain time...and so on..the scenario like this..

mc1 attach
after 2 second
mc2 attach --> remove mc1
after 2 second

[code]....

View 2 Replies

ActionScript 3.0 :: Tab Navigation.Having With Caption?

Jun 15, 2009

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.

[Code]...

View 5 Replies

ActionScript 3.0 :: Set The Caption To True?

Aug 7, 2009

I can set captioning to true in component inspector; is there any other way that we can set the caption to true?

View 1 Replies

.FLA - How Does The Button Instance Appear As The Caption In The Text Box

Mar 19, 2009

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.

View 6 Replies

ActionScript 3.0 :: Closed Caption With No Component?

Jul 8, 2010

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...

View 3 Replies

ActionScript 2.0 :: Auto-resize A Caption?

May 6, 2004

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

View 14 Replies

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:

[AS]
function loadCaptionText(){
textnum ++;

[code].....

View 3 Replies

ActionScript 2.0 :: Text Box Not Displaying First Caption?

Jun 21, 2006

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.

View 3 Replies

ActionScript 2.0 :: How To Change Caption On Photos

Mar 21, 2008

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]

View 14 Replies

IDE :: FLV Playback And Caption Component For Videos

Sep 13, 2008

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.

View 4 Replies

ActionScript 2.0 :: Caption In A Image Gallery?

Dec 24, 2008

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

Code:
this.createEmptyMovieClip("container",1);
import mx.transitions.Tween;

[code].....

View 1 Replies

IDE :: XML PHOTO GALLERY - Make A Second Caption?

Jan 28, 2009

I am using the XML and Flash photogallery that Kirupa has in the tutorials [url]. I was wondering how I can:

a. make a second caption
b. make a caption with a link on it.

View 1 Replies

ActionScript 2.0 :: Adding A Caption To A Thumbnail?

Sep 28, 2003

Does anyone know a simple way to add to the following AS a caption into a dynamic text box from a text file to go along with each jpeg?

Code:
stop();
/
// i wrote this code, but you can use and abuse it however you like.

[Code].....

View 6 Replies

ActionScript 2.0 :: How To Auto-resize A Caption

May 6, 2004

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.

View 14 Replies

ActionScript 3.0 :: XML Photo Gallery - How To Include Caption

Sep 24, 2008

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>

View 8 Replies

ActionScript 3.0 :: Caption Format - Properties Not Working

Jul 11, 2010

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".

View 3 Replies

Caption Button In FLVPlayback Skin Disappears

Feb 24, 2011

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.

View 4 Replies

ActionScript 2.0 :: Hover Caption Within Movie Canvas

May 9, 2004

I followed the hover caption tutorial but sometimes the hover caption goes out of the movie.How to make it stay inside the movie and a certain distance of the mouse?

View 9 Replies

ActionScript 2.0 :: [FMX] In Hover Caption In An External Movie?

Apr 1, 2003

I've done the Tutorial written here by Kirupa on how to display an hover captionTutorial It works perfectly in the stand alone movie.But i need to put this in another movie as external.When i do so, it doesn't work , actually 'cos it drag ALL the external movie and not only the item i want to do a Hover Effect.Why this??Maybe because it consider the command_root.x = 1 (and so on whenever there's _root)the root of the Main movie and not the one of the external??Must i correct all the code with level1 or there's another way??

View 1 Replies

ActionScript 2.0 :: Hover Caption Tutorial / Formatting

May 8, 2006

I followed the hover caption tutorial, everything worked, etc. What I want to do is experiment with different uses for the hover captions. I tried to put longer text inside the quotes ("something something blah blah blah" instead of "Portable Devices", etc), but it extends the yellow box way past the text, and if I try to make it multiple lines I get this error mesage:

[Code]...

View 5 Replies

ActionScript 2.0 :: Modify Gallery To Load Caption From Xml?

Aug 2, 2007

how modify gallery from this tutorial [URL]to load caption from xml.

View 3 Replies

ActionScript 2.0 :: Load Random Image With Caption XML?

Jan 13, 2009

Based on the kirupa xml gallery I am loading a random image opposed to starting with the first image in the xml file. It works fine, but I have not been able to figure out how to get the accompanying caption to load with the specific image.

Code:
function loadImage() {
if (loaded == filesize) {

[code]...

I know it has to do with this: "description[0];" I'm just not sure what to change the '0' too....?

View 5 Replies

ActionScript 3.0 :: FLVPlayback AddEventlistener For Caption Toggle?

Sep 14, 2009

Using FLVPlayback and FLVPlaybackCaptioning components with a Timed Text xml caption file. I must use a tt xml, I can't use cue points; our workflow isn't set up that way. I want to shift the screen components around to make room for the captions (which I am displaying underneath the controls). My current workaround involves a frame listener and checking if the dtCap.text != "" (then captions are on, else they are off). I am using a TT xml, with no @dur; so this works fine except...

Since the captions do not start immediately, but default to on, the video frame shifts up abruptly when the captions finally start. There must be an event or a property associated with captions being toggled On or Off; but I can't find it in the reference. I have found Adobe labs posts referencing a state of the skin itself, but they reference private variables which would require a rewrite of the FLVPlayback component. TL;DR: How do I attach an event listener to the Caption button in an FLVPlayback skin? Or what property can I reference to determine if captions are On, even if the current caption is blank?

View 3 Replies

IDE :: Hover Caption To Each Movie Clip From Xml Data

Jan 8, 2010

am having totally 30 movie clip ( name it as layout_1 to layout_30 ) for that i want hover caption to each movie clip from xml data note: not load dynamic movieclip only xml data load dynamic

View 1 Replies

ActionScript 2.0 :: Hover Caption Tutorial On Kirupa

Aug 3, 2011

My query is in respect to the tutorial posted on kirupa : [URL] Now :

1) If I want to add a line of caption ,the moviclip expands in a horizontal manner. So , if I write a big description , the caption movieclip occupies whole stage width. How can i make this movieclip exapand in a vertical fashion after a fixed no. of characters

2) Suppose a button which is inside a movieclip has been applied this function , the button action doesnt work !!!! only the hover caption appears. ( specifically the button on(release) action ) !! What is the possible solution.

View 14 Replies







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