360 Turning Model...how To Do It?
in this website, click on the blue suit on that girl and then it'll show you a clothes, then you can drag it and let it turnning in 360 degrees...does anyone know how to do it? and does anyone have tutorials?...thanks a lot!!
http://www.huidilauhoff.com/
Ultrashock Forums > Flash > ActionScript
Posted on: 2004-08-05
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
MVC Model: POST And GET HTTPService In One Model
Hi!
What's the best practice for this scenario:
I have an MVC-architecture, and I need my model to handle both POST and GET methods (ie. get AND retrieve data). My Model consits one actionscript class
I know that a class / file can't contain more than one HTTPService instance...
How would you solve this?
//Kenwio
Cant Tell When Merge Drawing Model Vs. Object Drawing Model
I keep drawing shapes on the same layer, overlapping them, and then trying to delete one of the shapes to cut a shape out of the first. This does not work automatically as Help says it does, I have to go to "Modify > Combine Objects > Union" to merge them, THEN I can cut my shape out. When is this supposed to occur "automatically"? How am I supposed to know what mode I'm in?
Cant Tell When Merge Drawing Model Vs. Object Drawing Model
I keep drawing shapes on the same layer, overlapping them, and then trying to
delete one of the shapes to cut a shape out of the first. This does not work
automatically as Help says it does, I have to go to "Modify > Combine Objects >
Union" to merge them, THEN I can cut my shape out. When is this supposed to
occur "automatically"? How am I supposed to know what mode I'm in?
Object Drawing Model / Merge Drawing Model
Recently I reinstalled Macromedia Flash 8, but then it was installed with the "Merge Drawing Model" instead of the "Object Drawing Model". How do I change this?
I've tried to read this, but it doesn't say exactly what to do;
http://livedocs.adobe.com/flash/8/ma...=00000486.html
Thanks
-JPAG
3D Model Help
Ok i am making a site for a dental clinic y they asked me to make a 3d model of a mouth and with the mouse to move it so you can see the complete mouth, or with some arrows ( a controller )/.
so i as wondering if someone could help making it. or point to some tutorials..... to make it in flash mx
thanks.
3d Model Help
Ok i am going to be honest, i am making this site for a dental clinic, but one of the things that they asked me to do was a 3d model of a mouth..... that you can control and move in all directions with your mouse or with some arrows ( make a controller ) so you can see the complete mouth in 3d
but the thing is that i really don't now how to do it..... and i was wondering if someone could help me.... thanks....
360 3d Model
hello there,
I want to import a 3d model into flash and give him a 360 raise
how I can do that?
and what I should export from the 3d software?
a movie/sequence pictures?
and how should I'm,making the 3d view?
thanks allot
3d Model Help
Ok i am going to be honest, i am making this site for a dental clinic, but one of the things that they asked me to do was a 3d model of a mouth..... that you can control and move in all directions with your mouse or with some arrows ( make a controller ) so you can see the complete mouth in 3d
but the thing is that i really don't now how to do it..... and i was wondering if someone could help me.... thanks....
3D Model
I have a 3D MAX model. I need animations of this in FLASH. smooth video, animations. Tried just creating a movie in MAX but on FILE > IMPORT into FLASH the video looks shocking. I need it high quality and sharp.
Ideas ? advise ?
About The New Event Model...
Okay so you can set up stuff like this:
Code:
_root.Clip.onEnterFrame = function() {
this._x += 5;
}
but if I wanted to change a variable in my clip how can I do it? I tried putting this.Var += 10; but that doesn't want to work and putting Var += 10; creates a variable in the _root timeline. Any ideas?
3d Model Rotation ?
Hi,
Ok. I will try to explain this as simply as possible.
What I would like to do is create a 3d animation of a model doing a 360 rotation, render out the frames and import them into flash.
Then the plan is to have a horizontal scroller that could control the playback of these frames: Scrolling left would play the frames backwards - "spinning the model left", and scrolling right would play the frames forwards - "spinning the model right".
Im sure this can be done. Does anybody have a simple .fla that I could download just demonstrating a scroller controlling frame-playback?
Any help would be much appreciated.
Thanks
Chris
Texture To 3D Model
Can a bitmap be used as a surface for a 3D model? Can it be wrapped around? We have a graphic with our vendors logos on it that we want to spin around a "globe". Is this possible?
EventDispatcher Model
Does anyone have a good system for dispatching events, I saw that in as2 many people used a custom event dispatching class..There is an inbuilt one in as3. I also understand that one may often be extending something else and not easily
Code:
class extends EventDispatcher
so the IEventDispatcher needs implementing which im not sure how to do..
but im interested to know if I need a custom class like people used to write for as2..
thanks
My First MVC With AS3...trouble With Model
Hi all, been struggling with this, hoping someone can help. I've scratched my previous thread from yesterday and have started anew. One thing I found to be key was the thought process that design patterns are "meant to be guidlines...not rules set in stone." Very helpful advice.
Here's where I'm currently at:
FLA -> Document Class: Doc.as -> only instantiates ViewController.
ViewController instantiates:
1) views.mc_parent, available as an MC in the library
2) views.mc_output, available as an MC in the library
3) data.model
mc_parent has tons of moveiclips embedded in it, each with instance names, all unique, but all linked to the same class (mc_child).
Here's my Event Path:
1) Each mc_child listens for mouse over and dispatches a custom event
2) ViewController receives the custom event...
3) ViewController sets a private var to the name of the moused over item (retreived from evt.target.name)
What needs to happen next - where I'm stuck:
4) ViewController gets some data from the Model, using the retreived "selected" data as "what" data to get.
5) ViewController sets some Textboxes in mc_output to show the retreived data.
The data itself will be a big, named, structured object. Each node of the data object will equal the names of all of the mc_child's. So retreiving data will simply look something like this:
allData["mc_childName1"] = "some data1";
allData["mc_childName2"] = "some data2";
allData["mc_childName3"] = "some data3";
....etc....
selectedChild = "mc_childName2";
selectedData = allData[selectedChild];
Where I'm stuck (HELP!):
a) How do I "get" my custom, smaller piece of data to my view without sending the entire thing?
b) What does the Model look like? Is it two models (allData and selectedData)?
c) If the allData itself changes in some way (i.e. simply pulling some XML every 30 seconds), how will everyone else know - i.e., lets say by making a specific mc_child "blink" when data has been updated for a specific data node.
Obviously really struggling with how the model works in to everything.
1 Model, Several Views
Hey everyone
I guess this is a question about Design Patterns.
I have a class called Article. In this class I have 3 properties: id, bodyHeading and bodyText.
I have a design where I have to make the articles show in different layouts. Sometimes it's a full width article, sometimes it's has small fonts, and sometimes it only displays the heading.
But I don't want to build extra classes, like SmallArticle, FullArticle and so on, because I need to have a single and unique reference to my Article object.
How can I have one single model class show in different forms in Flash?
Benefits Of Following An OOP Model
Hi all,
I was curious what people's opinions are like regarding using an OOP model to design Flash applications. Does it truly make the design process easier? When you set out to make an OOP in Flash, do you model out all your objects before you even touch the Actions panel, or do you mess around with the actions panel to get a set of functions you like before putting them into their own objects?
Also, do you have any tips for keeping yourself in the OOP mindset? It was easy enough for me to use the principles of OOP when I was learning Java, but I always seem to totally lose track of OOP in Flash. It's strange, I don't even really think about things in terms of Objects, and trying to do so just feels so alien when the language doesn't force you to.
Navigating A 3D Model
I have a 3D model, and i can animate it, is there some way to have the object on screen, then press a navigation button and the model rotates in that direction?
I had a few ideas, like for example when you press the button it changes scenes, or keyframes to a new set of animation, but is there an easier and more efficient way?
Thx
Event Model In AS 2
Hello,
I'm trying to get a detailed understanding of the event model in Flash Actionscript 2.0 (working in Flash 8). My specific problem is that I'm creating nested movie clips and when the parent has (for example) an onRollOver event handler, it's child's onRollOver event handler is being ignored. I have no idea what might cause this. I've done a fair amount of web programming, and all of the other object oriented models I've worked with have had objects that allow for independent event handlers, regardless of position.
If anyone either knows and can explain, or else can point me to a source that explains, how the event model in Flash works in enough detail for me to understand the discrepancy I'm seeing, I'd really appreciate an assist. For further quantification I'll attach some code.
Attach Code
// create basic clip
var mc_Parent:MovieClip = _root.createEmptyMovieClip("mc_Parent",1);
with (mc_Parent) {
_x = 20;
_y = 20;
beginFill(0x0000FF,100);
lineStyle(2,0x000000,100);
moveTo(0,0);
lineTo(200,0);
lineTo(200,200);
lineTo(0,200);
lineTo(0,0);
endFill();
}
mc_Parent.onRollOver = function() {
//this._alpha = 50;
_root.oBroadcaster.broadcastMessage("broadcastEvent1");
};
//mc_Parent.onRollOut = function() {
//this._alpha = 100;
//};
mc_Parent.broadcastEvent2 = function() {
trace("parent");
};
// create child clip
var mc_Child:MovieClip = mc_Parent.createEmptyMovieClip("mc_Child",10);
with (mc_Child) {
_x = 300;
_y = 0;
beginFill(0xFF0000,100);
lineStyle(2,0x000000,100);
moveTo(0,0);
lineTo(100,0);
lineTo(100,100);
lineTo(0,100);
lineTo(0,0);
endFill();
}
mc_Child.onRollOver = function() {
this._alpha = 50;
this._parent._alpha = 100;
_root.oBroadcaster.broadcastMessage("broadcastEvent2");
};
mc_Child.onRollOut = function() {
this._alpha = 100;
};
mc_Child.broadcastEvent1 = function() {
trace("child");
};
var oBroadcaster:Object = new Object();
AsBroadcaster.initialize(oBroadcaster);
oBroadcaster.addListener(mc_Child);
oBroadcaster.addListener(mc_Parent);
Any One Help Me In My Menu Model
Can anyone help me to create a menu like in the below :
http://www.newezra.com/archive/blueboxdigital/
In this link they have created such a good type of Flexible & attractive Menu for Profile,solutions,process etc.,
If any tutorials or methods/lesson websites are avialable for that ?? ?
cheers
sundaram
The Mvc Model And Mc Events
I've just started with OOP in AS2 and have gone through moocks book covering the subject. I've come to the point where I want to begin doing my own stuff and have caught myself up on an annoying detail concerning using the mvc design pattern and applying simple movieclip events to instances. For the sake of simplicity I've created a movieclip with a drawn rectangle in the view object. I'm attempting to catch an onPress event with that and send it to the controller object which in turn just traces the event. Here's the code for BarView.as:
import util.*;
import mvcbar.*;
import mvc.*;
class mvcbar.BarView extends AbstractView {
private var crossbar_mc:MovieClip;
public function BarView (m:Observable,
c:Controller,
target:MovieClip,
depth:Number,
w:Number,
h:Number) {
super(m, c);
// Create UI.
makeBar(target, depth, w, h);
}
public function defaultController (model:Observable):Controller {
return new BarController(model);
}
public function makeBar (target:MovieClip,depth:Number,w:Number,h:Number): Void {
crossbar_mc = target.createEmptyMovieClip("crossbar_mc", depth);
// Store a reference to the movieClip.
crossbar_mc = target.crossbar_mc;
/**
* Rectangle drawing code comes here
*
*/
crossbar_mc.onPress = crossbar_mc.addEventListener("onPress", getController());
}
public function update (o:Observable, infoObj:Object):Void {
var info:BarUpdate = BarUpdate(infoObj);
}
}
----------------------------------------------------------
...and there's an onPress function in the BarController object instace waiting to be called, but with no success. Is there a better routine to go about using the mvc model with movieclip events? All I have stumbled upon is attaching components and receiving calls from them.
Any One Help Me In My Menu Model
Can anyone help me to create a menu like in the below :
http://www.newezra.com/archive/blueboxdigital/
In this link they have created such a good type of Flexible & attractive Menu for Profile,solutions,process etc.,
If any tutorials or methods/lesson websites are avialable for that ?? ?
cheers
sundaram
Event Model
Hi,
Just been reading up on the new MX Event Model, for years I've been puting an event handler on the out side of an MC always worked fine. Now I've been told you can place them on the timeline inside of an MC. Does'nt always seem to play ball. Can anyone tell me were I'm going wrong with the following code.
holderMc.loadMovie("pic1.jpg");
//placed on the root timeline
this.onData = function() {
trace("loaded");
};
//placed inside of holderMc
Cheers
Jim.
Need To Understand Object Model.
Hi all,
Where can I find the documentation on Flash MX object model?
What I am looking for is the hierarchical relationship of objects (ex.: starting from _root?) for Flash built-in objects and ActionScript language and others. Any book or web site?
Anybody has pointers to the big picture?
Many thanks.
Flash Object Model
hi peeps,
just wondering if there's a chart of the flash object model - i've never come across one.
i used to have one (a big poster) of visual interdev on my wall, and it really helps with visualizing
anybody know if/where there is one?
Grafting A 2d Image Onto A 3d Model
I was wondering if it's possible to create an interface where a user can upload an image and then view it on a variety of 3d models. They could spin the model around and zoom in on it with the image that they just uploaded onto the site.
Same thing with text too. Where a user can write text in a textbox and then have that wrapped around an object.
Thanks!
Model Seeks Web Designer
Hi,
Im not sure where to post but I was looking for someone to design my modeling website. Ive attached a photo. If anyone is interested in helping me out please email me. Very open minded be as creative as you like.
Thank you.
Vanessa*
P.S. Ive attached a photo incase my link didnt work.
*footer removed*
Event Model Question
I am working on a flssh project that puts multiple instances of a movie (around 30 of them) on the stage via actionscript specified by an XML file.
The problem I'm having is that I am admittedly a little fuzzy on the actionscript event model. When a user clicks on any of these instances I need all the instances to respond by playing an animation.
I think what I need is to have onPress invoke a function in the main movie that then dispatches a custom event that all the instances can listen for. They can then pull the information about what animations they need to play from a global variable set by the XML file and play the animation.
For instance if I load a movie into all of the instances that has an animation of someone opening and closing their eye. When the movie loads the eye is closed, when someone clicks on any one of the instances all of them run the animation to open the eye.
The problem is that I don't know enough about the event model to know how to pull this off.
Any help would be greatly appreciated.
Events Model - How Do YOU Assign?
Hi,
So, I'm curious to know how you prefer to assign your events, and why.. For instance, do you prefer to put your code on the actual movie clip (named mcBox)...
code:
Example 1
on(press){
trace("button pressed");
}
OR on the root timeline taking advantage of the fact that all MC's and buttons are automatically listeners of the Key, Mouse, and Stage class...
code:
Example 2
mcBox.onPress = function () {
trace("button pressed");
}
My thoughts:
I like using the second example because all button assignments can be placed in one location. Well, thats what i thought, until i made an application that used the timeline to divide up sections, and saw that if i create all the assignments on the first frame, and the MovieClip doesnt exist at the time of the time when i assign the function to the event handler, the code trace("button pressed"); will not run. Makes sense because the MovieClip wansnt present when assigned. After experiencing that, I start to wonder if using the old Flash 5 style is better (first example) Because the code is always assigned after the clip is loaded. The only way i see getting around my first problem ( not in existance when the code is ran, because the MovieClip is initialized on a different frame then when the code was originally ran i.e. all event handlers are set on frame one, different sections/buttons are on the stage at different points on the timeline) is by putting the code from example 2 on the same frame as when the MovieClip "mcBox" is instantated. BUT if I do this, my original goal of having all the handlers in the same place (like frame 1) will not work. What is your prefered approach?
Your Thoughts?
Model View Controller
Hi,
I almost understood the Model View Controller architecture, the only thing I still don't understand is how many view classes I need.
My main stage is 700px by 450 px.
At the top there is a windows like menu bar.
If the user choses a menu option on the left side of the stage a submenu is supposed to appear and onthe right the content movies that have submovies inside of them. In MVC every view is supposed to have its own controller. But if a menu option is chosen then who does the menu inform? The MainApplication view? And that one in return the MainApplication Contrroller?
Can controlelrs talk to each other?
So I have one view class for the main stage only? Or do I need one view for every subsection of the homepage (company, contact,etc)?
Live 360 Flash Model - Is This Possible?
First off I'm looking to see if this can be feasbly done in Flash (Player 7/AS2.0).
I'm sure most of you have seen QuickTime object movies. If not take a look at Apple's virtual iPod.
I know how to do this in QuickTime with VR apps and also how to closely mimic that functionality in Flash. The killer question is, and using that iPod QTVR as an example, can you have that 360 degree functionality but also make the iPod itself fully functional, all in Flash? So no matter what angle you're viewing it at you can still see whatever is happening on screen in action; you can press play/pause and the iPod will repond, etc.
That is the question.
How Can We Rotate 3d Model In Flash?
Hi friends,
I have created a 3d floor plan using 3ds max , And my client has requested it to rotate the floor plan in flash, where the visitor can control the 3d floor plan withe mouse pointer and rotate in all the direction.
Now i have no idea how to do that? can any one help me out please??
Rotate .3ds Model In Flash
I want to import a .3ds model to flash and i want to rotate it as the user clicks around with the mouse. Just like you see here but instead of the square that is generated by flash, i want my own model:
HTML Code:
http://www.flashandmath.com/advanced/simple3d/index.html
Model/Class To Extend XML
I'm a newbie to Flex 3/Actionscript, but have done OOP before.
My flex3 application downloads XML in e4x format from my web server, and and is left as a bindable XML object locally in my flex3 application. My visual objects then bind to various aspects of the XML object to display the data that I want.
My simple program is getting more complicated, and I'd like to extend the XML object and add some functions to it, so I can keep the code that manipulates the XML object separate from my base application. Lets call this new object LoginXML.
Can I please get an example of how to extend the XML object in flex3/as3 to create my own custom object with it's own functions. Part of my XML looks like
<nodes>
<node id="1">A</node>
<node id="2">B</node>
<node id="3">C</node>
</nodes>
and I'd like to make a function that outputs an Array of of the data and attributes of this XML section.
Sorry if my vocabulary is off Thanks.
--matt
Papervision | 3D Model Issues..
Hi There,
We're currently working on a website/game which uses papervision as real-time 3d engine. All is going well but we have run into a problem with one of the 3d models we're using.
We've downloaded a model of a car from Google's 3D warehouse - the model works fine when we use the original Collada files that were supplied.
However, when we make a few alterations (using sketchup pro) to the model and re-export it we run into the following problems:
- When we use our amended model "strange" effects are seen on the model (it looks like it's broken, like the texture has been screeded).
- The collada file jumps from 600kb to 1200kb although we've only added one very simple object consisting of very few faces.
The main issue we're trying to solve is the "funny rendering issue" and any help we could get here would be very much appreciated. We're not sure if this is a sketchup/exporting problem or if it has to do with Papervision.
The increased file size doesn't seem to have any immediate effect on performance but it will obviously mean that visitors would need to download an additional 600kb which isn't great.
We would really appreciate any light you could shine on this!
Cheers,
Paul
Crossdomain.xml Under New Security Model
I was informed that an old web site a vendor developed for us was no longer working. After some digging I discovered the problem is related to the security update that was made in Flash Player 9.0.124. There are security violations ( the standard one saying there is no policy file to allow the interaction) being thrown when a user tries to connect to a Soap WebService via HTTPS or HTTP depending on the situation.
I was able to get past several of the violations by allowing all headers to be passed, but when the user tries to create an account even that didn't work. I'm very confused by the fact that certain interactions with the https WebService succeed and others fail. I've tried everything I can think of at this point.
Even the following doesn't work:
<?xml version="1.0" encoding="UTF-8"?>
<cross-domain-policy xmlns:xsi="
Flash Object Model
dear friends,
i am a starter in flash.
what is flash object model.can any one help me.
thanx in advance.
cheri
AS2: Persisting Model Over Sessions Of Swf
So I had been working on this issue where I couldn't get a swf to reload in the same state it was originally loaded. Well further testing leads me to believe that my Model class is being persisted over multiple sessons in the player. Here is my model class:
ActionScript Code:
private static var _instace:ModelLocator;
public static function getInstance ():ModelLocator {
if (_instance == null | _instance == undefined) {
_instance = new ModelLocator();
trace('ModelLocator new Instance');
}
return _instance;
}
public static function removeInstance ():Void {
if (_instance != null | _instance != undefined) {
trace('destroying instance');
_instance = undefined;
_instance = null;
} else {
trace('no previous instance');
}
}
And somewhere on the main timeline in frame one i have:
ActionScript Code:
ModelLocator.removeInstance();
_model = ModelLocator.getInstance();
So when I fire up the swf the first time in the IDE's player, i get 'no previous instance' as you would expect, then I hit ctrl + enter to restart the swf in the IDE's player and I get 'destroying instance'.
So this tells me that the Model instance is getting persisted over player sessions. Unless I am mistaken, and correct me if I am wrong, I would assume clicking ctrl + enter (i.e refreshing the swf in the player) would act like a new swf session.
Any thoughts?
[as3] Click Event Model
Sup.
I'm moving on to my next massive programming project and I'm trying to decide whether I should code it in as 2.0 or 3.0. I came across the new click event model in 3.0. What do you guys think of it? Right now it's looking like a pain in the butt to me. So now I have to make a function and add it as an event listener? what the hell? What's the benefit? I understand stuff like this makes AS a more complete language but it's kinda annoying.
How Can We Rotate 3d Model In Flash?
Hi friends,
I have created a 3d floor plan using 3ds max , And my client has requested it to rotate the floor plan in flash, where the visitor can control the 3d floor plan withe mouse pointer and rotate in all the direction.
Now i have no idea how to do that? can any one help me out please??
Load 3D Model With PaperVision 1.5
Hey!
How do I load a 3D model with texture into Papervision3D (1.5)?
Is there any examples? When I tried, I couldn't get the texture to work...
Please help! Thanks!
Website Navigation Model
website navigation Model
Can anyone help me to develop this website navigation model by a simple effctive script techniqe.
This one a done with lot of scripting on ecah button & frames tooo..
This is too complex to handel.
Please suggest a simple way of doing it.
Vehicle Make And Model
Does anyone know of an exsisting class or function that will let you choose the make and model of cars. I really dont want to hand populate drop down menus will all of that information.
Thanks.
Programming Model Questions
Hi everyone,
someone asked me these questions and was wondering what would be the best answers. I have responded them as best as I could but additional thoughts would be wonderful.
•What is the flash programming model?
•Is it object oriented?
•What is the programming language?
•Is it strictly a scripting language?
•If not how do you compile it?
•Is there an IDE for developing flash apps and components?
•Can you access it form the browser DOM, i.e. is there DHTML control?
•How do you deploy it?
Thanks!
Help With Code For Event Model
I'm trying to rewrite the code below so that I can place it on the root timeline rather than on the movie clip. It's just a scrolling text box. I know I have to write a function but it's a bit advanced for my level. It's from an old tutorial and I can't seem to get the syntax right. I wouldn't even shame myself to include the code I've tried! I think I've got the buttons addressing okay, but I can't crack this one. If any kind soul could help, I'd appreciate it. Best Peter
onClipEvent (load) {
my_Txt = "Phasellus pede...Duis elementum, diam vitae bibendum sollicitudin, neque urna interdum leo, id";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
onClipEvent (enterFrame) {
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && my_Txt.scroll>1) {
my_Txt.scroll--;
} else if (scrolling == "down" && my_Txt.scroll<my_Txt.maxscroll) {
my_Txt.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}
Exporting A .obj To Swf To Create A 360 Degree 3d Model
hey everyone,
ive got an 83Mb Alias Autostudio file thats now converted to a 263Mb .obj file and im planning on importing this to lightwave and then export through swift plug to an swf
(i know.)
haha, anyway. what im hoping to achieve is a 3d model that you can rotate either by the traditional shockwave/QTVR style by dragging the model or have a button system that plays certain directions and renders.
can anyone tell me the best way to go about this? im presuming the first way would return a HUGE file and then be far too fat even for a cd, but any tips etc on either way?
thanks
cuse
Every Week New Ringtone In Flash Model
I made a model in 3d Max. Its sort of a animated mobile phone. It is for a site. The mobile phone has to let the visitor hear every week another ringtone in .mp3 sound. Is there a script where I could send every week another ringtone to the mobile phone in dreamweaver so that I won't have to open that flash file every week and import a new ringtone. It is a littlebit difficult to explain.
I don't know what to do!!
|