cgTantra.com - LEARN INSPIRE GROW
Old 07-08-2012, 04:15 PM   #1
pallavi_saksena
Novice
 
Join Date: Apr 2010
Posts: 7
Blog Entries: 1
Rep Power: 0
pallavi_saksena is on a distinguished road
Default Adobe Flash cs5

hi everyone...i am a web designer...i was working for a flash website and i m stuck.. my problem is
i have made a page on flash and it has a button "gallery" in it which is supposed to be linked to "gallery.html" page. i tried this code

button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
}

but it works only if i give and external url that si "http://www.adobe.com"
instead of this http://www.adobe.com i want to attach my page which is name as "gallery.html"..

if anyone can answer i'll be highly obliged...
pallavi_saksena is offline   Reply With Quote
Old 07-08-2012, 09:41 PM   #2
omkarjere
Tantrick
 
Join Date: May 2011
Location: Pune
Posts: 309
Rep Power: 3
omkarjere is on a distinguished road
Default

If I understood your post correctly then the file you want to link is not on the internet. If so try the following:

Change http:// to file:///(If doesn't work try with file://). It may work. All local files opened in web browsers use file:/// instead of http://

Also try giving full path to the needed file for e.g. file:///c:/myFile.html

When you publish that page on the internet then change back to http://
__________________
My MEL scripts:
http://www.creativecrash.com/users/o...free_downloads

Fun effect with Maya Dynamics:
http://www.youtube.com/watch?v=4ETQpsUYJ8U

Last edited by omkarjere; 07-08-2012 at 10:01 PM.
omkarjere is online now   Reply With Quote
Old 10-08-2012, 06:02 PM   #3
pallavi_saksena
Novice
 
Join Date: Apr 2010
Posts: 7
Blog Entries: 1
Rep Power: 0
pallavi_saksena is on a distinguished road
Default

thank you very much for replying to my question Omkarjere..
i did try with the full path on local and it worked..
but now my question is that when i upload it on net..that'll be on my hosting account..how will i be able to make changes to flash file?
as i wont be able to do that so i need to know before hand that what path should i put in the action script of the gallery button so that it links to my gallery.html page.
i have kept my index.swf and gallery.html in same folder named photography.
pallavi_saksena is offline   Reply With Quote
Old 10-08-2012, 06:26 PM   #4
omkarjere
Tantrick
 
Join Date: May 2011
Location: Pune
Posts: 309
Rep Power: 3
omkarjere is on a distinguished road
Default

Try giving only the file name for e.g. gallery.html, Mind you it will/may only work when you actually upload the file on your account.

If doesn't work then try with the full path for e.g. http://www.mysite.com/mypage.html if you have them in a folder(on web account) then http://www.mysite.com/myfolder/mypage.html
__________________
My MEL scripts:
http://www.creativecrash.com/users/o...free_downloads

Fun effect with Maya Dynamics:
http://www.youtube.com/watch?v=4ETQpsUYJ8U
omkarjere is online now   Reply With Quote
Old 11-08-2012, 11:26 PM   #5
pallavi_saksena
Novice
 
Join Date: Apr 2010
Posts: 7
Blog Entries: 1
Rep Power: 0
pallavi_saksena is on a distinguished road
Default

hey...no it isn't working...i tried giving the full path, i even tried the path from hosting root directory as well....

i tried this...
Project Management.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_8);

function fl_ClickToGoToWebPage_8(event:MouseEvent):void
{
navigateToURL(new URLRequest("/wwwroot/myfolder/gallery.html"), "_blank");
}

then i tried this..
Project Management.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_8);

function fl_ClickToGoToWebPage_8(event:MouseEvent):void
{
navigateToURL(new URLRequest("/gallery.html"), "_blank");
}

i even tried // in the llatter one..didnt work

Last edited by pallavi_saksena; 11-08-2012 at 11:53 PM.
pallavi_saksena is offline   Reply With Quote
Old 11-08-2012, 11:50 PM   #6
omkarjere
Tantrick
 
Join Date: May 2011
Location: Pune
Posts: 309
Rep Power: 3
omkarjere is on a distinguished road
Default

Not sure but I suppose you should not put /wwwroot just put the direct address where the file is located for e.g check the address for this thread in your browser just like you put http://www.adobe.com in the same way give the path to the needed file.
__________________
My MEL scripts:
http://www.creativecrash.com/users/o...free_downloads

Fun effect with Maya Dynamics:
http://www.youtube.com/watch?v=4ETQpsUYJ8U
omkarjere is online now   Reply With Quote
Old 11-08-2012, 11:54 PM   #7
pallavi_saksena
Novice
 
Join Date: Apr 2010
Posts: 7
Blog Entries: 1
Rep Power: 0
pallavi_saksena is on a distinguished road
Default

but then this is .com and mine is .html...
pallavi_saksena is offline   Reply With Quote
Old 11-08-2012, 11:56 PM   #8
pallavi_saksena
Novice
 
Join Date: Apr 2010
Posts: 7
Blog Entries: 1
Rep Power: 0
pallavi_saksena is on a distinguished road
Default

nopes that didnt work too
pallavi_saksena is offline   Reply With Quote
Old 12-08-2012, 12:01 AM   #9
omkarjere
Tantrick
 
Join Date: May 2011
Location: Pune
Posts: 309
Rep Power: 3
omkarjere is on a distinguished road
Default

Huh ? Do you have a domain name ? Where is the .html file stored is it in the root folder ?
__________________
My MEL scripts:
http://www.creativecrash.com/users/o...free_downloads

Fun effect with Maya Dynamics:
http://www.youtube.com/watch?v=4ETQpsUYJ8U
omkarjere is online now   Reply With Quote
Old 12-08-2012, 12:05 AM   #10
pallavi_saksena
Novice
 
Join Date: Apr 2010
Posts: 7
Blog Entries: 1
Rep Power: 0
pallavi_saksena is on a distinguished road
Default

yup i do have a domain name. no...it is stored in the images folder where the swf is stored
pallavi_saksena is offline   Reply With Quote
Old 12-08-2012, 12:14 AM   #11
omkarjere
Tantrick
 
Join Date: May 2011
Location: Pune
Posts: 309
Rep Power: 3
omkarjere is on a distinguished road
Default

so it should be http://www.yourdomainname.com/images/gallery.html got my point ?
__________________
My MEL scripts:
http://www.creativecrash.com/users/o...free_downloads

Fun effect with Maya Dynamics:
http://www.youtube.com/watch?v=4ETQpsUYJ8U
omkarjere is online now   Reply With Quote
Old 12-08-2012, 12:29 AM   #12
pallavi_saksena
Novice
 
Join Date: Apr 2010
Posts: 7
Blog Entries: 1
Rep Power: 0
pallavi_saksena is on a distinguished road
Default

sorry but this didnt work either.
pallavi_saksena is offline   Reply With Quote
Old 12-08-2012, 11:40 AM   #13
omkarjere
Tantrick
 
Join Date: May 2011
Location: Pune
Posts: 309
Rep Power: 3
omkarjere is on a distinguished road
Default

Does it work with www.adobe.com ? or try this site which has a .html at the end http://in.news.yahoo.com/british-sch...154205622.html
__________________
My MEL scripts:
http://www.creativecrash.com/users/o...free_downloads

Fun effect with Maya Dynamics:
http://www.youtube.com/watch?v=4ETQpsUYJ8U
omkarjere is online now   Reply With Quote
Reply


Thread Tools

Forum Jump

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | © 2009 CGTantra | Privacy Policy | All times are GMT +5.5. The time now is 05:10 PM.

Choose Your Color         Facebook              CGTantra Toolbar  Contact Us - cgTantra Home - Archive - Top