![]() |
Flash + Javascript. I need some easy help...
I need a quick and easy lesson.
Anyone fluent in this field, pls hit me up. Dont be scurred :pimp |
Youtube man, youtube will always be king.
|
Quote:
Basically I just want to access some javascript that is already on a page. keeping it within that page. OnClick commands and such. Im just not sure how to do it. Im sure its capable. Ill check youtube, never thought of that... |
It's been a long time, but isn't it just doing this in flash to call a JS method on the same page?
getURL("javascript:callToFunction();"); otherwise, here's a bump. |
Well heres is my dilema
Im taking a few of these links Code:
<a href="javascript:void(0);" onclick="toggleHomeTabs(2);">Link2</a> How would I translate that to actionscript? would it be... Code:
on (release) { Do I also need to alter the javascript file? |
Im willing to pay someone to help me complete this. I have everythign done, I just need to know how to connect the existing javascript with the flash I have rdy.
|
Again, haven't worked with flash in a long time, but am willing to bump the thread while trying to figure out what you're trying to do (hopefully helping someone else reading the thread).
- Are you replacing an HTML navigation bar with a Flash navigation bar? - Are the "tabs" in HTML or Flash? bump, regardless, for finding your fix. |
yes IM replacing the current links there that are just html connecting the javascript.
The links just open dynamic javascript blips of info. So, now I need to have the flash unit of 6 links acces the same blips of info, the code i provided is how it looks on JUST the links in the html. I dont think I need to change the actual JS file, but then again maybe. I think my oinly issue is just simply knowing the actionscripting. Making flash recognize the action. |
I want to clarify that the "links" are only set to open the javascript action, as you can see in the code i posted.
Its not navigating away from the page. |
Yea, I don't see why it's not working; it doesn't seem like you're trying to get javascript <---> flash interaction going between each other, but just calling a JS method via Flash button.
This help? http://scriptplayground.com/tutorial...ript-in-Flash/ Any debugging tools you're using? Maybe just put up a simple Javascript function: function blah() { alert('Flash called me'); } and try and call that from your flash navigation. Debug through the simple to what you want. Or, here's another bump and someone will hopefully chime in with the answer. |
|
Quote:
I seen that very page, but see im using a single flash element containing multiple buttons so the code I need is within the actionscripting. |
Bump for morning help :thumbsup
|
Well fuck, I guess I'll just redo it in css
|
Thanks for all the help from everyone here and a lil help from fartfly as well :thumbsup
In the end after listening to all your advice ai pecked around and took what you all said and managed to figure it out. In fact my posting above is damn near dead on, I just did the syntax wrong... :Oh crap how many hours have people in the internet world lost to simple missing commas n shit?!?!? |
Nice, now you're the proud owner of a website with a navigation bar that can't get indexed by the search engines nor gracefully degrades. :error
That is of course assuming your not the progressive enhancement type :upsidedow |
Quote:
I doubt the seo will be degraded. There are other equal links to specific pages for each tab anyway. This is why im keeping it with the javascript bit instead of doing the whole thing in flash. If you read it all they arent links navigating off of the same specific page. Its a placeholder like link to info alrdy on the page... Thanks though for that jab after the fact :thumbsup |
Well FUCK dude! Where was the missing comma? lol
Don't make this one of "those" threads that happen on every support site, where someone posts a problem, and then magically, at the end, they solved it, but never posted how. It's like blue balls for the brain. |
Code:
on (release) { misplaced semi colon |
All times are GMT -7. The time now is 09:02 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123