Working With Record Sets
Hello, this is my first post so i do apologize if this has been asked before. I haven't used Flash since v4 and now have upgraded to MX for work reasons, and have a need to get an entire recordset into my flash movie. I've seen a component on flashcomponents.net tkcdatagrid that i would really like to use to display the data but can't figure out how to get an entire recordset (using asp) into the movie. If anyone can help me i would really appreciate it.
thanks in advance.
FlashKit > Flash Help > Flash MX
Posted on: 01-29-2003, 10:42 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Large Record Sets And Flash
I was wondering if anyone has suggestions for how to handle big recordsets with flash remoting. First, would you suggest handling things client side or server side? I'm looking at doing recordset paging for a gallery, that I'd like to be scalable I guess the question is whether it is better to make one call and then parse it locally, or make a call to the server every time someone goes to a different page of the recordset. I'm looking to display 50 at a go.
And beyond that would anyone have a suggestion for handling the recordset extraction server side? I'm using ColdFusion, but I can't use the startrow attribute in the cfoutput element because the records are going to Flash. I can think of a way doing queries of queries, but it seems like that could get into even more calls to the database. My primary keys have gaps in their sequence so I can't just say get records with keys between 50-100 because that may not be 59 records.
Any thoughts?
Multiple Record Sets ASP To Flash
Hi guys!
I know how to display 1 record set from asp to flash but I get tuck when trying to display multiple record sets. Do i have to loop with action script? I really dont know. I am trying to make a news blog and pull news from the database into flash and organize it similar to this
Date -- Headline
Bla BLah BLah Blah
Posted by: Webmaster
---------------------------------------
Date -- Headline
Bla BLah BLah Blah
Posted by: Webmaster
---------------------------------------
And so on.....
Can anybody point me into the right direction or have any examples i can learn from?
Once again thanks for any input.
Jack
Flash Remoting And Using The Record Sets
Hello everyone. I am new to the forums, but have been browsing Kirupa for a long time. I finally got to the point where I needed to ask a question since I could not locate a well formed answer to my dilemma.
Currently I am returning some data from Coldfusion using Flash Remoting.
Quote:
var proLines:Object = new Object;
var proColumnNames:Array = new Array();
var proNumbers:Number;
proLines = result.serverInfo.initialData;
proColumnNames = result.serverInfo.columnNames;
proNumbers = result.serverInfo.totalCount;
The idea is pretty simple. It is a Flash banner that dynamically pulls up promotional events for our company. All the data is being retrieved fine and I am working with it without a problem.
However I am calling the data in the format of proLines[currentPro][0]; where currentPro is used in a function as we cycle through the promotional entries. The [0] however is in reference to the data I have retrieved. It references the location of the promotional title.
The problem is that actually specifying the actual array location makes it so that if we end up changing the amount of records we return (perhaps we want to start displaying dates for certain promotions) these numbers change and will require the Flash to be re-edited to reflect the index changes.
I am wondering if there is a way I can take the result.serverInfo.columnNames and use it with the initialData that is also returned from AMF so that I can reference my columns with their names like "proTitle" or "proDescription" rather than hard-coding the array location.
Any help would be appreciated in any form. If you happen to have links to good examples or any insight into my problem it would wonderful.
-Dan
Multiple Record Sets ASP To Flash
Hi guys!
I know how to display 1 record set from asp to flash but I get tuck when trying to display multiple record sets. Do i have to loop with action script? I really dont know. I am trying to make a news blog and pull news from the database into flash and organize it similar to this
Date -- Headline
Bla BLah BLah Blah
Posted by: Webmaster
---------------------------------------
Date -- Headline
Bla BLah BLah Blah
Posted by: Webmaster
---------------------------------------
And so on.....
Can anybody point me into the right direction or have any examples i can learn from?
Once again thanks for any input.
Jack
Duplicate Movie Clips Based On Record Sets
Howdy,
I've created a movie that displays content from a database. The small app displays rows of contents, what I was wondering if there was a way I can check to see how many rows/ movie clips the movie should create dynamically based on the amount of records returned.
Thanks in advance.
123
Getting Two Sets Of Code Working
my code is here:
http://www.aurora-watch.com/auroraLights3b.fla
i cant get both halfs of the prog to work, at the mo the future predictions is commented out as only one side will work at a time,
when i say work, the past data works in as much as it goes through its process ok, there is a server prob at the mo thats why no data is received
pleas help ive been playing with it for ages with no luck
Making 3 Sets Of Non-repeating #'s And Non-repeating #'s Within The Sets
Hey guys,
How would you go in making 3 sets of non-repeating #'s. Every time I click an MC, there's a number associated with it and should be removed from the following set.
Like this:
1st set: 6#s, 0-11
2nd set: 5#'s, (0-11)-1stMcClicked
3rd set: 4#'s, (0-11)-(1stMcClicked && 2ndMcClicked)
I'm using Senoculars function:
ActionScript Code:
function RandomNumbers(c) {
var r, p, i = c, n = new Array(c);
while (i--) {
n[i] = i;
}
while (c--) {
r = random(c);
p = n[c];
n[c] = n[r];
n[r] = p;
}
return n;
}
randomNumbers = RandomNumbers(11)
And getting 6 #'s from a choice of 12, like so:
ActionScript Code:
randomNumbers.splice(6);
The tricky part is to tweak Senoculars function, frankly because I don't understand it, and add exceptions.
Then, I tried something different:
ActionScript Code:
//Cred. to Senocular
function RandomNumbers(c) {
var r, p, i = c, n = new Array(c);
while (i--) {
n[i] = i;
}
while (c--) {
r = random(c);
p = n[c];
n[c] = n[r];
n[r] = p;
}
return n;
}
///Remove specific value from an array---***
function remItem(arr, item) {
tempArray = [];
for (i=arr.length-1; i>=0; i--) {
if (arr[i] != item) {
tempArray.push(arr[i]);
}
}
tempArray.reverse();
arr = tempArray;
return (arr);
}
var set1Array:Array = new Array();
var set2Array:Array = new Array();
var set3Array:Array = new Array();
var tempArray:Array = new Array();
var setArray:Array = new Array(set1Array, set2Array, set3Array);
var ammountToStart:Number = 5;
var totalChoices:Number = 11;
var currentSet:Number = 1;
function makeRandomSets(currentSET, ammountToStartWith) {
switch (currentSET) {
case 1 :
tempArray = RandomNumbers(totalChoices);
set1Array = tempArray.splice(5);
trace(set1Array);
tempArray = [];
break;
case 2 :
tempArray = RandomNumbers(totalChoices);
for (i=0; i<set1Array.length; i++) {
if (set1Array[i] == tempArray[i]) {
tempArray = remItem(tempArray, set1Array[i]);
}
}
tempArray.splice(5);
set2Array = tempArray;
trace(set2Array);
tempArray = [];
break;
case 3 :
tempArray = RandomNumbers(totalChoices);
for (i=0; i<set2Array.length; i++) {
if (set2Array[i] == tempArray[i]) {
tempArray = remItem(tempArray, tempArray[i]);
}
}
tempArray.splice(4);
set3Array = tempArray;
trace(set3Array);
break;
default :
trace("****ing error");
}
}
makeRandomSets(currentSet,ammountToStart);
and on a button:
ActionScript Code:
on (release) {
_root.ammountToStart--;
_root.currentSet++;
makeRandomSets(_root.currentSet,_root.ammountToStart);
}
Example trace:
Code:
3,0,9,1,8,6
9,10,0,2,6
7,6,10,9
As you can see, numbers repeat...
I know that my function isn't going to work, it's testing values consequentially. ([0] & [0], [1] & [1], etc etc...)
So?
Anyone...?
Ideas?
FRAME SETS PLEASE HELP
I am working on a project where I have a ‘top frameset’ and a ‘bottom frameset.’
The top frameset (an SWF file) loads a new swf files into it’s self and also changes the bottom frameset to coincide with the content above.
My question is. Can I load a new movie into the ‘top frameset’ from the ‘bottom frameset’ using some sorta scripe from an html link in the ‘botom frameset?’
Please, if anyone has any idea, please, please, please, help! I am in over my head!
Thank you so much who every you are.
--
Tim Thanks!
Panel Sets
alright, panel sets rule. saving your own panel sets rule. but, is it possible to include your library in your custom panel set? am i missing something? isn't the library a panel? why cant i save its position???? AAAAAAAAAAAHHHHHHRRRRGGG!!!!!
Frame Sets
Any body have an idea how to place a flash frame on the top frame, with buttons that affect the bottom frame.... As in a menu bar on top, made outa flash, and the bottom html and other formats???
Two Different Btn Sets Immitate Each Other?
Trying to make 2 diff btn sets react at the same time - any help would be appreciated.
I have an OButton.as, a Main.as, 2 different Menu.as, and a page class where they all load. I want the classes (ActionMenu.as and ActionMenu3.as) to react at the same time. At a point in this movie ActionMenu will not be visible but ActionMenu3 will always be visible.
Any advice?
Thanks in advance
Attach Code
//ActionMain.as
package
{
import flash.display.*;
import flash.events.*;
public class ActionMain extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var pages_mc:ActionPages;
public var menu_mc:ActionMenu;
public var menu2_mc:ActionMenu2;
public var menu3_mc:ActionMenu3;
//PUBLIC------------------------------------------------------------------------------------
public function ActionMain()
{
super();
initialize();
}
// private --------------------------------------------------------------------------------
private function initialize():void
{
addEventListener(OButton.NEW_SELECTION, selectHandler);
menu_mc.main();
menu2_mc.main();
menu3_mc.main();
}
// event handlers -----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
var btn:OButton = event.target as OButton;
//pages_mc.loadPage(btn.thisFrame);
trace(btn.thisFrame);
}
}
}
//OButton
package
{
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
[Event(name="newSelection", type="flash.events.Event")];
public class OButton extends MovieClip
{
public static const NEW_SELECTION:String = "newSelection";
private var _thisFrame:String;
//INITIALIZE--------------------------------------------------------------------
public function OButton()
{
super();
}
public function main()
{
initializeBehavior();
}
//API--------------------------------------------------------------------
public function set thisFrame(val:String):void
{
_thisFrame = val;
}
public function get thisFrame():String
{
return _thisFrame;
}
public function unselectCategory():void
{
play();
initializeBehavior();
}
// private --------------------------------------------------------------------------------
private function initializeBehavior():void
{
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER, onOver);
addEventListener(MouseEvent.MOUSE_OUT, onOut);
addEventListener(MouseEvent.CLICK, selectHandler);
}
private function deinitializeBehavior():void
{
removeEventListener(MouseEvent.CLICK, selectHandler);
removeEventListener(MouseEvent.MOUSE_OVER, onOver);
removeEventListener(MouseEvent.MOUSE_OUT, onOut);
}
//event handlers-----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
deinitializeBehavior();
gotoAndPlay("disable");
dispatchEvent(new Event(OButton.NEW_SELECTION, true));
buttonMode = false;
}
private function onOver(e:MouseEvent):void
{
gotoAndPlay("over");
}
private function onOut(e:MouseEvent):void
{
gotoAndPlay("out");
}
}
}
//ActionMenu
package
{
import flash.display.*;
import flash.events.*;
public class ActionMenu extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var act1_mc:OButton;
public var act2_mc:OButton;
public var act3_mc:OButton;
public var act4_mc:OButton;
public var act5_mc:OButton;
private var _selectedButton:OButton;
// initialize -----------------------------------------------------------------------------
public function ActionMenu()
{
super();
}
public function main():void
{
initializeMenu();
}
// private --------------------------------------------------------------------------------
private function initializeMenu():void
{
act1_mc.thisFrame = "one";
act1_mc.main();
act2_mc.thisFrame = "two";
act2_mc.main();
act3_mc.thisFrame = "three";
act3_mc.main();
act4_mc.thisFrame = "four";
act4_mc.main();
act5_mc.thisFrame = "five";
act5_mc.main();
addEventListener(OButton.NEW_SELECTION, selectHandler);
}
// event handlers -----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
if (_selectedButton != null)
{
_selectedButton.unselectCategory();
}
var oBtn:OButton = event.target as OButton;
_selectedButton = oBtn;
}
}
}
//ActionMenu3
package
{
import flash.display.*;
import flash.events.*;
public class ActionMenu3 extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var act1_mc:OButton;
public var act2_mc:OButton;
public var act3_mc:OButton;
public var act4_mc:OButton;
public var act5_mc:OButton;
private var _selectedButton:OButton;
// initialize -----------------------------------------------------------------------------
public function ActionMenu3()
{
super();
}
public function main():void
{
initializeMenu();
}
// private --------------------------------------------------------------------------------
private function initializeMenu():void
{
act1_mc.thisFrame = "top1";
act1_mc.main();
act2_mc.thisFrame = "top2";
act2_mc.main();
act3_mc.thisFrame = "top3";
act3_mc.main();
act4_mc.thisFrame = "top4";
act4_mc.main();
act5_mc.thisFrame = "top5";
act5_mc.main();
addEventListener(OButton.NEW_SELECTION, selectHandler);
}
// event handlers -----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
if (_selectedButton != null)
{
_selectedButton.unselectCategory();
}
var oBtn:OButton = event.target as OButton;
_selectedButton = oBtn;
}
}
}
Icon Sets
Iwant to learn how to use a 'purchased' icon set in a flash movie.
A Good FLA - Attraction Sets
Hi everybody.
sorry if i don't speak english very well, but i will try to explain my problem :
i found a good open source FLA and i would like to simplify it but it's too complicate for me.
Take a look there :
http://www.levitated.net/daily/similarseeking.html
I would like to have the same result but :
-without to introduce another attractor
-at the beginning, there are 3 cells but with a different symbol for each of us (A,B,C for exemple) [to using the duplicate method]
-that the attraction between the cells are less
-and when ii click one, the other use a little bit more the alpha.
If someone can help me or explain me how to do.
Thanks a lot.
See you.
Panel Sets Not Saving
Dunno if anybody has encountered this... I perused the forums and didn't see anything, so I figured a new thread was the way...
I have my own panel sets saved in Flash MX, and they're just not saving... specifically, the library is never there if I exit and re-enter MX. However, if I save and reload the panel set w/o closing MX, it's there... Further, if I open MX, load one of the built in panel sets and THEN load mine, it works. I only have one panel setup I need to use, and I'd like that to be the default.
This is probably a noobish question, but I didn't find anything in the help files either, so any assisstance would be greatly appreciated!
Thanks in advance.
Panel Sets Too Large
Help! I've worked on a Flash file at home (with a 17" monitor), then took the file into the office (with a 19" monitor)and worked on it. When I brought it home to work on it more, all of my panels have been resized, and I cannot shrink them to the size they originally were. I've uninstalled Flash MX and reinstalled, but the settings are still the same. Any suggestions?
One Sets Of Controls For Multiple MCs
I am working on a mixer application that will take images and looping animations and allow a user to select and change the properties of the MCs. The clips will also be dragable. I am using sliders to control the properties such as alpha, scale, rotation and color offset. My problem is that I want to use one set of sliders to be able to control each of the selected MCs. I want the user to be able to click on a MC to activate it and then the slider will control that clip until another clip is selected. Can someone please tell me how to go about doing this?
Random Number Sets?
I need to activate movie clips, numbered 1 through 20, in random order. I was thinking an array might be ni order, but basically I need to think of a way to shuffle the numbers from 1 to 20 with actionscript. ideas?
Panel Sets Disappearing
has anyone had problems with their panel sets disappearing when testing a movie? i'm using flash mx on mac os x and when i test my movie, my panel sets disappear. i thought i could just hit 'tab' and have them come back, but i have to reload them each time. i've saved my panel set but its a total pain in the @ss to have to reload them every time i test something.
anyone have problems with this - or is there a preference i don't know about?
thanks
Mouseover Movieclip Sets _x _y Of Another
The title explains it all. I have two movie clips.
One named 'Box' and the other 'Roll'
For the script of Box:
Code:
on(rollOver){
Roll._x=100
Roll._y=100
}
For the script Roll:
Code:
on(rollOver){
Box._x=100
Box._y=100
}
It seemed very simple to me-- which is why I am confused as to why it isn't working. When i try this._x=100 / this._y=100, it moves to 100,100. Why won't it move the other movieclip?
Thanks
Help With Deleting Panel Sets
I need some insight on deleting a panel set after you save a panel layout under windows. I am using Flash MX 04 on XP. I found instruction from help files in flash but the paths they suggest using to delete the panel set is not accurate. At least not on my computer. I have searched my computer up and down looking for where Flash stores panel information, and I can not find anything even in the application folders. Any suggestions?
Chart Containing Sets Of Items
Hi,
I am looking for creating a chart containing sets of items, a two dimension chart containing 3 numbers each time.
for example: tab=new Array({1,0,0},{0,1,0},{0,0,0});
That code doesn't work, how can I do it?
Thanks
Link Button Sets
Simple.
Two separate MC's (menu_mc and menu2_mc) both export to the MainMenu.as class. Both contain buttons that export to the OButton.as class. Buttons.fla base class is Main.as.
What I want is for menu_mc and menu2_mc to work like partners. When I ROLL_OVER the buttons of one I want the other MC to "hear" it and react the same way. How do I make them "aware" of one another?
I have a friend who pointed me in this direction:
"First off, both the top menu and the middle menu need to become aware of each other. I don't actually have flash, so I can't see how this is set up exactly within the FLA, but you need to do something like this within the class which extends the root:
var m1:MainMenu = mySecondMenuClip;
var m2: MainMenu = myFirstMenuClip;
m1.setLinkedMenu(m2);
m2.setLinkedMenu(m1);
setLinkedMenu can add a listened to the other menu so that every time you make a new selection, it knows to update its selection. You have to figure out the details ;)
Secondly, your OButton class needs to broadcast when the mouse rolls over it. Then you can use that pairing above to have both menus rollover in tandem."
...AND, while I understand something of what he is talking about, I am having trouble getting my mind (and my code) around it. As you may see I have begun to implement the "setLinkedMenu" method but I am not really sure what it is supposed to do OR if I even hav it in the right place.
Thanks for any help you may offer.
Here are my classes:
Attach Code
// Main
package
{
import flash.display.*;
import flash.events.*;
public class Main extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var pages_mc:Pages;
public var menu_mc:MainMenu;
public var menu2_mc:MainMenu;
public var botMenu_mc:BottomMenu;
//PUBLIC------------------------------------------------------------------------------------
public function Main()
{
super();
initialize();
}
// private --------------------------------------------------------------------------------
private function initialize():void
{
addEventListener(OButton.NEW_SELECTION, selectHandler);
var m1:MainMenu = menu_mc;
var m2:MainMenu = menu2_mc;
m1.setLinkedMenu(m2);
m2.setLinkedMenu(m1);
menu_mc.main();
menu2_mc.main();
botMenu_mc.main();
}
// event handlers -------------------------------------------------------------------------
private function selectHandler(event:Event):void
{
var btn:OButton = event.target as OButton;
pages_mc.loadPage(btn.thisMC);
}
}
}
// MainMenu
package
{
import flash.display.*;
import flash.events.*;
public class MainMenu extends MovieClip
{
// class definition -----------------------------------------------------------------------
public var act1_mc:OButton;
public var act2_mc:OButton;
public var act3_mc:OButton;
public var act4_mc:OButton;
public var act5_mc:OButton;
private var main1:MainMC1 = new MainMC1;
private var main2:MainMC2 = new MainMC2;
private var main3:MainMC3 = new MainMC3;
private var main4:MainMC4 = new MainMC4;
private var main5:MainMC5 = new MainMC5;
private var _selectedButton:OButton;
// initialize -----------------------------------------------------------------------------
public function MainMenu()
{
super();
}
public function main():void
{
initializeMenu();
}
// public ---------------------------------------------------------------------------------
public function setLinkedMenu(linkUp:MovieClip):void
{
linkUp.addEventListener(MouseEvent.CLICK, alsoChange);
}
public function alsoChange(event:Event):void
{
trace(this.name);
}
// private --------------------------------------------------------------------------------
private function initializeMenu():void
{
act1_mc.thisMC = main1;
act1_mc.main();
act2_mc.thisMC = main2;
act2_mc.main();
act3_mc.thisMC = main3;
act3_mc.main();
act4_mc.thisMC = main4;
act4_mc.main();
act5_mc.thisMC = main5;
act5_mc.main();
addEventListener(OButton.NEW_SELECTION, selectHandler);
}
// event handlers -------------------------------------------------------------------------
private function selectHandler(event:Event):void
{
if (_selectedButton != null)
{
_selectedButton.unselectCategory();
}
var mObtn:OButton = event.target as OButton;
_selectedButton = mObtn;
}
}
}
//OButton
package
{
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
[Event(name="newSelection", type="flash.events.Event")];
public class OButton extends MovieClip
{
public static const NEW_SELECTION:String = "newSelection";
private var _thisMC:MovieClip;
//INITIALIZE--------------------------------------------------------------------
public function OButton()
{
super();
}
public function main()
{
initializeBehavior();
}
//API--------------------------------------------------------------------
public function set thisMC(val:MovieClip):void
{
_thisMC = val;
}
public function get thisMC():MovieClip
{
return _thisMC;
}
public function unselectCategory():void
{
play();
initializeBehavior();
}
// private --------------------------------------------------------------------------------
private function initializeBehavior():void
{
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER, onOver);
addEventListener(MouseEvent.MOUSE_OUT, onOut);
addEventListener(MouseEvent.CLICK, selectHandler);
}
private function deinitializeBehavior():void
{
removeEventListener(MouseEvent.CLICK, selectHandler);
removeEventListener(MouseEvent.MOUSE_OVER, onOver);
removeEventListener(MouseEvent.MOUSE_OUT, onOut);
}
//event handlers-----------------------------------------------------------------------
private function selectHandler(event:Event):void
{
deinitializeBehavior();
gotoAndPlay("disable");
dispatchEvent(new Event(OButton.NEW_SELECTION, true));
buttonMode = false;
}
public function onOver(e:MouseEvent):void
{
gotoAndPlay("over");
}
private function onOut(e:MouseEvent):void
{
gotoAndPlay("out");
}
}
}
Panel Sets Problem
Hi, with flash mx i am having a problem with the panel set layouts staying the same for each time i load up flash. Even if i select the default layout it wont stay the same for the next time i load up flash.
I am running windows 2000 pro and have full administrator access.
Any ideas ???
Also can someone tell me what files i need to delete so that flash runs as if its the first run?
Thanks in advance, Chris
Two Sets Of Sticky Buttons
hi,
sorry for being such a greenhorn, but i have the following problem:
i have a console wherein i can load movies and sounds. there are 3 movie-buttons and 3 sound-buttons. (you can combine every sound with every movie)
is there a possibility to makee the buttons "sticky" to see which buttons are pushed?
thanks a lot
jsn
2nd Click Sets It Off The Page
can anyone tell me why my map goes off page when click a second time. If you click once the map zooms in and you can navigate but when you click it a second time it randomly goes off page or goes a little off page. How do I keep it from showing the maps edges?
Actionscript Help For 2 Sets Of Buttons, See FLA
Hi:
I have posted the FLA's here...
http://www.usherscloset.com/test/
What I have done so far is create the 1st level (main) navigation up top...but on the first SWF brought in...I have a 2nd set of buttons that I want to use as an option...they point to the same source...this is just for a fun way to navigate...pretty much experimenting with this...so if any of you can see my source and can suggest what i can do to fix my problem that would be great...
problem: Main level navigation is not responding correctly...
The "Home.fla" buttons appear to work ok but not the buttons up top "index.fla"
I hope I explained this well enough for you to help...Maybe my source codes will also explain...if you open the index.swf you will see what I mean. Thanks for helping.
Creating Number Sets
Hi guys
I just wonder if anyone has experience creating number sets?
(e.g. << 1 2 3 4 5 .... 100 >> )
when goes further << 10 11 12 13 14 ..... 100 >>
I been trying to work this out for days now and I cant seem to find tutorial on this or I am searching for the wrong keyword?
Any help would be appreciated.
Thanks.
FRG10
XML Slideshow With 2 Sets Of Thumbnails?
I went through the tutorial and it works fantastic however I need to create a gallery with two rows of thumbnails representing Before & After situation. So the xml would have to make a reference to 2 sets of images/thumbnails. I don't even have to have them scrolling. Is there an easy way of modyfying the existing code?
Flash MX Panel Sets
Why is that when I open the Library and save the panel layout, it only pulls up the library a few times when I get back into Flash, then won't do it anymore after a while. It's like it doesn't save it long enough. Anyone else have this problem?
Flash MX Panel Sets
I don't think I like the panel set up in Flash MX, I know you can change the layout and add more panels to start on the screen, but if you do that, when if you click the expand arrow on a default panel, the new panels are hidden, however,but the default panels move with the arrow and are never hidden.
What to do?
View Character Sets
Is there any where in flash, or even better, online where I can view what exact characters are in the character sets included in flash.
For instance I would like to see every unicharacter that is in a specific set, such as "Japanese (All)".
thanks
How To Shift Sets Of Frames
is there a way to shift a certain amount of frames(under one label) to the right or left to make room for something you forgot to add prior to those frames that need to be shifted. or do i only have the choice of cut and paste?
thanks
Library Panel Sets?
When I am working with a movie in Flash MX, I have the library and other panels open. I click Window>Save Panel Sets. But next time I load that configuration with another movie, everything opens except the library panel.
Any ideas?
is this a known bug?
I went into the configuration with the hopes of editing the files, but cannot find a suitable editor.
Multi Question Sets Problem
hey guys
i have this multi choice game and i am trying to make it load with different questions sets - it loads in the first scene with this code :
//get vars in notepad
topic = "kosher.txt"
loadVariablesNum (topic, 0);
topic being the varible and "kosher.txt" being the default question set - now when you click on the button with the code to take you to themain game it has the following code:
on (release) {
topic = "moshiach.txt"
loadVariablesNum ("moshiach.txt", 0);
gotoAndPlay("maind game", 1);
}
and yet - when you get to the main game it loads with the default and not only that i have buttons on the side so you can reset it to a diff ques set and no matter which you click it takes you to the one click last - ex. if you click "moshiach" first it would load "kosher" (default) like above but the you try and reset it and click "S*****s" it would load "moshiach" and then the next one would load "s*****s"
you understand? well good - now please explain
thanks in advance!!!!
Yechi!
p.s. look at my other post - "Mission impossible"
Radio Button Sets A Variable How?
I'm setting up language options (English. French. German).
I'd like to use the cool smart clip radio buttons in flash 5 to select a language that will then set a language variable that I can check for each time someone wants to open a PDF.
How can I do this? I've been looking at all the script examples regarding radio buttons but I just don't understand. I should just use basic buttons and on release set my variable. But where's the coolness in that?
Can anyone throw me a bone and help me set a variable from a radio button?
Thanks.
One Movieclip Sets Variable, Another Cannot Pick Up The Value
Hi
I have two movieclips, 'movie' and 'moviesub', where moviesub is placed on the timeline within movie
In moviesub, I'm using a button to set the variable value 'position'.
code:
on (release) {
position = 1;
_root.menu.play();
}
and I'm trying to get that value recovered and measured in 'movie', using some script placed on a keyframe.
code:
if (position==1) {
stop();
} else if (position>1) {
play();
}
Can anyone see why the value of 'position' would not be recognized. The clip 'movie' just zooms by this keyframe, even if it is obvious that the value should be '1'.
Although this is probably (hopefully) easy, my brain has gone into hibernation and any help would be welcome.
Cheers
Flash MX Custom Panel Sets
Hi all,
I've saved a panel set (showing Library fixed into the workspace on the right of the screen) as "custom". How do I get Flash MX to start with this panelset every time a new .fla is loaded? When I load a .fla the set seems to be the same but the library panel does not show and has to be reviewed from the window menu.
Any ideas?
Installing Foreign Character Sets
Hey there
I have to produce a series of holiday cards for a client with international clients of their own and need to install some foreign character sets.
Can anyone point me to somewhere I can find these? I've been searching without much luck.
thanks for any help!
SS
Is Flash 8 Supports .Net Data Sets
Hi all,
I have consumed .net web service which is returning DataSet. The response from it is soap response. Is flash 8 supports .Net DataSets. How can i retrieve data from that soap response. Is there is any classes to rtrieve the data. so pls send me the way and sample code to resolve this issue.
Regards,
Kiran.
Button Sets Var For Movie Clip
I am trying to replicate the following scrolling technique:
http://www.hodgesinteriorsolutions.co.uk/
I want to have the background photo scroll up and down according to the button pressed. What I tried is this...
I have a movie clip called "photos" which has 6 permutations of all possible animations of these 3 photos, each with stop markers at certain intervals. It has the following actionscript which I am trying to make work (I'm a bit of a noob):
stop();
var startpic;
var endpic;
if (startpic="") {
startpic = "a";
} else {
startpic = startpic;
}
function scroll() {
if ((startpic="a") && (endpic="b")) {
gotoAndPlay(2);
}
if ((startpic="a") && (endpic="c")) {
gotoAndPlay(56);
}
if ((startpic="b") && (endpic="a")) {
gotoAndPlay(34);
}
if ((startpic="b") && (endpic="c")) {
gotoAndPlay(12);
}
if ((startpic="c") && (endpic="a")) {
gotoAndPlay(45);
}
if ((startpic="c") && (endpic="b")) {
gotoAndPlay(23);
}
startpic = endpic;
}
I'm not sure if this is even close to right, but the logic makes sense to me.
I also have three buttons which are supposed to set the startpic and endpic variables and trigger the function. Here's the code for one of them.
on (release) {
photos.endpic = "a";
photos.scroll();
}
I think I've got the right idea but am going about it all wrong. Can anyone help set me in the right direction?
Loading Multiple Images From Xml In Sets
I have a project to do and I'm not sure how to get it done. I have some experience using xml to load images into flash but that was one at a time. the project that i'm currently working on needs to work like something like this.
I need flash to load in three images at one time(from an xml file) and display them in a horizontal line, and then move across the stage from one side to the other.
i know how to load one image at a time but not multiple. and i don't know how to make the images slide across the stage in a line. anyone have any idea how this can be done or know of any tutorials for it?
thanks a mint
p13
Data Type Question: Sets
I am trying to make a program that has a random mathematical question, 7 different random answers, one of which is correct.
I am used to using classes in Java and the Java libaray.
Is there an inbuilt class in actionscript that fulfills these properties:
No duplicates
Easy insert of integers
Easy poping of first item.
Easy length return.
Basically a set.. The only thing I found on the net was a DataSet, but I tried one and it gave me all sorts of strange errors.
I will use this class to fill it with my 'random' answers to the question, which are actually the correct answer but offset by a random number. I need to build up the set so that no answer is duplicated and that one of them is indeed the correct answer. Which I will then have all asigned to a,b,c,d,e,f,g.
If you are interested the code I have at the moment is:
Code:
function sub() {
lev = l*10+50;
X = Math.round(lev*Math.random());
Y = Math.round(lev*Math.random());
x.text = X;
y.text = Y;
an = (X-Y);
while (answers.getLength()<7) {
a = an+lev*5*Math.ceil(Math.random()*2-1);
if (Math.random()>0.86) {
a = an;
}
if (!answers.find(a)) {
answers.addItem(a);
}
}
if (!answers.find(an)) {
answers.addItem(an);
} else {
while (answers.getLength()<8) {
a = an+lev*5*Math.ceil(Math.random()*2-1);
if (!answers.find(a)) {
answers.addItem(a);
}
}
}
answers.first();
a.text = answers.currentItem();
answers.next();
b.text = answers.currentItem();
answers.next();
c.text = answers.currentItem();
answers.next();
d.text = answers.currentItem();
answers.next();
e.text = answers.currentItem();
answers.next();
f.text = answers.currentItem();
answers.next();
g.text = answers.currentItem();
}
which gives an error of:
Operation not applicable when no sort has been defined. Error for iterator '__default__'.
a-g are dynamic text
l is the current level of question (higher level means larger numbers in the question and smaller deviations of wrong answers to the correct answer)
Mutiple Sets Of Navigation Buttons
I am creating a site that is in English and Chinese and I am creating to instances of the same navigation bar in different parts of the timeline. My problem is, the first set of buttons (actionscript in frame 1) are working fine and the second set of buttons (actionscript in frame 40) is not working.
Any ideas?
Below are copies my actionscript. Any advise would be great.
<First Set>
Success.addEventListener(MouseEvent.CLICK, clickSuccess);
function clickSuccess(event:Event):void {
trace("successText");
gotoAndStop("Success");
}
Certification.addEventListener(MouseEvent.CLICK, clickCertifications);
function clickCertifications(event:Event):void {
trace("certificationText");
gotoAndStop("Certification");
}
Certified.addEventListener(MouseEvent.CLICK, clickCertified);
function clickCertified(event:Event):void {
trace("certifiedText");
gotoAndStop("Certified");
}
<Second Set>
SuccessCH.addEventListener(MouseEvent.CLICK, clickSuccessCH);
function clickSuccessCH(event:Event):void {
trace("SuccessCHtext");
gotoAndStop("SuccessCH");
}
CertificationCH.addEventListener(MouseEvent.CLICK, clickCertificationsCH);
function clickCertificationsCH(event:Event):void {
trace("CertificationCHtext");
gotoAndStop("CertificationCH");
}
CertifiedCH.addEventListener(MouseEvent.CLICK, clickCertifiedCH);
function clickCertifiedCH(event:Event):void {
trace("CertifiedCHtext");
gotoAndStop("CertifiedCH");
}
Mixing Character-sets In Flash (using UTF-8)
Problem:
Dynamic text will not show properly when mixing encodings.
Need to:
- text sits UTF-8 formatted in database, pulled out with urlencode();
- I need to display Arabic dynamic text alongside European in Flash.
Wish to:
- I'd like to mix European and Arabic text in one TextField;
- I'd like to embed fonts to have control over how it looks.
What I have so far (the text you see is in one TextField)
The blocked characters are european text inside arabic. As if Geeza Pro does not have 123 etc., but the export report says those characters where exported ...???
download zip (the text you see is in one TextField)
What am i doing wrong?
Scroll Item Sets Off An Action
To continue on my scroll flash file, i'd like an action to trigger when the number 10 is in line with the orange arrow (see http://home.exetel.com.au/twistedpancreas/images/buttonControlObjects Movement.fla)
Is this possible and is there a tutorial out there for this kind of thing?
Thanks
I've Integrated To Sets Of Code - Very Badly...
Please take a look at this. Trying to integrate preloader code to this loadMovie code. Not done properly obviously...but how to I do it?
square._alpha = 0;
whichPic = 1;
this.createEmptyMovieClip("preloader", 1000);
next.onPress = function() {
if (whichPic<5 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
input = whichPic;
}
};
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie("../images/image"+whichPic+".jpg", "square");
square._visible = false;
fadeOut = false;
fadeIn = true;
}
preloader.onEnterFrame = function() {
var l = square.getBytesLoaded();
var t = square.getBytesTotal();
var getPercent = l/t;
loadText = Math.round(getPercent*100)+"%";
loadBar._width = getPercent*100;
if (l>0 && l>=t) {
square._visible = 1;
delete this.onEnterFrame;
}
};
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
};
What's The Difference In Saving COLOR SETS
When creating and saving a .clr file (Saved Color Pallette), what is the difference in where that file resides?
It can reside in two places:
1) C:Documents and SettingsyourLoginNameApplication DataMacromediaFlash MXConfigurationColor Sets
or
2) C:Program FilesMacromediaFlash MXFirst RunColor Sets
What is the difference?
Escape/unescape And Character Sets
Hi, I’m going nuts with this…
I have a question for you that you maybe have the answer to.
When using escape/unescape I get to encode/decode my text to use with url’s. You are with me this far..
The problem is: When I decode a character I get this result: C3%A5 for example. What puzzles me is that normally acharacter is encoded to two characters and not four.
And, these four characters does not seem to be the correct character when checking the standards.
Any ida why this is? Is there any character settings or similar in Flash?
I'm using this when communicating with PHP and as a result I get 2 wrong characters instead of the 1 correct one I am interrested in.
|