Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

AS2_Unique identifier problem with imported videos (any answers out there)

Cow Forums : Adobe Flash
AS2_Unique identifier problem with imported videos (any answers out there)
by pablo rendon on Sep 20, 2008 at 12:48:07 am

sorry to repost this, didnt want it to be left on the back burner.

this has been a reoccurring issue as of late.

Problem - I am importing 6 different videos into my .fla, they are all .flv's, they are all activated independently by 6 buttons, i have tried to change their identifier name in the library but it does not allow me to, it is an unchangeable area, its grayed out, no matter how i change the options in the window around it, it never changes. So i resulted to changing the content paths (in the parameters panel) of each video. however when i test or preview publish i obtain output errors, stating that the flv playback has already been assigned to lets say the the 1st file i imported and that the identifier name cannot be one in the same with other videos, but like i stated earlier i cannot alter the identifier, and that is exactly what its telling me the problem is.

any and all advice is appreciated.

thanks to all those who have helped with this issue thus far.



Respond to this post   •   Return to posts index

Re: AS2_Unique identifier problem with imported videos (any answers out there)
by Pieter Helsen on Sep 20, 2008 at 12:56:37 am

It's easy.

Script on frame 1.

Kind regards,
Pieter

General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.

Respond to this post   •   Return to posts index

(For Pieter) AS2_Unique identifier problem with imported videos (any answers out there)
by pablo rendon on Sep 20, 2008 at 8:14:31 pm

Forgive me for being a novice, but are you suggesting that i copy and paste that enitre page of code "It's easy" to my first frame???



Respond to this post   •   Return to posts index


Re: (For Pieter) AS2_Unique identifier problem with imported videos (any answers out there)
by Pieter Helsen on Sep 20, 2008 at 8:22:54 pm

That depends on what your flash file looks like... All you need is one flvPlayback component with an instance name (set in the -Properties- window) and five buttons for each videoclip.

Those need to get an instance name too.

Then you copy that code to the frame where your buttons are.

// video1_btn is the instance name of the button.
// Copy and paste that for each button you have.
video1_btn.onRelease = function(){
// my_flv is the instance name of the flvPlayback component.
// typo1.flv is the name of the video file.
my_flv.contentPath = "typo1.flv";
my_flv.play();
}



Kind regards,
Pieter

General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]