ANYONE ANY GOOD AT ACTION SCRIPT?
Hi
Im trying to link my animated buttons to pages on a website.
The flash file is linked to an exernal _url.txt file
where it seems simple enough to amend, but all the flash
buttons seem to link to the one page only (noted in _urls.txt as
Url1?
Any ideas how to amend the this so I can just simply change
the .txt file to put in the html links?
I think its something to do with the action code on each
sepatate button within the flash file ( although the
overall action for the movie is to link to this -url.txt
file)
action code on bottom layer:
this.loadVariables("_urls.txt")
Stage.showMenu=false;
url txt file is below:
url1=http://www.yourcompanyname.com/page1.html
&url2=http://www.yourcompanyname.com/page2.html
&url3=http://www.yourcompanyname.com/page3.html
&url4=http://www.yourcompanyname.com/page4.html
&url5=http://www.yourcompanyname.com/page5.html
&url6=http://www.yourcompanyname.com/page6.html
&url7=http://www.yourcompanyname.com/page7.html
&url8=http://www.yourcompanyname.com/page8.html
&url9=http://www.yourcompanyname.com/page9.html
&url10=http://www.yourcompanyname.com/page10.html
individual button action is below:
on (rollOver) {
gotoAndPlay("s1");
on (rollOut, releaseOutside) {
gotoAndPlay("s2");
on (release) {
if(_root.url1==""|| _root.url1==undefined){
getURL("javascript:alert('NO URL1!')")
else{
getURL(_root.url1,"_self")
sorry there chris - was too quick and haven't had enough
coffee yet this morning LOL!!! :)
here's what you need to do - replace the ampersands - my bad.
then let's use the LoadVars class within the AS code to bring
in the variables rather than using loadVariables, and additionally,
we'll use a loop within the handler to construct them. So replace
(or comment out) the 'this.loadVariables' call and insert the
following:
Similar Messages
-
Any good websites for scripting buttons and windows?
i want to start adding windows and buttons to my program, does anyone know any good sites i can look at?
thanks,
Sam xthanks so much David. i wanted you ask you something about browse windows if you know...
the code at the bottom of the screen creates three buttons - the third is a browse button, so the user can search for a particular file. Do you know how to have a drop down browse box in pop up window?. Theres so little documentation on this sort of thing. i was hoping you would know something about it....
i know that this line will create a browse pop up: var targetFolder = Folder.selectDialog("Import items from folder...");
but i want to be able to have it as part of the window.
If you know anything that would be a great help, thanks, Sam
function myScript(thisObj) {
function myScript_buildUI(thisObj) {
var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "STREAMLINE OLIVE!", [0, 0, 300, 300]);
res="group{orientation:'column', alignment:['fill', 'fill'], alignChildren:['fill', 'top'],\
findStr: StaticText { text:'please enter the exact names of the following render Layers:', alignment:['left','center'] }, \
findRow: Group { \
alignment:['fill','top'], \
findStr: StaticText { text:'Olive colour:', alignment:['left','center'] }, \
findEditText: EditText { text:'', characters:20, alignment:['fill','center'] }, \
findRow: Group { \
alignment:['fill','top'], \
findStr: StaticText { text:'Olive occlusion:', alignment:['left','center'] }, \
findEditText: EditText { text:'', characters:20, alignment:['fill','center'] }, \
findRow: Group { \
alignment:['fill','top'], \
findStr: StaticText { text:'Browse for movie:', alignment:['left','center'] }, \
findEditText: EditText { text:'', characters:20, alignment:['fill','center'] }, \
myPanel.grp = myPanel.add(res);
myPanel.layout.layout(true);
myPanel.grp.minimumSize = myPanel.grp.size;
myPanel.layout.resize();
myPanel.onResizing = myPanel.onResize = function () {this.layout.resize();}
return myPanel;
var myScriptPal = myScript_buildUI(thisObj);
if ((myScriptPal != null) && (myScriptPal instanceof Window)) {
myScriptPal.center();
myScriptPal.show();
myScript(this); -
I tried to more action in my movie with action script
Hello
my name is chong hyo rhee from korea,
I use adobe production premium CS3
I made the movie(attached) , just picture motion tween.
as you see, that pictures in my movie just roll and roll.
But, I would like to some interactive move in my movie
like
"when the mouse clic > picture move"
I'm not good at action script yet. i'll try to study.
But, somebody gives me a hint!
thank youHave a look at this modification that I made to your movie. I added a stop(); command to the actions layer at three points to hold the playback head. Then I removed the extra frames that you were using to take up time. I then added an invisible button over the center image. When clicked it will tell the playback head to play.
-
Flex with any ORM - Writing Model classes and action scripts redundant?
Hi,
I am using Hibernate with Flex. I have all my model classes
as POJOs. Now if i have to access these POJOs directly from flex, I
need to write action script reference classes for all my POJO model
classes. Since mapping POJOs with action script reference classes
is so mechanical, i am wondering if there is any tool to read all
the properties from the POJO's and convert them to action script
reference classes automatically. Is there any way that this can be
automated?
Thanks in advance.
Chandu.If you use Granite Data Services, there's something called
"gas3" (I think is the name). You may be able to use it even if you
don't use Granite.
I didn't care for learning how to use it (plus it uses
Groovy, more needless stuff to learn I guess), so I can't say how
well it works. I just wanted a simple custom ant task that
generates ActionScript classes for my Java classes. So I ended up
making my own. It's definitely not trivial but it's not that hard
if you're very good with Java and reflection. -
Does anyone know any good free games or apps?
im loooking for some free games which are good i like action games so if anyone knows any good games please tell me
It all really depends upon what you want. Since you are asking for free games, just download them and try. It does not cost anything.
-
Can anyone recommend any good books on leaning actionscript for flash?
Can anyone recommend any good books on leaning actionscript
for flash?
Intermediate level
I have been using flash for about 2 years more as a hobby
than anything else, some websites etc but now I realise I am going
to need to learn more actionscripting to do what I want, I have
come to terms with the simple stuff like goto – basic
variables – load mov – enough to programme up website
navigation.
I ideally want to learn more about the dynamic side of flash,
mostly for designing user interfaces and websites etc
I’m after a book that doesn’t get too heavy too
fast yet I’m a little past the more basic functions
Any thoughts?
CheersYou appear to be stuck on iOS 4.2.1. That means up really have a 2G iPod. A real 3G can go to 5.1.1
.To find compatible apps more app for 4.2.1 see:
Old Apps
VintApps 3.1.3 for iPhone, iPod touch, and iPad on the iTunes App Store
apps for ios 4.2.1: Apple Support Communities
Finding iOS 4.2.1 Apps Compatible with Older Devices - Apple Club
HT4972 Touch Game 4.2.1 Apps: Apple Support Communities
apps for 4.2.1 (also works for 3.1.3)
Tip - Finding 4.2.1 apps that work on an...: Apple Support Communities
4.2.1 iPod 2nd generation unable to use any...: Apple Support Communities -
Hi does anyone know what programme I can use to create DVD of a movie that I have created on iMovie? There is no iDVD on my mac. Is Burn any good? And if so, can I get it for free?
Thanks.There is no iDVD on my mac.
There is NO alternative. But iDVD is very easy to get.
iDVD is on the iLife 11 DISK. Buy here:
http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES/ref=sr_1_1?ie=U
Is Burn any good?
iDVD is vastly superior, especially for movies. -
I have an iMac 27" which is 4 years old and probably overdue for a clean-up. Is there any good reliable software out there that would help?
Has anyone had any experience of 'Mackeeper'?Check how many applications are starting when you log in, I found that if there was a lot of activity at login Finder did not display the icons on the desktop correctly, again like you it did not occur at every login, just occasionally.
For Safari have you tried resetting Safari, if that does not help you could disable plugins and extensions one at a time. You may find one of those is causing the problem. -
Hi Guys! I have an Imac with Mac OS X version 10.5.8 and bought a wireless keyboard. Unfortunately I can´t use the volume buttons on the keyboard. I have checked almost everything, does anyone have any good idea?
Hello, try kguy's solution here...
https://discussions.apple.com/thread/2332457?start=0&tstart=0
First, Go to System Preferences, keyboard, and click on the Keyboard tab
Make sure that the checkbox by "Use all F1, F2, etc, keys as standard function keys" is NOT checked.
Next, click on the Show All button, and select Bluetooth. You should see your Apple Wireless Keyboard listed on the left side of the screen.
Click once to select it, and then click the gear icon at the bottom of the box, and choose Disconnect.
Power off the keyboard by holding down the power button on the keyboard for a few seconds until it show "keyboard Off on your imac screen, then turn it back on again.
The device should appear once again in your bluetooth list.
Try out the volume control buttons now, and see if that cleared things up -
Anyone know any good books?
Hi I was just wondering if anyone was familiar with any good admin type books that cover Leopard server . Though there is a lot of documentation from apple on their site, it seems kind of vague and doesn't always talk in specifics (eg. how to actually use Ical server rather than theoretically how it works).
Also these forums have been a great source of knowledge so thanks to everyone who takes part!
So does anyone have any recommendations or is there somewhere online where there is practical info?
thanks
MartinI too am waiting for some good Leopard Server books, but just in case there are other people like me who haven't recently visited the Leopard Server documentation page:
http://www.apple.com/server/macosx/resources/
It appears that several of the pdfs have been updated (they end in 2ndEd.pdf) In particular, the iCal Service Administration pdf appears to have been updated around May 8th...
Also, there is now a very handy RSS feed that gives announcements for new and updated Leopard Server documentation:
feed://helposx.apple.com/rss/leopard/serverdocupdates.xml -
Can anyone recommend any good Tiger OS X wallpaper sites?
Can anyone recommend any good Tiger OS X wallpaper sites?
I've found Interface lift and The Apple Collection. Any other noteworthy sites?A couple of desktop picture sites are MacDesktops and PixelGirlPresents.
(16871) -
Any good Power Shell command or script to see connected users in real time for Lync 2013
Are there any good Power Shell commands or scripts that can tell you how many users are connected to a pool in real time so you can evaluate the current load. I have 3 FE servers in a single pool. We just started deploying the lync client to the users and
were curious as to how many are actually connected. I saw a number of home made scripts but really didn't care for any of them. I just want to find out how many users that are actually connected to the pool at a particular moment so we can see how many users
are really using the product.Have you looked at Pat Richard's get-csconnections script?: http://www.ehloworld.com/269
Please mark posts as answers/helpful if it answers your question.
Blog
Lync Validator - Used to assist in the validation and documentation of Lync Server 2013. -
hey guys, im in need of seriously help. i let a friend jailbreak my iphone and now its jus stuck at the apple screen. i tried rebooting it and everything but nothin is working. does anyone have any good advice?
put the phone in DFU mode (do a search for how to do this) and restore to the latest firmware. you may have to download the firmware from apple and when selecting restore or update in itunes press the shift key and select the firmware.
Hope this helps -
Can Anyone Recommend Any Good Tutorials For A Beginner?
Hi,
I just purchased Pro Logic 9 and was wondering if anyone knows of any good lessons/tutorials to help a first time user of the Pro Logic series. Im excited to get into this program and record but it is so powerful that it is a bit overwhelming. Any suggestions? Thanks in advance!I agree with JG99.
+1 macprovideo
I've seen both the lynda and macprovideo logic training. Don't get me wrong the Logic training at lynda is ok for the basics. The macprovideo ones are excellent and go much further. So I could learn in depth how all the instruments, like the EXS24 sampler, Ultrabeat drum machine, synths and plugins work and how to use them. There are proper whole tutorials dedicated to mixing and mastering. For me and my studio buddies macprovideo for final cut, logic and now the photoshop titles has saved us countless hours and a lot of hair!
http://www.macprovideo.com/tutorials/logic-application
The macprovideo iPad and iPhone apps rock too! -
Error while loading an child movieclip if the child has any action script
Hi
I am developing an application where I need to load a child.swf . All works fine when I load the mc but as soon as I add Action Script (lets say trace("test")) to the Child.swf I get a Error #1009: Cannot access a property or method of a null object reference. On the addChild line.
Code
trace("Toothpaste click");
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("Child);
mLoader.load(mRequest);
mcContainer.addChild(mLoader);Sorry.Thanks
Typo on the forum.
I can load the child.swf see the image/text in the child displayed in the parent but as soon as I add as3 to the child page I receive the above mentioned error. If I run the child.swf from the IDE or by itself everything works fine .
trace("Toothpaste click");
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest("Child.swf");
mLoader.load(mRequest);
mcContainer.addChild(mLoader);
Maybe you are looking for
-
Strange behaviour with Safari.
Very strange behaviour with Safari this morning. Pages loading piecemeal or partially. The content only becomes viewable after the cursor has passed over the area. Have cleared caches and reported it but I'm wondering if this is a local matter
-
How to save a file as a clickable image
I'm new to Flash (CS5.5) but have self taught quite a bit. I created a simple "slide show" model of images which fade in and out to other images-it's a holiday greeting card. How do I save/export/publish (not sure of the correct terminology) this .fl
-
I'm as a loss. I don't understand why today's folder "2014-06-06" won't let me add "_Kim" to the end. I do it will all my folders since I download from a couple of cameras.
-
OWB bugs, missing functionality and the future of OWB
I'm working with OWB for some time now and there are a lot of rough edges to discover. Functionality and stability leave a lot to be desired. Here's a small and incomplete list of things that annoy me: Some annoying OWB bugs (OWB 10g 10.1.0.2.0): - T
-
Embedding 2 queries within the same tab in a work-book?
Hi Experts, Is it possible to embedd multible queries within a single tab in a Workbook?i.e. can we define a cell range in which a particular query is to be embedded and a different cell range within the same tab for another query? Thanks Aravind