ActionScript 2.0 :: News Style Scroller - Text And Audio Clips

Feb 3, 2007

I've got a news-style scroller that has audio clips and text loaded in via an XML file. The text works fine and I can read the string of the mp3 file to play, but if I actually hit play, it only plays the LAST listed mp3 in the array instead of the one that should be playing.

Here's some code:
stop();
MovieClip.prototype.mV = function() {
this.onRollOver = function() {
this.t.colorTo(0x815249, .5);
this.roller.gotoAndPlay("over");
[Code] .....

What's happening is when you click the play button, it only plays the last song named in the XML file, and doesn't link to the correct url, but all the text is in the correct places.

View 6 Replies


Similar Posts:


ActionScript 2.0 :: News Scroller - Center Justifying Dynamic Text

Jan 6, 2005

I have this news scroller for work - Vertical member (160 X 600) And the idea is that it has 3 text fields (Headlines). These fields are lined up vertically (one at the top of the scroller, one at the middle, and one at the bottom.). I load them dynamically from XML, and after about 5 seconds, I have them all move up. (the top one goes up the top, and comes back from the bottom, the other two move up). The problem is that I am trying to center justify them. When they're loaded I can center justify them, using this code:

Code:
MovieClip.prototype.centerFunction = function() {
format = new TextFormat();
format.align = "center";
_root.news2.headline2_txt.setTextFormat(format);
_root.news3.headline3_txt.setTextFormat(format);
_root.news1.headline1_txt.setTextFormat(format);
}

Now, when they are first center justified by the code, they look slightly off, and once they move they arrange themselves correctly.

View 5 Replies

ActionScript 3.0 :: Vertical News Scroller - Fade Out When Text Reaches At End

Jul 13, 2009

I'm creating a vertical news scroller, that will eventually load in from an external text file and then just scroll the text in a movie clip vertically. I have this working but I have a couple of questions.

1. As the text reaches the end of the scroll I want it to start to fade out, I've added a IF statement to do this but it doesn't seem to fire. Why is this?
2. Even though I don't have any easing the scroll seems to slow down as its nearing the end of the animation, do you know why this is happening?

Code:
import gs.TweenLite;
import gs.easing.*;
var myTimer:Timer = new Timer(0,1);
myTimer.addEventListener(TimerEvent.TIMER, scrollNow);
myTimer.start();
[Code] .....

View 5 Replies

ActionScript 2.0 :: Add Images To A News Scroller?

Jun 5, 2008

I found a script at on the web that emulates the news scroller found atI would like to add images to each news headline so it can replicate the effect found at

Code:
stop();
//

[code].....

View 2 Replies

Professional :: News Scroller With Images/videos?

Sep 4, 2010

I am trying to create a news scroller such as the one on espn.com where you have a scrolling news component that can contain images and or videos and links to news stories stored in the database.

View 2 Replies

ActionScript 2.0 :: XML - Fetch News From Xml And Populate That News Headings Into Four Text Fields

May 17, 2010

I am working on the news ticker module (AS2) where I have to fetch news from xml and populate that news headings into four text fields and these 4 headings will stay for a while and fade until last record. this process will continue.

View 0 Replies

ActionScript 3.0 :: Make Facebook Style News Feed?

Oct 9, 2009

Right direction, for making a facebook style new feed? I am trying to make a Feed that is updated with user comments!

View 3 Replies

ActionScript 2.0 :: Horizontal News Scroller With Links To Full Story

Nov 23, 2010

I am looking to create a horizontal news scroller. In fact I once found one on the web but failed to bookmark it now I can't find it again. I have attached an image of what it needs to look like. It will load text from an external source and have links to the full news story.

View 0 Replies

ActionScript 2.0 :: Dynamic MovieClip Scroller (Left To Right Style)

May 9, 2006

I am building a dynamic movie clip scoller in flash the swf at the moment returns all the images from the db using an asp page and does display them side by side! I am using a method of loading that I am not 100% sure about as I need to make the whole thing scroll left to right style....and right to left....

The code for this loading is ..
myLoader = new MovieClipLoader();
function loadPics() {
myY = 0;
myX = 0;
for (i=0; i<=_root.image_array_length-1; i++) {
_root.attachMovie("image", "image"+i, i);
this["image"+i]._x = myX;
etc...

Now when I am making this scroll I am confused as to what to target to make scroll - the 'image' movieclip is in the library and uses linkage identifer of 'image' for the script... and also seems to sit on the highest layer/depth each time....

View 5 Replies

ActionScript 2.0 :: Menu Text Above Scroller It Controls The Scroller?

Jul 29, 2005

my problem is that if you go over the menu text above my scroller it controls the scroller. I wan this areas movement to have no effect on the scroller below. is there a way to script my scroller to set it to this?

View 1 Replies

ActionScript 3.0 :: ComboBox Style: Can't Style Text

Oct 23, 2009

I've got a comboBox component on the stage, instance name 'combo'. I want to style the text. I followed the adobe instructions, but they seem not work, and I get no errors.

Code:
import fl.data.DataProvider;
import flash.text.TextFormat;
var tf:TextFormat = new TextFormat();

[code].....

View 2 Replies

Flex :: Scaling An Image In A Scroller Resizes The Scroller When Relative Dimension Are Set To The Scroller?

Mar 9, 2010

I would like to position relatively a scroller in my application like below.When I scale the image, I resize the scroller...

<s:Scroller width="50%" height="50%" >
<s:Group>
<mx:Image

[code].....

View 2 Replies

ActionScript 2.0 :: Making An XML News Reader Based Off Of Senocular Squirrel XML News?

Mar 24, 2007

Making an XML news reader based off of senocular Squirrel XML news.

I'm using Fuse and wanted to target the dynamic text and or background portions of the headline section.

However, this movie clip is attached to the menu_mc so I'm stumped as to what I should exactly target for the fuse sequence (or any mx.transition/zigo engine based code-tweening process for that matter).

I've attached the files in a .zip for people to look at (and possibly conquer my problem!

View 3 Replies

ActionScript 2.0 :: Xml News- Pulling Multiple News From Xml?

Jul 17, 2009

I wanted to add a second news box under the first one and have it pull the first two news items in the xml file and have it displayed on the movie. Currently it is putting the first news item in both news boxes.ction script so that the second box is actually the second "<news> tag". From the tutorial I removed the <info> <author> and <comment> tags.

View 0 Replies

ActionScript 2.0 :: News Editor And Text Formatting?

Mar 9, 2005

Do you know Kirupa's News Editor tutorial?O.K. I have problems with text formatting. I need "title" in a different font than "body".Here is the part of original code:

ShowNews = function(news_xml){
if (!news_xml.firstChild.hasChildNodes()){
content_txt.text = "No news available.";

[code]......

View 8 Replies

Creating A News Bulletin - Automatically Take The Text And Animate It

Sep 20, 2009

I want to create a news bulliten in my website. I'm talking about a small 200*200 pixel box, where the user see's news coming from down to up. Of cours i can use a primitive way editing the flash file whenever News are fed but i want to do this just by editing a text file which will contain the news and the flesh box will automaticly take the text and animate it.

View 2 Replies

Actionscript 3 :: Scrolling Text 'news Ticker', Flash?

Jun 7, 2010

My text animation scrolls from left to right, which is OK. I want to keep it simple but change it up little. How do I get the text to go right to left?

AS3 Example

mask = customMask;
var my_str:String = " Ad hoc ad loc and quid pro quo ";
function addUm():void {
my_str = my_str.charAt(my_str.length - 1) + my_str.slice(0, my_str.length - 1);

[code]....

View 1 Replies

ActionScript 2.0 :: Get News Ticker To Display The Text Sooner?

Jul 4, 2006

I've made a horizontal news ticker that scrolls a string from right to left using substring method and by changing the alignment. This works OK but I would like the text to start displaying again before it disappears completly off the left of the screen. I've attached the fla and swf.

View 5 Replies

ActionScript 2.0 :: [FMX04] XML News Ticker With 2 Different Text Fields?

Nov 15, 2006

I'd like to add a second news ticker text field right beneath the first one that loads its headlines from a different XML file. So my question is this -- (not very XML savy mind you...) How would I need to adjust the AS code to be able to have both text fields going at the same time? What parts of the AS code can be omitted? (to not have redundant functions) Is there anything I should be aware of that might be cancelling out the second text field from running? At this point, I can get only one of the tickers working at a time -- the other just sits empty.

[Code]...

View 1 Replies

ActionScript 2.0 :: News Ticker - Text Does Not Come With Fade In Effect

Sep 14, 2007

I need help related to kirupa's News Ticker Tutorial. I want the text to be fade in like it's fade out. Currently the text does not come with fade in effect. You can see the news ticker here: [URL]

[Code]...

View 1 Replies

ActionScript 3.0 :: Loading Audio Clips After Frame One

May 12, 2010

The project I'm working on consists of a bunch of pages, each with narration. Each page is a separate frame on my main timeline. Due to all kinds of issues I was having, I am now loading in the audio via actionscript, rather than placing an instance of it into an object and going from there. The issue I am now having is that when I tried to simulate a download, the movie would sit on frame zero until all audio was loaded, so it took a long time to get to my preloader, and by then the movie was just about finished loading.

It was suggested that I uncheck "export at frame 1" on my audio files, but now I am getting errors that I am making a call to a possibly undefined method (random audio file name of choice). If I am loading my my audio via actionscript, do I have to load it all in on frame 1? And if so, is there any way for my movie to get to my preloader before trying to load things? I have also tried setting my publish settings to export my classes on frame 2 or 3, in the hopes of it getting as far as my preloader before stopping, but no luck so far.

View 12 Replies

ActionScript 3.0 :: Record And Edit Audio Clips?

Dec 11, 2009

Recording audios and trimming them with flash.whats the best way to go 'bout it. Is there any available component that i can use or do i have to create something from the scratch. If I have to build something from the scratch what's best way to go about it?

View 1 Replies

ActionScript 2.0 :: AttachSound - Sync Audio Clips With MC?

Jul 6, 2005

Are there issues with using attachSound to sync sound clips with Movie Clips? I currently am having this problem. I have all my sounds in a separate swf (sounds.swf), then I call the sounds like this:
Code:
gear1_btn.onRelease = function() {
logo.gear1.play();
sounds.gearssmfx.start();
}

I build the movieclips with the sound on the timeline, so that I know they sync up. Then I remove the sound from the movieclip, and actually play the sound with the AS above. The above AS should play the same in the browser, but doesn't. The problem is that the movieclip animations often run slower in the browser than they did within Flash. Is is possible that the movie is running at a slower FPS in the browser? I have noticed that it runs slightly slower in Firefox than IE. I'm currently using 32fps.
Here is my development : [URL]
Specifically, I'm having problems with the gears next to the letter "S" and "0", click on them to play.

View 2 Replies

ActionScript 2.0 :: Flash 8 / CS3 - Make The Scroller Refresh To Allow For New Text In The Dynamic Text Area

May 29, 2007

I'm using the dynamic text scroller from [URL] found at [URL] Here's a link to my zipped files too... [URL]

1) I can't figure out how to have URL links in the text that loads.

2) How can I make the scroller refresh to allow for new text in the dynamic text area. The content changes alright, but the scroller stays in the same position and if it wasn't needed initially, the scroller disappears and doesn't return on new text.

View 2 Replies

Professional :: Music-synced Text Scroller Design - How To Scroll The Text

Jul 16, 2011

I want to make a Flash app that will scroll text whilst music plays. The music part is easy, but scrolling the text...I've tried simply importing ALL of the text, resizing, and scrolling that one giant object upwards, but when the screen was full of text it began to slow down. I need the speed uniform to sync it with the music in the background.
 
I could have a 70,000,000,000 frame movie and move each element individually, avoiding the heavy load, but the amount of work on my end this would require would be so astronomical that it just wouldn't be worth it. Ideally I want something like a component that I can dump text into and have it deal with making the scroll speed uniform.
 
It would also be a major plus point if it could be used/created by another program, so that someone without Adobe Flash could produce a similiar kind of movie simply by putting in their text and MP3 file and hitting a "Generate" button.

View 2 Replies

ActionScript 2.0 :: Text Scroller - Input The Text To Show As A Link

Nov 17, 2003

I dowloaded and played with the following scroller on this site... [URL] I see where the text is under Actions but I'm wondering if I can input hyperlinks and email links as well or will I only be able to use this with plain text. If formatting and links are allowed, how can I input the text to show as a link. Sorry, I don't know much about flash and just trying to make a simple text box with scrolling capability that will allow hyperlinks, bold, etc...

View 3 Replies

ActionScript 3.0 :: Using A Rich Text Editor To Style A Flash Text Field?

Oct 6, 2010

I've been trying to build a user interface that would allow someone to change the content of a dynamic field (loaded from a text file) using a rich text editor. However the editor inserts inline css style tags like <span style="text-decoration: underline;"> which Flash aparently can't understand. If the editor were instead to insert the following: <span class="ul"> where the stylesheet defined it as:

[Code]...

View 1 Replies

ActionScript 3.0 :: Converting Style Code From Classic Text To TLF Text?

Jan 10, 2011

I've got a project that currently uses classic dynamic text fields that pull in information from an XML file. The text contains a 'keyword' that's referenced in the XML, that can be situated anywhere in the complete sentence. This keyword needs to be a different colour and font size... but as I said, it can appear anywhere.

Currently this works by getting the keyword from the XML, finding its length, finding the index of where it starts, splicing the main string, and then setting TextFormat to the number of chars in keyword, which changes the font size and colour for just that keyword in the sentence.

This works great for the classic dynamic text boxes. It doesn't however work with TLF text, it just applies the new format to the entire text field. I don't have any experience with TLF text as I've just upgraded to CS5 and now need to make this work in Hebrew.The code snippet for the keyword colour change looks like this:Where screen01Norm & screen01Key are things pulled from XML & screen_01.txt_box_combined is the text field.

var newFormat:TextFormat = new TextFormat();
newFormat.color = 0x319aca;
newFormat.size = 50;

[code]....

View 1 Replies

Professional :: Possible To Control Timing Of Audio Placed Within Symbol Movie Clips?

Feb 18, 2011

I have created a series of Symbol MovieClips which I load through ActionScript on the first frame of the main timeline so that they play sequentially. I dynamically create each MovieClip, add it to the Stage, and setup an enter frame listener.On the last frame I stop and remove the clip, and repeat the process with the next clip.These animations play sequentially as intended. However each clip has an audio sequence on its timeline.These play simultaneously at the start of the main timeline.I've tried each of the Sound Sync options on the first frames within the Symbol clips.With the Stop setting the audio doesn't play, but Start, Event, and Stream all cause the audio to play at the beginning of the main timeline which seems to contradict the documentation I've looked at.

Is there a straight-forward way to sync the audio to the Symbol clips, or does the audio need to placed on the main timeline?I'd rather not do this as it is much easier to sync up the audio for each symbol clip with the animation when I can work with the smaller audio snippets and not have to test the whole movie.

View 7 Replies

ActionScript 2.0 :: CS3 News Ticker XML To Load Four Time - Copy Text - An Image - Date And A URL

Mar 2, 2010

I'm making a very simple news ticker that uses XML to load four items: copy text, an image, date and a URL. The script was pieced together from tutorials and a bit of self-teaching, so I know it's probably not great. The AS is pasted below. Everything loads just fine, but the button script returns an "undefined" error. I assume this is because the item is no longer found in the array, but I'm not entirely sure. I also think it may be that the loadMovie method isn't working well with a specific item in the array. Also the link does not work. *Note* I know there are probably more advanced ways to tackle this but I'd like to keep this at my learning level so I can grow with it. :-)

[Code]....

View 4 Replies







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