Skip to main content
Known Participant
September 8, 2012
Answered

Html counter into flash movie

  • September 8, 2012
  • 1 reply
  • 1724 views

Hello All !

I bought a flash template for my new webpage who are created with actionscript 2

To put it out simply i want to add my html counter (who come from www.chart.dk ) that i used for years now, into my new flash site.

I would like to add the counter code to an html file that flash load in a frame each time somebody enter my site.

After alot of tests and search on the web i didnt find any usefull information yet how to do this.

I try to put the code in text files as well that flash load but it dont work correct.

I am new into flash so i need to be guided well about the method to do this.

Here is what i want to load in my flash movie:

http://cluster.chart.dk/chart.asp?id=71496

the code for the counter:

<!-- chart.dk unified trackercode - v1 -->

<script src="http://www.chart.dk/js/unified.asp"></script>

<script language="javascript">

track_visitor(71496, "");

</script>

<noscript>

<a href="http://www.chart.dk/ref.asp?id=71496" target="_blank">

  <img src="http://cluster.chart.dk/chart.asp?id=71496" border="0" alt="Chart.dk">

</a>

</noscript>

<!-- chart.dk unified trackercode - v1 -->

who i need to insert in my flash movie.

Hope someone can help me out with this because i try by myself for a month now without any good results.

Thanks.

This topic has been closed for replies.
Correct answer kglad

copy that js code into the html file used to embed your swf.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
September 8, 2012

copy that js code into the html file used to embed your swf.

Known Participant
September 8, 2012

Hello.

I tried this already but the counter dont stay inside the frames of the movie/swf ! it shows up under it, if i embed it in my index.html file for my swf.

This i why i want to implant this counter code in the movie to show up in a corner for example of the swf.

kglad
Community Expert
Community Expert
September 8, 2012

then remove the anchor and image tags and load that image:

var mc:MovieClip = this.createEmptyMovieClip("mc",1);

mc.loadMovie("http://cluster.chart.dk/chart.asp?id=71496")

p.s.  please mark helpful/correct responses.