Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Javascript/Flash Integration

    Hey guys I need to figure out how to run javascript functions within flash, so the icons I click on to go to Home, Forums, Wishlist, Documentation, and
    Contact page being a javascript function. The function is

    updatePage('wishlist.html')

    Code:
    this.dockActions = function(label) {
    	switch(label) {
    		case 'Preferences':
    			{getURL("index.html");};
    			break;
    		case 'Blog':
    			{getURL("smallwishlist.html");};
    			break;
    		case 'Forum':
    			{getURL("features.html");};
    			break;
    		case 'Store':
    			{getURL("forums.html");};
    			break;
    		case 'Tech Support':
    			trace('Actions here to handle t.s.');
    			break;
    Thank you for any advice.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Wait where are the icons located? Are they located in the html or in the flash? If they aren't in the flash why don't you put them in there? It would eliminate the need to use javascript at all.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    They are in the flash, but i have to use a javascript function to make it work because of the way i have the site written. Im using scriptaculous effects and what not......

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You can call javascript from flash like so
    Code:
    getURL("javascript:functioncall();void(0)");
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for your help


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •