did you write
www.calibraclub.it/public/imaflash/text1.fla ?
and so on for all the files ?
This should work …
did you write
www.calibraclub.it/public/imaflash/text1.fla ?
and so on for all the files ?
This should work …
Ah, now it does !? Weird … Anyways. I’m having a look at it now
argh my computer keeps crashing ! Sorry I can’t check it right now, I’ll check it downstairs.
I could only download the text1.fla file … Can you send them through e-mail ? voetsjoebaathotmail.com
Done … check that out !!!
have you found them in your mailbox ?
Yes I have, sorry for taking so long. I had some problems with my Internet connection. Replace varImage1=text1.swf at the end of your textfiles with varImage1=ciccio.jpg& and it should work =) There seemed to be some problems with the ciccio.jpg file. I couldn’t open it in PS for example. If it still doesn’t work, try loading another image.
Thank you a lot. I have changed my jpg and now everything is fine …
Just another pair of questions :
n°1 is it possible to reduce the image to a specified size only by one dimension ( letting the other in proportion ?) i.e., I load an image that is 500x250 and want it to be width=50, so height will be 25 without me calculating it ?
n°2 is it possible to link to an image to an external link, and load it from the textfile ? i.e, varLink1=http://www.calibraclub.it which is attached to varImage1 image onRelease …
1: Why can’t you just set it manually. That’d be a lot easier.
2: I’m not sure what you mean ?
eh eh eh …
cause it’s a nice scripting challenge, I think …
ok. In my textfile.txt I got my variables : varTitle, varText, VarImage1 AND VarLink1.
What I need is that, on my swf, clicking on the image loaded from varImage1 variable, I can open an url in another windows
Thanks
I’m not going to script that for you just if you think it’s a nice challenge. You should try it yourself then =).
You’d have to make an invisible button for that (a button with only a hit state, and with the registration point the same as the the movieclip image has), and have that button set to the same x, y, _width and _height values and then link that button. Something like this:
[AS]
_root.invbutton._height = _root.container.image._height
_root.invbutton._width = _root.container.image._width
_root.invbutton._x = _root.container.image._x
_root.invbutton._y = _root.container.image._y
_root.invbutton.onRelease = function(){
getURL(“http://www.site.com/whatever.html","_blank”)
}
[/AS]
Something like that.
ok,ok it was not a request to code for me … I’m just learning to use Actionscript and saw that you are abel to script… So my was just an help request to help me to understand and learn … as you rcan ead in the email I sent you … hope there’s been no misunderstanding of my request…
Ok, I thought about it before your answer, and figured something like that… but what if I want to take the link from the textfile ? Have I to use a code like the one for the image and then subtitute it to the "http:// … " ?
Thanks a lot …
Note to self: Click that mail icon more often I’m always willing to help =) I’ll check yer e-mail right away.
Lol, I forgot the link had to be loaded from the txtfile, sry Something like this would do it:
[AS]
on(release){
_root.testi.gotoAndStop(2);
lv = new loadVars();
lv.onLoad = function(success){
if (success){
_root.textboxes.textF1.html = 1
_root.textboxes.textF2.html = 1
_root.container.image.loadMovie(this.varImage1)
_root.textboxes.textF1.htmlText = this.varTitle
_root.textboxes.textF2.htmlText = this.varText
} else {
trace(“Failed to load textfile”);
}
}
lv.load(“textfile.txt”)
_root.invbutton._height = _root.container.image._height
_root.invbutton._width = _root.container.image._width
_root.invbutton._x = _root.container.image._x
_root.invbutton._y = _root.container.image._y
_root.invbutton.onRelease = function(){
getURL(lv.VarLink1,"_blank")
}
}
[/AS]
Sorry for taking so long, but I’m frustrated (not by you, personal stuff) and my connection just fell to 56k
Don’t worry about time … it’s a luck I found you … eh eh eh …
sorry, but my English is not so good to understand what you wrote on 1) …
but what i told about th email was referred to the 'Do you know where I can learn scripting well ? ’ i wrote in the email with attachments …
Thanks for what you’re doing, I appreciate it a lot !!!
I thought you sent me another e-mail and I didn’t notice yet, so I considered I had to check my e-mails more often =) So did it work out for you ?
I tried it, but I was thinkin to other thing, as my sister has broken her leg today and I’ve spent some time in hospital … things that happens.
anyway, I have put the code in the first frame as you saw in my fla … the varLink1 in my introduzione.txt, as varLink1=http://www.calibraclub.it&
But everything is like before … it loads the text, it loads the images, but no link associated … the code is this :
(applied to the first frame action of the main timeline)
lv = new loadVars();
lv.onLoad = function(success){
if (success){
_root.textboxes.textF1.html = 1
_root.textboxes.textF2.html = 1
_root.container.image.loadMovie(this.varImage1)
_root.textboxes.textF1.htmlText = this.varTitle
_root.textboxes.textF2.htmlText = this.varText
} else {
trace(“Failed to load textfile”);
}
}
lv.load(“introduzione.txt”)
_root.invbutton._height = _root.container.image._height
_root.invbutton._width = _root.container.image._width
_root.invbutton._x = _root.container.image._x
_root.invbutton._y = _root.container.image._y
_root.invbutton.onRelease = function(){
getURL(lv.VarLink1,"_blank")
}
Anything wrong ?? … tnx
:: Copyright KIRUPA 2024 //--