ActionScript 2.0 :: Thumbnail Gallery Not Passing Right Vars?
Dec 27, 2009
I'm struggling with my XML thumbnails gallery. The gallery itself is set up without a problem, nice grid of images created, including a listener etc. But then... In my mc.onRelease function, I can't the the node ID to pass through. And I really need it to so I can create the enlargement of the image. Here's my full code so far.
[Code]...
View 2 Replies
Similar Posts:
Feb 6, 2009
i was looking for gallery looking like this site [URL] i was looking gallery first page title gallery then Big image like this with description.
View 1 Replies
Feb 26, 2008
I think this should not be a big deal, but I do not get it to work. I got a "MainFlash" witch loades an XML with about 60 variables (Settings), in base of a paramater then this "MainFlash" loades another "FlashMovie" and this one needs, all, the same Variables too.
How do I properly pass all the Vars in the new/other "FlashMovie"?
U need to know I use LoadMovieNum to Level 0 I do replace the "MainFlash", cause the new loaded "FlashMovie" can have a completly different height and width ( ...I don't think it's possible to change the Document-Setting in a compiled swf, or is it? If this is possible I would not need to load a separate swf to Level 0. the main SWF usually ist about 320x180, the following can be 2x, 3x bigger...
View 2 Replies
Apr 2, 2009
I have to pass some variables to the flash movie (movie.swf?var1=aaa&var2=bbb). never had a problem with using them before.I've read around a lot an tried different coding, but when I export the swf I got the error, that root is unknown...doesn't matter, if I use one of this
var flashvars:Object = root.loaderInfo.parameters;
var flashvars:Object = stage.loaderInfo.parameters; // stage is unknown here..
var flashvars:Object = MovieClip(root).loaderInfo.parameters;
var flashvars:Object = MovieClip(root.loaderInfo).parameters;
[code]....
View 4 Replies
Sep 19, 2003
i have to separate swf's, and i need to pass a var from one to the other
initially i thought i could write the var to a text file (do this from the first swf) and then load the var in the second swf
is there an easier way? (i.e. i'm using getURL in the first swf to launch the second swf. could i pass it in that?)
View 5 Replies
Apr 26, 2009
I want to pass flasvars to my app usng php. I can get the php var from the url string fine and write it but i cant pass it through flash vars for some reason.The code im having issues with is in red.
Code:
<?php
$avar = $_GET['a'];
[code]....
View 2 Replies
May 20, 2010
ok so i have set up a register user page in my flash document and i'm trying to send the variables to a php document on my server which then puts the vars in a database. trouble is the variables dont ever get to the php. every time i add a user a row of blank variables are stored in my database and seen as i have had the php working with html forms passing the vars i am pretty sure this isnt the problem. here is my as3 code:
[Code]....
View 3 Replies
Apr 15, 2010
I've been trying to pass function variables from one frame to another for awhile now and looked at a few tutorials on how to do but I've had no success. I'm thinking my flash CS4 is bugged..... this will not work even though its supposed to...
(frame 1 on time line)
stop();
var transferText:String;
[Code].....
Even if I use trace in the same frame I cannot call the variable "transferText" while outside the function. It is always null in both frames. Like I said I pulled this from a few tutorials and others have said it works perfect but it won't for me. I've also tried using AS classes but the result is the same. I cannot call variables created or changed by functions.
BTW, I have no problem passing standard vars from frame to frame this works every time:
(frame 1 on time line)
var passThis:String = "I'm passing this.";
frame 2 on time line)
trace(passThis);
View 2 Replies
Apr 8, 2009
I am having a strange problem with my Actionscript not working in PC IE7. Everything works fine in Mac Firefox and safari. I am passing a variable from the html using swfObject, loading it in flash, populating a movie clips text field. However, the field shows "error" in IE7.
Also with the actionscript I am positioning the movieclip to stage right. When I remove that code everthing appears to work fine. However, positioning to the right is a must for my design. Why does IE7 act differently. I have spent way to long googling a solution to no avail. Can anyone shed light on this for me?
[Code]...
View 1 Replies
Jun 24, 2009
I have a bunch of nested movieclips. I set a var "foo" on the topmost clip. A child clip wants to know the value of foo: easy enough, i just call parent.foo.But what if I don't know how far down the tree the child resides in? Worse, what if foo changes every so often on new branches?My first thought was to simply add thisvar foo = parent.footo every clip, but this of course requires every clip have that line, or it breaks, and it doens'tus if a new child is inserted, or if a parent "foo" value changes.I was thinking that I could call a recursive function, where a child asks it parent, then its parent's parent, etc, for the value of foo along its particular branch...
function whatIsFoo(obj) {
if(obj.parent.foo==undefined) {
return whatIsFoo(obj.parent)
[code]......
View 0 Replies
Apr 15, 2011
I'm having to work on some old AS2 stuff and my AS2 brain is sadly atrophied.
ActionScript Code:
on (press) {
arrivaldate = day.text+" "+month.text;
//trace(arrivaldate);
[code]....
Is working fine, passing all the variables into the URL. The question is... why? I can't see any mechanism whereby getURL is given all the variables defined above. Does it pass in all local vars by default?
View 0 Replies
Jan 6, 2007
- in the parent.fla i created a dynamic txt box and var String named 'txt', this initialises the dynamic text box content to say "parent value".
- in the child.fla i tried to assign and send a new string value i.e. "child value" to 'var txt' which in found within parent.fla. At this point if everything was to work fine the dynamic txt box in parent.fla should output "child value".
View 4 Replies
Sep 28, 2008
I'm placing swfs in product pages of a oscommerce site.I trying to send the whole info of a certain product to the shopping cart.[code]
View 3 Replies
Aug 16, 2003
I have 2 HTML files with embedded flash movies. One HTML file is the main area (main.html) with a flash movie called gallery.swf which has a grid of thumbnail pictures, and the second HTML file (popup.html) is a pop up chromeless window for enlarged images depending on the thumb's the user clicks. Essentially I need to pass variables to popup.html and ulimately its embedded movie enlarged.swf. These variables will basically be id's of the clicked thumbnails which I will use to locate the correct enlarged images on the server to load into into a container clip within enlarge.swf.
View 3 Replies
Mar 4, 2010
btn.addEventListener(MouseEvent.CLICK, handler);
function handler(e:MouseEvent):void{
}
how do I access an input textfield in that hander? Is the only way to use the Dictionary class?
View 2 Replies
Jun 21, 2010
Could anyone suggest how to fix the function at the bottom so that when button forward_btn with label "Go to next Training Point" when clicked recalculates the fields created in function fileLoaded.[code]
View 2 Replies
Aug 24, 2009
I'm having a problem getting my data from input text fields to pass to the ASP script using getURL and "POST". The input fields have var of email and password. The form works fine when an html form passes the same variables.
on the submit button, I have this code
ActionScript Code:
on(press){
//loadVariablesNum("samplescript.asp",0,"post");
getURL("samplescript.asp",0,"post");
[Code]....
where to look to pass the variables from the input text fields?
View 0 Replies
May 9, 2007
So, does anyone know of a cross plaform/browser compatible way of passing variables to flash from html or javascript?
View 2 Replies
Dec 8, 2010
I have a very classic website with Flash built menu and HTML content. Now what I need is the menu buttons( which are Movie Clips actually) to maintain in their pressed position when a particular button from menu is pressed (which actually I did inside flash, but everytime new hyperlink is followed, the website is refreshed and new SWF loaded without button being pressed obviously).
I know this can be done either by Frames which I do not want or passing an argument in URL string from HTML when we call for an SWF object.
Sounds great, but I how do I pass different arguments to several menu pages, when i have only one SWF object and therefore only one hard-coded place of data or value where i can pass the argument in string ?
Do I need to divide my flash object to as many swf's as i need buttons and links ?
View 1 Replies
Oct 5, 2005
i'm passing vars from flash to php and trying to edit a mysql row from the db. anyone know php and can spot something going awry with my code here?
[Code]...
View 11 Replies
Nov 6, 2009
I want to incorporate a Horizontal thumbnail Scrolling Gallery to showcase the Special Menus of the concerned hotel. and on click of each image there should be a small popup to display other information of the menu. All this should be XML driven.
View 1 Replies
Apr 26, 2010
I have this thumbnail gallery that loads from an a simple XML. When a tumbnail is clicked its larger image loads into an UiLoader....
What i am trying 2 do is 2 show the larger image using a lightbox when a tumbnail is clicked (removing the ui loader for good). I have a lightbox that works with flash (when testing movie as well).
I have been trying for a couple days now 2 combine all this but it never works
View 3 Replies
Jul 16, 2010
I have a dynamic thumbnail gallery that laods thumbnails from db/xml and also each thumbnails associated main image. When the user rolls over the thumbnail the larger image displays to the right.
THis is all working fine however I need to update the script to change the thumbnail gallery layout from a 3 column 2 row gallery to a 4column 4 row gallery.I've adjusted the as and resized the thumbnails to allow for this and setup a 8px spacer between thumbs
[Code]...
View 2 Replies
Nov 1, 2004
I am trying to build a gallery where the thumbnail loads and then you hit the thumbnail and it opens the image full size. I don't want to have it resize.
View 12 Replies
Jul 31, 2005
I have a cool xml gallery designed by Scotty. I was wondering what actionscript could I use to add a gray border around each thumbnail and whenever the user rolls over the thumbnail, the border turns to white? Has anyone done this sort of thing before with an XML gallery? [code]...
View 1 Replies
Aug 26, 2005
but is there a way to make the thumbnails like, grid form, like in the examplerather than scroller? because i dont really like the scroller, and im not sure how to set them to grid
View 3 Replies
Jan 23, 2006
i'm using a modified version of the xml thumbnail tutorial on this site and am having a weird problem. sometime on some machines the thumbnails are desplayed in reverse order but when the page is refreshed they're dispalyed in the correct order. on other machines they load in in the correct order fine. anyone have any ideas why this would happen? the image names are loaded into an arrayin the onload of the xml the thumb images are put into an array:
for (z=0; z<videototal; z++) {
thumbnails[z] = xmlNode.childNodes[z].childNodes[0].firstChild.nodeValue;
moviefile[z] = xmlNode.childNodes[z].childNodes[1].firstChild.nodeValue;
[code].....
View 1 Replies
Jul 18, 2006
Ok so i have looked thru the forums for the past two days trying to solve my issue and i didnt find anything that works. I have the xml thumbnail gallery from the site working here.Its the base code except i change some things so that it would work if i loaded with the mxloader component into another movie. When i try and do so the XML file doesnt load. you can see this here. Im not sure if theres something else that i need to do to make this work or what, but i cant seem to figure it out. all the paths are absolute paths (http://ect...). and even stranger is that it worked like 3 or 4 times when i first started then stopped working. so i dont know if its
View 1 Replies
Aug 24, 2006
i'm working on a flash xml gallery. But there is one thing i can't figure out.i like it very much when the thumbnails are not i 1 line but 5 next to each other and then down. So the 6th one must load underneath the first one. Is there an actionscript for or is too complex?
View 3 Replies
Sep 9, 2006
I followed the tutorial on how to incorporate thumbnails into a flash/XML gallery. [URL]
How would I do the same thing but using a grid of thumbnails instead of the scroller? Can this grid be made to appear dynamically?
View 4 Replies