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




Sendandloadxml Giving Undefined -from Server



hi all,

sendandload xml is working fine locally, which is retrieving a xml file from one separate server.

But if i upload this swf and html to webserver and call the html from there it is giving undefined...

my proj is struk due to this... will anyone help me...
Thanks
Srigiri



Ultrashock Forums > Flash > ActionScript
Posted on: 2005-06-09


View Complete Forum Thread with Replies

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

Flash Mp3 Player Giving "Undefined" Error
Hello,
I have a functioning mp3 player which works fine on my computer but when I upload it to the server it stops working and gives me the "undefined" error where the artists name should be. It also doesn't play the mp3. The directories on my computer and the server are exactly the same. The funny thing is when I link directly to the swf it plays the mp3s and shows the artists text. Any help would be greatly appreciated. Could it be the javascript SWFObject?

Site: http://www.3sonsproductions.com/v2

Direct link to SWF: http://www.3sonsproductions.com/v2/swf/3sons_Nav_01.swf

The code in the index.html that calls the swf.

Code:
<div id="nav">
You need the flash plug-in version 8 or higher. <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Click here</a> to download it now!
<script type="text/javascript">
var so = new SWFObject("swf/3sons_Nav_01.swf", "Nav", "950", "150", "8", "#FFFFFF");
so.write("nav");
</script>
</div>

If Undefined Dont Show Text That Says Undefined
Curious to know, I am using flash, .Net, and MySQL and have elements (text fields) posting in flash.

Question is, if the table in the data base is not holding the var char how can I set the text field in flash to not show undefined and just be blank?

I am about to search the heck out of this but if anyone can hit me with some insight it would be much appreciated.

Thanks in advance,
MT

Stream Works From Local Desktop To Server But Not Server To Server
I have flash media server running on linux. If I launch a test application from my desktop that points to the flash media server (rmtp://myserver.com/live) it works beautifully. However, If I launch an application from my server(http://myserver.com/myapp) and have it point to my flash media server (rmtp://myserver.com/live) i get a rejected from server error. Does anyone know why this would behave like that and how it might be fixed? Thank you.

Server Support The Application But Outside Of Server Does Not To Com Server ?
hi ,

does any body guide me in problem? I have upload my application having video conferencing. It works on the server where i uploaded , but it does't work outside the side(only swf could not connect to com server). Is there any solution ?


Regards
Abdul Ghafoor

I'm Giving Up
Hey guys,
I've spent the last week now trying to do this right but its not working. Its the last part I need help with, so if anyone wants to help me one more time with basically the same problem I'd really appreciate it. Here's the tutorial I was using guys

http://www.flashkit.com/movies/Scrip...-257/index.php

and here is the FLA file that I'm working on.
www.project-09.com/help.fla

Once again I just need the scroll buttons to stop the text when it reaches the very top and button. I keep changing the _y values but it doesn't work. Here's how ArmedJimmy set up the ascript for me. This script was for a diff. scroll box.

on (release) {
if(scroll.Text._y <= 0.5){
setProperty("Scroll/Text", _y, getProperty("Scroll/Text", _y)+10);
}
}

Giving AS To All
Hey, How'd you make it so that you can give action script to everything, which has "enemy" in the instance name, (Such as enemy1, enemy2, enemy3 ect.)

So you would put action in the main frames, that would give the actions to enemy1, enemy2, enemy3, and so on.

(Btw, Say that the action was:

if (this.hitTest(_root.bulleter)) {
enemyspeed = 0;
enemystepsright = 0;
enemystepsleft = 0;
dead = true;
this.gotoAndStop("dead");
}


Thanks

VideoError: 1000: Unable To Make Connection To Server Or To Find FLV On Server
I've spent a lot of time in the past couple of weeks learning Flash. I developed a Flash (swf) file that plays a Flash video (flv) with cue points. It all works very nicely locally, but when I put it on the server and try to access the html file, the Flash control is white (nothing visible) and a popup error message comes up with this error. I've looked all over the web (including non-English sites), tried playing with all the Publish settings I could think of (version check, local/network access, omit trace, enable debugging) and tried adding error handling code to the swf file itself. I've also tried changing the path for the flv file to be relative, absolute and somewhere in between, but nothing works.

Does anybody know what can cause this error?


VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/play()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::showFirstStream()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::setState()
at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::httpNetStatus()



Thanks in advance,
shovavnik

How To Load Images From Client Side When The Swf Is Hosted On A Server Without Uplaoding It To Server?
I'm trying to build a online image resize tool.
problem i face are:

1. I build a button that allow user to browse the file. Once file is selected, it doesnt show full path.
2. lets say if it shows fullpath, but i try to load it into a movieclip, and it doesnt work because the swf file is located at the server and not the client's place.
3. as far as i know, flash can only load images which is located in the same server or internet.
4. if i use php, asp, cgi.. it can only allow me to 1st upload the image then resize later, but this is not wat i want.
5. I need to 1st resize then upload later, because if i have 100 and more photos taken from digicam, it's going to be very slow and heavy.

What i have tested:
1. upload "image3.jpg" into the same directory as the "viewer.swf", and it works.
2. do not upload the swf to the server, but run locally from the user's computer and open "image3.jpg" and it works.
3. upload the swf to the server and open "image3.jpg" from the user's computer and IT DOESN"T WORK!

please help me out.

Thanks~!










Attach Code

//---------- Import -------------
import flash.display.BitmapData
import flash.net.FileReference;

//---------- objects -------------
var dlgOpen:FileReference = new FileReference();
var dlgOpen_Listener:Object = new Object();

//---------- _root.value -------------
//Value transfer from <object> or <Embedded> tag.
var strOutputFileField:String = _root.OutputFileField;
var iMaxPPI:Number = eval(_root.MaxPPI);
var iMaxWidth:Number = eval(_root.MaxWidth);
var iMaxKB:Number = eval(_root.MaxKB);
var bDebug:Boolean = eval(_root.bDebug);
lblNo.text = "Picture " + _root.PictureNo;

//---------- Variables -------------
//var bCropProcess_Flag:Boolean = false;
//var bIsValidFormat_Flag:Boolean = false;

//---------- Listener -------------
//dlgOpen_Listener
dlgOpen_Listener.onSelect = function(selectedFile:FileReference):Void
{
//Flag the crop process has been started
bCropProcess_Flag = true;

//update filename, cannot get full filename because flash don't allow
txtFilename.text = selectedFile.name;

//Create into a movie clip or a bitmapdata
_root.tmpBitmap.loadMovie(selectedFile.name);
CreateBitmap();

};


//---------- Functions-------------
//OpenImage
function OpenFileDialog(event:Object):Void
{
dlgOpen.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png;*.bmp;*.tif"}]);
//_root.tmpBitmap.loadMovie(txtFilename.text);
}
//Load Image into Bitmap Object
function CreateBitmap()
{

}
function sendData(pixels:Array, h:Number, w:Number){
//Create the LoadVars object and pass data to PHP script
var output:LoadVars = new LoadVars()
output.img = pixels.toString()
output.height = h
output.width = w
//The page (and this movie itself) should be in a server to work
output.send("jpeg.php", "output", "POST")
}



//---------- Others -------------
//Add Events and Listener
dlgOpen.addListener(dlgOpen_Listener);
btnBrowse.addEventListener("click", OpenFileDialog);

//Clean up and stop
stop();

























Edited: 11/23/2007 at 07:34:09 PM by zerodevice

SOAP, C++, C#, Or Other Access To Flash Media Server Server Management ActionScript API,
I'm writing code to manage a farm of Flash Media Servers, and I need to call some Flash Media Server APIs from languages other than ActionScript.

I'm happy to write some of my code in ActionScript subroutines, and just use the NetConnection remote call API to invoke those functions. But I can find no way to do this.

I was initially enticed by the alleged support for Web-Services, but was disappointed to find that it only (appears) to support consumption of web services - not PROVISION of web services.

I saw that there was an external API accessible from flash media player itself, but that appears to require embedding the media player in a web browser, etc.

Is it - perhaps - possible to directly invoke the flash-media-player from a C# application using their COM-bridge in .Net? And then use that to invoke remote connections - without having any client side actionscript?

Any other ideas?

Flash Media Server 3 And Windows 2003 Server Help For Live Streaming
Hi
I installed FMS 3 (developer) on my Windows 2003 Web Edition.server online
I booted the FMS 3 and it seems that it works correctly (I did the port scanner and is ok)
But I can not see the live streaming applications.
I followed the guidance of Tom Green
http://www.adobe.com/devnet/flashmediaserver/articles/beginner_vod_fm3.html

In local everything works, but in windows server 2003 does not see the movie: I see only the green bar.

Please, someone has had similar problems to my and resolved?
What should I do on Windows servers?
The firewall is open on port 1395, but I do not have results.

Also, if using Flash Media Encoder 2.5 (locally) and use <Stream to Flash media Server> after entering the username and password I have this error
Primary - [ AccessManager.Reject ] : [ authmod=adobe ] : ?reason=needauth&user ...


Someone can help me?
Thank you

Swf Cannot Display In Apache Http Server. Is It My We Browser / Server / Script
hi there,
i'm using dreamwerver , apache (xampp) on my computer.

the problem is anytime i embed a flash swf in my web pages it does not show / display. i checked the mime types and its there

Quote: application/x-shockwave-flashswf

this is also my embeded script in my html,


Quote:
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent( 'codebase','()=7,0,0,0','width','488','height','277','id','services','align','middle','src','slidesh ow/services','play','false','quality','high','bgcolor','#ffffff','name','services','allowscriptaccess', 'sameDomain','allowfullscreen','false','pluginspage','() ); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="()=7,0,0,0" width="488" height="277" id="services" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="slideshow/services.swf" />
<param name="play" value="true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="slideshow/services.swf" play="false" quality="high" bgcolor="#ffffff" width="100%" height="277" name="services" align="middle" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="" />
</object>
</noscript>



please any help will be welcomed.


thanks
ally

Giving A Variable In An Other MC A Value
I've got an MC's created dynamicaly.
Say...
MovieClip1
MovieClip2
MovieClip3

In each movieclip there is a button.

What I need, is to know wich button is pushed.

I've used the code


Code:
name=this._name
number=Number(substring(name,10));
To get the number value, but the real problem is that I need that value in an other movieclip!

And I cannot reach the variable 'number' cause I don't know the path, for I don't know wich button is pushed, wich I want to know!!!!.

I tried to following code, but that didn't work

Code:
name=this._name
_root.otherMC.number=Number(substring(name,10));
Were I declared number in otherMC, but that didn't work.

How can I use the variable 'number' ?

BytesTotal Always Giving Me 0
var holder = this.createEmptyMovieClip("holder", 1);



holder.loadMovie("aboutUsImage08.jpg");

btotal = holder.getBytesTotal();
bloaded = holder.getBytesLoaded();


trace(holder.getBytesTotal());

Giving Many Mc's Same Functions
hi instead of adding functions to each sperate MC like this:

code:
onClipEvent (load) {
var speed = 0;
}
onClipEvent (enterFrame) {
_alpha -= speed;
}


could i do sumthign like this?:

code:
square = [square0,square1,square2,square3,square4,square5]
for (i=0; i<square.length;++i){
square[i].onLoad = function(){
speed = 0;
}
square[i].onEnterFrame = function(){
_alpha -= speed;
}
}


or this

code:
square = [square0,square1,square2,square3,square4,square5]
i=0
if (i<square.length){
i=i+1
}
square[i].onLoad = function(){
speed = 0;
}
square[i].onEnterFrame = function(){
_alpha -= speed;
}


can u piont me in the wrtie direction?

thanx in advance

Giving Up On ActionScript... Pls Help.
Hello everyone..
I did tried, but things are getting a little weird right now.
I created an imaginary madrix 7x7 where this matrix starts from the center, square 25.
The idea is to move the frame around and show in which xy is located, lets say, square 34 if the user moves x times to the right and y times down.
The problem is that at the beginning it DOES work, but when i do start moving around, it kind of swaps the values of the imaginary matrix.
Quite hard to explain, pls download the code and try urself.
How can i solve this mistery?

Any clues, suggestions, hints?

Here is part of the code:

Code:
function right()
{
mc_all_areas._x = mc_all_areas._x -10;
_global.m_click_x--;
m_v_x=mc_all_areas._x / 240 ;

if(_global.m_click_x % 24 == 0)
{
trace("POSITION: "+ ((25- m_v_x)- (7 * m_v_y)));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._x/240)*1)))));
trace("dist x from center: "+_global.m_sq_x_dist_center);
}
}
function left()
{
mc_all_areas._x = mc_all_areas._x +10;
_global.m_click_x++;
m_v_x=mc_all_areas._x / 240 ;

if(_global.m_click_x % 24 == 0)
{
trace("POSITION: "+ ((25- m_v_x)- (7 * m_v_y)));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._x/240)*1)))));
trace("dist x from center: "+_global.m_sq_x_dist_center);
}
}
function up()
{
mc_all_areas._y = mc_all_areas._y +10;
_global.m_click_y++;
m_v_y=mc_all_areas._y / 320 ;

if(_global.m_click_y % 32 == 0)
{
trace("POSITION: "+ ((25+m_v_x- (7*m_v_y))));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._y/320)*1)))));
trace("dist y from center: "+_global.m_sq_y_dist_center);
}


}
function down()
{
mc_all_areas._y = mc_all_areas._y -10;
_global.m_click_y--;
m_v_y=mc_all_areas._y / 320 ;

if(_global.m_click_y % 32 == 0)
{
trace("POSITION: "+ ((25-m_v_x- (7*m_v_y))));
_global.m_sq_y_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._y/320)*1)))));
trace("dist y from center: "+_global.m_sq_y_dist_center);
}
}

[CS4] Giving Buttons An ID
Hi,
I am new to flash and i am trying to assign an ID to a button to pass to a php script. Of course i could hardcode the url so that on click of each button it passes its id, however, this would involve repetition. Instead i want to specify
an id to each button that i can reference in a generic actions script as a parameter to my php. e.g

each button has an id variable $id = 1 then in the action script i can say on click getURL ( "example.php?id = $id");. A simple solution to you gurus i am sure.

I have searched hi and low for a simple solution to this. As a coder by profession i know there must be a simple way to achieve this, can someone point me in the right directions?
Many thanks,
Jim

Giving An Order To A Mc
Hello i have a question...lets say i have mc_1 on my main time line. And inside this mc there are certain animations. At a point if something happens on the main stage mc_1 plays the animation on frame 5. Now how can i tell my mc_1 to go to and play something else on the main timeline when it is on frame 10?
Should i use the clipevent? How can i achive this....thank you so much for your time..!

AFP Giving Me Fits
Every time I go to a site that uses AFP it says that I do not have the latest version and directs me to the Adobe site. I go there and dutifully upgrade that which I have "upgraded" many times before and it still does not work.

The only thing that has been successful is to simply uninstall the Flash Player and then use RegScrub to eliminate all vestiges of it from the registry and then reinstall and reboot until the next time it fails.

What is happening that makes the program not work even though I already have the latest version and why don't the "upgrades" work causing, me to have to jump through hoops?

The same thing happens at Youtube.com, military.com, etc.

Other media viewers I have installed are WMP, VLC Media Player, AvRack, QuickTime, Google Video Player. I also have recording software CamStudio, and Audacity. I use WMP and VLC regularly and seldom use the rest. I nearly never use the recording software.

Any suggestions?

Giving A Box A Shadow...
Like this one has: http://www.chillskatemag.com/

It's probably the most simplest thing in the world, and yet I can't figure it out and can't find any sort of tutorial related to it.

Something tells me I have to draw with the paintbrush, but when I do the brush isn't soft enough.

Anyone care to help a lil stupid n00b?

Giving Up On ActionScript... Pls Help.
Hello everyone..
I did tried, but things are getting a little weird right now.
I created an imaginary madrix 7x7 where this matrix starts from the center, square 25.
The idea is to move the frame around and show in which xy is located, lets say, square 34 if the user moves x times to the right and y times down.
The problem is that at the beginning it DOES work, but when i do start moving around, it kind of swaps the values of the imaginary matrix.
Quite hard to explain, pls download the code and try urself.
How can i solve this mistery?

Any clues, suggestions, hints?

Here is part of the code:

Code:
function right()
{
mc_all_areas._x = mc_all_areas._x -10;
_global.m_click_x--;
m_v_x=mc_all_areas._x / 240 ;

if(_global.m_click_x % 24 == 0)
{
trace("POSITION: "+ ((25- m_v_x)- (7 * m_v_y)));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._x/240)*1)))));
trace("dist x from center: "+_global.m_sq_x_dist_center);
}
}
function left()
{
mc_all_areas._x = mc_all_areas._x +10;
_global.m_click_x++;
m_v_x=mc_all_areas._x / 240 ;

if(_global.m_click_x % 24 == 0)
{
trace("POSITION: "+ ((25- m_v_x)- (7 * m_v_y)));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._x/240)*1)))));
trace("dist x from center: "+_global.m_sq_x_dist_center);
}
}
function up()
{
mc_all_areas._y = mc_all_areas._y +10;
_global.m_click_y++;
m_v_y=mc_all_areas._y / 320 ;

if(_global.m_click_y % 32 == 0)
{
trace("POSITION: "+ ((25+m_v_x- (7*m_v_y))));
_global.m_sq_x_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._y/320)*1)))));
trace("dist y from center: "+_global.m_sq_y_dist_center);
}


}
function down()
{
mc_all_areas._y = mc_all_areas._y -10;
_global.m_click_y--;
m_v_y=mc_all_areas._y / 320 ;

if(_global.m_click_y % 32 == 0)
{
trace("POSITION: "+ ((25-m_v_x- (7*m_v_y))));
_global.m_sq_y_dist_center = Math.abs((_global.m_start_square - ((_global.m_name_cur_square -((mc_all_areas._y/320)*1)))));
trace("dist y from center: "+_global.m_sq_y_dist_center);
}
}

Giving A Box A Shadow...
Like this one has: http://www.chillskatemag.com/

It's probably the most simplest thing in the world, and yet I can't figure it out and can't find any sort of tutorial related to it.

Something tells me I have to draw with the paintbrush, but when I do the brush isn't soft enough.

Anyone care to help a lil stupid n00b?

Giving An Id To MC In Loops
i have a strip of thumbnail pictures that is created with attachMovie like this:

Code:
function BuildStrip() {
for (i=0; i<=35; i++) {
this.targetClip.attachMovie("frame", "frame"+i, i);
targetClip["frame"+i]._x = 103*i;
targetClip["frame"+i].loadMovie("thumbnails/an"+i, ".jpg");

}
}
BuildStrip();
each picture needs to open a diffrent enlargment in html. so i need to id each mc and attach a diffrent code.
and i hink i need help with that......

Giving Player With CD
I am creating a Corporate CD. But my problem is giving the player with. I published it as an exe to. Will that solve my problem? And if someone maybe knows how to supply acrobat to.

Giving Parameter To Swf
Hi,

I have a question.
Is it possible to give a parameter, say a message, "completed" then making the flash character to "speak" the message? if so, how wuold one do this?

Any help would be muchly appreciated. Thanks in advance!

Flash Media Server Only Works Local On Server
i just installed a developers version of the flash media server on a windows server.
i don't have any problems while starting my applications on the server itself.
the problem only appears when i try to connect from a different computer which is not located in this network,
at least a connection from "outside".

there is no firewall right now on that server that this can't be the problem.

when starting the media server by the managment console i also do login with the domain-name of the server and not with localhost...locally all is working well...but not from outside.

i also try to test port 1935, 443 and 80, but none succeed from outside.

what i also tried is to run a version of the flash communication server 1.5 on my home pc also running a windows server. in this case i had the same problems: could only get a connection locally but not from outside...i.e. the connection to the server failed.

anyone an idea?

Immitating Flash Streaming Server With Development Server
We have an FMS 2 application that we are getting ready to port to FMS 3. It works on the development server, which I understand, is full featured like the Flash Interactive Media Server. Since our customers are primarily K-12/colleges, and our application only streams very low quality audio we would like to suggest that our customers purchase the cheaper FMS Streaming Server 3.

The question:

Is there a way to make our Flash Media Development Server act like Flash Media Streaming Server with out purchasing a license, in order to test application compatibility? We don't want to have to purchase the streaming server only to find out it won't work and then pay another $3,500 in order to upgrade to FMS Interactive, when we could just pay $2000 to upgrade our existing FMS 2 license to FMS Interactive.

LoadVars With Server Side ActionScript (Flash Com Server)
I'm making a simple login application. I want to send a username/password while connecting to FCS, and have the SSAS of main.asc connect to a PHP document that will lookup the username/pass and make the necessary checks for the information in a mySQL database.

I'm trying to use the LoadVars() object, maybe you can't do this with SSAS? Or maybe i need to include some other actionscript file (I know when you use components you have to specify load("components.asc"); at the top of the main.asc file --- i'm hoping it's something that easy )

This is my first FCS app, I've done a lot of research but this one's sort of stumping me. I keep getting an error that looks like this:

/opt/macromedia/fcs/applications/my_app/main.asc: line 9: ReferenceError: LoadVars is not defined

Here is my code for main.asc:

ActionScript Code:
application.onAppStart = function(){    this.userCount = 0;    this.users = [];}application.onConnect = function(thisClient, username, password){    thisClient.username = username;    //authentication functions    var my_lv:LoadVars = new LoadVars; //line 9 where error happens    my_lv.load("http://10.10.1.200/_websites/quickconnect/verify.php?username="+escape(username)+"&password="+escape(password));    my_lv.onLoad = function(success){        if(success == true){            thisClient.username = my_lv.username;            thisClient.email = my_lv.email;            thisClient.firstname = my_lv.firstname;            thisClient.lastname = my_lv.lastname;            thisClient.usertype = my_lv.usertype;            this.users[this.userCount] = thisClient;            this.userCount++;        }    }    //if login is okay         //add user to users list    this.acceptConnection(thisClient);  }

LoadVars With Server Side ActionScript (Flash Com Server)
I'm making a simple login application. I want to send a username/password while connecting to FCS, and have the SSAS of main.asc connect to a PHP document that will lookup the username/pass and make the necessary checks for the information in a mySQL database.

I'm trying to use the LoadVars() object, maybe you can't do this with SSAS? Or maybe i need to include some other actionscript file (I know when you use components you have to specify load("components.asc"); at the top of the main.asc file --- i'm hoping it's something that easy )

This is my first FCS app, I've done a lot of research but this one's sort of stumping me. I keep getting an error that looks like this:

/opt/macromedia/fcs/applications/my_app/main.asc: line 9: ReferenceError: LoadVars is not defined

Here is my code for main.asc:

ActionScript Code:
application.onAppStart = function(){    this.userCount = 0;    this.users = [];}application.onConnect = function(thisClient, username, password){    thisClient.username = username;    //authentication functions    var my_lv:LoadVars = new LoadVars; //line 9 where error happens    my_lv.load("http://10.10.1.200/_websites/quickconnect/verify.php?username="+escape(username)+"&password="+escape(password));    my_lv.onLoad = function(success){        if(success == true){            thisClient.username = my_lv.username;            thisClient.email = my_lv.email;            thisClient.firstname = my_lv.firstname;            thisClient.lastname = my_lv.lastname;            thisClient.usertype = my_lv.usertype;            this.users[this.userCount] = thisClient;            this.userCount++;        }    }    //if login is okay         //add user to users list    this.acceptConnection(thisClient);  }

Flash Media Server Vs PROXY Server/firewire
Hi All,

Can anyone help us, we have a multiway communication app developed in flash utlising FMS for audio communication. But now we find out that the end client is sitting behind a proxy server. What are the best ways of being able to send the communication through their poxy server without making major changes to the server itself? Otherwise this whole project is floored because no connection can be made.
note: it works fine when the client is not behind the firewall.

Any help would be greatly apreciated.

Gz

>> Please Help - Preloader Is Giving Me Hell
I am trying to build a preloader using this tutorial and it isn't working too great.

As of now, I have this in the second frame('done' is the 4th frame):

loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
gotoAndPlay ("done");
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}


and this in the third frame('start' is the first frame):

gotoAndPlay ("start");


For some reason, when I test the movie, it starts off at the 32nd frame of the main scene. It doesn't even show the preloader scene. >

If you want you can check out what the preload scene/main scene look like(an older version) here.

Thanks for any help you can give. Just throw out any ideas.

- Matt

Giving Rollovers The Finger, Or Not, Actually
Heyas.

Im trying to have images in my movie that have text associated with them when you roll over them. It's not dynamic or anything. The problem is that I dont want that stupid little finger to show up, since that would make people think that they've stumbled onto a button- and clicking on something with not functionality can really frustrate a user. I tried making my images a movie clip with 2 frames and giving it a mouseover event, but mouseover events only work with buttons. Buttons always give me the little hand cursor. And the images will be moving around and resizing, so I cant set coordinates for the rollover to work on.

Is there a way to do what Im proposing? To have a rollover without changing the cursor? Thanks for any help.

How Would I Go About Giving A Movieclip Hit Points?
Just wondering how i would go about making a movieclip that has hitpoints and then has an exchange value to show how many hitpoints it has left until it gets to 0 and plays an animation?

Giving Away An I-Mac And $1000 Cash
For some reason I wasn't able to post this in the COMPETITION Forum, but I can here.

For beginners and Pro's, I've found a site that's got a monthly competition for designing static and Flash Icons for use in electronic slot machines. I haven't won yet, but here's the URL and details from the site if anyone wants to check it out:

http://www.spam.com/

Competition Details

Bigfoot Gaming is pleased to offer a monthly or bimonthly competition to artists, to turn their creativity and talent into cash and prizes.

Do you think you can design better icons and game themes than what you see in your local casino?

Enter now and attempt to become one of our Regular Winners.

Create a set of image symbols, which are based on a similar theme, or the suggested theme of the month.

This Month's Theme: Love Potion

Prizes awarded based on creativity, detail, and quality of the entry.
Category 1 range up to an Apple Mac and / or $ 1,000 cash.
Category 2 up to $ 500 cash


--------------------------------------------------------------------------------
Contents

1. Summary
2. Purpose of the Competition
3. Entry Category 1
4. Entry Category 2
5. Files Specifications
6. Making an Entry
7. Acceptable Tools
8. Judging and Prizes


--------------------------------------------------------------------------------
1. Summary
Create a set of image symbols which are based on a similar theme, or the suggested theme of the month.
Entries are not restricted to the monthly theme, but it is used only as a reference point for those who can't think of a theme.
The difference between a Category 1 and Category 2 entry is the quality and tools used.
Any program may be used to create the symbols images.
The symbol images must be 300 pixels wide by 250 pixels in height.
Image resolution must be 150 dots per inch, however higher resolution is encouraged.
Include a text file explaining how you made you images, and how long it took to make.
Back to the Top


2. Purpose of the Competition

1. The intentions of the competition and what we hope to gain from it.

The competition is open to all applicants that satisfy the terms and conditions. We seek and encourage, and will promote Artist from all works of life to think creatively to create Themes, name and matching symbols.
You do not have to be a professional, or educated in this field! Experts are welcome, as much as amateurs with cheap tools. We are impressed by creativity and talent.
Bigfoot Gaming reserves the right to reject and remove any submission, at any time, for any reason.
Judge for yourself what category you should be in.
(Minimum entry for Category 1 is PSD or AI files)
Back to the Top


3. Entry Category 1

An entry for Category 1 must consist of the following :

A game theme name
7 game themed symbols, 2 static, and 5 animated. (See static files and animated files)
Max 360 second animation of themed bonus game. (See animation files)
Themed splash screen for game. (See splash screen files)
A text file describing any game rules, which tools were used to make the images where made, and the time it took to create.
Back to the Top


4. Entry Category 2

An entry for Category 2 must consist of the following :

A game theme name
7 game themed symbols. (See static files)
Themed splash screen for game. (See splash screen files)
A text file describing any game rules, which tools were used to make the images where made, the and the time it took to create.
Back to the Top


5. Files Specifications (General)

File size (per symbol or animation or splash screen) are not to exceed 5MB. We do not have a bottomless hard disk (unfortunately!).

5a) Text Files
A text file must be included with an entry. It must include the game theme name, any game rules which trigger the animation, which tools were used to make the entry, and the estimated time it took to create the entry.

5b) Static Symbol Files
Category 1
Static (non-animated) themed symbol image files must be :

300 pixels in width and 250 pixels in height,
24-bit true colour
Multi-layered Adobe Photoshop 5 (or later) .PSD format, or, Adobe Illustrator 9 (or later) .ai format.
Layers must include a separate background layer, if a background is a part of the symbol.
Category 2
Static themed symbol image files must be :

300 pixels in width and 250 pixels in height,
24-bit true colour
JPG, TIF, GIF, or MS-Windows BMP format.
(Animated GIF may be included with Category 2 entries).
5c) Animated Symbol Files

The animated symbol frame sequence may be up to 16 frames in length, but at least 4.
The animated symbol sequence may contain up to 12 different frames.
Animation files may be up to 360 seconds long. Animation submissions must be of 3D Studio Max (.max), Macromedia Director (.dir), After Effects or AVI file format.
Each frame of the animated themed symbol image files must be:

300 pixel in width and 250 pixels in height,
24-bit true colour
Multi-layered Adobe Photoshop 5 (or later) .PSD format, or, Adobe Illustrator 9 (or later) .ai format.
Layers must include a seperate background layer, if a background is a part of the symbol.
5d) Themed Splash Screen
Category 1 - 1,200 pixel in width and 800 pixels in height.

24-bit true colour,
Multi-layered Adobe Photoshop 5 (or later) .PSD format, or, Adobe Illustrator 9 (or later) .ai format.
Layers must include a seperate background layer, if a background is a part of the splash screen.
Category 2 - 1,200 pixel in width and 800 pixels in height.

24-bit true color, JPG, TIF, GIF, or MS-Windows BMP format.
Back to the Top


6. Making an Entry

Entrants must agree to the terms and conditions before entering the competition.
Entries must follow the above guidelines in order to be eligible for prizes.
An account must be created before an entrant can make a submission.
Your uniquely generated account password will be sent to your email address.
Files should be zipped before submitting via the Submit Entry page
6a) Web Entries

Files up to 5 Megabytes can be uploaded (one at a time), after logging into the submission area.

Once receiving your password, (refer making an entry) you can log in and upload your file entry.
6b) Mail Entries

Entries will also be accepted via mail. The mail address is available once you have registered.
Mail submissions must be on CD in PC or MAC format.
Back to the Top


7. Acceptable Tools

Any tools hardware, software may be used in the production of the images, however the final submissions must conform to the Symbol file definitions.

Back to the Top


8. Judging and Prizes

Prizes awarded based on creativity, detail, and quality of the entry.

Category 1 range up to an Apple Mac and / or $ 1,000 cash.
Category 2 up to $ 500 cash
All decisions of bigfootgaming.com. are final and no correspondence will be entered into.
Late submissions will automatically be entered into the next competition round.
The winning entrant will be notified by email or via the web site and prizes will be mailed out within 24 hours of successful entries being chosen.
You may not use copyrighted works as a part of your entry.
Back to the Top


[Edited by david petley on 12-30-2001 at 03:38 PM]

Not Giving A Random Alpha
Im duplicating some clips on stage but there isnt a random alpha which i wanted..

Is this line of code wrong..

_root["ringInstance"+i]._alpha = random (30);

Giving Movieclips Their Own Code
I'm making a small game. The way I have it now, is that I put an original of each movie clip that I'll need somewhere to the side so I can duplicate it whenever i want to. These movie clips have their own code to tell them what to do.

The way I would like to make it is that I link all of the movie clips to the stage from the library instead of having them all on stage to start with. So is there a way that I can call duplicateMovieClip to duplicate a movie IN my library, but also have all of the code that I want it to have?

Giving Buttons Actions..
is it possible to give a button more than one action after it's pressed?? So after pressing the button, it loads a movie clip and then plays another one after it's done.

Giving A Dynamic Button A Value ?
Is it possible to add a value to a button.

At the moment i have written an array of buttons dynamically to the screen
like this

Paul - Button Here
David - Button Here
Karl - Button Here
Rich - Button Here

When a button is pressed it will go to another frame and show an individuals results. So i need to give the button the individual ID.

note: there is a button inside the mc called 'Detials'

this is how i have created me buttons

for (i=0; i<OrgNameArray.length; i++) {
this.attachMovie("yourBut", "c"+i, i);
var q = this["c"+i];
q._x = 605.9;
q._y = 125 +(q._height*i);
q.textf.text = OrgNameArray[i];
}

Giving Each Duplicated Movie His Very Own ID
I would like to know if (and how) I could give each duplicated movie a unique ID (a number).
I tried it, but it worked not very well... The ID must be a variable. This variable must give me the possibility to load the corresponding external MovieClip.

someone who know a solution?
thanks
dries

Loader, Giving Problems
Hey I have a little movie problem.
its a picture as background and some text that fades in and moves from right to left and then a stop. very easy..
but when i add my loader only the picture shows not the text effects..
the loader works ok but i can't figure out why it doesn't play all of the frames.. any help ?

no mc's no code nothing just a stop.
thanks.

Keeping Score Giving Me A NaN
Hello, I am attempting to reuse code that once worked for me in Flash 5.
In the process of making a quiz I have multiple choice answers each with a button. The right answer has this code.

on (release) {
_root.score = _root.score+10;
gotoAndPlay(X);}

X being the next slide. Repeat process for 10 slides.

the wrong answers just have
gotoAndPlay(X);}

at the end of the quiz I have an empty dynamic text box with the variable "score"

it used to work, add up all the numbers and give me a total. Now I just get NaN....which I understand to mean Not a Number. Why so cruel is the MX? Please explain a better way or what I am doing incorrectly. Thank you much

Giving Flash More Memory
When i go to publish a mp3 file I get a message about Flash is out of memory. How do you give flash more memory? I am using windows 98. I cant seem to find out ho wto do this. any help would be great.
thanks

Giving Controls To A User
We're just about to quote for a job...and was wondering if Flash has the capabilites to allow a user to change the dimensions of an object.

Lets assume its a toy box...can we give three input boxes where the user can enter their choosen length, depth and height of the toy box and flash redraws this?

I could code this in JavaScript and DHTML, but I think Flash would be better.

Finally if it can be done...could it cope with a taper, so the base rectangle of the toy box is slightly smaller than the lid rectangle of the box, creating a taper?

This Form Is Giving Me A Headache
i have a form on my site that loads from a main movieclip. when u click send, its sends the email, but stays on the "waiting for confirmation" frame. when i load it directly (not from the main swf) it works perfect, how do i fix this?

if u dont understand go to http://www.rocketinnovations.ca/skel1.html (then contact)

Giving Users Control
With things like "eval" and such, is there anyway to turn text into a command? I'm thinking of something that lets user edit their own actionscript, but how might you turn the input into commands?


Thanks for the help

[Help]giving Button Action
ok, so ive got my button and wat i want it to do but ive got no idea how to script it to do so


now what i want is wen i click on the button the buble will scroll in from the bottum right to a certain width & once the botton has been clicked it changes so wen i click it again the buble scrolls out
thanks in advance

[F8] Giving A Presentation On Flash?
Hello,
What would you include if you had to give a presentation on Flash to a school?
Do yo have any suggestions?
Thank you.

Giving Input Text A Var Name?
Im trying to create an email form using AS3 and PHP by sending variable names between the two...

However it wont let me enter any value in the Var: part of the properties window and when I try it tells me that this feature is not supported by AS3 and I must target AS1 or 2.

Is there a way of assigning var names to input text fields for sending to php in AS3 or do you have to use a diff method when dealing with PHP in Flash CS3?

Many thanks...

Giving References In Parameters
when giving a parameter to a function, such as a point, the function uses a copy of that point. how do you give a reference instead of a copy?

Giving A 2d Square A 3d Effect
I have a picture that I want to give the feel that, instead of facing the monitor, is turned a bit so that the side closest to you will look bigger than the side furthest away from you. I messed around with the skew, but that really doesn't give the right effect. Does anybody know how this would be done.

If you want an example of what I am talking about, look at itunes (7.1) in there online shopping section. Select movies or cds or something and you will see what I mean. I can figure out how to do everthing else except for the side rotation.

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