UIMovieClip动画在Flex中的位移问题

在界面效果复杂或者组件需要复杂的开场动画时,常常会在Flash中用时间轴或者Tween类制作动画,并发布为UIMovieClip组件,在Flex中引用。

由于Flex会自动计算UIMovieClip的大小,所以如果动画过程中Symbol有位移或者大小的变化,就会造成在Flex中显示的时候组件本身会发生连续位移。

第一反应是设置组件的explicitWidth和explicitHeight来固定大小,结果位移是没有了,但是动画过程中,原件会不断的缩放。

解决这个问题,我采用的方法是在Flash中加入一层透明的图形填充来标示实际的组件大小,这样Flex中组件的大小就固定了。

这个方法比较Dirty,如果你有更好的方法,欢迎留言!

31 thoughts on “UIMovieClip动画在Flex中的位移问题

  1. Oh my goodness! It is like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you could do with some pictures to drive the message home a bit, besides that, this is helpful blog post. A outstanding read. I will certainly be back.

  2. I’m impressed, I have to say. Really seldom do I come across a blog that’s both educative and entertaining, and let me tell you, you’ve hit the nail on the head. Your post is important; the matter is something that not a lot of people are speaking intelligently about. I am very happy that I stumbled across this in my search for something relating to this.

  3. Hey! It is like you understand my mind! You seem to know so much about this, just like you wrote the book in it or something. I think that you could do with some images to drive the content home a bit, but other than that, this is great blog post. A outstanding read. I will definitely return again.

  4. You are not the regular blog author, man. You definitely have something powerful to contribute to the World Wide Web. Such a wonderful blog. I will be back for more.

  5. Your details are very good; we got new knowledge from your site. Template also very good, color matching is well. I will keep visiting your site often. This is a great article thanks for sharing this information. Give your knowledge for all people. Because who likes to know more information. I saved some details to me.

  6. cool information shared I’m really happy to see this particular blog..realy thank you for providing folks wonderful tips.Great walk-through. I truly appreciate this site.

  7. Hello good Angela ,I am supposed to be a tea and coffee fanatic, enjoy the scent and the tingling sensation of tea as the first thing after waking up. I sip minimum seven glasses every day. BTW elegant blog, Hope you have a nice day.

  8. I can’t believe your blog isn’t more popular. The information you give here would be useful to many people if you were only ranked better in Google. I found your site through a friend of mine or even I wouldn’t have came.

  9. After study a couple of the blog posts on your web site these few days, and I really like your way of blogging. I added it to my bookmark site list and will be checking back soon. Pls check out my site too and let me know your opinion.

  10. Brilliant stuff, man! What you have to say is really important and Im glad you took the time to share it. What you said really spoke to me and I hope that I can learn more about this. appreciate for sharing your opinion. I am yet to find anything as enlightening as this on the web.

  11. Hello! I just would like to give a huge thumbs up for the great info you have here on this website. I will be coming back to your site for more soon.

  12. Moving and powerful! Youve certainly got a way of reacng people that I havent seen very often. If most people wrote about this subject with the eloquence that you just did, Im sure people would do much more than just read, theyd act. Great stuff here. Please keep it up.

  13. Youre so cool! I dont think Ive read anything like this before. So great to find somebody with some original thoughts on this subject. thank you for starting this up. this site is something that is needed on the web, someone with a little originality. useful job for bringing something new to the internet!

  14. this is such a great resource that you are providing and you give it away for free. I love seeing websites that figure out the value of providing a quality resource

  15. I dont know what to say. this is definitely one of the better sites Ive read. Youre so insightful, have so much real stuff to bring to the table. I hope that more folks read this and get what I got from it: chellolls. Great job and great blog. I cant wait to read more, keep em comin!

  16. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is great website. A great read. Ill definitely be back.

  17. useful information shared I’m really happy to see this particular post..thanks for providing people wonderful tips.Great walk-through. I truly appreciate this website.

  18. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I suppose that you could do with some pics to drive the message home a bit, but other than that, this is great site. A great read. Ill definitely be back.

  19. this is such a great resource that you are providing and you give it away for free. I love seeing webwebsites that understand the value of providing a quality resource

  20. Dear Sir/Madam, would you care to advise me on how I could join your mailing list? I enjoy reading these posts and would like to be notified of future updates.

  21. Hey – nice website, just looking around some websites, seems a pretty nice platform you are using. I’m currently using WordPress for a few of my websites but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would advise about it?