3rd Party Flash Streaming Service?
Im looking for a 3rd party service which will allow me to remotely stream high quality video (and audio), which I can embed into a website. The video has to be private, so the only way you can view the stream is if you are viewing it from the site that has the coded embedded into it. Free or paid services are fine.
Its going to be used for cams, where people have to have a valid membership to a site in order to view it.
Can anyone suggest something like this?
DevShed > Flash Help
Posted on: June 3rd, 2008, 07:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Stream Video From 3rd Party Streaming Service
The company I work for pays a 3rd Party for streaming services. Usually it is displayed through Windows Media Player etc. I would like to use a video file from the 3rd party service in a Flash application I am building.
At first I thought it would be as easy as imputing the url of the video stream into the Flash Media Encoder but that didn't work. I guess when you select "Already deployed to a web server..." the extension has to be .flv or.xml. The reason I don't just deploy the video from our server is that the IT director is afraid that the large file could clog up the bandwidth.
So the question is this, can I use a url such as, http://www.domainname.net/company/...MEDIA_ID=571166&MEDIA_EXTENSION=asf&MODULE=ANGRC
as the source of a .flv file? If so, how?
As always, any help is greatly appreciated, thanks in advance,
Pharaoh
Third Party Newsletter Service - Is There A Flash/Actionscript Solution?
Hello,
I'm looking for some advice or help. I work with a customer who really needs to have a flash/actionscript frontend for their subscription form but are using a subscription service to collect and process their mailing lists and need to do so for legal reasons.
Here is the code for a very basic version of the what we have to work with in html
Code:
<!-- START CODE -->
<FORM ACTION="http://theserviceused.com/ex/manage/subscriberprefs.aspx" METHOD="POST">
<FONT SIZE="-1" FACE="arial, helvetica">
<STRONG>Register for email updates</STRONG>
</FONT>
<BR>
<INPUT TYPE="TEXT" NAME="email" />
<INPUT TYPE="HIDDEN" NAME="customerid" value="000000" />
<INPUT TYPE="SUBMIT" value="Sign up" style="background-color:white;color:green;font-weight:bold" />
</FORM>
<!-- END CODE -->
Is it possible to create a flash frontend with this information alone? I cannot get access to the subscriberprefs.aspx file, and I doubt that I ever will. The Flash version I have is Flash 8.
[F8] Send Form Through A 3rd Party Mail Service
Good afternoon all. I am trying to send the contents of a Flash form to iContact, which is a 3rd party email management service. My form works fine when I write my own PHP script, but I can't get it to show up in iContact. There are fixed variables that I have to send onSubmit that tell iContact where to post, but one variable caught my eye. It is:
specialid:26395 = "ACQQ";
Because of the colon after "specialid", I can't send this as a variable in Flash. Has anyone tried to send a Flash form through a 3rd party service and have any insight? Or does anyone know how to get that variable with the colon to post onSubmit?
I was thinking worst case scenario I could pass everything into my own php script, then pass it into iContact from there, since it works in html. But I have never written a pass through script.
Any ideas would be helpful. My onSubmit code is below. Maybe I am missing something? Thanks in advance for your help.
Code:
on (release) {
if (!email.length || email.indexOf("@") == undefined || email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
}
else {
//copying the entered variables into the variable names required by iContact
fields_name = name;
fields_country = country;
fields_postcode = postcode;
fields_email = email;
fields_emailformat = emailformat;
listid = 26390; // below are the fixed variables required by iContact to recognize the account
specialid:26390 = "ACQQ"; //Flash won't let me pass this one
clientid = 202700;
formid = 2300;
reallistid = 1;
doubleopt = 1;
sc_project=3838100;
loadVariables ("http://app.icontact.com/icp/signup.php", this, "POST");
EmailStatus = "Sending... Please wait";
}
}
Live Flash Streaming For 3rd Party Programme
Hi
I want to use a programme called Wirecast to produce a series of webcast television. My problem is that I want to stream h.264 as flash as it is the most ubiquitous platform on the web, and delivers the content in the quality that I desire.
The makers of Wirecast ( Vara Software) at present are only able to give me the option of the streaming in Real player. This is apparently because Adobe won't allow them to include the code to stream flash.
I know that I am not alone in the frustration this causes, and in fact I have held off purchasing the software package until it has the flash capability, even if that version were to have a premium added.
Could someone at Adobe please help me, is it possible that you could license your product to them?
Thank you in advance
Kevin Magee
PS I want to do this on a Mac
Trouble Connecting To Flash Streaming Service
does anyone happen to use Playstream and have some advice? I'm trying to connect with the attached code and I'm getting the following error message:
Error opening URL 'rtmpe://fvss.playstream.com/fvssod/escstream/Irish_Dancing/Two-HandJig_56k'
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFound
at testPlayer_fla::MainTimeline/frame1()
Flash Video Streaming Service Recommendations
I am looking into a steaming service, and found several websites (including the macromedia certified services) but am looking for recommendations.
Also, as far as pricing goes of course everyone wants you to contact them but I don't want a lot of sales reps bugging me. (or my boss for that matter)
As far as looking for service for maybe a few sites (less than 10) with probably only one video per site (if even that many, right now we only have one client interested in streaming an 11 minute video on their site)
Does anyone have a ballpark figure on this range of pricing?
Thanks!
Which Flash Streaming Service Provider Should I Choose?
Hi Guys,
I'm brand new to this forum and streaming media.
I'b building a site that will need to play three flash movies (11 min.), (7 min.), and (20 min.) in length.
I'm using Camtasia to create the videos in flash.
The videos could be seen by up to 1,000 users simultaneously.
The users will probably be 60% high speed and 40% dial up.
I need the highest percentage of users to be able to see
the videos (who doesn't...right).
This site is an MLM distributor recruiting site that will be replicated for distributors, so they'll be depending on me (they are each paying me $30 a month) to make sure that the videos stream correctly and smoothly. So I'm willing to pay the price for the best solution.
I'm looking at using one of the following services...
http://www.vmatrix.com
http://www.presentationengine.com
http://www.influxis.com
http://www.vitalstream.com
Do you have any suggestions or advice for me?
Thanks in advance
David Frey
Flash Video: Streaming Service Provider Or FMS?
Hi guys,
I've been working on an FLV hub, as it were, for a CCTV company demonstrating their mobile video capture technology, e.g. footage captured from race-cars, bikes etc. Despite there already being a large volume of video content they wish aired, I have up until this moment opted for the prog. d/l method. This has been acheived by breaking hours of video down into 5 min chunks and delivering the video sequentially through a video component using netsream/netconnection and is navigated by a video-thumb scrollpane. As this is all progressive, it is not particularly dynamic and now that they've given me another 8 hours of footage to add, I'm beginning to consider the merits of a streamed service.
Therefore my question is this. Should I opt for a streaming service provider or an FMS for the server? Given they are a CCTV firm, I would also liek to consider the possiblity of piping live video into the hub from various feeds, allow the user to select between them.
I've looked at VitalStream's offerings and they seem to be rather expensive in comparison to just buying an FMS and seem to only offer either on-demand video or live, not a combination of the two.. Is anyone familiar with this area, understands the pros/cons of each?
How easy is this to set-up a dynamic system? I would ideally like the system to be automated, generating video thumbnails and the linkage to the videos on its own, requring less technical expertise to interface with/update.
Also, how arduos would the process be of converting my current system which, is built around progresssive download to be capable of all this?
How much information in this area is available online? I've briefly looked at livedocs on subjects such as live-video switchers etc. Can anyone offer any other good links to sites covering these topics?
If anyone can offer any advice in this area, I would be greatly appreciative.
I'm fairly new to all of this and it has been a continual learning curve thus far, so I'm reluctant to butcher my progress but am willing to do so if this is the best option.
For your reference, there is a test system uploaded to our servers currently at: http://www.dedicatedmicros.com/ukftp/FLV_HUB/corporate_press.htm
Thanks and let the games begin,
Dave :roll: ....... can't get enough of those smileys.. always fun
Flash Streaming Service Bandwidth Detection
I'm wondering how the flash streaming services do download speed detection. I've been trying to pick one for a client, and every time I go to view their portfolios, i am unimpressed. It always ebds up starting, then stopping throughout the movie. I end eup pausing it to let the buffer get ahead, but the end result is that I could just have easily watched a progressive download.
I'm wondering if it has to do with my connection. I am on DSL, but far from the trunk line. They sold me on the Pro version, but were unable to deliver that speed. I don't think I am even close to the normal DSL speed.
Does the badwidth detection test for a speed and then lump me into a DSL category that is faster than my connection can handle. Does the nbandwidth detection figure out my speed initially, and then my connection speed waivers?
Am I the only one seeing it this way?
I can view youtube.com video with no problems, but when I embed the youtube code on my site, it is jittery just like all the others.
Oops, i just realized I am in the action script forum. I thought this was the General Flash Design
Streaming Service Providers?
Hi all,
Just a quick question, I'm looking for a service provider to host my Flash videos so that I can play them in the player, who are the best in terms service, features and cost? I know there are a few out there, vitalstream etc... but what should I be looking out for?
Regards
Kevin
Connect To Video Streaming Service Not Using NetConnection?
Hi.
Wonder if it's possible.
What I have: FMS server on localhost.
What I want to do: connect to it, get video data from VOD type app, modify the data and send it back to the server (publish).
However, right now I can't see how I go about it... NetConnection/NetStream has no methods like readBites or something similar... Even more, I tried to fake it by opening socket to localhost port 1395 with no success = It just won't connect.
Doing the same without FMS would be even better %) Meaning, if I could download FLV, modify it and send back to the server, it would've been even better =)
Anyone, any suggestions, please?
TIA
Flash 3rd Party ...
Hello,
What is there in the way of 3rd party software for flash that can do things like write to files on the users machine, edit the users registry and create projectors (or standalone flash pieces) that connect to the internet for live data ?
Can anyone advise me on this - and/or point me to some articles?. Who are the players in this field?. I know about http://www.multidmedia.com/ but are there any other that I should know about?
Thanks,
Stephen.
Flash 3rd Party ...
Hello,
What is there in the way of 3rd party software for flash that can do things like write to files on the users machine, edit the users registry and create projectors (or standalone flash pieces) that connect to the internet for live data ?
Can anyone advise me on this - and/or point me to some articles?. Who are the players in this field?. I know about http://www.multidmedia.com/ but are there any other that I should know about?
Thanks,
Stephen.
Flash 3rd Party ...
Hello,
What is there in the way of 3rd party software for flash that can do things like write to files on the users machine, edit the users registry and create projectors (or standalone flash pieces) that connect to the internet for live data ?
Can anyone advise me on this - and/or point me to some articles?. Who are the players in this field?. I know about http://www.multidmedia.com/ but are there any other that I should know about?
Thanks,
Stephen.
Flash 3rd Party Filters?
Does anyone know of good 3rd party filters available for Flash 8? (free or for purchase?) I'm looking for things like type effects and motion effects, beyond the standard drop shadow, blur, etc.
thanks!!
susan
Help 3rd Party Tool For Flash 7...
I'm looking for a tool that allows flash 7 files to save data in the hard disk, like "FLAWRITE", from flashtool.de, but it HAS to work with flash 7.
What Is The Best 3rd Party Flash-base Software
What do you think is the best 3rd party flash based software?
Ex. Swish - I'm looking to buy one but I'm not sure what's the best - and maybe there are some out I dont even konw of. I looking to use it to speed up animation - as well as make some eCards?
Thanks for yoru help and time
JT
ATL
3rd Party Flash Video Encoders?
What is the advantage of using 3rd party software, such as, squeeze or Cleaner to encode video as Flash video instead of using the Flash Video Encoder?
Thanks.
The Best 3rd-party Flash Animation Program
There are so many flash 3rd-party animation software (e.g. SwishMAX) which say they could cut your animation process by at least 50%. But what do you use and do you even use it in the first place?
Flash > Screensaver (3rd Party Software Suggestions)
I was wondering if anyone could recommend a software that will turn a Flash movie into a Screensaver.
Also if the third party software creates an installer.
I am interested in knowing the good, the bad, and the ugly!
Thank in advance!
Need Flash Designer To Create Party Banner
Im creatin a website called " Go Wilder " and i have a cool logo / banner and the audio to go with it, but i am inexpericanced with flash.
It would be a great help if ne1 could help me create one for me, i have the files to send if neone can do this for me.
thanks alot
How Access A Third Party Flash Media Player
Hello eveyone,
I was wondering if there is any way that I can know some how what buttons "Play, Pause, FF, etc. " has been clicked a third party Flash Media Player?
Thank you and have a great day.
Khoramdin
Supplying Flash Adverts For 3rd Party Sites
I've been asked to create some ads to go on a site that specifies "Advertising requiring the use of plug-ins like Flash and Shockwave must utilize "sniffer" code to detect if the user has the required plug-in and display an alternate image if the user does not have it. ".
How do I do this? Are they expecting me to supply the HTML/Javascript that loads either my .swf or a JPEG? I would have expected the host site to have a site-wide function to handle that. What is the normal way of doing this?
Bob
Open-source/3rd-Party Flash/flex Tools
To all and sundry,
First off can some one please provide a list of 3rd party /open-source tools that reasonably emulates the Flash 9 authoring environment and secondly are there any tools out there that can convert from SVG format to Flash 9 (AVM2) native vector format...
I've checked out a few things online at Open Source Flash including SVG2SWF converters but conversion is typically restricted to Flash 8 and below...
Thanks in advance to anyone you can supply any help...
Third Party Tool To Show Or Hide Panels In Flash
Hi, I used to have a program that did this function:
Panels like the actions or the timeline one could be hidden, and if
you moved the mouse to the edge of the screen, they would appear, it
also worked with Photoshop (i think).
I'm looking for it, I had it installed on my old computer, and I recently
changed to a new one, but sadly I don't remember the name of that
program.
thnks.
Launching 3rd Party Apps From Flash While In Full Screen Mode
I was told that there is a script(s) that can be used to Launch 3rd party (ppt, pdf, etc) apps from Flash while in full screen mode. When the the 3rd party app launches, Flash window is reduced and after working with the 3rd paty app like saving a PDF document and when clicking on Flash app window it resumes to Full screen mode. Can some one point me to this screen.
FYI: if in full screen mode in a Flash app for CD-ROM, and if you try to launch a pdf document, it is launched in the background on then PC and in foreground on the Mac. Currently we use Director to control save frile from CD-ROM but sometimes it is a pain. Help will be much appreciated.
Playing Streaming Video From Darwin Streaming Server In Flash Player
I understand that Flash player & FMS support RTMP and not RTSP. However I'd like to know how can I receive the video stream encoded in H.264 from a Darwin Streaming Server and play it in Flash Player 9? Darwin Streaming Server uses RTP/RTSP for streaming. Let me know if anyone had success with this.
How To Limit Streaming Bandwith Using Flash Media Streaming Server
Hello,
We have recently designed our audio streaming player (designed in Flash) to stream mp3 content using FMS rather than progressive download. Our goal was to reduce the waste of bandwidth which occurs with progressive download - in cases where the player loads the song and only a few seconds are heard, though the entire song file is downloaded to the client computer which wastes bandwidth. We thought using FMS and streaming the mp3s using rtmp:// protocol would reduce our bandwidth usage.
However this has not happened. Our bandwidth is slightly lower but not significantly so. Seems like FMS is also downloading the entire song even though a listener maybe only a few seconds from the beginning of the song. The bandwidth charts are essentially the same as compared with progressive download which was simply using http:// with the mp3 content on a web server.
Does anyone have any suggestions of how we can make changes to FMS in a config file or console where we can set the streaming server to only download a few seconds beyond where the player is listening? It just seems like we are at no advantage with FMS in terms of decrease in bandwidth which was our major reason to go forth with this technology.
Any suggestions would be greatly appreciated.
Thanks,
MD
Edited: 09/05/2008 at 02:13:56 PM by md31
Flash Web Service Bug?
Problem: Flash Web Service is working from any PC from Intranet but not using External IPs.
I have created ASP.NET Web Service "RunSQLQuery", and Web Application "Web_ServiceTest" consuming this Service using C#,
and Flash ".swf" calling the same Web Service. For debug purposes this ".swf" is included to "Web_ServiceTest" only web page as iframe.
All ("RunSQLQuery", "Web_ServiceTest" ,".swf") are placed to the same machine.
Being desperate I step-by-step placed "crossdomain.xml" file
with
<allow-access-from domain="*" secure="false" />
to almost all folders like:
C: ; C:inetpub; C:inetpubwwwroot; and all folders and subforlders were "RunSQLQuery", "Web_ServiceTest" and ".swf" reside (even to "bin")
When I'm calling Web Service from ASP.NET part of "Web_ServiceTest" everything is OK from any IP,
but neighboring Flash works for Internal (192.168.xxx.xxx) company addresses only, not for External.
And no any response/results...
Unfortunately I can't use Proxy or Flash Remoting.
Does anybody has any idea how to resolve this issue?
Flash And .Net Web Service
Hi,
I was wondering if anyone could help me with a troublesome problem I cannot seem to solve.
itemUID = "00000000RZ";
var variables:URLVariables = new URLVariables("var1=" + itemUID + "&var2=4");
var request:URLRequest = new URLRequest();
try
{
request.url = "http://192.168.1.20/services/Service1.asmx/getImageData";
request.method = URLRequestMethod.POST;
request.data = variables;
}
catch (error: Error)
{
//throw some error
}
var loader:URLLoader = new URLLoader();
loader.load(request);
loader.addEventListener(Event.COMPLETE, completeHandler);
function completeHandler(event:Event):void
{
var retVal:String = event.target.data;
lblError.text = "retVal: " + retVal.length.toString() + " " + retVal;
}
I would like to access a .Net 2.0 web service in flash. It works fine when being developed tested within a local environment but when it comes time to test flash using a remote client (web browser on another machine) accessing my server (iis 6.0),
I get the following error messages:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://192.168.1.20/services/Service1.asmx/getImageData
at imageViewII_fla::MainTimeline/imageViewII_fla::frame1()
The web service works perfectly and has been throughly tested. I have simple http get/post over soap as flash professional 9.0
doesn't fully support soap, only flex does. I have tried in flex and get similar errors.
At this stage I can only assume that there is either a permissions issue with iis or I am missing something major
about how the flash loader works.
Has anyone had issues like this before or have any insight into solving this problem
Thanks
Matt
Flash As A Service
Is it possible to have a flash program (exported as an exe) run as a service? Or even, just run in the background, but one that doesn't need focus to capture key strokes? Basically, it would run like a keylogger would (I know, evil word) but instead of tracking all key presses, it would only keep track of how many times certain keys are pressed. I have the code to capture the key presses, and it outputs a report along the lines of
A pressed 312 times
F pressed 118 times
etc.
I want this to run in the background, preferrably in the tray, and keep track of key strokes as the user types an e-mail, etc.
Thanks in advance
Al Ridley
Lucid Web Designs
Flash & XP Service Pack 2
I have recently installed Windows Service pack 2, and whenever I publish a flash file and run the .html Internet Explorer is stopping the flash file from playing.
Information bar says something about unsafe active-x controllers.
Anyone knows how to fix this?
Flash Web Service Problem With Asp.net
basically, i have a webservice i made in asp.net which returns a dataset.
im currently using the following actionscript. problem is i cant get it to trigger the web service at all, it just says error opening url when i go to run it. if i run my web service manually it works, is there anyway to trigger the webservice in actionscript so i can then load the data as xml? id rather not load it in as a actual xml document (instead of using a webservice) because the files potentially are going to be pretty big and id be able to communicate back to .net as well for certain bits
sorry if its in te wrong section
Attach Code
textHeader = "Loading XML Document Data";
function doLoad () {
checkXML = new XML();
checkXML = thisXML.childNodes[2].childNodes[3].childNodes[1].childNodes[1];
for(i=0;i<checkXML.childNodes.length;i++){
textDefault = checkXML.childNodes[i].childNodes[0].nodeValue;
}
eventTitle = textDefault;
}
thisXML = new XML();
thisXML.onLoad = doLoad;
thisXML.load("http://localhost/test/WebService.asmx/GetData");
trace("this xml" + thisXML)
Connecting To A Web Service In Flash
There were several unanswered threads from a long time ago that dealt with accessing a web service using Flash. The following takes a web service I created in my ASP.NET web service tutorial and displays the information in Flash:
Code:
import mx.services.WebService;
import mx.services.PendingCall;
function WebServiceCall(input:Number) {
var returnedValue:String;
var wsURL:String = "http://www.kirupafx.com/WebService/TopMovies.asmx?WSDL";
var ws:WebService = new WebService(wsURL);
var re:PendingCall = ws.GetMovieAtNumber(input);
re.onResult = function(result):Void {
returnedValue = result;
trace("Value returned: "+returnedValue);
};
re.onFault = function(fault) {
returnedValue = fault.faultCode+","+fault.faultstring;
trace(returnedValue);
};
}
// 5 corresponds to "Schindler's List"
WebServiceCall(5);
Hopefully this is helpful. This will definitely be expanded into a tutorial at a later time
Cheers!
Kirupa
Service Pack 2 Blocks Flash?
I don't know if I missed the discussion... I'm really surprised it isn't pasted all over the site... but I just upgraded to the new service pack 2 for internet explorer and discovered that it blocks all flash content?
Have I got this right? Macromedia help desk told me how to fix it in the options but can we really expect naive users to do this?
I know I found it really frustrating that each time a page appeared I needed to go to the information bar and tell it the flash content was OK.
I may have got this all wrong, I'd love to hear if there's a forum on this issue or if it's just particular to my system. If it is a real issue I'm surprised there wasn't something on the main page.
I've been working with flash for 4 years, but personally it makes me question using flash for future projects just because I won't be able to sell it to clients.
"We've got this great web tool, but not only do you need to download a plugin to make it work but ALSO if you go up to the menubar under tools and internet options... and security controls and then..."
If there is an easy solution I'd love to hear it!
Service Back 2 Problem With Flash
hi all i have a flash banar in my site
there is a problem with the users or some users can not enter my site because of the service back 2 from microsofr
many users don not know until now about this massage appeare to them if there computers are new
see the picture in the attachment
how to avoid this message please to all users caz that many emails sent to my email in this problem that the site is not work with us
every time he should right click and select allow this block
Service Pack 2 Blocking Flash
I have played with FLASH on and off for the last 2 years . . .
It's been a while since I have done anything new with it, but I am seeing that WINDOWS security is blocking it as a POP-UP.
I have seen other sites where FLASH is present, and the FLASH movies there did NOT activate my WINDOWS blocker . . .
What are they adding that I can add to keep this from happening . . . ??
Am I supposed to add additional tags to my <Object Embed= . . . > tag, or is this some java script that runs to allow for the FLASH movie to "NOT" be blocked . . I need to make a interactive drop down menu with FLASH and can't get past this . .
Can any one help?
Flash And Service Pack 2 Issues
I am a new developer and have run into the issue of Internet Explorer service pack 2 causing my flash to be blocked as a pop up. Searching through other flash pages I found that some had this problem while others didn't. How do I resolve this issue?
Calling Servlet Service From Flash
Hello,
I am trying to get a 'Servlet Service" up and running using Tomcat and Java. I have sucessfully called methods on classes and so-called 'Java Bean Services', however, for a project i have to use a servlet (to be able to call many different classes).
Here is my code so far:
Here is my web.xml on the server:
Quote:
<web-app>
<servlet>
<servlet-name>DefaultGateway</servlet-name>
<display-name>DefaultGateway</display-name>
<description>DefaultGateway</description>
<servlet-class>org.openamf.DefaultGateway</servlet-class>
<init-param>
<param-name>OPENAMF_CONFIG</param-name>
<param-value>/WEB-INF/openamf-config.xml</param-value>
<description>Location of the OpenAMF config file.</description>
</init-param>
</servlet>
<display-name> flashServletExample </display-name>
<description>This better work</description>
<servlet>
<servlet-name>ServiceServlet</servlet-name> <!-- mapping name below -->
<servlet-class>ServiceServlet</servlet-class> <!-- name of class -->
</servlet>
<servlet-mapping>
<servlet-name>DefaultGateway</servlet-name>
<url-pattern>/gateway</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ServiceServlet</servlet-name> <!-- servlet name looked for when URL below is searched for -->
<url-pattern>/ServiceServlet</url-pattern> <!-- the url that can be typed in the browser -->
</servlet-mapping>
</web-app>
And here is my Java servlet:
Code:
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;
public class ServletService extends HttpServlet
{
public void service( HttpServletRequest request, HttpServletResponse response ) throws ServletException
{
List params = ( List ) request.getAttribute( "FLASH.PARAMS" );
request.setAttribute( "FLASH.RESULT", params );
}
}
And here is my front-end Actionscript (i have moved it in to the webapp folder of the servlet):
ActionScript Code:
#include "NetServices.as"
var service:NetConnection = myConnection.getService( "flashServletExample", this );
service.ServletService( "Hello." );
function showServletResult( result ):Void
{
trace( result );
}
However, i am not seeing any result at all. I would be very grateful if anyone could point out where i might be going wrong.
Thanks in advance.
Regards, snapple
Flash Service Returns Undefined
hi
I’m having troubles with the use of flash remoting
I have a class called daoZoek. this class is the data accessor for searching members in a database using flash remoting. Everything worked before but yesterday I decided to place my classes in folder (be.wellconsidered.dao instead of be.wellconsidered.*) so the project has a better structure.
But since then, this class doesn’t work anymore. The strange thing is that I have a similar class to register, edit and login members and that class still works as it should be
so, the problem with daoZoek is the service. when I try to trace “zoekService” it returns “undefined” which is strange because daoLid (for registering, login and edit) is just the same.
also, the gateway path and the service path are correct as well as the methodname.
this is the code
ActionScript Code:
import be.wellconsidered.*;
import be.wellconsidered.dao.*;
import mx.remoting.*;
import mx.services.*;
import mx.rpc.*;
import mx.remoting.debug.*;
//
class be.wellconsidered.dao.daoZoek extends MovieClip {
// VARS
private static var instantie:daoZoek = new daoZoek();
private static var zoekService;
// CONSTRUCTOR
private function daoZoek() {
// SERVICE INIT
zoekService = new Service("http://localhost/__flashservices/gateway.php", null, "WT.Zoeken", null, null);
trace(zoekService);
}
// GETDAOLID
public static function getInstance():daoZoek {
if (instantie == null) {
instantie = new daoZoek();
}
return instantie;
}
/* --ZOEK ALL LEDEN-------------------------------------------------------------------------------- */
public function zoekLid(o:Object, onResult:String, onFault:String, search_term:String):Void {
var pc:PendingCall = zoekService.zoekLeden(search_term);
pc.responder = new RelayResponder(o, onResult, onFault);
}
}
Flash Remoting VS Soap Web Service
I am working on a solution to integrate Flash movies with Microsoft Content Management Server. The movies will pull resources (eg: images, audio, movies, text) from MCMS. The decision has been made to go with a web service to facilitate this communication. Which choice is better and why...
- Flash Remoting
or
- Flash using SOAP
Flash Remoting, No Such Service - Solved
I have been using Flash Remoting for .NET for a few years, and have deployed applications to a number of customer sites. My applications use a .NET web service to provide data to the Flash movie. Often I find that FR works fine when the web site is accessed from an internal network, but when accessed from the outside Internet, the Flash movie shows no data and produces a "No Such Service" error. Usually I blindly change settings and eventually it works. I've seen plent of people report this problem, but I've never seen a definitive solution. It's definitely not explained in the product documentation.
Recently we solved this problem, and the solution gave us a lot of insight about how FR works.
In order to connect to a web service in Flash, you must first use setDefaultGatewayURL and SetDefaultGateway. This just requires the URL to the flashgateway.aspx file on your web server. So far so good.
Next, you use getService() to connect to the web service proxy. This requires the URL to your web service. Here's where things get tricky. This URL is passed to your web server, which then attempts to resolve that URL, and then attaches to the web service. So, if your server can't resolve the URL, it will return "No Such Service." This is why things may work fine internally, but when accessed externally, you might have a problem.
The solution is to change the "hosts" file on your web server. You will map the local IP address of the machine (127.0.0.1) to ANY DNS name you may use to access the web site. So, if you use these URLs to get to your web site:
http://myserver/myapp (internal URL)
http://myserver.mysite.com/myapp (external URL)
You will add the following to the Hosts file:
127.0.0.1 myserver
127.0.0.1 myserver.mysite.com
This will ensure that the web service will always be found, no matter how you access the site. As a bonus, this also speeds up Flash Remoting, because previously every request to the web service would require a DNS lookup. Now, it just finds an entry in the Hosts file and proceeds from there.
I hope this helps someone. FR works great once it's configured right, but getting there can be very frustrating and time-consuming.
KH
NOAA Weather Web Service In Flash
Hi,
i am really new to Flash and am enjoying the learning process but i have a question which i cant figure out. I live in Colorado Springs and there are three web services (areas) that i am interested in putting in my website. For starters, I only want to get advisories, watches and warnings. If there are none i don't want anything displayed (just the background color), if there is one of the above for either the Pike's Peak Region, Northern El Paso County and Southern El Paso County i want to display it. (Basically have three containers for each region). In addition, to get "fancy", i would like to have a colored box above the container which has orange for advisory, yellow for watch and red for warnings...can someone please help/show me how to do this. I am struggling with the whole thing including connecting to the web service. The idea is good, putting it into action is another thing. Any assistance would be greatly appreciated.
mike
Submitting An Array To A Web Service Through Flash
Hey Guys,
I'm having a small issue with submitting an object through an array to a web service in flash. I've submitted objects to a different web service before with no problems, and I've submitted the params that aren't part of the object with no problems before, but I can't seem to get the format right for submitting the object as part of an array (Important because eventually there will be multiple objects in that array).
My code is thus:
ActionScript Code:
triggerWebService = function () { trace("triggerWebService()"); var RMAItems:Array = new Array(); for (var i:Number = 0; i<=currPlus; i++) { var RMAItem:Object = new Object(); //RMAItem.SoldItem = eval("mainContent.specs.product"+i).text; //RMAItem.SerialNumber = eval("mainContent.specs.serial"+i).text; RMAItem.SoldItem="Sold Item" RMAItem.SerialNumber=123456 RMAItem.WarrantyNumber = 22222; RMAItems.push([RMAItem]); if (i == currPlus) { this._parent.rmaSubmit_ws.params = [mainContent.specs.firstName.text, mainContent.specs.lastName.text, mainContent.specs.address1.text, mainContent.specs.address2.text, mainContent.specs.city.text, mainContent.specs.stateName.text, mainContent.specs.zip.text, mainContent.specs.country.text, mainContent.specs.phone.text, mainContent.specs.email.text, "BACK", "TEST guiID", mainContent.specs.summary.summary.text, RMAItems]; //trace(this._parent.rmaSubmit_ws.params) this._parent.rmaSubmit_ws.trigger(); } }};
The web service is:
http://wsnew.sp.cm3consulting.com/smartparts.asmx?WSDL
and the method that is being called is:
AddRMAFromForm()
Be aware that there are a few methods with very similar names
And if you do any testing with submitting on the actual web service please populate the fields with definite "test" names as it goes to the actual database. If anyone can give me any help on the proper format or what I'm doing wrong, it would be greatly appreciated.
Here is the function that is called when results are received in the web service. The resulting RMA number should be a unique integer... Not "0".
ActionScript Code:
rmaResult = function (ev:Object):Void { trace("Results received"); var rmaNum = ev.target.results.RMANumber; trace(ev.target.results.ErrorDescription); trace(ev.target.results.StackTrace); trace(ev.code); trace(rmaNum); trace(ev.target.results.RMANumber);}
thanks very much,
-iLan
|