ActionScript 3.0 :: Show A Link Instead Of Images?
Jan 13, 2011I have the following AS:
ActionScript Code:
function clicButton(e:MouseEvent) {
[code].....
I have the following AS:
ActionScript Code:
function clicButton(e:MouseEvent) {
[code].....
I'm fairly new to ActionScript and was wondering if anyone had an idea how this effect was done:[URL]..Click on a show date and the link zooms up and fills the screen giving show info. Then when you click the back button it shrinks back to where it was on the calendar.
View 3 RepliesI have this slide show and am trying to add a link to each image loaded.[code]
View 6 RepliesIs is possible for me to click a row of a datagrid to have it trace the info? Can it also pass the info to another frame?
View 1 RepliesI am pulling an rss feed into my flash project and don't know of a way to show 'read more' text in place of the link itself, and then hyerlink that 'read more' text using the link from the feed. Currently I am sending the 'link' child value to a dynamic text field and it works fine and I can get it to link, but I don't want to show the link, just a 'read more' but still have it linking. I hope that makes sense. A code snippet is below:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
var xml:XML;
function onLoaded(e:Event):void {
xml = new XML(e.target.data);
[Code] .....
i have a duplicate movieclip which shows data in a row for each user
now i can get many urls like to show url like[URL]...
I have made an mp3 player where xml data is shown in an dynamic textbox in flash movie. It is correctly showing the html links in text box.
But I want that when user clicks the link of a song, it should open the artist image in an image-holder. How can I do that?
I have made an mp3 player where xml data is shown in an dynamic textbox in flash movie. It is correctly showing the html links in text box. But I want that when user clicks the link of a song, it should open the artist image in an image-holder. How can I do that?
View 5 RepliesI'm creating a web site using adobe flash cs4. I need to insert an images slideshow but i have a problem and I cannot understand what is the solution. I import in my library many images which I put into a layer after converting them to a movieclip. When I press enter I can see the images but when I press test movie i cannot see them.
View 5 RepliesI have made this pictureviewer. It works fine tested from Flash - it shows both the name of the shop and the images running slow from rigth to left. But when tested in browser and on the internet it only get the name but don't show the images.
[Code]....
I am attempting to build a small slideshow using as3. I have built it on a transition extension. i have it working, but all the images are loaded into the library, given a class name to reference them and the rest is done based on the class names.in the as3 code a array has been set up all the class names listed like this:
Code:
image_movieclip_array = [
Image1,
Image2,
Image3
]
I have taken it a step further and created a xml file listing the url to the photos i want to load in but this is where i am lost the urls are being read successfully in, so the code can access the urls but im not sure from there how I actually import the images in, or how to assign each a seperate class , does the addchild command assign a class name that i can add to the above array?
I have a List with ItemRenderer on second .mxml file. List must show a title and image from rss item, but my images on list don`t show :( What is wrong with my code?
This is HomeView.mxml code:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[Code].....
I have just started messing around in flash and made a pretty cool site (...design wise, the action script part is my major problem right now) which is suppose to go online sometime soon. I used the following script to load an external SWF into my main SWF: (I placed this script in the main timeline of my 'main' movie on frame 100 or something)
[as]
if(this.contentHolder == Number(this.contentHolder)){
loadMovieNum("content1.swf",this.contentHolder);
} else {
this.contentHolder.loadMovie("content1.swf");
[/as]
The external swf is al working fine, the preloader, buttons and thumbnails behaviour. All except for one thing: the photos wont load when i click on the thumbnails. The external SWF is a photogallery with thumbnails. The script for the small thumbnails is as following: (I placed this on the first frame inside a movie clip of a movie clip which is staged in the main timeline).
[as]
var frameNum:Number;
function photoChange(){
_root.photos.gotoAndStop("img"+frameNum);
_root.photos.fader.gotoAndPlay(2);
} btn1.onRelease = function(){
[Code] .....
I've been trying to fix a problem I'm having in flash, but have no idea where to go from here. I am trying to link multiple images to different urls.[code]I need to make each bigImage file link to a different url.
View 6 RepliesI've got a flash page where a uiloader uses 10 different images. Wondering if I can assign a url to each image so that when they load, the viewer could click to follow the link.
View 1 RepliesI've been working on an image slider off and on for a month using different tutorials.I can't figure out how to link the images with the link attribute from the xml file.
the xml file looks like this:
<images>
<image source="image1.jpg" link="link1.htm"></image>
[code].....
I am making a page where the owner of the website can upload an image and it will show the images uploaded on the page. I've got an upload system, it uploads the image to a folder. PHP sends the locations of the images to AS3.
The string AS3 is getting from PHP is:
Code: .....
I also have a variable counting the amount of images in the folder and flash is receiving that one too. How do I show the images on the page? I know how to show them on the page but I have to make variables myself etc and I want it to do it automatically. I've got this already:
Code:
var Times:Number = 0;
var loc:String;
var loc1:String;
var loc2:String;
function onComplete4 (event:Event):void{
[Code] .....
links not showing up from my external xml file? I am trying to load an xml file that contains news, its basically an rss feed xml file i am trying to use a CSS file to make the links and images show up but to no avail. What do i have to do for the links to be clickable rather than just show up like <a-href="etc....
View 1 RepliesI currently have a slideshow for my restaurant that plays all day, is it possible to have 3 slideshows that will play depenind on the time, lets say slideshow 1 plays fom 12pm-3pm, slideshow 2 plays from 3-4 and then slideshow 3 plays from 4 til 11pm?
View 6 RepliesI'm looking for a SWF animation, something I could place on my webpage and input images via an admin section.So I would put the SWF in place, and then he would feed himself via an XML file I would do (or something like this) that I would construct with a PHP script from a MySQL database. The script would take randomly images from the DB.All I want is the SWF, I can organize myself with the XML/PHP/MySQL thing.
The animation (the SWF) has to be extensible, I mean, I want to specify the width and height of the animation and I want it to scroll from right to left continuously, at an average speed. This implies that the animation could be, let's say 900 pixels wide, there could be numerous images at the same time scrolling from right to left, all images would have to keep aspect ratio (the maximum height specified).
How to show different images for a single button?It should show different images when the mouse pointer is over the button and out of the button.
View 3 RepliesI'm using the below code as a reference [URL] to create a 'kind of' shopping basket at the end of my animation.
To put the 'items' in the shopping basket, the user clicks a button that is made from an image of the item.
how can I get the image of the item they clicked on to appear next to the description of the item on the shopping basket?
ActionScript Code:
import com.ahfx.Product;
import com.ahfx.Shopping;
var myProduct = new Product();
[Code].....
How to display images in center in xml slide show
I have created a flash animation using tutorial on [URL] The problem I am facing is my images are of different size, so how to display images in center.
I have used this code, it displays images in center in IE but in firefox it displays half image
if (picture._alpha<100) {
picture._alpha += 10;
picture._x = (Stage.width/2) - (picture._width/2);
picture._y = 40;
}
I received a flash file of a slider to change out one of the photos. I was able to change the photo but the published file won't show any of images. Here is the link to the file Test.fla .
It uses two greensock classes as well (included) which weren't included when the client sent the file over so I had to find and download it myself. It outputs "-440.6 1" which is over my head.
Here is the AS.
Code:
import gs.TweenMax;
import gs.easing.*;
var randomNum = Math.floor(Math.random()*3);
[Code].....
How to link images through phpMyAdmin databse? The images are been stored in a folder in the server.
View 2 Replieshow to show 11 images in grid type gallery i have created rows and cols for 12 images i want for odd nos ie 11 images 9 images etc.
View 2 RepliesI want to have a SWF file that can show images that encrypted and only swf can
show them! but i don't know how can i Encrypt images and load them into flash
Is that possible for the tilelist component to show two images in one row and column?
View 1 RepliesI've included the .fla and source files I'm working on. Here is what I need some help to figure out:
1. How can I show the items in rows of 4 and 4.. Instead of just repeat them vertical?
2. How can I load the thumbnails in the menu items?
3. How can I load the image for the chosen item in the image placeholder?
I'm having some troubles getting my xml gallery to work properly. The gallery works almost fine though, it finds the images from the xml and shows it as it should. The problem is that when i click on the images which all have a link, it does not go to the link but shows me an error:
[Code]...