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




XML Resize Thumbs (hope I'm Not Beating A Dead Horse)



Hello everyone! I've been all through these 60 some pages on this subject and didn't find what totally what I was looking for... of course eye strain might be a problem so if there is a thread to something I ask please tell me. I apologize in advance if I do. This is my first ever thread also.Here is a zip of all my files so far. http://marazita.com/funstuff/gallery.zip First here is the link to Scotty's thumb resize that I've put into my .fla. V3_with_thumbs zip Mine doesn't work because what I'm trying to do is make the thumbs replace the mc's that I've added (each with an instance name thumb1, thumb2, etc.). As an artist I like to group images that belong in a group. Sometimes a group can have 3 sometimes 4, etc.. This is what's been wrong with what I've found in the threads so far. They've just been lumped into a certain amount to columns and rows. If you look at my files you'll understand better. I was also hoping that the thumbs would load like this zipped file http://marazita.com/funstuff/gallery_preloadthumbs.zip (which is another nice dynamic loaded one that you don't have control over either). Any help will be greatly appreciated and at the end I'll post my finished file to share with everyone since I've gained so much from this site I would like to also give back. This will help a lot of artists out there I'm sure. Thanks to all that help in advance. I have other questions... but lets do baby steps at first.-Justin-www.marazita.com



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 04-13-2006, 09:45 AM


View Complete Forum Thread with Replies

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

I Know Im Beating A Dead Horse.....
But someone has to have an idea

Here we go

Ok, I have a flash movie, this flash movie is a map with 52 movie clips, they all have an instance name of "section" with a number after it IE: section0 section1 and so on. Ok, In the main coding of my movie I have XML that passes thru ASP that changes the color of the movie clips depending on the variable that is in my database. I use SQL. Here is the coding in my movie

"



/* function sectorArray(){
var msectors, varColor, sid, ftxt
for(i=0;i<=rcrXML.childNodes.length;i++){
if(this.childNodes[i].nodeValue == null && this.childNodes[i].nodeName =="sectors"){
msectors=this.childNodes[i];
}
}
var msector
for (q=0;q<=msectors.childNodes.length;q++){
if(msectors.childNodes[q].nodeName=="sector"){
msector=msectors.childNodes[q];
sid=msector.attributes["id"];
for(j=0;j<=msector.childNodes.length;j++){
if(msector.childNodes[j].nodeName=="color"){
varColor=msector.childNodes[j].firstChild.nodeValue;}


}

changecolors(varColor,sid)


}
}

}
function changecolors(varColor,sid){
ftxt=new Color("section"+sid)
ftxt.setRGB("0x"+varColor)
}
rcrXML = new XML();
rcrXML.ignoreWhite = true;
rcrXML.onLoad = sectorArray;
rcrXML.load("zRcrXml.asp?mdsid=2")
stop ();
||||||

That is the code INSIDE the movie. My actual xml/asp file has this

"
<%option explicit
dim cn, rs, sql
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
Response.Buffer = true
sql="SELECT * FROM vw_RCR_Mapdata WHERE mdsid = " & request.QueryString("mdsid") & "; "
'Response.Write sql
'Response.End
cn.Open "provider = SQLOLEDB.1;Initial Catalog = OGToolsDb; Data source = Webapps; user id=fsfxsb07; password = "
rs.Open sql,cn
%><?xml version="1.0" encoding="iso-8859-1"?>
<sectors>

<%
do until rs.EOF%>
<sector id="<%=rs("secid")%>">
<rcr>"<%=rs("Rcr_Value")%>"</rcr>
<secname>"<%=rs("Name")%>"</secname>

<%'Check for runway surface conditions for this secid
'Response.Write rs("secid") & ", "
'Response.Write rs("Rcr_Value") & ", "
'Response.Write rs("Takeoff_Landing") & ", "
'Response.Write rs("WaiverThreshold") & ", "
'Response.Write rs("TaxiThreshold") & ", "


if rs("secid") = 0 or rs("secid") = 5 then
'Comparison between takeoff threshold for the runway and rcr

if rs("Rcr_Value") < rs("Takeoff_Landingcaution") then
if rs("Rcr_Value") >= rs("Takeoff_LandingRed") then
'Assign yellow as the color
%><color>ffff00</color><%
else
'Assign red as the color
%><color>ff0000</color><%
end if
else
'Assign green as the color
%><color>00ff00</color><%
end if
else
'Comparison between taxi threshold for the rest of the airfield
if rs("Rcr_Value") < rs("Taxicaution") then
if rs("Rcr_Value") >= rs("TaxiRed") then
'Assign yellow as the color
%><color>ffff00</color><%
else
'Assign red as the color
%><color>ff0000</color><%
end if
else
'Assign green as the color
%><color>00ff00</color><%
end if
end if
rs.Movenext
%></sector><%
loop
%></sectors><%
rs.Close
cn.Close
set cn = nothing
set rs = nothing
*/
||||||||

My question being, there has to be some way possible, to make a code that allows me to mouseover any of the movie clips, and they display the variable in the database that corresponds to their individual section number


Or am I just not going to get it cuz its not possible????

Help With Loading External Movie Clip(beating A Dead Horse)
Hello folks, I seem to have run into some problem with a project of mine. I have a Main movie which loads multiple external movies. I am using an empty movie clip called contents to load them into.

one of my external movies has a button in it that launches a centered pop up window(kirupa tutorial). This external movie named site works perfectly by itself, but when loaded into the main movie, the button does not work. I'm using:

on (release) {
_root.contents.loadMovie("site.swf");
}

any input would be greatly appreciated.

Help With Loading External Movie Clip(beating A Dead Horse)
Hello folks, I seem to have run into some problem with a project of mine. I have a Main movie which loads multiple external movies. I am using an empty movie clip called contents to load them into.

one of my external movies has a button in it that launches a centered pop up window(kirupa tutorial). This external movie named site works perfectly by itself, but when loaded into the main movie, the button does not work. I'm using:

on (release) {
_root.contents.loadMovie("site.swf");
}

any input would be greatly appreciated.

Creating Text File - Or - "Beating A Dead Horse"
Hey Folks,

Please forgive me for revisiting this often-asked question, but...

I just installed Flash MX 2004, and was wondering if there was
any new functionality that allows the developer to create and
write to an external text file.

From what I've read, this is possible using PHP, ASP, etc... Though,
that requires access ta a PHP or ASP web server - something I don't
want to set up at this time. So, I guess I'm asking if there is any
way to create/write a text file without the help of PHP, ASP, or
a web server?

I'm inserting the movie in VB and using FSCommand to communicate
between the two - Flash input, VB create the file. This works, but
is not very elegant, not efficient, can't run it in IE, etc...

Can you do it using XML? Any other suggestions?

Thanks A Lot,

[Dead Horse Ver 2.0] I Need Your Help Once More Scotty [Or Anyone]
This is for Scotty or anyone who can help. I've had this photogallery done for quite some time now. You can see it live here: www.marazita.com/art.html

I'm just starting to feel bad for people that have dial-up because they have to wait for every image to load to see the last ones.

I would just like to add another preloader for the main image in the center. The thumbs can still keep the semi-transparent loader to show the thumbs loaded but I would like a dynamic loader for the main image. I have all the files attached in the zip for one gallery including the xml file, thumbs, images, and pre-loader I would like to use. I just don't know how to change the actionscript in .fla... I've been pretty rusty lately since I've been doing mostly print work instead of web work.

One last thing is there a way that if the image has already been loaded before that the loader won't show up again?

Thanks a million,
-Justin-

*EDIT since the file size is larger then you can attach here you can upload it from my server here:
http://www.marazita.com/web/all_gallery.zip

XML Photo Gallery With Thumbs And Dynamic Resize Issue
I'm looking for some advice on a incorporating thumbs to my photo gallery, and am having some problems making them work. My photos need to be resized dynamically as they are different sizes and this is working beautifully but I can't for all that's holy get the thumbs to work as they do so well in the "adding thumbnails" tutorial. Would love any assistance.

Thanks so much...

here's the code...maybe this may help piece together the problem.

FLASH ::

title_txt.htmlText = "<font color="#000000">Title: </font><font color="#FFFFFF">Splash Screen</font>";
/* Debug Variables */
//debug = 1; //Comment this "debug" line to stop the movie from 'tracing' or 'outputting'
holderMC._alpha = 0;
var picArray = new Array();
var tempArray = new Array();
var thumbNailArray = new Array();
var SPACING = 10;
var DEPTH = 0;
var xmlFILE = "gallery.xml";

function printer(str)
{
// If debug flag is set, output different operation in the movie
debug ? trace(str) : null;
}

MovieClip.prototype.loadPic = function(pic)
{
picnum_txt.text = (pic+1) + "/" + NUMOFPICS; // Add one to the 'pic' var since an array starts at 0
printer("STATUS: Loading Picture " + pic);
holderMC._alpha = 0;
cur = pic;
if (pathToPICS.length > 1)
{
this.loadMovie(pathToPICS+picArray[pic]);
}
else
{
this.loadMovie(picArray[pic]);
}
this._parent.onEnterFrame = function()
{
var t = holderMC.getBytesTotal(), l = holderMC.getBytesLoaded();
if (t != 0 && Math.round(l/t) == 1 && holderMC._width>0)
{
var w = holderMC._width+SPACING, h = holderMC._height+SPACING;
border.resizePic(w, h, pic);
delete this._parent.onEnterFrame;
}
};
};
MovieClip.prototype.resizePic = function(w, h, pic)
{
var speed = 3;
holderMC._alpha = 0;
this.onEnterFrame = function()
{
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
title_txt.htmlText = "<font color="#000000"><b>Currently Viewing:</b></font>&nbsp;" + "<font color="#FFFFFF">" + tempArray[pic] + "</font>";
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1)
{
this._width = w;
this._height = h;
holderMC._x = this._x-this._width/2+SPACING/2;
holderMC._y = this._y-this._height/2+SPACING/2;
holderMC._alpha += 5;
if (holderMC._alpha>90)
{
holderMC._alpha = 100;
delete this.onEnterFrame;
}
}
};
};

var gallery_xml = new XML();
gallery_xml.ignoreWhite = true;
gallery_xml.onLoad = function(success)
{
if (success)
{
printer("RESULT: XML File Loaded!");
var gallery = this.firstChild;
pathToPICS = gallery.attributes.picturePath;
NUMOFPICS = gallery.childNodes.length;
printer("Number of Pics: '" + NUMOFPICS + "'");
printer("Path to Pics: '" + pathToPICS + "'");
for (var i = 0; i<NUMOFPICS; i++)
{
tempArray.push(gallery.childNodes[i].attributes.title);
picArray.push(gallery.childNodes[i].attributes.source);
thumbNailArray.push(gallery.childNodes[i].attributes.thumbNail);
thumbnails_fn(i);
}
//loading first picture
holderMC.loadPic(0);

// Button Code
prev.onRelease = function()
{
if (cur == 0)
{
/* Uncomment this line if you want the pictures to start over after it reaches the first image in the array */
//holderMC.loadPic(picArray.length-1);
}
else
{
holderMC.loadPic(cur-1);
}
};
next.onRelease = function()
{
if (cur == picArray.length-1)
{
/* Uncomment this line if you want the pictures to start over after it reaches the last image in the array */
//holderMC.loadPic(0);
}
else
{
holderMC.loadPic(cur+1);
}
};
}
else
{
printer("ERROR: XML File NOT Loaded '" + xmlFILE +" '");
}
};
gallery_xml.load(xmlFILE); // Load the xml file
printer("XML File: " + xmlFILE);

function thumbNailScroller() {

// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {

if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._heig ht)) {

if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {

thumbnail_mc._x -= scroll_speed;

} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {

thumbnail_mc._x += scroll_speed;

}

} else {

delete tscroller.onEnterFrame;

}

};

}

function thumbnails_fn(k) {

thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {

target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {

p = this.pictureValue-1;
nextImage();

};
target_mc.onRollOver = function() {

this._alpha = 50;
thumbNailScroller();

};
target_mc.onRollOut = function() {

this._alpha = 100;

};

};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnail[k], "thumbnail_mc.t"+k);

}



XML ::

<?xml version="1.0" encoding="UTF-8"?>
<gallery picturePath="exhibitdesign/" >
<image title="EXHIBIT DESIGN Shaw Center for the Arts Baton Rouge, LA" source="001_shaw_center002.jpg" thumbnail="th0.jpg"/>
<image title="EXHIBIT DESIGN Shaw Center for the Arts Baton Rouge, LA" source="002_shaw_center001.jpg"/>
<image title="EXHIBIT DESIGN Shaw Center for the Arts Baton Rouge, LA" source="003_shaw_center005.jpg"/>
<image title="EXHIBIT DESIGN Shaw Center for the Arts Baton Rouge, LA" source="004_shaw_center019.jpg"/>
<image title="EXHIBIT DESIGN Shaw Center for the Arts Baton Rouge, LA" source="005_shaw_center021.jpg"/>
<image title="EXHIBIT DESIGN Shaw Center for the Arts Baton Rouge, LA" source="006_shaw_center004.jpg"/>
<image title="EXHIBIT DESIGN Shaw Center for the Arts Baton Rouge, LA" source="007_shaw_center010.jpg"/>
</gallery>

<!--
Exif Info
-->

Thanks in advance.

V3 With Thumbs Scrolled Photo Gallery With 80x80 Not 40x40 Thumbs Problem
Hi I've been testing out the V3 with thumbs scrolled .fla from this topic
http://www.kirupa.com/forum/showthre...rolling+thumbs
well basically i've been trying to modify it to accept images for the thumbs as 80x80 not 40x40 no matter how much modding i try to do (and i'm crap at actionscript verymuch a newbie) i can only stretch all the 40x40 images and the 80x80 images are oversized for the buttons?

should i be testing all the images as 80x80 or is there something i'm missing (all the images will be 80x80 in the end)

Cheers guys for any suggestions

XML Photo Gallery W/Thumbs - Code For Loading SWFs Instead Of JPGs For Thumbs?
Hi, all,

I'm using Flash CS3 and have built a slide show using the excellent XML Photo Gallery tutorial, as well as adding sound thanks to another post in this forum. It's all working like a charm. The only bad thing is: I want to place .swfs files where the dynamic text is right now, and can't figure out how to do it.

What I really want is one large image/JPG on each slide, and below that, instead of the dynamic text shown in the tutorial example, a smaller .swf file should appear. (For this project, the text itself needs to be animated, and I can't do that with the <caption>/dynamic text option; I need to insert an SWF.) I'd really like to do this using XML since that's working so nicely otherwise.

Can anyone provide me with the actionscript code to use in the context of this photo gallery? I'm not advanced enough yet to know where or how to place code that doesn't fall into this gallery/AS format.

(I'm not being lazy: I have looked all over these forums for hours, read through about 60 pages of tutorials, went through the whole XML Photo Gallery with Thumbnails hoping I could somehow alter that to meet this project's needs... no dice. I had gotten far enough in that tutorial to be able to insert an empty movie clip where I want it, but could only figure out how to fill it with JPGs from the XML, not SWFs... and in any case the images did not then work correctly while advancing the slides.)

Here is my current Actionscripit code:

************************************************** *****

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
audio = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
audio[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("infant_images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.SPACE) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = false;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
sound = new Sound();
sound.loadSound(audio[p],true)
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
sound = new Sound();
sound.loadSound(audio[p],true);
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
sound = new Sound();
sound.loadSound(audio[0],true)
}
}
function loadSound() {
if (loaded == filesize) {
createEmptyMovieClip("sound_mc",2);
sound_mc.sound_obj = new Sound();
sound_mc.sound_obj.loadSound( sound[p], true);
sound_mc.sound_obj.play();
}
}

************************************************** *****

(It's not showing the preloader and is missing the counter AS on purpose; I don't need those items for this project...)

Thank you for any help you can give!!

Beating The Login
I have a flash movie that starts out with a login. It's purpose is just to give the user a username. I want them to be able to use spaces, but I don't want them to just hit the spacebar a bunch of times. How do I make sure they use some combination of letters and numbers and not just a bunch of spaces and making it look like there is no name?

I restricted what they can input by using:

myText_txt.restrict = "A-Z a-z 0-9";

And, I can use the code below, but it won't help if they hit the spacebar.

if (myText_txt != "") {
//login;
}

Any suggestions?

A Horse Of A Different Color...
Okay, say I have three different movie clips, each one a different color (Red, Green Blue..) Now, when I click the corresponding button, I want to have a quick transition from the current color to the new ...

However, I suppose this is my first time delving into programmatic color, and I'm wondering how to go about changing my background's Hex each time I loop thru the frame, to make that color change nicely...

Any sugegstions/examples?

Ok, I've Been Beating Around The Bush But I Can't Figure It Out
I've been trying to get ideas to help me with what I'm trying to do, and everyone HAS helped me a lot... but I still can't figure it out! What I'm trying to do is have a ball always moving right; when it reaches a certain point... say frame 15 or getTimer()+whatever, then it will start over (moving right) but the rotation will be random and it will resume from the position that the last frame was at. So it's constantly moving, after a while it will turn a random direction and go that way, after a while it will turn... you get it. I've tried everything! OY!! If you want me to say what I've tried so that you have a starting point or so that you can see what I was doing wrong, please say so. Thanks

Delay Action Is Beating Me
I have a movie clip that comes to meet the mouse when the mouse hovers over the botom portion of the stage. The clip is scripted to move only along the x axis. When the mouse leaves that bottom area, The movie clip flies off the stage to the left or right, depending on which is closer.

What I want the movie clip to do is wait a few seconds before it flies off the stage when the mouse leaves the bottom area. That way if the mouse wanders from that area for a second or two, the movement of the movie clip won't be annoying. Here is my code:

onClipEvent (enterFrame) {
if (_root._xmouse<795 && _root._xmouse>05 && _root._ymouse>405 && _root._ymouse<445) {
var distance = _root._xmouse-this._x;
if (this._x != _root._xmouse) {
this._x += .15*distance;
}
} else if (this._x<401) {
var homing_distance = -120;
if (this._x != homing_distance) {
this._x += .15*homing_distance;
}
} else if (this._x>400) {
var homing_distance= 820;
if (this._x != homing_distance) {
this._x += .02*homing_distance;
}
}
}


I have been messing with gettimer, but I can only get the delay to work once. I think set interval might be the key. Please help, this is driving me nuts!

Thanks

Beating The Popup Blocker
I have an aspx form that I need to load from a button as a popup but the blocker catches it. We tried to load it with getURL(javascript:window.open()), but the popup blocker(IE and a google popup blocker) caught it. Is there a way to make something popup on a user driven event like this? The thing is is that we could do it with "_blank" just fine but we also need to limit the size of the window scallability menubar and all that other stuff you can do with window.open. What do you guys suggest?

Heart Beating Tween
How can I implement a tween simulting the heart beating.

var myTweenX:Tween=new Tween(myShiningLogo,"scaleX",Bounce.easeOut,1,0.6, 1,true);

var myTweenY:Tween=new Tween(myShiningLogo,"scaleY",Bounce.easeOut,1,0.6, 1,true);

this is almost what I want. But I would like the object to come back to initial dimensions. Should I use other 2 tweens ?

My Darn Horse Problem
I am making a little horserace game. This is first thing I have really done on my own, scripting-wise, even if it really isn't that much. The game is you click a button, horses start going across the screen randomly, when one gets there, it goes to his respective frame with winner on it. Here is my script.
if (_root.horse1_x>500){
gotoAndplay(4);
}
if (_root.horse2_x>500){
gotoandplay(5);
}
_x1=_root.horse1._x
_x2=_root.horse1._x
vel1=Math.random()*20
vel2=Math.random()*20
_root.horse1._x+=(vel1^2)
_root.horse2._x+=(vel2^2)

The horses just keep going, ignoring the "if" statement. Before I was getting an error saying I had a script that was causet the player to run slowly, but I guess I got rid of that somehow. But, all I want is the movie to go to a page when one of the horses goes past that certain point. But those damn horses just keep going. What's my problem??? Please help me, I have been thinking for what seems like forever.

Horse Speed FPS/Code
I have an animated horse galloooping along a roadway with a moving background.
The art and horse are travelling at 15fps. How does the code go to slow it down to a stop (both horse and background) ...over 60 frames.?

Im running CS3 Flash 9.
any help, direction,appreciated


Turock2

Horse Derby Game
Hello all,
Pardon my juvenile flash lingo.
I am developing a Horse Race game like something out of a fair/carnival. It is for our sales department at work to show their progress throughout the year. The problem is that I would like a non developer person to update the horses progress and stats. My background is mostly in flash 8, and I am thinking I might need to use xml or mysql.

So my question is, "Is there a way to update data and it be stored within your flash site/page through flash or do you have to use other avenue's?"

thanks

Beating The 16,000 Frame Barrier Without LoadMovie()
Heya folks.

I've been working ona personal Flash project for quite some time now. I was oblivious to the 16,000 frame limit until now. My movie is running at 30 fps and is between 10-12 minutes long, so as it turns out I'll be exceeding this limit by a fair amount. Cutting stuff out of my film or reducing the fps is not an option at this point in development, and this all need to be contained in one SWF. I really want to beat the barrier, and I have an idea, but I wanted to throw it out there to make sure it will work before I go through the trouble of doing it.

I'm assuming 16,000 frames is the limit for the main timeline, but the timelines of movie clips exist outside of this barrier. Could you realistically compile half the movie into an 8000 frame movie clip, put the other half of the movie into another 8000 frame movie clip, and then put these two movie clips on a 2-frame movie? The first movie clip would have actionscript that moved the main timeline to the second frame (and the second half of the movie) when it completed its 8000 frame run.

I've never tried this before. Would this work without defying any of the frame limits? If this idea is even theoretically sound but I'm missing something important, any advice is greatly appreciated. Thanks for your time.

NEED A KNIGHT PREFABLY ON A WHITE HORSE
ok, here goes..... I have been asked to make a sail boat follow the mouse in a subtle and slow manner (probably needs deceleration code type stuff?) If the mouse is to the right it moves right if you then move the mouse left it turns and follows left and so on.The movement would happen only along the x axis. My problem is where do you start? I have no idea how to make this happen and would appreciate some help. If someone can help could you explain the code in simple terms so that I understand whats going on?? Your help really would be appreciated as I am getting desperate........

Horse Racing - Drinking - Flash
Hey everyone,

I just finished one of my first flash games:


I started it the other day and put just a few hours in it thus far. I just want to get some people opinions of what they think about it, and how it could be better. I made it for my friends and I to play - just something we'll use from time to time when we get bored

Thanks,
Mike

Horse Race Game - Small Problem
winnerbox = "";
_root.startit.onEnterFrame = function () {
winner = new Array();
winner[1] = "ball1_mc";
winner[2] = "ball2_mc";
winner[3] = "ball3_mc";
winner[4] = "ball4_mc";
winner[5] = "ball5_mc";
winner[6] = "ball6_mc";
winner[7] = "ball7_mc";
winner[8] = "ball8_mc";
winner[9] = "ball9_mc";
winner[10] = "ball10_mc";
for(i = 1; i < 11; i++)
{
_root["ball"+i+"_mc"]._x += Math.round(Math.random()*25);

if(_root["ball"+i+"_mc"]._x > 499)
{
_root["ball"+i+"_mc"]._x = 499;
winnerbox = "Ball "+i+" wins!";
stop();
}

}
}

That is the code I am using. Winner box is a dynamic text box. The problem is that say ball 8 wins, it will say that in the text box, but it wont stop, the second place ball will go past 499 and then it will say that ball is the winner? Why is my stop(); not working ?

Horse Running Menu Popup Project
Hey i'm doing a project for school. I'm making a freelance company from scratch (logo, biz card, website, etc.) and for the site I have this idea of having a mouseOver event and a menu click event.

Basically I'm gonna have a horse silhouette (or simple one so it's not too intensive to animate.) The menu bar will be horizontal, so when you hover one, the horse will trample over to that menu link and sit there, and so on for the over links. Then when you click on a menu link, I want the horse to animate something like maybing bucking and kicking out a box that enlarges to full size from the menu bar or maybe having it rise up on it's back legs so it looks like it's forcing out a growing content box from the menu link with it's front legs. Do you get the idea? Small menu, horse kicks out the content?

Well anyways, I'm not really a novice to flash but my biggest problem is figuring out what's the best way to do something. Design good, implementation bad. If someone can point me to a tutorial that can show me the idea behind doing some type of mouseOver scripted animation, and another tutorial to show me how people make something come out of something else. (kind of like www.gskinner.com how something pops out of their menu links, but with the horse animating to look like it made it come out).. I would appreciate it. Anything that could help me figure out how to accomplish this, i'd be mucho grateful!

Beating My Head Against A Wall Over Mappings And External Data
Ok, here's what I need to do.

I have a set of options, such as eye color. There are a variety of choices.

The choices are based on a previous variable.

What I would like to do is have an external file contain these choices in a mapping, such as eyecolor = (["blue", "green"])

In flash, I'll have a dynamic text box to display the choices (one at a time), and a left and right arrow to cycle through the various possibilities.

What's driving me crazy is turning those externally defined mappings into something flash can use, probably an array. That way I can have the buttons control a function that cycles through the array's indexes.


Any suggestions are greatly appreciated.

Horse Racing Game: Determining Finish Positions
I am creating a virtual horse racing game in Flash MX.

The game loads up information about six random horses from a database (via ColdFusion), and each horse's chance of winning the race depends on a number of factors, such as the jockey, age, weather, location of the race, etc.

So anyway, I've gotten to the point where I'm using actionscript to determine which horse is going to finish in which position. I'm using a kind of lottery system to determine the winner, which is easy:

code:
//Generate a random number between 1 and 100
x = Math.ceil(Math.random()*100);

//If this random number is between 1 and 30...
if (x >= 1, x <= 30) {
//Then Horse1 is the winner
Horse1 = first;
}

else if (x >= 31, x <= 52) {
//Then Horse2 is the winner
Horse2 = first;
}

else if (x >= 53, x <= 70) {
//Then Horse3 is the winner
Horse3 = first;
}

else if (x >= 71, x <= 85) {
//Then Horse4 is the winner
Horse4 = first;
}

else if (x >= 86, x <= 95) {
//Then Horse5 is the winner
Horse5 = first;
}

else if (x >= 96, x <= 100) {
//Then Horse6 is the winner
Horse6 = first;
}



(The code above assumes that Horse1 is the most likely winner, based the race factors. Horse2 would then be the second best horse, etc.)

The part I'm having trouble with is determining which horse finishes second, third, fourth, fifth and sixth. Those positions need to be decided randomly as well. I know I could do it with a whole heap more if statements, but there has to be an easier way with more efficient code.

Not looking for somebody to write out the code for me or anything, just need a nudge in the right direction. Any suggestions are much appreciated.

Thanks.

Loading A .jpg Dynamic "I'm Beating My Head Here"
I've done this many times before and suddenly It won't work.

I'm loading a .jpg dynamically during runtime into a MC.

the clip is named "container"
the .jpg is in the same directory

here's the code I'm using..

container.loadMovie("logo.jpg");


The movie clip will disapear during runtime as if it was being replaced with the .jpg, but not image appears.....

any idea?

thanks,

I'm I Dead Or Not?
Hello all,
i've completed a website and it works quite well (though it seem's heavy despite my biggest swf is at 70Ko). The problem is that the site doesn't seem to work on macintosh. I've read this forum on mac topics but haven't found a clear explanation (
Why is there a problem for a mac user to view my site? Is it only a browser version issue or does my html page have to have specific codes?
Please help
thanks?

Dead End
i dont know how to program a project due in two days. I need some suggestions as to what kind of scripts I am looking for. The idea is:

Program a user interface for an espresso machine. I have attached the file in case anyone wants to view it

-when a button is pressed, the movie should retain the value of that actiion until another is pressed to alter it. there are multiple buttons and actions going on at the same time, and i need to retain the "action" of each one throughout the movie.

i have a feeling this could be done with multiple timelines? how do I connect timelines?

any help is appreciated. I am using Flash MX 2004

This Is Dead Serious
I have a flash movie that I've been working on for some time. All the code is correct, for the buttons, all the movies within the movie are in the right place, but for some reason, when I try to test the movie, none of the actionscripting works. It only shows the start up page, and goes no where else. Can someone please tell me what I'm doing wrong? Is there something simple that I left out, or what?

DRM Is Dead
Sony was the last to hold out, but DRM is now dead!

Check out:  http://wirelessmms.blogspot.com/

This affects the culture as well as the technology of both video and digital music.

I've got a project at work where half of the requirements are dedicated to DRM issues.  Looks like we will have to rethink this.

Beating Heart With Variable Heart Rate?
Okay everyone. Put your thinking caps on.

I need to create a beating heart. I need to be able to have control over the heart rate... and therefore, the speed at which the heart beats.

Any clever ideas?

Macromedia Dead?
Now i got your attention finally i need help with this.

I have a problem with making a form in flash.
When i submit the form i doesn't get a e-mail.
I don't know what i must fill in in the "loadVariablesNum".
i'm using a hotmail adress.

Dead In The Water
Ok, I'm exuasted. I have been trying to put this preloader in, but it never seems to show up. I have tried several different loaders and they all seem to do the same thing, dissapear! I enter the component or code in the first frame all by itself just like the tutorials say and nothing. It skips right past it. This time I have uploaded the .fla so if anybody had a spare minute to see what is wrong that would be great. I don't know what I am doing wrong. The clip itself is rather large for most webpages but we use it at work and we are on a T3 line.

If you look at the swf file and notice after you select [ENTER] it skips right past the standard loader and goes right to the clip.

>>index_flash.fla
>>index_flash.swf

Dead Center
How do i make my flash file sit in the dead center of the screen?

this seems realy simple... but i just dont know how to do it...

you can look at thefile @ LunaBlu.org

thank you... flashkit is awesome.

Im Sure This Is Dead Simple
Im no expert and no programmer but am bashing my way through actionscript. Im sure this can be done but I just cant get my head around the syntax.

I have the following MCs inside MCs.

_root.moviestrip.photo1.photobutton

I want to disable this last mc (photobutton) - .enabled=false - on rollover

BUT... I have around about 15 photos in this movie strip, therefore the path could also read

_root.moviestrip.photo2.photobutton
_root.moviestrip.photo3.photobutton

NOW I do have a variable called count going so Im assuming I should be able to do something like this:

_root.moviestrip.photo+"count".photobuttton

BUT I cant seem to fathom the syntax can anyone help me to string this together

Thanks

BTW using Flash MX

Dead And A Half
im currently making my website
in flash MX
and im having navigation problems
im made my buttons and all the different scenes
but the buttons wont go to the specified scene
only the next
this is the code im using
on (release) {
gotoAndPlay("3,1");
}
can someone help me
thnx
<2
-Nougat

[F8] PLEASE HELP I'm Dead On My Deadline
Hello,

I'm not a usual flash developer... but i was asked to attempt a project...

I am trying to create a magnifying rectangle that also is able to be resized...

I have seen one and the other in tutorials... but trying to combine two different lessons has my brain fried and near defeat...

I have to have this done for a client by tomorrow but have spent too much time running in circles...

I need some guidance!

Dead Simple
im new to coding flash and want what i should add to the below so i can have a movie clip trigger play and pause?

i think its simple, but has to be as3. any pointers, greatly appreciated. thanks


var s:Sound = new Sound(new URLRequest("http://www.kickassmastering.com/flash/snipper_edit.mp3"));
s.play(0, 1000);

How Do You Dead Center Something
I have a movie that sits of to the left. I would like to to know how to put the whole thing( the interface) dead center. Could somone expliane how to do this? Thank you

Dead Streams On FMS
I hoping this is something silly - I am streaming live stream (using FME) to a FMS 3.x server and once I stop the stream I see the unPublish on the server side code but I still see the streams continue to exist according to FMS console I even tried to force this by using following code in the upPublish event

s= stream.get(streamOBJ.name);
s.play(false);
delete s;
application.gc(); // over kill but still did not work

Is there a duration to these dead streams (in some config file?) or another way to stop/kill streams that have come into FMS and have unpublish (I don't understand why the unpublish streams are still there). The problem is I need to republish these same streams and I get an error (badname etc) because they still exist in FMS
Help!

Is AMFPHP Dead?
Amfphp seems dead for almost a year.
I've seen some movement on cvs but no news since 2003.

News anyone?

Yes, Flex Is DEAD.
Yes people, I know this is OFF topic, but since seems nobody is on Flex Forums to post replies I thought It should be the case to bring a bolder contribution through AS3 theme.

Recently I've posted this topic (http://www.gotoandlearnforum.com/viewtopic.php?f=33&t=18960) in Flex Forums, discussing the Flex parsing limits:

Everybody here might know the Flex 'real-time' parsing features, right? So I bring you a question on dealing with it.

Mine has just decided to stop parsing my codes. It is parsing only the classes I'm actually using inside my main Application (as) file.

How could I set Flex to parse EVERYTHING?

Tanks for any directions.

Flash Is Dead
Sorry for the subject title.
I have a question that is a little strange to some.
Microsoft released Silverlight and I'm not familiar with C# the leaguage used with Silverlight, so many developers say that in a few years flash will be dead and replaced with Silverlight.
I Apologize if this sounds stupid but it makes me think, what will happen with flash, is silverlight so good that will be the dead of flash?

Loadmovie Dead Dragging
Hi--I'll try to summarize: going to new scene and loading swf there, frame 1--it works, but the swf has a draggable item that won't drag, but does drag when viewed in the player. All animation & sound works, though.
Thank you in advance for any insight into this bewildering scenario. (I'm just learning, especially scripting)

Easy One For Brain Dead Boy...
ok, cant get a button to play another portion of its parent clip. anyone point me towards a good tutorial on paths.

the button call is ::
on (press) {
gotoAndPlay ("Scene 1", "home");
where "home" is the label in scene 1 (its parent clip)
and it wont pick it up
ive also tried

on (press) {
gotoAndPlay ("_root.Scene 1", "home");

what am i missing?

Brain Dead...mc Loader
Hey..Anyone with a brain bigger than mine. (Thats everyone)
Can someone send me a FLA file that has the ability to load a movie while still playing a "loading" MC. Everytime my FLA gets to the load movie command my "Loading" MC freezes. I have seen the tutorial here online and I am missing something. It would be better to see the actual file for me. THANK YOU!!!!!!!!

jbarbour30@hotmail.com

Why Is My Combobox Dead ? (mx2004)
Hiya people,

Im loading a movieA.swf into a movieClip in main.swf.
movieA.swf contains only a combobox (this is a simplified version of the problem).

Now the problem is that the combobox dies on me after being loaded into that movieClip in main.swf. It wont open anymore??,I have no idea why it does that.
If you select the combo in movieA.swf it work fine??
I hope some of you can tell me why.

i attached a version of the problem


thks

Dead Quick Question...
This will be really easy for most of you im sure:


I've got a few variables named like this:

Person1name
person2name
person3name

and

name1
name2
name3


How do i call each one using the same loop?

eg.

n=0
while(n < 6){

Person("n")name = "hi";

n=n+1
}


Thanks very much for this, its been driving me crazy!!!

cheers/

[F8] Dead Paus Script
OK I have a "pause" script, but it's only working on the main time line.

I am trying to get it to work on a time line in a nested mc. The mc stops, but doesn't resume play after alloted time. why is that?

here's my script:

stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, 2*1000);

Thanks,

RSB

Flash Remoting Is It Dead
Hi. I was wondering where flash remoting comes into flash as of version 8+. I have picked up a book off amazon and was wondering what role flash remoting plays in development now days. I don't want to bother learning a "dead" (if it is dead) technology, however the book was very cheap . I know that remoting is bundled with coldfusion or was? but Is learning remoting still worth it? Or are there better alternatives out there today. This book was written for flash MX (or remoting MX)

Thanks
jamesloacher

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