when this frame loads in flash, print this text in html...

This is a discussion on "when this frame loads in flash, print this text in html..." within the Flash & Multimedia Forum section. This forum, and the thread "when this frame loads in flash, print this text in html... are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 5th, 2007, 16:07
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
when this frame loads in flash, print this text in html...

hi guys, its probably the most simple thing but when you're a simpleton these things seem so complex the first time round!!

basically, I want to have a series of photos transition in flash. as the photos come in I have the photo display the comments for it. its not search engine friendly though and i need to take the text from the flash file and have it print on the page as the pic comes in.

i'm thinking as it hits a certain frame on the flash timeline, the actionscript sends a javascript message to the page to change the property of a div from invisible to visible or something like that, so that when the search engine scrolls the code it can pick it all up.

any help would be greatly appreciated... links or direct advice! cheers!
Reply With Quote

  #2 (permalink)  
Old Jun 5th, 2007, 16:48
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: when this frame loads in flash, print this text in html...

You can use
Code: Select all
getURL('javascript:function()');
to do this...

Where function is the name of the javascript function you want to execute.

What that javascript would actually look like. I have no clue.

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #3 (permalink)  
Old Jun 5th, 2007, 16:59
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: when this frame loads in flash, print this text in html...

Beautiful! Thanks heaps man I'm pretty sure I should be able to do everything beyond that!!!
Reply With Quote
  #4 (permalink)  
Old Jun 5th, 2007, 20:31
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: when this frame loads in flash, print this text in html...

brilliant. got it working! cheers!
Reply With Quote
  #5 (permalink)  
Old Jun 5th, 2007, 21:12
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: when this frame loads in flash, print this text in html...

actually.. works great in safari... but when I do the following from the flash file in firefox :

Code: Select all
getURL("javascript:document.getElementById('news0').style.display='inline';");
It loads up a new window with 'inline' just written on the page.

Is there something I am missing?

I tried:
Code: Select all
getURL("javascript:document.getElementById('news0').style.display='inline';", "_self");
But that doesn't seem to work either. hmm

I don't have internet explorer so I'm not sure if its just firefox thats playing up. Any clues?
Reply With Quote
  #6 (permalink)  
Old Jun 6th, 2007, 06:35
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: when this frame loads in flash, print this text in html...

To summarise, the following code works in Safari, but not Firefox
Code: Select all
getURL("javascript:document.getElementById('news0').style.display='inline';");

Last edited by cosmicbdog; Jun 6th, 2007 at 06:35. Reason: <strong> to [b]
Reply With Quote
  #7 (permalink)  
Old Jun 6th, 2007, 06:43
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: when this frame loads in flash, print this text in html...

Here is what it looks like....
Reply With Quote
  #8 (permalink)  
Old Jun 6th, 2007, 06:46
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: when this frame loads in flash, print this text in html...

Additionally (and please keep in mind this is my clients site) the page I'm currently working on is http://triumphantevents.co.uk/local-index.php which should show the erroneous code in action. If you let it load for a bit the flash images rotation thing will come up and the text will meet the image to match or it will load the javascript page in the window incorrectly.

Thanks for your time!
Reply With Quote
  #9 (permalink)  
Old Jun 6th, 2007, 16:25
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: when this frame loads in flash, print this text in html...

Same thing is happening in IE7...

Not sure what is causing that...and I am pretty sure you need the 'inline' piece there for it to work...so....

Give me a bit, never seen this before.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #10 (permalink)  
Old Jun 6th, 2007, 16:30
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: when this frame loads in flash, print this text in html...

Oh, Internet Explorer as well?

I have looked across 50 different sites of ways to do this javascript code using the getURL and it seems everywhere says to do it this way. Will keep trying. Thanks for your input sgaspar
Reply With Quote
  #11 (permalink)  
Old Jun 7th, 2007, 08:21
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: when this frame loads in flash, print this text in html...

Got it! I hope this is not a sign of disloyal behaviour in the cosmic dog, but I got some extra help over at http://www.actionscript.org/forums/s....php3?p=617595

The solution (with flash 8) is:
Code: Select all
flash.external.ExternalInterface.call("function(){document.getElementById('news0').style.display='none';}");
Reply With Quote
  #12 (permalink)  
Old Jun 7th, 2007, 14:42
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: when this frame loads in flash, print this text in html...

Cool, have you tried using it with the getURL feature and changing it from inline to none?
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #13 (permalink)  
Old Jun 7th, 2007, 14:48
Up'n'Coming Member
Join Date: May 2007
Location: northern nsw, au
Age: 27
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Re: when this frame loads in flash, print this text in html...

Yeah, I tried geturl with 'none' instead of 'inline' and it still did the same thing

Geturl is more code efficient then flash.external stuff I'm imagining?
Reply With Quote
  #14 (permalink)  
Old Jun 7th, 2007, 16:54
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: when this frame loads in flash, print this text in html...

I'm not sure I guess I've just never seen it done that way.

It just reinforces my point that there are 20 ways to do the same thing. I don't know which one is more efficiant though.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
Reply

Tags
actionscript, flash, html, javascript

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a HTML frame inside a Flash? Is this possible? toenick Starting Out 1 Mar 30th, 2008 12:03
HTML frame development! FNG Web Page Design 8 Jan 19th, 2008 13:34
EASY PEASY Displaying frame address in another frame question molotov JavaScript Forum 3 Nov 20th, 2007 17:29
using html text ads in flash animation DinoDenver Flash & Multimedia Forum 0 Dec 7th, 2005 07:14
html form nested frame target sj700 Web Page Design 1 Nov 30th, 2005 08:51


All times are GMT. The time now is 07:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43