Unable To Connect To Endpoint Using WebServiceConnector
I'm using the WebServiceConnector component to connect to a webservice I wrote (it's located on the same server). Basically, I've set up my project just like the 'Creating an indexed binding section of the Working with bindings' in the Bindings tab tutorial, found in the Flash MX 2004 Professional docs. (http://livedocs.macromedia.com/flash...=00000446.html )
However, for some reason I keep getting the classic Error opening URL error. I've used the WebServiceConnector component's status event to get a more detailed error message,
Error opening URL "http://localhost/NewsService/NewsService.asmx" WebServiceFault Server.Connection Unable to connect to endpoint: http://localhost/NewsService/NewsService.asmx
The URI is correct. In the component's WSDLURL property, I'm using http://localhost/NewsService/NewsService.asmx?wsdl.
I'm out of ideas... What could possibly be the problem?
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-29-2004, 09:48 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Unable To Connect To Endpoint..
I am developing an user interface for mobile devices using Macromedia Flash 8 pro and a .NET webservice. My objective is to make a search through the search engine provided in the webservice (so i have to establish a WSDL connection between flash and the webservice and then to pass the input values from the flash user interface to the webservice, and then retrieve from this one the results and send them back to the flash user interface).
Now the problem is that i cannot establish any connection between flash and the webservice for the research method i need (it says "unable to connect to endpoint: http://-serve address-"). I didnt find on the internet any satisfactory help or good code example.
Have you ever developed something like that, so you can give me some suggestions?
Attach Code
fscommand("FullScreen", true);
import mx.services.*;
import mx.data.components.WebServiceConnector;
var fault = function (stat) {
if (stat.code == "WebServiceFault"){
trace(stat.data.faultcode);
trace(stat.data.faultstring);
//trace(stat.data.detail);
}
};
var wsConn:WebServiceConnector = new WebServiceConnector();
wsConn.addEventListener("status", fault);
wsConn.WSDLURL = "http://193.204.184.42/eTer/eTer.asmx?wsdl";
wsConn.multipleSimultaneousAllowed = true;
wsConn.operation = "ricerca_base";
wsConn.params = [""];
wsConn.trigger();
Unable To Connect To Endpoint..
I am developing an user interface for mobile devices using Macromedia Flash 8 pro and a .NET webservice. My objective is to make a search through the search engine provided in the webservice (so i have to establish a WSDL connection between flash and the webservice and then to pass the input values from the flash user interface to the webservice, and then retrieve from this one the results and send them back to the flash user interface).
Now the problem is that i cannot establish any connection between flash and the webservice for the research method i need (it says "unable to connect to endpoint: http://-serve address-"). I didnt find on the internet any satisfactory help or good code example.
Have you ever developed something like that, so you can give me some suggestions?
Attach Code
fscommand("FullScreen", true);
import mx.services.*;
import mx.data.components.WebServiceConnector;
var fault = function (stat) {
if (stat.code == "WebServiceFault"){
trace(stat.data.faultcode);
trace(stat.data.faultstring);
//trace(stat.data.detail);
}
};
var wsConn:WebServiceConnector = new WebServiceConnector();
wsConn.addEventListener("status", fault);
wsConn.WSDLURL = "http://193.204.184.42/eTer/eTer.asmx?wsdl";
wsConn.multipleSimultaneousAllowed = true;
wsConn.operation = "ricerca_base";
wsConn.params = [""];
wsConn.trigger();
Line With One Set Endpoint, And One Cursor-following Endpoint
Hi, I'm kind of new to Flash (I've used it a fair amount, but I haven't really delved into AS too much) and I'm trying to learn how to do something:
I want to have a straight line, with one end at a set point, and the other end following the mouse cursor around, so that no matter where in the movie my mouse is, the line connects it to a set point. Any ideas how I could do this? I don't shy away from taking the time to learn something, so if anybody wants to point me in the direction of a/some tutorial(s) that might help me understand how to figure this out, I would appreciate that as well! Thanks.
Help Me: Unable To Connect To FMS
Hello Guys
I have an audio recorder . It is working fine on localhost but it is unable to connect to the remote FMS .
i have tried
nc.connect("rtmpt://myserver.com:1935/myApplication");
and
nc.connect("rtmpt://myserverip:1935/myApplication");
and
nc.connect("rtmp://myserver ip/myApplication");
But only get "NetConnection.Connect.Failed"
I tried to run the application on remote server locally there it is working fine. One remote desktop of my server the when i try to access the project through http then it is working fine but on all other computers it is unable to connect.
I will really appriciate your help
Thanks
Unable To Connect To FMS From Outside Of The US
I'm having a really strange problem. We set up our FMS a couple of weeks ago, and are able to stream videos. However, the person that is directing this project has been out of the country for a week. He has tested our site from his hotel in both Thailand and China, and then again last night from a computer in a large convention center. When he clicks on the playlist, the video screen just spins. At first I thought it was a bandwidth issue, but after reviewing the log files, I see that he has never established a connection. I have tested the connection from outside of our department (i.e., home computer, and various friends/family in different states) and we have no problems connecting.
Has anyone ever heard of this happening? It doesn't make sense to me that people in the US would be able to connect, but not from other countries.
I need to get this figured out. This is an education site, and we want to stream to people around the world. Can someone PLEASE help me???
Unable To Connect Via Fms2_console
Hi All,
I've been coding/running a custom FMS application for a few weeks now.
However, i am still unable to log in to the fms2_console.swf:
Login attempt to the server below failed. Please verify your login information and try again.
Any ideas of where to begin troubleshooting this one?
-Thanks
Unable To Connect Through RTMPT Behind Firewall
Our client is behind a firewall and they are unable to connect to our fms server. But if they try the port checkers from Jake Hilton and Macromedia they pass rtmpt. Has anyone come across this issue?
Here's the link to the Port Checker
Thanks in Advance.
SendAndLoad - Detect "unable To Connect"?
I would like to detect when XML.sendAndLoad can not connect to a server. I have registered onData, onLoad, onHTTPStatus handlers. The handlers are called as expected when a successful request is made. However, if the a connection can not be opened to the server then it appears that none of the handlers are called. Is there a way to detect when sendAndLoad fails immediately because it can't connect to the server?
EndPoint XMLConnector And Binding
I am trying to use the Flash MX 2004 DataBinding classes to bind UI components to xML Data. Using the "location" attribute in an EndPoint class I have not found a way to set an XML "attribute" in a XMLConnector. It only works for elements. I have not found a way to set or bind to an attribute in a XML file. Here is a snipplet from my program
var xmlDestination:Object = {component:_level0.xmlconn_out, property:"params", location:"XMLRequest.Parameters.Parameter.Value"};
var dataholderSource:Object = {component:_level0.dataholder, property:"vlanname"};
var xmlOutBinding = new mx.data.binding.Binding(dataholderSource,xmlDestin ation);
Now using this code snipplet I can set data to the Value tag if it is an XML element but not to an attribute.
Any pointers ?
thanks
-sanmitra
EndPoint XMLConnector And Binding
I am trying to use the Flash MX 2004 DataBinding classes to bind UI components to xML Data. Using the "location" attribute in an EndPoint class I have not found a way to set an XML "attribute" in a XMLConnector. It only works for elements. I have not found a way to set or bind to an attribute in a XML file. Here is a snipplet from my program
var xmlDestination:Object = {component:_level0.xmlconn_out, property:"params", location:"XMLRequest.Parameters.Parameter.Value"};
var dataholderSource:Object = {component:_level0.dataholder, property:"vlanname"};
var xmlOutBinding = new mx.data.binding.Binding(dataholderSource,xmlDestin ation);
Now using this code snipplet I can set data to the Value tag if it is an XML element but not to an attribute.
Any pointers ?
thanks
-sanmitra
AWS And WebServiceConnector
Is it possible to get an image from the Amazon Web Service through the WebServiceConnector? All I need is to display some book covers.
I am new to Webservices and am having problems to interpret the wsdl of amazon. So if anyone has seen a tutorial on how to extract information from amazon for Flash I'd be very grateful.
WebServiceConnector
Hi there!
In the first frame I put an instance of WebServiceConnector (for Email Validation - http://www.webservicex.net/ValidateEmail.asmx?wsdl) and a TextInput component.
Parameters, Bindings and Schemas are okay and well defined.
BUT:
How do I send my request of WebService?
How do I get a False or a True reply which I can use in my AS?
Many thanks in advance!
Best regards,
Gerry
WebServiceConnector Results XML
I have solved my problem, no need to reply. BTW it was something very simple, but isn't that how it always is.
================================================== =============
I have succesfully written a web service that logs users in and connected it to my WebServiceConnector in FlashMx Pro 2004.
I am sending the username and password and receiving the appropiate strings.
What I need to do is create a new XML document from the WebService results, I started to do something like this
-------------------------------------------
submit_button.onRelease = function(){
login_wsc.trigger();
loginReply = new XML(login_wsc.results);
};
------------------------------------------------
but when I load the loginReply.toString() into a text box it just says undefined....any suggestions
WebServiceConnector Question
I am working on a game site using a WebServiceConnector to connect to the database for the High Score system. It is working in one of my games, but when I try to put it in the second, the Web Service call fails. I traced the error message and got the following:
WSDL.MultiplePorts
There are multiple possible ports in the WSDL file; please specify a service name and port name!
In Flash Help it does not list this as a possible error. I have no idea what it means or how to fix it. I am using the exact same code in both games and one works the other doesn't. Please help!!!!
WebServiceConnector Problem
Hi guys/gals, having a slight problem getting the WebServiceConnector component to work.
This is what I am doing.
I drag a WebServiceConnector component off stage and then in the component inspector I enter the url
http://www.flash-db.com/services/ws/flashCDDB.wsdl
in the WSDLURL parameter.
After a few seconds I get a message in the output window saying:
Code:
WSDL download failed for the following URLs:
http://www.flash-db.com/services/ws/flashCDDB.wsdl
Does anyone know why this is happening? AM i missing out something? No matter which URL i put in i get the same error message:
for e.g tried with
http://www.xmethods.net/sd/2001/Curr...geService.wsdl
as well and a few others..but keep getting the same message..
Any help appreciated.
Cheers
WebServiceConnector.results - Help
Ok, I'm using Flash CS3 and generating an AS2 SWF. I'm using AS2 because I'm wiring up a WebServiceConnector for use with ExternalInterface, and i'll drive the connector via javascript.
Long story short, I'm able to get the WSDL connected, trigger the methods, and get data. My problem is - what format is the data when it comes back - xml, an object...? I'd like to pump the results in XMl format (or JSON if I can parse it right) back to the javascript that requested the wsdl trigger.
Any ideas or help would be greatly appreciated. Thanks!
WebServiceConnector...what's The Point?
for the past 3 days, I've been banging my head against the wall trying to figure out how to use the webServicesConnector to properly send a SOAP request...
I now realize I can do so simply by creating my XML object and using:
myXML.sendAndLoad..
So, my question is, what's the point of using the webServiceConnector? I mean, the XML.sendAndLoad is SOO much easier, and is much more powerful (I can actually set attributes and hardcode my XML, unlike the webServiceConnector)..
if anybody would enlighten me as to the purpose of this, I would appreciate it (especially if its a speed issue).
Regards
irf2k
WebServiceConnector --> WebService Help
Hi,
I realized too late in this project (like I need it now ) that I need error handling which the WebServiceConnector does not seem to offer me such as .onFail.
Is there a way I can do error checking the the WebServiceConnector class?
If not..
I have my own classes which I would like to convert to the WebService class if possible although it seems I may not be able to simply extend the WebService class with the component in my library.
Please can you offer some assistance how I would convert the following example class.
ActionScript Code:
import DataTransferLayer.*;
import BusinessLayer.*;
import DataAccessLayer.BaseDatabase;
class DataAccessLayer.EventDetailDataAccess extends mx.data.components.WebServiceConnector implements DataAccessLayer.IEventDetailDataAccess
{
private static var EVENT_LISTENER_RESULT:String = "result";
private static var GET_EVENTS:String = "getEvents";
private var caller:Object;
private var _eventSetup:EventSetup;
private var baseDatabase:BaseDatabase;
var detail:Array;
var eventDetailResults:Object;
function EventDetailDataAccess(setCaller:Object)
{
//Constructor code
baseDatabase = new BaseDatabase();
caller = setCaller;
}
private function GetEventDetailFromWebService():Void
{
this.addEventListener(EVENT_LISTENER_RESULT, EventDetails);
this.WSDLURL = _eventSetup.GetEventDetailWebServiceURL();
this.suppressInvalidCalls = true;
this.trigger();
}
private function EventDetails(evt:Object)
{
eventDetailResults = evt.target.results;
var eventDetail:EventDetailData = new EventDetailData();
for (var resultCount = 0; resultCount<eventDetailResults.length; resultCount++)
{
//TODO: temp if until web service accepts params
if(baseDatabase.Trim(this.params[0]) == baseDatabase.Trim(this.eventDetailResults[resultCount].code))
{
eventDetail.Id = this.eventDetailResults[resultCount].id;
eventDetail.StartDate = this.eventDetailResults[resultCount].startDate;
eventDetail.EndDate = this.eventDetailResults[resultCount].endDate;
eventDetail.Location = this.eventDetailResults[resultCount].location;
eventDetail.Code = this.eventDetailResults[resultCount].code;
eventDetail.Title = this.eventDetailResults[resultCount].title;
eventDetail.TypeCode = this.eventDetailResults[resultCount].typeCode;
}
}
caller.LoadFromResults(eventDetail);
}
function GetEventDetail(eventSetup:EventSetup):Void
{
_eventSetup = eventSetup;
this.operation = GET_EVENTS;
this.params = [""];
GetEventDetailFromWebService();
}
}
Help With WebServiceConnector Results...
Hello, I urgently need help as I have been racking my brains for these past 3 weeks on this one:
I created a webservice (WSDL is attached as query.txt) which returns database results after a query is entered. A sample XML result is attached as sampleXML.txt
I now need to bind the result in Flash using the WebServiceConnector and appropriate components. I managed successfully create the WebService Connector, and to bind the parameter which is sent to the web service. However I dont know how to bind the results (seeing that an array is returned).
Please help,
thanks
WebServiceConnector Component
i did some binding following the book but get the error
Scene 1, Binding between <Instance Name>.email_txt.text. and <Instance Name>.wsc.params.emailFrom: The endpoint of the binding has no name
i already give <Instance Name> to the textarea as email_txt
wat is ending point
anyone know where the mistake i made?
WebServiceConnector Component
i did some binding following the book but get the error
Scene 1, Binding between <Instance Name>.email_txt.text. and <Instance Name>.wsc.params.emailFrom: The endpoint of the binding has no name
i already give <Instance Name> to the textarea as email_txt
wat is ending point
anyone know where the mistake i made?
WebServiceConnector ~ Programmatically
I have my webservice connected swf operating at a basic level.
Now I am ready to actually make it useful, so how do you programmatically set the properties of the WebServiceConnector's bindings?
Can you create the bindings in code?
I am trying to use a web service that has several methods and I want to assign it on the fly rather than adding a new WebServiceConnector for each method.
Adittionally, and I hope this is not too much for a single post, I want to bind the results to a variable. How would that be done?
My humble thanks in advance,
WebServiceConnector - Progress Bar?
How do I make a progress bar in conjunction w/ the WSC?
My WSC works great ... but I don't quite understand what all is going on. Isn't there some way to check my results (XML) and use getBytesLoaded, getBytesTotal?
Is there no way to make a progress listener for the WSC?
Here is my WSC code.
ActionScript Code:
import mx.data.components.WebServiceConnector;
initListener = function () {
wscListener = new Object();
wscListener.result = function(evt) {
_root[this.thisResultCatcher] = evt.target.results;
//call the next function
if (_root[this.thisNextFunction] != undefined) {
_root[this.thisNextFunction].call();
}
_root.mcWaiting._visible = false;
};
wscListener.send = function(evt) {
startTime = getTimer();
};
wscListener.status = function(evt){
alert("status: " + evt);
}
var fault = function (stat) {
if (stat.code == "WebServiceFault") {
_root.mcWaiting._visible = false;
alert("Error with call to server: "+stat.data.faultstring+"
"+stat.data.detail+"
", "error");
}
};
};
function callServer(thisFunction, params, thisNextFunction, thisResultCatcher) {
initListener();
wsConn = new WebServiceConnector();
wscListener.thisNextFunction = thisNextFunction;
wscListener.thisResultCatcher = thisResultCatcher;
wsConn.addEventListener("result", wscListener);
wsConn.addEventListener("send", wscListener);
wsConn.addEventListener("status", fault);
wsConn.WSDLURL = _root.WSDLURL;
wsConn.operation = thisFunction;
wsConn.params = params;
wsConn.suppressInvalidCalls = false;
wsConn.multipleSimultaneousAllowed = true;
wsConn.trigger();
}
WebServiceConnector.results - Help
Ok, I'm using Flash CS3 and generating an AS2 SWF. I'm using AS2 because I'm wiring up a WebServiceConnector for use with ExternalInterface, and i'll drive the connector via javascript.
Long story short, I'm able to get the WSDL connected, trigger the methods, and get data. My problem is - what format is the data when it comes back - xml, an object...? I'd like to pump the results in XMl format (or JSON if I can parse it right) back to the javascript that requested the wsdl trigger.
Any ideas or help would be greatly appreciated. Thanks!
WebServiceConnector XML Results To DataSet
I've created a WebService that accepts one input parameter, and then passes back an XML document (contained within a String). Ideally I would like to bind the results of the WebServiceConnector component to a DataSet component's dataProvider. I then want to bind the DataSet component's dataProvider to a DataGrid component's dataProvider.
This works great if I use the XMLConnector component. I save the output from the WebService to an XML file, and configure the XMLConnector to load it in. I configure the "results" schema using the "Import schema from a sample XML file". I then bind an Array field (the repeating element within my XML document) to the DataSet dataProvider.
I then add the appropriate fields to the Schema of the DataSet. I then bind the DataSet dataProvider to the DataGrid dataProvider.
WORKS GREAT!!!!!
Now, all I want to do is pull the XML from a web service, not from a URL or file. I setup the WebServiceConnector. If I test the WSC itself, it works fine. It's pulling the resutling XML document from the WebService exactly as it should.
I have tried everyway imaginable to bind the results of the WebServiceConnector to the DataSet dataProvider and can not get it to work. Does anyone have any ideas?
Thanks,
Juven
[F8] ALERT.OK Won't Trigger My WebServiceConnector
Hi,
I am creating an app in Flash 8 that lets the user click a button, on click it prompts an Alert window (as a confirmation). I want my Web Service Connector to be triggers ONLY when the user clicks OK. Putting the trigger call within the ALERT.OK function doesn't work at all (wsc doesn't get called). The wsc trigger works when it's just in the main on(Click) function, though.
Anyone know if this can't be done or if I'm doing something wrong?
Here's a simple version of my code:
Code:
on (click) {
import mx.controls.Alert;
// Define button actions.
var myClickHandler:Function = function (evt_obj:Object) {
if (evt_obj.detail == Alert.OK) {
trace("OK");
// Make this current button invisible, if possible.
this._visible = false;
this._parent.Button1._visible = false;
this._parent.Button2._visible = false;
// This is where I want the wsc trigger to work:
this._parent._parent._parent.myWSC.trigger();
}
else if (evt_obj.detail == Alert.CANCEL) {
trace("canceled");
this._parent.Button1._visible = true;
this._parent.Button2._visible = true;
}
};
var alertText = "Are you sure you want to do this?";
var dialog_obj:Object = Alert.show(alertText, "My Alert", Alert.CANCEL|Alert.OK, null, myClickHandler, Alert.CANCEL);
// This is where the wsc trigger DOES work but I don't want it to trigger unless user clicks OK:
//this._parent._parent._parent.myWSC.trigger();
}
Side issue: GoToSlide call doesn't work within the ALERT.OK either - only in the main on(Click) function. This would be helpful to do too.
Thanks SO much for your help!
Kirsten
Basic Example, WebServiceConnector Class
So I am practically drowning in examples for using the WebServiceConnector within Flash 8 Professional (using the GUI), but can't for the life of me find a simple example of how to use the class in AS.
Can anyone help me out - I know it's really simple, but it would help me to see a working example.
Webservice Use Without Using The WebServiceConnector Component
Hello.
Is it possible to make use of Webservices in Flash without having a copy of the "WebServiceConnector" component on the library?
Is there a way to, let say, import or inherit from some Webservice class that would allow me to stablish a connection with my webservices?
A different way to say it, if is it possible to consume webservices enterely by programaticaly ways, without having to drag and drop an instance of that WebServiceConnector.
Thanks.
[Event Dispatcher] W/ WebServiceConnector
I'm having a bit of a scoping problem.
I've authored a class that connects to a web service using dynamic connection properties.
I'd like that object to broadcast events to its container movie but am unable to get the scope of the events right.
This is the class I'm using:
http://www.jonrossway.com/US/DeviceValidator.as
How can i properly notify the container that data has been received, and pass that data to the container?
WebServiceConnector.params -- Required?
edit: nevermind, fixed the problem. it is not required, as I found when I implemented some error handling.
I'm connecting to a web service that does not require any parameters; however, I can only get data if I include connector.params = []
If I omit params, I get no data back.
Is params required if the web service isn't looking for it?
WebServiceConnector - Size Limit?
Is there a limit to the amount (file size) of data you can send to a WebServiceConnector?
I'm trying to send a string, which, when copied and pasted into notepad and saved as a .txt file is about 240KB and it's not working.
However, smaller strings are working fine.
Address Instance Of Class With Webserviceconnector
Hi,
what am I missing here?
I'd like to create a movieclip which has linkage to a class.
The class should have a function that calls a webservice that returns some data.
The movieclip itself has an instance - i_checkHolder - which just is a graphic box,
Now to my, I guess novice, problem:
How do I address the "i_checkholder" of the current instance of this class ?
I can not obviously use _this_ since that is the webserviceconnector itself.
Cut code:
import flash.events.*;
import mx.data.components.WebServiceConnector;
class AwcGroup extends MovieClip {
...
...
function initChecks():Void {
var wsConn:WebServiceConnector = new WebServiceConnector();
wsConn.addEventListener("result", renderChecks(groupId));
wsConn.WSDLURL = "
[F8] Mouse Wheel + WebServiceConnector = Problems. Anyone?
O.K. So here we go:
I'm working on a website and using web-services extensively.
I'm also using some scroll-bars components which allow mouse-wheeling.
All works just fine.
BUT
When testing, I noticed that after a certain amount (or maybe speed?) of wheeling, suddenly all theweb-services stop working! Huh! And i have to refresh the page to make them work.
I dont think the problem is with the scroll-components cos it happens even when i'm just wheeling air (i.e. not over a component).
Now I BET someone here have known this forever and knows how to solve this...err.. Right?
WebServiceConnector Component Error: WSDL.NoPorts
I created a .NET web service using WCF. The service is running and I'm able to define the service in the Web Services panel in Flash. However, when I try to test my movie and trace the status of my WebServiceConnector component instance I receive the following faultcode + faultstring:
faultcode: WSDL.NoPorts
faultstring: There are no valid services/ports in the WSDL file!
Any ideas as to how this can be resolved? Are WCF web services supported in AS2.0?
Thanks,
DWD
Webserviceconnector Doesn't Work When Called From Http Page
If I load the file (c:......kp est.htm - which contains the <object> code to call out the .swf) the flash file works correctly (it sends/receives data to a web service.
However, if I load test.htm as http://localhost/kp/test.htm, I see the flash file and the menus, text fields etc "work" but nothing is sent to or received from the web service.
Any one have any ideas?
regards
Mark H., AFX
Importing The Mx.data.components.WebServiceConnector Class In Flash MX 2004 Pro
Hello.
I am trying to consume some WebServices, I went through a tutorial that seems to be good, the problem is that I cannot import the WebServiceConnector class...
PHP Code:
import mx.data.components.WebServiceConnector;
I am running the professional version which is supposed to include the components classes.
I know that I could place a copy of the WebServiceConnector component on the library but I would prefer not doing so.
What is the problem here?
Thanks guys.
Unable To Run SWF
Recently I am getting this problem.
When I try to run a swf from desktop or say from explorer it asks for a file SP.EXE. I tried browsing thru it and locating it from the players folder in the macromdeia program folder. But I coudnt find it.
But when i try to open the swf from IE it again asks for the file and when i cancel it the swf starts to play.
Also my freind gets a similar problem and in his m/c he gets the error asking for BAGLA.EXE.
WHat could be the reason. till then everything was working perfectly.
Can't Connect... Help
I am trying to implement a LocalConnection to get a top nav .swf to tell the subnav.swf (which is in another HTML Frame), to gotoAndPlay a scene "discography" and a frame labeled "discographyhome" but its not happening!
My connection is named "lc_disco", Any Idaes what i am doing wrong?
I am a designer and programming is not my strong suit.
SENDING SWF
User clicks a button, the button has a named instance "discographybtn"
SCRIPT IN FIRST FRAME
discographybtn.onRelease = function() {
discoout_lc = new LocalConnection();
discoout_lc.send("lc_disco", "gotoAndPlay", "discography.discographyhome");
}
RECEIVING SWF
SCRIPT IN FIRST FRAME
discoin_lc = new LocalConnection();
discoin_lc.gotoAndPlay = function(discography, discographyhome)
{
}
discoin_lc.connect("lc_disco");
Connect To Db
i used to connect to a db with flash using asp ,php,...
but now with mx 2004 i saw new features that i don't know how 2 use..
i saw rdbms , data set.....
so is it easier now? can i connect directly to sql db or access db DIRECTLY?
i saw too much XML...connection and stuff...
can u help me plz..
thnx alot.
How Should I Connect AS With PHP?
I want to get some info from a DB through php and then to use it with AS. The problem is that I don't know how to do that. I was thinking of getting the info and then exporting it to xml and then load it flash. But is there any other way to do this? Please help
How To Connect To Php?
heywo peeps =3
i'm not really new to flash but new to e part when u hav to connect flash to database using php or asp, so, is there anybody who can help me on this? i tried to see tutorials and everything but they teach php codings and flash separately most of the time so yeah~ i hav a prob here XD
cheers,
fukko
Connect To FMS Through Exe
hi
does anyone know why it isn't possible to connect to a remote flash media server from a windows projector exe file? testing it within flash works.
i tried adding these:
System.security.allowDomain("<the flash media server>");
System.security.loadPolicyFile("<crossdomain.xml on the flash media server>");
the crossdomain allows all domains. but it still doesn't work.
did anyone succeed in this?
Cannot Connect To FMS
when i try to connect to FMS an error occured : "Asynchronous I/O operation failed (Failed to attach to completion port: The parameter is incorrect. 87)."
it appears that the FMS have conflict with some service thats runnin in my windows. i have tried to disable my NOD, and all the service that i know of, but it still not working.
i have tried to read from the Adobe Tech Support, but the solution so far is to start over a clean windows installation and install FMS on it. (and yes, ive tried it on my friends notebook and it works). do any of u guys happens to has the same problem? mind if u share a solution without have to reinstall my windows?
Help With Xml.connect
hallo there,
i have a problem with the xml.connect methode. I want to read from the server ( local:127.0.0.1 port:44444 ) a serie of strings, which are split with "#".
like ......speed=200 # id=1 ...... if i want to read the speed and then use if justment, how shoud i do?
Cannot Get FMS To Connect
I have installed FMS3 developer edition on my WinXP with default settings (havne't changed anything yet). /live/ and /vod/ apps work like their supposed to but when I try to get e.g. SharedBall in the samples in the document folder to run it gives the following error:
quote:SecurityError: Error #2028: Local-with-filesystem SWF file file://C:Program FilesAdobeFlash Media Server 3documentationSamplesSharedBallSharedBall.swf cannot access Internet URL rtmp://localhost/SharedBall.
I've checked the manual, checked the installation tutorials found in here and according to those I've done everything right.
What am I doing wrong?
How Can I Connect To FMS
I have FMIS 3 in a Window Xp I can run locally but can't connect from outside. What I have tu put for URL in the swf file because I put the Ip address where the server at and nothing. What shut I do?
Help please.
E-mail Me Please Thank You...
Connect()
what am I doing wrong here? I take it that I cannot do the obvious thing and connect to a webserver in ths way. How can I? No attempt at a connection is made. I can use any nonsense name for host, and there is no error thrown about a lookup failure.
Attach Code
package {
import flash.display.*;
import flash.net.*;
import flash.events.NetStatusEvent;
import flash.events.SecurityErrorEvent;
public class TestConn extends Sprite {
private var conn:NetConnection;
public function TestConn() {
conn = new NetConnection();
conn.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
conn.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
conn.connect("http://www.example.com");
}
private function netStatusHandler(event:NetStatusEvent):void {
switch (event.info.code) {
case "NetConnection.Connect.Success":
trace("Success");
break;
case "NetStream.Play.StreamNotFound":
trace("Stream not found");
break;
}
}
private function securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
}
}
}
Unable To Target A MC
Hello all,
I seem to be having a problem targeting a movie clip just one layer deep from the root from a button that is in a seperate clip .. 3 layers deep. I've tested it to make sure that the syntax is correct and it works fine targeting the _root. I simply want to change the frames. This is the code that I'm using:
on (release) {
_root.about.gotoAndStop(10);
}
This seems like such a simple process and I don't understand why I'm having such a problem. If it's any help, I'd gladly upload the fla if someone wants to take a peak at the file itself.
Thanks MUCH in advance!
Brandon House
Unable To Figure It Out.
don't know if anyone is able to help but i can't seem to view comments to see if its been listed before. I am trying to use this Nav and for some reason i can personalize somethings but I can't seem to get the Links working the keep wanting to go to a file on my computer system. Now i have looked at the Actions, and seen where you put in links but same thing keeps happening i just don't know where to go as i am Completely new to this stuff, and trying to learn as i go but am completely lost. Any help you would appreciated.
Here is the link to the FLA.
http://www.flashkit.com/movies/Inter...2007/index.php
|