ActionScript 2.0 :: Using Netstream With Dynamic URLs
May 28, 2010
I'm currently creating a video player to play files from a different server.
We have chosen to use a token authentication system to check where the files are from. This is a one number authentication code.
We can link to the files by going to a dynamic url such as...
[URL]
The server has to recieve this token when you try to connect the movie or it won't allow it.
I've tried adding it as a dynamic url but ns.play() doesn't seem to recognise it at all that way, unless I'm really missing something with the parameters.
View 1 Replies
Similar Posts:
Oct 3, 2011
I've created a flash animation where I am getting dynamic URLs from XML.Now, I need to use clickTAG in order to track the number of clicks.
I've never used the clickTAG thing, any pointer will be really helpful for me?
One more question is that Is it possible to use clickTAG and dynamic URLs together?
View 0 Replies
Jun 9, 2010
I just made a flash news scroller where the news headlines are dynamic text and have different urls provided in the link section. But when I click on any of them, they all go to the first link only.
View 1 Replies
Sep 2, 2010
I have several SWFs pulled in at runtime from different domains (we're using a CDN). There are some shared fonts within the SWFs. I'm trying to minimize file sizes as much as possible, so that means either not embedding the fonts in any of those SWFs and setting all their TextFormats at runtime. That's very impractical, and it would be easy to miss some of them.
The other, better option is to use runtime shared libraries to pull in the fonts, but that requires either an absolute URL (goes against the concept of using a CDN), or a relative URL (defeats the purpose of using RSLs in the first place since those resources would be downloaded several times anyway). Ideally i'd like to be able to tell each SWF at runtime where to pull in the fonts, and give them all the same, dynamic URL. I can't find anyone who's encountered a similar situation, so i'm not sure if this can or can't be done, but most AS3 problems i find are solved here, so i'm hoping someone knows a good solution for this.
View 2 Replies
Jun 9, 2010
I just made a flash news scroller where the news headlines are dynamic text and have different urls provided in the link section. But when I click on any of them, they all go to the first link only.
View 1 Replies
Mar 9, 2011
Anyone know of any good classes or functions that will do this? I've found some regexes but what I need is to pass the string to a method and have it return the same string, but with urls turned blue and turned into hyperlinks. Seems like a fairly common task, but I can't find anything.
[Code].....
View 1 Replies
Mar 14, 2008
I have a URL that dynamically serves an FLV file or GIF file at different times.
For example, if I put [URL] in my browser, and the server happens to serve an FLV file at that time, the browser will ask me to download the FLV file. If the server happens to serve a GIF file at that time, the browser will display the GIF. Basically [URL] will generate dynamic file content.
In my actionscript I have the following code (assume the video object, netconnection, and other initialization are already done):
netStream.play(http://www.myserver.com/path1/var=somevalue);
When the URL serves an FLV file, the video plays successfully in my flashplayer.
Note that the *actual* FLV file is not specified, only the path that is supposed to contain it. I haven't seen any example of this before, but it works when I try it.
Problem: If the URL happens to serve a GIF, my flashplayer stalls.
Question:
How can I detect that the URL served a GIF? (so that my player can recover) I tried checking if an onStatus event was fired (I'm expecting NetStream.Play.StreamNotFound), but there doesn't seem to be any. It looks like the netstream object did not react to the wrong input.
View 3 Replies
Jul 10, 2010
I am trying to figure out how to use http dynamic streaming with flash 10.1 but I can't get the basic functions working. What is the syntax for using appendbytes with a video file?
package com.player {
import flash.display.Stage;
import flash.net.NetConnection;
[code]......
View 1 Replies
Jul 6, 2011
I'm making a small video players in AS3, and I've found that after calling NetStream.pause() or NetStream.togglePause(), no status messages are being fired any more.If I click the "pause" button while the video is buffering, I never get the Buffer.Full message.Here is some code:
_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_connection.connect(null);[code].....
View 1 Replies
Feb 25, 2010
I am working on an app that will take a snapshot of an rtmp stream of an archived video, save it to a file, and ExternalInterface the file name to the hosting page to javascript it up for display.
I actually have all pieces working great. The only time an error is thrown is when I pause the video, seek to somewhere, and then try to take a snapshot. Then there is a runtime error of:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: mySwf.swf cannot access rtmp://myFlashServer/myApp. No policy files granted access.I've seen post after post of suggestions and have tried them, but without success.
I have the crossdomain.xml and my FlashMediaServer security setup fine (it is actually working, except for this one glitch). It just seems to be the pause-then-seek-then-BitMapData.draw() combination which is creating issues.
Another weird thing: after the error is thrown, if I resume the stream and take a snapshot, it works flawlessly again.
View 5 Replies
Jan 7, 2010
I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:
var url:String = <some http url>;
connect_nc = new NetConnection();
connect_nc.connect(null);
[code]........
View 0 Replies
Mar 20, 2012
In my application I have a video playing from a NetStream. Every second on timer I update a text label with statistics like stream.info.currentBytesPerSecond. The problem occurs when the NetConnection associated with this NetStream closes: the getter for stream.info throws
[Code]...
View 1 Replies
Aug 2, 2010
A NetStatusEvent with info.code of "NetStream.Connect.Closed" is dispatched by NetConnection when a NetStream is closed. This seems kind of weird, shouldn't the NetStream dispatch the event? how do I know which NetStream has been closed if I have more than one running (which I do)? I need to know so I can cleanup the now dead stream.
View 1 Replies
Apr 22, 2009
I want to make a navigation, but this is a flash navigation in a normal website.
naturally its going to include rollovers, but i'd like it to show which page your already on.
is there a way in AS3 to detect URLs?
View 1 Replies
Dec 1, 2009
I have a flash template and I can not add urls to the menu text.
View 1 Replies
Jun 21, 2010
On one of the pages (In the site I'm designing) I have 4 buttons that need to link to 4 separate URLS. When I code one of the buttons, a link on another page is stopped.I guess what I'm asking is, what is the best way to 'layout' my button links in each page? And what is the best way to achieve 4 buttons with 4 different urls.
View 4 Replies
Sep 7, 2008
I am trying to put 3 buttons in a frame. I want each of themto act as a link to Web pages. If I use just the code forlink_btn_one it works great. If I include the code for the other 2it doesn't work. What am I doing wrong?Here's my code:
var link:URLRequest = new URLRequest("
http://www.skybooks.com");
link_btn_one.addEventListener(MouseEvent.CLICK, onClick);
[code]....
View 7 Replies
Jan 18, 2010
I am a designer working on a flash project that is used to navigate to html pages. The project is a map - when you roll over different states there is an animation making that state pop out and show the state name. When you click each state (Button), it should open an html webpage. Right now the project works great, but I have the url's coded in flash actionscript using "onpress" and "load url." I would like to set it up so the flash file calls the URL for each button from an xml file, so it can be easily edited. The only thing it needs to call is the URL for each button. Can anyone give me simple instructions on how to make that happen?
View 5 Replies
Oct 27, 2011
How would you add a target="_self" function onto the buttons in this actionscript (as3) I need the buttons to open within the same browser window and not a new (_blank) window:
skype_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("skype:mySkypeIdentifier"));
} email_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseUpHandler);
function mouseUpHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("mailto:myEmailAddresss@myDomain.com?subject=rts
Esolutions enquiry"));
}
View 1 Replies
Jun 27, 2009
I have a slide show swf file with an invisible button on the top frame. I would like this button to go to different URLs depending on what frame the movie is on when it is clicked. Is this possible?
The following works for one url:
oneBtn.addEventListener(MouseEvent.CLICK, oneButtonFunction);
function oneButtonFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest("http://webpage/");
navigateToURL(request);
}
The reason I am trying to do it this way is I want the script to all be on one frame because I will be using this as a template for other slide shows and want to be able to edit the urls all in one window. I already have a slide show with key frames at the places where the new url would be accessed is click, but it is a pain to edit and add new content.
View 3 Replies
Sep 3, 2010
I'm building a flash app that gets rss links from a list but then I need to retrieve the rss feed from the rss link to work with in flash. I did this locally using a proxy.php wich works on all types of urls.
PHP Code:
<?php
$url = $_GET['url'];
readfile($url);
?>
But on the server it only works with urls ending in .rss but not when it's a redirected url like .xml or other feedreader urls. How do I retrieve the rss from redirected urls on servers? Little sidenote, I made a test using a php form to call this proxy.php file that I made and when I use the urls that don't work in the flash app it does retrieve the rss feeds.
View 3 Replies
Apr 19, 2009
I'm building an mp3 player expressively to make my music URLs a little less steal-able. Forgive my hacking ignorance here, but would it be better to embed my playlist XML (with the URLs) in the SWF rather than having the SWF read the XML file from my server? Seems that the latter approach would be easier to intercept...
I'm pretty sure that no one wants my mp3s badly enough to decompile the code. But with the player currently at my site, my XML playlists -- with the URLs -- started to come up in Google searches. Would rather avoid *that* level of exposure.
View 1 Replies
Oct 29, 2009
I'm trying to get my four images to link to outside URLs.
Here is my website: [URL]
And for example, I would like the "Option One" image to link to [URL]
I'm using Actionscript 3.0 and CS3.
View 1 Replies
Nov 17, 2009
im trying to find info about giving sections of my flash websites different urls.[URL]How do i code it so that a url can take me to a section of a flash website?
View 3 Replies
Apr 28, 2010
I've been trying to fix a problem I'm having in flash, but have no idea where to go from here. I am trying to link multiple images to different urls.[code]I need to make each bigImage file link to a different url.
View 6 Replies
Oct 19, 2009
I've created a flash intro for a website and I have it setup so that in the first frame of the intro it opens a popup window, and then in the last frame it opens the actual site in the same window as the intro. Right now when it hits the last frame it opens up the popup window again also! Ack! The code I've used for opening the popup window is:var url:URLRequest = new URLRequest("player.html"); navigateToURL(url, "_blank");
the code used in the last frame to move to the site is:var urlReq:URLRequest=new URLRequest('index2.html');navigateToURL(urlReq,'_self');
I'm guessing that it has something to do with re-using the same variable name. I tried changing the code in different ways on the second window opening but still had the same result, or broke it opening up any pages at all. I've also tried moving the two code snippets to different layers. I'm thinking there might be a few ways around this too such as if there is a way to trigger the popup window, and then have the intro wait x seconds and then opens the main site or something, but I have no clue how to go about doing any of this. have the site in question in a temp location currently and it can be viewed here: [Url]
View 1 Replies
Oct 29, 2009
so i was trying to lop an Internet radio player, that will connect to different shoutcast servers, and play the radio, of course in development time everything was ok, now the time came for publishing just to be surprised with this messageof course i know what to do, but the end user will most likely won't know, and also i think this is a set back for developing such stuff, i also once tried to develop a twitter widget same thing happened when trying to communicate with twitter output, to work around that i could load the xml file from twitter into a local file using php, but i see a lot of flash files that uses flickr, twitter, and other sites, so how do these widgets work without triggering the security message,
View 1 Replies
Feb 10, 2010
I have assigned a different URL link to each button in my flash file, but receive the error "duplicate function exists" when tested. I tried renaming each function, but get an additional error, so that doesn't work either. Below is my code:
[Code]...
View 12 Replies
Jun 27, 2011
This is only opening the 2nd website, how can I make flash open both?
ActionScript Code:
navigateToURL(new URLRequest("xttp://wwx.facebook.xom"), "_blank");
navigateToURL(new URLRequest("xttp://wwx.youtube.xom"), "_blank");
View 3 Replies
Jan 21, 2008
am using Carousel 3, and have my images working properly, and even the application in general. What i'd like to do is embed urls in the text, however i'm finding the (") issue preventing this from happening in an element in the XML file. Initially I thought there was a way around using the quotes so that I could provide links in the text. what i'm trying to accomplish is this:
<icon image="icon1.png" tooltip="This is the Tooltip" content="This is the content and a link ((http://www.gotoandlearnflash.com)) that i'd like to make clickable for a user." />
View 14 Replies