ActionScript 1/2 :: Adding Alert Boxes To Movie Items With Clickable Links?

Sep 1, 2009

I currently have a movie where I have an icon (image) and a block of text as a clickable button (locked together) the button takes you to a specific urlActionScript
Code:
on(release){
geturl("[URL]");
}

What I need to do is replace the geturl with some script that will add an alert box with 2 options. I would like the box to have a title something like "Where would you like to go from here?" then two text links "Members Excel" (which will take them to members-excel-forum) and "Newsgroup Excel" (which will take them to newsgroup-excel-forum), like I said I have many more to add but once I have the code and a "How to" I should be able to adapt it.I will have to do this for each of the items (I'll have to unlock them first) there are 24 items in my movie (it looks like 12 as there is an icon and text locked together for each category) so I need to do this for 16 of them, I say Alert box as this won't be bothered by a pop up blocker. The Code [URL]

View 3 Replies


Similar Posts:


Actionscript 2 :: Clickable Links In A Scrolling HTML Enabled Dynamic Textfield In Flash Movie - Works In Flash Pro Not In Browser?

Dec 13, 2010

I have developed a rolling credits style movieclip in Flash using Actionscript 2. Text is loaded from an XML file and parsed into a dynamic textfield. This text includes hyperlinks to webpages defined by a url node in the xml so Flash can add the appropriate a href to the dynamic text field and make the link clickable.

In my first attempts to do this the textfield stayed still and all the links worked fine both testing locally and when I run it in a browser on my website.Then I wanted to make things move ... which I achieved easily enough and tested locally (from within Flash Professional) and the links remained clickable, a browser window opened and the webpage i was expecting to see opened... great

However, when I export the swf, upload it and run it from my website suddenly the links are not working. So I tried to test the movie in a browser from Flash Pro - same problem, it must be something to do with Flash Player and the moving dynamic textfield.

a couple of observations - the cursor will change to a hand icon when over the links as you would expect, and if I right click on the link and click open in a new window the link works ok, just not when I left click. If I stop the scrolling then the links become clickable again, it is only when the textfield is moving... actually its not technically scrolling, im moving the whole textfield.

View 1 Replies

Alert Boxes Adobe Flex Mobile - Searching - Block Until Get Response?

Mar 29, 2011

Im creating an application on Adobe Flex mobile (Blackberry playbook to be exact). Im designing an app that has a search function that makes a simple HTTP request to a server and waits for a response...

When the user clicks on search, how do I create an alert box that says "Searching..." and doesn't disappear until we get an HTTP response?

View 1 Replies

ActionScript 2.0 :: How To Make Text Boxes Clickable

Jan 22, 2009

I have a movie clip which has 3 different text boxes inside it. I want to make each text box clickable similar to a hyperlink in HTML (clicking on text box 1 takes you to one website, clicking on text box 2 takes you to another website, etc.). Right now my code is as follows:

ActionScript Code:
MyMovieClip.gotoAndStop(2);
MyMovieClip.TextField1 = "Click Here For Example 1";

[Code]...

So, you will see that I have 3 different text fields (labelled TextField1, TextField2, TextField3. Something is obviously wrong with my onRelease function, so my question is how can I make TextField1 clickable and send you to [URL] when you click on it? Am I using the right approach in the first place?

View 1 Replies

Flex :: Selected Items In One Alert?

Apr 27, 2011

I have 2 comboboxes which are dependent (country and state) and one submit button.
Now what i want is after user submits the form it should display one alert box which should be like

selected country is "selected item"
selected state is"selected item"

View 3 Replies

Professional :: Any Links To Creating A Clickable Map?

Jul 8, 2010

i want to draw a map of a campus. then when you click on different buildings, the building pops up big (possibly with text alongside it)any links to a tutorial how to do this?

View 8 Replies

How To Make Menu Items Clickable

Jun 15, 2009

I'm creating an xml generated gallery/menu, I have the gallery and menu populating fine but my issue arises when I try to make the menu items clickable.

This is inside my populate menu function
_root["mainMenu"+[i]].onRelease = function() {
trace(this);
var splitThis:String = this
var splitThisArray:Array = splitThis.split("Menu");
trace(splitThis)
trace(splitThisArray[1])
};

Now the trace output I get is
_level0.mainMenu1
_level0.mainMenu1
undefined

Although when I set splitThis to "_level0.mainMenu1" manually I get "1" or whatever number comes after "Menu".

View 2 Replies

ActionScript 2.0 :: Add Clickable Links To Popup Menu

Nov 30, 2009

I've been asked to modify this flash piece (CS3, AS2) and add clickable links to the pop up menu. For the life of me I can't get it to work, and my head hurts from searching the web top to bottom for an answer. I would attach the fla but its too large, but basically you scroll over a button, in this case a dot, and it triggers a pop up box beside it with a list of items. These are generated by frame identifiers, and when you roll over the box it goes away. I need it to stay there and make that list of items clickable ones.

View 5 Replies

ActionScript 3.0 :: Clickable Links Dynamically Displayed From XML?

Dec 14, 2009

scrap that I got the links working but the same url keeps showing up for each link:

Code:
var url=myXML.links.a[i].@url;
var url_name=myXML.links[i].a;

[code].....

View 0 Replies

ActionScript 2.0 :: Create Clickable Items In Another Object?

Jul 6, 2010

Alright I'm pretty sure I know what my problem is, but not sure how to fix it. I created a 50x50 grid of objects I want to be individually clickable using the following code to generate them:

[Code]...

I'm assuming this should work except for one issue, the above code is within another object that I have set to be able to clickdrag (so you can drag the whole map at once). Because of this, using "this.onMouseDown" seems to apply to the entire mapObject and gets the depth for each of the 2,000 some odd objects I've created. How do I set it up so that if I click on a nodeObject it gets the depth for just that and assigns it to a variable?

View 1 Replies

Flash :: Professional - Precisely Defined Links On Clickable Map?

Mar 20, 2011

I'm to make a clickable map divided in regions, where it is possible to see some info when you rollover the precisely defined regions, and when you click on that region > go to a specific website. Is it the best way to make this in Flash or are there other or easier ways?

View 1 Replies

ActionScript 2.0 :: Make TextField Clickable Links To _blank Instead Of _self?

Feb 7, 2007

When a user clicks on a URL, I want the new page to open up in a new window (or tab),instead of always in _self, which of course replaces the movie. I've trace'd the htmlText contents, and see TARGET="" where it's building the clickable links, which I assume the browsers interpret as the same thing as _self. Is there some better way to change the target for any URLs, short of doing a search and replace of the htmlText field

View 9 Replies

ActionScript 2.0 :: Mp3 Player - Add Another Attribute In For A Clickable Button That Links To Another Page

Aug 17, 2007

I've gone through an mp3 tutorial series and modified the final result for what i'm looking for. one thing i would like though is to be able to add another attribute in for a clickable button that links to another page that would have lyrics. so my xml would look like this i believe or something close <song name ="Test Track 4" band ="Band4" file="test4.mp3" lyrics="testlyrics.html" /> basically so it adds another button in after the track listing so you can click and view the lyrics that would be on a separate page. I don't quite understand how it all draws together in flash actionscript and how to put the lyrics attribute on another button.

View 5 Replies

Flex :: Adding New Lines To Alert Text?

Mar 30, 2010

I want to create a simple multiline Alert popupAlert.show("Blah\nBlah")shows BlahBlah when what I really want is two lines, one Blah each.

View 2 Replies

ActionScript 2.0 :: Vertical Scrolling Dynamic Text That Can Be Separate Clickable Links?

Sep 25, 2002

I am wondering how to make a movie clip that contains automatic vertical scrolling dynamic text(from an external .txt file) I dont want to press buttons to scroll text, I need it to be constantly scrolling, then loop once the text has been read from the external txt file.

I also require each line of the dynamic text to be clickable links that will take each line of text to a specific link. Ive uploaded a zip file containing fla and swf i found which shows vertical scrolling text. However if i move any of the graphics and text field clips around the stage the text cannot be seen anymore. why is this? can you put all of the items on the main stage in a movie clip so i can resize and move the scroller around the stage?? I tried this but again the text disapeared when i exported the movie? Is this due to the x + y co ordinates in the scripting?

How can you adjust the size of this scroller without this happening? Can the scrolling text be taken from an external file and each line of text be a seperate hyperlink? Follow this link (copy and paste it into your browser window, DONT click on it): [URL]..

View 9 Replies

ActionScript 3.0 :: Slide Show Code Generating Random Images With Clickable Links

Oct 26, 2011

i am doing a slideshow with images occuring randomly wch hav clickable links,okay it works but at times the transition is very fast instead of the 8s interval i expect ,when i view the trace() output ,i have noted that at times the timer is triggerd twice or more simultaneously...my code is below...what maybe the cause may u kindly assist i have 21 frames with 21 images

[Code]...

View 2 Replies

Flex :: Provide Links To Items In A Spark List

Mar 4, 2011

[code]I want to extend the list with hyperlinks. For example in every node I should have an href attribute also. Then I need to redirect users to the selected item. I know Flash has the URLRequest class. The little problem I have now is to get the selected item. It propably is because of the dataprovider is xml and I haven't done the correct casting.

View 2 Replies

Flex :: Stop ENTER Key From My Alert Being Caught By The Control That Initiated The Alert?

Apr 29, 2010

I am having an issue where I show an AlertBox message when the user hits ENTER and the focus is in a text area. The pop up works fine, but when the user hits enter the Alert closes as expected, but the TextArea listener receives the ENTER event from the Alert and pops the dialog up again. I have tried a number of ways to catch and eat the event but so far I have not been lucky. Is there way to accomplish this?

public function init():void
{
myTextInput.addEventListener(KeyboardEvent.KEY_UP, handleKeyStrokes);[code]....

View 2 Replies

ActionScript 3.0 :: Adding Numbers From Input Boxes?

Jan 28, 2011

I'm stumped on this problem and can't seem to figure it out. Any suggestions would be welcomed. Basically I'm building a large calculator that adds over 100 input boxes. I've got it working except for the fact that if a user misses inputing a number into one of the input boxes it does not work anymore. I've tired lots of things to no avail. I just want to add the input boxes and skip those where the user did not enter any information (does not apply to them)

Here is my code.

on (press){
ReceptionTotal = Number(LocationFee) + Number(Caterer) + Number(ToastingGlasses) + Number(SecurityFee) + Number(BarPackage) + Number(WeddingCake) + Number(FoodHors) + Number(Baker) + Number(BartentingFee) + Number(CakeKnife) + Number(Servers) + Number(Flatware) + Number(Dinnerwear) + Number(Flatware) + Number(TableLinens) + Number(ChairsCovers) + Number(Glasswear) + Number(Tent) + Number(Napkins) + Number(Childcare) + Number(DanceFloor) + Number(ServingStaff) + Number(Lanterns) + Number(Heaters) + Number(Restrooms);
}

each input box has a variable name assigned to it as indicated above. I've tired setting the variables to 0, tried if statements don't know how to skip one of the above variables when no number is entered.

View 8 Replies

ActionScript 2.0 :: Adding Variable Name To Tick Boxes?

Oct 3, 2002

How do I add a variable name to the tick boxes within the flash MX components?

View 9 Replies

ActionScript 3.0 :: Adding Dynamic Text Boxes On Top Of Mouse?

May 4, 2011

How do i add objects (such as a Text Box) to appear above the mouse. I am currently hiding the mouse and using an alternate object on top of the mouse but i still need a Text Box to appear above the mouse object and remain in one spot

View 2 Replies

ActionScript 2.0 :: Adding The Values Of 3 Dynamic Text Boxes

Apr 9, 2008

I have 3 dynamic text boxes on the main movies stage that are getting their values from an externally loaded swf. If statements within the external movie loads the values from an xml file depending on which action is selected by the user. Now I have a fourth text box that needs to gather all the values that are loaded in the other 3 and add them together...placing zero if nothing is loaded. I have done various code tests...I get either NAN or _level0.total ...total is the instance name of one of the boxes, I am trying to access.

View 2 Replies

ActionScript 2.0 :: Adding Links On "Adding Thumbnails" Tutorial?

Jan 11, 2007

I've stumbled across a very interesting tutorialBut, I've noticed a little detail. When you click on the big image of the finished example on the first page of tutorial, it acts like a link. When I have downloaded finished .fla source, links are nicely written in the images.xml file, but the links in the .fla file don't work.

View 2 Replies

ActionScript 3.0 :: Adding Background Color To Dynamic Text Boxes?

Jun 10, 2011

Basically I want to make the background of the Dynamic Text box have a color.  How do I do this using AS3?

View 3 Replies

ActionScript 2.0 :: Adding Scroll Bars To Text Boxes When Needed?

Mar 22, 2004

I'm pulling data from a database and loading it into a dynamic text field with a scroll bar component. I wanted to know if there is a way to hide the scroll bar UNTIL the text gets long enough to scroll.

View 3 Replies

IDE :: Adding Links To Text?

Apr 15, 2009

I'd like to create a bunch of links in a text field.

There's no way to do this in the IDE as nearly as I can tell. One link per field.

I can do it in actionscript by parsing the text in the fields and comparing it to entries in an XML, finding the entries and then adding the links to the htmlText of the field. Is there any way to easily parse words taking punctuation into account? Of course I can use the split function, but that doesn't sort out periods, commas, and such.

View 1 Replies

Adding Links In A Flash Template?

Mar 21, 2010

I have Flash MX and I'm editing a Flash template that I downloaded. When I roll over what would be the button section in this template it is set up to be a link, but I don't know how to edit it and add the links I want. how I can get links added into this thing? I can send it to you if you want to see what I'm talking about first hand.

View 5 Replies

ActionScript 2.0 :: Adding Links To Xml Gallery

Apr 21, 2007

I'm trying to modify Scotty's fantastic resizable XML gallery to add links to it. I've read through similar posts on this forum and I'm confused on a couple of issues. Firstly, the xml file provided, which I am using, places all fields in "" marks, whilst all examples given on this forum don't seem to do so.Perhaps more importantly, when i try, as recommended on similar posts, to place the link within CDATA tags the gallery stops showing any thumbnails, pictures or anything! I am confused. My XML file is as below, after editing the first image data to try and accomodate the link:[code]

View 6 Replies

IDE :: Adding Links To A XML Flash Gallery (CS4)?

Jan 4, 2010

Ive got an AS3 XML gallery thats all working fine, but I would like to add links to each image. Ideally I need to be able to add fully qualified links to each image individually via the XML document. my actionscript looks like this:

// delay between slides
const TIMER_DELAY:int = 5000;
// fade time between slides
const FADE_TIME:int = 3;

[code]...

View 1 Replies

ActionScript 2.0 :: Adding Links To A Text Box?

Apr 2, 2004

I am trying to add clickable links to a dynamic text box that is being used by different buttons (every time you click a different button the information in the text field changes). I have the text bos set to render as html and I can add bold, etc. tags, but because of the " mark in an href tag, it's not taking it.

}
on (release) {
info.htmlText="<b>Marta</b><br><br>Getting to downtown Atlanta can be made easier by using the public transportation system. Georgia State provides discounted monthly MARTA Transcards for students";
infobar.setScrollPosition(1);
}

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved