Professional ::building A Random XML Content Area?
Feb 18, 2010
I'm trying to build a "product spotlight" area on my site's homepage. There are a lot of products, so I want to display them randomly, and I want to specify an image, link and text in the XML file.
I've started by using the XML gallery on kirupa.com, but that didn't quite do what I wanted. I found a little workaround when I found a random XML image loader on another site, and used that.. all it would load was an image, so to make the product photos be links and have special text I made each photo a .swf instead of .jpg file and added a button link over the whole image. This way works, but we are adding more and more products and it's becoming cumbersome. There will be about 50 different products randomly changing.
It would be perfect if we could just set up the xml like
<list> <product> <image>whatever.com/product1.jpg</image> <url>whatever.com/product.2htm</url> <title>Buy this now for $3.50</title> </product> <product> <image>whatever.com/product2.jpg</image> <url>whatever.com/product2.htm</url> <title>Buy this now for $4.50</title> </product></list>
And then the flash file would have the link on the top layer and pull the url from the xml file, bottom layer would load in the image, and in the middle we'd have the title, maybe I'd have it slide in with a basic tween or something like that. And then, there could be like 50 different images listed in the xml, and it would display one randomly for like 10 seconds, then fade into a new one, and just keep swapping it out forever and ever. I really want to do it this way because I can update the text or images without having to build a new .swf file every time something changes.I know how to do some regular basic flash stuff, but I never got into the hardcore actionscripting, so I'm kinda stumped. Anyone know how I can pull something like this off or know of freeware example that I can use and build off of?
View 1 Replies
Similar Posts:
Nov 11, 2010
I'm trying to build a "product spotlight" area on my site's homepage. There are a lot of products, so I want to display them randomly, and I want to specify an image, link and text in the XML file.I've started by using the XML gallery onbut that didn't quite do what I wanted. I found a little workaround when I found a random XML image loader on another site, and used that.. all it would load was an image, so to make the product photos be links and have special text I made each photo a .swf instead of .jpg file and added a button link over the whole image. This way works, but we are adding more and more products and it's becoming cumbersome. There will be about 50 different products randomly changing.
<list> <product> <image>whatever.com/product1.jpg</image> <url>whatever.com/product.2htm</url> <title>Buy this now for $3.50</title> </product> <product> <image>whatever.com/product2.jpg</image>
[code].....
View 1 Replies
Jul 1, 2008
I have a main movieclip with a bunch of 'flies'-MCs flying around randomly in it. If the main mc is placed in main timeline, is there a way to retrieve the actually covered area of the main mc at a certain moment... imagine a snapshot bounding box of all flies at that specific moment.
View 9 Replies
Jan 31, 2010
im using a free template from online but I dont understand how to make the content area bigger on the scroll box.
var sd:Number;
var sr:Number;
var cd:Number;
[Code].....
View 9 Replies
May 27, 2011
I have a page with a "Tip of the day" section.I have at present about 30 different tips.I would like to set that section up so that every time the page loads a different tip appears, in random order.
View 1 Replies
Jan 23, 2009
So I have a photo gallery that loads with a series of thumbnails that link to larger images.The entire gallery is dynamically added to the stage using attachMovie when a user clicks on a button. Because the gallery is pretty big, I want to add a preloader that tells the user that thumbnails are loading. I have set my gallery up using three frame. The first frame measures how many bytes have been loaded, the second frame loops the timeline back to the first frame using 'gotoAndPlay(1);' The preloader code on the first frame looks like this:
ActionScript Code:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
[code].....
View 9 Replies
Jul 27, 2010
As a teacher I am looking to create a random name generator to use with my classes. I don't know much but I am willing to learn.I want my random name generator to be able to load class lists from an external file - I want the random name generator to be able to recognise the time and load the pre-defined class for that time of day. I think this will work best if the day and time were listed above each class list in the file. I will also look to add a basic action button which generates a new name when pressed. I have seen some posts referring to creating a random number generator and then link this to a text list but I think I am trying to do something a bit more different.
View 2 Replies
Sep 30, 2009
I need some tips, algorithms, code samples, whatever relative to building random shaped close smooth curves, that have no intersections, not many "close to intersect" parts. Pretty much like on the image attached. If there are any algorithms for the same task but allowing intersections - would be great to know too.
View 4 Replies
Oct 15, 2006
I'm building a dynamic content page in flash that consists of using attachMovieClip and createEmptyMovieClip with coordinates to place photos and objects, which are loaded from an external source and scrolling their thumbnails I've run into a problem setting the variables correctly because the scrolling thumbnails required that the thumbnails be nested inside a scrolling controller clip and that has somehow messed up my preloading and sequential text caption loading for the tumbnails.
View 4 Replies
Dec 11, 2009
I am trying to define the content area of a custom component that extends mx:VBox. The component has predefined headers and footers (visual children) and I want to set the area in the middle for adding children to the component. The component will be used like this:
<custom_component>
<mx:button/>
</custom_component>
How would I set this content area?
View 3 Replies
Oct 13, 2011
I was wondering if there is a limit to how much Jaws (screen reader) can read in a text area in Flash. my text area contains about 15 lines, and always it stops reading at a certain point. In one test I was deleting one word, and then Jaws read one more for me(since I guess I deleted one). So it looks like there is a limit on how much it can read through AccessibiltyDescription property . How I can make the Jaws to read the whole content in the text area? I am working with flashbuilder and SDK 4.1.
View 1 Replies
Jul 21, 2010
How do I get the size of the content area of Container objects? One non generic solution is checking for styles I suppose but I am looking for some code that works generic for all standard flex Container objects. The controls are Flex 3
View 1 Replies
Apr 29, 2010
I'm working on a simple tutorial, and I'd like to randomly generate the positions of the red and green boxes in the accompanying images anywhere inside the dark gray area, but not in the white area. Are there any particularly elegant algorithms to do this? There are some hackish ideas I have that are really simple (continue to generate while the coordinates are not outside the inside rectangle, etc.)
View 2 Replies
Oct 30, 2011
I followed the random motion tutorial here: [URL] Everything is working fine, but I want it to randomly move everywhere but not go past about an inch from the top. My document is 550w x 400h, and I made that change in the actionscript as it said in the tutorial. I also tried changing it from 550 x 400 to small numbers to maybe trick it into thinking the document is smaller but to no avail. I've been googling for the last couple of hours, but it always comes up with references to flash game coding tutorials, and I have 0 experience with actionscript 2.0 (i've been learning as I've been going, through google. I'm making an animated gift as a birthday present.)
View 5 Replies
Jun 26, 2010
I have a random motion script that I need to remove when the object in random motion hovers over a specific area in the background. I need the object to just keep moving in the direction it was going in and not randomly switch directions or bounce.This is my script for the random motion which is on the object:[code]
View 1 Replies
May 18, 2010
Does anyone know where I could go and learn how-to build a gauge that will animate under certain conditions? Preferably in AS3. Not sure where to start on this one.
View 2 Replies
Aug 26, 2010
Building a webpage entirely in Flash??I have to admit that I really like flash.I am using it for about 2 years, but I am still not sure if building a webpage entirely in flash would bee a good idea. In HTML I can't achieve the same look, and feel, on the other hand sacrificing the look for functionality is the last thing I would do.
View 2 Replies
Feb 1, 2011
I've taken 32 pictures of an item, on a rotating plate. Then, I removed the background and kept the file in PSD. I imported to library in Flash then created the "picture animation" that shows the item rotating. I want to add button to control the rotation and I wish to add some SPAY area on some of the pictures so, when a user is looking at the item, rotates it at will, some areas will highlight and will provide the user with links to more information.Should I use Firework to set the areas ?then establish their relation in Flashr should I add links and compositions directly in Flash and build everything from there ?
View 2 Replies
Apr 26, 2011
[URL].. I am a graphic designer and I am relatively new to Flash and I would like to animate a background like this 3D simulation that triggers when clicking on any of the buttons below that I want to achieve,Should i use Swift 3D? what kind of action script does the programmer uses to acheive this effec?
View 1 Replies
Aug 2, 2011
how I might go about creating an imploding building in Flash?
View 1 Replies
Mar 21, 2012
I'm having trouble with building iOS applications in flash. I just bought an iPad and want to start building apps for it. I hav done simple apps for iPhone before but nothing too fancy. The problem is, I can build it and compile it fine but when I try to install on my device it comes up with the error saying:
"ITunes: 'APPNAME' failed to install." I can compile it as an iPhone app and it works fine. I'm pretty sure I've got my provisioning right because I have both my iPhone and iPad devices added. Anyone got any ideas of why my apps only work while I compile them as iPhone apps?
View 3 Replies
Nov 3, 2010
Can Facebook apps be written in Flash CS3 or do I have to use Flex? I'm more comfortable with Flash, but it seems geared toward Flex.One of the Facebook SDK examples (FriendsList_flash) contains an FLA file but it won't load in Flash CS3. Does it require a new version or am I doing something wrong?
View 1 Replies
Nov 9, 2010
I'm willing to pay for referential help (ie answering questions when stuck) as I build a highly scalable flash 3D virtual office application/site.
I have some code background in HTML/ColdFusion/MySQL and I plan ideally to host on Google App Engine using their datastore as the backend and the OpenBlueDragon port of Coldfusion for GAE as the middle tier.
However I am struggling with flash and/or flex. Specifically while I've learned a great deal of AS3 concepts and FB component coding, all the 3D engine (lately Alternativa or Flare3D seem to have become the leaders) tutorials seem to be Flash based rather than FlashBuilder.
Moreover, I'm presently working through the Flash and PHP Bible (though trying to adapt the PHP to CF code) and can't find any resources describing how to connect Flash CS5 to Coldfusion (they all focus on FB4 and usually a wizard therein).
And finally given the scope of the intended project I recognize I will need a framework of some sort but transparently lack the expertise as yet to pick/implement one.
View 1 Replies
Oct 28, 2011
I've got Flash CS5.5 and am trying to build a sample Away3D 4 model viewer. I must not have the latest api for fp11, because the compiler comes back with this:
"Type was not found or was not a compile-time constant: TextureBase"
The file "RendererBase.as" from the Away3D library is importing a number of files from the flash.display3D package (including TextureBase), which apparently I don't have.
I downloaded the latest debug version of flash player 11, what else do I have to do?
View 5 Replies
Mar 8, 2012
I'm creating a music player to be on my website and so far I have it set up as such: The player is contained in a movieclip with a 'song progress bar', a pause and a play button.The songs are played by clicking the song title in a list in the main stage (not contained in the player movie clip), which sends the music player to the frame in which the song starts.
My audio is set as event audio so that the play and pause buttons can be coded as play(); and stop(): respectively which will stop the main player movie clip thus yeilding the progress bar from moving further and the song from playing.
This works just fine, except for the following:
- When I select event as my audio type the quality reduces dramatically Having the audio files in my library and not obtained from some outside source (i.e on my website's server) causes the .fla file to be much larger as well as the .swf Being as my project is at 24 FPS and each song is represented in as many frames as it takesto play the song out, my music player at present has only 3 songs 'in it', and my frames in the movie clip are approaching 20,000 (this is VERY tedious to work with)
I'm sure there is a more efficient way of doing things, but my knowledge is limited. I'd imagine I can do something along the lines of loading .mp3's off of my website into the frame and the play pause buttons will enact more elaborate scripts that not only stop the progress bar but also stop the music from playing temporarily, or something like this. But I have no idea how to implement it
View 2 Replies
Dec 29, 2009
I have Flex Builder Professional Ver 3 (Built with Eclipse) version.
I need to build an application with charts. The problem is that there are no charting components to be seen. There is no datavisualization.swc file in the libs folder.
View 3 Replies
Jun 18, 2010
I need it with Flash CS4, AS2...
I want to make a little app, .swf, that has a bunch of buttons on them - each button corresponds to a string of text...
So let's say, the buttons are marked as "Rd" "St" "Ln" etc...
When they click on the button, I want it to add that listing to the dynamic field box so it will look something like this
*User clicks on Rd button and "ROAD" pops up in the dynamic text box - User then clicks the "Ln" buttons, and then the dynamic text box changes to "ROAD/LANE"
User decides they don't want to use road, so they click on "Rd" button again, and the dynamic box reads "LANE" - user then wants to add "st" so they click on the corresponding button and now the text field reads "LANE//ROAD"
View 4 Replies
Mar 19, 2011
I have created a movieclip button which is animated for all the states I need (up, over, out, etc.) it's made up of text, which is in a movie clip where I have my animations created (actions layer with AS3 script, my txt movieclip layer, my hit layer) and then that is inside a movie clip in my main scene.Is it possible to copy that button, so then change the text, Actionscript, instance name, etc?I tried copying the layer (by selecting the frames and copying frames, and pasting to new layer) but when I make any changes, it changes both copies!
View 4 Replies
Mar 6, 2005
I have 12 empty Movie clips on stage. I want to get the content (jpg's or swf's) for these containers from an array. This is all fine, but I would like the contents to be loaded randomly into one of the 12 containers. The containers load the jpg's, which are preview thumbnails that need to link to the actual larger image plus some text. Loading eveything is OK, but I haven't figured out how to load the content into a random MC...
I attached the fla and images.
View 3 Replies
Mar 6, 2005
I have 12 empty Movie clips on stage. I want to get the content (jpg's or swf's) for these containers from an array. This is all fine, but I would like the contents to be loaded randomly into one of the 12 containers.The containers load the jpg's, which are preview thumbnails that need to link to the actual larger image plus some text. Loading eveything is OK, but I haven't figured out how to load the content into a random MC
View 3 Replies