Chaotic Horde

Flash Applications and Games Development

Today,  

Hi, I´m trying to do some random messages in the Kirupa XML news ticker, but it´s not working, someone can give some hand.

I put xmlData.load("noticiasFC.xml?"+Math.random()); but is not working.

Code:


function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
caption = [];
url = [];
total = xmlNode.childNodes.length;
for (i=0; i
caption[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
url[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}
first_item();

} else {

content = "file not loaded!";

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("noticiasFC.xml?"+Math.random());
//
function first_item() {

delay = 1000;
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;

}

};

}


Sorry about my English.


(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

Admin wrote: I have two mobile phones. One is purely for personal calls and so that number is only known to my family and closest friends. The other is purely for business calls, the number is printed on my business. A couple of times last week I received what are known as silent calls: telephone rings, you answer, nobody speaks and the line drops after a brief whirring and clicking. It used to be the case that most silent calls could be put down to embarrassed types who had mis-dialled. These days they are much more likely to be a precursor to spam.That business cellphone of mine is only switched on…
(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

Admin wrote: 

Can a rollover go to a different frame number…


(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

Admin wrote: As a programmer who until very quite recently chose C#.NET as his main language, WPF was thrust upon me like an anvil in your favorite 90s cartoon. There was no avoiding it…And for that, I’m glad — mostly.The Windows Presentation Foundation is a UI subsystem of the Microsoft .NET 3.0, (and 3.5 as of two days before this post). Using it, an application’s user interface may designed completely in a special markup language called XAML.For me, XAML was certainly comparable to HTML (a bonus since I have some experience with HTML and CSS, being an interim web developer at my workplace)….
(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

Today,  

I’m have a flash file which loads an xml file sub.domain.com/data.xml. It loads fine when the swf is loaded from sub.domain.com but it does not load from www.sub.domain.com.

It’s all the same directory on the webserver. I tried using crossdomain.xml and allowed access from *.sub.domain.com. Doesn’t work.

Any idea what would work? besides using php to determine the current domain (www or not) and load in the path via flashvars.


(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

Admin wrote: The security experts at McAfee’s Avert labs have been consulting the Tarot card, rubbing their crystal balls and generally predicting what levels of IT doom and gloom we can expect to be experiencing during the course of 2008. Unsurprisingly, they expect to see an increase in web exploits and those threats targetting Windows Vista, while adware will decrease as it continues its retreat from the radar of most IT systems. “Threats are increasingly moving to the Web and migrating to newer technologies such as VoIP and instant messaging,” said Jeff Green, senior vice president of McAfee Avert…
(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

Admin wrote: 

Hello guys!


I’m having troube with magnetics and stuff…
I need to make the mouse grabs the text like a magnet, and then when all the letters are with the mouse, I need to move the mouse fast and then the text will go back to its inicial position…
something like this:
http://www.a-to-s.co.uk
then, click in "r" (recyclable)

somebody?
thanks!


(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

Today,  All is not well for Apple, in a week when it should be flag waving the release of Mac OS X 10.5 ‘Leopard’ the firm finds itself, and its users, under attack instead. The culprit being a new Trojan which, once installed, changes the Mac’s domain name system server. This kind of DNSChanger Trojan is nearly always criminally motivated, and that would certainly seem to be so in this case, which of course means that the people behind it calculated the potential profit was valuable enough to develop the malware.That has to be a worry for Mac users.The OSX.RSPlug.A Trojan is distributed in a…
(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

Admin wrote: 

Hi Guys!
I’m ripping my hair out over this one, so if anyone could shout some suggestions my wy I’d be forever in your debt!
Basically I’ve been building a web based order form and my client want the ability to add items (as many as you want) and for them to be totalled up.
I’ve used Kirupas Scrollpane with Dynamic Mc’s tutorial to add my products, but I can’t seem to add them up!
Each product adds up it’s subtotal in the dynamically attached Mc and outputs the variable ’subtotal’
In my root I have this function to call the subtotals, but I can’t seem to get it to add up each of them to output a total…
Any suggestions ?

Here’s my add up function

Code:

valued_btn.onRelease = function() {
if (i != 0) {
i++;
var total:Number = scrollPane.spContentHolder["form"+i].tag.subtotal;
trace(total);
}
};


Any help would be amazing :)

Liam


(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

Admin wrote: For anyone outside the UK, news about the BBC iPlayer is hardly going to be earth shattering I agree. Indeed, for most people inside the UK and who are not part of the Beta trial there is no access to the BBC TV content via streaming video across an IP connection either. But there will be at Christmas when Auntie Beeb go public and launch their big new Internet TV scheme. Unfortunately, until today it looked like only Windows users were going to be able to play, but the BBC has now announced a deal with Adobe which will add Flash video streaming to the iPlayer service and let Linux users get…
(Link)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • Furl
  • StumbleUpon

Posted in Flash Application and Games Development | No Comments »

« Previous Entries