Copy link to clipboard
Copied
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
if you did a bunch of things correctly, getcontentid receives something from ASContentIdFunction. that something would be in getcontentid's parameter. (eg, CarouselBar)
Copy link to clipboard
Copied
because your html address doesn't change, the address bar isn't going to change.
Copy link to clipboard
Copied
Hi,
Ok Shall I have to change the html address in the Javascript ?
Regards,
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
there are security limitations but you can use html5 compatible js,
window.history.pushState("string", "Title", "url");
Copy link to clipboard
Copied
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'.
Copy link to clipboard
Copied
if you did a bunch of things correctly, getcontentid receives something from ASContentIdFunction. that something would be in getcontentid's parameter. (eg, CarouselBar)
Copy link to clipboard
Copied
ok Thanks got it...
Copy link to clipboard
Copied
you're welcome.
(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
yes.
using call() is much easier than using addCallback() as long as those arguments are serializable (eg, strings and their ilk, numbers, arrays, objects).
Find more inspiration, events, and resources on the new Adobe Community
Explore Now