Dynamic sliders numero 2

Title: Dynamic Sliders Numero 2

After working with the previous version of the sliders -se previous post-. I had the opportunity to “upgrade” the sliders since there was a slight chance that the sliders had to react to only one button rather than two as originally planned. Needless to say it wasn’t required to apply this update but it came out nice. Once again there was no need to update anything in the class but just 2 extra lines of code.

[kml_flashembed movie=”/labs/swf/slider2.swf” height=”250″ width=”300″ /]

Dynamic Sliders

So I was working on a project where we needed some sliders, it was basically the same slider but in different sizes and positions. So today I was sitting there just wondering how I could make this more dynamic, and just put a small class together and created a small sample. Updating the sliders the way they were originally created took a long time but allowing the sliders take the parameters dynamically it took seconds to update.

Here is the sample and feel free to play with it 🙂

[kml_flashembed movie=”/labs/swf/slider.swf” height=”250″ width=”300″ /]

Buggy Buttons converted to MovieClips in the Library

So I was running in to the following problem:

**Warning** The linkage identifier ‘RewindBtn’ was already assigned to the symbol ‘FLVPlayer_assets/Buttons/Rewind’, and cannot be assigned to the symbol ‘FLVPlayer_assets/Buttons/Rewind’, since linkage identifiers must be unique.

But in reallity I only had 1 button called Rewind with the Link ID of RewindBtn and nothing else. I even created a blank FLA and pasted the simbol by itself in the blank FLA but I still were getting the same warning.

Well after doing a search online and trinkering with flash I figured out that originally I had created the Symbol as button and then transformed the Button to a MovieClip within the Library but never changed the  Button to a MovieClip within the Properties panel in Flash.

Go figure! the warning has gone away.

GoDaddy and MySQL access

If you are a developer and you do some sort of backend work there is a chance one of your clients might ask you to install an application in GoDaddy servers.

So if you are trying to connect to a dabase within your application what GoDaddy recommends is to use mysql.secureserver.net as your hostname. Maybe this could have worked while back but that information is not true for all servers.

If you are having problems all you have to do is login to your GoDaddy control panel and look what server has GoDaddy assigned for you, at least that is how it worked out for me.

Loading a RSS feed into Flash

[as]// create a new XML object
var sports:XML = new XML();

// set the ignoreWhite property to true (default value is false)
sports.ignoreWhite = true;

// After loading is complete, trace the XML object
sports.onLoad = function(success) {
trace(sports);
};

// load the XML into the sports object
sports.load(“http://rss.news.yahoo.com/rss/sports”);[/as]

Multiple MovieClips only One Script Advanced (Flash MX)

Tutorial details:
Written by: Helmut Granda , MX

Time:
15 minutes
Difficulty Level:
Intermediate

Requirements:
Flash MX, READ THIS TREAD
Topics Covered:
How to avoid writing code inside
every single MovieClip and load dynamic content.

Assumed knowledge:
Variables, Functions, MovieClips,
Buttons

In our previews tutorial
we learned how we can place our code in one place and assign actions
to severan Movie Clips at once rather than one by one.

and here it is the code to do that:

Continue reading Multiple MovieClips only One Script Advanced (Flash MX)

Multiple MovieClips only One Script (Flash MX)

Tutorial details:
Written by: Helmut Granda , Flash MX

Time:
15 minutes

Difficulty Level:
Intermediate

Requirements:
Flash MX

Topics Covered:
How to avoid writing code inside every single MovieClip.

Assumed knowledge:
Variables, Functions, MovieClips,
Buttons

S J Mangold Asked at flashnewbie mailing list the following question:

I could use some help with the next step in my programming education.

I have a set of buttons that typically are enabled/disabled at the same
time. Currently, I write code for each button. There’s got to be a way that
I can handle this more simply but don’t have a clue as to what it would be.

Any help would be greatly appreciated.

Thanks!

Sue

There are many ways of solving this problem, you can do it with a function, using the call command or creating a prototype.

We will cover the prototype solution.

Continue reading Multiple MovieClips only One Script (Flash MX)