首页 \ 问答 \ 使用Flash Builder创建像Nivo滑块一样的图像滑块(Create Image Slider Like Nivo Slider With Flash Builder)

使用Flash Builder创建像Nivo滑块一样的图像滑块(Create Image Slider Like Nivo Slider With Flash Builder)

我想使用Adobe Flash Builder构建像Nivo滑块这样的图像滑块。

我想要图像控件,图像标题显示在图像上方(如闪光灯中的图层)。

我想从xml中读取数据。

我想在图像之间有很好的过渡。

你可以提供教程或源代码。

谢谢!


I'd like to build image slider like Nivo slider with Adobe Flash Builder.

i'd like to have image controls, image titles displayed above the image(like layers in flash).

i'd like to read the data from xml.

i'd like to have nice transitions between images.

mayebe u can provide tutorial or source code.

thanks!


原文:https://stackoverflow.com/questions/8805306
更新时间:2022-11-27 09:11

最满意答案

select many将展平嵌套数组。 Value.Select为子列表中的每个项创建一个KVP,然后选择多个将嵌套数组转换为展平集合。

public KeyValuePair<TKey, TValue>[] Flattened()
{
    return _dict.SelectMany(x => x.Value.Select(v => new KeyValuePair<TKey, TValue>(x.Key, v))).ToArray();
}

The select many will flatten out the a nested array. The Value.Select creates a KVP for each item in the sublist, the select many then converts the nested array into a flatten collection.

public KeyValuePair<TKey, TValue>[] Flattened()
{
    return _dict.SelectMany(x => x.Value.Select(v => new KeyValuePair<TKey, TValue>(x.Key, v))).ToArray();
}

相关问答

更多