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








Green ActionScripter Can't Use LoadVariables


For a while, loadVariables seemed to be working okay, but now I'm not sure what's going on with it. I used the code below:


Code:
loadVariables("./Content.txt",this);
showText(Content);


with a text file called "Content.txt", in the same folder, containing the following HTML code


Code:
Content=<p align="center"><font color="#CCCCCC" size="20"><b><u>Welcome!</u></b></font><br>Welcome to the content pages. While we appreciate that our members need access to the information to be contained herein, this feature has not yet been added. <a href="mailto:CardinalXiminez@att.net">The webmaster</a> assures you that he is in the process of writing the web pages required to gather data and the CGI programs required to parse it. If you desperately need any of the data in these pages, <a href="mailto:CardinalXiminez@att.net">contact the webmaster</a> via email. Please, be sure to check back very soon for new developments!<br></p><p align="right">--<a href="mailto:CardinalXiminez@comcast.net">The Webmaster</a>


, all of which is on one great big line. The function showText() moves the text that's passed in to a text box in another part of the program. I've tried using single, double, and no quotes in the text file, to no avail, as well as taking out the "<br>" tags and using carridge returns. The content of the text box has been completely blank when tested. Any assistance would be greatly appreciated. Thanks!




FlashKit > Flash Help > Flash Newbies
Posted on: 06-30-2002, 02:51 AM


View Complete Forum Thread with Replies

Sponsored Links:

In Need Of An Actionscripter
Hilo,

I've been actionscripting my game for quite a while, failing and succeeding. Mainly my failures have been in the baddies department, which I've asked for help on a few times already in different forums.

Well quite frankly, I've grown tired of it. This trying of actionscript is holding up my game. At this rate it won't be done for a year or two. I'm in need of an experienced actionscripter who's willing to go crazy and help me with this.

I'm mainly asking for whomever to actionscript the baddies, when they're hurt, when they hurt the character, functions and everything. I've already got the sprites ready for coding.

I think this game will be fairly well noticed. The graphics are great, the idea of it's fine, awesome music, it has a storyline and I plan to have cutscenes aplenty. If someone were to actionscript it, I'm sure they would be recognized well.

Maybe some screenies will help -

http://www.evilpumpkin.net/megascreeny.jpg
http://www.evilpumpkin.net/megascreeny2.jpg
^this was when I had one sludge on there and it worked^

Uh... I think that's all. Sorry for the long post and unneeded explanation, I just felt I should get it all in there.

Also, these threads that ask for an actionscripter seem to go unnoticed, or at least noone posts or offers. Is there something wrong asking for an actionscripting partner?

Thanks. Sorry for anything I did wrong.

P.S. I've planned and worked on Mega for a long time; I'm very serious about finishing it and for all the time that I've worked on it, not a thought about stopping production on it has ran through my mind.

View Replies !    View Related
Newbie Actionscripter Needs Help.
Newbie Actionscripter needs help.

Hi all.
Just starting out so please forgive any incredibly stupid questions that I may have, as my mind is kind of melted at this point.

I am currently in a "WEB DESIGN" school of which I paid $8,000 for.

We have moved from basic javascript to flash and actionscript.
I previously had no experience or knowledge of either of these languages.


Our instructor has set us out on a basic exercise of controlling a movie clip instance movement across the screen.

4 buttons to move the object along the y and x.

Here is the script as our instructor created it.
Button script for left movement:

on (press, keyPress "<Left>") {
moveThing(-5, "x");
}

Script for movie clip instance. Script placed in frame as frame action:

function moveThing(moveValue, direction) {

posY = getProperty(movie, _y);
posX = getProperty(movie, _x);
if (direction eq "x") {
posX = posX+moveValue;
if (posX<0) {
posX = 550;
}
if (posX>550) {
posX = 0;
}
setProperty("movie", _x, posX);
} else if (direction eq "y") {
posY = posY+moveValue;
if (posy<0) {
posY = 400;
}
if (posy>400) {
posY = 0;
}
setProperty("movie", _y, posY);
}
}


So, what's the problem? u ask.

Well, first of all I wanted the button to continuously
move the movie clip instance as long as the user held down his mouse button.

In the example above the movie clip instance will only move once per click.

When I asked my instructor how to achieve this, he told me "it cant be done,
You have to use the keyboard to keep it moving."

This seemed strange, having a basic knowledge of javascript,.

I said to him "cant the movement just loop?"

He said "how will you stop the loop."

I said "With an "onRelease".

He said "you can't have 2 mouse events calling the same function for the same button"

I said "O.K."

Since I had seen the achievement of using a button to control an object and continue to control it until you release the mouse many times before. I went home and started searching the net.

Being a newbie it was hard to find a script in which I could isolate these actions, but I did find a large script and was able to pull out the actions that I wanted and apply them to a flash movie.

Here is the new script:

Script applied to button(s):

on (press,) {
movie.up = true;
}
on (release, releaseOutside) {
movie.up = false;
}

Script applied to movie clip instance:

onClipEvent (enterFrame) {
moveValue = 20;
// if mode is true, the movie always travels in a straight line
if (left) {
_x -= moveValue;
}
if (right) {
_x += moveValue;
}
if (up) {
_y -= moveValue;
}
if (down) {
_y += moveValue;
}
// loop to opposite side
if (_y<0) {
_y = 400;
}
if (_y>400) {
_y = 0;
}
if (_x<0) {
_x = 555;
}
if (_x>555) {
_x = 0;
}
}



so…… Here are my questions;


Is my teacher mental???

Obviously you can apply to mouse events to a button???

Why use the getProperty and setProperty instead of just _y or _x

What exactly is it that causes this object to continue to move in this script apposed to the first script.
Is it the " _x += moveValue;"

Is my understanding correct in saying….

"_x" finds the current position of the movie clip instance.

"_x+=moveValue"
Takes the position of the movie clip instance makes it equil to itself and then
Adds the value of "moveValue" is this the loop?

Anyway obviously I'm confused.
I find it hard to move on to other things when I'm confused about the first things.


Any help or anything to further explain these things would be greatly appreciated.

Kenman

View Replies !    View Related
Looking For An Advanced Actionscripter
Hello All,

I am looking for someone out there who is willing to completely actionscript all of a game for me. I will be creating all the graphics, animation, music, sounds & ideas for the game. I need someone to basicly make it into a game. I of coarse would be paying you for your work. We can discuss the pay once I find someone who wants to work on the game.

The game is a 2D sidescrolling adventure game which would require you to know the following...

- Making the character jump, walk, run, and jump up and then pound the ground with thier bodies.

- Creating a score method for the character. Points are rewarded by collecting coins throughout levels. The character would get 3 lives and would lose a life each time they are touched by an enemy. But they can gain a life by collecting 100 coins.

- Detailed Sidescrolling. I plan to make the scrolling of the game so that further away objects scroll slower than objects closer to you. Maybe about 3 to 4 layers of scrolling.

Those are the basics. There will be some other things I would need, for example maybe some bouncey mushrooms in the game that when the player jumps onto them, they bounce really high. PLEEEAAASE reply to me here if your interested in being paid to take all my ideas and graphics and add actionscripting to all of them for money. I won't be cheap either, i'm willing to pay hansomely.

Thanks!
-Josh

View Replies !    View Related
I'm Not An Actionscripter But Play One On TV HELP
Okay here's the deal. I have this application that I am designing that requires objects to be duplicated on the screen by the press of a button and placed on the screen. Each MC Instance can then be selected, rotated and/or deleted. Please check this out to see the program in action and you will be able to see the problem:

http://www.jefcon.com/df/tilesfinal.html

I grabbed the code from Flashkit to make it work but don't totally understand it. Sorry but here's a long explaination of what i've got so far and then I can explain the problem.

First I make each object a Movie Clip and on the object I have this code:

// get moviename and run getname function
// when you click on the button
on (press) {
_root.moviename = getProperty(this, _name);
_root.getname(_root.moviename);
}

// stop the dragging of the movieClip on release
on (release) {
stopDrag ();
}

Then I make a button for each movie clip that has this code:

// run the dup function when you click this button
on (press, keyPress "2") {
mm015caverncurvecounter = _root.dupmovie("MM015-Cavern-Curve Wall",mm015caverncurvecounter,_root.mm015caverncur veinit);
}

Then in the frame of the button I add an action to give variables

// these are just variables are need initiated before using
nextmovie = 0;
mm015caverntcurveinit = 100900;
mm015caverntcurvecounter = 100900;

When all these elements are together it works great and MCInstances are placed on the stage and are able to be rotated, etc..

HERE'S THE PROBLEM (Thanks for hanging in there)
------------------

I created a separate movie clip to house all the buttons for my objects. And there are so many objects that I created several categories and have buttons hop up and down the MCtimeline to access each different category. And it works just great except when you ever go back to the same category.

For instance when I click on the 'Room and Passage' category and the buttons come up I can place the pieces and the MCInstances are created with values that I setup above. But when I goto another category and then come back to the 'Room and Passage' category the MCInstance starts over and takes away Instances I already have placed.

So my question is, is there a way to 'remember' what's already on the stage and then have any new duplicate Instances start at a value above what's already on the stage.

This is a lot and I thank anyone that can help me figure it out. I can post the 2Mb source FLA if you want.

Thanks

View Replies !    View Related
Looking For Good Actionscripter
Hi

Ive got a fla source file developed by a freelance developer.
He has however since left the country and i can no longer get a hold of him, therefore im looking for someone with the right skills to make a few modifications/changes for me.

The application is an interactive mapping application, written in actionscript.
It basically loads in an external swf, loads in some xml files with the roads and co-ordinates of the roads. When one clicks on the road it moves the map to that area and inserts a little label and pointer.
It is solely actionscript work and the actionscript is quite advanced!

Im pretty sufficient at flash but this is heavy duty actionscripting.
Can any one lend a hand?

I have a very small budget left for the project, however if someone has the right know-how of action script then it should not take too long!

Tnx

View Replies !    View Related
Becoming A Certified Actionscripter
I was wondering about the difficulty and the process of becoming certified in Flash. Here's a link to the certification page: http://www.adobe.com/support/trainin...developer.html .

How hard is the test? Are the classes enough? I would appreciate any info or suggestions from anyone who has attended the classes or taken the test.

thanks

View Replies !    View Related
Actionscripter Needed
I am hoping to find someone that can help me make a menu and possibly a few other things. This is something I need to learn, but don't have the time for my current project. If someone would be interested in showing me how to do the menu and explaining some of the scripting, that would be great. My knowledge of flash is probably about advanced-beginner.

Please let me know how much you would charge for this and what your hourly rate would be, in the event that more help is needed.

Here are some links to menu's I'd like to learn to make.

Thanks. (Same post as on Yayhooray)

http://www.eccentris.com/splash.htm
http://www.bale.com.au/
http://www.royalbotania.com/
http://www.ktema.com/flash.php
http://www.detremmerie.be/

View Replies !    View Related
Anyt Actionscripter. Could Help? .
ok, thanks if you are reading this thing.. i got a big problem [if you want to know about it ask.. tis about movemt.. easening using AS]but here the problem is.. that..

i got a BIG BIG, group of "set parameter" that i have to reuse in every On rollOut, so i though that i could put all those lines in some function and then just call it as many times as i want.. [am i wrong?. ] but i dont know how to do it..

before everything i use.. a

#include "acciones.as"

where. the code to reuse is..


ActionScript Code:
on (rollOut) {
    setProperty("_root.b1", _y, $unoy);
    setProperty("_root.b1", _yscale, 100);
    setProperty("_root.a", _y, $unoy);
    setProperty("_root.a", _yscale, 100);
    setProperty("_root.b2", _y, $dosy);
    setProperty("_root.b2", _yscale, 100);
    setProperty("_root.b", _y, $dosy);
    setProperty("_root.b", _yscale, 100);
    setProperty("_root.b3", _y, $tresy);
    setProperty("_root.b3", _yscale, 100);
    setProperty("_root.c", _y, $tresy);
    setProperty("_root.c", _yscale, 100);
    setProperty("_root.b4", _y, $4y);
    setProperty("_root.b4", _yscale, 100);
    setProperty("_root.d", _y, $4y);
    setProperty("_root.d", _yscale, 100);
    setProperty("_root.b5", _y, $5y);
    setProperty("_root.b5", _yscale, 100);
    setProperty("_root.e", _y, $5y);
    setProperty("_root.e", _yscale, 100);
    setProperty("_root.b6", _y, $6y);
    setProperty("_root.b6", _yscale, 100);
    setProperty("_root.f", _y, $6y);
    setProperty("_root.f", _yscale, 100);
    setProperty("_root.b7", _y, $7y);
    setProperty("_root.b7", _yscale, 100);
    setProperty("_root.g", _y, $7y);
    setProperty("_root.g", _yscale, 100);
    setProperty("_root.b8", _y, $8y);
    setProperty("_root.b8", _yscale, 100);
    setProperty("_root.h", _y, $8y);
    setProperty("_root.h", _yscale, 100);
}


and please i want to know how could i call. it from the button. ON ROLL OUT..?.. event.. of course i dont need to use any imput variable or anything i just want to execute it anytime that i call it.. [i dont know how to call it.. if you realize it.. :]


thankz so mauch even if you are just reading this.. i will not answer. , AHH.. mmmmm.. is there the possibility of make that code [above] in a AS format i mean.. a loop or something else?

thankz again
inz.

View Replies !    View Related
NYC Actionscripter Needed
We need an advanced actionscript coder to work with our 3D artist, developing a real time web-based 3D entertainment application. This is a contract position. It involves working in Flash and controlling 3D graphics from Holomatix Blaze 3D ( www.holomatix.com) using the Blaze 3D and Flash action script libraries. Knowledge of java a plus.
Please send phone number and summary of background / credentials.



This job requires the contractor to work on-site (Midtown Manhattan) with the 3D artist.

mara@pegr.com

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

View Replies !    View Related
Not A Big Actionscripter.. I Know There Are Problems
so.. i had the top part. the resizer working nice.. but when i tried to turn that mc that resized into a moviecliploader it all went awry.. i think my coding of the loader name or something is wrong i bet it'd be easy for anyone knowledgeable to figure out..and i know how awesome everyone on this board is already.. thanks..

Code:

Stage.align = "LT";
Stage.showMenu = false;
Stage.scaleMode = "noscale";
var stageListener:Object = new Object();
stageListener.onResize = formatStage;
Stage.addListener(stageListener);
stageListener.onResize();



function formatStage() {
   trace("onResize()");
    resize_txt.text = Stage.width + " x " + Stage.height;
   myMCL._width = Stage.width;
   myMCL._height = Stage.width/1.333;
   myMCL._xscale = myMCL._yscale;
   
}

bar._visible = false;
border._visible = false;
myMCL = new MovieClipLoader();


preload = new Object();
myMCL.addListener(preload);

preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
myMCL._visible = false;
bar._visible = true;
border._visible = true;
pText._visible = true;
};

preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
myMCL._visible = true;
border._visible = false;
bar._visible = false;
pText._visible = false;
trace(targetMC+" finished");
};

//default image
myMCL.loadClip("test1.swf","myMCL");
//buttons
button1.onPress = function() {
myMCL.loadClip("roofmovie.jpg","myMCL");
};
button2.onPress = function() {
myMCL.loadClip("smoke.jpg","myMCL");
};
button3.onPress = function() {
myMCL.loadClip("smoke1.jpg","myMCL");
};

View Replies !    View Related
Knowledgable Actionscripter For A Moving Map
Hi! Im very very new to actionscripting but Im using Flash 5 and Im trying to build a game that has a stationary spaceship.As you go to move forward or in reverse the map will scroll past you. So if you go from the middle of a huge map to the right side, you will travel to the right but you stay stationary but the map will go past you, same to work in every direction. Just you stay in 1 spot and the map or background just goes past you. This is the same as in a online game called Silent Death if anyone has ever played that. I got movement scripting down and can move around on teh screen, but cannot get the background or map to move instead of me.

View Replies !    View Related
Newbie Actionscripter - Moving MC
Im trying to move 2 MC's with actionscript.

First MC name=test (move from y=28 to y=128)
onClipEvent (load) {
_root.x = 361.5;//change this to where it goes to.
_root.y = 128;//change this to where it goes to.
speed = 10;//change the speed.
}
onClipEvent (enterFrame) {
x = (_root.x-this._x)/speed;
y = (_root.y-this._y)/speed;
this._x += x;
this._y += y;
}

Next MC name=test2 (move from y=327 to y=227) - moving at the same time as first MC

onClipEvent (load) {
_root.x = 361.5;//change this to where it goes to.
_root.y = 227;//change this to where it goes to.
speed = 10;//change the speed.
}
onClipEvent (enterFrame) {
x = (_root.x-this._x)/speed;
y = (_root.y-this._y)/speed;
this._x += x;
this._y += y;
}

This doesnt work - well the first MC is fine but the second one moves way to high

View Replies !    View Related
Looking To Hire Flash MX Actionscripter
Looking for a good actionscripter to complete a project, must be able to accept credit cards if outside the US, The project is outlined in an attachment. If intrested please email me with your project estimate in US dollars please. If additional info is required, please feel free to ask before bidding. I may not accept the lowest bid, i'm looking for skill, and dedication more than price. Payments will be in two parts, 1/2 upon successfull completion of a .swf as outlined in the attached file, and the rest upon deleivery of the .fla source file. Futhermore, a permanite way to contact you should change be needed after acceptance.

Thank you for you time
Tim Lawson

View Replies !    View Related
Experienced ActionScripter Needed
Hi Guys and Girls,

We are a small, yet very busy web application development company and we are looking for an experienced ActionScripter who is based in London to come and work with us.

If this is you and you know your way around Flash AS like the back of your hand, we need you!

Send me an email if you are interested. No chancers please...

Look forward to hearing from you

Grant

View Replies !    View Related
Can I Hire An Actionscripter Today?
I've got a navigation project I'm working on in Flash MX 2004 that pulls names/links from an XML file. It needs to be read by screen reader software. I have a sample that works and a sample that is close to what I need for the final file. Please respond promptly with your hourly rate, etc. Thank you so much.

View Replies !    View Related
Horrible Actionscripter Needs Help With A Script
Hi guys, i need help with a script that i was given for a class i took before the summer. The script allows a arrow graphic to follow the buttons that you put your cursor on. Say if i move my cursor to the 2nd button it will move a little arrow to that button. The arrow starts on the side of the 1st button.(top button)

My big problem is that im trying to make a site with this script in it, the script was orignally made with the buttons being horizontal, i now need them to be vertical. I have played with the file a lot lately and cant seem to get it to move vertical. Im not the best actionscripter so im sure if someone who knows actionscripting really well probably could figure it out really quick. If someone could help me out and download the file, and show me what i need to do, maybe you can even upload the version of the file that you work on. It would help me out very much, i would appreciate the help.

Thanks
Frank

View Replies !    View Related
Pro Actionscripter Needed....paying
check out the site first at
http://www.dreamchasers-interactive....ons/Haach_big/

the way i built it has many problems
so i 'm looking for a very good actionscript
guy to rebuilt the site in 5 days for me,
of course i'm paying...

1. the resizing of different categories seems to have conflicts with
playing of quicktime vr (go to facilties under products click on the first pool to launch quicktime - its stated download tho)

2. the display of content area has to be able to be minimized so that viewers can see the main image.


interested email me at magius@dreamchasers-interactive.com
payment will be thru TT or cheque by mail. not a prank.

View Replies !    View Related
[cs3] Dead Simple For Any Actionscripter
im earning actionscript (trying anyway!) using the below button soruce from http://www.gotoandlearn.com and want the buttons when they are pressed to go to the main timeline frame 4, etc.

i cant work this out. think it is simple thou.

what do i need to add.

b4.onRollOver = over;
b4.onRollOut = out;
b4.buttText.buttonText.text = "AUDIO DESIGN";

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(7);
}

View Replies !    View Related
Born Again Actionscripter - Where To Begin?
Hi, this is my first post here so I'll start by saying hello. Hello!

I used to be an enthusiastic actionscripter back in the days of Flash 4/5/MX but I've been out of the loop for a few years now and the flash landscape has changed considerably!

I'm looking into reviving my actionscripting skills, initially just to write a couple of online games and small web apps, but possibly as a longer-term career move.

But I'm not quite sure where to begin! The last thing I made in flash was a small shoot-em-up-game and it was the first and only project for which I used AS2 (I'm fairly comfortable with OO programming so AS2 seemed an improvement over AS1). So I guess I could just pick up where I left off and continue learning AS2.

But hang on, AS3 is already here! So should I be diving in with AS3 right from the start? Or is it worth covering the old ground of AS2 before I move on?

And it seems there are now choices to be made with development environment too?! Do I need to be learning about flex? From what I can work out, flex won't be much help for game development, but if I've got a data driven app to build would it be worth getting to grips with flex? I guess flex would be good to know from a career perspective?

If anyone has any advice or can share any experiences on these topics I'd be very grateful!

Thanks

(hope it was ok to post this in the AS2 forum, it seemed like the most appropriate place)

View Replies !    View Related
Need Actionscripter To Tweak Component
http://www.flashloaded.com/flashcomponents/xmlcalendar/

I need an actionscripter who can tweak this component to display more than one date event at a time. Currently it can only display one.

Email me at support@piexec.com for more details.

Thanks,

Mike

View Replies !    View Related
Looking For Good Actionscripter To Help In Megaman Project
I hope this isn't thought of as cross threads as this is seperate in terms of category. We are looking for people with ok-good actionscript knowledge to get involved in an open source flash version of Megaman X. Obviously this we be a tile based game and we already have a 50% complete engine but we'd like everyone to give there opinions, input and skills to making a game for everyone to play! You can either email me at gary@arcadenetwork.com for the fla or visit http://www.ripx.co.uk to look at the current swf.

Please note there will always be problems with the current swf cos it's work in progress so please don't mail me say "It's shooting the wrong way" or "It doesn't jump"!

Currently working on getting Megaman doing everything that megaman should be doing shoot ="A" working on at the moment!
Gary

View Replies !    View Related
F5, Boundaries Etc. - Good Actionscripter Needed
Hi!

I'm making a really strategic game and the coding is fairly simple...I just wanted to know how to make boundaries to stop someone from walking over a certain part. I know that simply it's something like this:

if (this.hittest(_root.wall._x, _root.wall._y, true)) {
} else {
<move the char>
end if

i know thats not right, but its an example. Problem with that is it walks on top of hte boundaries and then stops. I need it to hit the boundaries and stop there.

hope im not asking too much, and thanks in advance,
sean

View Replies !    View Related
PROLIFIC ACTIONSCRIPTER -- Drawing API Question
i'm trying to tween a linedraw to a particular point but have it so that it eases into its length.

i have the basic equation down (dx = (this._x-destx)*.15)) on the x axis for example, but fail to implement this for a line draw.

View Replies !    View Related
Looking To Hire A Flash MX Actionscripter For Project
Looking for a good actionscripter to complete a project, must be able to accept credit cards if outside the US, The project is outlined in an attachment. If intrested please email me with your project estimate in US dollars please. If additional info is required, please feel free to ask before bidding. I may not accept the lowest bid, i'm looking for skill, and dedication more than price. Payments will be in two parts, 1/2 upon successfull completion of a .swf as outlined in the attached file, and the rest upon deleivery of the .fla source file. Futhermore, a permanite way to contact you should change be needed after acceptance.

Thank you for you time
Tim Lawson

View Replies !    View Related
PLEASE HELP Newbie Actionscripter - MovieClip Control
Hello
I have this code:
this.ratio=2800;
dragger.onPress=function(){
this.startDrag(true,0,0,line._width,0);
this.onEnterFrame=function(){
ratio=Math.round(this._x*3200/line._width+2800);
}
}

dragger.onRelease= function(){
dragger.onreleaseOutside=stopDrag;
dragger.onRelease=stopDrag;
}

It moves a silder up and down from 2800 to 6000. As the slider moves up and down, I want to move across the frames of a seperate movie clip. I would reall appreciate any help / pointers in the right direction. Especially as I have a scary boss!

View Replies !    View Related
Useless Actionscripter Looks To Make MP3 Player...
Hi there, im new to actionscript and flash in general but have recently started a portfolio in flash for a uni project. I really like lees tutoral but am having no luck getting it working.


MY code in my mp3player.as file is...
Code:

//Setup sound object
var s:Sound=new Sound();
s.onSoundComplete=playsong;
s.setVolume(75);

//Array of songs
var sa:Array=new Array();

// currently playing song
var cps:Number=-1;


//position of music
var pos:Number;

// load the songs XML
var xml:XML=new XML();
xml.ignoreWhite=true();
xml.onLoad=function()
{
var nodes:Array=this.firstChild.childNodes;
for(var i=0;i<nodes.length;i++)
{
sa.push(nodes[i].attributes.url);
}
playSong();
}

xml.load("songs.xml");

//Play the MP3 file
function playSong():Void
{
s=newSound();
if(cps==sa.length-1)
{
cps=0;
s.loadSound(sa[cps],true);
}
else
{
s.loadSound(sa[++cps],true);
}
playPause.gotoAndStop('pause');

}

//pauses the music
function pauseIt():Void
{
pos=s.position;
s.stop();
}


//unpauses the music
function unPauseIt():Void
{
s.start(pos/1000);
}

//music controls

//play pause toggle
playPause.onRollOver=function()
{
if(this._currentframe==1) this.gotoAndStop('pauseOver');
else this.gotoAndStop('playOver');
}

playPause.onRollOut=playPause.onReleaseOutside=function()
{
if(this._currentframe==10) this.gotoAndStop('pause');
else this.gotoAndStop('play');
}

playPause.onRelease=function()

{
if(this._currentframe==10)
{
this.gotoAndStop('playOver');
this._parent.pauseit();
}

else
{
this.gotoAndStop('pauseOver');
this._parent.unPauseit();
}
}


//next button
next1.onRollover=function()
{
this.gotoAndStop('nextOver');
}

next1.onRollOut=next.onReleaseOutside=function()
{
this.gotoAndStop('next');
}

next1.onRelease=function()
{
this._parent.playSong();
}

and my songs.xml is

Code:

<?xml version='1.0' encoding='UTF-8'?>
<songs>
<song url='MyloNeedYouTonight.mp3' />
<song url='TouchMe.mp3' />
<song url='AtNight.mp3' />
<song url='LoveStoryVsFinally.mp3' />
<song url='T2Heartbroken.mp3' />
</songs>

I dont get any actionscript errors from flash and the onRollover states work, but no music is played!! i have no idea why??

Any help will be greatly appreciated!!!

Rob

View Replies !    View Related
Wits End : Publishing Sizes: Wise Actionscripter Help Needed PLZ
I am hoping to make a button on a launching page that resizes the window and flash movie for a smaller resolutions setting.
i.e: one for 800x600 -
1024x768 -
1280x1024 - for this just window size
I designed it at 1024X768 as it is a portfolio of photos (hopefully that was the way to go.
If not please just hit me with a bat.

Is there a best way to do this as image quality is impotant?

so far I have this, but it makes a window a bit smaller than the movie and crops the right and bottom. therefore the scrollbars reappear.

Code:
on (release) {
getURL ("javascript:NewWindow=window.open('mysite.html','newWin','width=1024,height=768,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');NewWindow.focus();void(0);");
}
I am using MX

View Replies !    View Related
Flash Actionscripter Needed Asap - Multiple Choice Quiz
Hi. I need someone who can help me finish a flash multiple choice quiz i've built. I need the results of the quiz to give a 'mostly a, b, or c' result. AT the moment I have only managed to get it get one answer to be correct whilst the other two are wrong answers - which is not what is required.

Just need someone who knows their stuff and can help asap, as I have a deadline looming.

Re. costs, we could agree an hourly rate or give your overall estimate of costings for the job.

Please call 07939718110 or email info@etchdesign.co.uk

View Replies !    View Related
LoadVariables: Can Two LoadVariables In The Same Script Cause A Problem?
Hi,

It seems that for some reason, my attempt to send vaiables is not working. I'm not certain if its my syntax or the fact that I have a second loadVariables later in my script(with a different name of course). help?

heres a sample of the script that I'm using:

ClickedSendVar = new loadVariables();
ClickedSend = "bob="+bob+"&fred="+fred+"&jim"+jim;
ClickedSend.send(_root.on_card, ClickedSend, "POST");

View Replies !    View Related
Why Is It Green?
I saw that some of the actions are highlighed in green in actionscript library (e.g.ifFrameloaded) can anyone tell me why?

View Replies !    View Related
The Green Box?
K. I know this sounds wierd. But there is a green border around my scroll pane.
Go to www.rookrocks.com and look at the scroll pane on the front page. When it is idle there is nothing. But move it up and down and you will see this wierd green border surround the pane.

I have no clue what that is. It completly boggles me to where that came from and why it is there. Any help why this dreaded thing is there?

View Replies !    View Related
Green
ok,.. i made skin for scrollPane mx2004,.. but when i load ScrollPane in other move i get green border around whole componet when i click on up-down arrow,.. how can i remove that border?


//KM project

View Replies !    View Related
So Green That I'm Covered In Dew
Hi folks, I've just installed this fantastic program Flash5. I have a lot of expierience with AutoCad 2000 and other graphics programs like Corel Draw but I am at the very beginning with Flash 5. What in your opinion would be a good book to purchase? I think I'm a little beyond the "Dummies" style books. I've taken the tutorials and I am working on my own personal website, the reason for my interest is I have family all over Canada and would like to share our photos and family news with them through the web. I want my site to be beyond the ordinary and I can see Flash is the way to go. Thanks for your help!

View Replies !    View Related
Glowing Green
How can I make a movie clip of just a square/circle glow green when the mouse is over it and then revert back to normal when the mouse is withdrawn?

View Replies !    View Related
Green Component Box
I've designed a form with the mx component text input boxes and I set focus at the first item when the frame loads. The goofy green box is put around the first item, and when i leave the frame, either forward or backward in the timeline the green box (by itself) stays! I can't figure out why! thanks!

View Replies !    View Related
[F8] I'm As Green As The Grass At This
Hi, my name is Kim and will probably be a constant visitor here. I am trying to build a website, on it I want to have a beautiful front page with a creeper with flowers appearing (I am probably using the wrong lingo!) then the title appearing letter by letter. Then a main photo which will disappear and others appearing in its place,..then smaller photos underneath, entitled gallery 1, 2 3 etc. Now you have the picture in your head hopefully!!!!! My question is this, do you think a person who has not had much experience could do this? and would it be easier to make in Flash, frontpage, dreamweaver or Swish. I have access to all programs, and don't know which one to put most of my effort into?
Can I use all of these and combine?......take care for now.....Kim

View Replies !    View Related
Green Dots
No actionscript - just a trippy experiment.
I'm sure many of u have seen this before, but it spun me out.
Wife is studyiung teaching at Uni, and came across this "eye trick thing"
..So I made it in flash, just to see if it really worked.
Ok, focus on the black cross hair. If it worked, u will see the effect, if not, u must be one of those guys that can never see the stereoscopic images!
View swf - bigger browse area = better chance
View fla - notice the total absence of anything green in the source file?... whack!!!

View Replies !    View Related
A Green Box Appears
hi every one
once again i have a problem. im using the button compont in a swf but when i load it into another swf file and make the button go to a frame in the loaded swf it leaves a green box where the button was a bit like this

so if you can help thnks because this on got me stumped

View Replies !    View Related
ABRACADABRA... Turn To Green....
Hello!!

You will surelly ask me why i don`t finally buy a flash book instad of asking this, but please Help my pocket!!
:-)!!!

I want to change the color of a text in a button while clicking on an other button:

I've first made a mc whith the text, so as to change it property, but how do I do It???
I think it is whith setproperty??

Thanks for your help, as I'm the one who is turning to green...

Tangoman.

View Replies !    View Related
The Green Guides Of Lurve
This is an oldie, but I did not get any replies (Is this question that lame??)
The question being: Is there any way to set up guides (as in the type to align to for constructing pages/layouts ) globaly. That is, if I have a multi scened movie and I set up guides in one scene to align all my clips, text'n images to etc..Is there a way to have these same guides visible in other scenes??????

Cheers..Cylon

View Replies !    View Related
Green Highlight On Components
(Flash MX 2004)
Hi.

Im trying to remove the green highlight that appears on components when they are in focus. the green highlight effect can be seen in the search field on the macromedia site in the nav bar at the top of the screen. When you click into the text field, a green halo appears around it. How do i get rid of it??? I cant find the answer to this anywhere in the help!

Many thanks,

Tim.

View Replies !    View Related
How Can I Get Rid Of The Green Border Of The Componenet?
When i use the scrollpane component, and i load from another swf, when i scroll in it. it puts this green halo around it to show it active i guess... and it ticks me off i cant get it to go away

i tried scroll_mc.setStyle("fborderStyle", "none");

but that wont work. that take the borde rout but not the halo.. i tried looking in the help and it doesnt say... any clues???

you can see the halo effect by going here www.brandlite.com/uc and clicking on the GRAPHICS section.

thanks.

View Replies !    View Related
Scrollpane Green Highlight?
Hi there

Using MX 2004, I added a scrollpane to the stage of a swf into which I load a movie clip.
When playing this movie, everything works fine.
When loading this movie into another level from a movie on level 0, a green highlight appears around the scrollpane whenever the scrollbars are activated.

Anyone know how to get rid of this green highlight?

I have tried any number of movies containing the scrollpane, and the green highlight always appears when the swf is loaded by another movie.
Border colour, visibility makes no difference.

Thanks a lot
G

View Replies !    View Related
Green Highlights How To Disable?
Hey All,

I've been using textArea to load some text, and I learned to disable borders with:

_global.styles.TextArea.setStyle("borderStyle","no ne");

but either way, the problem I have is that when you click on the textArea, there's a green border than appears. This phantom green highlight that does not fit with my design.

go see problem at

http://www.curtisyee.com/homepage

This is driving me crazy! I remember reading something about it earlier, but can't find it now. Any ideas? Please? Thanks.

curtis

View Replies !    View Related
Can't Make Ground Green
I'm trying to make a ground for the characters to stand on. I tried to make a parallel line on the bottom of the screen, all the way across, then tried to use the paint bucket to make everythin below the line green. It didn't work. How can I make a ground? Can't I just fraw what I want to use? Help me plz!!!

View Replies !    View Related
Green Box Around It When I Click To Scroll
Hi, when I click on the scroll bar, a green thin outline appears all around the box. I will attach a picture here. Is there a way to make this go away?

View Replies !    View Related
[CS3] Green Screen Effect
I have a client who is interested in doing a "Green Screen" effect with the following information... I know it can be done, I am not sure how...

Properties:
Source Path - (optional) fully qualified path to the folder containing the source file with the green screen background Source File - file name of the original file with the green screen background (foreground image) Destination File - New File name of the image with the "new" background Background File - File name of background image

Methods:
Get File - retrieve file
Replace Background - Remove the green screen background and replace with the "Background File"
Reposition Foreground - ability to drag the foreground image (original image less the green screen) on top of the new background to compose the image Resize foreground - provide navigation handles to resize the foreground image on top on the new background Save File - Save the newly compose image with the new background to a file

Presentation:
- Provide a vertical thumbnail list of background images on the right, if necessary, a vertical scrollbar to view additional images.
- Show the source file in a picture box in the center screen.
- Either by double clicking on a background image OR drag the background on to the top of the source file (center image) immediately redisplay the center image with the new background.

All Source Files - A dynamic array or a concatenated string containing all the available SOURCE files to be displayed as hyperlinks (this will be fully qualified with the necessary path).

All Background Files - A dynamic array or a concatenated string containing all the available BACKGROUND files to be displayed as thumbnails (this will be fully qualified with the necessary path).

View Replies !    View Related
Green Horn Question
Hello,

today I start my tests with ActionScript and I found some Tutorials. But I always found tutorials that talk about "Create a new BUtton and Add ActionScript on the onClick Method"... I develop Applications in Java and I will not use the IDE and the "click-together"-principle.

It is possible to develop AS and without to use the IDE-Feature? Just add Button with AS... and the other stuff... I know that I need the IDE but only the AS-Part.

Thanks for help

View Replies !    View Related
Lines Drawn Are Always Green
I am trying to self-teach myself Flash 8 using one of these self-teaching books. I'm baffled by something that, to me, should be simple but I just can't figure out.

After selecting the line tool, no matter what my lines turn out green. Even when I change the line color and stroke height in "Properties" panel, I still get only thin green lines.

Why is this happening? What am I doing wrong? Any help you could give to me would be greatly appreciated.

Thanks!





























Edited: 02/08/2007 at 11:50:37 AM by PJLambe

View Replies !    View Related
Green Screen Productions
We want to create a talking head on our web page and use the green screen technology for our training videos as well. Which of the Adobe products available will work for this?

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved