Skip to main content
nandinidas
Known Participant
September 18, 2015
Answered

Content id of the URL not displaying in bowser

  • September 18, 2015
  • 1 reply
  • 779 views

Hi,

I am working on Flash Video Player which is playing videos (episodes) one after the other. When one video is playing the content id of the video is displayed on the browser URL. When the next video starts the content id of the next video doesnot get updated in the browser URL. The content id of the first video remains and displayed on browser. Why this is happening and how it can be fixed ?

Regards, Nandini

This topic has been closed for replies.
Correct answer kglad

When I am registering a function in actionscript by using ExternalInterface.addCallback("jsfunctionname", thefunction) the code is showing error. My code is like this:

ExternalInterface.addCallback("ASContentIdFunction", getcontentid);

                    

              public function getcontentid():String{         

                     var nextContent:Object = Object(CarouselItem(CarouselBar.wrapperChildren.getChildAt(Globals.currentRelatedIndex)).data);

                     var ContentId_id:String=nextContent.contentId;

                     return ContentId_id;

                                    }

The error message is like this: 'Access to possibly undefined property getcontentid'.


if you did a bunch of things correctly, getcontentid receives something from ASContentIdFunction.  that something would be in getcontentid's parameter.  (eg, CarouselBar)

1 reply

kglad
Community Expert
Community Expert
September 18, 2015

because your html address doesn't change, the address bar isn't going to change.

nandinidas
Known Participant
September 18, 2015

Hi,

Ok Shall I have to change the html address in the Javascript ?

Regards,

nandinidas
Known Participant
September 18, 2015

The content id is coming dynamically from the server. In that case will the anchor tag work ?

<a href="xxx">

Should Your URLs Point to the Directory or the Index Page?</a>


Regards,

Nandini