ActionScript 2.0 :: Flash XML Gallery Substitute SWF For Text?

Oct 9, 2007

I'm reposting this message as I realized I mis-titled it the first time. And I really do mean it: I will pay for a working solution to this problem. I need to do this for a client and not getting it done is not an option. It's all working like a charm. The only bad thing is: I want to place .swfs files where the dynamic text is right now, and can't figure out how to do it.

What I really want is one large image/JPG on each slide, and below that, instead of the dynamic text shown in the tutorial example, a smaller .swf file should appear. (For this project, the text itself needs to be animated, and I can't do that with the <caption>/dynamic text option; I need to insert an SWF.) I'd really like to do this using XML since that's working so nicely otherwise and will be so easy to update in the future if the client wants to add new slides.

Can anyone provide me with the actionscript code to use in the context of this photo gallery? I'm not advanced enough yet to know where or how to place code that doesn't fall into this gallery/AS format.(I'm not being lazy: I have looked all over these forums for hours, read through about 60 pages of tutorials, went through the whole XML Photo Gallery with Thumbnails hoping I could somehow alter that to meet this project's needs... no dice. I had gotten far enough in that tutorial to be able to insert an empty movie clip where I want it, but could only figure out how to fill it with JPGs from the XML, not SWFs... and in any case the images did not then work correctly while advancing the slides.)

Here is my current Actionscript code:

************************************************** *****
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;

[code]....

(It's not showing the preloader and the counter is missing on purpose; I don't need those items for this project...) In another version I have deleted the desc_txt code and the dynamic text field in Flash, substituting a new movie clip (in its own layer) called "description" and an external link to the SWF file in line 2 of each node of my XML file, closing and opening that line with <description> and </description> rather than <caption>.

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Text Is Substitute By Numbers And Characters?

Aug 13, 2009

The fonts are not embedded, right? text is substitute by numbers and characters?

View 7 Replies

Actionscript :: Php - Flash A Substitute For Css And Javascript?

Nov 29, 2009

I have reasonable experience with PHP, CSS, and javascript/jquery/ajax. I'm taking my first steps learning Flex/Flash/Actionscript and it's already striking me that using flash/SWF could solve many of my problems. For example:

I won't have to worry much about javascript availability e.g. handling the form submit twice like I do now, once for js available and one for js not available. There's also a CSS advantage: looks like things are very easy to style and drop in their correct exact spot in flash than it is with CSS (I hate CSS because I'm not that great at it and it usually gives me a headache).

[Code].....

View 3 Replies

ActionScript 2.0 :: Substitute "|" For " " - Show The Value In The Dynamic Text?

May 3, 2006

I have a dynamic text and in it I pull a value that I places in the PARAM of my HTML, like this, " ...&p1=de|R$+9,49|por|R$+799,58 ", I am trying to make the following one, show the value in the dynamic text, " R$+799,58 ", without the "de" or "|" or "por", I already tried to make this.

[AS]
var valorDe:String = "!";
var valorPosicao:Number = _root.p1.text.indexOf (valorDe);
if (valorPosicao >=0) {

[code].....

but nothing works.

View 7 Replies

CS4-AS2 : Annoying Substitute Fonts Window?

Jul 29, 2009

I still use AS2. Since I migrated from Flash 8 Pro to Flash CS4, the .fla I used to work with displays now a Font Mapping window.
 
The window says that the "VerdanaReg*" font is not available on my system.i never had such a font installed Verdana is a font I make an extensive use in my .fla and the installed fonts are (for several years):

[Code]...

View 2 Replies

Java :: Substitute {0}, {1} .. {n} In A Template With Given Varargs

Aug 13, 2010

Consider a string template of the following format: String template = "The credentials you provided were username '{0}' with password '{1}'"; Substitution variable fields are of the form {n}, where n is a zero based index. This is the template format used in Adobe Flex, see StringUtil.substitute(...). And also .NET, IIRC. Since I want to re-use the templates used by the Flex code I'm looking for an Java equivalent. I'm aware of String.format(...) but the template structure is not identical. What is the best way to get the same "Flex compatible" template functionality in Java? Basically this is the desired end-result:

[Code]...

View 2 Replies

ActionScript 3.0 :: Is There Container Substitute For A Stage?

Dec 6, 2010

what I want to know if there's a substitute for a stage (since you only can have one) that accepts objects to be added to it (as childs with addChild(object)) that isn't the size of the stage but its size is definied some other way.I just created another thread about loading swf files, but my question is new but related to that.I'm creating a series of mini-games that shoud be loaded into a project from external SWF files, but right now I'm using "stage" as the place where I put all my objects.For example, I have a GRID that accepts new Grid(4, 4, "Object") as the Construtor parameters, that is to say 4*4 (16 boxes to this grid) and it determines "automatically" how wide the stage is, if it's 200 px every box is 50 pixels wide. And the same for height. It calculates stageWidth / X, stageHeight / Y

so it's always a "full grid" that is 100% on the screen no matter the size.Finally, my question is if there is some other type of container other than stage that can "contain" these objects. Say that I create 4 of these containers, and each should hold 4 mini-games without taking up 100% of the stage container - instead it should take up the Substitute that acts in a similiar way.

View 3 Replies

ActionScript 2.0 :: Substitute For _root In Classes?

Apr 23, 2008

I have just started writing my own classes in .as files. I am now wondering what the structure is for calling movieclips and buttons on the stage. I have been using _root but have read that it is not a clever choise if you want to import other swf files into your project. Is there a smart way here to structure my classes?

View 2 Replies

ActionScript 3.0 :: Substitute A Parent MovieClip With A Loaded One?

Jul 9, 2009

is it possible to load a .swf and play it in such a way, that this loaded clip will become a root effectively substituting a loading clip on top of the hierarchy?
 
Saying this another way round - rather than loading external .swf as a child of a "host" movie I would like it to replace host movie entirely.

View 4 Replies

Actionscript 3 :: Substitute Image In Larger Animation?

Mar 4, 2011

We're making a Flash browser game with a few reasonably complex animations. Our designer is making the animations in Flash Professional while I'm wiring everything up and adding some logic through AS3 (using FlashDevelop).In one of our more complex animations a "bonus item" moves around the screen. It tweens hither and tither, there special effects and as such, it disappears for a few frames and then reappears later.From AS3 we want to be able to dynamically decide which bonus item (say a mushroom or a star) to include in the animation. We don't want to have to ask our designer to replicate the entire animation for each of our bonus items.This is what we've tried: Created a two frame (1 mushroom frame, 1 star frame) "BonusItem" movieclip in FlashPro and Exported for ActionScript.Created the complex animation movieclip in FlashPro and added the BonusItem movieclip to the relevant frames. Gave the BonusItem instance an instance name on all necessary KeyFrames. Exported entire movieclip for ActionScript(exported as "ComplexAnimation").[code]This would play the complex animation with the star and we could easily call gotoAndStop("mushroom") to play the same animation with the mushroom.

The first problem was that complexAnimation.bonusItem was null on line 02 above. I solved this by handling ADDED_TO_STAGE for complexAnimation and putting line 02 above in the handler. The next problem was that each time the bonusItem movieclip started tweening, or if it was not present in some frames and was subsequently re-added the complexAnimation.bonusItem attribute/reference was reassigned to a new bonusItem instance. I then had to find a way to know when this was happening and call gotoAndStop("star") on the new instance. I've found two ways to do this:

1) Listen for ADDED events on complexAnimation with a target.name of "bonusItem". It's a bit crap in a strongly typed language to have to resort to matching strings, but this works. Btw, when the ADDED event is fired new frame object references are still null.

2) Listen for FRAME_CREATED events. This happens later than ADDED at a point where new frame references have been initialized. As such I can check if complexAnimation.bonusItem is non-null at then call gotoAndStop("star") on it. One problem with this is that calling gotoAndStop actually triggers another FRAME_CREATED event to fire, so I need to guard against infinite looping. Again, it works but I don't have a great feeling about it.

View 2 Replies

ActionScript 3.0 :: Flash - Add Text To Dynamic Gallery?

May 9, 2011

I have created a slider menu that moves when the arrows are clicked on either side. The images for this menu are loading dynamically from an xml file onto a 'container' in my fla.I need desperately to also be able to add text underneath those pics.

Code is :
import com.greensock.*;
import com.greensock.easing.*;

[code].....

View 14 Replies

ActionScript 3.0 :: Making Flash Image Gallery With Dynamic Text Filtering

Jan 29, 2010

I am trying to build an image gallery that will be dynamic, for example if a person will choose show me image gallery of products of price over 200 $ , he will see those products only, if he will choose back he will see all products images again... for better understanding what i need to do is something similar to this : [URL]

View 3 Replies

ActionScript 2.0 :: XML / Flash Photo Gallery Tutorial - Load The Swf File Into Another Movie The Dynamic Text Will Not Display

Jan 6, 2007

I'm having some problems with the XML/FLASH Photo Gallery Tutorial ([URL]). When I load the swf file into another movie the dynamic text will not display. Any thoughts to why this is happening.

View 1 Replies

Professional :: Convert A JQuery Lightbox Style Gallery Into A Flash XML Based Image Gallery With Categories?

Oct 26, 2010

I've made a gallery slideshow before but wasn't as intuitive looking back at it now and I want to start fresh on this new project. I would like to convert a jQuery lightbox style gallery into a flash XML based AS3 image gallery with categories. I don't want to code the FLA, I want separate AS files.

This is a school project for my website. I would use jQuery and I have more experience with it but this project needs a flash component. I'm just not sure where to start and looking for some advice on how and where I could find resources. I want it to be minimal as I can make it;

- 8 thumbnails to a "page/section" with more flowed into page 2 or 3 etc. (or a srcoller)

- a few buttons for categories

- images fading in full size with a description when hovered over and a close button

- preloader (simple bar)

Esentially something like this > http:[url].........works which is using http:[url].... for the thumbnails. That might be ambitious but I'd suffice with a simple fade effect.I've downloaded some galleries out there but most of the code is messy or outdated.http:[url]... this is alright, but all the code is done in the FLA. I might break it into AS files but it depends.

View 1 Replies

ActionScript 2.0 :: XML For Gallery From Tutorial 'photo Gallery Using XML And Flash'?

Jan 15, 2010

i am trying to put some things together following the tutorials on this site. I did the tutorial 'Photo Gallery Using XML and Flash'and I followed it step by step and uploaded it with all the necessary files onto my remote server (xml file, Gallery folder, fla, swf, and html) - however, when I test the movie with flash, it seems to work fine (except the description test, my question to that later), but when I test it online it shows only the first image (but displays the correct number of images in the gallery); even when clicking the next button, it keeps loading the first image the first image. In other galleries (I use the structure for multiple galleries for my portfolio) the first image never loads at all.

Also, about the description text, in between the <caption> and </caption>, can I use <strong> and <em> and <br /> to change the appearance of my text? All it says is 'null'.If you want to look at what I mean check out my portfolio in the making. The problem with the first image displaying only is under 'paintings' and both the projects in 'design - packaging'. The second problem (no picture loading at all) is on some of the buttons in 'design - identity' (where I have not changed the description text of the tutorial yet).
Again,

View 3 Replies

ActionScript 3.0 :: Loading Images - Substitute The Content For The New Content?

May 20, 2010

I have a menu whee you can choose a picture to lead, works great with first selection, but when you choose a different picture it loads over the last picture,I want to substitute the content of that movie clip not to load all the pictures in the same space. I treid to use clear() and removeChild(), but this only works when I choose pic1 then remove that to load pic2, is there an easy way to substitute the content for the new content?

View 1 Replies

ActionScript 2.0 :: Substitute A Variable With Another Variable's Name Instead Of Its Actual Value?

May 18, 2010

I was wondering if its possible to substitute a variable with another variable's name instead of its actual value. I have a variable named "pLeg" thats equal to the value of 1.I have blank variable named "itemVar".Now, I want "itemVar" to equal to "pLeg", but not of its value, but of its name string.The reason is because I need "itemVar" to substitute multiple variables in a main timeline code.

For example:

Code:
if(_root.itemVar !== 1) {
//do something
}

"itemVar" can be any variable, like pTorso, or pWeapon or anything. Which is why I can't have it equal to the variables actual value, because then the timeline code would turn out to be:

Code:
if( 1 == 1) {
//1 being itemVar
}

PS: I've tried add quotations like _root.itemVar = "pLeg" but Flash will not read it as a variable.

View 3 Replies

ActionScript 3.0 :: Make A Flash Photo Gallery That Displays All The Image Files In A Certain Directory With The Usual Photo Gallery Functionality

Sep 1, 2009

Just trying to make a flash photo gallery that displays all the image files in a certain directory with the usual photo gallery functionality.

View 1 Replies

ActionScript 2.0 :: Photo Gallery With Text?

Dec 22, 2003

I was trying to use the photo gallery tutorial from this site the code was done by sbeener I wanted to use the same concept for adding external text for each image. So far I have only been able to figure out how to load the text but I have not figured out how to be able to change the text to correspond to the image.

Here is the code I was working on:
stop();
photo._width=550;

[code].....

View 6 Replies

ActionScript 3.0 :: How To Substitute "this" In Here

Jun 22, 2011

i have these lines of code, when i try them alone it works fine but when i try to use it in my project it stop working, the rotation actually and is because of "this" in the tweener.

[Code]...

my question is, is there any way to reference another object in the tweener to make this thing works? project consist in several classes wich are called by a fla to ensamble interface, maybe that's the reason it stop working. now i noticed the code i have just works directly on the fla, if i place it in a clase it stop working because of the same...."this"

View 7 Replies

ActionScript 2.0 :: CS3 Mouseover Text Enlarging And Gallery

Dec 30, 2009

I have a question and would like some help with creating a flash gallery but for showing information rather than pictures. I will try to make this as clear as possible but if its confusing please let me know and I will give more details.Basically I trying to make a vertical timeline on the lefthand side with years (in text) which expand slightly on mousover and when clicked show the relavent information on the righthand side for that year.I can't seem to get the text to expand on mouseover?

View 21 Replies

Professional :: Text Expanding And Information Gallery?

Dec 30, 2009

I have a question and would like some help with creating a flash gallery but for showing information rather than pictures. I will try to make this as clear as possible but if its confusing please let me know and I will give more details.

Basically I trying to make a vertical timeline on the lefthand side with years (in text) which expand slightly on mousover and when clicked show the relavent information on the righthand side for that year.I can't seem to get the text to expand on mouseover?

View 2 Replies

ActionScript 2.0 :: XML Gallery - Displaying Thumbnails With Text

Jan 11, 2007

I've been trying to code an XML gallery, and it was going very well. I got it to display the thumbnails with text, and made it look nice and everything. Well, it seems I came to a stop.. Any way to preload the images, have image rollover effects, or have an onPress event (on the images, to pop up the larger version). So it's like half complete. [URL] - this is what I have so far.
The files are here: [URL]

View 8 Replies

ActionScript 2.0 :: Input Text To Navigate A Gallery?

Jul 16, 2007

I am working on a gallery that is functioning greatly. Right now, the only way to navigate is to click next or previous. The images load dynamically from a XML file, and they all have a corresponding number.For easier navigation, I would like to add an Input Text for people to enter the image number they wish to see:

Go to image # ____ GO

Then they would click GO or just press enter.A little bit like when you browse search engine and you can to to page X, or stock photo websites. However I am not sure I can achieve it in an efficient way.how to use the typed number as a value, so it leads the user to that image number? The only solution I seem to think of is:

if (input text = 9)
go to image 9

But it would mean I have to create an IF statement for each picture.I have never worked with input text before.

View 8 Replies

ActionScript 3.0 :: XML Gallery - Adding Descriptive Text For Big Image

Nov 13, 2009

I've found this tutorial that I've played around with and it works out fine [URL], but I would like to add some descriptive text for the big image. How would I go about loading such a text from the xml file?

ActionScript Code:
import fl.containers.UILoader;
import caurina.transitions.*;
//---------loading the external xml file-------
var urlRequest:URLRequest = new URLRequest("pics.xml");
var urlLoader:URLLoader = new URLLoader();
var myXML:XML = new XML();
[Code] .....

View 3 Replies

ActionScript 3.0 :: XML Image Gallery Error - Parameter Text Must Be Non Null

May 26, 2010

I'm trying to build this XML gallery that has a next & previous button that will load XML content. When I click on the next or previous buttons I get this error:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at recent_fla::MainTimeline/nextImage()

This is what my actionscript looks like:
Actionscript Code:
stop();var titleArray:Array = new Array();
var descriptionArray:Array = new Array();
var imageArray:Array = new Array();
var imageNumber:Number = 0;
var totalImages:Number;
[Code] .....

View 2 Replies

ActionScript 2.0 :: Xml Gallery Text Field Isn't Filling With The <piece> Node

Sep 27, 2006

i have an image gallery, slightly modified from kirupa's xml image gallery, and for some reason the desc_txt text field isnt filling with the <piece> node from the xml file. everything else works. the text field is set to dynamic text and the instance name is correct (desc_txt). here is the actionscript,

[Code]...

View 1 Replies

ActionScript 3.0 :: Add Image Smooth Code To Xml Gallery (green Text)?

Aug 20, 2010

I'm trying add image smooth code to xml gallery (green text):

Code:
package
{
import caurina.transitions.*;
import flash.display.*;
import flash.events.*;

[code]....

I don't know why always first loaded photo is loading with null object error and without of smoothing, but any next photo is loading fine without of any errors and with smooth option enabled.The gallery is loaded into main.swf with Loader class.

View 1 Replies

ActionScript 2.0 :: Photo Gallery - Adding External Text For Each Image

Dec 22, 2003

I was trying to use the photo gallery tutorial from this site the code was done by sbeener I wanted to use the same concept for adding external text for each image. So far I have only been able to figure out how to load the text but I have not figured out how to be able to change the text to correspond to the image.

[Code]....

View 6 Replies

ActionScript 2.0 :: Photo Galley - Make A Gallery Based On The Tutorial Gallery (thumbs)

Jul 19, 2005

What I want to do is to make a gallery based on the tutorial gallery here (thumbs), but I want the user to be able to choose different galleries from within the movie. I figured that I could make a loop to cycle through the galleries, then nest another loop inside it to cycle through the pics, captions and thumbs. While I wrote, I constantly tested the output with trace commands, but when I tried nesting the loop I lost all output.. I'm pretty new to both Flash and Actionscript, so if theres an obvious solution I havent been able to see it.. This is my temp XML file:

[Code]...

View 2 Replies







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