ActionScript 2.0 :: Count Impressions Using An External Counting Link?

May 7, 2009

I made a flash video player for a customer and it's all working well- but there is one problem:

They want to count impressions (how many times a video was played).

I managed to achieve this before, using loadVars to call the link.

It works when I run the SWF on my PC (the link to call being on an external server) but it doesn't work anymore, once the SWF is on the server.

I don't want to make any assumptions what might cause this- because I don't want to "taint" the possible answers coming from you experts out there

This is the code excerpt (the link is just an example):

Code:
var counting_pixel = "http://www.theserver.com/reporting/count.php";
newURL = new LoadVars();
newURL.onLoad = function (success)

[Code]....

When the file runs locally, it traces "SUCCESS" but now that it's on the customer's server, it fails.

The problem (as I see it) might be, that the data that is "loaded" is on a different server, while the scope is limited to local access...

But I need the local access because the SWF loads an XML from the customer's server (the XML contains the path to the FLV)... so I can't just set the SWF's scope from local to external... or can I?

View 2 Replies


Similar Posts:


Actionscript 3 :: Characters Count Only Start Counting On 2nd?

Mar 19, 2010

I have a function that calculates how many characters remaining the user can type, but I don't know why it only starts counting from the 2nd characters. Means at the end I will able to type an extra character from the maximum amount I set.[code]...

View 2 Replies

ActionScript 3.0 :: [Updated] FP 10.1 First Impressions

Nov 17, 2009

Right off the bat, with the few new things that I've messed around with so far, I haven't really run into much in FP 10.1 that's both interesting and working with my particular setup. Examples: Originally Posted by FP 10.1 Release Notes The Global error handler is disabled in the current build, but will be available in a future beta refresh of Flash Player 10.1 Gee, I guess I won't be testing that. The classes do exist in the player, but it looks like loaderInfo.uncaughtErrorEvents is null for the release that we got.

[Code]...

View 14 Replies

ActionScript 3.0 :: Flash Var Count = 1 | Count++ && Count?

Jan 19, 2011

I'm trying to make a volume button for my site and it looks something like this:

- ||||| +

i want the volume bar to start filled and when the user hits the minus button it lowers the volume and when it hit plus it takes the volume up well when I go down and up the volume bars start to get crazy...it just works when I go down the whole way and after it goes up the whole way, when I change direction on the midle of the path it jumps some bars...

Code:
volDown.addEventListener(MouseEvent.CLICK, menosVol);
volUp.addEventListener(MouseEvent.CLICK, maisVol);
var cliques:uint = 0
if (cliques == 7){

[code]....

View 1 Replies

Actionscript 3.0 :: Counting Down Instead Of Counting Up

Jan 15, 2009

I created a timer with found tutorials and the Flash help files and everything works fine. My timer counts up from 000.000,0 to 999.000,0. Now I would like to also be able to do the same, but counting down from 999.000,0 to 000.000,0
Easy enough I thought, but now . how to make some modifications in my code to count down.

My code for counting up is the follow:

Code: Select allvar hours:Number = 0;
var seconds:Number = 0;
var minutes:Number = 0;
var pauseTime:Number = 0;

[Code].....

View 2 Replies

Actionscript :: FLASH Count Symbols In External Text File

Oct 25, 2011

The problem is that i need to count symbols in external .txt file djs/1/text.txt If this external text file contains more than 50 symbols then i need to echo some text in Dynamic flash text(Myflashtext.htmlText ="some text";) in my Flashmovie.

View 1 Replies

ActionScript 2.0 :: Switch Simple Count Up To Count Down?

Mar 10, 2007

I've found a simple count up script over on Actionscript.org

var count:Number = 0;
var maxNum:Number = 1250;
var num:Number = 1;
this.createTextField("txt", this.getNextHighestDepth(), 0, 0, 100, 50);

[code]....

This works great for my use, but now I am trying to figure out how to make it count down. I've tried changing everything to opposites like count=1250 and maxNum=0 (I think this would be the minNum instead), count+=num to count-=num, and count>=maxNum to count<=maxNum.

View 3 Replies

ActionScript 3.0 :: Link To External PDF In External As File?

Oct 20, 2009

I've re done a couple of pages on my website and as a result of the new design have had to change some of the coding from being on the timeline to being in an external as document linked to my fla. This is significant only because I can link to external pdf.zips no problem on the timeline but I can't seem to translate the code to the external file. Can anyone out there help me out with this (hopefully) simply problem?I'm playing with different variations of this below but I'm constantly getting the 1180: Call to a possibly undefined method navigateToURL.

function onEnglishClick(event:MouseEvent):void {
var request:URLRequest = new URLRequest("http://www.bigredcreativeconcepts.com/UB_Flyer_English.pdf.zip");

[code].....

View 1 Replies

ActionScript 2.0 :: Count Down Timer Changes In Count Up?

May 18, 2004

Is it possible to make a count up timer (from a specific date, birthday for exemple) from the count down timer ?

I've tried to change a few things (I'm very bad in programming) but I can't get the date properly.

If not, do somebody know a count up timer (.fla) that I can use ?

View 3 Replies

ActionScript 1/2 :: Dynamic Text Field Line Count External Text?

Jan 30, 2012

I made a scrollbar, but now I have a problem, need to read the number of lines of Dynamic text field and if it is greater than x show the scrollbar and hide if is less. Like this:

if(text.instance>7){
scrollbar._visible = true;
}
else{
scrollbar._visible = false;
}

My problem is how do I count the total lines of dynamic text field after  load a external text.

View 20 Replies

ActionScript 2.0 :: Put Link On External Jpg?

Mar 19, 2012

I have external JPEGs loading into a container. Can I do something to make those external JPEGs that load into the container have links so when they get clicked they go to a website? I'm using AS 2.

View 1 Replies

Link To External Html?

Jun 22, 2009

as we are using in html<a href="#one> abc </a>ref. to<a name=one></a>xyzso that when click on abc, goes to text - xyz.in flash (as2)if we have a button (linked with a html file)and on click - we want to open html and go to directly on text - xyzin which way we have to give link on that button.(whats the idea for this)

View 3 Replies

ActionScript 3.0 :: Link An External SWF?

Jul 12, 2010

I've got it all working but atm it opens up in a web browser, does anyone know a way to link to the explorer?

View 0 Replies

ActionScript 3.0 :: Link External .pdf Files?

Dec 5, 2009

I am trying to external .pdf files to my flash file. What I want to do is have the user click a button on a given topic and it opens the .pdf in Acrobat. I know that it can be do because I did it in Actionscript 2.0, I just need to know what the code is in Actionscript 3.0.

View 2 Replies

ActionScript 3.0 :: Link External .pdf Files

Jan 18, 2010

I am trying to external .pdf files to my flash file. What I want to do is have the user click a button on a given topic and it opens the .pdf in Acrobat. I know that it can be do because I did it in Actionscript 2.0, I just need to know what the code is in Actionscript 3.0.

View 5 Replies

Actionscript 3 :: Checking If Link Is External Or Not?

Jan 31, 2011

Say i have a link, How can i check if its external or not. What i want to do is the following.I have 2 strings: "assets/images/1.jpg" and When the string starts with "http://" it should execute function a. Else it should execute function b.

View 1 Replies

ActionScript 2.0 :: EMBED External FLV Link Into Swf?

Oct 30, 2007

I was thinking can we like directly load an external flv through embed link into a string into an empty movieclip?

View 1 Replies

ActionScript 2.0 :: TXT From External File, With Link?

Mar 23, 2004

I followed the tutorial and it works perfect. But I wanna go a step further, how do I link a word in the external text file? It seems that html code <a href="www.me.com">CLICK</a> doesn't show as a link, but exactly as text.

View 1 Replies

ActionScript 3.0 :: Link Some Text To An External Web Site?

Aug 20, 2009

I am trying to link some text to an external web site. I am using the following code, but whenever I try to launch the external web site, I get prompted by Adobe Flash Player Security saying that it has stopped a potentially unsafe operation. It then tells me that I need to change my security settings in order to view the website. I am wondering if there is any way around stopping the security check, or is this built into Flash?

Code:
var linkLaunch:URLRequest = new URLRequest('content/web/fuel/project/home.html');
navigateToURL(linkLaunch);

View 2 Replies

ActionScript 2.0 :: Link To External Webpage - Using Movieclips

Aug 30, 2009

I am using movieclips as buttons and i want to navigate through my website using the movieclips. I am using AS2.

View 1 Replies

ActionScript 3.0 :: Simple Button Link To External SWF

Dec 14, 2009

I need some code to link a button to an external swf. It seems like an easy thing to do, but I cant find anything on google that directly relates to this issue.(using Actionscript 3.0).

View 3 Replies

Link To External MovieClip From HTML Textbox

Apr 21, 2009

How do I link from my dynamic txt box (html) to an external movieclip (popup). The only thing I found was a
<A HREF="[URL]" TARGET="frame_Name">

What I need is a link/action from my html (AS2);
on (release) {
loadMovieNum("01_mymovie.swf", 9);
}

View 19 Replies

ActionScript 3.0 :: External Loading - Possible To Link URL In TXT File?

Sep 20, 2009

So, I can't remember and it's not working. I basically want to add this to my text file:
<a href="[URL]" target="_blank">Go here</a>
Which obviously doesn't work. what's the easiest way add HTML tags to a TXT file without changing the way the files being loaded too much?

var filename:String="text/home.txt";
var loaderText:URLLoader = new URLLoader();
var myRequest:URLRequest=new URLRequest(filename);
function loadFile(filename:String):void {
myRequest.url=filename;
loaderText.load(myRequest);}
loadFile("text/press.txt");

View 1 Replies

ActionScript 3.0 :: Flash Link - External Css Class?

Nov 24, 2009

have had some trouble coupla weeks finding answers on this - hope i manage to explain myself to get right answer :-)Have a swf file on a website with buttons which each need to link to lightboxes with same class.Now I have following in flash:

DocButt2.addEventListener(MouseEvent.CLICK, DocClick2);
function DocClick2(event:MouseEvent):void{
navigateToURL(new URLRequest ("signup.php?

[code]....

View 5 Replies

Professional :: Find Link To External File?

Oct 20, 2010

I have purchased an image gallery program that works fine but I am struggling to make a very minor modification. I have asked the author for assistance but previous requests have met with no response so I am also asking my question here. This program has most of its logic in an external AS2 file. I have made some small changes to this file and want to save it under a new name. However, that would also require me to change the reference to the external AS2 file from within the fla file. That's where my problem lies. I can't find any code in the fla that contains such a reference.
 
If I try to publish an swf without this file in the required location it causes a compiler error thus proving that there must be a reference somewhere to that file. However, doing a search for this AS2 file in the 'current document' when viewing the fla file in Flash CS4 produces no results. Where else could this reference be hidden?

View 11 Replies

Html :: Automated Opening Of An External Link?

Aug 1, 2011

I have a flash intro for my website and I want after the flash is finished to automatically open an external link, how can I make this? This is the index.html:

script>
swfobject.embedSWF('main.swf', 'intro', '100%', '100%', '9','js/expressinstall.swf', {XMLSource:'intro.xml', domain: '*'},

[Code].....

View 1 Replies

AS3 :: Give Link To A Movieclip To External Url In Flash?

Jan 17, 2012

I wanna link a movie clip which has instace name test1 to a external urlI am using a menu list which has main movieclip instance name as 'Primary_Menu'. And inside this main movie clip there are 7 menus (home, about us etc..) each menus are movie clip and has instance names.Below code is written for linking them to respective frames. but i need to give external url for last menu (test1)

Home_MC.logo_btn.addEventListener(MouseEvent.CLICK,ShowHome);
.Primary_Menu.pmenu_btn1.addEventListener(MouseEvent.CLICK,ShowHome);
Home_MC.Primary_Menu.pmenu_btn2.addEventListener(MouseEvent.CLICK,ShowLocation);

[code].....

View 1 Replies

ActionScript 2.0 :: Link External XML File To A Particular FRAME

Jun 25, 2009

I purchased a TM AS2 Flash 8 / XML Template. I'm trying to figure out how to create a text link inside my XML content that can link back into the flash movie to a specific MOVIE/FRAME.

I've found where a XML text link can trigger a function (<a href="asfunction:_root.more_click_func,0">), but I can't seem to figure out how to simply go to a specific frame in the flash. I would think that this would be easy. ??? I don't need to do anything dynamic, except load the link exactly as presented in the XML file.

View 0 Replies

ActionScript 2.0 :: Set Timeout On Load To External Link

Nov 23, 2009

I am currently checking if something is true or false at an external link. What I want to do is, integrate a "failsafe" function, so if the external link should be down I'll display something special. I'm not sure how to do this, but what I had in mind was to define x amount of seconds and if nothing has been received by that time, terminate the call to the link and do something else.

What I currently have is:
ActionScript Code:
var loadContainer:LoadVars = new LoadVars();
loadContainer.onData = function(resp:String){
if(resp.indexOf("true")!=-1){
//true
} else {
//false
}}
loadContainer.load("[URL]")

View 3 Replies

ActionScript 2.0 :: Movie Clip To External Link?

May 28, 2011

I want to link this movie clip button I have in my flash header to go to an external site when clicked. I've tried EVERY combo, and watched every video....I'm exhausted. The code sitting in the actions on the movie clip seems like it all needs to stay there except for a link= part...so what do i add to it?

the code there now to start w/o the link part:

onClipEvent (load) {
num = 3;
this.hitArea = this.area;
}

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved