...

View Full Version : auto scroll



Firewarrior
05-14-2008, 09:19 PM
Hi there.
on our website www.cpcclan.co.uk we have a thinge called feature news.
its where uses can click on the arrow and it will go onto the new bit of news or advertisement.

But is there a way to change the follow code so that it will auto scroll to the next bit of news/advertisement

Sorry i am new at this so i am not sure if there is a code out there that will do this, this is why i am asking here.

Here is the code

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

<pic>
<image>mirc.jpg</image>
<caption>Come and join us on irc</caption>
</pic>
<pic>
<image>lo3servercode.jpg</image>
<caption>LiveOn3 Servers 10% off offer</caption>
</pic>
<pic>
<image>cashbanner.jpg</image>
<caption>Cash-Designs.com create another website!</caption>
</pic>

</images>

Firewarrior
05-15-2008, 04:22 PM
i take it then by the no reply that

a. no one knows
or
b. it can not be done

:(

gnomeontherun
05-15-2008, 07:53 PM
Give us a little time, we don't check everything everyday.

Actually it can be done, but you are using XML here. There is nothing that you can do with the XML to change the Flash really.

Do you have the FLA file to edit? That is what we need to change.

Firewarrior
05-16-2008, 12:29 AM
Give us a little time, we don't check everything everyday.

Actually it can be done, but you are using XML here. There is nothing that you can do with the XML to change the Flash really.

Do you have the FLA file to edit? That is what we need to change.

Yeah sorry m8 i do need to wait a little longer
i am always in a rush LOL

Anyway i had a look and the only thinge i can see is a .swf file
can that be changed ??

gnomeontherun
05-16-2008, 12:37 AM
No, a swf file is the Flash output which cannot be altered. You need the source which is in an FLA file. Otherwise you need to come up with another method.

agehead
05-23-2008, 06:15 PM
Hi,

I am actually trying to do a similar thing with my flash vid.

I have an external txt file that loads into a dynamic text box via actionscript 3.0. The video is for a lobby display at my office which will display recent news. The news will be fed by the external txt file, and changed frequently. Since there could be lots of news on some days... and not so much on others, I decided it would be easiest to have the news scroll. Once it hits the bottom, I would like it to sit for a moment, then tell a parent movie clip to advance a frame.

Here is the as3 code I'm currently using:

var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("news/photo.txt"));
loader.addEventListener(Event.COMPLETE, onComplete);
function onComplete(event:Event):void
{
external_txt.htmlText = event.target.data;

}


All this does is load the text, but I can't find out how to make it scroll automatically. If anyone can help with any aspect of this, I would greatly appreciate it.

Thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum