Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Content id of the URL not displaying in bowser

Explorer ,
Sep 18, 2015 Sep 18, 2015

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

TOPICS
ActionScript
705
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 20, 2015 Sep 20, 2015

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

Translate
Community Expert ,
Sep 18, 2015 Sep 18, 2015

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 18, 2015 Sep 18, 2015

Hi,

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

Regards,

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 18, 2015 Sep 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 18, 2015 Sep 18, 2015

there are security limitations but you can use html5 compatible js,

window.history.pushState("string", "Title", "url");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 19, 2015 Sep 19, 2015

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'.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2015 Sep 20, 2015

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 20, 2015 Sep 20, 2015

ok Thanks got it...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2015 Sep 20, 2015

you're welcome.

(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 20, 2015 Sep 20, 2015

If I want to pass few values as arguments from Flash to Javascript, can I use ExternalInterface.call("ASFunctionName", argument1, argument2);

where ASFunctionName is the name of the javascript function which will get the arguments in Html. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2015 Sep 20, 2015
LATEST

yes.

using call() is much easier than using addCallback() as long as those arguments are serializable (eg, strings and their ilk, numbers, arrays, objects).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines