Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Bubbling Pointers?



How do you make the pointer of the mouse look like it is trailing things like bubbles or flowers etc.? an example of this is http://www.barbie.com where flowers trail the mouse.



FlashKit > Flash Help > Flash Newbies
Posted on: 01-15-2002, 07:05 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Actionscript Pointers? (not Mouse Pointer, I'm Talking About C++ Style Pointers)
okay, so i have a function that i want to manipulate the global variables x and y in this way:

var x:Number = 45;
var y:Number = 32;

manipulate(x,y); //some stuff goes on here

trace(x+" "+y); //this will show completely different numbers in both X and Y.

how would you go about making such a function? and how would you use it?

thanks!

Bubbling
I was tracing out a Timer Event and saw that there were a few values I hadn't known about - one was bubbling, and it was set to false.

What's bubbling, and why would I use it in the instance of a timer?

Seems cool, my n00b programmer eyes just haven't seen that word before.

Thanks!

Bubbling?
I think my problem is called bubbling. I've tried reading Essential Actionscript 3 but being Dyxlesic making sense of isn't the easiest thing to do!

I'm trying to control a container - containing all my menus, I know the code works as I have used it else where in my project.

Could some kind soul also tell me what the heck it is in plain English.

Code:

//AT VERY TOP OF DOUCMENT CLASS >
      public var _mainContent:*;
      public var _contentSelect:*;
      public var _menuActive:*;
      public var _menuSystem:*;

function contentStart():void
            {
               trace ("contentStart");
               TweenMax.to (_mainContent, 1,{ autoAlpha:1, onComplete:openMe});
            }

            function openMe ():void
            {
               _menuSystem = site.mainContent.mContainer;
               for (var i:Number = 1; i < _menuSystem.numChildren; i++) {
                  _contentSelect = _menuSystem.getChildAt(i);
                  _contentSelect.addEventListener(MouseEvent.MOUSE_OVER, myMouseOver);
                  _contentSelect.addEventListener(MouseEvent.MOUSE_OUT, myMouseOut);
                  _contentSelect.addEventListener(MouseEvent.CLICK, fadeDown);
                  _contentSelect.buttonMode = true;
               }
            }


Regards
Mat

Event Bubbling
Hi there,
AS2 doesn't have an event bubbling model. Does this mean there's no way to detect clicks on anything than the top-most movieclip?

In which case, AS3 is my only option?

Thanks,
Dave

Event Bubbling
Hi.
I have huge confusion on event bubbling.

The concept is:
I have a "search area" where in I give some criteria and do search.
I have a button called "Search" and on click event I should get the list of data matching with the given criteria in a different container say panel.
Now the question is:
Can I use Bubbling concept for this and how?

Event Bubbling
Hi,

Please let me know if this doesn't make sense...

I'm developing a series of sequencing classes. SequenceList has an array of Sequences. Each Sequence has an array of Steps. Each Step has an array of Conditions.

A Step dispatches a custom event (with bubbles set to true) when one of its conditions have been satisfied.

The parent Sequence doesn't receive the event unless I add the listener directly to the Step.

Inside class Sequence:

Code:
_array[_index].addEventListener...
Why doesn't the following work?!? Doesn't the event bubble to the Sequence because it originates from a item stored in a array property of the class?

Inside class Sequence:

Code:
this.addEventListener...
More importantly:

The document class contains the SequenceList intance(s). It controls which instance is active. I need to addEventListener directly to the SequenceList instance and have it receive events dispatched from any Sequence or Step. Shouldn't this work based on bubbling? What am I missing here?!?

As3 Event Bubbling
I've tried to find out more about what this means and how it works. Does bubbling go up a via parent of does it go up the event class? Can any give an example of when you would/would't use event bubbling? Thanks for your help!

Event Bubbling
So, I have an event with bubbling set to true, and I have a listener on an abstract "Page" Class and a listener for the same event on the concrete class (ExamplePage) that extends that "page" class. The event is fired from a child of the ExamplePage, why is it heard FIRST on the abstract class?

Shouldn't the concrete class extending the abstract class receive the event first?

I would like to have default actions on the abstract class and custom actions on the concrete class but in some scenarios, stop propagation of that event from bubbling up to the abstract class.

[as3] Bubbling Only For DisplayObjects?
I just have a simple question. Does event bubbling only work for DisplayObjects or classes extending DisplayObject? Do all of the objects being bubbled through need to be added to the display list as well?

I'm using Flex 3 and right now I have an ArrayCollection containing Deck's (Deck also extends ArrayCollection) which contains Cards (extending nothing). For an event to bubble from a Card to the main Application does each of those classes then have to extend a DisplayObject in some form and be added to the display list? I would like to then catch any CardEvents, say, on the main Application with the code this.addEventListener(CardEvent.MYCARDEVENT, cardEventHandler).

And incidentally, if it's true that only DisplayObjects can bubble events, why is this so? It seems like it would be handy to bubble events in any class.

Exception Bubbling And Events
i have a try-catch statement that i want to use to load an image.
here is the stripped down functionality:
// actionscript
this.onLoadError = function() {
throw new Error("onLoadError");
};
mcloader = new MovieClipLoader();
mcloader.addListener(this);
try {
mcloader.loadClip("fdjk.jpg", createEmptyMovieClip("test_mc", 1));
} catch (e) {
trace('Error = ' + e)
}
// end actionscript

if the image doesn't load, i'd like to throw an error, but the onLoadError function is outside the scope of the try and therefore the throw will not find the catch.

is there ANY way to get something like this to work????

Event Bubbling Confusion
Hi all.

Ok, i have made a custom event like so:-

Code:

package {
   
    import flash.events.Event;
    public class ViewChangeEvent extends flash.events.Event
   {
       public static const VIEW_CHANGE:String = "viewChanged";
       public var _viewID:Number;
      
      public function ViewChangeEvent(viewID:Number,type:String,bubbles:Boolean = true, cancelable:Boolean = false)
      {
         super(type,bubbles,cancelable);
         this._viewID = viewID;
      }
   
    }
}


In another class (which is a child of stage) i dispatch the event like this:

Code:

         var vEvent = new ViewChangeEvent(ViewChangeEvent.VIEW_CHANGE,_viewID);
         dispatchEvent(vEvent);


I have a listener on stage which works works fine:-

Code:

addEventListener(ViewChangeEvent.VIEW_CHANGE,viewChangeHandler);


So far so good, but i have another class, an instance of which is on the stage and it does not receive the event. In the class i have exactly the same as stage. I am a little confused as i thought the event bubbled from stage down to all children?

Preventing Clicks From Bubbling Through Movie
I have a tree menu that serves as a file explorer. Users can click on the icon next to an item's label to call up a context menu for that item. I have a problem in that when the context menu is displayed (on top of the tree) the clicks seem to pass right through the context menu to the tree, firing events.

How can I keep this from happening????

Child Propagation/bubbling Problem?
I'm in one heck of a pickle. I informed a client that i could build them this nifty little flash menu expecting that I would be able to figure out the process fairly easily. I'm passed the deadline, but bought myself time until tomorrow. Any help here would be oh-so awesome.

my fla is here: http://www.d-w-t.com/pom5.fla

If you test it, you can roll over 'about us' and a menu slides down. The problem is, this menu is completely non-functional. The item you roll over is supposed to turn black and take you to a link when you click on it. I havn't even gotten to turning it black because the actual link never works (currently, only 'our story' is set up). According to the rules of child propagation and bubbling, I think it should work - but I am, alas, a noob and obviously don't have a full understanding. The reason I feel it should work is because the on(rollOver) of the 'about us' works and that's in the same movie clip as the on(press) (and go to a url) button... so why would one work and not the other if the rules of child propagation/bubbling are preventing it...?

Please help. I'm desperate. Thanks.

Small Event Bubbling Question
So, if you look at the attached file you'll see that I would like to receive and interpret ROLL_OVER events from the button layered two children down into the movie clip on the stage. With event bubbling, that's easy enough to do with just a simple addEventListener. Unfortunately though, you'll notice that I'm receiving *two* mouse events, one from the button and one from the clip holding it. I don't really want an event from the one holding the button. I can work around it, but it's just noise that I have to account for in my code, and it's bothersome.

Is there some quick and easy way I can make that movie clip that holds the button stop dispatching ROLL_OVER events?

Event Bubbling, Workaround: Delegation
After reading senoculars button event caputuring (http://www.senocular.com/flash/tutor...ttoncapturing/)

I have been trying to get something to work using workaround #1 and I need some help.

I am trying to get a sound control tab (see attached file) to have a rollOver state which slides in and have buttons on tab be usable but cant seem to grasp the AS needed.

This is the AS but I know it is incorrect because it is not can anyone please help so that I can grasp this concept?


Code:
this.soundtab_mc.play_mc.onPress = function() {
_parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
soundtab_mc.onRollOverHandler()

/// How can I have this function for soundtab_mc work along with buttons within this MC?
/// this.gotoAndPlay(2);
/// }
/// soundtab_mc.onPressHandler() {
/// this.gotoAndPlay(15);
/// }
};
this.soundtab_mc.stop_mc.onPress = function() {
_parent.sound_mc.sound_obj.stop();
soundtab_mc.onRollOverHandler()
};
this.soundtab_mc.next_mc.onPress = function() {
(song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
_parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
soundtab_mc.onRollOverHandler()
};
this.soundtab_mc.prev_mc.onPress = function() {
(song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
_parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
soundtab_mc.onRollOverHandler()
};
stop();
Thanks for any suggestions. MT

Events Bubbling Out Of Custom Classes?
Okay, I'm trying to create a job queue type of system that uses event bubbling so that events can be dispatched from multiple locations and bubble up to a front controller.

For some reason my EventHandler is never being called:
OUTPUT:
DataPack Constructed
Custom Event Constructed
EventTransporter Constructed
Dispatching event type: _dataevent

Does anyone see anything terribly wrong here?

TestEvents.as

Code:
package {
import flash.display.Sprite;

public class TestEvents extends Sprite
{
public function TestEvents()
{
addEventListener(CustomEvent.DATA_EVENT, onCustomEvent);

var myCaller:EventCaller = new EventCaller();

var myData:DataPack = new DataPack([1,2,3,4,5]);
var event:CustomEvent = new CustomEvent(CustomEvent.DATA_EVENT, myData);
var holder:EventTransporter = new EventTransporter(event);
myCaller.callEvent(holder);


}

private function onCustomEvent(event:CustomEvent):void
{
trace("onCustomEvent data: "+event.data);
}
}
}
DataPack.as

Code:
package
{
public class DataPack
{
private var _stuff:Array;

public function DataPack(ary:Array)
{
trace("DataPack Constructed");
_stuff = ary;
}

public function get stuff():Array { return _stuff }
}
}

EventCaller.as

Code:
package
{
import flash.events.EventDispatcher;

[Event(name="_dataevent", type="CustomEvent")]
public class EventCaller extends EventDispatcher
{
public function EventCaller() {}

public function callEvent(holder:EventTransporter):void
{
trace("Dispatching event type: "+holder.event.type);
dispatchEvent(holder.event);
}
}
}
EventTransporter.as

Code:
package
{
public class EventTransporter
{
private var _event:CustomEvent;

public function EventTransporter(event:CustomEvent)
{
trace("EventTransporter Constructed");
_event = event;
}

public function get event():CustomEvent { return _event }
}
}
CustomEvent.as

Code:
package
{
import flash.events.Event;

public class CustomEvent extends Event
{
public static const DATA_EVENT:String = "_dataevent";

private var _data:DataPack;

public function CustomEvent(type:String, data:DataPack)
{
trace("Custom Event Constructed");
super(type, true);
_data = data;
}

public function get data():DataPack { return _data }
}
}

No Event Bubbling Through Animated Bitmaps
bubbling events through a hierarchy of nested DiplayObjects works in many cases but
unfortunately it does seem to work not in all cases:

Given some nested Objects like so:

box = new Sprite();
box.addChildAt(containerA,0);
box.addChildAt(containerB,1);
box.addChildAt(containerC,2);

whereas containerA has some "clickable" Objects inside.

If containerB/C contain bitmaps, for instance, the event bubbling works.
But if containerB/C contain a bitmap with a bitmapData which is manipulated via setPixel
or other pixel changing methods, there is NO event bubbling any more.

My first guess was that has something to do with lock() or unlock() the bitmapData, But it hasn't.

Does someone know why there is no event bubbling in such a case

Keith

Event Propagation/bubbling Question
i can't doubleclick on an mc with mc's init...the main container mc won't register doubleclick events(it does so with single clicks)...is this a propagation issue and what can be done?(some property or method)...and i cant wrap my head around event bubbling(phases and such)...i guess this and the doubleclick hick up are connected , no?...many thanx for any replies

Child Propagation/bubbling Problem?
I'm in one heck of a pickle. I informed a client that i could build them this nifty little flash menu expecting that I would be able to figure out the process fairly easily. I'm passed the deadline, but bought myself time until tomorrow. Any help here would be oh-so awesome.

my fla is here: http://www.d-w-t.com/pom5.fla

If you test it, you can roll over 'about us' and a menu slides down. The problem is, this menu is completely non-functional. The item you roll over is supposed to turn black and take you to a link when you click on it. I havn't even gotten to turning it black because the actual link never works (currently, only 'our story' is set up). According to the rules of child propagation and bubbling, I think it should work - but I am, alas, a noob and obviously don't have a full understanding. The reason I feel it should work is because the on(rollOver) of the 'about us' works and that's in the same movie clip as the on(press) (and go to a url) button... so why would one work and not the other if the rules of child propagation/bubbling are preventing it...?

Please help. I'm desperate. Thanks.

Newbie..needs Some Help And Explaination On Possible Bubbling(sp?) Problem In Submenu
Hi. First post of course it's a problemquestion. I've spent around five hours reading forums and help topics and I believe I have a bubbling (sp?) problem and I am obviously not sure how to fix it.

I'll be specific as possible and you can look at the page here
http://www.financialmanagementgroupl...ment_menu.html

and download the FLA zip here
http://www.financialmanagementgroupl...ement_menu.rar

My problem is this:
I have created a menu on scene 1 in a movie clip
inside the clip I have created the buttons for the main menu and 2 sub menus as movie clips the sub menus are called up by labels on rollover of thier parent buttons on the main menu. I need the parent button (Project Advice) to be clickable as well as the sub menu buttons. However at this point I can not get the submenu buttons (the New England button (new_btn)) to properly link to a label in scene one (New England). Any help or explaination would be awsome, or even just a quick link to a good tutorial/info about the problem. Thanks for any help.

EDIT: I just wanted to add that I was following a tutorial from learnflash.com that told me to build a menu this way, but did not explain how to create links in the submenu.

-J. Sheehan

Newbie..needs Some Help And Explaination On Possible Bubbling(sp?) Problem In Submenu
Hi. First post of course it's a problemquestion. I've spent around five hours reading forums and help topics and I believe I have a bubbling (sp?) problem and I am obviously not sure how to fix it.

I'll be specific as possible and you can look at the page here
http://www.financialmanagementgroupl...ment_menu.html

and download the FLA zip here
http://www.financialmanagementgroupl...ement_menu.rar

My problem is this:
I have created a menu on scene 1 in a movie clip
inside the clip I have created the buttons for the main menu and 2 sub menus as movie clips the sub menus are called up by labels on rollover of thier parent buttons on the main menu. I need the parent button (Project Advice) to be clickable as well as the sub menu buttons. However at this point I can not get the submenu buttons (the New England button (new_btn)) to properly link to a label in scene one (New England). Any help or explaination would be awsome, or even just a quick link to a good tutorial/info about the problem. Thanks for any help.

EDIT: I just wanted to add that I was following a tutorial from learnflash.com that told me to build a menu this way, but did not explain how to create links in the submenu.

-J. Sheehan

Senoculars Event Bubbling With Buttons Issue
Here's some neat coding developed by senocular (thanks a lot!), that "allows child clips to receive events despite the fact that a parent might make use of them as well, something not possible with the normal convention of handling button events where no child movie clip ever receives button events if a parent has any button event handlers defined for it."

Yeah! It's neat.

But I can't really figure out how to attach an event to an mc called "child_next" within "parent1".

Can anybody help me out?









Code:
import com.senocular.events.*

function handleEventMethod(eventObject:ButtonEvent):Void {
// trace event
if (eventObject.type != "onMouseWithin") trace(eventObject.type +"("+this+")");

// stop event from bubbling up to parent clips if this clip is parent2.child
if (this.target == parent2.child) eventObject.stopPropagation();

// react based on which event is being received.
switch(eventObject.type){
case "onRollOver":
case "onDragOver":
// this.target.gotoAndStop(2);
this.target.play();
break;
case "onDragOut":
case "onRollOut":
case "onReleaseOutside":
// this.target.gotoAndStop(1);
this.target.play();
break;
case "onMouseWithin":
break;
//
}
}

// clips to receive events from ButtonEventHandler
var clips:Array = [parent1, parent1.child_prev, parent1.child_next];
var clip:MovieClip;
var buttonEventObj:ButtonEvent;

// allow events to pass through despite overlapping
ButtonEventHandler.overlapBlocksEvents = false;

// assign handleEventMethod as handleEvent handler for each clip in clips
for (clip in clips) {
// get ButtonEvent object for each clip and assign handleEvent function
buttonEventObj = ButtonEventHandler.getEventObject(clips[clip]);
buttonEventObj.handleEvent = handleEventMethod;

// for parent1, set overlapping to block events
if (clips[clip] == parent1) buttonEventObj.overlapBlocksEvents = true;

// enable the hand cursor by providing a null onPress event handler
clips[clip].onPress = null;
}

Bubbling Up Somehow Without Actual Event Redispatching Implementation?
Hey guys,

I've got 3 classes. Class C is instantiated in Class B and Class B is instantiated in Class A.

I want an event to dispatch in Class C and get handled in the Document Class where Class A is instantiated. Is there a way besides, actually doing a dispatchEvent in C,B,A and applying listeners to all 3.

Does the Event MetaTag help with this in flash?

Type Coercion Failed -- When Bubbling A Custom Event
I have a main actionscript app that loads a separate SWF file. The loaded swf file dispatches an event when a button is clicked. The event, however, is a custom event of a type that is in an external library (the type is mf.events.LocaleEvent).

Both the main actionscript project and the loaded swf file reference the same external library when referencing the event, but when the main project receives the event from the loaded swf, it throws the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert mf.events::LocaleEvent@2e1e7891 to mf.events.LocaleEvent.
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at BottomSkin_fla::MainTimeline/buttonClicked()

Any ideas on how to make the app realize that both swfs are really pointing to the same class?

Thanks in advance for the help!

OOP Pointers
Hi,

I was wondering if someone could give me a few pointers on my code. I've programmed an OOP game - shooting gallery thing as a self teach and it's working great, I just wonder if there's an easier, more elegant way to code some of it. Here it is:

Code:
MainBaddie = function() {}
MainBaddie.prototype = new MovieClip();

MainBaddie.prototype.onEnterFrame = function() {
// if it's out of energy then die
if ((this.energy <= 0) && (this.played == 0)) {
this.played = 1;
this.gotoAndPlay(2);
_root.badindex--;
}
// moves it
if (this._x > 550) {
this._x = 0;
} else if (this._x < 0) {
this._x = 550;
} else {
this._x += this.moveby;
}
this.txt = this.energy;
}

MainBaddie.prototype.onPress = function() {
// clcik it and it looses energy
if (this.played == 0) {
this.gotoAndPlay(8);
this.energy -= 1;
_root.shots--;
}
}

// two different MC's for BadGuys
Object.registerClass("ufo", MainBaddie);
Object.registerClass("ufo2", MainBaddie);

//is there an easier way of doing this?
for (n=1; n <= 3; n++) {
_root.attachMovie("ufo", "BadGuy" + n, n);
}
for (n=4; n <= 5; n++) {
_root.attachMovie("ufo2", "BadGuy" + n, n);
}

for (j=1; j <= 5; j++) {
_root["BadGuy" + j]._x = (Math.random() * 350) + 100;
_root["BadGuy" + j]._y = (Math.random() * 200) + 100;
_root["BadGuy" + j]._xscale = 200;
_root["BadGuy" + j]._yscale = 200;
_root["BadGuy" + j].played = 0;
_root["BadGuy" + j].moveby = (1-(random(2) * 2)) * (random(20) + 11);
//could this be made better?
if (j < 4) {
_root["BadGuy" + j].energy = 5;
} else {
_root["BadGuy" + j].energy = 10;
}
_root.badindex++;
}
Any pointers would be really appreciated.

For example I have two different graphics for the bad guys and as you can see BadGuys 1 to 3 have 5 energy and 4 and 5 have 10 energy. Is there a way to set the energy depending on the name of the MC?!?

Thanks for looking.

Cheers,

Stu

Pointers In AS
This is for a radio button component. In this setInterval call I want to pass a pointer to type_val instead of the value of it. What is weird is that the outerloop value of "value" never changes when I press different buttons but the inner trace of "value" will change when I reassign it. The problem resulting is that changing radio buttons will result in value never equaling groupName.getValue() because value isnt changed.

code:
type_val = Mtype.getValue();
setInterval(checkTypeChange, 500, Mtype, type_val);
stop();
function checkTypeChange(groupName, value)
{
trace([groupName.getValue(), value]);
if (groupName.getValue() != value)
{
value = groupName.getValue();
trace(value);
}
}



I can attach an .fla if needed to explain this better. Thanks

**I found a way around this problem but I am still curious on how to do it.

Pointers In AS
I'm using MX Pro 2004, does the AS have the ability to handle pointers? I am trying to optimise some code and this would be a great help.

Looking For Some Pointers
I'm trying to create a quick little website for some friends who are off on their travels in a week or 2 and am looking for someone to point me in the right direction for how to do what i'm after....

I'd like it so that they can upload photos and text onto a server and these images and text load into this sort of a website in the picie attached

so first up for the viewer is a photo then you click the photo and it changes to text about the photo
or you can hit buttons to the left or right to load new photos

hope i got my point across....
any idea where i can find a tutorial on what i'm trying to do ?

thanks

Pointers In As3
i don't know if this is even possible in as3. but in c++ you could have a pointer to an object and then store that pointer in another object.
i want to create an instance of a class, that creates another instance of a class, with a pointer to the first instance. so that it's easier to reach other objects within the stage. maybe as3 has something for this problem, but i couldn't find it in the reference or help.

thank you.

Pointers
Say I create 2 sprites.

var s1:Sprite = new Sprite();
var s2:Sprite;

Then I set s2 = s1. Now, when I alter any properties of either s1 or s2, the property of both instances changes.

So what is s2? s1 is a sprite instance, is s2 also a sprite instance or simply a pointer to the sprite instance s1?

Thanks!

Pointers
Hello, is there a way to use pointers in flash? I couldn't find anything in the help panel. But I just want to point to characters in a static text box. I'm lost as to how to start.

Example:
static text box: "Hello"
I want to point to each char. individually

Thanks

Pointers
I need a pointer from somebody as to creating pointers

I enter
var a:int = 9;
var b:int = a;
a=7
trace(a + " " + b);
and get
7 9

which is what I'd expect, but is there anything I can do to have 'b' become a pointer, so that it would show 7 7?

It's not really like i need this, but I'm wondering how I could improve memory usage, and want to be clear on when a variable is a variable and when it is a pointer.

when I create a class, and cannot refer to the parent by simply reffering to a parent, I create a variable that holds the parent class and pass the parent in the constructor

ActionScript Code:
class a
   var _b:b
   var c:int
   function a(){
     _b=new b(this)
   }
}

class b
  var _a:a
  function b(_parent:a){
    _a = _parent
  }
}
in this case I can refer to my variable c from class b and it will retrieve it as what it is, class b doesn't create an instance of the class a but a reference to it. (I think)

what is the difference?
Any opinions on this ?

Pointers?
Hello when i pass an object in my methods do i pass a pointer to this object or is it the object its self.

Thanks for taking your time reading this post.

Pointers?
Do they exist in AS3? Still on the idea of trying to create "mirrors" for vector art (working with BitmapData in the meantime) and I'm thinking of exploring holding Drawing API instructions in a data object and having displays be pointers to it?

A very vague concept but I'm stabbing in the dark till I hit something, I'll worry about what that something is when the lights come on...

Pointers
Hey out there;
Now that I'm close to publishing and moving things onto the net, I'm wondering if you all have some advice on the published settings one should use. I'll be using many bitmaps, VOs, MP3 tunes, all for the broadband web. Are there certain settings one should use to keep down file sizes, ect? Files sizes now range from 3 - 6MBs.

In other words... there are default settings in flash MX, but are those "better than is necesary" for a website at 72 dpi?

Thanks
Hoss

Complicated, Need Pointers ..
I've been Flashing for a few years, but I've never really gotten into the difficult stuff. I'm a complete newbie to ActionScripting, and that's what I need to ask about ..

What I need is some pointers/info on an AS that will randomly duplicate one of four movie clips, and move them in an elliptical path, but varying slightly on the X and Y axes while following the path.

So far, I've been able to get one clip to move on an elliptical path using a slightly tweaked circular motion AS, but I'm pretty bad with Trig, so I can't figure out how to get the slight variance in the path.

FLA: http://www.as.uaf.edu/~fsjrn2/one.fla
SWF: http://www.as.uaf.edu/~fsjrn2/one.swf

Thanks to anyone who can help me out on this. =P

--
CRC.Error
--

Question About Pointers
hi

iam trying to image this site http://www.signumprojects.de/
for learning purpose but iam stuck at a point
i will send the fla to the person who is ready to help me
i am stuck at the point where litle triangular shape thingy moves wher were u move in the x axis thank u bye

Mouse Pointers
How do you get it so you move your mouse on the flash and thepointer gos right to your pointer i have tohave it so you clikc on the end and it then turns into your mouse but it want its so you move your mouse on to the flash ad it puts the poiter under the desired symbol
ps by the way i work on flash 5

Actionscript Help/Pointers
Hi,

Was hoping someone can help me as I have little experience with Actionscript and I cannot seem to get my head around this navigation I am trying to design.

Firstly the file attached has 5 buttons each of which when clicked will open an external movieclip of a menu opening and closing.

When the menu is on its open state, it can only be closed by clicking the button on the opened menu OR by clicking any other button- which will result in the menu closing before another one is opened.

(only 1 of the 5 menus can open at any 1 time - so any that are open will close if another is clicked)

Lastly, when a menu button is opened, the button that opened it will either stay dark or not be selectable again until another button is clicked.

Catch my drift, would really apreciate some input people!

Actionscript Help/Pointers
Hi,

Was hoping someone can help me as I have little experience with Actionscript and I cannot seem to get my head around this navigation I am trying to design.

Firstly the file attached has 5 buttons each of which when clicked will open an external movieclip of a menu opening and closing.

When the menu is on its open state, it can only be closed by clicking the button on the opened menu OR by clicking any other button- which will result in the menu closing before another one is opened.

(only 1 of the 5 menus can open at any 1 time - so any that are open will close if another is clicked)

Lastly, when a menu button is opened, the button that opened it will either stay dark or not be selectable again until another button is clicked.

Catch my drift, would really apreciate some input people!

Actionscript Help/Pointers
Hi,

Was hoping someone can help me as I have little experience with Actionscript and I cannot seem to get my head around this navigation I am trying to design.

Firstly the file attached has 5 buttons each of which when clicked will open an external movieclip of a menu opening and closing.

When the menu is on its open state, it can only be closed by clicking the button on the opened menu OR by clicking any other button- which will result in the menu closing before another one is opened.

(only 1 of the 5 menus can open at any 1 time - so any that are open will close if another is clicked)

Lastly, when a menu button is opened, the button that opened it will either stay dark or not be selectable again until another button is clicked.

Catch my drift, would really apreciate some input people!


K

Need Pointers For Starting...
Hi!

I'm currently thinking about developing a Flash app that will:

1. Allow a user to import an external image
2. Display the image in a thumbnail
3. Display the height and width of the actual image size

... and so on, adding a host of options to meet my requirements.

I've tried looking around for tutorials but found nothing that can cover the first three steps of my app. Is it actually possible to get flash to load an external image on demand and display it in such a thumbnail way with height/width .... ???

If anyone can point me in the right direction on how to get even started on this it would be most appreciated!

Thanks
z3ph.

Pointers And References?
Hi,

How do I create a pointer or reference variable? I tried using & and *, but none of them seems to work.


Code:
var a = 123;
var b = &a;
b = 456;
trace(a);


I want to set the variable b as a reference or pointer to a such that any changes made to b will be made to a. Therefore, the expected output of the above code will be 456.

Thanks in advance.

Justin

Pointers In ActionScript? (2.0)
Hiya,

I have a set number of coordinates, and I want to go through all those coordinates by using a loop. The problem is whenever I push a coordinate into an Array, it creates a duplicate of the coordinate object into that array, instead of a pointer to the coordinate. And thus from the moment I modify the coordinate, the data in the Array is outdated. (see example).

Does anyone know how to fix this so the array stores pointers to the objects instead of duplicates of the objects?

Thanks!



Code:
this.Cor1 = new Vector(0,0); //x,y
this.Cor2 = new Vector(0,0);
this.Cor3 = new Vector(0,0);
this.Cor4 = new Vector(0,0);
Corners.push(Cor1, Cor2, Cor3, Cor4);

Cor1.x++;
//OUTPUT : Cor1.x = 1 / Corners[0].x = 0

Mouse Pointers
I would like to make a mouse pointer feature to a flash project I am doing but I don't know how to do it. I would like to have a picture(of a hand) follow the mouse as it moves. Could anyone help me do this?

moo

[MX] Can Anyone Give Me Some Pointers?
Hi,

Im new to these forums and new to Flash as a whole. I do have pretty good knowledge of other web-technologies like php, javascript and html but im almost a total newbie to Flash.

Anyway I am trying to develop a certain kind of website, I will try to describe what im trying to acomplish as good as possible.

I want to write a "program" where users can combine images (drag and drop) to create their own pictures. These images will be uploaded to my webserver so they need to be read dynamicly, the user should also be able to upload their own images. First teh user specifies a background and then place different images on top of the background on different layers.

I would also like the program to get these images from a database (MySQL) and would ultimately like to save the completed image to an image file.

As I said I am pretty new to Flash, I have done some basic things like adding symbols and click events etc. What I would like is some recommendations on where I should start. What kind of techniques should i use to do what i described above? Any kind of help would be very aprechiated.

Can Someone Give Me Some Pointers On How To Do This..
http://www.pedro-verhue.be/

1.The Site resizes to the size of the screen - How is this done?

2. The site has images in it and these also resize to the size of the site. - How is this done?

I have been taught flash (a few years ago) to create a set movie size and all images i would load in or use would be a a set size as well.

What is the best way to go about creating a site like this for displaying images, one that resized though so you can use the whole screen in a fullscreen browser / or just a normal browser window?

Thanks for any pointers whatsoever!
JH

[MX] Pointers To Improve
Hi all I have a flash animation that I have attached which works fine but I feel that I am doubling work where I don`t need to and I can`t make changes to some things without changing the whole symbol. Why this happens I don`t know, I would be very grateful if someone could give me some pointers as to where I can improve the animation to save time and have more control over individual symbols(movieclipos versus graphics for example) which will help me in all my flash projects.


.fla file (378k)
Thanks!

[help] Pointers/arrays
I'm trying to access variables that I've defined inside movie clips from the parent of the movie clips, with an array of pointers to each movie clip (I'm assuming when I use the expression myVariable = attachMovie(...), myVariable is a pointer?)
myArray.push(myVariable);

unfortunately, trying to access the variable inside: myArray[index].variableInside doesn't work; it says it is undefined. I'm guessing this is because I'm somehow trying to access variables assigned to the pointer object rather than the variables of the object the pointer points to maybe? If this is the problem, how do I dereference a pointer in actionscript?

Copyright © 2005-08 www.BigResource.com, All rights reserved