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




Somthing Missing... MP3/php/mysql



I AM SO close i feel it.... please review the enclosed file... Im sure im missing something so simple in the AS. If anyone could help me I'd be most greatfull...

This is a flash mp3 player that gets a list from mysql db and displays it for the viewer to select from ... i cant get the controls to work

thanks in advance...

here is the fla ... http://www.vibetribe.org/mp3Problem.zip


Code:
var mp3Array:Array = [];
mp3List.addItem("loading mp3 data..");
var receiver:LoadVars = new LoadVars();
receiver.onLoad = function(ok:Boolean):Void {
if (ok) {
mp3List.removeAll();
mp3List.addItem("Select your mp3");
for (var i:Number = 1; i<=receiver.total; i++) {
receiver["mp3DataPacket"+i] = receiver["mp3_data"+(i)].split("|");
var id:String = receiver["mp3DataPacket"+i][0];
var mp3name:String = receiver["mp3DataPacket"+i][1];
var downloadLink:String = receiver["mp3DataPacket"+i][2];
var mp3DataObj:Object = {};
mp3DataObj.id = id;
mp3DataObj.mp3name = mp3name;
mp3DataObj.downloadLink = downloadLink;
mp3Array.push(mp3DataObj);
mp3List.addItem(mp3DataObj.mp3name);
delete (receiver["mp3_data"+i]);
if (i == receiver.total) {
setup_mp3_list();
}
}
} else {
trace("error");
}
};
receiver.load("http://www.vibetribe.org/get_mp3_data.php");
setup_mp3_list = function ():Void {
var mp3ListObj:Object = {};
mp3ListObj.change = function():Void {
if (mp3List.selectedItem.label != "Select your mp3") {
var sIndex:Number = mp3List.selectedIndex-1;
show_mp3_specifics(sIndex);
} else {
serverMsg.htmlText = "";
}
};
mp3List.addEventListener("change", mp3ListObj);
};
show_mp3_specifics = function (sIndex:Number):Void {
serverMsg.htmlText = "mp3 name: "+mp3Array[sIndex].mp3name+"<br/>"+"download link: <a href='"+mp3Array[sIndex].downloadLink+"'>download this mp3</a>";
play_mp3(mp3Array[sIndex].downloadLink);
};
formatTime = function (millisecs) {
var secs = Math.floor(millisecs/1000);
var mins = Math.floor(secs/60);
secs %= 60;
if (secs<10) {
secs = "0"+secs;
}
if (mins<10) {
mins = "0"+mins;
}
return mins+":"+secs;
};
play_mp3 = function (playLink:String):Void {
var fullUrl:String = "http://www.vibetribe.org/";
var soundHolder = this.createEmptyMovieClip("SoundController", 1);
soundHolder.init = function() {
soundHolder._sound = new Sound(this); //or maybe just new Sound() ???
this.isPlaying = false;
this.position = 0;
loadingbar_mc._xscale = 0;
progressbar_mc._xscale = 0;
};
soundHolder.loadSound = function() {
this._sound.loadSound(fullUrl+playLink, true); //VERY VERY VERY IMPORTANT... BUT MAY BE MY PROBLEM....
stop_btn.onRelease();
this.updateTime();
};
soundHolder.updateTime = function() {
var time = formatTime(soundHolder.position);
if (time_txt.text != time) {
time_txt.text = time;
}
};
soundHolder._sound.onSoundComplete = function() {
stop_btn.onRelease();
};
soundHolder.onEnterFrame = function() {
if (this.isPlaying) {
this.position = this._sound.position;
}
this.loaded = this._sound.getBytesLoaded()/this._sound.getBytesTotal();
loadingbar_mc._xscale = scrubber_mc._xscale*this.loaded;
progressbar_mc._xscale = loadingbar_mc._xscale*this.position/this._sound.duration;
this.updateTime();
};
play_btn.onRelease = function() {
if (!isPlaying) {
soundHolder._sound.start(soundHolder.position/1000);
soundHolder.isPlaying = true;
}
};
pause_btn.onRelease = function() {
if (!soundHolder.isPlaying) {
return (0);
}
soundHolder.position = soundHolder._sound.position;
soundHolder._sound.stop();
soundHolder.isPlaying = false;
};
stop_btn.onRelease = function() {
soundHolder.position = 0;
soundHolder._sound.stop();
soundHolder.isPlaying = false;
};
scrubber_mc.onPress = function() {
if (!soundHolder.loaded) {
return (0);
}
var pos = this._xmouse/100;
soundHolder.position = Math.min(soundHolder._sound.duration, pos*soundHolder._sound.duration/soundHolder.loaded);
if (soundHolder.isPlaying) {
soundHolder._sound.start(soundHolder.position/1000);
}
};
soundHolder.init();
};



ActionScript.org Forums > Flash General Questions > Flash 8 General Questions
Posted on: 09-18-2006, 10:25 PM


View Complete Forum Thread with Replies

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

Veriable Question- Must Be Missing Somthing- Please Help
ok, on a button i have it so when you lcick the button, it takes two variables (stored in two other objects on the main timeline) and adds them together and takes the total and one of the variables becomes that number.

on(release){
planet = _root.thingy.woohoo;
return = _root.otherthingy.yahoo;
total = planet + return;
_root.thingy.woohoo = total;
}

both variables change do to user activity, but if both variables (for example) come in as a value of 1 each, (planet = 1, return = 1), for some reason total = 11. So fro some reason they arnt ADDING on top of each other, but adding beside each other...

Very odd... what am i doing wrong?? This has never happened before. Thanks if you can help!

E/E

PHP-mySQL Or Somthing
Hey everone i have been wqanting to know how to do this.

I want some people write there email in a Text field easy then make there message easier.Then i want a submit buttion that sends all the stuff they wrote in the Text field and i can get it.

PLease this is very Urgent.

I am making a site an i want to add some cool effects like that one.

Can U Please Help Me With Somthing.......
u know that little menue that pops up when you right click and will let you play it pause it or make it not loop..... well can i make it so you cant pause or play it. like make the menue not as big and less options i have seen it allot but i dont know how to do this. thank you!

I Want The TAB Btn To Do Somthing Else
Hello, I am trying to set up a text field with an integrated bullet system in. This is the code I am using and it sort of all works fine.

----
myListener = new Object();
myListener.onKeyDown = function() {
my_fmt = new TextFormat();
my_fmt.bullet = true;
my_fmt.italic = true;
if (Key.isDown(Key.SHIFT)) {
indenter = indenter+30;
my_fmt.blockIndent = indenter;
}
if (Key.isDown(Key.CONTROL)) {
indenter = indenter-30;
my_fmt.blockIndent = indenter;
}
mybox.setNewTextFormat(my_fmt);

};
Key.addListener(myListener);

----

But obviously using the Shift and Control key for controlling indents and bullets isn't really effective. I want to be able to use the TAB button to indent and SHIFT and TAB to go back from the indent, just like any microsoft application.
I have tried a few things but can't get anything to work, with the tab button just selecting everything each time.

some help on this would be great.

Thanks.
Kaan.

How Can I Made Somthing Like:
how can i made somthing like:
a button when press, play frames 1 - 20, when reach 20, it will jumps to next scene frame 30 and play on.

Somthing.swf?variable=value Possible?
is this possible?

how else can you define parameters externally to be read inside flash?

Music Somthing..
YO! how can i make something like the movies in the Sound Loops and Sound FX sections ? When you play the sound, those bars next to it go up and down! ?? Need this quick! :P thanks.

Searching - If Something Is 'like' Somthing.
With SQL you can do something like:

WHERE name LIKE 'name'.
WHERE name = '%name%'


In my flash movie, I the function to search for titles. It consists of a text input box and a search button..

When the search buttons is clicked I then loop through an array checking if input_title.text = titles_array[i]['title']

The problem is that it only returns a result if it's an exact match.

Because some of the title are pretty long, I would like the search to be more flexible i.e:

type in "harry" and click search.

"harry the bastard" returned.


there is is no 'LIKE' in actionscript or wildcards that I can use, is there anyway i can do this?

Somthing Is Wrong?
Here is the problem.
I made a movie clip and a button. When you roll over the button I tell the movie clip to duplicate and move in the _x position, but all it does is move in the _x position but does not duplicate and the button moves with it. All I want is for the movie clip to duplicate in a differen't position with out moving the button with it.
how can I post the fla in here for you too see.

this is the code.

on (release) {
duplicateMovieClip ("_root.flash", "_root.flash5", 20);
this.flash5 = _x=random(505);
}


Any one know why this happens.

I Need Somthing To Follow The Mouse
Hi, I need somthing to follow my mouse. Ok it will be a little box that followsthe mouse and stops under each button to let the user know which button they have clicked on.

Somthing Blocking Flash?
Hi everyone,

has someone ever had the Problem that his Flash film (with link) didnt work cuz of some javascript elements in the same php file?

I made a little film with a link in it ... the link triggers a javascript for a popup with "geturl bla bla" it worked fine in the beginning ... then the site became more complex *grrr* ... and now it doesnt work any more and i just cant see the fu..ing problem ... sorry ... its really makin me mad ... under the film is a normal textlink with the same linktarget that works fine.

The only script in the film is:

on (press) {
getURL ("javascript: popUpSMS('http://bla bla bla')");
}


Im not going to post the php source cuz its to big and full of includes ... i dont think that would help anyone.

If someone wants to have a look at the film, here is the link to the site www.noisy.de ... the flashfile im talking about is on the right side with a big SMS written on it.

If anyone had the same problem I would be glad if she or she could give me a hint

Thanx

Timtendo

Right Click Does Somthing In Flash?
Hi all,
I was opening the samples in my new flash 2004 and i ran into a sample called:

CustomizingContextMenu

now this sample has something to do with the mouse right click .

now i opened the fla and looked at it ... it seems easy enough to learn
but is there a tutorial or other samples to learn from

can any one give me info on how this thing works and how can i make do stuff i want?

thank in advance

Making Somthing Fade
how to i make something fade. (i.e. a layer, object, MC; anything)

I Got A Game Somthing Like Stick Rpg
i was wondering if anyone knew how to make cars randomly drive down the road because i have a top view like in the game stick rpg or stick world and both of them have cars that will drive in random lanes down the road and i was wondering does anyone know how to do this?

How To Make It Play Somthing Outside Of The Mc.
I have a MC and it has a button inside, and I need it to play somthing on the main stage. I think the code is somthing like this but im not sure

Code:
on (release) {
_root.gotoandplay("more");
}
And more is a frame label on the main stage, and the thing that is getting pressed is inside a movie clip.
Thanks,
Dan

Trying To Make Somthing Rotate On Key Press
Hello, I am currently trying to make a shape (with name of "biblio") rotate on right keypress..

I've been looking and i am starting to get upset.. and frustrated..
thanks for the help!

Help On Making A Caracter Attack. And About Somthing Else.
yes, I need someone to have a actionscript about my caracter attacking. I whent on this tutorial one day, learned about how to make somthing attack, but somhow, it wont work on my file. heres the code. I hope someone knows this well. I just got flash 8, so im expirimenting on this. once I get this code right if so, I will complete my game controls.
heres the code right here:


(this code is for putting in the caracter)

Code:
moveSpeed = 10;
_root.laser._visible = false;
laserCounter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.CONTROL)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser"+laserCounter, laserCounter);
_root["laser"+laserCounter]._visible = true;
}
}
(this code is for putting in the laser)

Code:
onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.player._x+90;
this._y = _root.player._y;
}
onClipEvent (enterFrame) {
this._x += laserMoveSpeed;
if (this._x>600) {
this.removeMovieClip();
}
}
now for the somthing else part, every time when you finsh beating the last enemy in one scene, how do you make it go to the next scene? If you dont really understand, i mean like when your in one lvl of a video game, and you kill the last monster in the lvl, youl be sended to the next lvl. but in flash, i dont know how to do that. does anybody know a code? if any helps out, Thanks soo much! sorry for all these problems, i know they are annoying. :P

Easy - A Link To Somthing Outside Flash
Hi all, new to the forum here.

A nice easy one to get me started....

I have a swf file embedded in an Intranet page. I want to have a button on the swf that opens the user's Z: drive.

I can do it in html: the url is: file:///Z|/ (target: _blank)

easy! that works but i want the link to be in the swf so it looks nice.

It works when i preview my page in dreamweaver, or have a go with my local version, but no chance when I upload the page and try from there. Any ideas? can it be done? seems easy, maybe it's not.

Thanks in advance for any help / suggestions.

Dave

Hyperlinking Text Or Somthing Similar
I am in need of help. I have spent days looking for an answer. I'll be brief in my description of the problem.

I Desire: A scrollable list of in flash. This list will be of every satuday in the last year.
You click on a date and a separate window opens with swf file I have made containing pictures frome ach particular saturday.
I need to be able to continually add saturdays as time goes by.

My problems: If I make a scrollable list of words, it allows me to link to url's if I use static text but I have no conrol on the window proportions. it opens full size and stretches my small .swf
When I mask text it does no appear in the movie.
I tried making buttons of it and I have to mask a scrollable button clip but masking it once again hides the text.

If I could just make a listbox and make all the entries I make open a link in a new windo that would be my easiest solution. Is this possible or are there any other solutions?

Andrew

Somthing Wrong Here, Button Doesn't Work
I did the tutorial for open centerd popup window

http://www.kirupa.com/developer/mx/centered_popup.htm

And it works just fine on one of my sites. But when I used the same code (yes, I changed the adress to the right one ) for another site I made... it doesent work, nothing happens. It's like the klick function isn't active or somthing. I just dont get it?!? The only differens is that in the one were it doesent work, the button is in a mc (the meny mc, that fades in the options of the meny). I have to guess that this is why it doesn't work, but i dont understand why.... pleas help me, tHx

Somthing Wrong Here, Button Doesn't Work
I did the tutorial for open centerd popup window

http://www.kirupa.com/developer/mx/centered_popup.htm

And it works just fine on one of my sites. But when I used the same code (yes, I changed the adress to the right one ) for another site I made... it doesent work, nothing happens. It's like the klick function isn't active or somthing. I just dont get it?!? The only differens is that in the one were it doesent work, the button is in a mc (the meny mc, that fades in the options of the meny). I have to guess that this is why it doesn't work, but i dont understand why.... pleas help me, tHx

Export Querries From Flash 8 To MySQL And Import Data From MySQL
Hi friends,
I am making a web site for a customer and i need to import data from MySQL Database but i don't know how to do it.
I would appreciate it if somebody could give me an idea or tell me where to find a tutorial.
Also i heard that there is a .dll file that Macromedia made, in order to make it easier to connect Flash with Databases, is that true ?

[FL8 + PHP + MySQL] Adding/Deleting/Viewing Content From MySQL Db
So... Viewing isn't actually the issue here, I just added it to make it a full triangle . I'm doing that with a PHP that writes the contents of the dB in XML syntax.

But, to make it clear, I am trying to develop an application that communicates with a MySQL database, via PHP. And you have the option to add/delete fields, but also in the Flash application.

I found some source at the gotoAndLearn forums, but it simply would not work! I am uploading a zip of the files. The main problem with this is that when I am adding something, the dB gets filled with blanks. This boggles my mind. Not being a big PHP knower (not knowing anything, really), my suggestion is that the variables don't get sent properly. But then again...

Some help with this please? I'm in a kind of a tight spot here, so some help would be really in handy!

Cheers

Missing Fonts (but Not Missing)
Hi,
I'm working with MX on Mac.
I got some PC FLAs that shows the "missing fonts" error message when opened.

I searched the whole FLAs for textfields using the "missing" fonts, but there are none!
Using the movie explorer I also can't find textfields or anything using the missing fonts!

Whats going on? Are the FLAs corrupt?

Missing Fonts, Is It Possible To Insert Missing Fonts To Flash?
Hi,
I have a problem. I use some fonts on my flash site and everything works fine on my computer. But when I open the same site on another computer where the fonts are missing, it replace the fonts with common ones.

Is there any solution how I can attach this fonts to flash site?

.loadMovie("somthing.swf")
after I load the movie why doesnt this work?
(its on frame one of my container movie)
stop()
var cannon:MovieClip = _root.createEmptyMovieClip("cannon_mc",500)
cannon._x = cannon._y =100
cannon.loadMovie("cannon.swf")
cannon.onLoad = function(){
gotoAndStop(2)}

whydoesnt it advance the swf i loaded to its frame2?

Php,mysql And Flash- How To Display Picture In Flash From Mysql
How are you all?
I have a question for php,mysql and flash gurus.
Before I ask this question I will describe what I want briefly.
Using php, I retrieve a path to a picture from mysql and send it to flash movie as a variable.
Now what I would like to do is using this path to a picture how to display the picture as a part of a movie?

Cheers,

What Am I Missing Here?
I have a .swf that's about 52k. Not long enough even at 56k for a preloader, but long enough that I want SOMETHING on the screen for that couple of seconds.

So I created a .swf called "FirstScreen.swf" - it has 2 layers. One contains text that simply puts the word "Initializing" in the middle of the screen. Layer 2 is called "Load", And in Frame 2 of the "Load" layer (I've tried it in Frame 1 as well with no better results), is the following code:

loadMovieNum("HBInterface.swf", 1);

I've checked, and HBInterface.swf is the right title, it's in the same directory as "FirstScreen.swf". So why when I open "FirstScreen.swf" on my local server, I get the "Initializing" screen and that's all that ever happens?

I'm tearing my hair out over this one, someone please help!

Thanks
Neil

Almost There, Am I Missing Something
This code almost seems to work.



On the initial mc (called: mc_b) I have:

onClipEvent (load) {
mc_a.prototype.floatTo = function (speed, endx, endy) { var dist_x, dist_y, vel_x, vel_y;speed = "."+speed;dist_x = Math.round(endx-_x);dist_y = Math.round(endy-_y);vel_x = dist_x*speed;vel_y = dist_y*speed;_x += vel_x;_y += vel_y;};
}

Then on the button inside the mc (mc_b) I have:

on (release) {

i ++;

if (i == 1){

_root.mc_a.floatTo (6, 232.0, 148.8);

} else if (i == 2){

_root.mc_a.floatTo (6, -200.0, 148.8);

i = 0;

}

}


I am trying to have mc_b move mc_a in and out of the window, though something here doesn't work???

?????

thank you, thank you

I Must Be Missing Something....
To my knowledge, this should work fine.....

Create a blank MC in the main timeline.

Give it an instance name of "mcMusic".

Import a MP3, goto it's properties and give it a LINKAGE name of "songMusic".

In main timeline, frame 1, add this code:

myMusic = new Sound(mcMusic);
myMusic.attachSound(songMusic);
myMusic.start(0,2);

Run the movie.

To my knowledge, you SHOULD get the mp3 sound to loop twice... but nothing happens...

Any thoughts?

Please Help, I Must Be Missing Something Here
Okay here the thing. I need to generate a path randomly by selecting a movieClip name from an array and then placing it in a variable so I can use it in my gotoAndPlay statement. It doesn't seem to work the way I have it set up. What am I doing wrong?

bkgArray = new Array("Pink", "Blue", "DBlue", "Orange", "Grey");

setInterval( randBkg, 3000 );

function randBkg(){
getIt = random(4);
nm = bkgArray[getIt];
bkgName = "bkg" + nm; // this would be the movieClip name
labName = nm + "Play"; // this would be the frame label within the movieClip
bkgName.gotoAndPlay("labName");
}

Thanks in advance.

XML Missing ?
hi,
has anyone ever experienced this problem...
if the xml document is local i can get the declaration and the content - but when live on https, i can only get the declaration..?

(i'm building the movie for use on a local browser)

Am I Missing Something?
Ok, I'm trying to allocate more memory to flash in Windows XP...I've right clicked on the MX icon, but the memory tab does not show up. How am I supposed to add more memory to MX...I'm used to using Macs, and this problem was easily resolved w/ the 'Get Info' command

Please advise...thanks

I'm Sure I'm Missing Something...
I'm also sure that I've looked everywhere on this site and I still can't find the answer...

I'm a designer and in my flash only website, I'd like to showcase the best of my work. I want to have each of my pieces scroll through the frame as you rollover a button. I did this without any real trouble- the problem comes in when, all I want to do is make the damn thing go backwards.

How do I make the movie play backwards?

Thank you so much in advance for your help and your time.

What Am I Missing?
Note following code:

on (press) {
fileExists = new LoadVars();
fileExists._parent = this;
fileExists.onLoad = function(success) {
if (!success) {
_root.flags[i] = 1;
setProperty(eval(block), _visible, true);
}
};

file = "tc01nav.swf";
i = 1;
block = "_root.iblockmenu1";
fileExists.load(file);

//play();
}

Okay, what keeps me from calling this for another file? For example:

Placing this code directly before the //play line...
file = "tc02nav.swf";
i = 2;
block = "_root.iblockmenu2";
fileExists.load(file);

Doesn't buy me anything. Actually things get trunced and I get wierd results...

Am I missing something obvious. Don't quite understand this kind of function call. Use to the function(passin) return(passout) variety.

Any guidance, much appreciated...thanks.

What Am I Missing?
I am trying to put a short password entry at the beginning of my FLA.
I have placed an "input text" field on the timeline and made it a password (so only *s will appear as you type). I named it "password".

Next I created a button for the user to click after they have entered their password. The idea is that when the user clicks the button, the action script will look to see if it matches a pre-determined password and if so, move them forward. If not, it should display a message in a different dynamic text field named "value".

Here is my code:

on (release){if (_root.password.value eq "Pass"){gotoAndPlay("Start");}else{_root.check.val ue="Incorrect Password. Please try again.";}}

It doesn't work. Suggestions, Ideas, Directions?????
I'm using MX 2004 Pro. and will try to attach the file.

What Am I Missing ?
i have a movie clip that i'm trying to use as a button
which seems fine when i want to go somewhere in the same scene so long as a put _root. infront of the goto command
trouble is i want it to go to another scene and it just wont go i've tried it with and without the _root. bit in and neither way works
hers what i've put in :

onClipEvent (mouseDown) {
gotoAndPlay("quality", 1);
}

what am i missing ?

Hmm... I Am Missing Something...
Well, I just started Flash a week ago and I learned how to create a button, but I do not know how to use the button as a link. It is just a button that can be clicked right now. I would like to make it link to another page on my site. How do I go about this? As well, how do I use the Hit frame? What is the action and all?

P.S. I would also like to know how to make the button stay a certain color after clicked signifying that you are viewing that page. Furthermore, how can I have my flash image have a transparent bg?

Thanks in advanced.

What Is Missing?
Okay.....I followed the tutorial from here on how to make a spaceship move. When I went to try and add firing to it, it won't work. What is wrong with this code?

THIS IS FOR THE SPACESHIP
code:
onClipEvent(load){

moveSpeed=10;
_root.laser._visible=false;
laserCounter++;

}


onClipEvent (enterFrame) {

if (Key.isDown(Key.CONTROL)) {
laserCounter++;
_root.laser.duplicateMovieClip( "laser"+laserCounter, laserCounter );
_root["laser"+laserCounter]._visible=true;

}

if (Key.isDown(Key.RIGHT)) {
this._x+=moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x-=moveSpeed;
}

if (Key.isDown(Key.DOWN)) {
this._y+=moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y-=moveSpeed;
}

}



THIS IS FOR THE LASER
code:
onClipEvent (load) {

laserMoveSpeed=20;
this._y=_root.spaceship._y;
this._x=_root.spaceship._x+80;

}
onClipEvent (enterFrame) {

this._x+=laserMoveSpeed;
if (this._x>600){
this.removeMovieClip();
}

}


Thanks for all the help!

What Am I Missing?
ARG, this should work? What the heck am I overlooking??


Code:

function createLink() {
var Message:String = "Click Here: <a href=http://Apple.com>Apple.com</a>";
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Monaco";
my_fmt.size = 10;
my_fmt.color = 0x000000;
//
this.createTextField("Message_txt", 999, 12, 13, 319, 319);
Message_txt.embedFonts = true;
Message_txt.antiAliasType = "normal";
Message_txt.gridFitType = "pixel";
Message_txt.sharpness = 400;
Message_txt.html = true;
Message_txt.selectable = true;
Message_txt.wordWrap = true;
Message_txt.multiline = true;
Message_txt.border = true;
Message_txt.setNewTextFormat(my_fmt);
Message_txt.htmlText = Message;
}
onMouseDown = createLink;
thnx

Ok, What Am I Missing?
This is on a key frame, main time line and when the "up_bn" button is release I want my mc "EZ_vessals" to increased by 25. What do I need to add to this script to make it work? Thanks!


up_bn.onRelease = function(){
EZ_vessals._xscale = EZ_vessals._xscale +25;
EZ_vessals._yscale = EZ_vessals._yscale +25;
}

Am I Missing Something?
I had finished writing the following code for a movieclip to follow the mouse.

code:
onClipEvent(load) {
this._y = ypos;
this._x = xpos;
}

onClipEvent (enterFrame) {
if (Boolean(follow)) {
ypos = _root._ymouse;
xpos = _root._xmouse;
this._y += (ypos-this._y)/7;
this._x += (xpos-this._x)/7;
}
_root.follow=true;
}


The movieclip is in the root timeline. so when I want it to stop it from following the mouse, i presumed the I would have to enter _root.follow = false;

But nothing happens when the false command is executed. any suggestions?

thanks in advance

What Am I Missing Here?
Having problems with this FLA file:

Problem File

I thought what I was trying to do was simple but I struggle with Flash to be frank. Simply put, I want the user to rollover the '01' in the top left corner which will subsequently play the 01_Movie on the right.

Can anybody point me in the right direction here?

Thanks in advance.

What Am I Missing Here?
var request:URLRequest = new URLRequest();


function postdata(event:MouseEvent):void {
request.data=txt1.text;
request.url="process.php";
request.method=URLRequestMethod.GET;

trace(txt1.text);
}


trace result shows what ever you type in the text field but the data never goes through php any ideas??

I Must Be Missing Something? Help
Ok so I am a newbie and have cobbled together some code to import xml and use it to lay out information and it amazingly was working. I decided to make the Function named "bigaction" out of a section and now I get the error:

Error #1010: A term is undefined and has no properties.

....and my while loop goes round once.

if I comment out the line below, the rest works:

this[thumbcounter].text=myXML.productname[i];



I think I must be missing something and its probably an easy fix. Please Help. Any ideas appreciated. Thanks in advance.

-----------------------

Here is the full code:


// BASIC MENU DISPLAY

stop ();

var productfamily:String="hello.xml";

family1.addEventListener (MouseEvent.CLICK, buttonClick_1);

family2.addEventListener (MouseEvent.CLICK, buttonClick_2);

family3.addEventListener (MouseEvent.CLICK, buttonClick_3);

trace(productfamily);



//************************************************** ******
// Button functions


function buttonClick_1 (myevent:MouseEvent):void{

//productfamily="fam1.xml";

bigaction("fam1.xml",0);

}

function buttonClick_2 (myevent:MouseEvent):void{

//productfamily="fam2.xml";

bigaction("fam2.xml",0);

}

function buttonClick_3 (myevent:MouseEvent):void{

//productfamily="fam3.xml";

bigaction("fam3.xml",0);

}

//************************************************** *********************
// big function to bring in XML and lay it out


function bigaction(productfamily:String,i:int) {



//************************************************** ******************



//load data from XML document

var myURLLoader:URLLoader = new URLLoader();
var myURLRequest:URLRequest = new URLRequest(productfamily);
myURLLoader.load(myURLRequest);
myURLLoader.addEventListener(Event.COMPLETE, dataOK);

function dataOK(myevent:Event):void {

var myXML:XML=new XML(myURLLoader.data);

//put XML data into familyone array

var productcount = myXML.productcount[0];


var pc:int = productcount; // internal product count from xml data



// XML is now loaded



// display stuff*******************************************

//Display Family Title
family_title.text = myXML.familyname[0];


//This lays out thumbnails

//var i=0;
var zzz:int;
var thumbcounter:String;

var thumbx:Array = new Array();

thumbx[0] = 820;
thumbx[1] = 931;
thumbx[2] = 820;
thumbx[3] = 931;
thumbx[4] = 820;
thumbx[5] = 931;
thumbx[6] = 820;
thumbx[7] = 931;
thumbx[8] = 820;
thumbx[9] = 931;

var thumby:Array = new Array();

thumby[0] = 25;
thumby[1] = 25;
thumby[2] = 125;
thumby[3] = 125;
thumby[4] = 225;
thumby[5] = 225;
thumby[6] = 325;
thumby[7] = 325;
thumby[8] = 425;
thumby[9] = 425;


while (i<(pc)) {

zzz = i;
zzz.toString();
trace(zzz);
thumbcounter =("thumbtext_"+zzz);
trace(thumbcounter);

trace (myXML.productname[i]);

//PROBLEM LINE BELOW
this[thumbcounter].text=myXML.productname[i];

// load and position thumbnail images
var myrequest:URLRequest=new URLRequest (myXML.productthumbimage[i]);
var myloader:Loader=new Loader();

myloader.load(myrequest);
addChild(myloader);
myloader.x=thumbx[i];
myloader.y=thumby[i];
trace(thumbx[i]);
trace(thumby[i]);
trace(i);
trace(pc);

i+=1;
}

}

}

stop ();

What's Missing Here?
OK...so a friend of mine is trying to put a slideshow I made for him on to their website, here:

http://www.covenantnaples.com

notice how it just sits and says "loading..." which means that the movie has initialized, but it's just not loading the pictures...

HOWEVER, if I navigate directly to the swf file here:

http://www.covenantnaples.com/slides...eSlideshow.swf

it works just fine.

Anyone know why this could be? How can it work in one spot and not in the other, when technically, they're both the same spot as far the the source file is concerned?

SWF Is Missing In IE When Used Under Dd Tag
Here is the link;

http://www.creamediadesign.org/new_site/reviews_on_tv.html

When you click on video a small window opens with an embedded flash in it, but I can not see the swf movie at all in IE...

Any suggestions?[





























Edited: 01/25/2007 at 05:17:12 AM by Blanktruth

What Am I Missing Here?
Hey guys, im just messing around with creating dynamic TextFields, but i cant get this to work.

I know it's something simple im missing here, but i cant figure it out.
This works if i create the Text fields on stage, but if i try to create them at runtime it doesnt work.








Attach Code

this.createTextField("mouse_y",this,10,20);
this.createTextField("mouse_x",this,10,40);
this.createTextField("mouse_actions",this,10,50);

/*
trace("y= "+mouse_y);
trace("x= "+mouse_x);
trace("actions= "+mouse_actions);
*/

onEnterFrame = function(){
mouse_y.text="y_pos: "+this._ymouse;
mouse_x.text="x_pos: "+this._xmouse;
this.onMouseDown = function(){
mouse_actions.text="You have just pressed your mouse button";
}
this.onMouseUp = function(){
mouse_actions.text="";
}
}

I've Got To Be Missing Something
I'm new to flash and just trying to make a url link. followed instructions and I keep getting an error" '{' expected " in line 5. It's there!!! It seems right to me. Am I missing something. it seems simple.

1.var link:URLRequest = new URLRequest("

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