[CS3] Connecting Two Swf Files
just a quick Q really if you could help, i wanted to link my swf files. i have one swf file called (ball.swf) where i have a ball moving up and down realy simple. I also have one swf file called (test.swf) this is where i have a test button that i want; when i press to guide me to the swf file with the moving ball. i gave my button an instance name allready and called it b1.
please help (iam using cs3 even though i am using action script 2)
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-07-2008, 07:07 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Connecting Swf Files
I have a main menu and three other swf files. i want the buttons on the main menu to run the other swf files what code can i use to do this or would it be better to publish the fla files as exe files then could i use some code in the buttons on the main menu to run the exe files. Also is there any code that closes a exe file as ideally i would like to place them onto a autoplay CD
Connecting Exe Files
How can I make two Flash exe files trigger each other when each ends in order to get a long exe movie composed of both to run in endless sequence?
Connecting Data Files Like .xls
Hai
Can anyone help ...
Is there any possibility in flash MX, connecting Data files like .xls etc. in run time through action script?..some example please...
Thanks.
Connecting Data Files Like .xls
Hai
Can anyone help ...
Is there any possibility in flash MX, connecting Data files like .xls etc. in run time through action script?..some example please...
Thanks.
Connecting Files With Actionscript 3.0
i need to connect fla files to each other. how do i do it. i have a home.fla, contact.fla, and other fla files. how do i connect the so that it's all one site.
at work we're using a framework that does it. but i'm not familiar with frameworks and would rather not use this one because it is giving me trouble when i tell it to use tweens i made with TweenMax.
can anyone help me?!?!
thanks
Connecting 2 Swf Files Problem?
i made 2 swf files. and first one loads another. but second one could't connect first one. second one uses MediaPlayback component. and if the second one's movie finishes how can play first one's frame. and here is my code.
first swf's code
loadMovie("video1.swf","_level2");
second swf's code
mc_video.complete =function(){
unloadMovie("_level2");
_root.gotoAndPlay(10);
}
and what is my problem?
Connecting Files With Actionscript 3.0
i need to connect fla files to each other. how do i do it. i have a home.fla, contact.fla, and other fla files. how do i connect the so that it's all one site.
at work we're using a framework that does it. but i'm not familiar with frameworks and would rather not use this one because it is giving me trouble when i tell it to use tweens i made with TweenMax.
can anyone help me?!?!
thanks
Connecting Swf Files Using Flash.net.LocalConnection Class
Hi, I am trying to connect two different swf files one is a BANNER that appears on the top which has menu buttons, one of the button is services, now I also have another swf file called PANE on the same page which loads buttons from an xml now i want it to load a different xml everytime a menu button is clicked so when lets say services is clicked in BANNER I want PANE to load buttons according to the XML pointed out by serviecs button, I have looked over the web it seems like LocalConnection might be able to do so butI have no knowledge about this class... does anyone have any idea about this. any help would be great.
Rick
Importing Files/ Opening Files In Files/ Adding Files Into Scenes.
Alright Here is the deal.
I got some movies, which are seperate FLA. files, and I want to eventually add all these 4 seperate files, into scenes in one main FLA. file. How do I do this so that I have the symbols ect. I am pretty sure you can't just copy/paste.
Which FLASH** guru out there can lead me in the right direction?
greatly appreciated...
*g.guru.
Connecting SWF's
Is there any way to connect to .swf files to each other. I have an html page with buttons down the left hand side. Basically, I want it that when a user rolls over the button an image fades in on the right hand side. The main body text would be inbetween the two files. Someone please help!!!!
Thanks!
Connecting 2 Swf's
I have 2 swf files,
in the first swf I have 7 buttons, by clicking on one of them I want to go directly to the right page in the second swf.
I tried following but it doesn't work
on (release) {getURL("filename.swf","_parent");
_root.mc.gotoAndPlay(2);
//with _root I want to go to the right mc in the second swf
}
Connecting 2 Mc's
I'm looking to keep my navigation box "attached" to my stage at all times, even if the stage moves/changes size. Example: http://www.nooflat.nu
If the stage changes size, I don't want the navigation changing size, but just to follow the stage
Ideas? Does this have anything to do with the linkage properties?
Connecting AS3 And FMS
I need to get messages from Flash Media Server. (using AS3) I've had a hard time finding any good books or even info on how to setup a NetConnection to listen for a Flash Media Server message and to convert the binary data to info I can use. Can someone please point me in the right direction???
Thanks!
Connecting To A FMS
Hello
I'm new to this forum and to AS3. I downloaded some code for a videoplayer from: http://www.thetechlabs.com/video/how...3-videoplayer/
I am able to place my flv file, (MB.flv) in the code and it works fine, but when I try to connect to a FMS server I get the following error message:
ArgumentError: Error #2126: NetConnection object must be connected.
at flash.net::NetStream/flash.net:NetStream::construct()
at flash.net::NetStream$iinit()
at videoplayer_fla::MainTimeline/initVideoPlayer()
at videoplayer_fla::MainTimeline/videoplayer_fla::frame1()
Here is part of the code that I changed:
//var strSource:String= "hancock-tsr2_h480p.flv";
var strSource:String= "MB.flv";
and
// ncConnection.connect(null);
ncConnection.connect("rtmp://71.240.187.34/babyVultures");
The code blows up when connecting to the FMS
Does anyone have any ideas what my problem is?
The only thing I have changed is I added my flv file to the code remarked out the original line and added the FMS connection statement remarked out the null statement.
Frustrated with AS3
Connecting To AIM
I'd like to connect to the AIM service using AS3. AIM Express is actually a pretty good example of what I want to do. Basically just connect to the AIM service, send/receive simple messages, get buddy list and buddy status, set own status. Maybe send/receive files if possible.
Does anyone have any idea as to how to do this?
Thanks.
Connecting 2 Fla's
The first fla is an intro with also 7 buttons on it.
I made a second fla, the real internetsite, where you can find more info about the buttons on the intro.
If I click on button 4 (intro) I want to go directly to the currentpage in the other fla and not to the firstpage of the second fla.
I hope you'll understands what I mean
Connecting FME To FMS
the log looks like this
10:47:54 Session Stopped
10:47:58 Primary - Stream Status: Success
10:47:58 Primary - Stream Status: NetStream.Record.NoAccess
10:47:58 Primary - Unable to stream. Network problem at server.
10:47:58 Session Started
10:47:58 Audio Encoding Started
10:47:58 Video Encoding Started
I commented out the line in main.asc that prevents sharing.
What am I missing in the setup?
Connecting It All Together
How do I connect all these pages that I have created in flash 8 pro.
I was using this site below,
http://www.youtube.com/watch?v=DSCMxXssyWY
but what confusses me is this code thing. I know where to put them, but the problem I think is that I am not placing them in the proper content.
Do I place the codes like -
if
(_root.getBytesLoaded()
!=
_root.getBytesTotal()){
gotoAndPlay(1);
}
or like
if
(_root.getBytesLoaded()!=_root.getBytesTotal()){gotoAndPlay(1);}
also another code for the buttons so I could click on them so it changes pages is -
stop();
home_btn.onRelease =
functiion () {
gotoAndStop(3) ;
}
music_btn.onRelease =
function (){
gotoAndStop(4) ;
}
contact_btn.onRelease =
function (){
gotoAndStop(5) ;
}
or do I place it in the action box like
stop();home_btn.onRelease =functiion () {gotoAndStop(3) ;}music_btn.onRelease =function (){gotoAndStop(4) ;}contact_btn.onRelease =function (){gotoAndStop(5) ;}
Now when I put the code straight across, and then test the movie. The movie just flickers between the screens in an edndless cycle. A message appears in a box called Output -
**Error** Scene=Scene 1, layer=Actions, frame=3:Line 1: Syntax error.
stop();home_btn.onRelease =functiion(){gotoAndStop(3);}music_btn.onRelease =function(){gotoAndStop(4);}contact_btn.onRelease =function(){gotoAndStop(5);}
Total ActionScript Errors: 1 Reported Errors: 1
when I put the text in the action where it is stacked on diffrent lines, the same thing happens. It just flickers between all the screens and a diffrent message appears in this output box.
**Error** Scene=Scene 1, layer=Actions, frame=3:Line 3: Syntax error.
functiion () {
Total ActionScript Errors: 1 Reported Errors: 1
so can someone help me out here on how to get these darn buttons to work.
is there an easier way like the hyper link - behaviors, add, web, go to web page
If you have any questions please e-me at kory@live2net.ca.
Thanks
Kory
Edited: 10/30/2008 at 06:59:30 PM by korytodd
Connecting MC:s
Hi all!
I'm making a mindmapping client in Flash but i got a problem. I have made Mc:s for typing in diffrent things in a text box and now i want to connect two or more mc:s graphically with a single line.
Lets say i got three mc:s on the stage and now i wan to connect them like this:
1----2
...../
...../
....3
I also got dragfunctionallity on the mc:s. How on earth can i connect the with lineTo() function?
I want the lines to be dynamically so if i move, lets say MC 3 from above, both lines should follow.
Any Ideas??
Connecting It All Together
hey, I know this is possible becuase I've done it in the past but I was talked through the process. Sorry if there terms aren't used (or used incorrectly).
So here is my layout.
I have stage 1: Has action script stop(); and then a layer with the movie clip "stage" and these are all on frame 3 (preloader in on frame 1).
Within the mc "stage" there are four layers "actions, buttons, content, bg").
Within the buttons layer I have the following code
Code:
b1.onRollOver = over;
b1.onRollOut = out;
b1.b1_button_text.b1_text.text = "HOME";
b2.onRollOver = over;
b2.onRollOut = out;
b2.b1_button_text.b1_text.text = "PORTFOLIO";
b3.onRollOver = over;
b3.onRollOut = out;
b3.b1_button_text.b1_text.text = "RESUME";
b4.onRollOver = over;
b4.onRollOut = out;
b4.b1_button_text.b1_text.text = "PRODUCTS";
b5.onRollOver = over;
b5.onRollOut = out;
b5.b1_button_text.b1_text.text = "CONTACT";
function over() {
this.gotoAndPlay('b1_rollover');
}
function out() {
this.gotoAndPlay('b1_rollout');
}
within the content layer I have various tweens that show various content (ex: frame 1-50 shows Contact (with a stop action at 50, frames 100-150 show home (stop actions at 150) etc.. (note these aren't actual position and frames in my movie, just examples).
Alright, now within the background I have two of these sections. 1-150 is bg_in which animates the background into play (with a stop at 150) and 160 - 210 animates the bg out (with stop at 210)..
Ok, now that its all clear what I have this is what I want.
I want it so that if someone clicks on b1 "HOME" it goes to the preloader and then somehow through actions script at the end of the preloader it goes to the bg movie where it plays the bg in and then this layer has actionscript in it that determines that I had pressed "Home" and then plays the "Home" content movie. After that if someone clicks "Contact" it plays the bg out and then goes to the preloader and plays bg in and then bg determines that I have clicked "contact" and playst he contact content.
I think I'll stop there becuause I may be confusing and you probably already know what I am talking about.
Basically, I want this. I want each button to first play bg_out and then go to the preloader and then play bg_in and then load the content for that specific button. Of course, when the movie first starts it must play BG in and play "Home" without having to have clicked the button and I want it so that if they click the home button again it does not play the movie again becuase it already knows it is at the "home" position. This also must be the same with the other buttons.
Hmm, I might have just gotten ahead of myself but I know that i have done this before haha. I basically assigned each button a number value and on click the value was changed.
Connecting MC:s
Hi all!
I'm making a mindmapping client in Flash but i got a problem. I have made Mc:s for typing in diffrent things in a text box and now i want to connect two or more mc:s graphically with a single line.
Lets say i got three mc:s on the stage and now i wan to connect them like this:
1----2
...../
...../
....3
I also got dragfunctionallity on the mc:s. How on earth can i connect the with lineTo() function?
I want the lines to be dynamically so if i move, lets say MC 3 from above, both lines should follow.
Any Ideas??
Connecting To An Mdb
i need help connecting to a microsoft access database through flash.. is there any way that i could do this? i think that i have seen it done....http://www.derbauer.de and would like to make it possible to make my site in pure flash.. well thanks for your help... i will check back soon
Connecting Flash And JSP
Hi,
I'm trying to load variables from a jsp file but it's not working
the jsp always returns the value of that variable, and flash doesn't recognize that this variable = it's value.
Flash wants me to out.print in the jsp the name of the variable = it's value .. out.print("go=true");
and not :
go="true";
out.print(go);
plz help me coz i really need it
Help With Connecting A Preloader To A Cgi?
I have a page that uses a .cgi script to load a list of phone numbers [over 300] and it takes a long time to load. I would like to know if there is a way to make a flash preloader that checks to see how much of the .cgi [phone numbers] has loaded and then when finished will open to the page where the numbers will show? If not is there another way that it could be done instead of a flash preloader? Any assistance/advice will be greatly appreciated.
Help Connecting Two Scenes
i need help connecting scenes 1 with 2 and 2 with 3 and so on. when i hit play, scene 1 flashes quickly and goes directly to scene 2. how do i make it so that scene 1 stays until i hit play for scene 2?
LocalConnection Not Connecting
Both sender and receiver are from the same domain.
from a button in the sender movie i set the value of a parameter i will pass, and open a window for the receiver window;
on (release) {
client = 2;
getURL("javascript:launchwin('gallerystart.htm', 'newwindow', 'height=495,width=665,status=0')");
gotoAndPlay("send");
}
at the "send" label in the send movie timeline:
// create the sender localConnection object
mySender_lc = new localConnection();
mySender_lc.send("channelA","doThis", client);
mySender_lc.close();
in the receiver movie frame one:
// create localConnection object
myReceiver_lc = new LocalConnection();
// doThis method from "ChannelA"
myReceiver_lc.doThis = function( myParameter) {
i = myParameter;
clientName = new Array();
clientName[0] = "aclara";
clientName[1] = "ashs";
clientName[2] = "avalonbay";
clientName[3] = "cellgenesys";
clientName[4] = "credence";
clientName[5] = "interquest";
clientName[6] = "invision";
clientName[7] = "longs";
clientName[8] = "pain";
clientName[9] = "pumatech";
clientName[10] = "symphonix";
clientName[11] = "uboc";
clientName[12] = "utstarcom";
clientName[13] = "wmp";
clientName[14] = "ypt";
_root.loadMovieNum("gallery_"+clientName[i]+".swf", 2);
};
myReceiver.connect("channelA");
loadMovieNum("gallerybaseimages.swf", 1);
loadMovieNum("gallerymenumain.swf", 3);
loadMovieNum("gallerymos.swf", 4);
loadMovieNum("gallerymenusub.swf", 5);
stop();
The function "doThis" in the receiver movie never gets executed. The other movies get loaded into levels 1,3,4 and 5.
Connecting To A Database
Does anyone know if it is possible to connect directly to a database with Flash MX(without using Flash Remoting)?
-Mr Roboto
Connecting To Database
I have a site made in flash. The site deals with American Pro Football and their weekly scores. I have a page on the site that will allow me to input the scores of the games each week.
My question is, how can I get that input data into a database and then be able to recall and use that data from the database.
The scores are meant to be displayed and used to trigger movieclips from being invisible to visible on a page for each team. I would like for the information to be loaded each time the Team page is loaded. I was toying with the idea of having an array for each team but I am not the best at coding and quickly got frustrated. Any help will be welcome. Thanks.
Connecting Symbols?
Ok I just stated getting serious about Flash. I have been using Photoshop for a while and while I know they're pretty unrelated one thing I liked about photoshop was you cuold link layers/objects together so so moving one linked oject would move them all relatively.
So I have an arm and a hand that are seperate symbols is there a way I can lock the hand to stay at the end of the arm, but still be able to rotate the hand? Sort of like a joint? Because when I motion tween them (as speretae symbols and layers) they do not stay in line. The hand slides into the arm because it's trying to take the shortest path I guess.
I could use a motion guide but that would seem heavyhanded and a lot of work?
Connecting Flash To SQL
Please exist any link - tutorial where is described how is possilble to connect Flash to SQL database and work with them?
Any experience?
What is the simpliest way?
thanks in advance
jankratochvil
Connecting Objects
I have a question on dynamically attaching and connecting objects. What I'm looking for is a way to connect numerous objects on the stage by certain x and y coordinates. Basically, I need to be able to specify where object a should attach to object b without hardcoding the x and y coordinates. The only way I could think of doing this is by inserting a symbol within the object, and specifing that the objects attach at that symbol.
This probably makes no sense, but I', hoping I can still get some feefback.
Connecting Events In One MC With Another?
I have two movie clips. 4 buttons in Movie clip (A) and a single graphic in Movie clip (B). I want a biography to show up in movie clip (B) when the button is pushed in MC A.
Anyone help me with this?
thank you
rednax
There is text and pictures in the MC B where the bio shows up.
Connecting Animations
Hey guyz...
...i'm doing a pong game, but its for a site so i'm doing sum animations for the menu.
i got a letter animation "Pong" i did this animation inside a movieclip.
After animating i put in the following code "gotoandplay("Menu", 1);" or 2 doesnt matter.
Then i put an my menu scence on 1st frame (stop()
Please help me out here on how to control the difrent movie clip in action script.
Connecting SQL Server
Sir,
In my flash game, i want store the name of the player from the begining of the game,when he finsh the game the highest score that he has scored will be stored in the mysql database and displayed with his name in the form. I want the coding for storing data into my sql and retrieve from the same.
please help me
regards
Connecting SQL Server
Sir,
In my flash game, i want store the name of the player from the begining of the game,when he finsh the game the highest score that he has scored will be stored in the mysql database and displayed with his name in the form. I want the coding for storing data into my sql and retrieve from the same.
please help me
url : http://www.dado-gs.net/game.zip
regards
Connecting SQL Server
--------------------------------------------------------------------------
Sir,
In my flash game, i want store the name of the player from the begining of the game,when he finsh the game the highest score that he has scored will be stored in the mysql database and displayed with his name in the form. I want the coding for storing data into my sql and retrieve from the same.
please help me
url : http://www.dado-gs.net/game.zip
regards
Connecting To Database
hi..i would like to get some help here. does anyone knows the actionscript and which database should i use. i'm doing a project right now for my uni and i don't know much bout database...thanks
Connecting To Database.
Hi!
If i want to make some text visible in a flash document, that i have stored in a MySQL database, how could i do that?
What i want to know is what to call the table and the rows in my database, and what to write in the flash document to get the text i have written in the row(s) to appear where i want it to, in the document.
Thanks, Andy
andy@borglind.dk
Connecting Flash To Asp
Hi,
I'm trying to connect a flash frontend to a database using and .asp page but I'm running into a strange problem that I've never had before when trying to these kinds of things. The problem is that the .asp page never seems to be called by the flash. This is my AS code
Code:
class Saljare extends MovieClip{
private var intervalId:Number;
private var lvOut:LoadVars;
private var lvIn:LoadVars;
//Konstruktorn
function Saljare(){
intervalId = setInterval(this,"skickaSvar",500);
}
function skickaSvar(){
hamtaSvarFranGUI();
lvOut.send("sendData.asp", "_blank", "POST");
}
}
My asp page looks like this:
Code:
<%@Language="VBScript"%>
<%
Response.Write("&var0=1")
%>
When I try to just run the script it works fine so I'm guessing there is something wrong with AS code but for the life of me I can't find it.
Hope somebody has an answer!
Sincerely,
Anders
[F8] Connecting Movies...
Hey all,
This might be the rookiest question up here. But, in all the years I've been using Flash, this self-taught user hasn't been able to figure this out...
How does one connect multiple flash movies together?
Like... I'm building my online portfolio. Some of the stuff I need to drop onto certain pages can take up space. So, let's say I end up with a movie that's 100 mb. How do I break the movie down into separate pages, link them all together seamlessly, and have them load into one URL?
OR.... am I just dumb for dumping everything in the movie's library? Should I be linking to files via URLs?
Thanks for your help!
D
Connecting To Database
does anyone know of a good tutorial on setting up a datasource to an existing database and querying against it to return results back to my flash movie or explain to me how it is done? I would like to use the built in components in Flash CS3 instead of doing it with a server side script such as PHP or Coldfusion.
Any help is appreciated
[F8] Connecting Various .fla Documents
Hi Everyone:
I have quite a few .fla documents that I would like to connect together, to play as one continuous movie. When the first .fla doc is played, I want to have the second one play, and so on. What I have done is take my first .fla document and at the end I have inserted a keyframe on my actions layer and from the behaviors window, I've gone to MovieClips - Load External Movie Clip - then type in the url to the .swf file that I now want to play. But now I'm confused! I now have a .fla document with a keyframe to jump to a .sfw file...then what do I do when Flash plays to the end of that .sfw file? I have another .sfw file to attach! Then what I've got left is still a .fla doc with lots of attached .swf files. I'm confused! Also why does Flash not always create a new .swf file from the .fla file when I " Test Movie?" I've noticed that if I make changes to the .fla document, I don't alsways get a .sfw file with the same "date modified info?" How do I then publish my movie? I know how to publish the movie if I'm just working with one .fla document, but how do you do it with many .fla files that need to be connected as pieces of one whole project. I hope I have explained this in a way that makes sense.
Thanks so much, I know you guys are always sooooo helpful, and I really appreciate it.
Thanks, Kiawah
Connecting To Mysql
I have created a game that has a score. I want to find a way to connect it to my mysql db. I am fairly new at actionscript. Thanks for any help you can give me.
Any Suggestions For Swf Connecting
Hello. I have various SWF I want to connect in a sequence. I am thinking thinking of creating a blank fla and just calling them using loadMovie and unloadMovie. Although each sequence is to be called on certain actions in the SWF's. I also want to put in pre loader in as well. Any suggestions? Is loadMovie and unLoad Movie ok to use for this. This is for a game and I just want to connect Title screens preloaders and Team logos and stuff. Thanks a lot for any help.
J
Connecting To XML And Getting Video Name
I am trying in Flash 8 Pro to connect to a xml file (playlist_xml.xml)
This is the code in the ActionScript:
Code:
tuteInfo_xml = new XML();
tuteInfo_xml.ignoreWhite = true;
tuteInfo_xml.load(playlist_xml.xml);
tuteInfo_xml.onLoad = function(success) {
if (success) {
m_location = xmlDoc_xml.firstChild.childNodes[0].nodeValue;
}
};
Explaination: I am trying to se the variable m_location with what is in the location tag in the XML
Then this is the code that I have in my xml file:
Code:
<?xml version='1.0' ?>
<media>
<location>wlc_youth/Numa.flv</location>
<media_type>video</media_type>
<customer>ABI</customer>
<red5_folder></red5_folder>
</media>
Any help would be greatly appreciated and as you can see, I am fairly new to this stuff.
Connecting To A Database
I have been asked to create an award animation that will display on a 42" screen in a lobby. The overall goal is to fade in and out high-res nature images and have a scrolling marquee with names of the people who received the specific award.
The hard part is to have the names in a database and pull from them from there.
Images and text manipulation is right up the alley for Flash, I'm not sure how to do the database part with Flash. Is this something that can be done with ActionScript or am I confused on what it does? I looked for examples online and haven't fought good ones except for with websites. Is this something that can be done for standalone Flash animations?
If this is possible, does anyone have any good examples for this?
I've made this in C# already but that limits the ability to edit the layout to very few people and I would like to allow others to play with the design and what not.
Any help is appreciated.
Connecting To Server
Ok, I have just started to try out the connection between flash and server for the first time.
Haven't done anything with servers before this either so here goes.
Anyway, I have a server running on my computer and the swf I have made works fine localy.
But when taking it out on the net it stops working.
What I read is that it's flash's security checks that go wild when I try and do this but how to solve this problem.
What I also have read is there would be less problems with running the swf and server from the same computer but surely there is a way for this to work when you run it on different computers?
if there is anything that have worked with this problem.
The errors I get is:
Error #2044: Unhandled SecurityErrorEvent:. text=
Error #2048: Security sandbox violation: http://www.medieteknik.bth.se/~rini02/flashchat.swf cannot load data from xx.xx.xx.xx:1030.
Connecting To A .NET Server In 3.0
I am working on a new version of an existing project that I had initially built in AS 2.0 long before 3.0 came out. I am loving 3.0 for so many reasons, but I am really hitting my head against a wall trying to connect to our already existing .net servers where I have successfully been pulling data for 2+ years using flash remoting.
I have been searching all over the place, and found lots of code that looks promising, but I can't even get a connection to the server in 3.0, when I have no problems in the previous version.
So I have code something like this:
Code:
package
{
import flash.net.Responder;
import flash.net.NetConnection;
import flash.net.ObjectEncoding;
public class myDATool
{
private var connection_str:String
public function myDATool(c_str:String):void
{
connection_str=c_str;
}
public function makeTestCall()
{
var rs:NetConnection = new NetConnection();
rs.objectEncoding = ObjectEncoding.AMF0;
var responder:Responder = new Responder(onTestResult,onTestStatus);
rs.connect(connection_str);
trace("rs.connected:"+rs.connected);//always traces out false
var parameters:Object = new Object();
parameters.arg1="hello world";
rs.call("project.class.function",responder,parameters);
}
private function onTestResult(re:Object):void
{
trace("results");
}
private function onTestStatus(fe:Object):void
{
trace("status");
}
}
}
So when I invoke the make test call function to a connection string that I am 100% sure is correct, I always show connected as being false, and consequently it is not surprise that I can't make any calls to any commands on the server.
I really could use any information someone may have out there for me.
thanks,
Danny
Connecting To MySQL
I've just started learning AS3, and was wondering if flash can get it's data from MySQL rather than XML.
|