Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Movieclip, Like A News Show



Can anyone help me?
I need to do a movieclip that has this aspect:

- a down to up movement, with dinamic content inside, like the infos that the aeroports have, showing the information of the arrived plane, the hour he will arrive, that kind of things.
I now that Euronews (tv) have this kind of template, showing the weather and other infos.

I've allready search for a template, but i haven't find anthing .... for free, of course

I'll wait for something, a tip .



Ultrashock Forums > Flash > Flash Professional
Posted on: 2004-06-02


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Not Show Expired XML Entries With The News Ticker
I am currently using the news ticker displayed at this site

My question has to do with showing (or not showing) XML entries that have an expiration date set to them. For example here's my XML file.


Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<images>
<item>
<news>Join Super Oldies 105.5 for a special Indianapolis Colts...</news>
</item>
<item>
<news>...sports broadcast, Friday, September 2nd at 6:30PM!</news>
</item>
<item>
<news>Bloomington Speedway's Chuck Welsh (Click for more)</news>
<url>http://www.superoldies.net/news/</url>
<expire>08/31/2005</expire>
</item>
<item>
<news>Listen to Mitchell Bluejacket Sports all season long...</news>
<url>http://www.superoldies.net/sports/#mitchell</url>
</item>
<item>
<news>...on Super Oldies 102.5 WQRJ!</news>
<url>http://www.superoldies.net/sports/#mitchell</url>
</item>
<item>
<news>Join Super Oldies at D&D 37 One Stop...</news>
<url>http://www.superoldies.net/summertime/</url>
</item>
<item>
<news>...for the 6th Annual Super Oldies Cruise-In...</news>
<url>http://www.superoldies.net/summertime/</url>
</item>
<item>
<news>...Friday, September 9th from 4PM to 8PM</news>
<url>http://www.superoldies.net/summertime/</url>
</item>
<item>
<news>Listen to Mike Harvey's Super Gold...</news>
<url>http://www.superoldies.net/shows/#supergold</url>
</item>
<item>
<news>...every Saturday night on Super Oldies!</news>
<url>http://www.superoldies.net/shows/#supergold</url>
</item>
</images>
You can see that the third entry has an expiration date set for August 31st. Since it is September 1st the flash file would pull the XML data and not show this entry.

Here is the code as it stands in my flash file:


Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
caption = [];
url = [];
expire = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
caption[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
url[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
expire[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
}
first_item();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://www.superoldies.net/news.xml?blarg="+new Date().getTime());
//
function first_item() {
delay = 3000;
p = 0;
display(p);
p++;
}
function timer() {
myInterval = setInterval(ticker, delay);
function ticker() {
clearInterval(myInterval);
if (p == total) {
p = 0;
}
fadeout();
}
}
function display(pos) {
over = new TextFormat();
over.underline = true;
//
out = new TextFormat();
out.underline = false;
//
newsMC.newsText._alpha = 100;
newsMC.newsText.text = caption[pos];
newsMC.onRelease = function() {
getURL(url[pos], "_self");
};
newsMC.onRollOver = function() {
this.newsText.setTextFormat(over);
};
newsMC.onRollOut = function() {
this.newsText.setTextFormat(out);
};
timer();
}
function fadeout() {
this.onEnterFrame = function() {
if (newsMC.newsText._alpha>=0) {
newsMC.newsText._alpha -= 5;
} else {
display(p);
p++;
delete this.onEnterFrame;
}
};
}
What I'm needing is an IF statement that will look to see if anything is set in <expire>, compare it to todays date, and choose whether or not the entry is displayed.

Can someone help me out with this?

Xml Based News Wont Show Up On Slow Connection
I am experiencing a strange problem having an xml-based news output in my site... first i get xml data from asp, the xml data is then stored in my movie for display later on. i check if it has loaded by having an onLoad-function and! by counting the number of nodes i got. all works fine on dsl, but on isdn or analogue the news sometimes show and sometimes not with no regularity that i can figure out.. any help/tip/experience on thet would be very helpful, i don't see how i can fix this...
thx alot in advance
daar

Flash Site News Slide Show With Links
Hello,

I am developing a site news slide show. Each slide is a movie clip with links within it. The slide show should loop automatically and each movie clip will come up on the screen waits for 10 seconds and loops again. In addition my movie clip has bulletted links at the bottom to other movie clips, so if user wants to go to particular mc then they will click on list and movie clip should slide to clicked one and wait for 10 seconds and loop again.

I am using the tranistion effect by downloading the Mctween plugin from following website:
http://hosted.zeh.com.br/mctween/using.html

My button clicks are not working and I am not sure if the loop I used in the code is right one. I am attaching the file I have. Any help in this regard will be much appreciated,

thank you

Scrolling XML News Movieclip... ?
Hey guys ! By the way, my name is Domi, and this is my first post here. Hello !

ok so here's the problem:
There's a "news" section on the website I'm currently working on. The "news" themselves are nested in a MC, and is generated using XML and a "for" loop. This MC has to be scrolled (and masked also). The problem is that the MC's height will vary, depending on how many news items it contains.

By the way, simply scrolling one big dynamic text field is not an option, since I'm using TWO text fields (one for the date, and one for the news themselves).

I guess I have to find a way to tell Flash to apply the scrolling function AFTER this news MC has been populated... but how ?

I hope someone can help me... it's the last thing I have to do on this website !

Thanx a lot !

Scrolling XML News Movieclip... ?
Hey guys ! By the way, my name is Domi, and this is my first post here. Sooo... Hi !

ok so here's the problem:
There's a "news" section on the website I'm currently working on. The "news" themselves are nested in a MC, and is generated using XML and a "for" loop. This MC has to be scrolled (and masked also). The problem is that the MC's height will vary, depending on how many news items it contains.

By the way, simply scrolling one big dynamic text field is not an option, since I'm using TWO text fields (one for the date, and one for the news themselves).

I guess I have to find a way to tell Flash to apply the scrolling function AFTER this news MC has been populated... but how ? I've tried Kirupa's "Simple Custom Scrollbar" tutorial, which doesn't work since it's using the MC's initial height.

I hope someone can help me with this... it's the last thing I have to do on this website !

Thanx a lot !

Movieclip Does Not Show Up
I have a flash scene with several movie clips in it. IF I run through the scene in flash everything shows up. But if I do a test movie, several items do not appear. I can't figure out why. Can someone please give me and idea as to why they would show up in flash if I do and enter and run through the movie but not if I do a test movie.

Show Movieclip Twice
I'm working on a project for which I want to display a movieclip created by actionscript, with content added using actionscript twice.
I have my main movieclip, and I want to display a scaled copy of that. What would be the best option? Is there some way to duplicate a movieclip with all it's contents?

How To Show Hide MovieClip
I am trying to do in as 3.0 what I routinely did in as 2.0 with no success. All I need to do is roll over a button and show a movieClip and hide the movieClip when I roll out. A little sample code would be greatly appreciated.

Thanks,

Al

MovieClip Won't Show On Stage
So, I'm creating a "critter caretaker" which is basically a stripped down Tamagachi for a class. However, for some reason I can't for the life of me get the movieclip of the critter to show on stage. No matter what I do it just won't show up.

I also am not sure why, but I'm getting an error regarding my buttons.

"Implicit coercion of a value of type Class to an unrelated type flash.display:MovieClip"

Explanation of this and how to fix it would also be much appreciated

I'm attaching the files being used.

The FLA file is too big to upload, however the rest of the .as files are included. If you could take a look and let me know if you see a problem. All the movieclips are exported, etc.

Thank you!

Button = Show Movieclip?
Hi

I am making a mp3 player, and i would like to have a "lamp to flash"(movieclip if posible) when i pause the player. My action script is until now this:


ActionScript Code:
var vol = new Sound();pause.onPress = function() {        if (vol.getVolume() == 100) vol.setVolume(0);        else vol.setVolume(100);};


Please help, thank you.
Bonna

Movieclip Show/hide
Well, this is quite simple, and i once understood and more important was able to make it work! ()

How do i show and hide a moviclip?

example

on (release) {
What.to.do?
}


Thanks in advance!

-JPAG

Button = Show Movieclip?
Hi

I am making a mp3 player, and i would like to have a "lamp to flash"(movieclip if posible) when i pause the player. My action script is until now this:


ActionScript Code:
var vol = new Sound();pause.onPress = function() {        if (vol.getVolume() == 100) vol.setVolume(0);        else vol.setVolume(100);};


Please help, thank you.
Bonna

Show Same Movieclip From Different Buttons
Hard to explain, I know this is pretty simple to do but my brain is melted at this point.

I basically have created a NavBar using:

onClipEvent (load) {
this.NavText = "nameOfButton";

Using dynamic text and hardcoding button names in AS for each Nav button.

Now, I want all instances of this button to start a movieclip at
a specific location. I'm trying to do this essentially:
(in pseudocode):

on (release) {
Load Internal MovieClip;
MovieClip.x = 300;
MovieClip.y = 300;
Play MovieClip;


Simple stuff eh? Pardon my brain = jello problems.

Thanks!

How Can I Show A Custom Url In A Movieclip On My Site
I've got a little problem, I hope someone can help me.
How can you load a url you entered in a inputtextbox in a movieclip? So you can open a other page you entered the url of in te textbox on your site, but mij page must stil be opened. I hope someone can help me with a sollution of my problem.

Is It Possible To Show Percentage Loaded For A Movieclip?
hi all

i have this code

onClipEvent (enterFrame){
totalKbytes = _root.background.getBytesTotal()/1024;
loadedKbytes = _root.background.getBytesLoaded()/1024;
percent = loadedKbytes/totalKbytes*100;
_root.percentText1 = int(percent)+"%";
}

which im trying to use to show the percentage loaded of 'background', a fairly large image inside a movieclip on the main timeline. i was using this script before to load in external swfs and it worked fine. now im not too sure how to set it up, i tried several ways but without success. can anyone give me a few pointers.

thanks

Text Won't Show Over Movieclip In Background
I am running into a problem I haven't had before. I have a movieclip that is for background pictures that animate in on my site. I want to have the text for each topic animate in as well over the pictures in either the same movieclip or in a separate movieclip. I have tried setting both ways up, with the text being converted to a symbol and then motion tweened. Either way, the text does not show up, even though it is layered above the pictures. What could I be doing wrong?

Hide & Show MovieClip OnRollover
Hey all,

Im new to the forums and yes youve guessed it, i have an AS 2.0 SNAG!

Basically i want to make a movieClip appear as my cursor when i rollOver another movieClip.

So if i have a movieClip as a grey box of 100x100 called areaClip and when i roll my mouse over this movieClip i want another movieClip called pointerClip to appear, ofcourse when i rollOut i want the pointerClip to dissappear/hide/remove completely.

I have the code working to show the clip, but its removing it which is causing me problems.

=====

on (rollOver){
Mouse.hide(); // hides mouse cursor
duplicateMovieClip(this, "pointerClip", 0);
this._parent.pointerClip.startDrag(this);
}

on (rollOut){
this._parent.pointerClip.stopDrag(this);
Mouse.show(); // shows mouse cursor
this._parent.pointerClip.removeMovieClip();
}

=====

It look like ive got it correct, but trust me its not working at all. Ive got an instance of the pointerClip just of the main stage and it duplicates it when i rollover the areaClip becuase i want to indicate a visual cue to the user when rolling over this area.

If anyone has an alternative way of showing this maybe some other methods becuase im kinda new to actionscript, i was hoping that like lingo there would be some sort of visible invisible method. I dont think this should be too hard. Maybe createMovieClip() is an alternative? Maybe delete the pointerClip on rollOut?

Thanks all for reading and any help will be much appreciated.

Reply ASAP

Hax

Making Something In A Movieclip Show Above Its Layer
i have a thing in a movie clip that i want to come up infront of something on my main thingy
layer lay out:

Layer 1:what i want the thing to become infront of
Layer 2:Area Of MC

the thign i want on above layer1 is on a separate layer in my MC

any ideas?

Show TimeCode On A MovieClip. Getting Desperate
I have a simple movie clip that runs a certain number of frames....i am playing it at 30fps....now I can display which frame it is on out of total frames using _currentframe and _totalframes....and I have it working along with a slider....Now i am trying to convert frames over to minutes and seconds so the display will show 0:39 / 1:15 instead of 48 / 600...keep in mind i need it to work with the slider too....I attached a sample fla file....any help would be greatly appreciated...

Show Hide A Movieclip With A Listener?
Hi,

wondering if you can give me an example of a show/hide a movieclip with a listener. That is, i was planning to have a boolean flag variable showSubMenu and if it's true the submenu will be visible and if false it's hidden???

Show/Hide MovieClip On Menu Click.
Greetings....


I am curious i have several MovieClips containing images lined up in specific positions I want to show and hide these on a mouse click for instance

Menu-> Hair Eyes
^-Long ^-Green
|-Short |-Red

Say I click the Long button in hair i want to unhide Movieclip "longhair_mc". Is there any easy way to go about this in Flash CS3(AS2 or 3 is an option whatever works)?

MovieClip Slide Show W/Dynamic Captions + XML
Anyhelp anyone? This is the closest thread I came to achiving this..

but no fla to see visuals while creating in the process..
any help?

http://i61.photobucket.com/albums/h7...deShowinMC.jpg



http://www.gotoandlearn.com/forum/vi...asc&highlight=

AS3 - Movieclip Doesn't Show Hand Cursor
I have a class that allow you to rollover and rollout the movieclip. I just can't get the arrow to change to the hand cursor when it rolls over the movieclip. I have tried mouseChildren and useHandCursor which doesn't change anything.


Code:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;

public class NavButton extends MovieClip
{
public function NavButton()
{
this.addEventListener(MouseEvent.ROLL_OVER, dim);
this.addEventListener(MouseEvent.ROLL_OUT, bright);
}

private function dim(event:MouseEvent):void
{
this.alpha = .75;
}

private function bright(event:MouseEvent):void
{
this.alpha = 1;
}
}
}

News Section In AS3 - Easy Method To Add New News Etc
Hi there. I am trying to create a nice frontpage news section on the frontpage of my site. I wanted to somehow do it, so that it is easy to update and automatically loads into the site.

a perfect example is this as2 software i found (click on 'news' in the menu)

http://www.sketchography.com/demoSit...s_demoSite.php

HOw would i go about doing this?

Is there similar software which i can purchase and install?

Input Text Inside Movieclip Does Not Show (flash 8)
i got a problem.

i want to use input text inside a movieclip within my main scene, but somehow if i test this, it does not work. if i put "normal" text everything is fine. but if i put input text, it wont work...

i would really appreciate any solution to this problem.

thanks guys

Property Or A Function To Show Or Hide Border Around A Movieclip
is there a built-in property or a function to show or hide border around a
rectangular movieclip similar to that attribute in HTML (border=1)?

Simple: Dynamic And Input Text Boxes Wont Show When They're In An Attached MovieClip
Hey.

I am re-attaching the same movie clip (containing dyanmic text boxes) over and over again, filling a menu... and i have therefore used a mask so that a scroller must be used to view the elements of the menu far down on the list. Unfortunately, using a mask means that the dynamic text boxes within each movie clip become invisible for some strange reason (though they still exist, and i can select the text that they contain). Taking the movie clips outside of the mask allows the text to show, however, the long menu 'spills' onto the rest of the presentation.

How can i get dynamic text boxes to show within my mask?!

Thank you very much

Typorganism.com - Good News - Bad News
Hi,

I have just been looking at this site.

If you go into the section where it says "good news - bad news" there is a piece of work that I think is very clever.

Any ideas on how this was created? I would very much like to have something similar in a project that I am working on - somewhere that users can post pictures and a little line of copy to go with it.

Any one know of any tutorials/components/open source that will give me some kind of angle on achieving this.

It is very clever though - I tried emailing the site but have had nothing back yet

Hope someone can help

D

Good News Bad News --- Help
The bad news is, my computer just crashed. The good news is I have everything backed up on another computer....except 2 Flash small movies that I've almost completed. I do have them on another computer, but only as .EXE files, not as .FLA or .SWF

Is there any way to convert the .EXE back to a .FLA so I can work on them or am I screwed and have to start all over?

One of the 2 movies has been uploaded to the web, as an .HTML and as a .SWF Is there anyway these will help me?

Show Captured Image In MovieClip Without Saving Image First
Hello all,

How can I show an image that I have just captured with the webcam?

I am able to save that image using PHP but before I save it, I want to show a preview. How can I do this? Here is a snippet of the code that I think can be used to do this:


ActionScript Code:
foo = new BitmapData(640,480);
foo.draw(myvideoobject, scaleMatrix);

var myEncoder:JPEGEncoder = new JPEGEncoder(100);
myCapStream = myEncoder.encode(foo);/
How do I take the BitmapData or the JPEGEncoder and put it into a MovieClip or something so that I can just display it?

Thanks all for any help!

Flash Uses XML File To Show Pics - Can I Randomize The Show Order?
I'm playing around with a flash template at the moment which uses an external XML file to display pictures in a flash frame. The file:


Code:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <images>
- <pic>
<image>home/jpg/image6.jpg</image>
<myURL>http://www.yahoo.com</myURL>
</pic>
- <pic>
<image>home/jpg/image5.jpg</image>
<myURL>http://www.google.com</myURL>
</pic>
- <pic>
<image>home/jpg/image1.jpg</image>
<myURL>http://www.lycos.com</myURL>
</pic>
</images>
So in this case the site displays image6, then image5, then image1 - Can I do something to the XML to make them display in a random order instead of the list order?

Thanks

Why Does Slide Show Image Dispears After 3 Minutes (When Show Is Stopped)
I made a slide show with navigation buttons, but when the slide show is stopped for more then 3 minutes; the image just disappears. Here is the code I am using:

First Actionscript


Code:
loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript


Code:
var speed = 5

onEnterFrame = function() {
_root.mc1._alpha += speed
}

Then I tried this; the image did not disappear this way, but the transitional effect did not work.

First Actionscript


Code:
_root.loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript


Code:
var speed = 5

onEnterFrame = function() {
_root.mc1._alpha += speed
}
What do I need to do, too make sure image continues to display?

PS: I am sending query string from HTML to Flash to display variables (ie. movie.swf?photo1=mypic.JPG)

Show All Mode Doesn't Show The Right Objects
Hello!
I have an urgent problem. If anyone can help me I would realy apreciate it.

Please take a look at: http://www.alphadesign.3x.ro/menu.html
And then at: http://www.alphadesign.3x.ro/oct3-fixes.jpg

The problems highlighted in the picture can only be seen in "Show All Mode". If you zoom in the menu, those issues dissapear.

Can anyone please help me? It is very urgent.

Thank you!

How To Show/not Show Layer In Animation
Hi all I have a .fla with all the text on one layer. What I want to be able to do is offer users the chance to see the animation with or with out text ie give them an option (a check box I imagine) to turn it on or off.

Maybe I will need to use sessions or something? How do I do this?

Thanks for any pointers

Slide Show Image Dispears 3 Minutes After Slide Show Is Stopped - Why?
I have created a slide show with a stop button. The buttons stops; but after about 3 minutes of being stopped, the image just disappears and all I see is the movie's background. Does anyone know why this is occuring? If so, is there a quick fix for this issue?

PS: I used one of the goToAndPlay Key Frame events built right into my software; I assume it was this (to make movie stop):


Code:
on(release) {
stop();
}

To Show Or Not To Show The Color Of One MC.
I have one MC that he has an gray color, when I compel it, it is gray, everything is fine so far.

I had to create one param in the HTML pra to be able to change at any time of the MC color ex:"meuFlash.swf?&cf1=ff3300>...", any time that I change this MC color , my MC change too.

I create this.
code: new Color (fundo_mc.fundos_mc).setRGB (parseInt (cf1, 16));

My problem is the following one, when I speak in the HTML that I do not want to use this color "ff3300", I only want to use "meuFlash.swf?...", mine MC are all black, it are not of the gray color that I already had left, I do not know because it is all black.

somebody can help me

Sorry About my English

To Show Or Not To Show The Color Of One MC.
I have one MC that he has an gray color, when I compel it, it is gray, everything is fine so far.

I had to create one param in the HTML pra to be able to change at any time of the MC color ex:"meuFlash.swf?&cf1=ff3300>...", any time that I change this MC color , my MC change too.

I create this.

ActionScript Code:
new Color (fundo_mc.fundos_mc).setRGB (parseInt (cf1, 16));

My problem is the following one, when I speak in the HTML that I do not want to use this color "ff3300", I only want to use "meuFlash.swf?...", mine MC are all black, it are not of the gray color that I already had left, I do not know because it is all black.

somebody can help me

Sorry About my English

To Show Or Not To Show The Color Of One MC.
I have one MC that he has an gray color, when I compel it, it is gray, everything is fine so far.

I had to create one param in the HTML pra to be able to change at any time of the MC color ex:"meuFlash.swf?&cf1=ff3300>...", any time that I change this MC color , my MC change too.

I create this.

ActionScript Code:
new Color (fundo_mc.fundos_mc).setRGB (parseInt (cf1, 16));


My problem is the following one, when I speak in the HTML that I do not want to use this color "ff3300", I only want to use "meuFlash.swf?...", mine MC are all black, it are not of the gray color that I already had left, I do not know because it is all black.

somebody can help me

Sorry About my English

Best Way To Show Slide Show
Hello,
I have created a slide show in After Effects that I would like to put on a website.It was converted to an .swf that was placed on the page using Dreamweaver. The .swf is about 6000kb. What I would like to know is if there is a way to display this slide show using a much smaller file size? Is it possible to use an .flv and can an .flv be looped? If there is a book that explains how to do this I would be happy to purchase it.
Thank you,
Bosco99

To Show Or Not To Show The Color Of One MC.
I have one MC that he has an gray color, when I compel it, it is gray, everything is fine so far.

I had to create one param in the HTML pra to be able to change at any time of the MC color ex:"meuFlash.swf?&cf1=ff3300>...", any time that I change this MC color , my MC change too.

I create this.

ActionScript Code:
new Color (fundo_mc.fundos_mc).setRGB (parseInt (cf1, 16));


My problem is the following one, when I speak in the HTML that I do not want to use this color "ff3300", I only want to use "meuFlash.swf?...", mine MC are all black, it are not of the gray color that I already had left, I do not know because it is all black.

somebody can help me

Sorry About my English

PHP News
How do i set up a PHP news service, it says i need to use a line of PHP to display the news, any way to do this in Flash MX?

News Php
Is it anyone who knows a good toutorial or something to type in text direct in flash to a textdokument thru flash with php ?

/Fredrik

News
hallo. I make a homepage for a rock band and they want to write their "news" section by themself. so they can for example enter some password when they are online and enter some text which became "news". should I have a text file on my server and work with it by PHP....or?

News Box
Hi There!

I would like to make a news box on my site. I want it to load vairables from a text file in the same directory called news.txt. However this is not it. I want the news txt to scroll slowly within a masked window. I am really stuck on what to do here. Can anyone help?

If anyone can give me any pointers on how to use loadVairables() and the other stuff I will need to do this i would be really grateful!

Thanks

MSN News Box
Hello,

Does anyone know how MSN does there news box at http://www.msn.com/?

I would like to do the same with my site.

Need With This XML News
hello everyone here, thanks for taking a look at this. I'm having problem trying to get the launch button to work, it's just i can't seem to get the getUrl to work. got the info off http://www.onebyonedesign.com/flash/newsScroller/
so can some one please help me out Please.
AS
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
//Edit these variables only!
//There are some lines further below (some math) you might need to play with!!!
var transitionSpeed:Number = 1.5;
//speed to transition to new article info
var lgItem_height:Number = 100;
//Height of large news item-box
var smItem_height:Number = 18;
//Height of small news item-box
var lgNewsEase:Function = Back.easeOut;
//What ease method do you want to apply to large news item
//////////////////////////////////////////////////////////////////////
//Do not edit below this line!!!!!!!
//////////////////////////////////////////////////////////////////////
var linkItems:Array = new Array();
var curItem:Number = 0;
var maxItems:Number = 0;
var smItems_mc:MovieClip = newsArea_mc.smHolder_mc;
var lgItems_mc:MovieClip = newsArea_mc.lgHolder_mc;
var newsXml:XML = new XML();
newsXml.ignoreWhite = true;
newsXml.onLoad = function(good) {
if (good) {
var myNews:Array = this.firstChild.childNodes;
var len:Number = myNews.length;
for (var i = 0; i<len; i++) {
var ni_l:MovieClip = lgItems_mc.attachMovie("newsItem_lg", "ni_l"+i, lgItems_mc.getNextHighestDepth(), {_y:i*100});
var ni_s:MovieClip = smItems_mc.attachMovie("newsItem_sm", "ni_s"+i, smItems_mc.getNextHighestDepth(), {_y:(lgItems_mc._y)+i*18});
ni_l.id = ni_s.id=i;
maxItems = i;
// fill the text fields
ni_l.title.html = ni_s.title.html=ni_l.text.html=true;
ni_l.title.htmlText = ni_s.title.htmlText=myNews[i].childNodes[0].firstChild.nodeValue;
ni_l.text.htmlText = myNews[i].childNodes[1].firstChild.nodeValue;
linkItems.url = myNews[i].childNodes[2].firstChild.nodeValue;
}

handleSmallItems();
} else {
trace("Couldn't load XML file: menu.xml");
}
};

newsXml.load("vars/news.xml");
newsArea_mc.go_btn.onRollOver = function() {
var tip:MovieClip = this._parent.attachMovie("tip", "t", 9999, {_x:this._parent._xmouse,_y:this._parent._ymouse});
tip.onMouseMove = function(){
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
}
}
newsArea_mc.go_btn.onRollOut = newsArea_mc.go_btn.onDragOut = function() {
this._parent.tabChildren.removeMovieClip();
}
newsArea_mc.go_btn.onRelease = function(){
getURL(linkItems[newsXml].url, "_parent")[/color]
}
btnDown.onRelease = function() {
if (curItem+1>maxItems) {
return;
}
//Don't continue if AT max!
curItem++;
handleLargeItems();
handleSmallItems();
};
btnUp.onRelease = function() {
if (curItem-1<0) {
return;
}
//Don't continue if AT min!
curItem--;
handleLargeItems();
handleSmallItems();
};
//Move the large menu'd items appropriately
function handleLargeItems() {
for (i=0; i<=maxItems; i++) {
which = lgItems_mc["ni_l"+i];
new Tween(which, "_y", lgNewsEase, which._y, (which.id-curItem)*lgItem_height, transitionSpeed, true);
}
}
//Move the small menu'd items appropriately
function handleSmallItems() {
//Move all BEFORE curItem
for (i=0; i<curItem; i++) {
which = smItems_mc["ni_s"+i];
//Check this math for your configuration
var topOfNewsArea:Number = (lgItems_mc._y-15)+((which.id-curItem)*smItem_height);
new Tween(which, "_y", lgNewsEase, which._y, topOfNewsArea, transitionSpeed, true);
}
//Move curItem
which = smItems_mc["ni_s"+curItem];
new Tween(which, "_y", lgNewsEase, which._y, lgItems_mc._y, transitionSpeed, true);
//Move all AFTER curItem
for (i=curItem+1; i<=maxItems; i++) {
//Check this math for your configuration
var bottomOfNewsArea:Number = (lgItems_mc._y+lgItem_height-10)+((which.id-curItem)*smItem_height);
which = smItems_mc["ni_s"+i];
new Tween(which, "_y", lgNewsEase, which._y, bottomOfNewsArea, transitionSpeed, true);
}
}

News Box Help
Hi, my name's Matt and I am currently building a website. I've always wanted to and now I'm finally going to devote to it. I want to have a news box on my site that displays a picture along with a quick description that when clicked brings the reader to the url. If you still have no idea what I mean, a few examples are 1up.com and IGN.com, I wan't a large window in the middle of the page like theres that displays the big news. If anyone knows of a good tutorial or could possibly lend a helping hand, I'd really appreciate it. Thanks again and I hope someone can help.

News
I need help with a new updater that i want to use for my site. Is there a way to have a txt file that would show up on flash and each time u update it the last one moves down according to how big the next update is? Update meaning news update so all writen content.

Thanks
~GLN

News/rss
Hi

For the sake of doing it I using the news ticker example to create a flash sig for my blog of highlighted posts.

The question is there anyway of creating an automatic xml updater? So that all I would have to do is place some sort of "highlighter" tag in a post, then the xml file would be updated, thus a new link appear in the news ticker?

I guess if I some how had rss for a tag, that then the xml was read into the flash file.

One issue is that the rss feeds seem to age, ie old stuff disappears, any ideas on how to counter tha?

any views welcome

Copyright © 2005-08 www.BigResource.com, All rights reserved