1 (edited by mhulse 2009-03-12 18:24:18)

Topic: Soundslide actionscript dictionary?

Hi,

Is there a component dictionary for Soundslides?

I would like to know properties that I can access...

For example:

soundslides.size = "custom";

Above does not seem to work... What parameters can I access via AS, and where are the docs for said params?

Or, can someone post example AS that shows me how to manipulate component params?

Many thanks in advance!!!

Cheers,
Micky

2 (edited by mhulse 2009-03-12 18:24:35)

Re: Soundslide actionscript dictionary?

Hrmm, I missed this example code:

http://media.soundslides.com/files/query_example/

And it looks like I can look at the XML to find official parameter names.

Any plans for an AS3 component?

3

Re: Soundslide actionscript dictionary?

Hi Micky.

I do have plans for an AS3 version, though it may just be a class rather than a full-blown component.

I'm working on the AS3 version a bit at a time, so I don't have an official release date yet.

-joe

4 (edited by mhulse 2009-03-13 10:52:37)

Re: Soundslide actionscript dictionary?

Hi Joe!

Thanks for the reply.

smile

A class sounds nice! I will be looking forward to the upgrade... But, for now, the current version is great.

wink

I am just trying to figure out all the parameters...

Having looked at the "query_example" project, this is the AS:

//the code below will pass the query variables to the Ss component
// ...filename.swf?project=sample01&size=small&auto_start=true
soundslides.c_path_to_project = _root.project;
soundslides.c_size = _root.size;
soundslides.c_auto_start = _root.auto_start;

And then I grabbed all the parameters from the XML, and appended "c_":

soundslides.project = "./project";
soundslides.c_size = "custom"; // Default: large. (small, large, custom, inherit)
// audio quality?
soundslides.c_autoStart = "false";
soundslides.c_transition_type = "straight cut";
c_version
c_credits
c_header_headline
c_header_font_hex
c_header_hex
c_header_height
c_body_hex
c_body_frame_hex
c_controls_hex
c_footer_hex
c_footer_font_hex
c_footer_height
c_htmlbg_hex
c_player_style
c_autoShowCaptions
c_click_to_play
c_display_sizes
c_display_headline
c_display_footer
c_showCredits
c_showCaptions
c_embed_style
c_center
c_header_headline_font
c_caption_font_face
c_caption_font_size
c_footer_font_face
c_footer_font_size
c_scrub_preview
c_show_volume
c_transition_type
c_transition_time
c_show_thumbnails
c_custom_size
c_custom_width
c_custom_height
c_custom_pixels_around_image
c_custom_audio
c_fullscreen
c_slide_only
c_duration
c_tlength
c_fla
c_swf
c_user
c_index_width
c_index_height

I have a feeling this is going to be a long day...

Why does the query example say this:

soundslides.c_path_to_project = _root.project;

But, this seems to work instead:

soundslides.project = "./project";

Are "c_path_to_project" and "project" two different params? Or, does the query example use an older version of Soundslides?

Basically, I would like to try and setup my component using AS vs. the component inspector.

smile

Any thoughts?

Thanks!
Micky

5

Re: Soundslide actionscript dictionary?

Not all of the variables use the "c_" prefix, or have the same name as the XML variable.  I can try to extract the variables you need, but some of them can only be set via component inspector or XML due to the way I programmed the AS2. Get me a list of the ones you need, and I'll see what I can do.

I plan on making the AS3 much more consistent and extensible, but that's going to take an entire re-write.

On "c_path_to_project" versus "project" ... they both work.  Originally, the "c_" variables could only be defined by the component inspector, and "project" was one of the root level variables created to override the c_ vars.

But ... some point in the last 3 years, a few of the "c_" were changed to accept direct assignment, and that code was included in a public demo.

Hope that helps.

-joe

6 (edited by mhulse 2009-03-13 17:02:00)

Re: Soundslide actionscript dictionary?

joeweiss wrote:

Not all of the variables use the "c_" prefix, or have the same name as the XML variable.  I can try to extract the variables you need, but some of them can only be set via component inspector or XML due to the way I programmed the AS2. Get me a list of the ones you need, and I'll see what I can do.

Ah, I see. Thank you for the clarification.

smile

Do you know of a way that I could dig under the hood of the component? Looks like "edit" is disabled (for obvious reasons) when right clicking.

On the other hand, I think I can live with using the component inspector.

smile

The most important thing I will want to control via Flashvars is the project path folder.

Currently, this is my code:

// project folder:
if (_root.project != null) {
    soundslides.project = _root.project;
} else {
    soundslides.project = "./project"; // For testing.
}
joeweiss wrote:

I plan on making the AS3 much more consistent and extensible, but that's going to take an entire re-write.

Wow, I bet!

Amazing work btw. Soundslides is an excellent product. I wish I had the smarts to create something like Soundslides.

joeweiss wrote:

On "c_path_to_project" versus "project" ... they both work.  Originally, the "c_" variables could only be defined by the component inspector, and "project" was one of the root level variables created to override the c_ vars. But ... some point in the last 3 years, a few of the "c_" were changed to accept direct assignment, and that code was included in a public demo.

Ah, I see! Thank you.

joeweiss wrote:

Hope that helps.

Very much so!

Have a great day!