Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 10:42 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: March 11th, 2010, 10:41 am 
Offline

Joined: November 8th, 2004, 5:23 pm
Posts: 279
Opus: Opus Pro 9
OS: Win 10/64
mackavi wrote:
Plexus won't find the SYSTEM_PUBLICATION_DIR.

But if your sound is fixed, the easiest method is to add it to the additional resources and call the alias in the script.

Mack


Is this also possible with a Flex-publication? It seems that the mentioned tab is not available in Flex-publication. At least I cannot find it.
Which way is the best for using MP3-files in a Flex publication?

Thanks in advance for your help

:)

_________________
Opus Pro 9.75, Win 10/64, 8 GB RAM, Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 CPUs), ~3.4GHz, NVIDIA GeForce GTX 660 Ti, Roland OctaCapture


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 11th, 2010, 1:26 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
You can use ActionScript to play external .MP3s in a Flex publication.

Just do a search on the web to see how you can play, pause, stop, etc. MP3s. It's pretty easy if you include in as a script action and I tested it and it worked fine for me.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 24th, 2010, 6:06 pm 
Offline

Joined: November 8th, 2004, 5:23 pm
Posts: 279
Opus: Opus Pro 9
OS: Win 10/64
bwpatric wrote:
You can use ActionScript to play external .MP3s in a Flex publication.

Just do a search on the web to see how you can play, pause, stop, etc. MP3s. It's pretty easy if you include in as a script action and I tested it and it worked fine for me.


... do you mean this way:

soundObj = new Sound();
soundObj.attachSound("mysound.mp3");
soundObj.start();

I think I make a mistake because this does not work in my Flex-Publication. All the sounds that are directly attached to a button etc. as an action work fine.

Unfortunately I don't get the external mp3-files playing.

A little hint would be great.

T.

_________________
Opus Pro 9.75, Win 10/64, 8 GB RAM, Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 CPUs), ~3.4GHz, NVIDIA GeForce GTX 660 Ti, Roland OctaCapture


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 25th, 2010, 7:24 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Hey, I was looking around for something else (OOPs...), and found this.

http://livedocs.adobe.com/flex/3/html/h ... ng_09.html Embedded asset classes

Apparently, if you are not going to include certain Flex libraries you can use the ActionScript metadata tag, [Embed], for such things. ??

(it may be AS 3.0 only??)

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: March 25th, 2010, 11:21 am 
Offline

Joined: January 19th, 2005, 7:14 pm
Posts: 20
Location: Bromsgrove, Worcs, UK
It will need to be AS 2.0.
Good AS 2.0 resource http://flash-reference.icod.de/
Copy and paste from the examples to save yourself some time.
I've not tried the "pass thru" feature as yet so can't advise any further.

Good Luck
Ken


Top
 Profile  
 
 Post subject:
PostPosted: March 25th, 2010, 2:58 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
This is what I tried:

Code:
coolTune = new Sound (soundLoader);
coolTune.loadSound("musound.mp3", true);


It works. The true on the last line sets the file to stream, so it will start playing once it has enough to play.

Not sure what else you can do in terms of controlling it, but at least you're playing an external mp3.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group