Skip to main content
Participating Frequently
April 28, 2014
Question

Help with: mdm.Application.path solution for Projector ?

  • April 28, 2014
  • 1 reply
  • 2027 views

Hello


So i made a flash move including embedded sounds and 3 Videos (converted to FLV and component)
all works great as .Swf
then i want to make a projector and got ZINC 4.0 (win version)

everything exports fine except the 3 videos.

i went to forums (a lot) and apparently the video paths are dropped when ZINC compiles the file
and then cant locate the source videos.

i found this possible solution (on Mdm forum)
http://www.mdmforum.com/forum/index.php?showtopic=29740&view=&hl=FLV%2 0component%20projector%20video%20&fromsearch=1

function path(aPath:String😞String{

if(mdm.Application && mdm.Application.path){

var newPath:String = "file://"+mdm.Application.path.split("\\").join("/");

newPath += aPath;

return newPath;

}

return aPath;

}

//

var soundPath:String = path("assets/sounds/mySound.mp3");

but honnestly i have no or little idea where i should put this script and what to do with the :

"file://"+mdm.Application.path.split("\\").join("/");

line

my video files are in a folder like this: source/vid1.mp4

so q's are:

1: WHERE do i put the lines of code? (at frame 1 or on the frame where the video is)

2: How do i fill in the blanks in line 3 in the example?

3: Does this script even work with F.Pro CC ?

This is such a downer, i managed to build everything and it is actually pretty nice, then i tumble at the very very last step

Please, Help

SCUMSPAWN

This topic has been closed for replies.

1 reply

Inspiring
April 28, 2014

What are you using Zinc for? I'd suggest packaging for AIR instead... Not sure there's any use for those 3rd party wrappers anymore, AIR gives you everything they do.

SCUMSPAWNAuthor
Participating Frequently
April 28, 2014

I would use Air, if i could program, but i can't... havent actually used flash since AS3 was introduced.
I read up a bit on differnt ways to make standAlone projectors and everything pointed to ZINC.

That said,it is VERY dissapointing that something as simple as getting the path correct in the projector
aquirers addition code...

(remembering the happy days with Flash 4 where you could just tick "create projector" and basically

anything popped out just fine.)

Maybe i should add that the final output needs to be projectors for Win and Mac (both made on Win)

And will end up on a USB key for hand-outs

SCUMSPAWNAuthor
Participating Frequently
April 28, 2014

humm, looks like i hit a soft spot there, thought this was an easy one