Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE DREAMWEAVER:HomeDreamweaver ForumDreamweaver TutorialsFAQAdobe FlashWeb Design

Frustrating and probably simple newb animation problem.

COW Forums : Adobe Dreamweaver

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Jim MilinaFrustrating and probably simple newb animation problem.
by on Jun 2, 2010 at 10:20:19 pm

What I'm trying to accomplish IS simple. How to do it withing Dreamweaver (CS4) is proving extremely frustrating...

I want on paragraph of text to fade in, followed by a second. Then those 2 fade out and a third fades in (overlapping first) and then fades out. Repeated.

Am I just tick, or between spry, states, divs and ap divs all I got was frustrated.

Any and all help is appreciated.

Flash version>>> http://www.littlerivermedia.com/Movie1.html

Jim Milina
Little River Media


Return to posts index
Reply   Like  

demetri tashieRe: Frustrating and probably simple newb animation problem.
by on Jun 3, 2010 at 3:27:13 am

well, i wouldn't say it is exactly simple, but i wouldn't say it is exactly that hard either. but don't go by me, i am just an avid Flash designer and coder who is now being forced by Jeve Stobs to work up some other bags of tricks.

if i was building it in an arena where i couldn't do it in Flash, i would approach this as a javascript project.

i built an insanely simple example here:
ww.demetri-media.com/FlashTalker/java.html

in my example you activate the javascript by clicking on the button. you could of course have it start automatically when the page loads, rather than by a button click.

each quote/statement is in its own DIV tag each with a unique ID. the visibilities of these DIVs are initially set to 'hidden'. then the javascript function uses some simple timeouts to sequentialy reveal/hide them, then it calls itself to start all over again.

surely not the best way, but it illustrated the concept of what has to be done fairly well. maybe a conditional loop using a variable could keep this going better ( an infinity loop maybe ? )

you could add more elaborate script - animating scripts - to have the DIVs fade in and out rather than just appearing and disappearing.

here is the complete code for the page in the example. i hope this helps , or at least gives you ideas to explore. note: i removed most of the html brackets ><


!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
head
script type="text/javascript"
function fadeRevealDivs()
{
var timer1=setTimeout("document.getElementById('divOne').style.visibility='visible'",500);
var timer2=setTimeout("document.getElementById('divTwo').style.visibility='visible'",1500);
var timer3=setTimeout("document.getElementById('divThree').style.visibility='visible'",2500);
var timer4=setTimeout("document.getElementById('divOne').style.visibility='hidden'",1500);
var timer5=setTimeout("document.getElementById('divTwo').style.visibility='hidden'",2500);
var timer6=setTimeout("document.getElementById('divThree').style.visibility='hidden'",3500);
var timer7=setTimeout("fadeRevealDivs()",3500);
}
/script
/head
body
form
input type="button" value="Start the JavaScript" onclick="fadeRevealDivs()" /
/form
div style="visibility:hidden">Statement 1 /div
div style="visibility:hidden">Statement 2 /div
div style="visibility:hidden">Statement 3 /div
/body
/html




Return to posts index
Reply   Like  

Jim MilinaRe: Frustrating and probably simple newb animation problem.
by on Jun 3, 2010 at 4:10:54 am

oh i hear ya on the no-flash Steve Jobs thing... iPhone doesn't do flash=me learning to do it in html as I'm a flash-dude too. grrr. clients with iPhones!

thanks a ton, and with more responses maybe we'll both learn something new, but then again, i already have! thanks a ton.

...jim


Jim Milina
Little River Media


Return to posts index
Reply   Like  


demetri tashieRe: Frustrating and probably simple newb animation problem.
by on Jun 3, 2010 at 1:00:53 pm

here's an updated example doing what you want with the fades. it is here:
ww.demetri-media.com/FlashTalker/java2.html

once again, it is just javascript within Dreamweaver.

just click the 'Start the fade" button to start that loop. it is using a fade/toggle from code found here:
http://www.switchonthecode.com/tutorials/javascript-tutorial-simple-fade-an...
combined with the logic i created for the previous example.

all the code is on the html page - you can view the source code from you browser to see it

i feel lke i am beginning to get a grip on this. it is certainly giving me lots of ideas
( this doesn't mean i am not still peeved at mr jeves for forcing me to learn new languages....)

heres what seems like a real helpful Tweening engine' for javascript . i look forward to exploring it:
http://jstween.blogspot.com/2007/01/javascript-motion-tween.html
it seems like it is trying to approach greensock's amazing tweening engine for actionscript. that would help a lot through this ugly migration process......


Return to posts index
Reply   Like  

cowcowcowcow
Richard WilliamsRe: Frustrating and probably simple newb animation problem.
by on Jun 3, 2010 at 9:13:02 pm

Sorry to be the bearer of bad news... but im not so sure your javascript will work with iphone either on click events guys...

Richard Williams
p.s. Please remember to rate our post replies and tick if solved. Also, please remember that we here are NOT employed by Adobe, we do this out of love and fun, so its always nice to recieve a Please and Thank You! :o)


Return to posts index
Reply   Like  
+1

Jim MilinaRe: Frustrating and probably simple newb animation problem.
by on Jun 3, 2010 at 10:31:37 pm

thank you very much.

so what, in your opinion, is the (or an) answer to animation in an Apple (iPhone) world? Is there some kind of Apple develpment application?

totally confused now<<<

...jim

Jim Milina
Little River Media


Return to posts index
Reply   Like  


Richard WilliamsRe: Frustrating and probably simple newb animation problem.
by on Jun 4, 2010 at 8:59:18 pm

To clarify... i didnt say it wouldnt work... i said im not sure it would work. The click event is not supported by iphone, that im pretty sure of. Things like rollovers etc also dont work on mobile technology most of the time. I would not recommend designing 1 page to try to look good on both mobile aps and normal computers. if the iphone is that important to your clients you aught to design a page for the iphone. using some CSS rules, you can identify what is accessing your page, by checking the resolution for instance on load, then applying or disgaurding some CSS rules. You cna also download an iphone simulator from apple to test it from your computer if you do not own an iphone of your own.
there is alot of info out there on this... you can start by checking this page out.. http://www.boutell.com/newfaq/creating/iphone.html but you are going to become very friendly with google over the next few days/weeks...and i recomend a meeting with the client to discuss an increase in payment for extra work... =o)



Richard Williams
p.s. Please remember to rate our post replies and tick if solved. Also, please remember that we here are NOT employed by Adobe, we do this out of love and fun, so its always nice to recieve a Please and Thank You! :o)


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]